3 |
4 |
5 |
8 | Page Redirection
9 |
10 |
11 |
12 | If you are not redirected automatically, follow the link to aigents.com
13 |
14 |
15 |
--------------------------------------------------------------------------------
/html/en/project.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Aigents Project
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
21 |
22 |
23 |
24 |
25 |
26 |
Copyright 2016 Anton Kolonin
27 |
28 |
29 | People
30 | We are creating the team to enable structural changes on the Internet, to shift from a conventional "centralized" model of search and social interactions toward a "multi-polar" model, granting rights and abilities to individual users and communities. We are about to make information search really intelligent and automated, getting it to serve people.
31 |
32 |
Project Leader Anton Kolonin Ph.D
33 |
Americas Distribution (wanted)
34 |
Business Development (wanted)
35 |
Europe/Middle East Distribution (wanted)
36 |
Asia Distribution (wanted)
37 |
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/html/graph_report.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Aigents Graphs Demo
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/html/img/Google_Play_Store_48.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/img/Google_Play_Store_48.png
--------------------------------------------------------------------------------
/html/img/aigents-location.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/img/aigents-location.png
--------------------------------------------------------------------------------
/html/img/aigents_heternet.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/img/aigents_heternet.png
--------------------------------------------------------------------------------
/html/img/aigents_platforms.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/img/aigents_platforms.jpg
--------------------------------------------------------------------------------
/html/img/aigents_wrench.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/img/aigents_wrench.png
--------------------------------------------------------------------------------
/html/img/akolonin-mirror.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/img/akolonin-mirror.png
--------------------------------------------------------------------------------
/html/img/akolonin64.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/img/akolonin64.png
--------------------------------------------------------------------------------
/html/img/amazon-apps-store-us-white.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/img/amazon-apps-store-us-white.png
--------------------------------------------------------------------------------
/html/img/compreact.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/img/compreact.ico
--------------------------------------------------------------------------------
/html/img/compreact_logo.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/img/compreact_logo.gif
--------------------------------------------------------------------------------
/html/img/contactataigents.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/img/contactataigents.png
--------------------------------------------------------------------------------
/html/img/mic.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/img/mic.png
--------------------------------------------------------------------------------
/html/img/micr.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/img/micr.png
--------------------------------------------------------------------------------
/html/long.html:
--------------------------------------------------------------------------------
1 |
2 | here is long text. google cofounder calls advances in artificial intelligence the most significant development in computing in my lifetime,” but warns of ethical concerns. . . april 27, 2018 | author: emma grey ellis emma grey ellis how red-pill culture jumped the fence and got to kanye west . popularized by misogynists and fueled by white supremacists, a metaphor born in the matrix is now espoused by the most popular rapper in the world. . . april 27, 2018 quite the spectacles . . 1 . 2 . 3 . 4 . ... . 21528 . . . most popular transportation the crazy, complex engineering of honda's new clarity hybrid . author: eric adams eric adams . business google cofounder sergey brin warns of ai's dark side . author: tom simonite tom simonite . science the creepy genetics behind the golden state killer case . author: megan molteni megan molteni . culture how red-pill culture jumped the fence and got to kanye west . author: emma grey ellis emma grey ellis . gear apple’s done making airport routers, so try these instead . author: brian barrett brian barrett . gear best weekend tech deals: 200gb microsd, ecovacs deebot, apple ipad . author: wired wired . science fukushima’s other big problem: a million tons of radioactive water . author: vince beiser vince beiser . photo ominous views of japan's new concrete seawalls . author: michael hardy michael hardy . . more stories . . . . . . . subscribe . advertise . site map . press center . faq . accessibility help . customer care . contact us . securedrop . t-shirt collection . newsletter . wired staff . jobs . rss . . cnmn collection use of this site constitutes acceptance of our user agreement (effective 3/21/12) and privacy policy (effective 3/21/12). affiliate link policy . your california privacy rights . the material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of condé nast . . it was long text.
3 |
4 |
--------------------------------------------------------------------------------
/html/run.sh:
--------------------------------------------------------------------------------
1 | #Python 2
2 | #sudo python -m SimpleHTTPServer 80
3 | #Python 3
4 | sudo python3 -m http.server 80
5 |
6 |
--------------------------------------------------------------------------------
/html/sitea/about.html:
--------------------------------------------------------------------------------
1 |
2 | Our mission
3 |
4 | Company management
5 |
6 | Home
7 |
8 |
--------------------------------------------------------------------------------
/html/sitea/contacts.html:
--------------------------------------------------------------------------------
1 |
2 | Sales
3 |
4 | Support
5 |
6 | Home
7 |
8 |
--------------------------------------------------------------------------------
/html/sitea/corporate.html:
--------------------------------------------------------------------------------
1 |
2 | Our products make corporations more profitable!
3 |
4 | Home
5 |
6 |
--------------------------------------------------------------------------------
/html/sitea/index.html:
--------------------------------------------------------------------------------
1 |
2 | About us
3 |
4 | Products info
5 |
6 | Contact us
7 |
8 |
--------------------------------------------------------------------------------
/html/sitea/management.html:
--------------------------------------------------------------------------------
1 |
2 | John Doe
3 |
4 | CEO
5 |
6 | Home
7 |
8 |
--------------------------------------------------------------------------------
/html/sitea/mission.html:
--------------------------------------------------------------------------------
1 |
2 | Our mission is to make people happier!
3 |
4 | Home
5 |
6 |
--------------------------------------------------------------------------------
/html/sitea/more.html:
--------------------------------------------------------------------------------
1 |
2 | Here is more information!
3 |
4 | Home
5 |
6 |
--------------------------------------------------------------------------------
/html/sitea/personal.html:
--------------------------------------------------------------------------------
1 |
2 | Our products make people happier!
3 |
4 | More
5 | Home
6 |
7 |
--------------------------------------------------------------------------------
/html/sitea/products.html:
--------------------------------------------------------------------------------
1 |
2 | Corporate
3 |
4 | Personal
5 |
6 | Home
7 |
8 |
--------------------------------------------------------------------------------
/html/sitea/run.sh:
--------------------------------------------------------------------------------
1 | sudo nohup python -m SimpleHTTPServer 80 &
2 |
--------------------------------------------------------------------------------
/html/sitea/sales.html:
--------------------------------------------------------------------------------
1 |
2 | Get in touch with our sales!
3 |
4 | Home
5 |
6 |
--------------------------------------------------------------------------------
/html/sitea/support.html:
--------------------------------------------------------------------------------
1 |
2 | Stay in touch with our support!
3 |
4 | Home
5 |
6 |
--------------------------------------------------------------------------------
/html/sitea/test.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/html/siteb/about_company.html:
--------------------------------------------------------------------------------
1 |
2 | About our mission
3 |
4 | Company management information
5 |
6 | Home
7 |
8 |
--------------------------------------------------------------------------------
/html/siteb/company_management.html:
--------------------------------------------------------------------------------
1 |
2 | Doug Jones Founder
3 |
4 | Home
5 |
6 |
--------------------------------------------------------------------------------
/html/siteb/company_mission.html:
--------------------------------------------------------------------------------
1 |
2 | Delivering ethernal good to everyone!
3 |
4 | Home
5 |
6 |
--------------------------------------------------------------------------------
/html/siteb/company_products.html:
--------------------------------------------------------------------------------
1 |
2 | Products for midsize buisnesses
3 |
4 | Services for small businesses
5 |
6 | Home
7 |
8 |
--------------------------------------------------------------------------------
/html/siteb/contact_info.html:
--------------------------------------------------------------------------------
1 |
2 | Sales infromation
3 |
4 | Support information
5 |
6 | Home
7 |
8 |
--------------------------------------------------------------------------------
/html/siteb/index.html:
--------------------------------------------------------------------------------
1 |
2 | Our products
3 |
4 | Contact information
5 |
6 | About our company
7 |
8 |
--------------------------------------------------------------------------------
/html/siteb/midsize_business_products.html:
--------------------------------------------------------------------------------
1 |
2 | Midsize businesses valuate our products.
3 |
4 | Home
5 |
6 |
--------------------------------------------------------------------------------
/html/siteb/sales_info.html:
--------------------------------------------------------------------------------
1 |
2 | Are sales prepresentatives are available upon request.
3 |
4 | Home
5 |
6 |
--------------------------------------------------------------------------------
/html/siteb/small_business_products.html:
--------------------------------------------------------------------------------
1 |
2 | Small busiesses enjoy our services.
3 |
4 | Home
5 |
6 |
--------------------------------------------------------------------------------
/html/siteb/support_info.html:
--------------------------------------------------------------------------------
1 |
2 | Our support is availbe 24X7
3 |
4 | Home
5 |
6 |
--------------------------------------------------------------------------------
/html/siteb/test.html:
--------------------------------------------------------------------------------
1 | xx xxx ceo presented.
--------------------------------------------------------------------------------
/html/test.html:
--------------------------------------------------------------------------------
1 | в. городецкий написал два.
--------------------------------------------------------------------------------
/html/test/Test.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/test/Test.pdf
--------------------------------------------------------------------------------
/html/test/atom.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Example Feed
5 |
6 | 2003-12-13T18:30:02Z
7 |
8 | John Doe
9 |
10 | urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6
11 |
12 |
13 | Atom-Powered Robots Run Amok
14 |
15 | urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a
16 | 2020-02-02T18:30:02Z
17 | Some text about robots run amok
18 |
19 |
20 |
21 | Title about test feed
22 |
23 | urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a
24 | 2020-02-02T18:30:02Z
25 | Text about test feed
26 | http://localtest.com/test/junk.jpg
27 |
28 |
29 |
30 | Old title about test feed
31 |
32 | urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a
33 | 2019-12-13T18:30:02Z
34 | Old text about test feed
35 |
36 |
37 |
38 | Test with image
39 |
40 | urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a
41 | 2020-02-02T18:30:02Z
42 |
43 |
44 | Text for test image]]>
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/html/test/cat/chinese.html:
--------------------------------------------------------------------------------
1 | chinese live in china
--------------------------------------------------------------------------------
/html/test/cat/eagle.html:
--------------------------------------------------------------------------------
1 | eagle is a bird
--------------------------------------------------------------------------------
/html/test/cat/fly.html:
--------------------------------------------------------------------------------
1 | fly is an insect
--------------------------------------------------------------------------------
/html/test/cat/french.html:
--------------------------------------------------------------------------------
1 | french live in france
--------------------------------------------------------------------------------
/html/test/cat/snake.html:
--------------------------------------------------------------------------------
1 | snake is a reptile
--------------------------------------------------------------------------------
/html/test/garbage.jpg:
--------------------------------------------------------------------------------
1 | stub
--------------------------------------------------------------------------------
/html/test/graphs/index.html:
--------------------------------------------------------------------------------
1 |
2 | Aigents Test Page
3 |
4 |
5 | This is a test page. The outside temperature is 22 C°.
6 |
7 |
8 |
--------------------------------------------------------------------------------
/html/test/graphs/ontology.txt:
--------------------------------------------------------------------------------
1 | graph has direction
2 | direction can_be directed
3 | direction can_be undirected
4 | direction can_be both_directions
5 | graph has structure
6 | structure can_be hierarchic
7 | structure can_be acyclic
8 | structure can_be cyclic
9 | graph has meaning
10 | meaning can_be associative
11 | meaning can_be semantic
12 | graph has fuzziness
13 | fuzziness can_be unweighted
14 | fuzziness can_be weighted
15 | fuzziness can_be with_complex_weight
16 | graph can_be hypergraph
17 | hypergraph has arity
18 | graph can_be metagraph
19 | metagraph has order
20 |
21 |
--------------------------------------------------------------------------------
/html/test/graphs/reputation.txt:
--------------------------------------------------------------------------------
1 | bob rates mary 0.1
2 | bob rates mary 0.2
3 | bob rates mary 0.3
4 | bob rates mary 0.4
5 | bob rates jane 0.6
6 | bob rates jane 0.9
7 | bob rates https://www.facebook.com/ 0.7
8 | bob rates https://steemit.com/ 1.0
9 | jane rates bob 0.4
10 | jane rates https://www.facebook.com/ 1.0
11 | mary rates bob 0.5
12 | mary rates https://www.facebook.com/ 0.9
13 | mary rates https://steemit.com/ 0.5
14 | https://steemit.com/ is site
15 | https://www.facebook.com/ is site
16 | https://steemit.com/ image https://aigents.com/ui/img/steemit_logo_new.png
17 | https://www.facebook.com/ image https://aigents.com/ui/img/fb_logo.png
18 | bob image https://aigents.com/ui/img/aigent32.png
19 | jane image https://aigents.com/ui/img/aigents_jane_64.png
20 | mary image https://aigents.com/ui/img/aigents_mary_64.png
--------------------------------------------------------------------------------
/html/test/graphs/reputation1.txt:
--------------------------------------------------------------------------------
1 | bob rates ann 2
2 | ann rates bob 1
3 | jane rates ian 1
4 | ian rates john 2
5 | john rates jane 3
6 | phil rates sophia 1
7 | sophia rates scott 2
8 | scott rates patrick 3
9 | patrick rates phil 4
10 |
--------------------------------------------------------------------------------
/html/test/graphs/reputation2.txt:
--------------------------------------------------------------------------------
1 | bob rates ann 2
2 | ann rates bob 1
3 | jane rates ian 1
4 | ian rates john 2
5 | john rates jane 3
6 | phil rates sophia 1
7 | sophia rates scott 2
8 | scott rates patrick 3
9 | patrick rates phil 4
10 | ann rates ian 0.5
11 | ian rates ann 0.5
12 | john rates scott 2
13 | scott rates john 2
--------------------------------------------------------------------------------
/html/test/index.html:
--------------------------------------------------------------------------------
1 |
2 | Aigents Test Page
3 |
4 |
5 | This is a test page. The outside temperature is 22 C°.
6 |
7 |
8 |
--------------------------------------------------------------------------------
/html/test/junk.jpg:
--------------------------------------------------------------------------------
1 | stub
--------------------------------------------------------------------------------
/html/test/nlp/26_cat_tree.txt:
--------------------------------------------------------------------------------
1 | C01 0 1 0.5 child food human parent tool 0 0 0 0 0
2 | C02 0 2 0.16 before cake not now sausage 0 0 0 0 0
3 | C03 0 3 0.33 dad daughter mom son 0 0 0 0
4 | C04 0 4 0.25 hammer saw telescope 0 0 0
5 | C05 0 5 0 knocked sawed 1 1
6 | C06 0 6 0.33 binoculars chalk 0 0
7 | C07 0 7 0.25 has with 0 0
8 | C08 0 8 0 a 1
9 | C09 0 9 0 are 1
10 | C10 0 10 0 be 1
11 | C11 0 11 0 board 1
12 | C12 0 12 0 directors 1
13 | C13 0 13 0 her 1
14 | C14 0 14 0 his 1
15 | C15 0 15 0 is 1
16 | C16 0 16 0 liked 1
17 | C17 0 17 0 likes 1
18 | C18 0 18 0 of 1
19 | C19 0 19 0 on 1
20 | C20 0 20 0 sees 1
21 | C21 0 21 0 the 1
22 | C22 0 22 0 to 1
23 | C23 0 23 0 wants 1
24 | C24 0 24 0 was 1
25 | C25 0 25 0 wood 1
26 | C26 0 26 0 writes 1
27 | 1 27 0 tool 1
28 | 1 28 0 child human 1 1
29 | 1 29 0 food parent 1 1
30 | 2 30 0 now 1
31 | 2 31 0 cake sausage 1 1
32 | 2 32 0.33 before not 0 0
33 | 32 33 0 before 1
34 | 32 34 0 not 1
35 | 3 35 0 dad mom 1 1
36 | 3 36 0.8 daughter son 0 0
37 | 36 37 0 daughter 1
38 | 36 38 0 son 1
39 | 4 39 0 saw 1
40 | 4 40 0.5 hammer telescope 0 0
41 | 40 41 0 telescope 1
42 | 40 42 0 hammer 1
43 | 6 43 0 chalk 1
44 | 6 44 0 binoculars 1
45 | 7 45 0 with 1
46 | 7 46 0 has 1
--------------------------------------------------------------------------------
/html/test/nlp/28_cat_tree.txt:
--------------------------------------------------------------------------------
1 | C01 0 1 0.5 child food human parent tool 0 0 0 0 0
2 | C02 0 2 0.33 dad daughter mom son 0 0 0 0
3 | C03 0 3 0.25 hammer saw telescope 0 0 0
4 | C04 0 4 0 cake sausage 1 1
5 | C05 0 5 0 knocked sawed 1 1
6 | C06 0 6 0.33 before not 0 0
7 | C07 0 7 0.33 binoculars chalk 0 0
8 | C08 0 8 0.25 has with 0 0
9 | C09 0 9 0 a 1
10 | C10 0 10 0 are 1
11 | C11 0 11 0 be 1
12 | C12 0 12 0 board 1
13 | C13 0 13 0 directors 1
14 | C14 0 14 0 her 1
15 | C15 0 15 0 his 1
16 | C16 0 16 0 is 1
17 | C17 0 17 0 liked 1
18 | C18 0 18 0 likes 1
19 | C19 0 19 0 now 1
20 | C20 0 20 0 of 1
21 | C21 0 21 0 on 1
22 | C22 0 22 0 sees 1
23 | C23 0 23 0 the 1
24 | C24 0 24 0 to 1
25 | C25 0 25 0 wants 1
26 | C26 0 26 0 was 1
27 | C27 0 27 0 wood 1
28 | C28 0 28 0 writes 1
29 | None 1 29 0 tool 1
30 | None 1 30 0 child human 1 1
31 | None 1 31 0 food parent 1 1
32 | None 2 32 0 dad mom 1 1
33 | None 2 33 0.8 daughter son 0 0
34 | None 33 34 0 daughter 1
35 | None 33 35 0 son 1
36 | None 3 36 0 saw 1
37 | None 3 37 0.5 hammer telescope 0 0
38 | None 37 38 0 telescope 1
39 | None 37 39 0 hammer 1
40 | None 6 40 0 before 1
41 | None 6 41 0 not 1
42 | None 7 42 0 chalk 1
43 | None 7 43 0 binoculars 1
44 | None 8 44 0 with 1
45 | None 8 45 0 has 1
46 | None 33 46 0 daughter 1
47 | None 33 47 0 son 1
48 | None 37 48 0 telescope 1
49 | None 37 49 0 hammer 1
--------------------------------------------------------------------------------
/html/test/nlp/49_cat_tree.txt:
--------------------------------------------------------------------------------
1 | C01 47 0 0 a 1
2 | C02 0 1 0 are 1
3 | C03 0 2 0 be 1
4 | C04 40 3 0 before 1
5 | C05 41 4 0 binoculars 1
6 | C06 0 5 0 board 1
7 | C07 45 6 0 cake sausage 1 1
8 | C08 41 7 0 chalk 1
9 | C09 39 8 0 child human 1 1
10 | C10 42 9 0 dad mom 1 1
11 | C11 37 10 0 daughter 1
12 | C12 0 11 0 directors 1
13 | C13 39 12 0 food parent 1 1
14 | C14 38 13 0 hammer 1
15 | C15 43 14 0 has 1
16 | C16 47 15 0 her 1
17 | C17 47 16 0 his 1
18 | C18 0 17 0 is 1
19 | C19 0 18 0 knocked sawed 1 1
20 | C20 0 19 0 liked 1
21 | C21 0 20 0 likes 1
22 | C22 40 21 0 not 1
23 | C23 45 22 0 now 1
24 | C24 0 23 0 of 1
25 | C25 0 24 0 on 1
26 | C26 44 25 0 saw 1
27 | C27 0 26 0 sees 1
28 | C28 37 27 0 son 1
29 | C29 38 28 0 telescope 1
30 | C30 0 29 0 the 1
31 | C31 0 30 0 to 1
32 | C32 39 31 0 tool 1
33 | C33 0 32 0 wants 1
34 | C34 0 33 0 was 1
35 | C35 43 34 0 with 1
36 | C36 0 35 0 wood 1
37 | C37 0 36 0 writes 1
38 | C38 42 37 0.8 daughter son 0 0
39 | C39 44 38 0.5 hammer telescope 0 0
40 | C40 0 39 0.5 child food human parent tool 0 0 0 0 0
41 | C41 45 40 0.33 before not 0 0
42 | C42 0 41 0.33 binoculars chalk 0 0
43 | C43 46 42 0.33 dad daughter mom son 0 0 0 0
44 | C44 0 43 0.25 has with 0 0
45 | C45 48 44 0.25 hammer saw telescope 0 0 0
46 | C46 46 45 0.09 before cake not now sausage 0 0 0 0 0
47 | C47 48 46 0.08 before cake dad daughter mom not now sausage son 0 0 0 0 0 0 0 0 0
48 | C48 0 47 0.08 a her his 0 0 0
49 | C49 0 48 0.04 before cake dad daughter hammer mom not now sausage saw son telescope 0 0 0 0 0 0 0 0 0 0 0 0
--------------------------------------------------------------------------------
/html/test/nlp/cat_tree.txt:
--------------------------------------------------------------------------------
1 | C4 0 4 0.7 fish tuna bird herring fin fish wing eagle scale parr... 0.6 0.7 ...
2 | C1 4 1 0.8 fish bird fin wing scale feather extremity 0.9 0.6 0.4 ...
3 | C2 4 2 0.6 tuna herring fish eagle parrot bird fin wing 0.7 0.5 0.3 ...
4 | C3 0 3 0.9 is has 1.0 0.8
5 |
--------------------------------------------------------------------------------
/html/test/nlp/cat_tree2.txt:
--------------------------------------------------------------------------------
1 | C2 0 1 0.7 fish tuna bird herring fin fish wing eagle scale parr... 0.6 0.7 ...
2 | C1 1 2 0.8 fish bird fin wing scale feather extremity 0.9 0.6 0.4 ...
3 |
--------------------------------------------------------------------------------
/html/test/nlp/cat_tree_demo.txt:
--------------------------------------------------------------------------------
1 | C4 0 4 0.7 fish tuna bird herring fin fish wing eagle scale parr... 0.6 0.7 ...
2 | C1 4 1 0.8 fish bird fin wing scale feather extremity 0.9 0.6 0.4 ...
3 | C2 4 2 0.6 tuna herring fish eagle parrot bird fin wing 0.7 0.5 0.3 ...
4 | C3 0 3 0.9 is has 1.0 0.8
5 | C5 3 5 0.9 has 1.0 0.8
6 | C6 3 6 0.9 is 1.0 0.8
7 | C7 1 7 0.9 fish 1.0 0.8
8 | C8 1 8 0.9 bird 1.0 0.8
9 | C9 2 9 0.9 tuna 1.0 0.8
10 | C10 2 10 0.9 herring 1.0 0.8
11 |
--------------------------------------------------------------------------------
/html/test/nlp/cat_tree_test.txt:
--------------------------------------------------------------------------------
1 | C01 0 1 0.0 . 0
2 | C02 0 2 0.0 LEFT-WALL 0
3 | C03 0 3 0.0 bird extremity fish 0 0 0
4 | C04 0 9 0.0 eagle herring parrot tuna feather scale fin wing 0 0 0 0 0 0 0 0
5 | 9 4 0.0 eagle herring parrot tuna 0 0 0 0
6 | 9 5 0.0 feather scale 0 0
7 | 9 6 0.0 fin wing 0 0
8 | C05 0 7 0.0 has 0
9 | C06 0 8 0.0 isa 0
--------------------------------------------------------------------------------
/html/test/nlp/dict_12C_2018-08-09_0005.4.0-connectors.dict.txt:
--------------------------------------------------------------------------------
1 | % Grammar Learner v.0.5 2018-08-09 08:55:42 UTC
2 | : V0v0v5+;
3 | : EN4us+;
4 |
5 | % C01
6 | "before":
7 | (C03C01-) or (C05C01-) or (C06C01-);
8 |
9 | % C02
10 | "cake" "sausage":
11 | {C03C02- or C08C02-} & {C02C04+};
12 |
13 | % C03
14 | "liked" "likes":
15 | {C06C03- or C08C03- or C09C03-} & {C03C01+ or C03C02+ or C03C07+};
16 |
17 | % C04
18 | "is" "was":
19 | {C02C04- or C06C04- or C08C04- or C09C04-} & {C04C05+ or C04C06+ or C04C07+ or C04C10+ or C04C11+};
20 |
21 | % C05
22 | "food" "parent":
23 | {C04C05- or C08C05-} & {C05C01+};
24 |
25 | % C06
26 | "daughter" "son":
27 | {C04C06- or C08C06-} & {C06C01+ or C06C03+ or C06C04+};
28 |
29 | % C07
30 | "now":
31 | (C03C07-) or (C04C07-);
32 |
33 | % C08
34 | "LEFT-WALL" "a":
35 | (C08C02+) or (C08C03+) or (C08C04+) or (C08C05+) or (C08C06+) or (C08C09+) or (C08C10+) or (C08C12+);
36 |
37 | % C09
38 | "dad" "mom":
39 | {C08C09-} & {C09C03+ or C09C04+};
40 |
41 | % C10
42 | "child" "human":
43 | (C04C10-) or (C08C10-);
44 |
45 | % C11
46 | "not":
47 | (C04C11-);
48 |
49 | % C12
50 | ".":
51 | (C08C12-);
52 |
53 | UNKNOWN-WORD: XXX+;
54 |
55 | % 12 word clusters, 12 Link Grammar rules.
56 | % Link Grammar file saved to: /home/obaskov/language-learning/output/POC-English-NoAmb-2018-08-09/POC-English-NoAmb_LG-English_connectors-DRK-connectors_LEFT-WALL_period_no-generalization/dict_12C_2018-08-09_0005.4.0.dict
--------------------------------------------------------------------------------
/html/test/nlp/grammar_test_dict.txt:
--------------------------------------------------------------------------------
1 | % Grammar Learner v.0.4 2018-05-18 18:08:49 UTC
2 | : V0v0v4+;
3 | : EN4us+;
4 |
5 | % C01
6 | ".":
7 | (C03C01-) or (C04C01-);
8 |
9 | % C02
10 | "LEFT-WALL":
11 | (C02C04+);
12 |
13 | % C03
14 | "bird" "extremity" "fish":
15 | (C06C03- & C03C01+);
16 |
17 | % C04
18 | "eagle" "feather" "fin" "herring" "parrot" "scale" "tuna" "wing":
19 | (C02C04- & C04C05+) or (C02C04- & C04C06+) or (C05C04- & C04C01+);
20 |
21 | % C05
22 | "has":
23 | (C04C05- & C05C04+);
24 |
25 | % C06
26 | "isa":
27 | (C04C06- & C06C03+);
28 |
29 | UNKNOWN-WORD: XXX+;
30 |
31 | % 6 word clusters, 6 Link Grammar rules.
32 | % Link Grammar file saved to: /home/oleg/language-learning/output/Generalization-Tests-2018-05-18/POC-Turtle/MST_fixed_manually/disjuncts-ILE-disjuncts/LEFT-WALL_period/generalized_rules/poc-turtle_6C_2018-05-18_0004.4.0.dict
--------------------------------------------------------------------------------
/html/test/nlp/index.html:
--------------------------------------------------------------------------------
1 |
2 | Aigents Test Page
3 |
4 |
5 | This is a test page. The outside temperature is 22 C°.
6 |
7 |
8 |
--------------------------------------------------------------------------------
/html/test/nlp/mi_test.txt:
--------------------------------------------------------------------------------
1 | tuna isa 0.5755021714720909
2 | isa fish 1.5
3 | fish isa 1.5
4 | eagle isa 1.2035333940851327
5 | isa bird 1.6629650127224291
6 | isa tuna 1.1
7 | a b 1
8 | b a 1
9 |
--------------------------------------------------------------------------------
/html/test/nlp/no_parent.txt:
--------------------------------------------------------------------------------
1 | C01 0 1 0.0 bird 0
2 | C02 0 2 0.0 eagle parrot 0 0
3 | C03 0 3 0.0 extremity 0
4 | C04 0 4 0.0 feather 0
5 | C05 0 5 0.0 fin 0
6 | C06 0 6 0.0 fish 0
7 | C07 0 7 0.0 has 0
8 | C02 0 8 0.0 herring tuna 0 0
9 | C02 0 9 0.0 isa 0
10 | C08 0 10 0.0 scale 0
11 | C09 0 11 0.0 wing 0
--------------------------------------------------------------------------------
/html/test/nlp/poc-english_4C_2018-06-06_0004.4.0.dict.txt:
--------------------------------------------------------------------------------
1 | % Grammar Learner v.0.4 2018-06-06 11:05:39 UTC
2 | : V0v0v4+;
3 | : EN4us+;
4 |
5 | % C01
6 | "are" "binoculars" "board" "sees" "to" "wants":
7 | (C01C01+) or (C01C01- & C01C03+) or (C01C01- & C01C04+) or (C02C01-) or (C03C01- & C01C01+ & C01C03+) or (C03C01- & C01C03+ & C01C01+) or (C03C01- & C01C03+ & C01C03+) or (C04C01- & C01C03+) or (C04C01- & C02C01-) or (C04C01- & C02C01- & C01C04+);
8 |
9 | % C02
10 | "directors" "hammer" "has" "liked" "on" "saw" "telescope" "with":
11 | (C02C02- & C02C01+) or (C02C02- & C02C02+) or (C02C02- & C03C02-) or (C02C04+) or (C03C02- & C02C01+) or (C03C02- & C02C02+) or (C03C02- & C02C02-) or (C03C02- & C02C03+) or (C03C02- & C02C03+ & C02C02+) or (C03C02- & C02C03+ & C02C03+) or (C03C02- & C02C04+) or (C04C02-) or (C04C02- & C02C01+) or (C04C02- & C02C02+) or (C04C02- & C02C04+);
12 |
13 | % C03
14 | "a" "before" "cake" "child" "dad" "daughter" "food" "her" "his" "human" "mom" "not" "now" "parent" "sausage" "son" "tool":
15 | (C01C03-) or (C01C03- & C03C03-) or (C02C03-) or (C02C03- & C03C02+) or (C03C01+) or (C03C02+) or (C03C03+) or (C03C03- & C01C03-) or (C03C03- & C03C04+) or (C03C03- & C04C03-) or (C03C04+) or (C04C03-);
16 |
17 | % C04
18 | "be" "chalk" "is" "knocked" "likes" "of" "sawed" "the" "was" "wood" "writes":
19 | (C01C04- & C04C02+) or (C02C04-) or (C02C04- & C04C03+) or (C03C04- & C04C02+) or (C03C04- & C04C02+ & C04C01+ & C04C02+) or (C03C04- & C04C02+ & C04C02+) or (C03C04- & C04C02+ & C04C02+ & C04C01+) or (C03C04- & C04C03+) or (C03C04- & C04C03+ & C04C03+) or (C03C04- & C04C03+ & C04C03+ & C04C03+) or (C03C04- & C04C04+ & C04C02+) or (C04C01+) or (C04C04+) or (C04C04- & C04C04-);
20 |
21 | UNKNOWN-WORD: XXX+;
22 |
23 | % 4 word clusters, 4 Link Grammar rules.
24 | % Link Grammar file saved to: /home/oleg/language-learning/output/POC-English-Amb-2018-06-06/POC-English-Amb/MST_fixed_manually/disjuncts-DRK-disjuncts/no-LEFT-WALL_no-period/generalized_rules/poc-english_4C_2018-06-06_0004.4.0.dict
--------------------------------------------------------------------------------
/html/test/nlp/poc-english_5C_2018-06-06_0004.4.0.dict.txt:
--------------------------------------------------------------------------------
1 | % Grammar Learner v.0.4 2018-06-06 11:05:37 UTC
2 | : V0v0v4+;
3 | : EN4us+;
4 |
5 | % C01
6 | "directors" "has" "with":
7 | (C02C01-) or (C03C01- & C01C02+) or (C03C01- & C01C05+) or (C04C01- & C01C05+) or (C05C01- & C01C02+) or (C05C01- & C01C04+) or (C05C01- & C01C05+);
8 |
9 | % C02
10 | "are" "binoculars" "board" "of" "sees" "to" "wants" "wood":
11 | (C01C02-) or (C02C02+) or (C02C02- & C02C01+) or (C02C02- & C02C03+) or (C02C02- & C02C04+) or (C03C02- & C02C02+ & C02C03+) or (C03C02- & C02C03+ & C02C02+) or (C03C02- & C02C03+ & C02C03+) or (C05C02- & C02C03+) or (C05C02- & C04C02-) or (C05C02- & C05C02-) or (C05C02- & C05C02- & C02C02+);
12 |
13 | % C03
14 | "a" "before" "cake" "child" "dad" "daughter" "food" "her" "his" "human" "mom" "not" "now" "parent" "sausage" "son" "tool":
15 | (C02C03-) or (C02C03- & C03C03-) or (C03C01+) or (C03C02+) or (C03C03+) or (C03C03- & C02C03-) or (C03C03- & C03C04+) or (C03C03- & C03C05+) or (C03C03- & C05C03-) or (C03C04+) or (C03C05+) or (C04C03-) or (C05C03-) or (C05C03- & C03C01+);
16 |
17 | % C04
18 | "be" "chalk" "knocked" "likes" "sawed":
19 | (C01C04-) or (C02C04- & C04C05+) or (C03C04- & C04C02+ & C04C01+) or (C03C04- & C04C03+) or (C03C04- & C04C03+ & C04C03+);
20 |
21 | % C05
22 | "hammer" "is" "liked" "on" "saw" "telescope" "the" "was" "writes":
23 | (C01C05- & C03C05-) or (C03C05- & C01C05-) or (C03C05- & C05C01+ & C05C05+ & C05C02+) or (C03C05- & C05C03+) or (C03C05- & C05C03+ & C05C01+) or (C03C05- & C05C03+ & C05C03+) or (C03C05- & C05C03+ & C05C03+ & C05C03+) or (C03C05- & C05C05+) or (C03C05- & C05C05+ & C05C01+) or (C03C05- & C05C05+ & C05C02+ & C05C01+) or (C04C05- & C05C02+) or (C05C02+) or (C05C05+) or (C05C05- & C05C02+) or (C05C05- & C05C03+);
24 |
25 | UNKNOWN-WORD: XXX+;
26 |
27 | % 5 word clusters, 5 Link Grammar rules.
28 | % Link Grammar file saved to: /home/oleg/language-learning/output/POC-English-Amb-2018-06-06/POC-English-Amb/MST_fixed_manually/disjuncts-DRK-disjuncts/no-LEFT-WALL_no-period/generalized_rules/poc-english_5C_2018-06-06_0004.4.0.dict
--------------------------------------------------------------------------------
/html/test/nlp/senses_demo.txt:
--------------------------------------------------------------------------------
1 | board ship 0.7 ship sail 0.9 0.6
2 | board directors 0.85 directors company enterprise 0.95 0.85 0.75
3 | board white 0.95 white chalk school write 1.0 0.95 0.8 0.75
4 | saw wood 0.8 wood board 0.9 0.6
5 | saw him 0.9 him her clearly yeasterday 1.0 0.9 0.8 0.7
6 |
7 |
--------------------------------------------------------------------------------
/html/test/stuff.jpg:
--------------------------------------------------------------------------------
1 | stub
--------------------------------------------------------------------------------
/html/test/text/debug_d0.txt:
--------------------------------------------------------------------------------
1 | Yes, I agree with Rob here, and actually compare AI to the Tractor. The tractor did make some individuals wealthy beyond normal, but also enabled overall wealth from agriculture. Water , in the case of the US, was the biggest hurtle. Now, all the small farmers are gone, and only agri-business remain…
2 |
3 | It has happened so I has participated in one of the workshops preparing the [International Congress for The governance of AI https://icgai.org/ (IGCAI) to take place in Prague, 16-28 April, 2020 [13] Here are few key points that I have realised for myself as follows. The main problem is not ab…
4 |
5 | It has happened so I has participated in one of the workshops preparing the [International Congress for The governance of AI https://icgai.org/ (IGCAI) to take place in Prague, 16-28 April, 2020 [13] Here are few key points that I have realised for myself as follows. The main problem is not ab…
6 |
7 | It has happened so I has participated in one of the workshops preparing the [International Congress for The governance of AI https://icgai.org/ (IGCAI) to take place in Prague, 16-28 April, 2020 [13] Here are few key points that I have realised for myself as follows. The main problem is not ab…
8 |
9 | That is a question - whether Smart City is just about decentralised network of intelligent devices or it is also about community of intelligent people deriving social decentralised consensus wit help of Reputation System like this: https://blog.singularitynet.io/smart-communities-for-smart-cities-w…
--------------------------------------------------------------------------------
/html/test/text/debug_da.txt:
--------------------------------------------------------------------------------
1 | That is a question - whether Smart City is just about decentralised network of intelligent devices or it is also about community of intelligent people deriving social decentralised consensus wit help of Reputation System like this: https://blog.singularitynet.io/smart-communities-for-smart-cities-w…
2 |
3 | Need your feedback. The Aigents platform has connected Facebook, Reddit, Steemit, Telegram and few other social communication media channels to the AI-based content monitoring for automatic news discovery from the static Internet, social feeds and instant messengers. https://blog.singularitynet.io/…
--------------------------------------------------------------------------------
/html/test/text/debug_ja.txt:
--------------------------------------------------------------------------------
1 | ok so now i have a little better idea of what aigents is, and it’s actually better for what i’m trying to do than i realized in many ways. This is gonna be a huge leap forward for the ability to manage a group network. I could go on and on but i want to ask you something. I realize this may not be p…
2 |
3 | What you’re doing here is awesome! I hope to cooperate with us and maybe try use your aigents for my whole group, and group projects. It seems like aigents would be awesome to help manage the whole group, but AI for a group project called “The AI and humans project” is what i really hope to find. (I…
--------------------------------------------------------------------------------
/html/test/text/debug_ro.txt:
--------------------------------------------------------------------------------
1 | It has happened so I has participated in one of the workshops preparing the [International Congress for The governance of AI https://icgai.org/ (IGCAI) to take place in Prague, 16-28 April, 2020 [13] Here are few key points that I have realised for myself as follows. The main problem is not ab…
2 |
3 | It has happened so I has participated in one of the workshops preparing the [International Congress for The governance of AI https://icgai.org/ (IGCAI) to take place in Prague, 16-28 April, 2020 [13] Here are few key points that I have realised for myself as follows. The main problem is not ab…
--------------------------------------------------------------------------------
/html/test1.html:
--------------------------------------------------------------------------------
1 | Here is the story. Everyone knows that dolphins are cool. They are just great.
--------------------------------------------------------------------------------
/html/test2.html:
--------------------------------------------------------------------------------
1 | Here is the story. Everyone knows that dolphins are cool. They are just great.
--------------------------------------------------------------------------------
/html/testUpper.html:
--------------------------------------------------------------------------------
1 | case Upper
2 |
--------------------------------------------------------------------------------
/html/think.html:
--------------------------------------------------------------------------------
1 | there is bird in the sky. there is bird on the tree.
2 | there is fried banana. there is fancy stuff.
3 | there is banana tree. there is mocking bird. there is life jacket. there is life style.
4 | here is bird in the sky. here is bird on the tree.
5 | here is small pig. here is large ball. here is happy life. here is life vest. here is long life. here is angry bird. here is bird nest. here is bird egg. here is flying bird. here is bird cage.
6 | here is banana on the plate. here is pen on the table.
--------------------------------------------------------------------------------
/html/ui/aigents-graph.css:
--------------------------------------------------------------------------------
1 |
18 |
--------------------------------------------------------------------------------
/html/ui/aigents-settings.js:
--------------------------------------------------------------------------------
1 | var site_url = "https://aigents.com"; var base_url = "https://aigents.com/al";//new production setup
2 | //var site_url = "http://localtest.com"; var base_url = "http://localtest.com:1180";//test setup
3 |
4 | var animation_enabled = false;
5 | var auto_refreshing = true;
6 | var logged_in = false;
7 | var logged_email = null;
8 | var refresh_millis = 10*60*1000;//how often to refresh news count
9 | var refresh_delay_millis = 5000;//how soon refresh the screen after re-think
10 | var timeout_millis = 0*1000;//how long to wait on AJAX requsts
11 | var status_seconds = 20;//how long the status stays shown and how fast it is show on idle
12 | var action_seconds = 5;//how long the action stays shown
13 | var display_emails = false;//whether emails of friends should be displayed or not in the view
14 |
15 | var paypal_setup = 'production'
16 | var paypal_app_id = 'AX14cg6ozAF8xi5iNOGcbnwajvsCZ-uR1iZl_EvAMXjttWrQV7Buzp9tOX329J3qcvS0fIIRy9kl-kvr'
17 | var paypal_monthly_usd = 9
18 | var paypal_yearly_usd = 99
19 | var rate_usd_rub = 63
20 |
--------------------------------------------------------------------------------
/html/ui/img/Google_Play_Store_48.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/Google_Play_Store_48.png
--------------------------------------------------------------------------------
/html/ui/img/Messenger_Logo_Color_RGB.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/Messenger_Logo_Color_RGB.png
--------------------------------------------------------------------------------
/html/ui/img/add.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/add.png
--------------------------------------------------------------------------------
/html/ui/img/aigent.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/aigent.png
--------------------------------------------------------------------------------
/html/ui/img/aigent128.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/aigent128.ico
--------------------------------------------------------------------------------
/html/ui/img/aigent32.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/aigent32.jpg
--------------------------------------------------------------------------------
/html/ui/img/aigent32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/aigent32.png
--------------------------------------------------------------------------------
/html/ui/img/aigent32left.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/aigent32left.png
--------------------------------------------------------------------------------
/html/ui/img/aigent_blank64.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/aigent_blank64.png
--------------------------------------------------------------------------------
/html/ui/img/aigent_btn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/aigent_btn.png
--------------------------------------------------------------------------------
/html/ui/img/back32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/back32.png
--------------------------------------------------------------------------------
/html/ui/img/back64.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/back64.png
--------------------------------------------------------------------------------
/html/ui/img/del.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/del.png
--------------------------------------------------------------------------------
/html/ui/img/discourse.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/discourse.png
--------------------------------------------------------------------------------
/html/ui/img/edit.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/edit.png
--------------------------------------------------------------------------------
/html/ui/img/eth32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/eth32.png
--------------------------------------------------------------------------------
/html/ui/img/eyes_down.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/eyes_down.png
--------------------------------------------------------------------------------
/html/ui/img/eyes_large.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/eyes_large.png
--------------------------------------------------------------------------------
/html/ui/img/eyes_left.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/eyes_left.png
--------------------------------------------------------------------------------
/html/ui/img/eyes_normal.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/eyes_normal.png
--------------------------------------------------------------------------------
/html/ui/img/eyes_right.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/eyes_right.png
--------------------------------------------------------------------------------
/html/ui/img/eyes_sleep.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/eyes_sleep.png
--------------------------------------------------------------------------------
/html/ui/img/eyes_small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/eyes_small.png
--------------------------------------------------------------------------------
/html/ui/img/eyes_up.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/eyes_up.png
--------------------------------------------------------------------------------
/html/ui/img/fb_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/fb_logo.png
--------------------------------------------------------------------------------
/html/ui/img/folks_bb.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/folks_bb.png
--------------------------------------------------------------------------------
/html/ui/img/folks_gb.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/folks_gb.png
--------------------------------------------------------------------------------
/html/ui/img/folks_wb.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/folks_wb.png
--------------------------------------------------------------------------------
/html/ui/img/g+138.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/g+138.png
--------------------------------------------------------------------------------
/html/ui/img/g+46.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/g+46.png
--------------------------------------------------------------------------------
/html/ui/img/golos_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/golos_logo.png
--------------------------------------------------------------------------------
/html/ui/img/google_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/google_icon.png
--------------------------------------------------------------------------------
/html/ui/img/google_signin.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/google_signin.png
--------------------------------------------------------------------------------
/html/ui/img/graph_gb.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/graph_gb.png
--------------------------------------------------------------------------------
/html/ui/img/news.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/news.png
--------------------------------------------------------------------------------
/html/ui/img/ok.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/ok.png
--------------------------------------------------------------------------------
/html/ui/img/paypal-connect.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/paypal-connect.png
--------------------------------------------------------------------------------
/html/ui/img/paypal_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/paypal_icon.png
--------------------------------------------------------------------------------
/html/ui/img/paypal_icon_no_border.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/paypal_icon_no_border.png
--------------------------------------------------------------------------------
/html/ui/img/paypal_icon_no_border_grayed.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/paypal_icon_no_border_grayed.png
--------------------------------------------------------------------------------
/html/ui/img/paypal_logged.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/paypal_logged.png
--------------------------------------------------------------------------------
/html/ui/img/reddit.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/reddit.png
--------------------------------------------------------------------------------
/html/ui/img/reddit_grayed.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/reddit_grayed.png
--------------------------------------------------------------------------------
/html/ui/img/reddit_logged.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/reddit_logged.png
--------------------------------------------------------------------------------
/html/ui/img/rss.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/rss.png
--------------------------------------------------------------------------------
/html/ui/img/singularitynet.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/singularitynet.png
--------------------------------------------------------------------------------
/html/ui/img/sites.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/sites.png
--------------------------------------------------------------------------------
/html/ui/img/slack_add_to.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/slack_add_to.png
--------------------------------------------------------------------------------
/html/ui/img/slack_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/slack_logo.png
--------------------------------------------------------------------------------
/html/ui/img/steemit_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/steemit_logo.png
--------------------------------------------------------------------------------
/html/ui/img/steemit_logo_new.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/steemit_logo_new.png
--------------------------------------------------------------------------------
/html/ui/img/talks.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/talks.png
--------------------------------------------------------------------------------
/html/ui/img/telegram_circle.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/telegram_circle.png
--------------------------------------------------------------------------------
/html/ui/img/telegram_square.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/telegram_square.png
--------------------------------------------------------------------------------
/html/ui/img/things.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/things.png
--------------------------------------------------------------------------------
/html/ui/img/twitter_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/twitter_logo.png
--------------------------------------------------------------------------------
/html/ui/img/twitter_logo_grayed.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/twitter_logo_grayed.png
--------------------------------------------------------------------------------
/html/ui/img/vk_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/img/vk_logo.png
--------------------------------------------------------------------------------
/html/ui/jquery-ui-1.11.4.custom/images/ui-bg_glass_45_0078ae_1x400.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/jquery-ui-1.11.4.custom/images/ui-bg_glass_45_0078ae_1x400.png
--------------------------------------------------------------------------------
/html/ui/jquery-ui-1.11.4.custom/images/ui-bg_glass_55_f8da4e_1x400.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/jquery-ui-1.11.4.custom/images/ui-bg_glass_55_f8da4e_1x400.png
--------------------------------------------------------------------------------
/html/ui/jquery-ui-1.11.4.custom/images/ui-bg_glass_75_79c9ec_1x400.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/jquery-ui-1.11.4.custom/images/ui-bg_glass_75_79c9ec_1x400.png
--------------------------------------------------------------------------------
/html/ui/jquery-ui-1.11.4.custom/images/ui-bg_gloss-wave_45_e14f1c_500x100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/jquery-ui-1.11.4.custom/images/ui-bg_gloss-wave_45_e14f1c_500x100.png
--------------------------------------------------------------------------------
/html/ui/jquery-ui-1.11.4.custom/images/ui-bg_gloss-wave_50_6eac2c_500x100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/jquery-ui-1.11.4.custom/images/ui-bg_gloss-wave_50_6eac2c_500x100.png
--------------------------------------------------------------------------------
/html/ui/jquery-ui-1.11.4.custom/images/ui-bg_gloss-wave_75_2191c0_500x100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/jquery-ui-1.11.4.custom/images/ui-bg_gloss-wave_75_2191c0_500x100.png
--------------------------------------------------------------------------------
/html/ui/jquery-ui-1.11.4.custom/images/ui-bg_inset-hard_100_fcfdfd_1x100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/jquery-ui-1.11.4.custom/images/ui-bg_inset-hard_100_fcfdfd_1x100.png
--------------------------------------------------------------------------------
/html/ui/jquery-ui-1.11.4.custom/images/ui-icons_0078ae_256x240.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/jquery-ui-1.11.4.custom/images/ui-icons_0078ae_256x240.png
--------------------------------------------------------------------------------
/html/ui/jquery-ui-1.11.4.custom/images/ui-icons_056b93_256x240.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/jquery-ui-1.11.4.custom/images/ui-icons_056b93_256x240.png
--------------------------------------------------------------------------------
/html/ui/jquery-ui-1.11.4.custom/images/ui-icons_d8e7f3_256x240.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/jquery-ui-1.11.4.custom/images/ui-icons_d8e7f3_256x240.png
--------------------------------------------------------------------------------
/html/ui/jquery-ui-1.11.4.custom/images/ui-icons_e0fdff_256x240.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/jquery-ui-1.11.4.custom/images/ui-icons_e0fdff_256x240.png
--------------------------------------------------------------------------------
/html/ui/jquery-ui-1.11.4.custom/images/ui-icons_f5e175_256x240.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/jquery-ui-1.11.4.custom/images/ui-icons_f5e175_256x240.png
--------------------------------------------------------------------------------
/html/ui/jquery-ui-1.11.4.custom/images/ui-icons_f7a50d_256x240.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/jquery-ui-1.11.4.custom/images/ui-icons_f7a50d_256x240.png
--------------------------------------------------------------------------------
/html/ui/jquery-ui-1.11.4.custom/images/ui-icons_fcd113_256x240.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/html/ui/jquery-ui-1.11.4.custom/images/ui-icons_fcd113_256x240.png
--------------------------------------------------------------------------------
/php/agent/gettest.php:
--------------------------------------------------------------------------------
1 |
29 | array(
30 | 'method' => 'POST',
31 | 'content' => $postdata
32 | )
33 | );
34 |
35 | $context = stream_context_create($opts);
36 |
37 | $result = file_get_contents('http://144.217.94.119:8090', false, $context);
38 | file_put_contents('uralresp_raw.txt',$result);
39 | $result = mb_convert_encoding($result, 'UTF-8');
40 | file_put_contents('uralresp_utf8.txt',$result);
41 | echo($result);
42 |
43 | ?>
44 |
--------------------------------------------------------------------------------
/resources/add32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/add32.png
--------------------------------------------------------------------------------
/resources/add64.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/add64.png
--------------------------------------------------------------------------------
/resources/aigent.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/aigent.gif
--------------------------------------------------------------------------------
/resources/aigent.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/aigent.png
--------------------------------------------------------------------------------
/resources/aigent128.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/aigent128.ico
--------------------------------------------------------------------------------
/resources/aigent128.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/aigent128.png
--------------------------------------------------------------------------------
/resources/aigent32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/aigent32.png
--------------------------------------------------------------------------------
/resources/aigentnews128.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/aigentnews128.png
--------------------------------------------------------------------------------
/resources/body128.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/body128.png
--------------------------------------------------------------------------------
/resources/body32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/body32.png
--------------------------------------------------------------------------------
/resources/body64.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/body64.png
--------------------------------------------------------------------------------
/resources/del32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/del32.png
--------------------------------------------------------------------------------
/resources/del64.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/del64.png
--------------------------------------------------------------------------------
/resources/edit32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/edit32.png
--------------------------------------------------------------------------------
/resources/edit64.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/edit64.png
--------------------------------------------------------------------------------
/resources/eyes_down.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/eyes_down.png
--------------------------------------------------------------------------------
/resources/eyes_large.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/eyes_large.png
--------------------------------------------------------------------------------
/resources/eyes_left.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/eyes_left.png
--------------------------------------------------------------------------------
/resources/eyes_normal.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/eyes_normal.gif
--------------------------------------------------------------------------------
/resources/eyes_normal.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/eyes_normal.png
--------------------------------------------------------------------------------
/resources/eyes_right.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/eyes_right.png
--------------------------------------------------------------------------------
/resources/eyes_sleep.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/eyes_sleep.png
--------------------------------------------------------------------------------
/resources/eyes_small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/eyes_small.png
--------------------------------------------------------------------------------
/resources/eyes_up.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/eyes_up.png
--------------------------------------------------------------------------------
/resources/folks.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/folks.gif
--------------------------------------------------------------------------------
/resources/folks32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/folks32.png
--------------------------------------------------------------------------------
/resources/manifest.mf:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | Rsrc-Class-Path: ./ servlet.jar mail.jar javax.json-1.0.2.jar jfxrt.jar pdfbox-app-2.0.18.jar
3 | Class-Path: ./ servlet.jar mail.jar javax.json-1.0.2.jar jfxrt.jar pdfbox-app-2.0.18.jar
4 | Rsrc-Main-Class: net.webstructor.gui.App
5 | Main-Class: org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader
6 |
7 |
--------------------------------------------------------------------------------
/resources/news.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/news.gif
--------------------------------------------------------------------------------
/resources/news32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/news32.png
--------------------------------------------------------------------------------
/resources/ok32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/ok32.png
--------------------------------------------------------------------------------
/resources/props32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/props32.png
--------------------------------------------------------------------------------
/resources/props64.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/props64.png
--------------------------------------------------------------------------------
/resources/sites.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/sites.gif
--------------------------------------------------------------------------------
/resources/sites32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/sites32.png
--------------------------------------------------------------------------------
/resources/talks.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/talks.gif
--------------------------------------------------------------------------------
/resources/talks32.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/talks32.gif
--------------------------------------------------------------------------------
/resources/talks32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/talks32.png
--------------------------------------------------------------------------------
/resources/things.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/things.gif
--------------------------------------------------------------------------------
/resources/things32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/things32.png
--------------------------------------------------------------------------------
/resources/w.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aigents/aigents-java/b55940b8162be8b903844af6fa5d72189eb1af75/resources/w.gif
--------------------------------------------------------------------------------
/src/main/java/net/webstructor/agi/LazyPlayer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * MIT License
3 | *
4 | * Copyright (c) 2005-2021 by Anton Kolonin, Aigents®
5 | *
6 | * Permission is hereby granted, free of charge, to any person obtaining a copy
7 | * of this software and associated documentation files (the "Software"), to deal
8 | * in the Software without restriction, including without limitation the rights
9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | * copies of the Software, and to permit persons to whom the Software is
11 | * furnished to do so, subject to the following conditions:
12 | *
13 | * The above copyright notice and this permission notice shall be included in all
14 | * copies or substantial portions of the Software.
15 | *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | * SOFTWARE.
23 | */
24 | package net.webstructor.agi;
25 |
26 | class LazyPlayer extends Player {//Stays in place, sometimes lucky
27 | @Override
28 | int move(Game g,State s) {
29 | return 0;
30 | }
31 | @Override
32 | void init() {
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/src/main/java/net/webstructor/agi/Player.java:
--------------------------------------------------------------------------------
1 | /*
2 | * MIT License
3 | *
4 | * Copyright (c) 2005-2021 by Anton Kolonin, Aigents®
5 | *
6 | * Permission is hereby granted, free of charge, to any person obtaining a copy
7 | * of this software and associated documentation files (the "Software"), to deal
8 | * in the Software without restriction, including without limitation the rights
9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | * copies of the Software, and to permit persons to whom the Software is
11 | * furnished to do so, subject to the following conditions:
12 | *
13 | * The above copyright notice and this permission notice shall be included in all
14 | * copies or substantial portions of the Software.
15 | *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | * SOFTWARE.
23 | */
24 | package net.webstructor.agi;
25 |
26 | import java.util.ArrayList;
27 |
28 | abstract class Player {
29 | ArrayList states = new ArrayList();
30 | abstract int move(Game g,State s);
31 | abstract void init();
32 | State selfState() {//self-state
33 | return null;
34 | }
35 | }
36 |
37 |
--------------------------------------------------------------------------------
/src/main/java/net/webstructor/agi/ReactivePlayer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * MIT License
3 | *
4 | * Copyright (c) 2005-2021 by Anton Kolonin, Aigents®
5 | *
6 | * Permission is hereby granted, free of charge, to any person obtaining a copy
7 | * of this software and associated documentation files (the "Software"), to deal
8 | * in the Software without restriction, including without limitation the rights
9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | * copies of the Software, and to permit persons to whom the Software is
11 | * furnished to do so, subject to the following conditions:
12 | *
13 | * The above copyright notice and this permission notice shall be included in all
14 | * copies or substantial portions of the Software.
15 | *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | * SOFTWARE.
23 | */
24 | package net.webstructor.agi;
25 |
26 | class ReactivePlayer extends Player {//Follows the ball, lose always
27 | @Override
28 | int move(Game g,State s) {
29 | int Xball = s.p.get("Xball");
30 | int Xrocket = s.p.get("Xrocket");
31 | return Xball < Xrocket ? -1 : Xball > Xrocket ? + 1 : 0;
32 | }
33 | @Override
34 | void init() {
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/src/main/java/net/webstructor/agi/SimplePredictivePlayer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * MIT License
3 | *
4 | * Copyright (c) 2005-2021 by Anton Kolonin, Aigents®
5 | *
6 | * Permission is hereby granted, free of charge, to any person obtaining a copy
7 | * of this software and associated documentation files (the "Software"), to deal
8 | * in the Software without restriction, including without limitation the rights
9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | * copies of the Software, and to permit persons to whom the Software is
11 | * furnished to do so, subject to the following conditions:
12 | *
13 | * The above copyright notice and this permission notice shall be included in all
14 | * copies or substantial portions of the Software.
15 | *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | * SOFTWARE.
23 | */
24 | package net.webstructor.agi;
25 |
26 | class SimplePredictivePlayer extends Player {//Follows the ball direction, always winds
27 | State old;
28 | @Override
29 | int move(Game g,State s) {
30 | int move = 0;
31 | if (old != null) {
32 | int oldXball = old.p.get("Xball");
33 | int Xball = s.p.get("Xball");
34 | int Xdir = Xball - oldXball;
35 | move = Xdir < 0 ? -1 : Xdir > 0 ? + 1 : 0;
36 | //TODO: eliminate this!
37 | if (!g.domain("Xrocket").contains(s.p.get("Xrocket")+move))//reflection
38 | move *= -1;
39 | }
40 | old = s;
41 | return move;
42 | }
43 | @Override
44 | void init() {
45 | old = null;
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/src/main/java/net/webstructor/al/All.java:
--------------------------------------------------------------------------------
1 | /*
2 | * MIT License
3 | *
4 | * Copyright (c) 2005-2018 by Anton Kolonin, Aigents
5 | *
6 | * Permission is hereby granted, free of charge, to any person obtaining a copy
7 | * of this software and associated documentation files (the "Software"), to deal
8 | * in the Software without restriction, including without limitation the rights
9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | * copies of the Software, and to permit persons to whom the Software is
11 | * furnished to do so, subject to the following conditions:
12 | *
13 | * The above copyright notice and this permission notice shall be included in all
14 | * copies or substantial portions of the Software.
15 | *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | * SOFTWARE.
23 | */
24 | package net.webstructor.al;
25 |
26 | import java.util.Collection;
27 |
28 | public class All extends Set {
29 | public All(Collection coll) {
30 | this.set = Set.toArray(coll);
31 | }
32 | public All(Object[] set) {
33 | this.set = set;
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/src/main/java/net/webstructor/al/Iter.java:
--------------------------------------------------------------------------------
1 | /*
2 | * MIT License
3 | *
4 | * Copyright (c) 2005-2018 by Anton Kolonin, Aigents
5 | *
6 | * Permission is hereby granted, free of charge, to any person obtaining a copy
7 | * of this software and associated documentation files (the "Software"), to deal
8 | * in the Software without restriction, including without limitation the rights
9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | * copies of the Software, and to permit persons to whom the Software is
11 | * furnished to do so, subject to the following conditions:
12 | *
13 | * The above copyright notice and this permission notice shall be included in all
14 | * copies or substantial portions of the Software.
15 | *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | * SOFTWARE.
23 | */
24 | package net.webstructor.al;
25 |
26 | public class Iter {
27 | Set set;
28 | int pos;
29 | public Iter(Set set) {
30 | pos = 0;
31 | this.set = set;
32 | }
33 | public void pos(int pos) {
34 | this.pos = pos;//TODO: validation
35 | }
36 | public int cur() {
37 | return pos;
38 | }
39 | public Object get() {//TODO:can be String or Set, right?
40 | return has() ? set.get(pos): null;
41 | }
42 | public Object next() {//TODO:can be String or Set, right?
43 | return has() ? set.get(pos++): null;
44 | }
45 | public boolean has() {
46 | return pos < set.size();
47 | }
48 | public int size() {
49 | return set.size();
50 | }
51 | public String toString() {
52 | return set != null && pos < set.size() ? set.get(pos).toString() : "null";
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/src/main/java/net/webstructor/al/Ref.java:
--------------------------------------------------------------------------------
1 | /*
2 | * MIT License
3 | *
4 | * Copyright (c) 2005-2018 by Anton Kolonin, Aigents
5 | *
6 | * Permission is hereby granted, free of charge, to any person obtaining a copy
7 | * of this software and associated documentation files (the "Software"), to deal
8 | * in the Software without restriction, including without limitation the rights
9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | * copies of the Software, and to permit persons to whom the Software is
11 | * furnished to do so, subject to the following conditions:
12 | *
13 | * The above copyright notice and this permission notice shall be included in all
14 | * copies or substantial portions of the Software.
15 | *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | * SOFTWARE.
23 | */
24 | package net.webstructor.al;
25 |
26 | public class Ref extends Term {
27 | private Object obj = null;
28 | public Ref(boolean is,Object ref) {
29 | super(is);
30 | obj = ref;
31 | }
32 | public int size() {
33 | return obj == null? 0: 1;
34 | }
35 | public Object get(int i) {
36 | return obj;
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/src/main/java/net/webstructor/al/Seq.java:
--------------------------------------------------------------------------------
1 | /*
2 | * MIT License
3 | *
4 | * Copyright (c) 2005-2018 by Anton Kolonin, Aigents
5 | *
6 | * Permission is hereby granted, free of charge, to any person obtaining a copy
7 | * of this software and associated documentation files (the "Software"), to deal
8 | * in the Software without restriction, including without limitation the rights
9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | * copies of the Software, and to permit persons to whom the Software is
11 | * furnished to do so, subject to the following conditions:
12 | *
13 | * The above copyright notice and this permission notice shall be included in all
14 | * copies or substantial portions of the Software.
15 | *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | * SOFTWARE.
23 | */
24 | package net.webstructor.al;
25 |
26 | public class Seq extends Set {
27 | //TODO:extend All
28 | public Seq(Object[] set) {
29 | this.set = set;
30 | }
31 |
32 | //tear the head off
33 | public Seq reduceHead() {
34 | if (size() <= 1)
35 | return null;
36 | Object[] ext = new Object[size() - 1];
37 | for (int i = 1; i < size(); i++)
38 | ext[i - 1] = get(i);
39 | return new Seq(ext);
40 | }
41 |
42 | }
43 |
44 |
--------------------------------------------------------------------------------
/src/main/java/net/webstructor/al/Term.java:
--------------------------------------------------------------------------------
1 | /*
2 | * MIT License
3 | *
4 | * Copyright (c) 2005-2018 by Anton Kolonin, Aigents
5 | *
6 | * Permission is hereby granted, free of charge, to any person obtaining a copy
7 | * of this software and associated documentation files (the "Software"), to deal
8 | * in the Software without restriction, including without limitation the rights
9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | * copies of the Software, and to permit persons to whom the Software is
11 | * furnished to do so, subject to the following conditions:
12 | *
13 | * The above copyright notice and this permission notice shall be included in all
14 | * copies or substantial portions of the Software.
15 | *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | * SOFTWARE.
23 | */
24 | package net.webstructor.al;
25 |
26 | public abstract class Term {
27 | private boolean is;
28 |
29 | public abstract int size();
30 | public abstract Object get(int i);
31 | public Term() {
32 | is = true;
33 | }
34 | public Term(boolean is) {
35 | this.is = is;
36 | }
37 | public boolean is() {
38 | return this.is;
39 | }
40 | public void is(boolean is) {
41 | this.is = is;
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/src/main/java/net/webstructor/cat/BasicCalculator.java:
--------------------------------------------------------------------------------
1 | /*
2 | * MIT License
3 | *
4 | * Copyright (c) 2005-2018 by Anton Kolonin, Aigents
5 | *
6 | * Permission is hereby granted, free of charge, to any person obtaining a copy
7 | * of this software and associated documentation files (the "Software"), to deal
8 | * in the Software without restriction, including without limitation the rights
9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | * copies of the Software, and to permit persons to whom the Software is
11 | * furnished to do so, subject to the following conditions:
12 | *
13 | * The above copyright notice and this permission notice shall be included in all
14 | * copies or substantial portions of the Software.
15 | *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | * SOFTWARE.
23 | */
24 | package net.webstructor.cat;
25 |
26 | public class BasicCalculator implements Calculator
27 | {
28 | Server m_server;
29 | public BasicCalculator(Server server)
30 | {
31 | m_server = server;
32 | }
33 |
34 | public void extractDocFeatures(int docId, int[] tokenId)
35 | {
36 | // TODO: Add PilotCalculator.extractDocFeatures implementation
37 | }
38 |
39 | public Relation suggestDocCats(int docId)
40 | {
41 | // TODO: Add PilotCalculator.suggestDocCats implementation
42 | return null;
43 | }
44 |
45 | public void calculateFeatureMetrics()
46 | {
47 | // TODO: Add PilotCalculator.calculateFeatureMetrics implementation
48 | }
49 |
50 | }
51 |
--------------------------------------------------------------------------------
/src/main/java/net/webstructor/cat/Calculator.java:
--------------------------------------------------------------------------------
1 | /*
2 | * MIT License
3 | *
4 | * Copyright (c) 2005-2018 by Anton Kolonin, Aigents
5 | *
6 | * Permission is hereby granted, free of charge, to any person obtaining a copy
7 | * of this software and associated documentation files (the "Software"), to deal
8 | * in the Software without restriction, including without limitation the rights
9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | * copies of the Software, and to permit persons to whom the Software is
11 | * furnished to do so, subject to the following conditions:
12 | *
13 | * The above copyright notice and this permission notice shall be included in all
14 | * copies or substantial portions of the Software.
15 | *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | * SOFTWARE.
23 | */
24 | package net.webstructor.cat;
25 |
26 | public interface Calculator
27 | {
28 | void extractDocFeatures(int docId,int[] tokenId); // extracts the features from the document given the current feature metrics
29 | Relation suggestDocCats(int docId); // given the current feature metrics, suggest categories for a document
30 | void calculateFeatureMetrics(); // recalculate all feature metrics, given the current set of document-category relations
31 | }
32 |
--------------------------------------------------------------------------------
/src/main/java/net/webstructor/cat/InteractorItem.java:
--------------------------------------------------------------------------------
1 | /*
2 | * MIT License
3 | *
4 | * Copyright (c) 2005-2018 by Anton Kolonin, Aigents
5 | *
6 | * Permission is hereby granted, free of charge, to any person obtaining a copy
7 | * of this software and associated documentation files (the "Software"), to deal
8 | * in the Software without restriction, including without limitation the rights
9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | * copies of the Software, and to permit persons to whom the Software is
11 | * furnished to do so, subject to the following conditions:
12 | *
13 | * The above copyright notice and this permission notice shall be included in all
14 | * copies or substantial portions of the Software.
15 | *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | * SOFTWARE.
23 | */
24 | package net.webstructor.cat;
25 |
26 | public class InteractorItem implements Item
27 | {
28 | int m_id;
29 | String m_name;
30 | public InteractorItem(int id, String name)
31 | {
32 | m_id = id;
33 | m_name = name;
34 | }
35 |
36 |
37 | public int getId()
38 | {
39 | return m_id;
40 | }
41 |
42 | public String getName()
43 | {
44 | return m_name;
45 | }
46 |
47 | //public int compareTo(Item i)
48 | public int compareTo(Object i)
49 | {
50 | return getName().compareTo(((Item)i).getName());
51 | }
52 | }
53 |
54 |
--------------------------------------------------------------------------------
/src/main/java/net/webstructor/cat/Item.java:
--------------------------------------------------------------------------------
1 | /*
2 | * MIT License
3 | *
4 | * Copyright (c) 2005-2018 by Anton Kolonin, Aigents
5 | *
6 | * Permission is hereby granted, free of charge, to any person obtaining a copy
7 | * of this software and associated documentation files (the "Software"), to deal
8 | * in the Software without restriction, including without limitation the rights
9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | * copies of the Software, and to permit persons to whom the Software is
11 | * furnished to do so, subject to the following conditions:
12 | *
13 | * The above copyright notice and this permission notice shall be included in all
14 | * copies or substantial portions of the Software.
15 | *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | * SOFTWARE.
23 | */
24 | package net.webstructor.cat;
25 |
26 | //public interface Item extends Comparable
27 | public interface Item extends Comparable
28 | {
29 | int getId(); //get unique item id of the item
30 | String getName(); //get symbolic representation of the item
31 | }
32 |
--------------------------------------------------------------------------------
/src/main/java/net/webstructor/cat/Reader.java:
--------------------------------------------------------------------------------
1 | /*
2 | * MIT License
3 | *
4 | * Copyright (c) 2005-2018 by Anton Kolonin, Aigents
5 | *
6 | * Permission is hereby granted, free of charge, to any person obtaining a copy
7 | * of this software and associated documentation files (the "Software"), to deal
8 | * in the Software without restriction, including without limitation the rights
9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | * copies of the Software, and to permit persons to whom the Software is
11 | * furnished to do so, subject to the following conditions:
12 | *
13 | * The above copyright notice and this permission notice shall be included in all
14 | * copies or substantial portions of the Software.
15 | *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | * SOFTWARE.
23 | */
24 | package net.webstructor.cat;
25 |
26 | import java.io.IOException;
27 |
28 | public interface Reader
29 | {
30 | boolean canReadDoc(String docName); // checks if document docName (URI, URL or path) can be read by given reader
31 | String readDocData(String docName) throws IOException; // reads the documents into character data
32 | }
--------------------------------------------------------------------------------
/src/main/java/net/webstructor/cat/RelevantItem.java:
--------------------------------------------------------------------------------
1 | /*
2 | * MIT License
3 | *
4 | * Copyright (c) 2005-2018 by Anton Kolonin, Aigents
5 | *
6 | * Permission is hereby granted, free of charge, to any person obtaining a copy
7 | * of this software and associated documentation files (the "Software"), to deal
8 | * in the Software without restriction, including without limitation the rights
9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | * copies of the Software, and to permit persons to whom the Software is
11 | * furnished to do so, subject to the following conditions:
12 | *
13 | * The above copyright notice and this permission notice shall be included in all
14 | * copies or substantial portions of the Software.
15 | *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | * SOFTWARE.
23 | */
24 | package net.webstructor.cat;
25 |
26 | //public interface RelevantItem extends Comparable
27 | public interface RelevantItem extends Comparable
28 | {
29 | int getId(); //get unique id of the relation
30 | int getRelevantId(); //get id of the relevant item
31 | double getRelevance(); //get item relevance
32 | int getConfirmation(); //get relevance confirmation
33 | String getRelevantName(); //get name of the relevant item
34 | }
35 |
--------------------------------------------------------------------------------
/src/main/java/net/webstructor/cat/Server.java:
--------------------------------------------------------------------------------
1 | /*
2 | * MIT License
3 | *
4 | * Copyright (c) 2005-2018 by Anton Kolonin, Aigents
5 | *
6 | * Permission is hereby granted, free of charge, to any person obtaining a copy
7 | * of this software and associated documentation files (the "Software"), to deal
8 | * in the Software without restriction, including without limitation the rights
9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | * copies of the Software, and to permit persons to whom the Software is
11 | * furnished to do so, subject to the following conditions:
12 | *
13 | * The above copyright notice and this permission notice shall be included in all
14 | * copies or substantial portions of the Software.
15 | *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | * SOFTWARE.
23 | */
24 | package net.webstructor.cat;
25 |
26 | public interface Server
27 | {
28 | Reader[] getReaders();
29 | Interactor getInteractor();
30 | Processor getProcessor();
31 | Calculator getCalculator();
32 | Tokenizer getTokenizer();
33 | Storager getStorager();
34 | }
35 |
--------------------------------------------------------------------------------
/src/main/java/net/webstructor/cat/TextStringReader.java:
--------------------------------------------------------------------------------
1 | /*
2 | * MIT License
3 | *
4 | * Copyright (c) 2005-2018 by Anton Kolonin, Aigents
5 | *
6 | * Permission is hereby granted, free of charge, to any person obtaining a copy
7 | * of this software and associated documentation files (the "Software"), to deal
8 | * in the Software without restriction, including without limitation the rights
9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | * copies of the Software, and to permit persons to whom the Software is
11 | * furnished to do so, subject to the following conditions:
12 | *
13 | * The above copyright notice and this permission notice shall be included in all
14 | * copies or substantial portions of the Software.
15 | *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | * SOFTWARE.
23 | */
24 | package net.webstructor.cat;
25 |
26 | public class TextStringReader implements Reader
27 | {
28 | public TextStringReader()
29 | {
30 | //
31 | // TODO: Add constructor logic here
32 | //
33 | }
34 |
35 | public boolean canReadDoc(String docName)
36 | {
37 | return docName!=null;
38 | }
39 |
40 | public String readDocData(String docName)
41 | {
42 | // may need to dup the name, to help gc
43 | return docName;
44 | }
45 |
46 | }
47 |
--------------------------------------------------------------------------------
/src/main/java/net/webstructor/cat/Tokenizer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * MIT License
3 | *
4 | * Copyright (c) 2005-2018 by Anton Kolonin, Aigents
5 | *
6 | * Permission is hereby granted, free of charge, to any person obtaining a copy
7 | * of this software and associated documentation files (the "Software"), to deal
8 | * in the Software without restriction, including without limitation the rights
9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | * copies of the Software, and to permit persons to whom the Software is
11 | * furnished to do so, subject to the following conditions:
12 | *
13 | * The above copyright notice and this permission notice shall be included in all
14 | * copies or substantial portions of the Software.
15 | *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | * SOFTWARE.
23 | */
24 | package net.webstructor.cat;
25 |
26 | public interface Tokenizer
27 | {
28 | int[] getTokens(String docData,boolean ignoreCase,boolean lasyAdd) throws Exception; // reads the documents having it translated into the vector of tokens given the list of tokens specified by Processor, having the unexistent tokens added to the list
29 | }
30 |
--------------------------------------------------------------------------------
/src/main/java/net/webstructor/comm/HTTPHandler.java:
--------------------------------------------------------------------------------
1 | /*
2 | * MIT License
3 | *
4 | * Copyright (c) 2005-2019 by Anton Kolonin, Aigents
5 | *
6 | * Permission is hereby granted, free of charge, to any person obtaining a copy
7 | * of this software and associated documentation files (the "Software"), to deal
8 | * in the Software without restriction, including without limitation the rights
9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | * copies of the Software, and to permit persons to whom the Software is
11 | * furnished to do so, subject to the following conditions:
12 | *
13 | * The above copyright notice and this permission notice shall be included in all
14 | * copies or substantial portions of the Software.
15 | *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | * SOFTWARE.
23 | */
24 | package net.webstructor.comm;
25 |
26 | import java.io.IOException;
27 |
28 | /**
29 | * @param args - array with url, header, request
30 | * @return true if handled
31 | * @throws IOException
32 | */
33 | public interface HTTPHandler {
34 | public boolean handleHTTP(HTTPeer parent, String url, String header, String request, String cookie) throws IOException;
35 | }
36 |
--------------------------------------------------------------------------------
/src/main/java/net/webstructor/core/Actioner.java:
--------------------------------------------------------------------------------
1 | /*
2 | * MIT License
3 | *
4 | * Copyright (c) 2005-2019 by Anton Kolonin, Aigents
5 | *
6 | * Permission is hereby granted, free of charge, to any person obtaining a copy
7 | * of this software and associated documentation files (the "Software"), to deal
8 | * in the Software without restriction, including without limitation the rights
9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | * copies of the Software, and to permit persons to whom the Software is
11 | * furnished to do so, subject to the following conditions:
12 | *
13 | * The above copyright notice and this permission notice shall be included in all
14 | * copies or substantial portions of the Software.
15 | *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | * SOFTWARE.
23 | */
24 | package net.webstructor.core;
25 |
26 | /**
27 | * Abstract doer of an Action
28 | * @author akolonin
29 | *
30 | */
31 | public abstract class Actioner {
32 | public abstract boolean act(Environment env, Storager storager, Thing context, Thing actor);
33 | }
34 |
--------------------------------------------------------------------------------
/src/main/java/net/webstructor/core/Agent.java:
--------------------------------------------------------------------------------
1 | /*
2 | * MIT License
3 | *
4 | * Copyright (c) 2005-2018 by Anton Kolonin, Aigents
5 | *
6 | * Permission is hereby granted, free of charge, to any person obtaining a copy
7 | * of this software and associated documentation files (the "Software"), to deal
8 | * in the Software without restriction, including without limitation the rights
9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | * copies of the Software, and to permit persons to whom the Software is
11 | * furnished to do so, subject to the following conditions:
12 | *
13 | * The above copyright notice and this permission notice shall be included in all
14 | * copies or substantial portions of the Software.
15 | *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | * SOFTWARE.
23 | */
24 | package net.webstructor.core;
25 |
26 | public abstract class Agent extends Thing
27 | {
28 | }
29 |
--------------------------------------------------------------------------------
/src/main/java/net/webstructor/core/Environment.java:
--------------------------------------------------------------------------------
1 | /*
2 | * MIT License
3 | *
4 | * Copyright (c) 2005-2020 by Anton Kolonin, Aigents®
5 | *
6 | * Permission is hereby granted, free of charge, to any person obtaining a copy
7 | * of this software and associated documentation files (the "Software"), to deal
8 | * in the Software without restriction, including without limitation the rights
9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | * copies of the Software, and to permit persons to whom the Software is
11 | * furnished to do so, subject to the following conditions:
12 | *
13 | * The above copyright notice and this permission notice shall be included in all
14 | * copies or substantial portions of the Software.
15 | *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | * SOFTWARE.
23 | */
24 | package net.webstructor.core;
25 |
26 | import java.io.File;
27 |
28 | import net.webstructor.data.Cacher;
29 |
30 | public interface Environment {
31 | public void debug(String str);
32 | public void error(String str,Throwable e);
33 | public int checkMemory();//in range 0-100 percents
34 | public File getFile(String path);
35 | public void register(String path, Cacher cacher);
36 | public void register(String action, Actioner actioner);//TODO: add class/name, add option to unregister
37 | public Actioner getActioner(String action);//TODO: actually act as an Actioner?
38 | public String[] getActions();//TODO: set instead of String[]
39 | public Anything getSelf();//properties
40 | }
41 |
--------------------------------------------------------------------------------
/src/main/java/net/webstructor/core/Mistake.java:
--------------------------------------------------------------------------------
1 | /*
2 | * MIT License
3 | *
4 | * Copyright (c) 2005-2018 by Anton Kolonin, Aigents
5 | *
6 | * Permission is hereby granted, free of charge, to any person obtaining a copy
7 | * of this software and associated documentation files (the "Software"), to deal
8 | * in the Software without restriction, including without limitation the rights
9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | * copies of the Software, and to permit persons to whom the Software is
11 | * furnished to do so, subject to the following conditions:
12 | *
13 | * The above copyright notice and this permission notice shall be included in all
14 | * copies or substantial portions of the Software.
15 | *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | * SOFTWARE.
23 | */
24 | package net.webstructor.core;
25 |
26 | public class Mistake extends Exception {
27 | private static final long serialVersionUID = -6353534528104549163L;
28 | public final static String no_right = "no right";
29 | public final static String no_thing = "no thing";
30 | public Mistake(String text){
31 | super(text);
32 | }
33 | public static String message(Throwable e) {
34 | if (e == null)
35 | return "Unknown";
36 | String m = e.getMessage();
37 | return m != null ? m : e.getClass().getSimpleName();
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/src/main/java/net/webstructor/core/Named.java:
--------------------------------------------------------------------------------
1 | /*
2 | * MIT License
3 | *
4 | * Copyright (c) 2005-2020 by Anton Kolonin, Aigents®
5 | *
6 | * Permission is hereby granted, free of charge, to any person obtaining a copy
7 | * of this software and associated documentation files (the "Software"), to deal
8 | * in the Software without restriction, including without limitation the rights
9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | * copies of the Software, and to permit persons to whom the Software is
11 | * furnished to do so, subject to the following conditions:
12 | *
13 | * The above copyright notice and this permission notice shall be included in all
14 | * copies or substantial portions of the Software.
15 | *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | * SOFTWARE.
23 | */
24 | package net.webstructor.core;
25 |
26 | public interface Named {
27 | /**
28 | * Name of the object/compontent/handler like "facebook", "www", "ethereum", "rss", "twitter", "reddit", "discourse", etc.
29 | * @return name of the object/compontent/handler (lowercase expected)
30 | */
31 | public String name();
32 | }
33 |
--------------------------------------------------------------------------------
/src/main/java/net/webstructor/core/Scheduler.java:
--------------------------------------------------------------------------------
1 | /*
2 | * MIT License
3 | *
4 | * Copyright (c) 2005-2020 by Anton Kolonin, Aigents®
5 | *
6 | * Permission is hereby granted, free of charge, to any person obtaining a copy
7 | * of this software and associated documentation files (the "Software"), to deal
8 | * in the Software without restriction, including without limitation the rights
9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | * copies of the Software, and to permit persons to whom the Software is
11 | * furnished to do so, subject to the following conditions:
12 | *
13 | * The above copyright notice and this permission notice shall be included in all
14 | * copies or substantial portions of the Software.
15 | *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | * SOFTWARE.
23 | */
24 | package net.webstructor.core;
25 |
26 | import net.webstructor.al.Period;
27 |
28 | //TODO: make the Updater generic class for all Spidereres, Saver, etc.
29 | public abstract class Scheduler {
30 | long period = Period.HOUR;
31 | long scheduled = 0;
32 | public void setPeriod(long period){
33 | this.period = period;
34 | }
35 | //TODO: make synchronized
36 | public void schedule(){
37 | scheduled = 0;
38 | }
39 | protected abstract void run();
40 | public void check(boolean force) {
41 | long time = System.currentTimeMillis();
42 | if (force || scheduled < time){
43 | run();
44 | scheduled = (scheduled == 0 ? time : scheduled) + period;
45 | }
46 | }
47 | }
48 |
49 |
--------------------------------------------------------------------------------
/src/main/java/net/webstructor/core/Updater.java:
--------------------------------------------------------------------------------
1 | /*
2 | * MIT License
3 | *
4 | * Copyright (c) 2005-2020 by Anton Kolonin, Aigents®
5 | *
6 | * Permission is hereby granted, free of charge, to any person obtaining a copy
7 | * of this software and associated documentation files (the "Software"), to deal
8 | * in the Software without restriction, including without limitation the rights
9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | * copies of the Software, and to permit persons to whom the Software is
11 | * furnished to do so, subject to the following conditions:
12 | *
13 | * The above copyright notice and this permission notice shall be included in all
14 | * copies or substantial portions of the Software.
15 | *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | * SOFTWARE.
23 | */
24 | package net.webstructor.core;
25 |
26 | import java.io.IOException;
27 |
28 | public interface Updater {
29 | public boolean update(Thing peer, String sessionKey, String subject, String content, String signature) throws IOException;
30 | public boolean notifyable(Thing peer);
31 | }
32 |
--------------------------------------------------------------------------------
/src/main/java/net/webstructor/data/Cacher.java:
--------------------------------------------------------------------------------
1 | /*
2 | * MIT License
3 | *
4 | * Copyright (c) 2018-2020 by Anton Kolonin, Aigents®
5 | *
6 | * Permission is hereby granted, free of charge, to any person obtaining a copy
7 | * of this software and associated documentation files (the "Software"), to deal
8 | * in the Software without restriction, including without limitation the rights
9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | * copies of the Software, and to permit persons to whom the Software is
11 | * furnished to do so, subject to the following conditions:
12 | *
13 | * The above copyright notice and this permission notice shall be included in all
14 | * copies or substantial portions of the Software.
15 | *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | * SOFTWARE.
23 | */
24 | package net.webstructor.data;
25 |
26 | import java.util.Date;
27 |
28 | public interface Cacher {
29 | //TODO: make parameter
30 | public static final int MEMORY_THRESHOLD = 80;
31 |
32 | public void clear(boolean everything, Date till);
33 | public void free();
34 | }
35 |
--------------------------------------------------------------------------------
/src/main/java/net/webstructor/data/Linker.java:
--------------------------------------------------------------------------------
1 | /*
2 | * MIT License
3 | *
4 | * Copyright (c) 2005-2019 by Anton Kolonin, Aigents®
5 | *
6 | * Permission is hereby granted, free of charge, to any person obtaining a copy
7 | * of this software and associated documentation files (the "Software"), to deal
8 | * in the Software without restriction, including without limitation the rights
9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | * copies of the Software, and to permit persons to whom the Software is
11 | * furnished to do so, subject to the following conditions:
12 | *
13 | * The above copyright notice and this permission notice shall be included in all
14 | * copies or substantial portions of the Software.
15 | *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | * SOFTWARE.
23 | */
24 | package net.webstructor.data;
25 |
26 | public interface Linker {
27 |
28 | public void count(Object key,int count);
29 |
30 | public void count(Object key,ComplexNumber[] cn);
31 |
32 | public void count(Object key);
33 |
34 | public void count(Object key, double value);
35 |
36 | public void change(Object key, Number value);
37 |
38 | public java.util.Set keys();
39 |
40 | public int size();
41 |
42 | public Object get(Object key);
43 |
44 | public Number value(Object key);
45 |
46 | public Number value(Object key, int def);
47 |
48 | /**
49 | * @return array of key-value pairs with value as Integer in range 0..100
50 | */
51 | public Object[][] toRanked();
52 | public Object[][] toData();
53 | }
54 |
--------------------------------------------------------------------------------
/src/main/java/net/webstructor/data/OrderedSet.java:
--------------------------------------------------------------------------------
1 | /*
2 | * MIT License
3 | *
4 | * Copyright (c) 2005-2020 by Anton Kolonin, Aigents®
5 | *
6 | * Permission is hereby granted, free of charge, to any person obtaining a copy
7 | * of this software and associated documentation files (the "Software"), to deal
8 | * in the Software without restriction, including without limitation the rights
9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | * copies of the Software, and to permit persons to whom the Software is
11 | * furnished to do so, subject to the following conditions:
12 | *
13 | * The above copyright notice and this permission notice shall be included in all
14 | * copies or substantial portions of the Software.
15 | *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | * SOFTWARE.
23 | */
24 | package net.webstructor.data;
25 |
26 | import java.util.ArrayList;
27 | import java.util.HashSet;
28 |
29 | public class OrderedSet extends ArrayList {
30 | private static final long serialVersionUID = -7114034521031949539L;
31 | private HashSet set;
32 |
33 | public synchronized boolean add(T t){
34 | if (set.contains(t))
35 | return false;
36 | set.add(t);
37 | add(t);
38 | return true;
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/src/main/java/net/webstructor/data/Stater.java:
--------------------------------------------------------------------------------
1 | /*
2 | * MIT License
3 | *
4 | * Copyright (c) 2018-2020 by Anton Kolonin, Aigents®
5 | *
6 | * Permission is hereby granted, free of charge, to any person obtaining a copy
7 | * of this software and associated documentation files (the "Software"), to deal
8 | * in the Software without restriction, including without limitation the rights
9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | * copies of the Software, and to permit persons to whom the Software is
11 | * furnished to do so, subject to the following conditions:
12 | *
13 | * The above copyright notice and this permission notice shall be included in all
14 | * copies or substantial portions of the Software.
15 | *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | * SOFTWARE.
23 | */
24 | package net.webstructor.data;
25 |
26 | import java.util.Map;
27 |
28 | import net.webstructor.core.Environment;
29 |
30 | public interface Stater {
31 | public void init(String name, Environment env, String path);
32 | public void save();
33 | public void clear();
34 | public boolean hasState(Object date, String[] domains);//TODO: domains/dimensions!?
35 | public Map getLinkers(Object date);
36 | public Map getLinkers(Object date, String[] domains);//TODO: domains/dimensions!?
37 | //TODO: put
38 | public void add(Object date, Object account, Object domain, Object dimension, int intvalue);
39 | public void add(Object date, Object domain, Object dimension, Linker byaccount);
40 | }
41 |
42 |
43 |
--------------------------------------------------------------------------------
/src/main/java/net/webstructor/data/Transcoder.java:
--------------------------------------------------------------------------------
1 | /*
2 | * MIT License
3 | *
4 | * Copyright (c) 2005-2020 by Anton Kolonin, Aigents®
5 | *
6 | * Permission is hereby granted, free of charge, to any person obtaining a copy
7 | * of this software and associated documentation files (the "Software"), to deal
8 | * in the Software without restriction, including without limitation the rights
9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | * copies of the Software, and to permit persons to whom the Software is
11 | * furnished to do so, subject to the following conditions:
12 | *
13 | * The above copyright notice and this permission notice shall be included in all
14 | * copies or substantial portions of the Software.
15 | *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | * SOFTWARE.
23 | */
24 | package net.webstructor.data;
25 |
26 | public interface Transcoder {
27 | public Object transcode(Object source);
28 | public Object recovercode(Object source);
29 | }
30 |
--------------------------------------------------------------------------------
/src/main/java/net/webstructor/gram/lang/Character.java:
--------------------------------------------------------------------------------
1 | /*
2 | * MIT License
3 | *
4 | * Copyright (c) 2005-2018 by Anton Kolonin, Aigents
5 | *
6 | * Permission is hereby granted, free of charge, to any person obtaining a copy
7 | * of this software and associated documentation files (the "Software"), to deal
8 | * in the Software without restriction, including without limitation the rights
9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | * copies of the Software, and to permit persons to whom the Software is
11 | * furnished to do so, subject to the following conditions:
12 | *
13 | * The above copyright notice and this permission notice shall be included in all
14 | * copies or substantial portions of the Software.
15 | *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | * SOFTWARE.
23 | */
24 | package net.webstructor.gram.lang;
25 |
26 | public interface Character
27 | {
28 | public static final char LEFT_WALL = '_';
29 | public static final char RIGHT_WALL = ' ';
30 | }
31 |
--------------------------------------------------------------------------------
/src/main/java/net/webstructor/gram/main/Filer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * MIT License
3 | *
4 | * Copyright (c) 2005-2018 by Anton Kolonin, Aigents
5 | *
6 | * Permission is hereby granted, free of charge, to any person obtaining a copy
7 | * of this software and associated documentation files (the "Software"), to deal
8 | * in the Software without restriction, including without limitation the rights
9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | * copies of the Software, and to permit persons to whom the Software is
11 | * furnished to do so, subject to the following conditions:
12 | *
13 | * The above copyright notice and this permission notice shall be included in all
14 | * copies or substantial portions of the Software.
15 | *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | * SOFTWARE.
23 | */
24 | package net.webstructor.gram.main;
25 |
26 | import net.webstructor.main.*;
27 | import net.webstructor.gram.core.MemoryStore;
28 |
29 | public class Filer extends Mainer
30 | {
31 |
32 | public static void main(String args[])
33 | {
34 | if (args.length<2)
35 | {
36 | println("Not enough arguments");
37 | return;
38 | }
39 | else
40 | {
41 | println("Opening ADB file "+args[0]);
42 | MemoryStore store = new MemoryStore(args[0]);
43 | try {
44 | println("Saving ADB file"+args[1]);
45 | store.save(args[1],true);
46 | } catch (Exception e) {
47 | System.out.println(e);
48 | }
49 | println("Done");
50 | }
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/src/main/java/net/webstructor/gram/util/Format.java:
--------------------------------------------------------------------------------
1 | /*
2 | * MIT License
3 | *
4 | * Copyright (c) 2005-2018 by Anton Kolonin, Aigents
5 | *
6 | * Permission is hereby granted, free of charge, to any person obtaining a copy
7 | * of this software and associated documentation files (the "Software"), to deal
8 | * in the Software without restriction, including without limitation the rights
9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | * copies of the Software, and to permit persons to whom the Software is
11 | * furnished to do so, subject to the following conditions:
12 | *
13 | * The above copyright notice and this permission notice shall be included in all
14 | * copies or substantial portions of the Software.
15 | *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | * SOFTWARE.
23 | */
24 | package net.webstructor.gram.util;
25 |
26 | public class Format
27 | {
28 | public static final String m_fieldDelim = ";";
29 | public static final String m_elementDelim = ",";
30 | public static final String m_openSetDelim = "(";
31 | public static final String m_closeSetDelim = ")";
32 | public static final String m_openArrayDelim = "[";
33 | public static final String m_closeArrayDelim = "]";
34 | public static final String m_innerStringDelim = "";
35 |
36 | public static Format defaultFormat = new Format();//TODO: maybe needed later for flexibility or cleanup otherwise
37 | }
38 |
--------------------------------------------------------------------------------
/src/main/java/net/webstructor/mine/MineServlet.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2005-2008, Anton Kolonin,
3 | * All rights reserved.
4 | *
5 | * This software is proprietary information belonging to Anton Kolonin.
6 | * You shall not disclose this and shall not use it in any way
7 | * without of written permission granted by Anton Kolonin.
8 | */
9 | package net.webstructor.mine;
10 |
11 | import java.io.*;
12 | import javax.servlet.*;
13 | import javax.servlet.http.*;
14 |
15 | public class MineServlet extends HttpServlet {
16 | static final long serialVersionUID = 20080503;
17 | public void doGet(HttpServletRequest request, HttpServletResponse response)
18 | throws IOException, ServletException
19 | {
20 | response.setContentType("text/html");
21 | PrintWriter out = response.getWriter();
22 | out.println("");
23 | out.println("");
24 | out.println("Hello from Mine!");
25 | out.println("");
26 | out.println("");
27 | out.println("
Hello from Mine!
");
28 | out.println("
Your query string is " + ((HttpServletRequest)request).getQueryString()+"
");
29 | out.println("");
30 | out.println("");
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/src/main/java/net/webstructor/mine/auth/AdmServer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2005-2008, Anton Kolonin,
3 | * All rights reserved.
4 | *
5 | * This software is proprietary information belonging to Anton Kolonin.
6 | * You shall not disclose this and shall not use it in any way
7 | * without of written permission granted by Anton Kolonin.
8 | */
9 | package net.webstructor.mine.auth;
10 |
11 | import java.util.HashMap;
12 | import net.webstructor.mine.util.StringContext;
13 | import net.webstructor.mine.store.Storage;
14 | import net.webstructor.mine.store.SimpleMemoryStorage;
15 |
16 | public class AdmServer {
17 |
18 | private static AdmServer m_instance = null;
19 |
20 | private HashMap m_sessions = new HashMap();
21 |
22 | public static AdmServer getInstance(String path){
23 | if (m_instance == null)
24 | m_instance = new AdmServer(path);
25 | return m_instance;
26 | }
27 |
28 | String m_path;
29 | Storage m_storage = null;
30 |
31 | public AdmServer(String path){
32 | m_path = path;
33 | }
34 |
35 | //TODO synchronize
36 | public String createSession(String username,String password,StringContext stringContext){
37 | if (m_storage == null) {
38 | try {
39 | m_storage = new SimpleMemoryStorage();
40 | m_storage.startUp(m_path,new StoreSchema());
41 | } catch (Exception e) {
42 | return e.toString();
43 | }
44 | }
45 | //TODO check username and password
46 | AuthSession sess = new AuthSession(
47 | this,
48 | new AdmSession(this,stringContext),
49 | stringContext);
50 | Integer id = sess.getId();
51 | m_sessions.put(id,sess);
52 | return id.toString();
53 | }
54 |
55 | //TODO synchronize
56 | public AuthSession getSession(String sessionid){
57 | Integer id = Integer.valueOf(sessionid);
58 | return (AuthSession)m_sessions.get(id);
59 | }
60 | }
61 |
--------------------------------------------------------------------------------
/src/main/java/net/webstructor/mine/auth/Asset.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2005-2008, Anton Kolonin,
3 | * All rights reserved.
4 | *
5 | * This software is proprietary information belonging to Anton Kolonin.
6 | * You shall not disclose this and shall not use it in any way
7 | * without of written permission granted by Anton Kolonin.
8 | */
9 | package net.webstructor.mine.auth;
10 |
11 | public class Asset {
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/src/main/java/net/webstructor/mine/auth/Group.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2005-2008, Anton Kolonin,
3 | * All rights reserved.
4 | *
5 | * This software is proprietary information belonging to Anton Kolonin.
6 | * You shall not disclose this and shall not use it in any way
7 | * without of written permission granted by Anton Kolonin.
8 | */
9 | package net.webstructor.mine.auth;
10 |
11 | public class Group {
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/src/main/java/net/webstructor/mine/core/CoreRelation.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2005-2008, Anton Kolonin,
3 | * All rights reserved.
4 | *
5 | * This software is proprietary information belonging to Anton Kolonin.
6 | * You shall not disclose this and shall not use it in any way
7 | * without of written permission granted by Anton Kolonin.
8 | */
9 | package net.webstructor.mine.core;
10 |
11 | public interface CoreRelation
12 | {
13 | int getType();
14 | int getId();
15 | int getId(int idx);
16 | String getName();
17 | int getArity();
18 | int[] getIds();
19 | boolean equals(CoreRelation r);
20 | }
21 |
--------------------------------------------------------------------------------
/src/main/java/net/webstructor/mine/core/Id.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2005-2008, Anton Kolonin,
3 | * All rights reserved.
4 | *
5 | * This software is proprietary information belonging to Anton Kolonin.
6 | * You shall not disclose this and shall not use it in any way
7 | * without of written permission granted by Anton Kolonin.
8 | */
9 | package net.webstructor.mine.core;
10 |
11 | public interface Id
12 | {
13 | // Nullary relations (arity = 0)
14 | public static final int TYPE = 1;
15 | public static final int TEXTTYPE = 2;
16 | public static final int DOMAIN = 3;
17 | public static final int FEATURETYPE = 4;
18 | public static final int TOKENTYPE = 16; //20070604
19 | // Unary relations (arity = 1, Parent)
20 | public static final int TOKEN = 5;
21 | public static final int TEXT = 6;
22 | public static final int CATEGORY = 7;
23 | public static final int FEATURE = 8;
24 | // Binary relations (arity = 2)
25 | public static final int TEXTCATEGORY = 9;
26 | public static final int TEXTTOKEN = 10;
27 | public static final int TEXTFEATURE = 11;
28 | public static final int FEATURETOKEN = 12;
29 | public static final int CATEGORYFEATURE = 13;
30 | public static final int CATEGORYDOMAIN = 14;
31 | public static final int CATEGORYCATEGORY = 15;//20070413
32 | // N-ary relations (arity = N, so any arity restricted by max)
33 | public static final int PATTERN = 17;//reserverd //20070604
34 | public static final int RESERVED = 1000;//reserved so user-defined Id's started with 1001 //20070604
35 |
36 | // Not really types but useful Ids
37 | public static final int KEYWORD = 401; // - Id of the FEATURETYPE for all Keyword features
38 | public static final int KEYWORDFRAME = 402; // - Id of the FEATURETYPE for all Keyword Frame features
39 | public static final int NOTCONFIRMED = -2147483648;
40 |
41 | // Not really types but useful constants
42 | public static final int MAXPATTERNLENGTH = 8;//reserved
43 | }
44 |
--------------------------------------------------------------------------------
/src/main/java/net/webstructor/mine/core/Item.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2005-2008, Anton Kolonin,
3 | * All rights reserved.
4 | *
5 | * This software is proprietary information belonging to Anton Kolonin.
6 | * You shall not disclose this and shall not use it in any way
7 | * without of written permission granted by Anton Kolonin.
8 | */
9 | package net.webstructor.mine.core;
10 |
11 | public interface Item extends Comparable
12 | {
13 | int getId(); //get unique item id of the item
14 | String getName(); //get symbolic representation of the item
15 | }
16 |
--------------------------------------------------------------------------------
/src/main/java/net/webstructor/mine/core/Relation.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2005-2008, Anton Kolonin,
3 | * All rights reserved.
4 | *
5 | * This software is proprietary information belonging to Anton Kolonin.
6 | * You shall not disclose this and shall not use it in any way
7 | * without of written permission granted by Anton Kolonin.
8 | */
9 | package net.webstructor.mine.core;
10 |
11 | public interface Relation extends CoreRelation {
12 | float getPosEvidence();
13 | float getNegEvidence();
14 | int getConfirmation();
15 | float getConfirmedEvidence();
16 | void assign(Relation r);
17 | }
18 |
--------------------------------------------------------------------------------
/src/main/java/net/webstructor/mine/core/RelevantItem.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2005-2008, Anton Kolonin,
3 | * All rights reserved.
4 | *
5 | * This software is proprietary information belonging to Anton Kolonin.
6 | * You shall not disclose this and shall not use it in any way
7 | * without of written permission granted by Anton Kolonin.
8 | */
9 | package net.webstructor.mine.core;
10 |
11 | public interface RelevantItem extends Comparable
12 | {
13 | int getId();
14 | int getRelevantId();
15 | float getEvidence();
16 | float getRelevance();
17 | float getRelative();
18 | int getConfirmation();
19 | String getRelevantName();
20 | }
21 |
--------------------------------------------------------------------------------
/src/main/java/net/webstructor/mine/inf/InfException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2005-2008, Anton Kolonin,
3 | * All rights reserved.
4 | *
5 | * This software is proprietary information belonging to Anton Kolonin.
6 | * You shall not disclose this and shall not use it in any way
7 | * without of written permission granted by Anton Kolonin.
8 | */
9 | package net.webstructor.mine.inf;
10 |
11 | public class InfException extends Exception {
12 | static final long serialVersionUID = 1;
13 | public InfException(String message) {
14 | super(message);
15 | }
16 | }
17 |
18 |
--------------------------------------------------------------------------------
/src/main/java/net/webstructor/mine/inf/InfServer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2005-2008, Anton Kolonin,
3 | * All rights reserved.
4 | *
5 | * This software is proprietary information belonging to Anton Kolonin.
6 | * You shall not disclose this and shall not use it in any way
7 | * without of written permission granted by Anton Kolonin.
8 | */
9 | package net.webstructor.mine.inf;
10 |
11 | import java.util.Hashtable;
12 |
13 | import net.webstructor.mine.auth.StoreSchema;
14 | import net.webstructor.mine.store.SimpleMemoryStorage;
15 | import net.webstructor.mine.store.Storage;
16 |
17 | public class InfServer {
18 |
19 | static Hashtable m_instances = new Hashtable();
20 |
21 | public static InfServer getInstance(String path) throws Exception {
22 | Object instance = m_instances.get(path);
23 | if (instance == null) {
24 | instance = new InfServer(path);
25 | m_instances.put(path,instance);
26 | }
27 | return (InfServer)instance;
28 | }
29 |
30 | Storage m_storage = null;
31 |
32 | InfServer(String path) throws Exception {
33 | m_storage = new SimpleMemoryStorage();
34 | m_storage.startUp(path,new StoreSchema());
35 | }
36 |
37 | }
38 |
--------------------------------------------------------------------------------
/src/main/java/net/webstructor/mine/store/Schema.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2005-2008, Anton Kolonin,
3 | * All rights reserved.
4 | *
5 | * This software is proprietary information belonging to Anton Kolonin.
6 | * You shall not disclose this and shall not use it in any way
7 | * without of written permission granted by Anton Kolonin.
8 | */
9 | package net.webstructor.mine.store;
10 |
11 | import net.webstructor.mine.core.CoreRelation;
12 |
13 | public interface Schema {
14 | public CoreRelation[] getRelations();
15 | }
16 |
--------------------------------------------------------------------------------
/src/main/java/net/webstructor/mine/store/StoreException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2005-2008, Anton Kolonin,
3 | * All rights reserved.
4 | *
5 | * This software is proprietary information belonging to Anton Kolonin.
6 | * You shall not disclose this and shall not use it in any way
7 | * without of written permission granted by Anton Kolonin.
8 | */
9 | package net.webstructor.mine.store;
10 |
11 | public class StoreException extends Exception {
12 | static final long serialVersionUID = 1;
13 | public StoreException(String message) {
14 | super(message);
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/src/main/java/net/webstructor/mine/util/ReadWriteLock.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2005-2008, Anton Kolonin,
3 | * All rights reserved.
4 | *
5 | * This software is proprietary information belonging to Anton Kolonin.
6 | * You shall not disclose this and shall not use it in any way
7 | * without of written permission granted by Anton Kolonin.
8 | */
9 | package net.webstructor.mine.util;
10 |
11 | public class ReadWriteLock
12 | {
13 | private int readers;
14 | private boolean writer;
15 | private Object synchronizeObject;
16 |
17 | public ReadWriteLock(Object obj)
18 | {
19 | readers = 0;
20 | writer = false;
21 | synchronizeObject = obj;
22 | }
23 |
24 | public ReadWriteLock()
25 | {
26 | this( new Object() );
27 | }
28 |
29 | public void readLock() throws InterruptedException
30 | {
31 | while( true )
32 | {
33 | synchronized (synchronizeObject)
34 | {
35 | if( !writer ) // no writer
36 | {
37 | readers++;
38 | break;
39 | }
40 | synchronizeObject.wait();
41 | }
42 | }
43 | }
44 |
45 | public void readUnlock()
46 | {
47 | synchronized (synchronizeObject)
48 | {
49 | readers--;
50 | if ( readers == 0 )
51 | {
52 | synchronizeObject.notifyAll();
53 | }
54 | }
55 | }
56 |
57 |
58 | public void writeLock() throws InterruptedException
59 | {
60 | while( true )
61 | {
62 | synchronized (synchronizeObject)
63 | {
64 | if( !writer && (readers == 0 )) // no writer or readers
65 | {
66 | writer = true;
67 | break;
68 | }
69 | synchronizeObject.wait();
70 | }
71 | }
72 | }
73 |
74 | public void writeUnlock()
75 | {
76 | synchronized (synchronizeObject)
77 | {
78 | writer = false;
79 | synchronizeObject.notifyAll();
80 | }
81 | }
82 | }
83 |
--------------------------------------------------------------------------------
/src/main/java/net/webstructor/mine/util/StringContext.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2005-2008, Anton Kolonin,
3 | * All rights reserved.
4 | *
5 | * This software is proprietary information belonging to Anton Kolonin.
6 | * You shall not disclose this and shall not use it in any way
7 | * without of written permission granted by Anton Kolonin.
8 | */
9 | package net.webstructor.mine.util;
10 |
11 | public class StringContext {
12 | public String m_httpLineBreak;
13 | public String m_cmdDelimeters;
14 | public String m_itemDelimeters;
15 | }
16 |
--------------------------------------------------------------------------------
/src/main/java/net/webstructor/nlp/GrammarParser.java:
--------------------------------------------------------------------------------
1 | /*
2 | * MIT License
3 | *
4 | * Copyright (c) 2005-2021 by Anton Kolonin, Aigents®
5 | *
6 | * Permission is hereby granted, free of charge, to any person obtaining a copy
7 | * of this software and associated documentation files (the "Software"), to deal
8 | * in the Software without restriction, including without limitation the rights
9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | * copies of the Software, and to permit persons to whom the Software is
11 | * furnished to do so, subject to the following conditions:
12 | *
13 | * The above copyright notice and this permission notice shall be included in all
14 | * copies or substantial portions of the Software.
15 | *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | * SOFTWARE.
23 | */
24 | package net.webstructor.nlp;
25 |
26 | import java.util.Map;
27 |
28 | import net.webstructor.al.Seq;
29 | import net.webstructor.al.Set;
30 |
31 | public interface GrammarParser {
32 | Set parse(Seq tokens,Map params);
33 | }
34 |
35 |
--------------------------------------------------------------------------------
/src/main/java/net/webstructor/nlp/NgramAllParser.java:
--------------------------------------------------------------------------------
1 | /*
2 | * MIT License
3 | *
4 | * Copyright (c) 2005-2021 by Anton Kolonin, Aigents®
5 | *
6 | * Permission is hereby granted, free of charge, to any person obtaining a copy
7 | * of this software and associated documentation files (the "Software"), to deal
8 | * in the Software without restriction, including without limitation the rights
9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | * copies of the Software, and to permit persons to whom the Software is
11 | * furnished to do so, subject to the following conditions:
12 | *
13 | * The above copyright notice and this permission notice shall be included in all
14 | * copies or substantial portions of the Software.
15 | *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | * SOFTWARE.
23 | */
24 | package net.webstructor.nlp;
25 |
26 | import java.util.Map;
27 |
28 | import net.webstructor.al.Parser;
29 | import net.webstructor.al.Seq;
30 | import net.webstructor.al.Set;
31 | import net.webstructor.cat.StringUtil;
32 |
33 | public class NgramAllParser implements GrammarParser {
34 | @Override
35 | public
36 | Set parse(Seq tokens,Map params) {
37 | int distance = StringUtil.toIntOrDefault(params.get("distance"),10,1);
38 | Set grams = Parser.grams(tokens,distance);
39 | return grams;
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/src/main/java/net/webstructor/nlp/lg/Disjunct.java:
--------------------------------------------------------------------------------
1 | /*
2 | * MIT License
3 | *
4 | * Copyright (c) 2020-2021 by Vignav Ramesh and Anton Kolonin, Aigents®
5 | *
6 | * Permission is hereby granted, free of charge, to any person obtaining a copy
7 | * of this software and associated documentation files (the "Software"), to deal
8 | * in the Software without restriction, including without limitation the rights
9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | * copies of the Software, and to permit persons to whom the Software is
11 | * furnished to do so, subject to the following conditions:
12 | *
13 | * The above copyright notice and this permission notice shall be included in all
14 | * copies or substantial portions of the Software.
15 | *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | * SOFTWARE.
23 | */
24 |
25 | package net.webstructor.nlp.lg;
26 |
27 | import java.util.ArrayList;
28 |
29 | public class Disjunct {
30 | private ArrayList connectors;
31 | private double cost;
32 |
33 | public Disjunct(ArrayList connectors, double cost) {
34 | this.connectors = connectors;
35 | this.cost = cost;
36 | }
37 |
38 | public Disjunct() {
39 | connectors = new ArrayList();
40 | cost = 0;
41 | }
42 |
43 | public void addConnector(String s) {
44 | connectors.add(s);
45 | }
46 |
47 | public ArrayList getConnectors() { return connectors; }
48 |
49 | public double getCost() { return cost; }
50 |
51 | @Override
52 | public String toString() {
53 | return connectors.toString();
54 | }
55 | }
56 |
--------------------------------------------------------------------------------
/src/main/java/net/webstructor/nlp/lg/Link.java:
--------------------------------------------------------------------------------
1 | /*
2 | * MIT License
3 | *
4 | * Copyright (c) 2021-2021 by Eugene Bochkov, Vignav Ramesh and Anton Kolonin, Aigents®
5 | *
6 | * Permission is hereby granted, free of charge, to any person obtaining a copy
7 | * of this software and associated documentation files (the "Software"), to deal
8 | * in the Software without restriction, including without limitation the rights
9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | * copies of the Software, and to permit persons to whom the Software is
11 | * furnished to do so, subject to the following conditions:
12 | *
13 | * The above copyright notice and this permission notice shall be included in all
14 | * copies or substantial portions of the Software.
15 | *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | * SOFTWARE.
23 | */
24 |
25 | package net.webstructor.nlp.lg;
26 |
27 |
28 | public class Link {
29 |
30 | public int w1Index = 0;
31 | public int w2Index = 0;
32 |
33 | public Link(int wi1, int wi2) {
34 | w1Index=wi1;
35 | w2Index=wi2;
36 | }
37 |
38 | @Override
39 | public boolean equals(Object me) {
40 | Link link = (Link)me;
41 | if((this.w1Index==link.w1Index) && (this.w2Index==link.w2Index))
42 | return true;
43 | else
44 | return false;
45 | }
46 |
47 | @Override
48 | public int hashCode() {
49 | return (this.w1Index<<16) | (this.w2Index);
50 | }
51 |
52 | @Override
53 | public String toString() {
54 | return w1Index+"-"+w2Index;
55 | }
56 | }
57 |
58 |
--------------------------------------------------------------------------------
/src/main/java/net/webstructor/nlp/lg/Sentence.java:
--------------------------------------------------------------------------------
1 | /*
2 | * MIT License
3 | *
4 | * Copyright (c) 2021-2021 by Eugene Bochkov, Vignav Ramesh and Anton Kolonin, Aigents®
5 | *
6 | * Permission is hereby granted, free of charge, to any person obtaining a copy
7 | * of this software and associated documentation files (the "Software"), to deal
8 | * in the Software without restriction, including without limitation the rights
9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | * copies of the Software, and to permit persons to whom the Software is
11 | * furnished to do so, subject to the following conditions:
12 | *
13 | * The above copyright notice and this permission notice shall be included in all
14 | * copies or substantial portions of the Software.
15 | *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | * SOFTWARE.
23 | */
24 |
25 | package net.webstructor.nlp.lg;
26 |
27 | import java.util.ArrayList;
28 |
29 | public class Sentence {
30 |
31 | public ArrayList words = new ArrayList();
32 | public boolean valid = false;
33 |
34 | public int length() {
35 | return words.size();
36 | }
37 |
38 | public String toString() {
39 | String str="";
40 | for(int wordIndex=0; wordIndex getGroupPeerIds(String user_id);
30 | public Set getGroupIds(String user_id);
31 | }
32 |
--------------------------------------------------------------------------------
/src/main/java/net/webstructor/peer/Intenter.java:
--------------------------------------------------------------------------------
1 | /*
2 | * MIT License
3 | *
4 | * Copyright (c) 2005-2020 by Anton Kolonin, Aigents®
5 | *
6 | * Permission is hereby granted, free of charge, to any person obtaining a copy
7 | * of this software and associated documentation files (the "Software"), to deal
8 | * in the Software without restriction, including without limitation the rights
9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | * copies of the Software, and to permit persons to whom the Software is
11 | * furnished to do so, subject to the following conditions:
12 | *
13 | * The above copyright notice and this permission notice shall be included in all
14 | * copies or substantial portions of the Software.
15 | *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | * SOFTWARE.
23 | */
24 | package net.webstructor.peer;
25 |
26 | import net.webstructor.core.Named;
27 |
28 | //intent = template + help + action
29 | public interface Intenter extends Named {
30 | abstract boolean handleIntent(final Session session);
31 | };
32 |
33 |
--------------------------------------------------------------------------------
/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Pre-requisite:
4 |
5 | # 1. Make sure the current folder contains Aigents.jar built
6 | # 2. Make sure the current folder contains the following lexicon files (may be downloaded from http://aigents.com/download/latest/)
7 | # lexicon_english.txt
8 | # lexicon_russian.txt
9 | # 3. Serve Web server at domain localtest.com:
10 | # 3.1. Edit hosts file, adding the line with "127.0.0.1 localtest.com"
11 | # Mac: /private/etc/hosts
12 | # Linux: /etc/hosts
13 | # Windows: c:\WINDOWS\system32\drivers\etc\hosts
14 | # 3.2. Go to folder "html" under this folder
15 | # 3.3. Start Web server
16 | # Python 2:
17 | # sudo python -m SimpleHTTPServer 80
18 | # Python 3:
19 | # sudo python -m http.server 80
20 |
21 | # Test run:
22 |
23 | # Cleanup data
24 | rm -rf *log.txt www is-instances is-text test*.txt
25 |
26 | # Run Aigents Server
27 | java -Dsun.zip.disableMemoryMapping=true -cp Aigents.jar:lib/* net.webstructor.agent.Farm store path "''", cookie domain localtest.com, console off &
28 | sleep 5
29 | echo Aigents server started.
30 |
31 | # Run Tests
32 | php -d include_path=./php/agent/ -f ./php/agent/agent_test.php
33 |
34 | # Kill Aigents server
35 | kill -9 $(ps -A -o pid,args | grep java | grep 'net.webstructor.agent.Farm' | awk '{print $1}')
36 |
--------------------------------------------------------------------------------