buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
private void onSearchPressed(java.lang.String search) { mSearchButton.setEnabled(false); hideSearch(); if ((mListener) != null) { switch (mRadioGroup.getCheckedRadioButtonId()) { case R.id.artist_radioButton : new com.rowenetworks.concearch.tasks.ArtistSearchTask(mListene...
private void onSearchPressed(java.lang.String search) { mSearchButton.setEnabled(false); hideSearch(); if ((mListener) != null) { switch (mRadioGroup.getCheckedRadioButtonId()) { case R.id.artist_radioButton : new com.rowenetworks.concearch.tasks.ArtistSearchTask(mListene...
private static void testGetArchive(int account_id) throws ibm.resource.DatabaseException { java.util.ArrayList<ibm.resource.Transaction> array = ibm.db.DB.getArchive(account_id); for (ibm.resource.Transaction t : array) { java.lang.System.out.println((((((((t.getId()) + " ") + (t.getAccountId())) + " ")...
private static void testGetArchive(int account_id) throws ibm.resource.DatabaseException { java.util.ArrayList<ibm.resource.Transaction> array = ibm.db.DB.getArchive(account_id); for (ibm.resource.Transaction t : array) { java.lang.System.out.println((((((t.getAccountId()) + " ") + (t.getAmount())) + " ...
public lexical.Token nextToken() { try { return nextToken2(); } catch (java.lang.StringIndexOutOfBoundsException e) { if ((categ) == (lexical.tkCateg.tk_start)) { return new lexical.Token("", lexical.tkCateg.tk_EOF, (-1)); }else { return new lexical.Token(code.sub...
public lexical.Token nextToken() { try { return nextToken2(); } catch (java.lang.StringIndexOutOfBoundsException e) { if ((categ) == (lexical.tkCateg.tk_start)) { return new lexical.Token("", lexical.tkCateg.tk_EOF, (-1)); }else { return new lexical.Token(code.sub...
private T get(int index) { try { MyLinkedList<T>.LNode current = start; for (int i = 0; i < (size); i++) { if (i == index) { return current.getValue(); } current = current.getNext(); } } catch (java.lang.IndexOutOfBoundsException e) { ...
public T get(int index) { if ((index < 0) || (index >= (size))) { throw new java.lang.IndexOutOfBoundsException("Index out of bound"); }else { MyLinkedList<T>.LNode current = start; for (int i = 0; i < (size); i++) { if (i == index) { return current.getValue()...
private void onDragged(javafx.scene.input.MouseEvent e) { data.Point pos = transformCoordinate(e.getX(), e.getY()); if (pos == null) { clearPreview(); prevPos = data.Point.DUMMY_POINT; }else if (!(pos.equals(prevPos))) { clearPreview(); strategy.onDragged(pos)...
private void onDragged(javafx.scene.input.MouseEvent e) { data.Point pos = transformCoordinate(e.getX(), e.getY()); if (pos == null) { clearPreview(); }else if (!(pos.equals(prevPos))) { clearPreview(); strategy.onDragged(pos); prevPos = pos; } ...
public void onItemClick(android.widget.AdapterView<?> parent, android.view.View view, int position, long id) { switch (position) { case 0 : startActivity(new android.content.Intent(this, de.prismatikremote.hartz.prismatikremote.MainActivity.class)); break; case 1 : ...
public void onItemClick(android.widget.AdapterView<?> parent, android.view.View view, int position, long id) { switch (position) { case 0 : startActivity(new android.content.Intent(context, de.prismatikremote.hartz.prismatikremote.MainActivity.class)); break; case 1 : ...
public D resolveDestination(java.lang.String name) throws org.springframework.messaging.core.DestinationResolutionException { D destination = this.resolvedDestinationCache.get(name); if (destination == null) { destination = this.targetDestinationResolver.resolveDestination(name); this.resolvedDe...
public D resolveDestination(java.lang.String name) throws org.springframework.messaging.core.DestinationResolutionException { D destination = this.resolvedDestinationCache.get(name); if (destination == null) { destination = this.targetDestinationResolver.resolveDestination(name); this.resolvedDe...
private boolean focusOnValue(android.widget.LinearLayout rowLayout, java.lang.String key) { boolean found = false; for (int i = (rowLayout.getChildCount()) - 1; i >= 0; --i) { de.blau.android.propertyeditor.TagEditorFragment.TagEditRow ter = ((de.blau.android.propertyeditor.TagEditorFragment.TagEditRow)...
private boolean focusOnValue(android.widget.LinearLayout rowLayout, java.lang.String key) { boolean found = false; for (int i = (rowLayout.getChildCount()) - 1; i >= 0; --i) { de.blau.android.propertyeditor.TagEditorFragment.TagEditRow ter = ((de.blau.android.propertyeditor.TagEditorFragment.TagEditRow)...
protected long _getContent(java.io.InputStream response) { java.io.BufferedReader mRd = new java.io.BufferedReader(new java.io.InputStreamReader(response)); java.lang.String sBody = ""; java.lang.String sContent = ""; try { while ((sBody = mRd.readLine()) != null) { sContent += sBody...
protected void _getContent(java.io.InputStream response) throws java.io.IOException { java.io.BufferedReader mRd = new java.io.BufferedReader(new java.io.InputStreamReader(response)); java.lang.String sBody = ""; java.lang.String sContent = ""; while ((sBody = mRd.readLine()) != null) { sContent...
public void onClick(android.view.View v) { if ((com.teleco.psi.battleship.GameActivity.matrixMachine[i][j][0]) == 1) { view.setBackgroundColor(Color.RED); return ; }else { view.setBackgroundColor(Color.BLUE); } com.teleco.psi.battleship.GameActivity.IATurn = true; com.teleco....
public void onClick(android.view.View v) { if ((com.teleco.psi.battleship.GameActivity.matrixMachine[(i - 1)][(j - 1)][0]) == 1) { view.setBackgroundColor(Color.RED); return ; }else { view.setBackgroundColor(Color.BLUE); } com.teleco.psi.battleship.GameActivity.IATurn = true; ...
protected void remove(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface> key, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface port) { java.lang.Str...
protected void remove(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface> key, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface port) { java.lang.Str...
public static void setupTest() throws java.lang.Exception { setupBatchArtifacts(co.cask.hydrator.plugin.batch.source.BatchXMLFileFilterTest.BATCH_APP_ARTIFACT_ID, co.cask.cdap.datapipeline.DataPipelineApp.class); addPluginArtifact(NamespaceId.DEFAULT.artifact("core-plugins", "1.0.1"), co.cask.hydrator.plugin.ba...
public static void setupTest() throws java.lang.Exception { setupBatchArtifacts(co.cask.hydrator.plugin.batch.source.BatchXMLFileFilterTest.BATCH_APP_ARTIFACT_ID, co.cask.cdap.datapipeline.DataPipelineApp.class); addPluginArtifact(NamespaceId.DEFAULT.artifact("core-plugins", "1.0.1"), co.cask.hydrator.plugin.ba...
public java.lang.String del(java.lang.Integer articleNo, java.lang.String boardCd, java.lang.Integer curPage, java.lang.String searchWord, javax.servlet.http.HttpSession session) throws java.lang.Exception { net.java_school.board.Article article = boardService.getArticle(articleNo); boardService.removeArticle(a...
public java.lang.String del(java.lang.Integer articleNo, java.lang.String boardCd, java.lang.Integer curPage, java.lang.String searchWord) throws java.lang.Exception { net.java_school.board.Article article = boardService.getArticle(articleNo); boardService.removeArticle(article); searchWord = java.net.URLEn...
if (isStandingOn) { if ((millisTillGone) < 3000) { this.drawBlock = (((millisTillGone) / 1000) % 2) == 0; }else { this.drawBlock = (((millisTillGone) / 100) % 2) == 0; } } }
private void flikker() { if ((millisTillGone) < 3000) { this.drawBlock = (((millisTillGone) / 1000) % 2) == 0; }else { this.drawBlock = (((millisTillGone) / 100) % 2) == 0; } }
private org.molgenis.data.Entity upsert(org.molgenis.data.mapping.model.AttributeMapping attributeMapping) { org.molgenis.data.Entity result; if ((attributeMapping.getIdentifier()) == null) { attributeMapping.setIdentifier(idGenerator.generateId().toString()); result = toAttributeMappingEntity(a...
private org.molgenis.data.Entity upsert(org.molgenis.data.mapping.model.AttributeMapping attributeMapping) { org.molgenis.data.Entity result; if ((attributeMapping.getIdentifier()) == null) { attributeMapping.setIdentifier(idGenerator.generateId().toString()); result = toAttributeMappingEntity(a...
private static void printInterfaces(org.eclipse.birt.report.engine.api.IParameterDefnBase definition) { de.interseroh.report.services.BirtReportUtil.logger.debug(("Class:" + (definition.getClass().getCanonicalName()))); for (java.lang.Class<?> anInterface : definition.getClass().getInterfaces()) { de.in...
private static void printInterfaces(org.eclipse.birt.report.engine.api.IParameterDefnBase definition) { de.interseroh.report.services.BirtReportUtil.logger.debug(("Class:" + (definition.getClass().getCanonicalName()))); for (java.lang.Class<?> anInterface : definition.getClass().getInterfaces()) { de.in...
public yalantis.com.sidemenu.interfaces.ScreenShotable onSwitch(yalantis.com.sidemenu.interfaces.Resourceble slideMenuItem, yalantis.com.sidemenu.interfaces.ScreenShotable screenShotable, int position) { android.util.Log.v(LOG_TAG, ("" + position)); switch (slideMenuItem.getName()) { case map.minimap.ma...
public yalantis.com.sidemenu.interfaces.ScreenShotable onSwitch(yalantis.com.sidemenu.interfaces.Resourceble slideMenuItem, yalantis.com.sidemenu.interfaces.ScreenShotable screenShotable, int position) { android.util.Log.v(LOG_TAG, ("" + position)); switch (slideMenuItem.getName()) { case map.minimap.ma...
public static void e(java.lang.String tag, java.lang.String message, java.lang.Exception e) { if (com.airmap.airmapsdk.AirMapLog.ENABLED) { if (com.airmap.airmapsdk.AirMapLog.TESTING) { java.lang.System.out.println(((tag + ": ") + message)); }else { android.util.Log.e(tag, me...
public static void e(java.lang.String tag, java.lang.String message, java.lang.Exception e) { if (com.airmap.airmapsdk.AirMapLog.ENABLED) { if (com.airmap.airmapsdk.AirMapLog.TESTING) { java.lang.System.out.println(((tag + ": ") + message)); }else if (!(message.isEmpty())) { ...
private void doMySearch(java.lang.String movie_title) { android.util.Log.i(com.anuradha.moviecorner.MainActivity.LOG_TAG, "in doMySearch"); android.content.SharedPreferences sharedPref = android.preference.PreferenceManager.getDefaultSharedPreferences(this); java.lang.String sort_order_with_title = (getReso...
private void doMySearch(java.lang.String movie_title) { android.content.SharedPreferences sharedPref = android.preference.PreferenceManager.getDefaultSharedPreferences(this); java.lang.String sort_order_with_title = (getResources().getStringArray(R.array.sort_values)[8]) + movie_title; sharedPref.edit().put...
public void onComplete(com.firebase.client.FirebaseError firebaseError, com.firebase.client.Firebase firebase) { android.util.Log.v("CustomTileAdapter", "inNotLike"); myFirebase.setDislike(object.name, user); android.content.Context context = parent.getContext(); java.lang.CharSequence text = "Disliked ...
public void onComplete(com.firebase.client.FirebaseError firebaseError, com.firebase.client.Firebase firebase) { android.util.Log.v("CustomTileAdapter", "inNotLike"); myFirebase.setDislike(user, object.name); android.content.Context context = parent.getContext(); java.lang.CharSequence text = "Disliked ...
protected void addRemindBef(java.lang.String[] arg) { java.lang.String[] restOfArgs = new java.lang.String[(arg.length) - 2]; for (int i = 0; i < (arg.length); i++) { restOfArgs[i] = arg[(i + 2)]; } logic.addRemindBef(arg[0], arg[1], restOfArgs); }
protected void addRemindBef(java.lang.String[] arg) { java.lang.String[] restOfArgs = new java.lang.String[(arg.length) - 2]; for (int i = 0; i < ((arg.length) - 2); i++) { restOfArgs[i] = arg[(i + 2)]; } logic.addRemindBef(arg[0], arg[1], restOfArgs); }
public website.frontrow.level.Level parseMap(java.io.InputStream stream) throws java.io.IOException { java.io.BufferedReader reader = new java.io.BufferedReader(new java.io.InputStreamReader(stream)); int len = -1; java.lang.String line; java.util.ArrayList<java.lang.String> lines = new java.util.ArrayL...
public website.frontrow.level.Level parseMap(java.io.InputStream stream) throws java.io.IOException { java.io.BufferedReader reader = new java.io.BufferedReader(new java.io.InputStreamReader(stream)); int len = -1; java.lang.String line; java.util.ArrayList<java.lang.String> lines = new java.util.ArrayL...
private void listDimensionKeyColumnsInTable(java.util.List<java.lang.String> dimensionColumns, java.sql.ResultSet rs) throws java.sql.SQLException { while (rs.next()) { fi.thl.pivot.datasource.JDBCSource.LOG.debug(java.lang.String.format("Column '%s' detected in fact table", rs.getString("COLUMN_NAME"))); ...
private void listDimensionKeyColumnsInTable(java.util.List<java.lang.String> dimensionColumns, java.sql.ResultSet rs) throws java.sql.SQLException { while (rs.next()) { fi.thl.pivot.datasource.JDBCSource.LOG.debug(java.lang.String.format("Column '%s' detected in fact table", rs.getString("COLUMN_NAME"))); ...
java.lang.Object[] whereValues() { java.util.List<java.lang.Object> ret = new java.util.LinkedList<java.lang.Object>(); for (jazmin.driver.jdbc.QueryTerms.Where w : wheres) { if ((w.key) != null) { ret.add(w.value); }else { ret.addAll(w.sqlValues); } } ret...
java.util.List<java.lang.Object> whereValues() { java.util.List<java.lang.Object> ret = new java.util.LinkedList<java.lang.Object>(); for (jazmin.driver.jdbc.QueryTerms.Where w : wheres) { if ((w.key) != null) { ret.add(w.value); }else { ret.addAll(w.sqlValues); }...
public static org.openrdf.model.URI buildInstanceLongUri(java.lang.String instanceURI) { if (instanceURI.contains(com.ontotext.semantic.core.common.SemanticNamespaceUtil.SHORT_NAMESPACE_SEPARATOR)) { throw new com.ontotext.semantic.api.exception.SemanticParseException("Given URI is not in short format"); ...
public static org.openrdf.model.URI buildInstanceLongUri(java.lang.String instanceURI) { if (!(instanceURI.contains(com.ontotext.semantic.core.common.SemanticNamespaceUtil.SHORT_NAMESPACE_SEPARATOR))) { throw new com.ontotext.semantic.api.exception.SemanticParseException("Given URI is not in short format");...
private java.util.List<java.lang.reflect.Field> findRuleAnnotatedFieldsOfTargetType(java.lang.Object testInstance) { java.lang.reflect.Field[] declaredFields = testInstance.getClass().getDeclaredFields(); return java.util.Arrays.asList(declaredFields).stream().filter(( field) -> field.getClass().isAssignableFro...
private java.util.List<java.lang.reflect.Field> findRuleAnnotatedFieldsOfTargetType(java.lang.Object testInstance) { java.lang.reflect.Field[] declaredFields = testInstance.getClass().getDeclaredFields(); return java.util.Arrays.asList(declaredFields).stream().filter(( field) -> this.ruleType.isAssignableFrom(f...
public void testGetPosixFileAttributeView() throws java.io.IOException { java.nio.file.Path rootPath = java.nio.file.Paths.get(hdfs.jsr203.TestFiles.clusterUri); org.junit.Assert.assertTrue(rootPath.getFileSystem().supportedFileAttributeViews().contains("posix")); java.nio.file.attribute.PosixFileAttributeV...
public void testGetPosixFileAttributeView() throws java.io.IOException { java.nio.file.Path rootPath = java.nio.file.Paths.get(hdfs.jsr203.TestFiles.clusterUri); org.junit.Assert.assertTrue(rootPath.getFileSystem().supportedFileAttributeViews().contains("posix")); java.nio.file.attribute.PosixFileAttributeV...
public float calculateHCost(com.astar.PathNode curNode, com.astar.PathNode endingNode) { int dx = java.lang.Math.abs(((endingNode.getX()) - (curNode.getX()))); int dy = java.lang.Math.abs(((endingNode.getY()) - (curNode.getY()))); return ((float) (dx)) + dy; }
private static float calculateHCost(com.astar.PathNode curNode, com.astar.PathNode endingNode) { int dx = java.lang.Math.abs(((endingNode.getX()) - (curNode.getX()))); int dy = java.lang.Math.abs(((endingNode.getY()) - (curNode.getY()))); return ((float) (dx)) + dy; }
public shtykh.topic.data.Topic get(java.lang.String topicName) throws shtykh.topic.provider.ProviderException { java.io.File lastTimestampDir = getTheLastTimestampDir(topicName); if (lastTimestampDir == null) { cache.remove(topicName); return null; }else { shtykh.topic.data.Topic top...
public shtykh.topic.data.Topic get(java.lang.String topicName) throws shtykh.topic.provider.ProviderException { java.io.File lastTimestampDir = getTheLastTimestampDir(topicName); if (lastTimestampDir == null) { return null; }else { shtykh.topic.data.Topic topic = cache.get(topicName); ...
public java.lang.Double minDouble(com.nascentdigital.pipeline.Selector<TElement, java.lang.Double> selector) { java.lang.Double minimum = null; for (TElement element : this) { java.lang.Double value = selector.select(element); if (minimum == null) { minimum = value; }else ...
public java.lang.Double minDouble(com.nascentdigital.pipeline.Selector<TElement, java.lang.Double> selector) { java.lang.Double minimum = null; for (TElement element : this) { java.lang.Double value = selector.select(element); if (minimum == null) { minimum = value; }else ...
public K next() { java.lang.System.out.println(("i before index: " + (i))); int index = (i)++; java.lang.System.out.println(("i before while: " + (i))); while (((i) < ((keys.length) - 1)) && ((keys[i]) == null)) (i)++; java.lang.System.out.println(("i after while: " + (i))); return ...
public K next() { int index = (i)++; while (((i) < ((keys.length) - 1)) && ((keys[i]) == null)) (i)++; return keys[index]; }
public void read(java.net.DatagramSocket socket, int size) throws java.io.IOException { reset(size); java.net.DatagramPacket dp = new java.net.DatagramPacket(buffer, 0, buffer.length); socket.receive(dp); byte[] newBuffer = new byte[dp.getLength()]; for (int i = 0; i < (newBuffer.length); i++) { ...
public void read(java.net.DatagramSocket socket, int size) throws java.io.IOException { reset(size); java.net.DatagramPacket dp = new java.net.DatagramPacket(buffer, 0, buffer.length); socket.receive(dp); writeOffset = dp.getLength(); readOffset = 0; }
public be.iminds.iot.dianne.api.nn.eval.Evaluation getResult() { be.iminds.iot.dianne.api.nn.eval.Evaluation eval = finish(); eval.total = total; eval.error = (error) / (total); eval.outputs = outputs; eval.forwardTime = ((tForward) / 1000000.0F) / (total); eval.outputs = outputs; return eva...
public be.iminds.iot.dianne.api.nn.eval.Evaluation getResult() { be.iminds.iot.dianne.api.nn.eval.Evaluation eval = finish(); eval.total = total; eval.error = (error) / (total); eval.forwardTime = ((tForward) / 1000000.0F) / (total); eval.outputs = outputs; return eval; }
public void actionPerformed(java.awt.event.ActionEvent event) { java.lang.Object source = event.getSource(); if (source == (stop)) { isRunning = false; java.lang.System.out.println("Stop clicked"); }else if (source == (start)) { java.lang.System.out.println("Start clicked...
public void actionPerformed(java.awt.event.ActionEvent event) { java.lang.Object source = event.getSource(); if (source == (stop)) { isRunning = false; java.lang.System.out.println("Stop clicked"); }else if (source == (start)) { java.lang.System.out.println("Start clicked...
public java.lang.String getSwaggerType(io.swagger.models.properties.Property p) { java.lang.String swaggerType = super.getSwaggerType(p); java.lang.String type = null; if (typeMapping.containsKey(swaggerType)) { type = typeMapping.get(swaggerType); java.lang.System.out.println(("This be type...
public java.lang.String getSwaggerType(io.swagger.models.properties.Property p) { java.lang.String swaggerType = super.getSwaggerType(p); java.lang.String type = null; if (typeMapping.containsKey(swaggerType)) { type = typeMapping.get(swaggerType); if (languageSpecificPrimitives.contains(typ...
public java.util.List<it.begear.model.Cameriere> getCamerieri() { org.hibernate.Session session = new org.hibernate.cfg.Configuration().configure().buildSessionFactory().openSession(); org.hibernate.Transaction tx = null; tx = session.beginTransaction(); java.util.List<it.begear.model.Cameriere> camerie...
public java.util.List<it.begear.model.Cameriere> getCamerieri() { org.hibernate.Session session = new org.hibernate.cfg.Configuration().configure().buildSessionFactory().openSession(); session.beginTransaction(); @java.lang.SuppressWarnings(value = "unchecked") java.util.List<it.begear.model.Cameriere> ...
public T deserialize(java.lang.String topic, byte[] data) { try { org.springframework.kafka.support.serializer.JsonDeserializer.LOGGER.debug("Start processing"); T result = null; if (data != null) { result = reader.readValue(data); } org.springframework.kafka.supp...
public T deserialize(java.lang.String topic, byte[] data) { try { org.springframework.kafka.support.serializer.JsonDeserializer.LOGGER.debug("Start processing"); T result = null; if (data != null) { result = this.reader.readValue(data); } org.springframework.kafka...
private void processPlayerVSPlayerOneDeviceMove(int player, int position) { if (player == (fmi.engineering.software.twoplay.constants.Constants.PLAYER_1)) { setOBackground(levelPlayer1, position); }else { setXBackground(levelPlayer2, position); } setButtonsUnclickable(); fillGameGrid...
private void processPlayerVSPlayerOneDeviceMove(int player, int position) { if (player == (fmi.engineering.software.twoplay.constants.Constants.PLAYER_1)) { setOBackground(levelPlayer1, position); }else { setXBackground(levelPlayer2, position); } setButtonsUnclickable(); fillGameGrid...
public boolean onNavigationItemSelected(android.view.MenuItem item) { switch (item.getItemId()) { case R.id.home_nav_item : navigateFragment(com.example.chungwei.placetogo.HomeFragment.newInstance(), true); break; case R.id.mission_nav_item : navigateFragment(com....
public boolean onNavigationItemSelected(android.view.MenuItem item) { switch (item.getItemId()) { case R.id.home_nav_item : navigateFragment(com.example.chungwei.placetogo.HomeFragment.newInstance(), true); break; case R.id.mission_nav_item : break; case R...
protected void onPostExecute(java.lang.Boolean aBoolean) { super.onPostExecute(aBoolean); mActivity.mDialog.dismiss(); if (aBoolean) { android.support.design.widget.Snackbar.make(mActivity.getCurrentFocus(), "File Uploaded", Snackbar.LENGTH_LONG).setAction("Action", null).show(); mActivity.l...
protected void onPostExecute(java.lang.Boolean aBoolean) { super.onPostExecute(aBoolean); mActivity.mDialog.dismiss(); if (aBoolean) { mActivity.showToast("File Uploaded"); mActivity.loadRootFolder(); }else { mActivity.showToast("File Upload Fail"); } }
protected void switchWindow() { window.getChildren().clear(); if (!(isMainWindow)) { window.getChildren().add(pane); pane.requestFocus(); }else { window.getChildren().add(logObject); logObject.requestFocus(); } window.getChildren().add(gui.GUIController.bottomBar); ...
protected void switchWindow() { window.getChildren().clear(); if (!(isMainWindow)) { window.getChildren().add(pane); }else { window.getChildren().add(logObject); } window.getChildren().add(gui.GUIController.bottomBar); isMainWindow = !(isMainWindow); }
public void doesNotReopenBrowserIfItFailed() { com.codeborne.selenide.Configuration.reopenBrowserOnFail = false; org.openqa.selenium.WebDriver webdriver = org.mockito.Mockito.mock(org.openqa.selenium.WebDriver.class); container.THREAD_WEB_DRIVER.put(java.lang.Thread.currentThread().getId(), webdriver); ...
public void doesNotReopenBrowserIfItFailed() { com.codeborne.selenide.Configuration.reopenBrowserOnFail = false; org.openqa.selenium.WebDriver webdriver = mock(org.openqa.selenium.WebDriver.class); container.THREAD_WEB_DRIVER.put(java.lang.Thread.currentThread().getId(), webdriver); org.junit.Assert.ass...
public void close() throws me.legrange.panstamp.ModemException { try { modem.close(); } catch (me.legrange.swap.SwapException ex) { throw new me.legrange.panstamp.ModemException(ex.getMessage(), ex); } finally { modem.removeListener(receiver); devices.clear(); } fireN...
public void close() throws me.legrange.panstamp.ModemException { try { modem.close(); } catch (me.legrange.swap.SwapException ex) { throw new me.legrange.panstamp.ModemException(ex.getMessage(), ex); } finally { modem.removeListener(receiver); } fireNetworkClosed(); }
protected org.eclipse.ui.views.contentoutline.PageRec doCreatePage(org.eclipse.ui.IWorkbenchPart part) { java.lang.Object obj = org.eclipse.ui.internal.views.ViewsPlugin.getAdapter(part, org.eclipse.ui.views.contentoutline.IContentOutlinePage.class, false); if (obj instanceof org.eclipse.ui.views.contentoutline...
protected org.eclipse.ui.views.contentoutline.PageRec doCreatePage(org.eclipse.ui.IWorkbenchPart part) { org.eclipse.ui.views.contentoutline.IContentOutlinePage page = org.eclipse.ui.internal.views.ViewsPlugin.getAdapter(part, org.eclipse.ui.views.contentoutline.IContentOutlinePage.class, false); if (page != nu...
private int update_Android42(java.lang.String dbgContext, android.content.Context context, int id, java.io.File file) { if (((file != null) && (file.exists())) && (file.canRead())) { android.content.ContentValues values = new android.content.ContentValues(); getExifFromFile(values, file); re...
private int update_Android42(java.lang.String dbgContext, android.content.Context context, long id, java.io.File file) { if (((file != null) && (file.exists())) && (file.canRead())) { android.content.ContentValues values = new android.content.ContentValues(); getExifFromFile(values, file); r...
public void actionPerformed(java.awt.event.ActionEvent event) { isAccountExist = client.register(_regAccount, _regPassword); if (!(isAccountExist)) { if ((_regAccount) == null) text2.setText("Please choose an account name!"); else text2.setText("account existed!"); ...
public void actionPerformed(java.awt.event.ActionEvent event) { boolean isAccountExist = client.register(_regAccount, _regPassword); if (!isAccountExist) { if ((_regAccount) == null) text2.setText("Please choose an account name!"); else text2.setText("account existed!"); ...
private void preparePaint(@com.taobao.weex.ui.view.border.BorderWidthStyleColorType int side) { float borderWidth = getBorderWidth(side); int color = com.taobao.weex.utils.WXViewUtils.multiplyColorAlpha(getBorderColor(side), mAlpha); com.taobao.weex.ui.view.border.BorderStyle borderStyle = com.taobao.weex.u...
private void preparePaint(@com.taobao.weex.ui.view.border.BorderWidthStyleColorType int side) { float borderWidth = getBorderWidth(side); int color = com.taobao.weex.utils.WXViewUtils.multiplyColorAlpha(getBorderColor(side), mAlpha); com.taobao.weex.ui.view.border.BorderStyle borderStyle = com.taobao.weex.u...
public void run() { while (!(cascading.util.ShutdownUtil.queue.isEmpty())) { cascading.util.ShutdownUtil.Hook hook = null; try { hook = cascading.util.ShutdownUtil.queue.poll(); hook.execute(); } catch (java.lang.Exception exception) { cascading.util.Shutd...
public void run() { while (!(cascading.util.ShutdownUtil.queue.isEmpty())) { cascading.util.ShutdownUtil.Hook hook = null; try { hook = cascading.util.ShutdownUtil.queue.poll(); if (hook == null) continue; hook.execute(); } cat...
public void setParagraphStyle(com.hyena.coretext.blocks.CYParagraphStyle style) { super.setParagraphStyle(style); if (style != null) { mPaint.setColor(style.getTextColor()); this.mWidth = ((int) (mPaint.measureText(chs, start, count))); if ((mPaint.getTextSize()) != (style.getTextSize())...
public void setParagraphStyle(com.hyena.coretext.blocks.CYParagraphStyle style) { super.setParagraphStyle(style); if (style != null) { mPaint.setColor(style.getTextColor()); this.mWidth = ((int) (mPaint.measureText(chs, start, count))); if ((mPaint.getTextSize()) != (style.getTextSize())...
private static final java.lang.String calculateType(final org.alfresco.extension.bulkimport.source.fs.MetadataLoader metadataLoader, final java.io.File contentFile, final java.io.File metadataFile, final java.lang.String typeFolder, final java.lang.String typeFile) { java.lang.String result = null; final org.al...
private static final java.lang.String calculateType(final org.alfresco.extension.bulkimport.source.fs.MetadataLoader metadataLoader, final java.io.File contentFile, final java.io.File metadataFile, final java.lang.String typeFolder, final java.lang.String typeFile) { java.lang.String result = null; final org.al...
public void run() { this.mar.setValue(pc.getValue()); this.pc.setValue(((pc.getValue()) + 1)); this.instruction = this.memory.getInstruction(mar.getValue()); if ((this.instruction) == null) this.end = true; java.lang.System.out.println(("Fetching " + (mar.getValue()))); }
public void run() { this.mar.setValue(pc.getValue()); this.pc.setValue(((pc.getValue()) + 1)); this.instruction = this.memory.getInstruction(mar.getValue()); if ((this.instruction) == null) { this.end = true; return ; } java.lang.System.out.println(("Fetching " + (mar.getValue())...
public void onResult(com.google.android.gms.wearable.NodeApi.GetConnectedNodesResult result) { final java.util.List<com.google.android.gms.wearable.Node> nodes = result.getNodes(); if (nodes != null) { for (int i = 0; i < (nodes.size()); i++) { final com.google.android.gms.wearable.Node node...
public void onResult(com.google.android.gms.wearable.NodeApi.GetConnectedNodesResult result) { final java.util.List<com.google.android.gms.wearable.Node> nodes = result.getNodes(); if (nodes != null) { for (int i = 0; i < (nodes.size()); i++) { final com.google.android.gms.wearable.Node node...
public void expandTreeItemOnOpen(final org.sagebionetworks.web.client.widget.entity.EntityTreeItem target) { if (!(alreadyFetchedEntityChildren.contains(target))) { alreadyFetchedEntityChildren.add(target); target.showLoadingIcon(); long childCount = (target == null) ? 0 : target.asTreeItem(...
public void expandTreeItemOnOpen(final org.sagebionetworks.web.client.widget.entity.EntityTreeItem target) { if (!(alreadyFetchedEntityChildren.contains(target))) { alreadyFetchedEntityChildren.add(target); target.showLoadingIcon(); long childCount = (target == null) ? 0 : target.asTreeItem(...
public void testCleanOnInitOneHandler() throws java.lang.Exception { generateLogFiles(logsDir, org.apache.juli.TestFileHandler.PREFIX_1, org.apache.juli.TestFileHandler.SUFIX_1, 3); org.apache.juli.FileHandler handler = new org.apache.juli.FileHandler(logsDir.getAbsolutePath(), org.apache.juli.TestFileHandler.P...
public void testCleanOnInitOneHandler() throws java.lang.Exception { generateLogFiles(logsDir, org.apache.juli.TestFileHandler.PREFIX_1, org.apache.juli.TestFileHandler.SUFIX_1, 3); new org.apache.juli.FileHandler(logsDir.getAbsolutePath(), org.apache.juli.TestFileHandler.PREFIX_1, org.apache.juli.TestFileHandl...
public void sendProgress(long[] wins, double[] pars, long trail) { android.os.Message msg = handler.obtainMessage(); android.os.Bundle bundle = new android.os.Bundle(); bundle.putLongArray(Constants.WINS, wins); bundle.putDoubleArray(Constants.PARTIAL_POTS, pars); bundle.putLong(Constants.TRAIL, tra...
public void sendProgress(long[] wins, double[] pars, long trail) { if ((handler) != null) { android.os.Message msg = handler.obtainMessage(); android.os.Bundle bundle = new android.os.Bundle(); bundle.putLongArray(Constants.WINS, wins); bundle.putDoubleArray(Constants.PARTIAL_POTS, p...
public boolean isReadOnly() { final long freeSpace = dataLock.getFile().toFile().getUsableSpace(); if (freeSpace < (diskSpaceMin)) { org.exist.storage.BrokerPool.LOG.fatal(((("Partition containing DATA_DIR: " + (dataLock.getFile().toAbsolutePath().toString())) + " is running out of disk space. ") + "Swi...
public boolean isReadOnly() { synchronized(readOnly) { final long freeSpace = dataLock.getFile().toFile().getUsableSpace(); if (freeSpace < (diskSpaceMin)) { org.exist.storage.BrokerPool.LOG.fatal(((("Partition containing DATA_DIR: " + (dataLock.getFile().toAbsolutePath().toString())) + ...
private java.lang.String updateStore(org.codice.opendj.embedded.server.LDAPManager.KeystoreInfo keystoreInfo, java.lang.String configStr) { java.lang.String newConfig = configStr.trim(); newConfig = newConfig.replaceAll(keystoreInfo.locationVar, keystoreInfo.location); newConfig = newConfig.replaceAll(keyst...
private java.lang.String updateStore(org.codice.opendj.embedded.server.LDAPManager.KeystoreInfo keystoreInfo, java.lang.String configStr) { java.lang.String newConfig = configStr.trim(); newConfig = newConfig.replace(keystoreInfo.locationVar, keystoreInfo.location); newConfig = newConfig.replace(keystoreInf...
public dyvil.tools.compiler.ast.expression.IValue convertValueTo(dyvil.tools.compiler.ast.expression.IValue value, dyvil.tools.compiler.ast.type.IType targetType, dyvil.tools.compiler.ast.generic.ITypeContext typeContext, dyvil.tools.parsing.marker.MarkerList markers, dyvil.tools.compiler.ast.context.IContext context) ...
public dyvil.tools.compiler.ast.expression.IValue convertValueTo(dyvil.tools.compiler.ast.expression.IValue value, dyvil.tools.compiler.ast.type.IType targetType, dyvil.tools.compiler.ast.generic.ITypeContext typeContext, dyvil.tools.parsing.marker.MarkerList markers, dyvil.tools.compiler.ast.context.IContext context) ...
public void doIt(com.github.oxo42.stateless4j.transitions.Transition<com.couchbase.lite.replicator.ReplicationState, com.couchbase.lite.replicator.ReplicationTrigger> transition) { com.couchbase.lite.util.Log.v(Log.TAG_SYNC, ((("[onEntry()] " + (transition.getSource())) + " => ") + (transition.getDestination()))); ...
public void doIt(com.github.oxo42.stateless4j.transitions.Transition<com.couchbase.lite.replicator.ReplicationState, com.couchbase.lite.replicator.ReplicationTrigger> transition) { com.couchbase.lite.util.Log.v(Log.TAG_SYNC, ((("[onEntry()] " + (transition.getSource())) + " => ") + (transition.getDestination()))); ...
public java.util.HashSet<java.lang.String> getICDsBeforeATC(java.lang.String atcCode) { java.time.LocalDateTime atcTime = ATC_CODES.get(atcCode); java.util.HashSet<java.lang.String> icdBeforeATC = new java.util.HashSet<java.lang.String>(); if (atcTime != null) { for (java.lang.String icdCode : ICD_C...
public java.util.HashSet<java.lang.String> getICDsBeforeATC(java.lang.String atcCode) { java.time.LocalDateTime atcTime = ATC_CODES.get(atcCode); java.util.HashSet<java.lang.String> icdBeforeATC = new java.util.HashSet<java.lang.String>(); if (atcTime != null) { for (java.lang.String icdCode : ICD_C...
public T getFromZeroBasedIdx(final int idx) { if (((this.timeSeries) != null) && ((this.currentNowIdx) != (-1))) { return null; }else { validateIdx(idx); return get(idx(((currentNowIdx) + idx))); } }
public T getFromZeroBasedIdx(final int idx) { if (((this.timeSeries) != null) && ((this.currentNowIdx) != (-1))) { validateIdx(idx); return get(idx(((currentNowIdx) + idx))); }else { return null; } }
public java.lang.String SPARQL_DTs() { java.lang.String query = "" + ((((((((("SELECT ?uri ?label" + "WHERE { ") + " ?subjectUri vitro:mostSpecificType ?SDEType .") + " ?SDEType rdfs:subClassOf ?restriction .") + " ?restriction owl:onProperty obo:BFO_0000051 . ") + " ...
public java.lang.String SPARQL_DTs() { java.lang.String query = "" + ((((((((("SELECT ?uri ?label" + "WHERE { ") + " ?subjectUri vitro:mostSpecificType ?SDEType .") + " ?SDEType rdfs:subClassOf ?restriction .") + " ?restriction owl:onProperty obo:BFO_0000051 . ") + " ...
public void testaTaBortVara() { java.math.BigDecimal bd = new java.math.BigDecimal(30); pris.setBelopp(bd); kassa.Kvitto k = new kassa.Kvitto(); kassa.Vara v = new kassa.Vara("", pris); l = ggTillVaror(k); assert k.getTotalM = (ngdVaror()) == 10; k.taBortAllaAvEnVara(v); assert k.getTota...
public void testaTaBortVara() { java.math.BigDecimal bd = new java.math.BigDecimal(30); pris.setBelopp(bd); kassa.Kvitto k = new kassa.Kvitto(); kassa.Vara v = new kassa.Vara("", pris); l = ggTillVaror(k); assertTrue((k.getTotalM = (ngdVaror()) == 10)); k.taBortAllaAvEnVara(v); assertTru...
private void getAll(TrieNode node, java.util.Map<java.lang.Character, TrieNode> children, java.util.List<java.lang.Integer> results) { if ((node.getRoadId()) > 0) { results.add(node.getRoadId()); } if ((node.getChildren()) != null) { for (TrieNode child : children.values()) { get...
private void getAll(TrieNode node, java.util.Map<java.lang.Character, TrieNode> children, java.util.List<java.lang.Integer> results) { if (!(node.getRoadId().isEmpty())) { for (int id : node.getRoadId()) { results.add(id); } } if ((node.getChildren()) != null) { for (Trie...
public void setAccountHistory(java.util.ArrayList<java.lang.String> AccountHistoryList) { while (((AccountHistory) == null) && ((AccountHistoryAdapter) == null)); AccountHistoryAdapter = new android.widget.ArrayAdapter(this, android.R.layout.simple_spinner_item, AccountHistoryList); AccountHistoryAdapter.se...
public void setAccountHistory(java.util.ArrayList<java.lang.String> AccountHistoryList) { while (((AccountHistory) == null) && ((AccountHistoryAdapter) == null)); AccountHistoryAdapter = new android.widget.ArrayAdapter(this, android.R.layout.simple_spinner_item, AccountHistoryList); AccountHistoryAdapter.se...
private void sendStats(com.badlogic.ashley.core.Entity player, Server.Utils.PlayerState enemyState) { Server.Components.HealthComponent hc = hm.get(player); Server.Components.EnergyComponent ec = em.get(player); Server.Components.IdComponent ic = im.get(player); server.sendToTCP(ic.id, new Server.Respon...
private void sendStats(com.badlogic.ashley.core.Entity player) { Server.Components.HealthComponent hc = hm.get(player); Server.Components.EnergyComponent ec = em.get(player); Server.Components.IdComponent ic = im.get(player); server.sendToTCP(ic.id, new Server.Responses.StatResponse(hc.health, ec.energy...
private java.net.URL napraviURL(java.lang.String period, java.lang.String dbstr, java.lang.String vrijemeStr) throws java.net.MalformedURLException { java.lang.String urlString = urlPredlozak; urlString = urlString.replaceFirst("\\$\\{PERIOD\\}", period); urlString = urlString.replaceFirst("\\$\\{DB\\}", db...
private java.net.URL napraviURL(java.lang.String period, java.lang.String dbstr, java.lang.String vrijemeStr) throws java.net.MalformedURLException { java.lang.String urlString = urlPredlozak.replaceFirst("\\$\\{PERIOD\\}", period); urlString = urlString.replaceFirst("\\$\\{DB\\}", dbstr); urlString = urlSt...
public void addElement(blitzEdit.core.Element elem) { if (elem == null) return ; if (elem instanceof blitzEdit.core.Component) { for (blitzEdit.core.Connector con : ((blitzEdit.core.Component) (elem)).getConnectors()) { _elements.add(con); } } _elements.add(elem)...
public void addElement(blitzEdit.core.Element elem) { if ((elem == null) || (_elements.contains(elem))) return ; if (elem instanceof blitzEdit.core.Component) { for (blitzEdit.core.Connector con : ((blitzEdit.core.Component) (elem)).getConnectors()) { _elements.add(con); ...
public static void computeStats() { final java.lang.String INPUT_DIR = "D:\\TEST"; final java.lang.String OUTPUT_FILE = "D:\\output\\stats.txt"; sk.styk.martin.bakalarka.files.FileFinder ff = new sk.styk.martin.bakalarka.files.FileFinder(new java.io.File(INPUT_DIR)); java.util.List<java.io.File> jsons =...
public static void computeStats() { final java.lang.String INPUT_DIR = "D:\\TEST"; final java.lang.String OUTPUT_FILE = "D:\\output\\stats.txt"; sk.styk.martin.bakalarka.files.FileFinder ff = new sk.styk.martin.bakalarka.files.FileFinder(new java.io.File(INPUT_DIR)); java.util.List<java.io.File> jsons =...
public void typeSetter() { int rannum = randomNumber(); java.lang.String typeset = parseRandomNumber(rannum); if (typeset.equals(null)) { javax.swing.JOptionPane.showMessageDialog(null, "Something went wrong. Typset is null."); } typeparameter.equals(typeset); java.lang.System.out.printl...
public java.lang.String typeSetter() { int rannum = randomNumber(); java.lang.String typeset = parseRandomNumber(rannum); if (typeset.equals(null)) { javax.swing.JOptionPane.showMessageDialog(null, "Something went wrong. Typset is null."); } java.lang.System.out.println((("Item is a " + type...
private com.kylinolap.metadata.model.TableDesc reloadSourceTableAt(java.lang.String path) throws java.io.IOException { com.kylinolap.common.persistence.ResourceStore store = getStore(); com.kylinolap.metadata.model.TableDesc t = store.getResource(path, com.kylinolap.metadata.model.TableDesc.class, com.kylinolap...
private com.kylinolap.metadata.model.TableDesc reloadSourceTableAt(java.lang.String path) throws java.io.IOException { com.kylinolap.common.persistence.ResourceStore store = getStore(); com.kylinolap.metadata.model.TableDesc t = store.getResource(path, com.kylinolap.metadata.model.TableDesc.class, com.kylinolap...
public void channelInactive(io.netty.channel.ChannelHandlerContext ctx) { synchronized(this) { this.ctx = null; } java.net.InetSocketAddress inetSocketAddress = ((java.net.InetSocketAddress) (ctx.channel().remoteAddress())); com.yumcouver.tunnel.server.controller.ControllerServerHandlerAdapter.L...
public void channelInactive(io.netty.channel.ChannelHandlerContext ctx) { synchronized(this) { this.ctx = null; } java.net.InetSocketAddress inetSocketAddress = ((java.net.InetSocketAddress) (ctx.channel().remoteAddress())); com.yumcouver.tunnel.server.controller.ControllerServerHandlerAdapter.L...
public org.osate.xtext.aadl2.properties.linking.Namespace getContainingTopLevelNamespace(org.eclipse.emf.ecore.EObject element) { org.eclipse.emf.ecore.EObject container = element.eContainer(); while (((container != null) && (!(container instanceof org.osate.xtext.aadl2.properties.linking.PackageSection))) && (...
public org.osate.xtext.aadl2.properties.linking.Namespace getContainingTopLevelNamespace(org.eclipse.emf.ecore.EObject element) { if ((element.eContainer()) == null) { if (element instanceof org.osate.xtext.aadl2.properties.linking.Namespace) return ((org.osate.xtext.aadl2.properties.linking.Nam...
public void startDependencyOnTermination(java.lang.String parentInstanceId) throws org.apache.stratos.autoscaler.exception.application.TopologyInConsistentException { java.util.List<org.apache.stratos.autoscaler.applications.dependency.context.ApplicationChildContext> applicationContexts = this.startupDependencyTre...
public void startDependencyOnTermination() throws org.apache.stratos.autoscaler.exception.application.TopologyInConsistentException { java.util.List<org.apache.stratos.autoscaler.applications.dependency.context.ApplicationChildContext> applicationContexts = this.startupDependencyTree.getStarAbleDependenciesByTermin...
public void onBackPressed() { android.view.MenuItem btnSearch = ((android.view.MenuItem) (findViewById(R.id.btn_search))); assert btnSearch != null; android.support.v7.widget.SearchView searchView = ((android.support.v7.widget.SearchView) (btnSearch.getActionView())); if ((searchView != null) && (!(sear...
public void onBackPressed() { android.support.v7.widget.SearchView searchView = ((android.support.v7.widget.SearchView) (findViewById(R.id.btn_search))); if ((searchView != null) && (!(searchView.isIconified()))) { searchView.setIconified(true); }else { super.onBackPressed(); } }
private org.w3c.dom.Document sendRequest(java.lang.String urlString) { org.w3c.dom.Document document = null; try { javax.xml.parsers.DocumentBuilderFactory dbf = javax.xml.parsers.DocumentBuilderFactory.newInstance(); javax.xml.parsers.DocumentBuilder db = dbf.newDocumentBuilder(); java....
private org.w3c.dom.Document sendRequest(java.lang.String urlString) { org.w3c.dom.Document document = null; try { javax.xml.parsers.DocumentBuilderFactory dbf = javax.xml.parsers.DocumentBuilderFactory.newInstance(); javax.xml.parsers.DocumentBuilder db = dbf.newDocumentBuilder(); java....
public void visitAvatar(com.vengeful.sloths.Models.Entity.Avatar avatar) { com.vengeful.sloths.AreaView.ViewObjects.AvatarViewObject avo = factory.createAvatarViewObject(avatar.getLocation().getR(), avatar.getLocation().getS(), "resources/entities/smasher/"); avatar.registerObserver(new com.vengeful.sloths.View...
public void visitAvatar(com.vengeful.sloths.Models.Entity.Avatar avatar) { com.vengeful.sloths.AreaView.ViewObjects.AvatarViewObject avo = factory.createAvatarViewObject(avatar.getLocation().getR(), avatar.getLocation().getS(), "resources/entities/smasher/"); new com.vengeful.sloths.View.Observers.ProxyEntityOb...
public java.util.List<org.nibor.git_merge_repos.MergedRef> run() throws java.io.IOException, org.eclipse.jgit.api.errors.GitAPIException { fetch(); java.util.List<org.nibor.git_merge_repos.MergedRef> mergedBranches = mergeBranches(); java.util.List<org.nibor.git_merge_repos.MergedRef> mergedTags = mergeTags...
public java.util.List<org.nibor.git_merge_repos.MergedRef> run() throws java.io.IOException, org.eclipse.jgit.api.errors.GitAPIException { fetch(); java.util.List<org.nibor.git_merge_repos.MergedRef> mergedBranches = mergeBranches(); java.util.List<org.nibor.git_merge_repos.MergedRef> mergedTags = mergeTags...
public static void greaterThan(java.util.Stack<java.lang.String> input) { java.lang.String top; java.lang.String nextTop; int a; int b; int result; top = input.pop(); a = java.lang.Integer.parseInt(top); nextTop = input.pop(); b = java.lang.Integer.parseInt(nextTop); if (a > b) ...
public static void greaterThan(java.util.Stack<java.lang.String> input) { java.lang.String top; java.lang.String nextTop; int a; int b; int result; top = input.pop(); a = java.lang.Integer.parseInt(top); nextTop = input.pop(); b = java.lang.Integer.parseInt(nextTop); if (b > a) ...
private static int[] insert(int[] array, int t) { int[] result = new int[(array.length) + 1]; for (int i = 0; i < (array.length); i++) { result[i] = array[i]; } result[array.length] = t; array = null; return result; }
private static int[] insert(int[] array, int t) { int[] result = new int[(array.length) + 1]; for (int i = 0; i < (array.length); i++) { result[i] = array[i]; } result[array.length] = t; array = null; array = result; return result; }
public static boolean allFrontLinesAreNegative(java.util.List<il.ac.tau.cs.RRoDC.revenues.Rmarginal> marginalRevenues) { boolean allFrontLinesAreNegative = true; for (il.ac.tau.cs.RRoDC.revenues.Rmarginal marginalRevenue : marginalRevenues) { if ((!(marginalRevenue.isExhausted())) && ((marginalRevenue.g...
public static boolean allFrontLinesAreNegative(java.util.List<il.ac.tau.cs.RRoDC.revenues.Rmarginal> marginalRevenues) { boolean allFrontLinesAreNegative = true; for (il.ac.tau.cs.RRoDC.revenues.Rmarginal marginalRevenue : marginalRevenues) { if ((!(marginalRevenue.isExhausted())) && ((marginalRevenue.g...
public void testStop() throws java.lang.Exception { org.easymock.EasyMock.expect(taskMaster.getTaskRunner()).andReturn(com.google.common.base.Optional.of(taskRunner)).anyTimes(); taskClient.close(); taskRunner.unregisterListener(java.lang.String.format("JDBCSupervisor-%s", io.druid.indexing.jdbc.supervisor....
public void testStop() throws java.lang.Exception { expect(taskMaster.getTaskRunner()).andReturn(com.google.common.base.Optional.of(taskRunner)).anyTimes(); taskClient.close(); taskRunner.unregisterListener(java.lang.String.format("JDBCSupervisor-%s", io.druid.indexing.jdbc.supervisor.JDBCSupervisorTest.DAT...
public void printSolution() { for (int row = 0; row < (board.length); row++) { java.lang.System.out.println(""); for (int col = 0; col < (board.length); col++) { java.lang.System.out.print(((board[row][col]) + "\t")); } } }
public void printSolution() { for (int row = 0; row < (board.length); row++) { java.lang.System.out.println(""); for (int col = 0; col < (board[0].length); col++) { java.lang.System.out.print(((board[row][col]) + "\t")); } } }
public void testBadGet() { org.easymock.EasyMock.expect(mockHostService.getHost(org.onosproject.net.HostId.hostId("00:00:11:00:00:01/1"))).andReturn(null).anyTimes(); org.easymock.EasyMock.replay(mockHostService); com.sun.jersey.api.client.WebResource rs = resource(); try { rs.path("hosts/00:00:...
public void testBadGet() { expect(mockHostService.getHost(org.onosproject.net.HostId.hostId("00:00:11:00:00:01/1"))).andReturn(null).anyTimes(); replay(mockHostService); com.sun.jersey.api.client.WebResource rs = resource(); try { rs.path("hosts/00:00:11:00:00:01/1").get(java.lang.String.class);...
public void onActivityResult(int requestCode, int resultCode, android.content.Intent intent) { switch (requestCode) { case 100 : if (resultCode == (android.app.Activity.RESULT_OK)) { java.lang.String result = intent.getStringExtra("result"); this.callbackContext.s...
public void onActivityResult(int requestCode, int resultCode, android.content.Intent intent) { switch (requestCode) { case 100 : if (intent != null) { if (resultCode == (android.app.Activity.RESULT_OK)) { java.lang.String result = intent.getStringExtra("result...
public edu.stthomas.gps.familyrecipesystem.entity.Member getMemberByUserName(final java.lang.String username) { final org.hibernate.Session session = this.getSessionFactory().getCurrentSession(); final java.util.List<edu.stthomas.gps.familyrecipesystem.entity.Member> members = session.createQuery("FROM member W...
public edu.stthomas.gps.familyrecipesystem.entity.Member getMemberByUserName(final java.lang.String username) { final org.hibernate.Session session = this.getSessionFactory().getCurrentSession(); final java.util.List<edu.stthomas.gps.familyrecipesystem.entity.Member> members = session.createQuery("FROM member W...
public void onResume() { super.onResume(); android.content.SharedPreferences prefs = getActivity().getSharedPreferences(Constants.SHARED_PREF_FILE_PREFERENCES, Context.MODE_PRIVATE); if ((!(prefs.getBoolean(Constants.SHARED_PREF_KEY_WAITING, false))) && (!(prefs.getBoolean(Constants.SHARED_PREF_KEY_DRIVING,...
public void onResume() { super.onResume(); android.content.SharedPreferences prefs = getActivity().getSharedPreferences(Constants.SHARED_PREF_FILE_PREFERENCES, Context.MODE_PRIVATE); if ((!(prefs.getBoolean(Constants.SHARED_PREF_KEY_WAITING, false))) && (!(prefs.getBoolean(Constants.SHARED_PREF_KEY_DRIVING,...
private org.jboss.arquillian.android.api.AndroidDevice checkIfRealDeviceIsConnected(org.jboss.arquillian.android.api.AndroidBridge bridge, java.lang.String serialId) { if ((serialId == null) || ((serialId.length()) > 0)) { return null; } for (org.jboss.arquillian.android.api.AndroidDevice device : b...
private org.jboss.arquillian.android.api.AndroidDevice checkIfRealDeviceIsConnected(org.jboss.arquillian.android.api.AndroidBridge bridge, java.lang.String serialId) { if ((serialId == null) || (serialId.trim().isEmpty())) { return null; } for (org.jboss.arquillian.android.api.AndroidDevice device :...
public void update() { follow(); centerX += speedX; speedX = ((bg.getSpeedX()) * 5) + (movementSpeed); speedX = (bg.getSpeedX()) * 5; r.setBounds(((centerX) - 25), ((centerY) - 25), 50, 60); if (r.intersects(Ninja.yellowRed)) { checkCollision(); } }
public void update() { follow(); centerX += speedX; speedX = ((bg.getSpeedX()) * 5) + (movementSpeed); r.setBounds(((centerX) - 25), ((centerY) - 25), 50, 60); if (r.intersects(Ninja.yellowRed)) { checkCollision(); } }
public java.util.List<java.lang.String> getRecentCopy() { if (((recentCopy) != null) && (!(copyRecent))) { return recentCopy; } recentCopy = new java.util.ArrayList<java.lang.String>(); waitOnRecent(); locked = true; for (java.lang.String str : recent) { if (str != null) ...
public java.util.List<java.lang.String> getRecentCopy() { if ((((recentCopy) != null) && (!(recentCopy.isEmpty()))) && (!(copyRecent))) { return recentCopy; } recentCopy = new java.util.ArrayList<java.lang.String>(); waitOnRecent(); locked = true; for (java.lang.String str : recent) { ...
public com.starsea.im.aggregation.util.ServiceResult verifyWeixin(javax.servlet.http.HttpServletRequest req) { java.lang.String signature = req.getParameter("signature"); java.lang.String timestamp = req.getParameter("timestamp"); java.lang.String nonce = req.getParameter("nonce"); java.lang.String echo...
public java.lang.String verifyWeixin(javax.servlet.http.HttpServletRequest req) { java.lang.String signature = req.getParameter("signature"); java.lang.String timestamp = req.getParameter("timestamp"); java.lang.String nonce = req.getParameter("nonce"); java.lang.String echostr = req.getParameter("echos...
public static void ProbGen(int blockSize, int blockID, java.util.Vector<java.lang.Double> ProbVector) throws java.io.IOException { Source.mgrScript.exeCreateRScriptFile(blockSize, blockID); ExecuteShellComand obj = new ExecuteShellComand(); java.lang.String[] command = new java.lang.String[]{ "source(\'src\...
public static void ProbGen(int blockSize, int blockID, java.util.Vector<java.lang.Double> ProbVector) throws java.io.IOException { Source.mgrScript.exeCreateRScriptFile(blockSize, blockID); ExecuteShellComand obj = new ExecuteShellComand(); java.lang.String[] command = new java.lang.String[]{ "source(\'src\...
public void initClassFields() { mainActivity = ((lenremont.crm.ru.master.main.MainActivity) (getActivity())); sqLiteWork = new lenremont.crm.ru.master.sqlite_work.SQLiteWork(myFragmentView.getContext()); masterPreferences = new lenremont.crm.ru.master.shared_preferences.MasterPreferences(getContext()); ...
public void initClassFields() { mainActivity = ((lenremont.crm.ru.master.main.MainActivity) (getActivity())); sqLiteWork = new lenremont.crm.ru.master.sqlite_work.SQLiteWork(getContext()); masterPreferences = new lenremont.crm.ru.master.shared_preferences.MasterPreferences(getContext()); internetWork = ...
private nl.esciencecenter.xenon.filesystems.Path getPath(nl.esciencecenter.xenon.grpc.XenonProto.Path request) { if (XenonProto.Path.getDefaultInstance().getSeparator().equals(request.getSeparator())) { return new nl.esciencecenter.xenon.filesystems.Path(request.getPath()); } java.lang.String[] elem...
private nl.esciencecenter.xenon.filesystems.Path getPath(nl.esciencecenter.xenon.grpc.XenonProto.Path request) { if (XenonProto.Path.getDefaultInstance().getSeparator().equals(request.getSeparator())) { return new nl.esciencecenter.xenon.filesystems.Path(request.getPath()); } return new nl.esciencec...
protected org.compiere.model.MPriceListVersion loadPriceListVersion(int priceListId) { priceListVersionId = 0; this.priceListId = priceListId; org.compiere.model.MPriceList priceList = org.compiere.model.MPriceList.get(ctx, priceListId, null); org.compiere.model.MPriceListVersion priceListVersion = pric...
public org.compiere.model.MPriceListVersion loadPriceListVersion(int priceListId) { priceListVersionId = 0; this.priceListId = priceListId; org.compiere.model.MPriceList priceList = org.compiere.model.MPriceList.get(ctx, priceListId, null); org.compiere.model.MPriceListVersion priceListVersion = priceLi...
public void testExecuteQueryCommand() { dcNetworks.addAll(java.util.Arrays.asList(mockExternalNetwork, mockNonExternalNetwork)); underTest.executeQueryCommand(); final java.util.List<org.ovirt.engine.core.common.businessentities.network.Network> actual = underTest.getQueryReturnValue().getReturnValue(); ...
public void testExecuteQueryCommand() { dcNetworks.addAll(java.util.Arrays.asList(mockExternalNetwork, mockNonExternalNetwork)); underTest.executeQueryCommand(); final java.util.List<org.ovirt.engine.core.common.businessentities.network.Network> actual = underTest.getQueryReturnValue().getReturnValue(); ...
private static void recursiveContainerTraversal(org.eclipse.cdt.core.model.ICContainer container, java.util.List<org.eclipse.cdt.core.model.ITranslationUnit> tuList, java.util.HashSet<java.lang.String> excludedFilesSet) throws org.eclipse.cdt.core.model.CModelException { for (org.eclipse.cdt.core.model.ICContainer ...
private static void recursiveContainerTraversal(org.eclipse.cdt.core.model.ICContainer container, java.util.List<org.eclipse.cdt.core.model.ITranslationUnit> tuList, java.util.Set<java.lang.String> excludedFilesSet) throws org.eclipse.cdt.core.model.CModelException { for (org.eclipse.cdt.core.model.ICContainer inCo...
public void longIntegersMultipied() { long a = 1199747L; long b = 1062911L; org.junit.Assert.assertEquals(1275224283517L, (a * b)); org.junit.Assert.assertEquals((-1275224283517L), (a * (-b))); a = 229767376164L; b = 907271478890L; org.junit.Assert.assertEquals((-5267604004427634456L), (a * ...
public void longIntegersMultipied() { long a = 1199747L; long b = 1062911L; assertEquals(1275224283517L, (a * b)); assertEquals((-1275224283517L), (a * (-b))); a = 229767376164L; b = 907271478890L; assertEquals((-5267604004427634456L), (a * b)); assertEquals(5267604004427634456L, (a * (-...
public void onEnable() { config.addDefault("port", 9225); config.options().copyDefaults(true); saveConfig(); int port = config.getInt("port"); server = new org.eclipse.jetty.server.Server(port); server.setHandler(new de.sldk.mc.MetricsController()); try { server.start(); getL...
public void onEnable() { config.addDefault("port", 9225); config.options().copyDefaults(true); saveConfig(); int port = config.getInt("port"); server = new org.eclipse.jetty.server.Server(port); server.setHandler(new de.sldk.mc.MetricsController(this)); try { server.start(); ...
private void saveAsSelectedFile() { com.microsoftopentechnologies.intellij.helpers.storage.BlobFile fileSelection = getFileSelection(); assert fileSelection != null; javax.swing.JFileChooser jFileChooser = new javax.swing.JFileChooser(new java.io.File(fileSelection.getName())); jFileChooser.setFileSelec...
private void saveAsSelectedFile() { com.microsoftopentechnologies.intellij.helpers.storage.BlobFile fileSelection = getFileSelection(); assert fileSelection != null; javax.swing.JFileChooser jFileChooser = new javax.swing.JFileChooser(new java.io.File(fileSelection.getName())); jFileChooser.setFileSelec...