Examples of reset()


Examples of transientlibs.objects.general.Dice.reset()

            looks.add(new SmallPoints(dice.resultID, 100));

            //Log.info("Rolled "+nowGroup.get(dice.resultID).LName);

            dice.reset();

        }
    }

    public void rollJob (){
View Full Code Here

Examples of tv.floe.metronome.clustering.kmeans.Mean.reset()

    averager.add(one);
   
    Point averageA = averager.toPoint();
    assertEquals(half, averageA);
   
    averager.reset();
    averager.add(zero);
    averager.add(zero);
    averager.add(zero);
    averager.add(one);
   
View Full Code Here

Examples of tv.floe.metronome.clustering.kmeans.Means.reset()

  @Override
  public UpdateableMeans compute(Collection<UpdateableMeans> workerUpdates,
      Collection<UpdateableMeans> masterUpdates) {
    Means means = um.get();
    means.reset();
   
    for(UpdateableMeans m : workerUpdates) {
      System.out.println(m);
      means.merge(m.get());
    }
View Full Code Here

Examples of tv.floe.metronome.deeplearning.datasets.iterator.impl.MnistDataSetIterator.reset()

        first = fetcher.next();
      }
     
    } while (fetcher.hasNext());

    fetcher.reset();
    first = fetcher.next();
   
    recordsProcessed = 0;
   
    do {
View Full Code Here

Examples of uk.ac.cam.ch.wwmm.oscar3.recogniser.document.StringSource.reset()

      //files = FileTools.getFilesFromDirectoryByName(new File("/scratch/pubmed/2005"), "source.xml");
      StringSource ss = new StringSource(files, false);
     
      Bag<String> wordCounts = new Bag<String>();
     
      ss.reset();
      for(String s : ss) {
        TokenSequence t = Tokeniser.getInstance().tokenise(s);
        for(String word : t.getTokenStringList()) {
          if(!word.matches(".*[a-z][a-z].*")) continue;
          word = StringTools.normaliseName(word);
View Full Code Here

Examples of uk.ac.cam.ch.wwmm.oscar3.recogniser.document.TokenSequenceSource.reset()

        terms.add(StringTools.normaliseName(word));
      }
    }*/
   
    TokenSequenceSource tokSeqSource = new TokenSequenceSource(files);
    tokSeqSource.reset();
    for(TokenSequence t : tokSeqSource) {
      for(String word : t.getTokenStringList()) {
        word = StringTools.normaliseName(word);
        word = word.replaceAll("\\s+", "_");
        terms.add(word.intern());
View Full Code Here

Examples of uk.ac.ebi.ena.sra.cram.io.ExposedByteArrayOutputStream.reset()

    dos.write(baos.getBuffer(), 0, baos.size());
    dos.flush();
    len += baos.size();

    baos.reset();

    return len;
  }

  private InputStream wrapInputStream(InputStream is, byte wrapperID) throws IOException {
View Full Code Here

Examples of uk.ac.uea.threadr.Threadr.reset()

        Threadr.logger.fine(String.format(
            "\tNon-threaded tasks execution time %dms\n", diff1));

        /* Test parallel executions. */
        System.gc();
        threadr.reset();
        threadr.addTasks(test);
        for (ThreadrTest t : test) {
          Threadr.logger.finer(t.toString());
        }
        startTime = System.currentTimeMillis();
View Full Code Here

Examples of webit.script.Template.reset()

        Map<String, Object> param = new HashMap<String, Object>(4);
        param.put("trimBlankLine", true);
        template.merge(KeyValuesUtil.wrap(param), out);

        engine.setTrimCodeBlockBlankLine(false);
        template.reset();

        param.put("trimBlankLine", false);
        template.merge(KeyValuesUtil.wrap(param), out);

    }
View Full Code Here

Examples of webit.script.util.ByteArrayOutputStream.reset()

    protected byte[] getBytes(char[] text) {
        try {
            final ByteArrayOutputStream out = outputs.get();
            encoders.get().write(text, 0, text.length, out);
            final byte[] bytes = out.toArray();
            out.reset();
            return bytes;
        } catch (IOException ex) {
            throw new ScriptRuntimeException(ex);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.