Examples of end()


Examples of dclong.util.Timer.end()

        pool.awaitTermination(1000, TimeUnit.SECONDS);
      } catch (InterruptedException e) {
        e.printStackTrace();
      }
    }
    timer.end();
    timer.printSeconds("generating random numbers in parallel");
    timer.begin();
    for (int i = 0; i < 10000; i++) {
//      rng.nextPermutation(2869, 330);
      for (int j = 0; j < 100000; j++) {
View Full Code Here

Examples of de.creepsmash.client.panel.GameScreen.end()

          this.getHeight());
      this.screens.peek().start();
      this.screens.peek().validate();
      this.screens.peek().initialize(this);

      popped.end();
    }

    this.repaint();
  }
   
View Full Code Here

Examples of de.sciss.app.AbstractCompoundEdit.end()

        if( !insertSpan.isEmpty() ) {
          edit.addPerform( TimelineVisualEdit.select( this, Session.this, insertSpan ));
          edit.addPerform( TimelineVisualEdit.position( this, Session.this, insertSpan.stop ));
        }
        edit.perform();
        edit.end();
        getUndoManager().addEdit( edit );
      } else {
        edit.cancel();
      }
    }
View Full Code Here

Examples of de.sciss.app.PerformableEdit.end()

//        for( i = 0; i < doc.getSelectedGroups().size(); i++ ) {
//          group  = (SessionGroup) doc.getSelectedGroups().get( i );
//          edit.addPerform( new EditAddSessionObjects( this, group.getReceivers(), collRcv ));
//        }
        edit.perform();
        edit.end();
        doc.getUndoManager().addEdit( edit );
      }
    }
    catch( InstantiationException e1 ) {
      System.err.println( e1.getLocalizedMessage() );
View Full Code Here

Examples of de.sciss.eisenkraut.edit.BasicCompoundEdit.end()

        edit.addPerform( new EditSetTimelineLength( this, Session.this, selSpan.getLength() ));
        edit.addPerform( TimelineVisualEdit.select( this, Session.this, selSpan.shift( -selSpan.start )));

        edit.perform();
        edit.end();
        getUndoManager().addEdit( edit );
        success = true;
      }
      finally {
        if( !success ) edit.cancel();
View Full Code Here

Examples of de.sciss.meloncillo.edit.BasicCompoundEdit.end()

//        for( int i = 0; i < doc.getSelectedGroups().size(); i++ ) {
//          group  = (SessionGroup) doc.getSelectedGroups().get( i );
//          edit.addPerform( new EditAddSessionObjects( this, group.getReceivers(), coll ));
//        }
        edit.perform();
        edit.end();
        doc.getUndoManager().addEdit( edit );
      }
      catch( InstantiationException e1 ) {
        System.err.println( e1.getLocalizedMessage() );
      }
View Full Code Here

Examples of de.yaams.extensions.basemap.tiled.mapeditor.undo.MapLayerEdit.end()

      if (marqueeSelection != null) {
        layer.mergeOnto(currentLayer);
      }

      transEdit.end(createLayerCopy(currentLayer));
      undoSupport.postEdit(transEdit);
      mapView.repaint();
    }
  }
View Full Code Here

Examples of edu.stanford.nlp.ie.machinereading.structure.Span.end()

        List<CoreLabel> tokens = sentence.get(CoreAnnotations.TokensAnnotation.class);
        for (EntityMention en : entities) {
          //System.out.println("old ner tag for " + en.getExtentString() + " was " + en.getType());
          Span s = en.getExtent();
          Counter<String> allNertagforSpan = new ClassicCounter<String>();
          for (int i = s.start(); i < s.end(); i++) {
            allNertagforSpan.incrementCount(tokens.get(i).ner());
          }
          String entityNertag = Counters.argmax(allNertagforSpan);
          en.setType(entityNertag);
          //System.out.println("new ner tag is " + entityNertag);
View Full Code Here

Examples of edu.stanford.nlp.ling.tokensregex.TokenSequenceMatcher.end()

      int lastUnitPos = -1;
      int possibleNumStart = -1;
      Number possibleNumEndUnit = null;
      Number lastUnit = null;
      // Check if we need to split matched chunk up more
      for (int i = matcher.start(); i < matcher.end(); i++) {
        CoreLabel token = tokens.get(i);
        CoreLabel prev = (i > matcher.start())? tokens.get(i - 1): null;
        Number num = token.get(CoreAnnotations.NumericValueAnnotation.class);
        Number prevNum = (prev != null)? prev.get(CoreAnnotations.NumericValueAnnotation.class):null;
        String w = token.word();
View Full Code Here

Examples of edu.stanford.nlp.trees.LabeledConstituent.end()

    for (Constituent con : constituents) {
      if (!(con instanceof LabeledConstituent)) {
        throw new AssertionError("Unexpected constituent type " + con.getClass());
      }
      LabeledConstituent labeled = (LabeledConstituent) con;
      newConstituents.add(new LabeledConstituent(labeled.start(), labeled.end(), tlp.basicCategory(labeled.value())));
    }
    return newConstituents;
  }
}
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.