text
stringlengths
14
410k
label
int32
0
9
public static void main(String[] args) throws IOException, ParseException { EvidenceRecordFileIterator iterator = new EvidenceRecordFileIterator(new File(args[0])); Read context = new Read(); SAMFileHeader header = new SAMFileHeader(); header.setSortOrder(SAMFileHeader.SortOrder.unsorted); SAMSequenceRecord s...
8
float getInterpolatedVoxelValue(Point3f pt) { int iMax; int xDown = indexDown(pt.x, iMax = voxelCounts[0] - 1); int xUp = xDown + (pt.x < 0 || xDown == iMax ? 0 : 1); int yDown = indexDown(pt.y, iMax = voxelCounts[1] - 1); int yUp = yDown + (pt.y < 0 || yDown == iMax ? 0 : 1); int zDown = indexDown(pt.z, iM...
7
public static String readDomainName(DataInputStream dis, byte firstCount) throws Exception { StringBuffer strBuf = new StringBuffer(); while (true) { // read character count byte count = 0; if (firstCount != 0) { count = firstCount; firstCount = 0; } else count = dis.readByte(); if (...
5
@Override public T validate(String fieldName, T value) throws ValidationException { if (value == null) { return null; } if (min.compareTo(value) > 0) { return min; } return value; }
2
@Override public boolean execute(WorldChannels plugin, CommandSender sender, Command command, String label, String[] args) { final Map<Flag, String> info = new EnumMap<Flag, String>(Flag.class); info.put(Flag.TAG, WorldChannels.TAG); if(!(sender instanceof Player)) { ...
4
@Override public String getVersion() { return "*"; }
0
@Override public void run() { for(int i=0 ; i<pCapacity;i++) { if(i<list.getSize()){ list.addItems(rand.nextInt(45)); try { Thread.sleep(rand.nextInt(30)); } catch (InterruptedException ex)...
3
public boolean endTurn() { timer--; return timer == 0; }
0
public void render() { Image buffer = createImage(500, 600); Graphics b = buffer.getGraphics(); super.paint(b); b.drawImage(null, 0, 0, 500, 550, this); // any other drawing goes here getGraphics().drawImage(buffer, 0, 0, 500, 600, this); }
0
private boolean isHexDigit(int value){ return (value>='0' && value<='9' || value>='a' && value<='f' || value>='A' && value<='F'); }
5
public Queue<String> getUnsearchList(){ return this.staticList; }
0
public CheckResultMessage check26(int day) { return checkReport.check26(day); }
0
public void actionPerformed(ActionEvent e) { if(e.getSource().equals(btnNewButton)){ MetodiDiSupporto.nuovoThread(new Runnable() { public void run() { disposeFrame(); GiocoOffline gO = new GiocoOffline(LauncherFrame.this); gO.inizia(); } }); } if(e.getSource().equals(btnNewButto...
9
private void updateTable(){ // FileTable tablemodel = new FileTable(); // myfiletable = new JTable(tablemodel); files = new ArrayList<File>(); dirs = new ArrayList<File>(); int rowCount=tablemodel.getRowCount(); for (int i = rowCount - 1;i >= 0;i--) { t...
9
public Properties getAttributesInNamespace(String namespace) { Properties result = new Properties(); Iterator enm = this.attributes.iterator(); while (enm.hasNext()) { XMLAttribute attr = (XMLAttribute) enm.next(); if (namespace == null) { if (attr.getName...
4
private Map<Date, Double> addCreditCardCommission(Map<Date, Double> fees, String options) { if (options == null || options.length() == 0) { return fees; } boolean found = false; String[] optionArray = options.split(";"); for (int i = 0; i < optionArray.length; i++) { if ("CCARD".equalsIgnoreCase(optionA...
7
public ElementInfo getElementInfo(Element element){ ElementInfo elementInfo=(ElementInfo)Factory.getFactory().getDataObject(Factory.ObjectTypes.ElementInfo); elementInfo.setElement(element); String type=XmlUtil.stripNameSpaceIf(element.getTagName()); SchemaTypes types=null; if("element"...
7
protected Object[] initializeRow(int row) { Object[] newRow = new Object[getColumnCount()]; Arrays.fill(newRow, null); return newRow; }
0
public House(){ for (int y=0;y<100;y++) { for (int x=0;x<100;x++) tileLayout[x][y] = new Tile('.',1,1,x,y); // create each actual tile } }
2
public JCalkPanel() { setLayout(null); final JTextField txt = new JTextField("0"); add(txt); txt.setBounds(20, 20, 400, 22); String [] str = {"7", "8", "9", "4", "5", "6", "1", "2", "3", "0"}; JPanel butPan1 = new JPanel(); butPan1.setLayout(new GridLayout(4, 3)); for (int i = 1; i <= 10; i++) { JB...
9
public static void main(String args[]) { /* Set the Nimbus look and feel */ //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) "> /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. * For details see http://down...
7
public int getEntityType(String ename) { Object entity[] = (Object[]) entityInfo.get(ename); if (entity == null) { return ENTITY_UNDECLARED; } else { return ((Integer) entity[0]).intValue(); } }
1
private static int getNthValue(Integer[] a, int startIndex, int endIndex, int n) { int pivotValueIndex = startIndex + (endIndex - startIndex) / 2; int resultPivotValueIndex = setInOrderPosition(a, pivotValueIndex, startIndex, endIndex); if (resultPivotValueIndex + 1 == n) { return a...
2
public String toSentence() { List<Long> aStartTime = new ArrayList<Long>(); List<Long> aEndTime = new ArrayList<Long>(); boolean currAvailability = false; for (int i = 0; i < nSlot; i++) { if (this.aIsAvailable[i] == currAvailability) continue; currAvailability = this.aIsAvailable[i]; if (currAv...
5
public void applyMutation(Individual offspring) { int rand = 8; if(offspring.problemInstance.periodCount==1)rand--; int selectedMutationOperator = Utility.randomIntInclusive(rand); if(selectedMutationOperator==0) { //greedy //intra IntraRouteGreedyInsertion.mutate(offspring); } else if (selec...
9
@Override public void actionPerformed(ActionEvent event) { Openable openable = getTarget(Openable.class); if (openable != null) { openable.openSelection(); } }
1
private String prependTimestamp(String str) { if ( str.isEmpty() ) { return str; } else { Calendar c = Calendar.getInstance(); String timestamp = timestampFormat; timestamp = timestamp.replaceFirst("h", getTwoDigits( c.get(Calendar.HOUR_OF_DAY) ) ); ...
1
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { RequestDispatcher rd = null; try { producten.haalBestellingOp(Integer.parseInt(req.getParameter("pId")), Integer.parseInt(req.getParameter("inBestelling")), Integer.parseInt(req.getParameter("voor...
2
public JSONObject main(Map<String,String> params, Session session) throws Exception { return CommonResponses.showNotImplemented(); };
0
public String basename() { int p = name.lastIndexOf('/'); if (p < 0) return (name); return (name.substring(p + 1)); }
1
public void searchLinkAndAddToSet(String str) { String tmp; str = str.replace(" ", ""); int start = str.indexOf("<a"); if(start >= 0){ start = str.indexOf("href=\""); if(start >= 0){ str = str.substring(start+6, str.length()); start = str.indexOf("\""); tmp = str; if(start >= 0){ s...
4
public DroneController(final VisualRenderer visual) { try { drone = new ARDrone(); drone.connect(); drone.addImageListener(new BufferedImageVideoListener() { @Override public void imageReceived(BufferedImage image) { RescaleOp rescaleOp = new RescaleOp(1.4f, 50, null); rescaleOp.filter(i...
8
public void init() { this.setTitle("Config Model"); this.setResizable(true); this.setVisible(true); this.setSize(ecran.getWidth() / 2, ecran.getHeight() / 2); this.setLayout(new GridLayout()); this.setLocation(ecran.getFrame().getX() + ecran.getWidth() / 2 - this.getWidth() / 2, ecran.getFrame().getY() + ...
8
public String toSql() { return sql + (whereClause != null ? " WHERE " + whereClause.toSql() : "") + (orderClause != null ? " ORDER BY " + orderClause.toSql() : "") + (limit != null ? limit.toSql() : ""); }
3
private void newQuestion() { if(ques == Const.QUES_PER_ROUND || lvs == 0) { if(rnd == Const.NUM_ROUNDS || lvs == 0) { final_points.setText(Integer.toString(points)); if(total_ques == Const.NUM_ROUNDS * Const.QUES_PER_ROUND && lvs > 0) complete.setVisible(true); CardLayout cl = (CardLayout)windows....
9
public void activate(Robot paramRobot, int paramInt) { Vector[][] arrayOfVector = getEnvironment().getObjectMap(); boolean bool = true; int i = this.location.x; for (int j = 0; j < this.shape.length; j++) { int k = this.location.y; for (int m = 0; m < this.shape[0].length; m++) { if ...
6
public String getUrl() { return this.getReferRequestWrapper().getUrl(); }
0
private boolean verifierDeplacementSinge(final int tmpX, final int tmpY) { boolean dplInterdit = false; if (this.monkeyIsland.valeurCarte(tmpX, tmpY) == Integer.valueOf(0)) { dplInterdit = true; } else { // Verifier pas de singe int n = 0; final List<SingeErratique> erratiques = this.monkeyIsland.get...
7
public Iterator<Ticket> getAvaliableTickets() { List<Ticket> avaliableTickets = new ArrayList<Ticket>(); for (Ticket ticket : tickets) { if (ticket.getStatus() == TicketStatus.ENABLE) { avaliableTickets.add(ticket); } } return avaliableTickets.iterator(); }
2
public static void main(String[] args) { URLMonitor mon = new URLMonitor(); mon.addRemaining("http://cs.lth.se/eda095"); ArrayList<Processor> processors = new ArrayList<Processor>(); for (int i = 0; i < 10; i++) { Processor p = new Processor(mon, "http://cs.lth.se/eda095"); processors.add(p); p.start(...
4
public List<FoodDataBean> getBoardCommentaryList(int idx) throws Exception{ Connection conn = null; PreparedStatement pstmt = null; ResultSet rs = null; List<FoodDataBean> commList = null; String sql = ""; FoodDataBean comm = null; try{ conn = getConnection(); sql = "select * from foodcommentary wh...
9
private void addAnswersTable() { tablePanel = new JPanel(); tableModel = new DefaultTableModel(new String[] { "Treść odpowiedzi", "Poprawna" }, 0){ Class[] types = { String.class, Boolean.class }; // making sure that it returns boolean.class. @Over...
3
public static void main(String[] args) { StopWatch stopWatch1 = new StopWatch(); final int LENGTH_OF_LIST = 100000; int[] list = new int[LENGTH_OF_LIST]; stopWatch1.start(); for (int i = 0; i < LENGTH_OF_LIST; i++) { list[i] = (int) (Math.random() * list.length); } for (int i = 0; i < LENGTH_OF_LIST; i...
5
public String getCurrentPuzzle() { String currentPuzzle = ""; for(int i = 0; i < 16; i++) { for(int j = 0; j < 16; j++) { if(entries[i][j].isEditable()) { currentPuzzle = currentPuzzle + "E "; } else { currentPuzzle = currentPuzzle + "N "; } if(entries[i][j].getText().equals("")) { ...
4
public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null || this.getClass() != obj.getClass()) { return false; } Result otherResult = (Result) obj; boolean statsEqual; if (status == null) { if (ot...
8
public boolean move() { game_area.updateDirection(); Point next_field = getHead().add(direction); /* Wenn sich neuer Punkt im Spielfeld befindet, * fuege den Punkt der Schlange hinzu und ueberpruefe * anschliessend, ob Schlange zu lang ist. Wenn ja, loesche * letzten P...
8
public static void loadVideoInfo() { checkUSB(); System.out.println("start to load videos' info from usb"); String rootPath = USBConfig.drivePath; String videonewFolder = rootPath + USBConfig.VIDEO_NEW_FOLDER + "\\"; System.out.println(videonewFolder); File videoFilesPath = new File(videonewFolder); if ...
3
private void drawCenter(int[] circle, int r){ //TODO: change int d = getD(); for (int i = -3; i < 4; i++ ){ circle[((r+i)*d) + r] = GUIStandarts.drawColor; circle[(r*d) + r + i] = GUIStandarts.drawColor; } }
1
void setActive(String name){ Sheet a=null; for(Sheet s:sheets){ if(s.getName().equals(name)){ a=s; break; } } if(a==null) return ; switch(viewType){ case VIEWTYPE_TABS:{ JTabbedPane tabs=(JTabbedP...
5
private void dropTable(String tableName) throws SQLException { if (conn != null) { PreparedStatement stmt = conn.prepareStatement(String.format("DROP TABLE IF EXISTS %s", tableName)); stmt.execute(); } }
1
@Override public File getFile() { return super.getFile(); }
0
public SmallCardsViewer(DeckCreator parent) { super(JScrollPane.VERTICAL_SCROLLBAR_NEVER, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER); this.parent = parent; swingWorker = new SwingWorker() { @Override protected Object doInBackground() throws Exception { ...
9
public static StandardObject extractParameterType(StandardObject self, Symbol parameter, Object [] MV_returnarray) { { Surrogate testValue000 = Stella_Object.safePrimaryType(self); if (Surrogate.subtypeOfSurrogateP(testValue000)) { { Surrogate self000 = ((Surrogate)(self)); { Slot slot = S...
6
public CtField lookupField(String className, Symbol fieldName) throws CompileError { CtClass cc = lookupClass(className, false); try { return cc.getField(fieldName.get()); } catch (NotFoundException e) {} throw new CompileError("no such field: " + fieldNam...
1
@Override public boolean onCommand(CommandSender sender, Command cmd, String cmdLabel, String[] args) { if(!(sender instanceof Player)) { return true; } Player player = (Player) sender; if(!(args.length == 1)) { return true; } if(!(Util.hasLocations(player))) { return true; } fo...
5
private void mergeTwoRegions(DenseRegion r1, DenseRegion r2){ Cluster c = null; int clusterID =0; if(!r1.getIsInCluster() && !r2.getIsInCluster()){ c = new Cluster(this.clustersCount); c.addDenseRegion(r1); c.addDenseRegion(r2); r1.setClusterID(c.getID()); r2.setClusterID(c.getID()); this.cluste...
6
@Override public void show() { System.out.println(name + ", here are your search results:"); Auction[] auctionResults = as.search(input); for(Auction auc : auctionResults){ try{ System.out.println(auc.toString()); } catch(Exception e){ System.out.println("No results match"); } } System...
2
public int uniquePaths(int m, int n) { if (m==0||n==0){ return 0; } int posible[][] = new int[m][n]; posible[0][0] = 1; for (int i = 1;i<m;i++){ posible[i][0] = 1; } for (int i = 1;i<n;i++){ posible[0][i] = 1; } ...
6
private static void sortBlock(File[] files, int start, int end, File[] mergeTemp) { final int length = end - start + 1; if (length < 8) { for (int i = end; i > start; --i) { for (int j = end; j > start; --j) { if (compareFiles(files[j - 1], files[j]) > 0) { final File temp = files[j]; ...
9
public JPanel getUserlistLayoutMenu() { if (!this.init_1) { IllegalStateException e = new IllegalStateException("Call init first!"); throw e; } return this.userlistLayoutMenu; }
1
public MatchTuple match(Tree<String> a, Tree<String> b) { if (!a.getRoot().getLabel().equalsIgnoreCase(b.getRoot().getLabel())) { return new MatchTuple(0, a.size(), b.size()); } else { int m = a.getRoot().getChildrenSize(); int n = b.getRoot().getChildrenSize(); ...
7
public int countRightDiagonal(Example e, int currentToken, int numTokensCountingFor){ int height = e.getBoard().height; // 6 int width = e.getBoard().width; // 7 int countOfTokensEncounteredDiagonallyRight = 0; // counter int countOfCurrentPlayersNInARow = 0; // bottom index is (5, 0) for (int i = heigh...
7
private Set<String> keywordsFromUrlString(String urlChunk) { Set<String> keywords = new HashSet<>(); if (urlChunk.length() < MIN_KEYWORD_LENGTH) { return keywords; // enforce a minimum keyword length. } if (dictionary.isStringInDictionary(urlChunk)) { keywords.add...
7
public Company getCompany() { return Cmp; }
0
@SuppressWarnings("unchecked") private List<IResource> fetchResources(HtmlPage page) throws MalformedURLException { List<IResource> resources = new ArrayList<>(); for (HtmlScript script : (List<HtmlScript>) page.getByXPath("/html/head/script")) { String src = script.getSrcAttribute(); ...
3
@Override public boolean partieTerminee() { //On teste chaque ligne possible pour les deux joueurs for(int i = 1; i <= getPlateau().getLongueur() - getValeurVictoire() + 1; i++) { for(int j = 1; j <= getPlateau().getLongueur(); j++) { if(getPlateau...
8
public static Map<String,String> getDataGroupSubjectMap(String url,String minDateStr,String maxDateStr) throws ParseException{ Map<String,String> map = new IdentityHashMap<String,String>(); List<String> DataGroupList = new ArrayList<String>(); List<String> SubjectList = new ArrayList<String>(); List<String> rem...
8
private void scrollSelectionIntoViewInternal() { Selection selection = mModel.getSelection(); int first = selection.nextSelectedIndex(getFirstRowToDisplay()); int max = getLastRowToDisplay(); if (first != -1 && first <= max) { Rectangle bounds = getRowIndexBounds(first); int tmp = first; int last; ...
5
public String consultarTurnos(boolean sentenciaCompleta) { conexion.conectar(); String respuesta = "exito"; String modificadorConsulta = ""; String modificadorConsulta2 = ""; if (sentenciaCompleta) { modificadorConsulta = "and descripcion='' and t.estado = false "; ...
5
public boolean checkChunksExist(int var1, int var2, int var3, int var4, int var5, int var6) { if (var5 >= 0 && var2 < 128) { var1 >>= 4; var2 >>= 4; var3 >>= 4; var4 >>= 4; var5 >>= 4; var6 >>= 4; for (int var7 = var1; var7 <= ...
5
public boolean onCommand(CommandSender sender, Command command, String commandLabel, String[] args) { String cmd = command.getName().toLowerCase(); if (cmd.equalsIgnoreCase("roomy")) return RoomyCommands.roomyCmd(sender, args); else if (cmd.equalsIgnoreCase("setroom")) return Room...
8
public static void main(String a) { SpringApplication.run(BookAFlightApplication.class, a); }
0
public static EnterMineAndDigForNugget getSingleton(){ // needed because once there is singleton available no need to acquire // monitor again & again as it is costly if(singleton==null) { synchronized(EnterMineAndDigForNugget.class){ // this is needed if two threads are waiting at ...
2
@Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof MSN)) return false; MSN msn = (MSN) o; if (!MTSO.equals(msn.MTSO)) return false; if (!location.equals(msn.location)) return false; if (!mateMSN.equals(msn.mateMSN)) return fal...
7
@Override public boolean supportsMoveability() {return true;}
0
@Override public void run() { for(long i = 0; i < 2000000000; i++); System.out.println("Slowly thread completed"); }
1
public static String toString(Line line) { if (line == null) return null; Line.Info info = line.getLineInfo(); return info.toString();// + " (" + line.getClass().getSimpleName() + ")"; }
1
public boolean pensar(ArrayList<Carta> cartasAbiertas) { int cuenta = contar(cartasAbiertas); int acum = sumarCartas(); if (acum == 21) { return false; } else if ((cuenta > 0 && cuenta <= 5 && acum <= 17)||(cuenta<= -5 && acum>=17 )||(cuenta==0 && acum<17)) { re...
8
private boolean isPunctuation(char next) { return next == '{' || next == '}' || next == '|' || next == ':' || next == '.' || next == '!' || next == '=' || next == '&' || next == ';'; }
8
public Vector3D[][] exportVectors() { for(int i = 0; i < numPlane; i++) { Equation e = equations[i]; String s = ""; if (Equation.needUpdate[i]) { // s = s + ":" + i; needDraw[i] = updateVecs(e, i); e.update(false); alpha[i] = e.alpha; } if (i == 4 && s != "") { // System.out.println...
4
public static void print(int intArr[], int len){ System.out.println("After sorting array using RADIX SORT...\nThe following is the sorted array:"); for (int i=0; i<len; i++){ System.out.println(intArr[i]); } }
1
@Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { int iDelay = 0; resp.setContentType("text/html"); PrintWriter writer = resp.getWriter(); if(req.getParameter("delay") != null) { try { ...
2
public Object getValueAt(int rowIndex, int columnIndex) { switch (columnIndex) {// parcour par colonne case 0://colonne id_Stock return Pharmacies.get(rowIndex).getId_ph(); case 1://colonne id_Stock return Pharmacies.get(rowIndex).getNom_ph(); ...
8
public void addFileDownloadItem(FileDownloadItem item){ items.add(item); }
0
public static List<String> depthFirstSearch(Graph graph, String startName, String goalName) { HashMap<String,Vertex> vertices = graph.getVertices(); // get all the vertices if(!vertices.containsKey(startName) || !vertices.containsKey(goalName)) throw new UnsupportedOperationException("The graph does not co...
4
private void setSkin(String lookAndFeel) throws FileNotFoundException, IOException{ try { UIManager.setLookAndFeel(lookAndFeel); } catch (ClassNotFoundException e) { e.printStackTrace(); } catch (InstantiationException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTr...
4
public void visitEnum(final String name, final String desc, final String value) { if (name != null) { cp.newUTF8(name); } cp.newUTF8(desc); cp.newUTF8(value); av.visitEnum(name, desc, value); }
1
public int binaryToDecimal(String binary) { int decimal = 0; for (int i = binary.length() - 1; i >= 0; i--) { decimal += (binary.charAt(i) - '0') * Math.pow(2, binary.length() - i - 1); } return decimal; }
1
public Game(List<Player> players) throws FileNotFoundException, IOException{ if(players == null){ throw new NullPointerException("Players can't be null"); } if(players.size()<2){ throw new IllegalArgumentException("The game needs at least 2 players."); } allLetterTiles = new ArrayList<Tile>(); allPlay...
4
public Instances getDataSet() throws IOException { Instances result; double[] sparse; double[] data; int i; if (m_sourceReader == null) throw new IOException("No source has been specified"); if (getRetrieval() == INCREMENTAL) throw new IOException("Cannot mix getting Instance...
9
private Dimension layoutSize(Container target, boolean preferred) { synchronized (target.getTreeLock()) { // Each row must fit with the width allocated to the containter. // When the container width = 0, the preferred width of the container // has not yet been ...
8
public int getAverage(final String callName) { float avg = -1; final List<CallData> callDataList = getCallData(callName); for (final CallData callDataEntry : callDataList) { if (avg == -1) { avg = callDataEntry.getDuration(); } else { avg = (avg + (float)callDataEntry.getDuration()) / (float)2; }...
2
private void processMessage() throws InterruptedException { try { MessageUnit mu = messageQueue.take(); Message m = mu.msg; Object result = null; if (m instanceof SubmitWorkerMessage) { SubmitWorkerMessage swm = ((SubmitWorkerMessage) m); ...
5
public static SwtorParserEvent newEvent(SwtorParser.StateChange sc){ SwtorParserEvent ev = null; switch(sc.getType()){ case HEALS: ev = new HealEvent(sc); break; case DAMAGE: ev = new DamageEvent(sc); break; case THREAT: ev = new ThreatEvent(sc); break; case COMBAT: ev = new C...
7
public static void main(String[] args) { int valor1=0; int valor2=0; double resultado=0; char continuar; boolean validar=true; int opcion=0; Scanner teclado=new Scanner(System.in); operacion ooperacion=new operacion(); do ...
9
public void loadPlayerConfigFile(String file) throws FileNotFoundException, BadConfigFormatException { FileReader playerReader = new FileReader(file); Scanner playerScanner = new Scanner(playerReader); HumanPlayer human; ComputerPlayer currentComputer; final int numColumns = 4; int row = 0, column = 0; in...
4
public TankDrive() { requires(Robot.driveTrain); }
0
public SaveFileFormat getSaveFormat(String formatName) { int index = indexOfName(formatName, saverNames); if (index >= 0) { return (SaveFileFormat) savers.get(index); } return null; }
1
public void abort() throws java.io.IOException { //String command = createInferenceAbortionCommand(); //DefaultSubLWorkerSynch newWorker = new DefaultSubLWorkerSynch(command, getCycServer(), false, getTimeoutMsecs()); //newWorker.getWork(); if (this.suspendReason == InferenceWorkerSuspendReason.INTERRUP...
1
public boolean checkHasLost() { if(this.life < 1){ return true; } return this.hasLost; }
1