@@ -126,36 +126,6 @@ public void narInferenceSteps(int steps) {
126
126
127
127
if (!useRngAgent ) {
128
128
try {
129
- /*
130
- while(true) {
131
- int len = is.available();
132
-
133
- if (len > 0) {
134
- int here = 5;
135
- }
136
-
137
- break;
138
-
139
- *
140
- byte[] buf = new byte[10];
141
- is.read(buf);
142
-
143
- if (buf[0] == 0) { // is empty line?
144
- break;
145
- }
146
-
147
- String bufAsString = new String(buf);
148
-
149
- System.out.println(bufAsString);
150
-
151
- int here = 5;
152
-
153
- *
154
- }
155
-
156
- */
157
-
158
-
159
129
while (true ) {
160
130
//byte[] arr = new byte[1];
161
131
//is.read(arr);
@@ -236,15 +206,6 @@ public NarConSimpleWorld() {
236
206
classifier .minSimilarity = 0.87f ;
237
207
}
238
208
239
-
240
- /*
241
- try {
242
- socket = new DatagramSocket(50001);
243
- socket.setSoTimeout(1);
244
- } catch (SocketException e) {
245
- e.printStackTrace();
246
- }*/
247
-
248
209
// TODO < decide path based on OS >
249
210
String commandline = pathToOna +"\\ NAR.exe" ;
250
211
@@ -253,46 +214,6 @@ public NarConSimpleWorld() {
253
214
os = pro .getOutputStream ();
254
215
is = pro .getInputStream ();
255
216
256
- /*
257
- BufferedReader stdInput = new BufferedReader(new
258
- InputStreamReader(is));
259
-
260
- //os.write("< a --> b >.\n".getBytes());
261
-
262
- //sendText(""+5, false);
263
-
264
- byte[] buf = (5+"\r\n").getBytes();
265
- try {
266
- os.write(buf);
267
- os.flush();
268
- } catch (IOException e) {
269
- e.printStackTrace();
270
- }
271
-
272
- try {
273
- Thread.sleep(100); // give other processes time
274
- } catch (InterruptedException e) {
275
- //e.printStackTrace();
276
- }
277
-
278
- String inputLine;
279
- while ((inputLine = stdInput.readLine()) != null)
280
- System.out.println(inputLine);
281
-
282
- */
283
-
284
- /*
285
- for(;;) {
286
- String x = stdInput.readLine();
287
-
288
- //if (a > 0) {
289
- int here = 5;
290
- //}
291
-
292
- }
293
-
294
- */
295
-
296
217
int here = 5 ;
297
218
298
219
//int here = 5;
0 commit comments