tasks_generator 1.3 → 1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -98,18 +98,6 @@ class variants_t {
98
98
  fitness += count == questions[i].size();
99
99
  }
100
100
  }
101
- {
102
- for (size_t i = 0; i < questions.size(); ++i) {
103
- size_t buffer[questions[i].size()];
104
- for (size_t j = 0; j < questions[i].size(); ++j)
105
- buffer[j] = questions[i][j].get_select_id();
106
- std::sort(buffer, buffer + questions[i].size());
107
- size_t count = 1;
108
- for (size_t j = 1; j < questions[i].size(); ++j)
109
- count += buffer[j] != buffer[j - 1];
110
- fitness += double(count) / questions[i].size();
111
- }
112
- }
113
101
  {
114
102
  for (size_t i = 0; i < questions.size(); ++i) {
115
103
  size_t buffer[questions[i].size()];
@@ -142,7 +130,7 @@ class variants_t {
142
130
  for (size_t i = 0; i < questions.size(); ++i) {
143
131
  size_t buffer[questions[i].size()];
144
132
  for (size_t j = 0; j < questions[i].size(); ++j)
145
- buffer[j] = questions[i][j].get_select_id();
133
+ buffer[j] = questions[i][j].get_topic_id();
146
134
  std::sort(buffer, buffer + questions[i].size());
147
135
  size_t count = 1;
148
136
  for (size_t j = 1; j < questions[i].size(); ++j)
@@ -1,3 +1,3 @@
1
1
  module TasksGenerator
2
- VERSION = "1.3"
2
+ VERSION = "1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tasks_generator
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.3'
4
+ version: '1.4'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: