saasagi 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dbef203ca6db2874d3ca01a37f7981f472e0ac429c404c932da5dfcefc10dd4e
4
- data.tar.gz: 85c113424971c45fd4e1a81bb84315ee74efcb549e4229c941bb46e4873baf69
3
+ metadata.gz: 2d6c2160b7d38aa10252480802fcbd925e462b6c1ad5c4107a6c3b85b51f1449
4
+ data.tar.gz: 1fc711afe8b1320e5cc2ac6bd1e99c2edd0065c4835aa58a5aac973298a9ed7b
5
5
  SHA512:
6
- metadata.gz: 4cdf4a8b1d8be35996919a6c773e60ef12ff01ce2691adf8670a7b0f484cf6d6399a6e42c9ba589c27220efe1844d7f6d8dd2925ee73f2ef7c4ea57d09fa6f47
7
- data.tar.gz: 35569efb15fd83e4aecd0ecfa3a130dbc46e1dcc9a6af7a137df832eb0d7bc88a232255685682e5f0585253b227e388d65fbdbb0e4a1d50718b26ea9a70284fb
6
+ metadata.gz: 7d7ff15f81d8f629d2074725a105292c139a7fc88d9f2dd6c0cf555a3b3e5d50bb4183a839a3917d26d986d1076814987d73f6334ad4a9a37e4149b6fd91d79a
7
+ data.tar.gz: 63244f5ff5b71184baaf62256b2f981a408b703f79c667fc8bdf8e8fcddbe6ceac1d233769764dd61b4b209f2a48e013e9283ae0400fbe17f94d536e281f303a
@@ -1,7 +1,6 @@
1
1
  ---
2
- sudo: false
3
2
  language: ruby
4
3
  cache: bundler
5
4
  rvm:
6
5
  - 2.5.1
7
- before_install: gem install bundler -v 2.0.2
6
+ before_install: gem install bundler -v 2.1.4
@@ -68,7 +68,7 @@ members of the project's leadership.
68
68
  ## Attribution
69
69
 
70
70
  This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
- available at [http://contributor-covenant.org/version/1/4][version]
71
+ available at [https://contributor-covenant.org/version/1/4][version]
72
72
 
73
- [homepage]: http://contributor-covenant.org
74
- [version]: http://contributor-covenant.org/version/1/4/
73
+ [homepage]: https://contributor-covenant.org
74
+ [version]: https://contributor-covenant.org/version/1/4/
data/Gemfile CHANGED
@@ -2,3 +2,6 @@ source "https://rubygems.org"
2
2
 
3
3
  # Specify your gem's dependencies in saasagi.gemspec
4
4
  gemspec
5
+
6
+ gem "rake", "~> 12.0"
7
+ gem "rspec", "~> 3.0"
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2019 Gitea
3
+ Copyright (c) 2020 Gitea
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -14,7 +14,7 @@ gem 'saasagi'
14
14
 
15
15
  And then execute:
16
16
 
17
- $ bundle
17
+ $ bundle install
18
18
 
19
19
  Or install it yourself as:
20
20
 
@@ -32,7 +32,8 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
32
32
 
33
33
  ## Contributing
34
34
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/saasagi. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/saasagi. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/saasagi/blob/master/CODE_OF_CONDUCT.md).
36
+
36
37
 
37
38
  ## License
38
39
 
@@ -40,4 +41,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
40
41
 
41
42
  ## Code of Conduct
42
43
 
43
- Everyone interacting in the Saasagi projects codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/saasagi/blob/master/CODE_OF_CONDUCT.md).
44
+ Everyone interacting in the Saasagi project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/saasagi/blob/master/CODE_OF_CONDUCT.md).
@@ -63,7 +63,7 @@ module Saasagi
63
63
  open("tree_dGoal.rb", "w") { |f|
64
64
  f.puts prewrite
65
65
  }
66
-
66
+
67
67
  open(".backup/tree_dGoal.rb", "w") { |f|
68
68
  f.puts prewrite
69
69
  }
@@ -85,53 +85,49 @@ module Saasagi
85
85
  }
86
86
  end
87
87
 
