Skip to content

Commit 7e86cb9

Browse files
authored
Merge pull request #93 from LuCEresearchlab/clustering-experiment
Added data for experiment
2 parents 0fbb419 + c196f58 commit 7e86cb9

File tree

125 files changed

+20068
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

125 files changed

+20068
-1
lines changed

scripts/experiments/clustering/__init__.py

Whitespace-only changes.
Lines changed: 154 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,154 @@
1+
[
2+
[
3+
{
4+
"data": "It is not declared as final",
5+
"idx": 1
6+
},
7+
{
8+
"data": "it is not declared as final",
9+
"idx": 10
10+
},
11+
{
12+
"data": "The variable is not declared as final. ",
13+
"idx": 19
14+
},
15+
{
16+
"data": "It is not marked final, therefore it is mutable. ",
17+
"idx": 22
18+
}
19+
],
20+
[
21+
{
22+
"data": "No. To be immutable, the keyword 'final' is needed (e.g. 'final String name;')",
23+
"idx": 15
24+
},
25+
{
26+
"data": "To be immutable should have final",
27+
"idx": 20
28+
},
29+
{
30+
"data": "Its mutable. Final keyword is necessary for immutable variables",
31+
"idx": 31
32+
}
33+
],
34+
[
35+
{
36+
"data": "In order to be immutable it has to be declared as final. String object is immutable, not the variable.",
37+
"idx": 11
38+
},
39+
{
40+
"data": "No, even if 'String' is immutable the variable name must be declared final to be immutable. This variable can be reassigned",
41+
"idx": 17
42+
},
43+
{
44+
"data": "To be immutable the variable must be declared as 'final'",
45+
"idx": 28
46+
},
47+
{
48+
"data": "String are immutable object in java but not the variable, it should be declared as final.",
49+
"idx": 29
50+
}
51+
],
52+
[
53+
{
54+
"data": "It is mutable, since we can change the Object String to which the variable name points to, but not modifying the String itself.",
55+
"idx": 7
56+
},
57+
{
58+
"data": "The variable is mutable (it's vaule can be changed) even if the String type its immutable",
59+
"idx": 9
60+
},
61+
{
62+
"data": "The variable 'name' can be assigned and changed. It would need to be a final String to be immutable.",
63+
"idx": 18
64+
},
65+
{
66+
"data": "Immutability implies that the variable cannot be reinitialized or modified after the first initialization. In this case name can be reinitialized multiple times, moreover the String object can also be modified in memory.",
67+
"idx": 21
68+
}
69+
],
70+
[
71+
{
72+
"data": "the variable is immutable because we can't change the object itself, but only the reference to the object",
73+
"idx": 14
74+
},
75+
{
76+
"data": "The object under name is immutable; the reference to it is mutable",
77+
"idx": 30
78+
}
79+
],
80+
[
81+
{
82+
"data": "Java strings are immutable, when you try to edit them a new String in created.",
83+
"idx": 13
84+
}
85+
],
86+
[
87+
{
88+
"data": "if there is a final keyword it would be immutable",
89+
"idx": 2
90+
},
91+
{
92+
"data": "Because it is missing the final keyword before the type",
93+
"idx": 16
94+
},
95+
{
96+
"data": "it requires the keyword final to be immutable.",
97+
"idx": 23
98+
},
99+
{
100+
"data": "We need the final keyword to make this variable immutable, i.e. not change after it's been initialized. Right now, we could change its value as many time as we want.",
101+
"idx": 24
102+
},
103+
{
104+
"data": "To make it immutable it should have the final keyword",
105+
"idx": 25
106+
}
107+
],
108+
[
109+
{
110+
"data": "The final keyword is needed to make a Java variable final. However, since I do not see any code modifying the variable, I may be able to assume that it is 'effectively final'.",
111+
"idx": 3
112+
},
113+
{
114+
"data": "In Java, the ummutable variable should be with the key word `final`.",
115+
"idx": 12
116+
},
117+
{
118+
"data": "the 'final' keyword needs to be used in java to make the variable immutable.",
119+
"idx": 27
120+
}
121+
],
122+
[
123+
{
124+
"data": "The variable is actually mutable, because it is not a constant and can be changed.",
125+
"idx": 6
126+
},
127+
{
128+
"data": "The variable name is not final, thus it is mutable",
129+
"idx": 8
130+
},
131+
{
132+
"data": "The variable is mutable, can change, no final for example.",
133+
"idx": 32
134+
},
135+
{
136+
"data": "A variable can change his state many times. Only final variable can have 1 state ",
137+
"idx": 33
138+
}
139+
],
140+
[
141+
{
142+
"data": "The variable can be changed(the pointer can change)",
143+
"idx": 4
144+
},
145+
{
146+
"data": "The variable can be mutated simply by assigning something else to it.",
147+
"idx": 5
148+
},
149+
{
150+
"data": "You can change the variable name for another string.",
151+
"idx": 26
152+
}
153+
]
154+
]
Lines changed: 154 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,154 @@
1+
[
2+
[
3+
{
4+
"data": "It is mutable, since we can change the Object String to which the variable name points to, but not modifying the String itself.",
5+
"idx": 7
6+
},
7+
{
8+
"data": "The variable is mutable (it's vaule can be changed) even if the String type its immutable",
9+
"idx": 9
10+
},
11+
{
12+
"data": "the variable is immutable because we can't change the object itself, but only the reference to the object",
13+
"idx": 14
14+
},
15+
{
16+
"data": "The object under name is immutable; the reference to it is mutable",
17+
"idx": 30
18+
},
19+
{
20+
"data": "Its mutable. Final keyword is necessary for immutable variables",
21+
"idx": 31
22+
}
23+
],
24+
[
25+
{
26+
"data": "Java strings are immutable, when you try to edit them a new String in created.",
27+
"idx": 13
28+
},
29+
{
30+
"data": "Immutability implies that the variable cannot be reinitialized or modified after the first initialization. In this case name can be reinitialized multiple times, moreover the String object can also be modified in memory.",
31+
"idx": 21
32+
}
33+
],
34+
[
35+
{
36+
"data": "It is not declared as final",
37+
"idx": 1
38+
},
39+
{
40+
"data": "The variable name is not final, thus it is mutable",
41+
"idx": 8
42+
},
43+
{
44+
"data": "it is not declared as final",
45+
"idx": 10
46+
},
47+
{
48+
"data": "The variable is not declared as final. ",
49+
"idx": 19
50+
},
51+
{
52+
"data": "It is not marked final, therefore it is mutable. ",
53+
"idx": 22
54+
}
55+
],
56+
[
57+
{
58+
"data": "The final keyword is needed to make a Java variable final. However, since I do not see any code modifying the variable, I may be able to assume that it is 'effectively final'.",
59+
"idx": 3
60+
},
61+
{
62+
"data": "In Java, the ummutable variable should be with the key word `final`.",
63+
"idx": 12
64+
},
65+
{
66+
"data": "the 'final' keyword needs to be used in java to make the variable immutable.",
67+
"idx": 27
68+
}
69+
],
70+
[
71+
{
72+
"data": "Because it is missing the final keyword before the type",
73+
"idx": 16
74+
},
75+
{
76+
"data": "We need the final keyword to make this variable immutable, i.e. not change after it's been initialized. Right now, we could change its value as many time as we want.",
77+
"idx": 24
78+
}
79+
],
80+
[
81+
{
82+
"data": "if there is a final keyword it would be immutable",
83+
"idx": 2
84+
},
85+
{
86+
"data": "No. To be immutable, the keyword 'final' is needed (e.g. 'final String name;')",
87+
"idx": 15
88+
},
89+
{
90+
"data": "it requires the keyword final to be immutable.",
91+
"idx": 23
92+
},
93+
{
94+
"data": "To make it immutable it should have the final keyword",
95+
"idx": 25
96+
}
97+
],
98+
[
99+
{
100+
"data": "In order to be immutable it has to be declared as final. String object is immutable, not the variable.",
101+
"idx": 11
102+
},
103+
{
104+
"data": "To be immutable the variable must be declared as 'final'",
105+
"idx": 28
106+
},
107+
{
108+
"data": "String are immutable object in java but not the variable, it should be declared as final.",
109+
"idx": 29
110+
}
111+
],
112+
[
113+
{
114+
"data": "No, even if 'String' is immutable the variable name must be declared final to be immutable. This variable can be reassigned",
115+
"idx": 17
116+
},
117+
{
118+
"data": "The variable 'name' can be assigned and changed. It would need to be a final String to be immutable.",
119+
"idx": 18
120+
},
121+
{
122+
"data": "To be immutable should have final",
123+
"idx": 20
124+
}
125+
],
126+
[
127+
{
128+
"data": "The variable can be changed(the pointer can change)",
129+
"idx": 4
130+
},
131+
{
132+
"data": "The variable can be mutated simply by assigning something else to it.",
133+
"idx": 5
134+
},
135+
{
136+
"data": "The variable is actually mutable, because it is not a constant and can be changed.",
137+
"idx": 6
138+
}
139+
],
140+
[
141+
{
142+
"data": "You can change the variable name for another string.",
143+
"idx": 26
144+
},
145+
{
146+
"data": "The variable is mutable, can change, no final for example.",
147+
"idx": 32
148+
},
149+
{
150+
"data": "A variable can change his state many times. Only final variable can have 1 state ",
151+
"idx": 33
152+
}
153+
]
154+
]

0 commit comments

Comments
 (0)