artemo 3.2.0 → 3.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG +4 -1
- data/Gemfile.lock +1 -1
- data/README.md +2 -0
- data/artemo.gemspec +0 -1
- data/examples/10001.pdf +506 -0
- data/examples/10004.pdf +506 -0
- data/examples/10005.pdf +506 -0
- data/examples/10006.pdf +506 -0
- data/examples/10009.pdf +506 -0
- data/examples/1001.pdf +506 -0
- data/examples/10010.pdf +506 -0
- data/examples/10011.pdf +506 -0
- data/examples/10012.pdf +506 -0
- data/examples/10013.pdf +506 -0
- data/examples/10014.pdf +506 -0
- data/examples/10015.pdf +506 -0
- data/examples/10016.pdf +506 -0
- data/examples/10017.pdf +506 -0
- data/examples/10018.pdf +506 -0
- data/examples/10019.pdf +506 -0
- data/examples/10020.pdf +506 -0
- data/examples/10021.pdf +506 -0
- data/examples/10022.pdf +506 -0
- data/examples/10023.pdf +506 -0
- data/examples/10024.pdf +506 -0
- data/examples/10025.pdf +506 -0
- data/examples/10026.pdf +506 -0
- data/examples/10027.pdf +506 -0
- data/examples/10028.pdf +506 -0
- data/examples/10031.pdf +506 -0
- data/examples/10032.pdf +506 -0
- data/examples/10033.pdf +506 -0
- data/examples/10034.pdf +506 -0
- data/examples/10035.pdf +506 -0
- data/examples/10036.pdf +506 -0
- data/examples/10037.pdf +506 -0
- data/examples/10038.pdf +506 -0
- data/examples/10039.pdf +506 -0
- data/examples/10040.pdf +506 -0
- data/examples/10041.pdf +506 -0
- data/examples/10042.pdf +506 -0
- data/examples/10043.pdf +506 -0
- data/examples/10044.pdf +506 -0
- data/examples/10045.pdf +506 -0
- data/examples/10046.pdf +506 -0
- data/examples/10047.pdf +506 -0
- data/examples/10048.pdf +506 -0
- data/examples/10049.pdf +506 -0
- data/examples/1005.pdf +506 -0
- data/examples/10050.pdf +506 -0
- data/examples/10051.pdf +506 -0
- data/examples/10052.pdf +506 -0
- data/examples/10054.pdf +506 -0
- data/examples/10055.pdf +506 -0
- data/examples/1006.pdf +506 -0
- data/examples/10060.pdf +506 -0
- data/examples/10061.pdf +506 -0
- data/examples/10062.pdf +506 -0
- data/examples/10064.pdf +506 -0
- data/examples/10065.pdf +506 -0
- data/examples/10066.pdf +506 -0
- data/examples/10068.pdf +506 -0
- data/examples/10069.pdf +506 -0
- data/examples/1007.pdf +506 -0
- data/examples/10070.pdf +506 -0
- data/examples/10071.pdf +506 -0
- data/examples/10072.pdf +506 -0
- data/examples/10073.pdf +506 -0
- data/examples/10074.pdf +506 -0
- data/examples/10075.pdf +506 -0
- data/examples/10076.pdf +506 -0
- data/examples/10077.pdf +506 -0
- data/examples/10080.pdf +506 -0
- data/examples/10081.pdf +506 -0
- data/examples/10083.pdf +506 -0
- data/examples/10084.pdf +506 -0
- data/examples/10085.pdf +506 -0
- data/examples/10086.pdf +506 -0
- data/examples/10087.pdf +506 -0
- data/examples/10088.pdf +506 -0
- data/examples/10089.pdf +506 -0
- data/examples/10090.pdf +506 -0
- data/examples/10091.pdf +506 -0
- data/examples/10092.pdf +506 -0
- data/examples/10093.pdf +506 -0
- data/examples/10094.pdf +506 -0
- data/examples/10096.pdf +506 -0
- data/examples/10097.pdf +506 -0
- data/examples/10098.pdf +506 -0
- data/examples/10099.pdf +506 -0
- data/examples/101.pdf +506 -0
- data/examples/10100.pdf +506 -0
- data/examples/10101.pdf +506 -0
- data/examples/10102.pdf +506 -0
- data/examples/10103.pdf +506 -0
- data/examples/10104.pdf +506 -0
- data/examples/10105.pdf +506 -0
- data/examples/10106.pdf +506 -0
- data/examples/10107.pdf +506 -0
- data/examples/10108.pdf +506 -0
- data/examples/10109.pdf +506 -0
- data/examples/10110.pdf +506 -0
- data/examples/10111.pdf +506 -0
- data/examples/10112.pdf +506 -0
- data/examples/10113.pdf +506 -0
- data/examples/10114.pdf +506 -0
- data/examples/10118.pdf +506 -0
- data/examples/10119.pdf +506 -0
- data/examples/10120.pdf +506 -0
- data/examples/10121.pdf +506 -0
- data/examples/10122.pdf +506 -0
- data/examples/10123.pdf +506 -0
- data/examples/10124.pdf +506 -0
- data/examples/10125.pdf +506 -0
- data/examples/10126.pdf +506 -0
- data/examples/10127.pdf +506 -0
- data/examples/10128.pdf +506 -0
- data/examples/10129.pdf +506 -0
- data/examples/1013.pdf +506 -0
- data/examples/10130.pdf +506 -0
- data/examples/10131.pdf +506 -0
- data/examples/10132.pdf +506 -0
- data/examples/10133.pdf +506 -0
- data/examples/10134.pdf +506 -0
- data/examples/10135.pdf +506 -0
- data/examples/10139.pdf +506 -0
- data/examples/1014.pdf +506 -0
- data/examples/10140-0.pdf +506 -0
- data/examples/10141.pdf +506 -0
- data/examples/10142.pdf +506 -0
- data/examples/10143.pdf +506 -0
- data/examples/10144.pdf +506 -0
- data/examples/10145.pdf +506 -0
- data/examples/10146.pdf +506 -0
- data/examples/10147.pdf +506 -0
- data/examples/10148.pdf +506 -0
- data/examples/10149.pdf +506 -0
- data/examples/1015.pdf +506 -0
- data/examples/10151.pdf +506 -0
- data/examples/10159.pdf +506 -0
- data/examples/10160.pdf +506 -0
- data/examples/10161.pdf +506 -0
- data/examples/10162.pdf +506 -0
- data/examples/10163.pdf +506 -0
- data/examples/10164.pdf +506 -0
- data/examples/10166.pdf +506 -0
- data/examples/1019.pdf +506 -0
- data/examples/102.pdf +506 -0
- data/examples/10201.pdf +506 -0
- data/examples/10202.pdf +506 -0
- data/examples/1021.pdf +506 -0
- data/examples/10210.pdf +506 -0
- data/examples/10211.pdf +506 -0
- data/examples/10212.pdf +506 -0
- data/examples/10213.pdf +506 -0
- data/examples/10214-8.pdf +506 -0
- data/examples/10214.pdf +506 -0
- data/examples/10216.pdf +506 -0
- data/examples/10217.pdf +506 -0
- data/examples/10218.pdf +506 -0
- data/examples/10219.pdf +506 -0
- data/examples/1022.pdf +506 -0
- data/examples/10220.pdf +506 -0
- data/examples/10221.pdf +506 -0
- data/examples/10222.pdf +506 -0
- data/examples/10223-0.pdf +506 -0
- data/examples/10224.pdf +506 -0
- data/examples/10225.pdf +506 -0
- data/examples/10226.pdf +506 -0
- data/examples/10234.pdf +506 -0
- data/examples/1024.pdf +506 -0
- data/examples/10251.pdf +506 -0
- data/examples/10266.pdf +506 -0
- data/examples/10267.pdf +506 -0
- data/examples/10268.pdf +506 -0
- data/examples/1027.pdf +506 -0
- data/examples/10274.pdf +506 -0
- data/examples/1028.pdf +506 -0
- data/examples/10289.pdf +506 -0
- data/examples/1029.pdf +506 -0
- data/examples/10290.pdf +506 -0
- data/examples/10291.pdf +506 -0
- data/examples/10292.pdf +506 -0
- data/examples/10293.pdf +506 -0
- data/examples/10294.pdf +506 -0
- data/examples/103.pdf +506 -0
- data/examples/10310.pdf +506 -0
- data/examples/10314.pdf +506 -0
- data/examples/10315.pdf +506 -0
- data/examples/10316.pdf +506 -0
- data/examples/10317.pdf +506 -0
- data/examples/10319.pdf +506 -0
- data/examples/1032.pdf +506 -0
- data/examples/10320.pdf +506 -0
- data/examples/10321.pdf +506 -0
- data/examples/10322.pdf +506 -0
- data/examples/10325.pdf +506 -0
- data/examples/10326.pdf +506 -0
- data/examples/10327.pdf +506 -0
- data/examples/10328.pdf +506 -0
- data/examples/10329.pdf +506 -0
- data/examples/1033.pdf +506 -0
- data/examples/10330.pdf +506 -0
- data/examples/10331.pdf +506 -0
- data/examples/10332.pdf +506 -0
- data/examples/10334.pdf +506 -0
- data/examples/10335.pdf +506 -0
- data/examples/10336.pdf +506 -0
- data/examples/10337.pdf +506 -0
- data/examples/10338.pdf +506 -0
- data/examples/10339-0.pdf +506 -0
- data/examples/1034.pdf +506 -0
- data/examples/10340.pdf +506 -0
- data/examples/10341.pdf +506 -0
- data/examples/10342.pdf +506 -0
- data/examples/10345.pdf +506 -0
- data/examples/10346.pdf +506 -0
- data/examples/10348-m-readme.pdf +506 -0
- data/examples/10348.pdf +506 -0
- data/examples/10349.pdf +506 -0
- data/examples/1035.pdf +506 -0
- data/examples/10350.pdf +506 -0
- data/examples/10351.pdf +506 -0
- data/examples/10352.pdf +506 -0
- data/examples/10353.pdf +506 -0
- data/examples/10354.pdf +506 -0
- data/examples/10355.pdf +506 -0
- data/examples/10356.pdf +506 -0
- data/examples/10357.pdf +506 -0
- data/examples/10358.pdf +506 -0
- data/examples/10359.pdf +506 -0
- data/examples/1036.pdf +506 -0
- data/examples/10360.pdf +506 -0
- data/examples/10361.pdf +506 -0
- data/examples/10362.pdf +506 -0
- data/examples/Pgdvd042010.jpg +0 -0
- data/lib/artemo/basic_emotions.rb +4 -63
- data/lib/artemo/common.rb +44 -0
- data/lib/artemo/complex_emotions.rb +72 -34
- data/lib/artemo/plot.rb +1 -0
- data/lib/artemo/result.rb +11 -6
- data/lib/artemo/version.rb +1 -1
- metadata +233 -13
- data/Dockerfile +0 -17
- data/Rakefile +0 -7
- data/spec/test_artemo_common_spec.rb +0 -10
- data/spec/test_artemo_complex_emotions_spec.rb +0 -10
- data/spec/test_artemo_keywords_spec.rb +0 -27
- data/spec/test_artemo_loader_spec.rb +0 -63
- data/spec/test_artemo_result_spec.rb +0 -24
data/Dockerfile
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
FROM ruby:2.3.1
|
|
2
|
-
|
|
3
|
-
MAINTAINER Łukasz Fuszara
|
|
4
|
-
|
|
5
|
-
RUN mkdir /artemo
|
|
6
|
-
WORKDIR /artemo
|
|
7
|
-
|
|
8
|
-
RUN git clone https://gitlab.com/opalizoid/ArtEmo_v3.git
|
|
9
|
-
WORKDIR /artemo/ArtEmo_v3
|
|
10
|
-
|
|
11
|
-
RUN gem build artemo.gemspec
|
|
12
|
-
RUN gem install artemo-*
|
|
13
|
-
RUN echo "Wherefore, O judges, be of good cheer about death, and know of a certainty, that no evil can happen to a good man, either in life or after death. He and his are not neglected by the gods; nor has my own approaching end happened by mere chance. But I see clearly that the time had arrived when it was better for me to die and be released from trouble; wherefore the oracle gave no sign. For which reason, also, I am not angry with my condemners, or with my accusers; they have done me no harm, although they did not mean to do me any good; and for this I may gently blame them." > test.txt
|
|
14
|
-
|
|
15
|
-
ENTRYPOINT ["artemo", "test.txt"]
|
|
16
|
-
|
|
17
|
-
CMD ["bash"]
|
data/Rakefile
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
require 'artemo'
|
|
2
|
-
|
|
3
|
-
describe ComplexEmotions do
|
|
4
|
-
context 'Complex emotions: ' do
|
|
5
|
-
it 'call to first method' do
|
|
6
|
-
ce = ComplexEmotions.call [33, 33, 0, 0, 0, 0, 0, 0, 34, 34, 0, 0, 0, 0, 0, 0, 33, 33, 0, 0, 0, 0, 0, 0]
|
|
7
|
-
expect(ce).to eq [97, 97, 97, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
|
|
8
|
-
end
|
|
9
|
-
end
|
|
10
|
-
end
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
require 'artemo'
|
|
2
|
-
|
|
3
|
-
describe Keywords do
|
|
4
|
-
context 'Created database of keywords from file' do
|
|
5
|
-
it 'should class be Array' do
|
|
6
|
-
k = Keywords.call
|
|
7
|
-
expect(k).to be_instance_of Array
|
|
8
|
-
end
|
|
9
|
-
|
|
10
|
-
it 'should size be 8' do
|
|
11
|
-
k = Keywords.call.size
|
|
12
|
-
s = 8
|
|
13
|
-
expect(k).to eq s
|
|
14
|
-
end
|
|
15
|
-
|
|
16
|
-
it 'should first element of array be > 500' do
|
|
17
|
-
k = Keywords.call.first.size
|
|
18
|
-
expect(k).to be > 500
|
|
19
|
-
end
|
|
20
|
-
|
|
21
|
-
it 'should last element of array be > 500' do
|
|
22
|
-
k = Keywords.call.last.size
|
|
23
|
-
expect(k).to be > 500
|
|
24
|
-
end
|
|
25
|
-
end
|
|
26
|
-
end
|
|
27
|
-
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
require 'tempfile'
|
|
2
|
-
|
|
3
|
-
require 'artemo'
|
|
4
|
-
|
|
5
|
-
str = %q{
|
|
6
|
-
"Zarathustra" is my brother's most personal work; it is the history of
|
|
7
|
-
his most individual experiences, of his friendships, ideals, raptures,
|
|
8
|
-
bitterest disappointments and sorrows. Above it all, however, there
|
|
9
|
-
soars, transfiguring it, the image of his greatest hopes and remotest
|
|
10
|
-
aims. My brother had the figure of Zarathustra in his mind from his very
|
|
11
|
-
earliest youth: he once told me that even as a child he had dreamt of
|
|
12
|
-
him. At different periods in his life, he would call this haunter of his
|
|
13
|
-
dreams by different names; "but in the end," he declares in a note on
|
|
14
|
-
the subject, "I had to do a PERSIAN the honour of identifying him with
|
|
15
|
-
this creature of my fancy. Persians were the first to take a broad and
|
|
16
|
-
comprehensive view of history. Every series of evolutions, according
|
|
17
|
-
to them, was presided over by a prophet; and every prophet had his
|
|
18
|
-
'Hazar,'--his dynasty of a thousand years."
|
|
19
|
-
|
|
20
|
-
All Zarathustra's views, as also his personality, were early conceptions
|
|
21
|
-
of my brother's mind. Whoever reads his posthumously published writings
|
|
22
|
-
for the years 1869-82 with care, will constantly meet with passages
|
|
23
|
-
suggestive of Zarathustra's thoughts and doctrines. For instance, the
|
|
24
|
-
ideal of the Superman is put forth quite clearly in all his writings
|
|
25
|
-
during the years 1873-75; and in "We Philologists", the following
|
|
26
|
-
remarkable observations occur:--
|
|
27
|
-
|
|
28
|
-
"How can one praise and glorify a nation as a whole?--Even among the
|
|
29
|
-
Greeks, it was the INDIVIDUALS that counted."
|
|
30
|
-
|
|
31
|
-
"The Greeks are interesting and extremely important because they reared
|
|
32
|
-
such a vast number of great individuals. How was this possible? The
|
|
33
|
-
question is one which ought to be studied.
|
|
34
|
-
|
|
35
|
-
"I am interested only in the relations of a people to the rearing of
|
|
36
|
-
the individual man, and among the Greeks the conditions were unusually
|
|
37
|
-
favourable for the development of the individual; not by any means owing
|
|
38
|
-
to the goodness of the people, but because of the struggles of their
|
|
39
|
-
evil instincts.
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
describe Loader do
|
|
43
|
-
context 'Created words from text' do
|
|
44
|
-
it 'should class be Array' do
|
|
45
|
-
Tempfile.open("test.txt") do |f|
|
|
46
|
-
f.write(str)
|
|
47
|
-
f.close
|
|
48
|
-
k = Loader.call(f)
|
|
49
|
-
expect(k).to be_instance_of Array
|
|
50
|
-
end
|
|
51
|
-
end
|
|
52
|
-
|
|
53
|
-
it 'should class be Array' do
|
|
54
|
-
Tempfile.open("test.txt") do |f|
|
|
55
|
-
f.write(str)
|
|
56
|
-
f.close
|
|
57
|
-
k = Loader.call(f)
|
|
58
|
-
expect(k).to be_instance_of Array
|
|
59
|
-
end
|
|
60
|
-
end
|
|
61
|
-
end
|
|
62
|
-
end
|
|
63
|
-
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
require 'artemo'
|
|
2
|
-
|
|
3
|
-
describe Result do
|
|
4
|
-
context 'Results ' do
|
|
5
|
-
it 'show love' do
|
|
6
|
-
s = Result.call([100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0])
|
|
7
|
-
sh = s.keys.last
|
|
8
|
-
expect(sh).to eq "love"
|
|
9
|
-
end
|
|
10
|
-
|
|
11
|
-
it 'show despair' do
|
|
12
|
-
s = Result.call([0, 0, 0, 0, 0, 0, 0, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0])
|
|
13
|
-
sh = s.keys.last
|
|
14
|
-
expect(sh).to eq "despair"
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
it 'min, max' do
|
|
18
|
-
s = Result.call([100, 30, 30, 30, 30, 30, 30, 5, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 700, 30])
|
|
19
|
-
min, max = s.values.minmax
|
|
20
|
-
expect(min).to eq 3
|
|
21
|
-
expect(max).to eq 100
|
|
22
|
-
end
|
|
23
|
-
end
|
|
24
|
-
end
|