88
- def self.assemble_cloner
89
- prewrite = File.read(".prewrite/tree_clone_engine.txt")
90
-
91
- open("data/input/clone_ratio.txt", "w") { |f|
88
+ def self.assemble_bedroom
89
+ prewrite = File.read(".prewrite/tree_test_bedroom.txt")
90
+
91
+ open("data/input/bedroom_test_ratio.txt", "w") { |f|
92
92
  f.puts "0"
93
93
  }
94
94
 
95
- open("tree_clone_engine.rb", "w") { |f|
96
- f.puts prewrite
97
- }
98
-
99
- open(".backup/tree_clone_engine.rb", "w") { |f|
95
+ open("tree_test_bedroom.rb", "w") { |f|
100
96
  f.puts prewrite
101
97
  }
102
98
  end
103
-
104
- def self.assemble_space_calculator
105
- prewrite = File.read(".prewrite/tree_calculate_space.txt")
106
-
107
- open("data/input/calculator_ratio.txt", "w") { |f|
99
+
100
+ def self.assemble_translator
101
+ prewrite = File.read(".prewrite/tree_translate_hafestra.txt")
102
+
103
+ open("data/input/bedroom_test_ratio.txt", "w") { |f|
108
104
  f.puts "0"
109
105
  }
110
106
 
111
- open("tree_calculate_space.rb", "w") { |f|
107
+ open("tree_translate_hafestra.rb", "w") { |f|
112
108
  f.puts prewrite
113
109
  }
114
-
115
- open(".backup/tree_calculate_space.rb", "w") { |f|
110
+
111
+ open(".backup/tree_translate_hafestra.rb", "w") { |f|
116
112
  f.puts prewrite
117
113
  }
118
114
  end
119
115
 
120
- def self.assemble_equality_tester
121
- prewrite = File.read(".prewrite/tree_equality.txt")
122
-
123
- open("data/input/equality_test_ratio.txt", "w") { |f|
116
+ def self.assemble_trends
117
+ prewrite = File.read(".prewrite/tree_trend_estimate.txt")
118
+
119
+ open("data/input/estimate_trends_ratio.txt", "w") { |f|
124
120
  f.puts "0"
125
121
  }
126
122
 
127
- open("tree_test_equality.rb", "w") { |f|
123
+ open("tree_trend_estimate.rb", "w") { |f|
128
124
  f.puts prewrite
129
125
  }
130
-
131
- open(".backup/tree_test_equality.rb", "w") { |f|
126
+
127
+ open(".backup/tree_trend_estimate.rb", "w") { |f|
132
128
  f.puts prewrite
133
129
  }
134
- end
130
+ end
135
131
 
136
132
  end
137
133
 
@@ -245,28 +241,26 @@ module Saasagi
245
241
  f.puts "def #{method_name}#{ratio}"
246
242
  f.puts " require 'decisiontree'"
247
243
  f.puts " "
248
- f.puts " def confirm_deny"
249
- f.puts " decision = $decision"
244
+ f.puts " def robot_#{method_name}"
245
+ f.puts " a = ai_#{action}"
246
+ f.puts " end"
250
247
  f.puts " "
251
- f.puts " if decision == 'Automatic'"
252
- f.puts " ai = ai_#{action}"
253
- f.puts " else"
254
- f.puts " print 'Robot is increasingly restless, #{action} or stay? >> '"
255
- f.puts " input = gets.chomp"
248
+ f.puts " def confirm_deny"
249
+ f.puts " print 'Robot is increasingly restless, #{action} or stay? >> '"
250
+ f.puts " input = gets.chomp"
256
251
  f.puts " "
257
- f.puts " if input == '#{action}'"
258
- f.puts " a = ai_#{action}"
259
- f.puts " elsif input == 'stay'"
260
- f.puts " require 'espeak'"
252
+ f.puts " if input == '#{action}'"
253
+ f.puts " a = ai_#{action}"
254
+ f.puts " elsif input == 'stay'"
255
+ f.puts " require 'espeak'"
261
256
  f.puts " "
262
- f.puts " speech = ESpeak::Speech.new('I chose to stay.')"
263
- f.puts " speech.speak"
264
- f.puts " else"
265
- f.puts " require 'espeak'"
257
+ f.puts " speech = ESpeak::Speech.new('I chose to stay.')"
258
+ f.puts " speech.speak"
259
+ f.puts " else"
260
+ f.puts " require 'espeak'"
266
261
  f.puts " "
267
- f.puts " speech = ESpeak::Speech.new('Command not understood.')"
268
- f.puts " speech.speak"
269
- f.puts " end"
262
+ f.puts " speech = ESpeak::Speech.new('Command not understood.')"
263
+ f.puts " speech.speak"
270
264
  f.puts " end"
271
265
  f.puts " end"
272
266
  f.puts " "
@@ -283,21 +277,21 @@ module Saasagi
283
277
  f.puts " dec_tree = DecisionTree::ID3Tree.new(attributes, training, 1, :continuous); dec_tree.train"
284
278
  f.puts " test = [input]"
285
279
  f.puts " "
286
- f.puts " $decision = dec_tree.predict(test)"
287
- f.puts " $true_decision = test.last"
280
+ f.puts " decision = dec_tree.predict(test)"
281
+ f.puts " true_decision = test.last"
288
282
  f.puts " "
289
- f.puts " print '#{method_name.upcase}: '; print $decision"
290
- f.puts " puts '\n\N'"
283
+ f.puts " print '#{method_name.upcase}: '; print decision"
284
+ f.puts " puts '\n'"
291
285
  f.puts " "
292
- f.puts " if $decision == 'Very Low' or 13.75; c = confirm_deny"
293
- f.puts " elsif $decision == 'Somewhat Low' or 20.625; c = confirm_deny"
294
- f.puts " elsif $decision == 'Normal Low' or 67.5; c = confirm_deny"
295
- f.puts " elsif $decision == 'Medium' or 37.3125; c = confirm_deny"
296
- f.puts " elsif $decision == 'High' or 54.0; c = confirm_deny"
297
- f.puts " elsif $decision == 'Urgent' or 67.5; c = confirm_deny"
298
- f.puts " elsif $decision == 'Danger' or 81.0; c = confirm_deny"
299
- f.puts " elsif $decision == 'Critical' or 94.5; c = confirm_deny"
300
- f.puts " elsif $decision == 'Automatic' or 108.0; r = robot_#{method_name}"
286
+ f.puts " if decision == 'Very Low' or 13.75; c = confirm_deny"
287
+ f.puts " elsif decision == 'Somewhat Low' or 20.625; c = confirm_deny"
288
+ f.puts " elsif decision == 'Normal Low' or 67.5; c = confirm_deny"
289
+ f.puts " elsif decision == 'Medium' or 37.3125; c = confirm_deny"
290
+ f.puts " elsif decision == 'High' or 54.0; c = confirm_deny"
291
+ f.puts " elsif decision == 'Urgent' or 67.5; c = confirm_deny"
292
+ f.puts " elsif decision == 'Danger' or 81.0; c = confirm_deny"
293
+ f.puts " elsif decision == 'Critical' or 94.5; c = confirm_deny"
294
+ f.puts " elsif decision == 'Automatic' or 108.0; r = robot_#{method_name}"
301
295
  f.puts " end"
302
296
  f.puts " "
303
297
  f.puts "end"
@@ -1,3 +1,3 @@
1
1
  module Saasagi
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -6,12 +6,13 @@ Gem::Specification.new do |spec|
6
6
  spec.name = "saasagi"
7
7
  spec.version = Saasagi::VERSION
8
8
  spec.authors = ["LWFlouisa"]
9
- spec.email = ["gitea@fake.local"]
9
+ spec.email = ["lwflouisa@riseup.net"]
10
10
 
11
- spec.summary = %q{Saasagi Single Cell is a reproductive version of Saasagi, and behaves similarly to a single-celled organism.}
12
- spec.description = %q{The eventual goal for this project, is the ability to have certain cellular processes automated; assembling core subroutines, restoring missing subroutines from backup, and the ability for the machine to program itself, with a few simple instructions. Clone a group of them together, and you can eventually build more complex systems at the artificial cellular level.}
13
- spec.homepage = "https://github.com/LWFlouisa/Saasagi-Cell-Auto"
11
+ spec.summary = %q{An extension of Asagi to include self-assembling on basic subroutines.}
12
+ spec.description = %q{Asagi is an AI Sequencing AGI engine. This new gem extends the Asagi codebase, and allows for completely automatic assembling of certain basic subroutines.}
13
+ spec.homepage = ""
14
14
  spec.license = "MIT"
15
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
15
16
 
16
17
  # Specify which files should be added to the gem when it is released.
17
18
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: saasagi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - LWFlouisa
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-01-12 00:00:00.000000000 Z
11
+ date: 2020-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -52,13 +52,10 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3.0'
55
- description: The eventual goal for this project, is the ability to have certain cellular
56
- processes automated; assembling core subroutines, restoring missing subroutines
57
- from backup, and the ability for the machine to program itself, with a few simple
58
- instructions. Clone a group of them together, and you can eventually build more
59
- complex systems at the artificial cellular level.
55
+ description: Asagi is an AI Sequencing AGI engine. This new gem extends the Asagi
56
+ codebase, and allows for completely automatic assembling of certain basic subroutines.
60
57
  email:
61
- - gitea@fake.local
58
+ - lwflouisa@riseup.net
62
59
  executables: []
63
60
  extensions: []
64
61
  extra_rdoc_files: []
@@ -76,7 +73,7 @@ files:
76
73
  - lib/saasagi.rb
77
74
  - lib/saasagi/version.rb
78
75
  - saasagi.gemspec
79
- homepage: https://github.com/LWFlouisa/Saasagi-Cell-Auto
76
+ homepage: ''
80
77
  licenses:
81
78
  - MIT
82
79
  metadata: {}
@@ -88,17 +85,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
88
85
  requirements:
89
86
  - - ">="
90
87
  - !ruby/object:Gem::Version
91
- version: '0'
88
+ version: 2.3.0
92
89
  required_rubygems_version: !ruby/object:Gem::Requirement
93
90
  requirements:
94
91
  - - ">="
95
92
  - !ruby/object:Gem::Version
96
93
  version: '0'
97
94
  requirements: []
98
- rubyforge_project:
99
- rubygems_version: 2.7.6
95
+ rubygems_version: 3.0.6
100
96
  signing_key:
101
97
  specification_version: 4
102
- summary: Saasagi Single Cell is a reproductive version of Saasagi, and behaves similarly
103
- to a single-celled organism.
98
+ summary: An extension of Asagi to include self-assembling on basic subroutines.
104
99
  test_files: []