buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
private static void incrementSSRCCounter(java.util.Map<java.lang.Long, java.lang.Long> map, long ssrc, long step) { java.lang.Long count = map.get(ssrc); map.put(ssrc, (count == null ? step : count + step)); }
private static void incrementSSRCCounter(java.util.Map<java.lang.Long, java.lang.Long> map, long ssrc, long step) { synchronized(map) { java.lang.Long count = map.get(ssrc); map.put(ssrc, (count == null ? step : count + step)); } }
public boolean onSeatClicked(com.github.ykrapiva.eventmap.Figure seat) { switch (seat.getState()) { case SELECTED : seat.resetState(); break; case AVAILABLE : case PRESSED : seat.setState(Figure.State.SELECTED); break; case NOT_AVAILABL...
public void onSeatClicked(com.github.ykrapiva.eventmap.Figure seat) { switch (seat.getState()) { case SELECTED : seat.resetState(); break; case AVAILABLE : case PRESSED : seat.setState(Figure.State.SELECTED); break; case NOT_AVAILABLE :...
public boolean hasChildren(java.lang.Object parent) { if (parent instanceof sernet.gs.model.Baustein) { return (((sernet.gs.model.Baustein) (parent)).getMassnahmen().size()) > 0; }else if (parent instanceof sernet.gs.ui.rcp.main.bsi.views.BSIKatalogInvisibleRoot) { return (((sernet.g...
public boolean hasChildren(java.lang.Object parent) { if (parent instanceof sernet.gs.model.Baustein) { return ((sernet.gs.model.Baustein) (parent)).getMassnahmen().isEmpty(); }else if (parent instanceof sernet.gs.ui.rcp.main.bsi.views.BSIKatalogInvisibleRoot) { return ((sernet.gs.ui...
private org.apache.hadoop.io.Text collectWordSites(java.lang.Iterable<org.apache.hadoop.io.Text> occurences) { java.util.Set<org.apache.hadoop.io.Text> sites = new java.util.HashSet<org.apache.hadoop.io.Text>(); for (org.apache.hadoop.io.Text site : occurences) { sites.add(site); } org.apache.ha...
private org.apache.hadoop.io.Text collectWordSites(java.lang.Iterable<org.apache.hadoop.io.Text> occurences) { java.util.Set<java.lang.String> sites = new java.util.HashSet<java.lang.String>(); for (org.apache.hadoop.io.Text site : occurences) { sites.add(site.toString()); } org.apache.hadoop.io...
private java.lang.String[] tokens(java.lang.String prefix, int count) { java.lang.String[] result = new java.lang.String[count]; for (int i = 0; i < count; i++) { result[i] = prefix + count; } return result; }
private java.lang.String[] tokens(java.lang.String prefix, int count) { java.lang.String[] result = new java.lang.String[count]; for (int i = 0; i < count; i++) { result[i] = prefix + (i + 1); } return result; }
public android.app.Dialog onCreateDialog(android.os.Bundle savedInstanceState) { android.app.AlertDialog.Builder builder = new android.app.AlertDialog.Builder(getOwner()).setIcon(R.drawable.ic_transfer_black_36dp).setTitle(R.string.chooseReceiverType).setNegativeButton(android.R.string.cancel, null); android.ap...
public android.app.Dialog onCreateDialog(android.os.Bundle savedInstanceState) { android.app.AlertDialog.Builder builder = new android.app.AlertDialog.Builder(getOwner()).setIcon(R.drawable.ic_transfer_black_36dp).setTitle(R.string.chooseReceiverType).setNegativeButton(android.R.string.cancel, this); android.ap...
private void setToReachPosition() { net.minecraft.util.MovingObjectPosition trace = mc.objectMouseOver; if ((trace.typeOfHit) == (MovingObjectPosition.MovingObjectType.BLOCK)) { mc.thePlayer.sendQueue.addToSendQueue(new net.minecraft.network.play.client.C03PacketPlayer.C04PacketPlayerPosition(((java.lan...
private void setToReachPosition() { net.minecraft.util.MovingObjectPosition trace = mc.objectMouseOver; if ((trace.typeOfHit) == (MovingObjectPosition.MovingObjectType.BLOCK)) { mc.thePlayer.sendQueue.addToSendQueue(new net.minecraft.network.play.client.C03PacketPlayer.C04PacketPlayerPosition(((java.lan...
public void setColorUnlimitedMode(int score, com.badlogic.gdx.scenes.scene2d.Actor background, com.badlogic.gdx.scenes.scene2d.Actor len2, com.badlogic.gdx.scenes.scene2d.Actor len3, com.badlogic.gdx.scenes.scene2d.Actor len4) { int index = score % (brightestColor.length); len2.setColor(brightestColor[index]); ...
public void setColorUnlimitedMode(int score, com.badlogic.gdx.scenes.scene2d.Actor len2, com.badlogic.gdx.scenes.scene2d.Actor len3, com.badlogic.gdx.scenes.scene2d.Actor len4) { int index = score % (brightestColor.length); len2.setColor(brightestColor[index]); len3.setColor(normalColor[index]); len4.se...
protected org.hl7.fhir.utilities.xhtml.XhtmlNode parseXhtml(java.lang.String value) throws java.io.IOException, org.hl7.fhir.exceptions.FHIRFormatError { org.hl7.fhir.utilities.xhtml.XhtmlParser prsr = new org.hl7.fhir.utilities.xhtml.XhtmlParser(); try { return prsr.parse(value, "div").getChildNodes()....
protected org.hl7.fhir.utilities.xhtml.XhtmlNode parseXhtml(java.lang.String value) throws java.io.IOException, org.hl7.fhir.exceptions.FHIRFormatError { org.hl7.fhir.utilities.xhtml.XhtmlParser prsr = new org.hl7.fhir.utilities.xhtml.XhtmlParser(); try { return prsr.parse(value, "div").getChildNodes()....
static int fontsize() { if ((net.sf.memoranda.util.Configuration.get("BASE_FONT_SIZE")) == "") { net.sf.memoranda.util.Configuration.put("BASE_FONT_SIZE", "16"); return java.lang.Integer.parseInt(net.sf.memoranda.util.Configuration.get("BASE_FONT_SIZE").toString()); }else { return java.l...
static int fontsize() { if (net.sf.memoranda.util.Configuration.get("BASE_FONT_SIZE").equals("")) { net.sf.memoranda.util.Configuration.put("BASE_FONT_SIZE", "16"); return java.lang.Integer.parseInt(net.sf.memoranda.util.Configuration.get("BASE_FONT_SIZE").toString()); }else { return jav...
public int getItemCount() { if (mInvalidates) { synchronized(tree) { tree = new de.wilson.wdtreelistlibrary.WDTreeLeaf(); mCount = 0; mPreviousLeaf = null; generateStructure(null, 0, tree.getChildren()); } mInvalidates = false; } return...
public int getItemCount() { if (mInvalidates) { mInvalidates = false; synchronized(tree) { tree = new de.wilson.wdtreelistlibrary.WDTreeLeaf(); mCount = 0; mPreviousLeaf = null; generateStructure(null, 0, tree.getChildren()); } } return...
public static java.util.Set<java.lang.Object> difference(java.util.Set<java.lang.Object> s1, java.util.Set<java.lang.Object> s2) { java.util.Set<java.lang.Object> s3 = new java.util.HashSet<>(); for (java.lang.Object m : s1) { if (!(s2.contains(m))) { s3.add(m); } } return s3...
public static java.util.Set<java.lang.Object> difference(java.util.Set<java.lang.Object> s1, java.util.Set<java.lang.Object> s2) { java.util.Set<java.lang.Object> s3 = new java.util.HashSet<>(); for (java.lang.Object x : s1) { if (!(s2.contains(x))) { s3.add(x); } } return s3...
public void processCommand(net.minecraft.command.ICommandSender commandSender, java.lang.String[] pars) { if (((pars.length) == 0) || ("?".equals(pars[0]))) { sendChat(commandSender, getLoc("help")); return ; } matchCommands(commandSender, this.getCommandSenderAsPlayer(commandSender), pars);...
public void processCommand(net.minecraft.command.ICommandSender commandSender, java.lang.String[] pars) { if ((pars.length) == 0) { sendChat(commandSender, getLoc("help")); return ; } matchCommands(commandSender, this.getCommandSenderAsPlayer(commandSender), pars); }
public static ccl.iface.IExpression<java.lang.Object> createInterfaceInstance(java.lang.Class<?> iface, ccl.iface.IExpression<? extends java.lang.Object> expression) throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException, java.lang.InstantiationException, java.lang.NoSuchMethodException, java.lang....
public static ccl.iface.IExpression<java.lang.Object> createInterfaceInstance(java.lang.Class<?> iface, ccl.iface.IExpression<? extends java.lang.Object> expression) throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException, java.lang.InstantiationException, java.lang.NoSuchMethodException, java.lang....
public static void setup() { new org.jboss.reddeer.swt.impl.shell.WorkbenchShell().maximize(); org.jboss.tools.fuse.ui.bot.test.utils.ProjectFactory.createProject(org.jboss.tools.fuse.ui.bot.test.DebuggerTest.PROJECT_NAME, org.jboss.tools.fuse.ui.bot.test.DebuggerTest.PROJECT_ARCHETYPE); new org.jboss.tools...
public static void setup() { org.jboss.tools.fuse.ui.bot.test.utils.ProjectFactory.createProject(org.jboss.tools.fuse.ui.bot.test.DebuggerTest.PROJECT_NAME, org.jboss.tools.fuse.ui.bot.test.DebuggerTest.PROJECT_ARCHETYPE); new org.jboss.tools.fuse.reddeer.projectexplorer.CamelProject(org.jboss.tools.fuse.ui.bot...
public void onDestroy() { super.onDestroy(); unregisterReceiver(mScreenStateReceiver); shouldDestroy = true; if ((lockScreenImageView) != null) { lockScreenImageView.setAlpha(0.0F); windowManager.removeView(lockScreenImageView); } if ((transparentViewToCheckFullScreen) != null) ...
public void onDestroy() { super.onDestroy(); unregisterReceiver(mScreenStateReceiver); shouldDestroy = true; if ((lockScreenImageView) != null) windowManager.removeView(lockScreenImageView); if ((transparentViewToCheckFullScreen) != null) windowManager.removeView(transparentView...
public java.lang.Object writeReplace(final java.lang.Object original) { if (original == (org.jboss.ejb.client.Affinity.LOCAL)) { return selfNodeAffinity; }else if ((((peerUriAffinity) != null) && (original instanceof org.jboss.ejb.client.URIAffinity)) && (original.equals(peerUriAffinity))) { ...
public java.lang.Object writeReplace(final java.lang.Object original) { if ((original == (org.jboss.ejb.client.Affinity.LOCAL)) && ((selfNodeAffinity) != null)) { return selfNodeAffinity; }else if (((((peerUriAffinity) != null) && (original instanceof org.jboss.ejb.client.URIAffinity)) && (origi...
public void clickedPlus(android.view.View v) { lastClickedRowArray = new java.util.ArrayList<java.lang.String>(); currentlySelectedRow.setBackgroundResource(0); for (com.izzygomez.workr.ListedItem item : listItems) { if (item.isSelected()) { item.toggleSelection(); } } cu...
public void clickedPlus(android.view.View v) { lastClickedRowArray = new java.util.ArrayList<java.lang.String>(); if ((currentlySelectedRow) != null) { currentlySelectedRow.setBackgroundResource(0); } for (com.izzygomez.workr.ListedItem item : listItems) { if (item.isSelected()) { ...
static synchronized void onScanStatus(int status) { android.util.Log.i(com.android.server.wifi.WifiNative.TAG, ("Got a scan status changed event, status = " + status)); if (status == (com.android.server.wifi.WifiNative.WIFI_SCAN_BUFFER_FULL)) { }else if (status == (com.android.server.wifi.WifiNative...
static synchronized void onScanStatus(int status) { android.util.Log.i(com.android.server.wifi.WifiNative.TAG, ("Got a scan status changed event, status = " + status)); if (status == (com.android.server.wifi.WifiNative.WIFI_SCAN_BUFFER_FULL)) { }else if (status == (com.android.server.wifi.WifiNative...
protected static void addResources(java.util.List<co.sepulveda.pongee.servlet.resources.ResourceEntity> allResources, java.util.List<co.sepulveda.pongee.servlet.resources.ResourceEntity> resources) { for (co.sepulveda.pongee.servlet.resources.ResourceEntity resource : resources) { int i = allResources.index...
private static void addResources(java.util.List<co.sepulveda.pongee.servlet.resources.ResourceEntity> allResources, java.util.List<co.sepulveda.pongee.servlet.resources.ResourceEntity> resources) { for (co.sepulveda.pongee.servlet.resources.ResourceEntity resource : resources) { int i = allResources.indexOf...
public static void main(java.lang.String[] args) { java.lang.Thread thread1 = new java.lang.Thread() { public void run() { com.opentransport.rdfmapper.nmbs.Main.scrapeLiveBoards(); } }; java.lang.Thread thread2 = new java.lang.Thread() { public void run() { co...
public static void main(java.lang.String[] args) { while (true) { java.lang.Thread thread1 = new java.lang.Thread() { public void run() { com.opentransport.rdfmapper.nmbs.Main.scrapeLiveBoards(); } }; java.lang.Thread thread2 = new java.lang.Thread() {...
public void Marker(android.os.Bundle result) { double lat = result.getDouble("latitude", latitude); double longit = result.getDouble("longitude", longitude); com.google.android.gms.maps.model.LatLng itb = new com.google.android.gms.maps.model.LatLng(longit, lat); mMap.addMarker(new com.google.android.gm...
public void Marker(android.os.Bundle result) { double lat = result.getDouble("latitude"); double longit = result.getDouble("longitude"); com.google.android.gms.maps.model.LatLng itb = new com.google.android.gms.maps.model.LatLng(longit, lat); mMap.addMarker(new com.google.android.gms.maps.model.MarkerOp...
public static ntut.csie.ezScrum.web.dataObject.AccountObject confirmAccount(java.lang.String username, java.lang.String password) { java.lang.System.out.println(((username + " ") + password)); if ((password.length()) != 32) { password = ntut.csie.ezScrum.dao.AccountDAO.getInstance().getMd5(password);...
public static ntut.csie.ezScrum.web.dataObject.AccountObject confirmAccount(java.lang.String username, java.lang.String password) { if ((password.length()) != 32) { password = ntut.csie.ezScrum.dao.AccountDAO.getInstance().getMd5(password); } return ntut.csie.ezScrum.dao.AccountDAO.getInstance().con...
public void searchForTopologyTemplateByName(java.lang.String topologyTemplateName) throws java.lang.Throwable { java.lang.String topologyId = getTopologyIdFromTemplateName(topologyTemplateName, null); org.junit.Assert.assertNotNull((("A topology template named " + topologyTemplateName) + " can not be found"), t...
public void searchForTopologyTemplateByName(java.lang.String topologyTemplateName) throws java.lang.Throwable { java.lang.String topologyId = getTopologyIdFromTemplateName(topologyTemplateName, null); assertNotNull((("A topology template named " + topologyTemplateName) + " can not be found"), topologyId); j...
public void updateState(java.lang.String message, java.lang.Float percent) throws java.lang.Throwable { org.alien4cloud.server.MaintenanceUpdateDTO updateDTO = new org.alien4cloud.server.MaintenanceUpdateDTO(message, percent); alien4cloud.it.Context.getInstance().registerRestResponse(alien4cloud.it.Context.getR...
public void updateState(java.lang.String message, java.lang.Integer percent) throws java.lang.Throwable { org.alien4cloud.server.MaintenanceUpdateDTO updateDTO = new org.alien4cloud.server.MaintenanceUpdateDTO(message, percent); alien4cloud.it.Context.getInstance().registerRestResponse(alien4cloud.it.Context.ge...
public java.lang.String generateId(eu.neclab.iotplatform.ngsi.api.datamodel.EntityId entityId) { if (((entityId.getType()) == null) || (entityId.getType().toString().isEmpty())) { return entityId.getId(); }else { return (entityId + (eu.neclab.iotplatform.iotbroker.embeddediotagent.indexer.Indexe...
public java.lang.String generateId(eu.neclab.iotplatform.ngsi.api.datamodel.EntityId entityId) { if (((entityId.getType()) == null) || (entityId.getType().toString().isEmpty())) { return entityId.getId(); }else { return ((entityId.getId()) + (eu.neclab.iotplatform.iotbroker.embeddediotagent.inde...
public void testBuildExecutionFactoryWithDefaults() throws java.lang.Exception { org.teiid.adminapi.impl.VDBTranslatorMetaData tm = new org.teiid.adminapi.impl.VDBTranslatorMetaData(); org.teiid.adminapi.impl.VDBTranslatorMetaData parent = new org.teiid.adminapi.impl.VDBTranslatorMetaData(); parent.addPrope...
public void testBuildExecutionFactoryWithDefaults() throws java.lang.Exception { org.teiid.adminapi.impl.VDBTranslatorMetaData tm = new org.teiid.adminapi.impl.VDBTranslatorMetaData(); org.teiid.adminapi.impl.VDBTranslatorMetaData parent = new org.teiid.adminapi.impl.VDBTranslatorMetaData(); parent.addPrope...
public void setAvatar(byte[] avatar) { final com.parse.ParseFile file = new com.parse.ParseFile("avatar.png", avatar); android.util.Log.w("Yuval", ("setAvatar(). size == " + (avatar.length))); file.saveInBackground(new com.parse.SaveCallback() { @java.lang.Override public void done(com.parse...
public void setAvatar(byte[] avatar) { final com.parse.ParseFile file = new com.parse.ParseFile("avatar.png", avatar); file.saveInBackground(new com.parse.SaveCallback() { @java.lang.Override public void done(com.parse.ParseException e) { put(Const.COL_NAME_AVATAR, file); ...
public VariableSymbol visitBlock(@org.antlr.v4.runtime.misc.NotNull GEMParser.BlockContext ctx) { java.util.HashMap<java.lang.String, VariableSymbol> scope = new java.util.HashMap<java.lang.String, VariableSymbol>(); symbols.push(scope); for (GEMParser.BlockStatementContext bs : ctx.blockStatement()) { ...
public VariableSymbol visitBlock(@org.antlr.v4.runtime.misc.NotNull GEMParser.BlockContext ctx) { java.util.HashMap<java.lang.String, VariableSymbol> scope = new java.util.HashMap<java.lang.String, VariableSymbol>(); symbols.push(scope); for (GEMParser.BlockStatementContext bs : ctx.blockStatement()) { ...
public void setAllVisible() { for (int i = 0; i < (getRows()); ++i) for (int j = 0; j < (getColumns()); ++i) grid[i][j].setVisible(true); }
public void setAllVisible() { for (int i = 0; i < (getRows()); ++i) for (int j = 0; j < (getColumns()); ++j) grid[i][j].setVisible(true); }
public void enterInterfaceDeclaration(JavaParser.InterfaceDeclarationContext ctx) { canCouple = false; if (!(location.isEmpty())) { outerClass = location.peek(); } java.lang.String cName = ctx.getChild(1).getText(); if (!(outerClass.equals(""))) { cName = ((outerClass) + ":") + cName...
public void enterInterfaceDeclaration(JavaParser.InterfaceDeclarationContext ctx) { canCouple = false; if (!(location.isEmpty())) { outerClass = location.peek(); } java.lang.String cName = ctx.getChild(1).getText(); if (!(outerClass.equals(""))) { cName = ((outerClass) + ":") + cName...
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_detail); android.content.Intent intent = getIntent(); if ((intent != null) && (intent.hasExtra(com.udacity.stockhawk.ui.DetailActivity.EXTRA_STOCK_HISTORY))) { com...
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_detail); android.content.Intent intent = getIntent(); if ((intent != null) && (intent.hasExtra(com.udacity.stockhawk.ui.DetailActivity.EXTRA_STOCK_HISTORY))) { com...
public void addItem(com.wegas.mcq.persistence.ChoiceDescriptor item) { this.getItems().add(item); item.setQuestion(this); if ((this.getGameModel()) != null) { this.getGameModel().addToVariableDescriptors(item); } }
public void addItem(com.wegas.mcq.persistence.ChoiceDescriptor item) { if ((this.getGameModel()) != null) { this.getGameModel().addToVariableDescriptors(item); } this.getItems().add(item); item.setQuestion(this); }
public static void main(java.lang.String[] args) throws java.lang.Exception { MyID3 ID3 = new MyID3(); MyC45 C45; MainClass.j48 = new weka.classifiers.trees.J48(); weka.classifiers.Classifier cls = ID3; MainClass.preprocessFile("weather.nominal.arff"); MainClass.crossValidation(cls, 10); }
public static void main(java.lang.String[] args) throws java.lang.Exception { MyID3 ID3 = new MyID3(); MyC45 C45 = new MyC45(); MainClass.j48 = new weka.classifiers.trees.J48(); weka.classifiers.Classifier cls = C45; MainClass.preprocessFile("weather.nominal.arff"); MainClass.crossValidation(cls...
public void onClick(com.std.framework.comm.view.MainBottomView.TabSpec tabSpec) { tabSpec.setSelected(true); tabs.get(last_selected_index).setSelected(false); last_selected_index = tabSpec.getIndex(); if ((viewPager) != null) { viewPager.setCurrentItem(tabSpec.getIndex(), false); } }
public void onClick(com.std.framework.comm.view.MainBottomView.TabSpec tabSpec) { if ((last_selected_index) == (tabSpec.getIndex())) { return ; } tabSpec.setSelected(true); tabs.get(last_selected_index).setSelected(false); last_selected_index = tabSpec.getIndex(); if ((viewPager) != null...
public java.util.List<org.robolectric.res.arsc.Chunk.StringPoolChunk.StringPoolSpan> getSpans() { java.util.List<org.robolectric.res.arsc.Chunk.StringPoolChunk.StringPoolSpan> result = new java.util.LinkedList<>(); int idx = offset; int nameIndex = buffer.getInt(idx); while (nameIndex != (org.robolectri...
public java.util.List<org.robolectric.res.arsc.Chunk.StringPoolChunk.StringPoolSpan> getSpans() { java.util.List<org.robolectric.res.arsc.Chunk.StringPoolChunk.StringPoolSpan> result = new java.util.LinkedList<>(); int idx = offset; int nameIndex = buffer.getInt(idx); while (nameIndex != (org.robolectri...
public int calculateNumberCaseOwned(mainPackage.Map map) { utilities.Case[][] c = map.getCaseMap(); for (int x = 0; x < (c.length); x++) { for (int y = 0; y < (c[0].length); y++) { } } }
public int calculateNumberCaseOwned(mainPackage.Map map) { utilities.Case[][] c = map.getCaseMap(); for (int x = 0; x < (c.length); x++) { for (int y = 0; y < (c[0].length); y++) { } } return 0; }
private void initializeData(long shoppingListId) { products = productDAO.getAllFromCurrentShoppingList(shoppingListId); if ((products) == null) { products = new java.util.ArrayList<>(); } existingProducts = existingProductDAO.getAllFromCurrentShoppingList(shoppingListId); if ((existingProduc...
private void initializeData(long shoppingListId) { products = productDAO.getAllFromCurrentShoppingList(shoppingListId); if ((products) == null) { products = new java.util.ArrayList<>(); } existingProducts = existingProductDAO.getAllFromCurrentShoppingList(shoppingListId); if ((existingProduc...
public void doScopeAnalysis(parser.TreeNode node, parser.InfoTable table) { java.lang.System.out.println("\nStarting scope analysis process: "); java.lang.System.out.println("--------------------------------------------------- "); try { recursiveScope(node, table, 0); postProcessing(table); ...
public void doScopeAnalysis(parser.TreeNode node, parser.InfoTable table) throws scope_crawler.ScopeAnalyser.StringException { java.lang.System.out.println("\nStarting scope analysis process: "); java.lang.System.out.println("--------------------------------------------------- "); try { recursiveSco...
public int getRadiusByEventID(java.lang.String eventID) { int radius; try { connect(); statement.execute("USE GIS_DB;"); java.sql.ResultSet rs = statement.executeQuery((("SELECT * FROM decisionTable WHERE eventID='" + eventID) + "';")); radius = rs.getInt("radius"); } catch (...
public int getRadiusByEventID(java.lang.String eventID) { int radius = 0; try { connect(); statement.execute("USE GIS_DB;"); java.sql.ResultSet rs = statement.executeQuery((("SELECT * FROM decisionTable WHERE eventID='" + eventID) + "';")); radius = rs.getInt("radius"); } cat...
public void mouseEntered(java.awt.event.MouseEvent e) { Map.MapRangeIndicator t = ((Map.MapRangeIndicator) (e.getSource())); switch (t.passability) { case UNOCCUPIED : setCursor(moveCursor); break; case ARMY : setCursor(battleCursor); break; ...
public void mouseEntered(java.awt.event.MouseEvent e) { Map.MapRangeIndicator t = ((Map.MapRangeIndicator) (e.getSource())); switch (t.passability) { case UNOCCUPIED : setCursor(moveCursor); break; case ARMY : setCursor(battleCursor); break; ...
public void testRootCollectionMixedIds() throws com.fasterxml.jackson.core.JsonProcessingException { java.lang.String graphQLRequest = "mutation { " + ((("book(op:UPSERT, data: [{id: \"1\", title: \"my id\"}, {id: \"42\", title: \"xyz\"}, {title: \"abc\"}]) { " + "title ") + "} ") + "}"); java.lang.String expec...
public void testRootCollectionMixedIds() throws com.fasterxml.jackson.core.JsonProcessingException { java.lang.String graphQLRequest = "mutation { " + ((("book(op:UPSERT, data: [{id: \"1\", title: \"my id\"}, {id: \"42\", title: \"xyz\"}, {title: \"abc\"}]) { " + "title ") + "} ") + "}"); java.lang.String expec...
public void exec(h2o.utils.reliable.ReliableExecutor executor) { for (int i = 1; i <= (tryTimes); i++) { try { if (executor.exec(i)) { break; } } catch (java.lang.Exception e) { if (executor.exceptionHandler(i, e)) { try { ...
public void exec(h2o.utils.reliable.ReliableExecutor executor) { for (int i = 1; i <= (tryTimes); i++) { try { if (executor.exec(i)) { break; } } catch (java.lang.Exception e) { if (!(executor.exceptionHandler(i, e))) { break; ...
public void onResponse(retrofit2.Call<java.util.List<com.example.nejcvesel.pazikjehodis.retrofitAPI.Models.Location>> call, retrofit2.Response<java.util.List<com.example.nejcvesel.pazikjehodis.retrofitAPI.Models.Location>> response) { java.util.List<com.example.nejcvesel.pazikjehodis.retrofitAPI.Models.Location> lo...
public void onResponse(retrofit2.Call<java.util.List<com.example.nejcvesel.pazikjehodis.retrofitAPI.Models.Location>> call, retrofit2.Response<java.util.List<com.example.nejcvesel.pazikjehodis.retrofitAPI.Models.Location>> response) { java.util.List<com.example.nejcvesel.pazikjehodis.retrofitAPI.Models.Location> lo...
public base.Session getSessionWithId(java.lang.String id) { java.util.Iterator<base.Session> it = sessions.iterator(); base.Session session = null; while (it.hasNext()) { session = it.next(); if (id.equals(session.getSessionId())) { break; } } if (session != null...
public base.Session getSessionWithId(java.lang.String id) { java.util.Iterator<base.Session> it = sessions.iterator(); base.Session session = null; while (it.hasNext()) { session = it.next(); if (id.equals(session.getSessionId())) { break; } session = null; } ...
private static void showTree(absyn.VarDecList tree, int spaces) { absyn.Absyn.indent(spaces); java.lang.System.out.println("VarDecList:"); if (tree != null) { absyn.Absyn.showTree(tree.head, (spaces + (absyn.Absyn.SPACES))); absyn.Absyn.showTree(tree.tail, (spaces + (absyn.Absyn.SPACES))); ...
private static void showTree(absyn.VarDecList tree, int spaces) { if (tree != null) { absyn.Absyn.indent(spaces); java.lang.System.out.println("VarDecList:"); absyn.Absyn.showTree(tree.head, (spaces + (absyn.Absyn.SPACES))); absyn.Absyn.showTree(tree.tail, (spaces + (absyn.Absyn.SPAC...
public void explain(org.apache.lucene.search.Query query, org.apache.lucene.search.ScoreDoc[] hits) throws java.io.IOException { for (int i = 0; i < (it.uniroma3.searchweb.engine.searcher.DebuggerSearchEngine.TOP_SCORES); i++) { org.apache.lucene.search.Explanation expl = this.searcher.explain(query, hits[i...
public void explain(org.apache.lucene.search.Query query, org.apache.lucene.search.ScoreDoc[] hits) throws java.io.IOException { for (int i = 0; (i < (it.uniroma3.searchweb.engine.searcher.DebuggerSearchEngine.TOP_SCORES)) && (i < (hits.length)); i++) { org.apache.lucene.search.Explanation expl = this.searc...
public ch.cern.impala.ogg.datapump.impala.descriptors.StagingTableDescriptor getDefinitionForStagingTable() { ch.cern.impala.ogg.datapump.impala.descriptors.StagingTableDescriptor stagingTableDef = new ch.cern.impala.ogg.datapump.impala.descriptors.StagingTableDescriptor(schemaName, tableName.concat("_staging")); ...
public ch.cern.impala.ogg.datapump.impala.descriptors.StagingTableDescriptor getDefinitionForStagingTable() { ch.cern.impala.ogg.datapump.impala.descriptors.StagingTableDescriptor stagingTableDef = new ch.cern.impala.ogg.datapump.impala.descriptors.StagingTableDescriptor(schemaName, tableName.concat("_staging")); ...
public graph.GraphColorVertex mutate(graph.GraphColorGraph graph, java.util.ArrayList<java.awt.Color> colors, graph.GraphColorVertex parent) { for (int i = 0; i < (colors.size()); i++) { if (!(isConflicted(parent, colors.get(i)))) { parent.setColor(colors.get(i)); updateVisualizer();...
public graph.GraphColorVertex mutate(graph.GraphColorVertex parent, java.util.ArrayList<java.awt.Color> colors) { for (int i = 0; i < (colors.size()); i++) { if (!(isConflicted(parent, colors.get(i)))) { parent.setColor(colors.get(i)); updateVisualizer(); } } return p...
private void phaseMinusOneAbility() { if ((phaseMinusOne) || ((currentRound) == (com.boardgame.friday.GameActivity.Round.YELLOW))) { currentHazardStrength = drawnHazard.getHazardStrength(com.boardgame.friday.GameActivity.Round.GREEN.ordinal()); updateHazardStrengthCounter(); gameBoard.setBac...
private void phaseMinusOneAbility() { if ((phaseMinusOne) || ((currentRound) == (com.boardgame.friday.GameActivity.Round.YELLOW))) { currentHazardStrength = drawnHazard.getHazardStrength(com.boardgame.friday.GameActivity.Round.GREEN.ordinal()); updateHazardStrengthCounter(); gameBoard.setBac...
public void setUp() { viewSalesForceUpdate = com.salesforce.dev.framework.utils.JSONMapper.getGeneric(com.salesforce.dev.framework.dto.ViewSalesForce.class, "EditLeadsViewBasic.json"); com.salesforce.dev.framework.dto.ViewSalesForce viewSalesForce = com.salesforce.dev.framework.utils.LeadGenie.getLeadsView("Cre...
public void setUp() { viewSalesForceUpdate = com.salesforce.dev.framework.utils.JSONMapper.getGeneric(com.salesforce.dev.framework.dto.ViewSalesForce.class, "EditLeadsViewBasic.json"); com.salesforce.dev.framework.dto.ViewSalesForce viewSalesForce = com.salesforce.dev.framework.utils.JSONMapper.getGeneric(com.s...
public void should_log_when_calculating_with_spy() { class SpyLogger implements logger.Logger { private java.lang.String message; @java.lang.Override public void log(java.lang.String message) { this.message = message; } public java.lang.String getMessage() { ...
public void should_log_when_calculating_with_spy() { class SpyLogger implements logger.Logger { private java.lang.String message; @java.lang.Override public void log(java.lang.String message) { this.message = message; } public java.lang.String getMessage() { ...
public void putFloatArray(final float[] data, boolean length) { int l = (data.length) * (com.heerbann.unsafe.UnsafeBuffer.sizeOfFloat); if (length) putInt(l); ensure(((position) + l)); com.heerbann.unsafe.UnsafeBuffer.unsafe.copyMemory(data, com.heerbann.unsafe.UnsafeBuffer.floatArrayOffset...
public void putFloatArray(final float[] data, boolean length) { int l = data.length; if (length) putInt(l); l *= com.heerbann.unsafe.UnsafeBuffer.sizeOfFloat; ensure(((position) + l)); com.heerbann.unsafe.UnsafeBuffer.unsafe.copyMemory(data, com.heerbann.unsafe.UnsafeBuffer.floatArrayOf...
public java.lang.String raw() { java.lang.String out = "[ "; for (int i = 1; i <= (data[0]); i++) { out = (out + (data[i])) + " "; } return out + "]"; }
public java.lang.String raw() { java.lang.String out = "[ "; for (int i = 1; i < (data.length); i++) { out = (out + (data[i])) + " "; } return out + "]"; }
public double[] normalizeFT(double[] copy, double std) { double normalisingFactor = (std > 0 ? 1.0 / std : 1.0) * (norm); int sign = 1; for (int i = 0; i < (copy.length); i++) { copy[i] *= sign * normalisingFactor; sign *= -1; } return copy; }
public double[] normalizeFT(double[] copy, double std) { double normalisingFactor = (std > 0 ? 1.0 / std : 1.0) * (this.norm); int sign = 1; for (int i = 0; i < (copy.length); i++) { copy[i] *= sign * normalisingFactor; sign *= -1; } return copy; }
public void draw(org.newdawn.slick.Graphics graphics) { try { if ((playerIdle) == null) { playerIdle = new org.newdawn.slick.Image("Sprites/powerup_slow.png"); playerIdle.draw(getX(), getY(), 50, 100); } } catch (org.newdawn.slick.SlickException e) { e.printStackT...
public void draw(org.newdawn.slick.Graphics graphics) { try { if ((playerIdle) == null) { playerIdle = new org.newdawn.slick.Image("Sprites/powerup_slow.png"); } playerIdle.draw(getX(), getY(), 50, 100); } catch (org.newdawn.slick.SlickException e) { e.printStackTrace...
public void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); if (getArguments().containsKey(com.example.xyzreader.ui.ArticleDetailFragment.ARG_ITEM_ID)) { mItemId = getArguments().getLong(com.example.xyzreader.ui.ArticleDetailFragment.ARG_ITEM_ID); } mIsCard =...
public void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); if (getArguments().containsKey(com.example.xyzreader.ui.ArticleDetailFragment.ARG_ITEM_ID)) { mItemId = getArguments().getLong(com.example.xyzreader.ui.ArticleDetailFragment.ARG_ITEM_ID); } mIsCard =...
private int isTwoPair(int[] valueAry, int size) { int first = 0; int second = 0; for (int i = size; i > 0; i--) { if ((valueAry[i]) == 2) { if (first == 0) first = i; else second = i; } } if ((first > 0) && (second ...
private int isTwoPair(int[] valueAry, int size) { int first = 0; int second = 0; for (int i = size - 1; i > 0; i--) { if ((valueAry[i]) == 2) { if (first == 0) first = i; else second = i; } } if ((first > 0) && (sec...
private void applyFallDeath(java.lang.Character player) { if ((player.getPos().getY()) < 150) { if (player.equals(player1)) { HPBar.killP1(); } if (player.equals(player2)) { HPBar.killP2(); } return ; } }
private void applyFallDeath(java.lang.Character player) { if ((player.getPos().getY()) < (-150)) { if (player.equals(player1)) { HPBar.killP1(); } if (player.equals(player2)) { HPBar.killP2(); } return ; } }
public static ATSSG.Entities.Entity getEntity(int id, ATSSG.Script.Framework.Script environment) { for (ATSSG.Entities.Entity e : environment.getOwner().getOwner().getContaining_map().getEntities()) { java.lang.System.out.println(((("Comparing " + e) + " to ") + id)); if ((e.getId()) == id) ...
public static ATSSG.Entities.Entity getEntity(int id, ATSSG.Script.Framework.Script environment) { for (ATSSG.Entities.Entity e : environment.getOwner().getOwner().getContaining_map().getEntities()) { if ((e.getId()) == id) return e; } return null; }
public void freeSegmentsAfterAppendPosition() { final int appendSegmentIndex = ((int) ((appendPosition) >>> (this.segmentSizeBits))); while ((segments.size()) > (appendSegmentIndex + 1)) { freeMemorySegments.add(segments.get(((segments.size()) - 1))); segments.remove(((segments.size()) - 1)); ...
public void freeSegmentsAfterAppendPosition() { final int appendSegmentIndex = ((int) ((appendPosition) >>> (segmentSizeBits))); while ((segments.size()) > (appendSegmentIndex + 1)) { freeMemorySegments.add(segments.get(((segments.size()) - 1))); segments.remove(((segments.size()) - 1)); } ...
public void cityCountryDetectionTest() throws java.io.IOException, java.lang.InterruptedException { if (countryTest.contains("ALL")) { java.lang.String rawAddress = "paris usa"; com.gisgraphy.addressparser.AddressResultsDto addressResultsDto = doGeocodingOnCountry(rawAddress, "FR"); net.sf.j...
public void cityCountryDetectionTest() throws java.io.IOException, java.lang.InterruptedException { if (countryTest.contains("ALL")) { java.lang.String rawAddress = "paris usa"; com.gisgraphy.addressparser.AddressResultsDto addressResultsDto = doGeocodingOnCountry(rawAddress, "FR"); net.sf.j...
private static org.eclipse.jdt.core.dom.ImportDeclaration getProblematicImport(org.eclipse.jdt.core.compiler.IProblem problem, org.eclipse.jdt.core.dom.CompilationUnit astRoot) { org.eclipse.jdt.core.dom.ASTNode coveringNode = new org.eclipse.jdt.core.dom.NodeFinder(astRoot, problem.getSourceStart(), ((problem.getS...
private static org.eclipse.jdt.core.dom.ImportDeclaration getProblematicImport(org.eclipse.jdt.core.compiler.IProblem problem, org.eclipse.jdt.core.dom.CompilationUnit astRoot) { org.eclipse.jdt.core.dom.ASTNode coveringNode = new org.eclipse.jdt.core.dom.NodeFinder(astRoot, problem.getSourceStart(), ((problem.getS...
public void onUpgrade(android.database.sqlite.SQLiteDatabase db, int oldVersion, int newVersion) { db.execSQL(("DROP TABLE IF EXISTS " + (io.github.data4all.model.DataBaseHandler.TABLE_USER))); db.execSQL(("DROP TABLE IF EXISTS " + (io.github.data4all.model.DataBaseHandler.TABLE_TAGMAP))); db.execSQL(("DROP...
public void onUpgrade(android.database.sqlite.SQLiteDatabase db, int oldVersion, int newVersion) { db.execSQL(("DROP TABLE IF EXISTS " + (io.github.data4all.model.DataBaseHandler.TABLE_USER))); db.execSQL(("DROP TABLE IF EXISTS " + (io.github.data4all.model.DataBaseHandler.TABLE_TAGMAP))); db.execSQL(("DROP...
public void mousePressed(java.awt.event.MouseEvent e) { if ((e.getClickCount()) > 1) { SelectedAI.remove(SelectedAI.getSelectedIndex()); selectedFiles.remove(Files.get(SelectedAI.getSelectedIndex())); SelectedAI.deselect(SelectedAI.getSelectedIndex()); } }
public void mousePressed(java.awt.event.MouseEvent e) { if ((e.getClickCount()) > 1) { java.lang.System.out.println(SelectedAI.getSelectedIndex()); selectedFiles.remove(Files.get(SelectedAI.getSelectedIndex())); SelectedAI.remove(SelectedAI.getSelectedIndex()); } }
public int compare(java.lang.Object o1, java.lang.Object o2) { if ((o1 == (nullValue)) && (o2 == (nullValue))) { return 0; } if (o1 == (nullValue)) { return 1; } if (o2 == (nullValue)) { return -1; } return o1.toString().toLowerCase().compareTo(o2.toString().toLowerCa...
public int compare(java.lang.Object o1, java.lang.Object o2) { if ((o1 == nullValue) && (o2 == nullValue)) { return 0; } if (o1 == nullValue) { return 1; } if (o2 == nullValue) { return -1; } return o1.toString().toLowerCase().compareTo(o2.toString().toLowerCase()); }
public static boolean checkConcept(org.eclipse.xsd.XSDElementDeclaration decl) { boolean isConcept = false; org.eclipse.emf.common.util.EList l = decl.getIdentityConstraintDefinitions(); for (java.util.Iterator iter = l.iterator(); iter.hasNext();) { org.eclipse.xsd.XSDIdentityConstraintDefinition i...
public static boolean checkConcept(org.eclipse.xsd.XSDElementDeclaration decl) { boolean isConcept = false; org.eclipse.emf.common.util.EList<org.eclipse.xsd.XSDIdentityConstraintDefinition> list = decl.getIdentityConstraintDefinitions(); for (java.util.Iterator<org.eclipse.xsd.XSDIdentityConstraintDefiniti...
protected void parseRowsetRoles(java.lang.String name) { roles = name.equals("roles"); grantableRoles = name.equals("grantableRoles"); rolesAtHQ = name.equals("rolesAtHQ"); grantableRolesAtHQ = name.equals("grantableRolesAtHQ"); rolesAtBase = name.equals("rolesAtBase"); grantableRolesAtBase = na...
protected void parseRowsetRoles(java.lang.String name) { roles = "roles".equals(name); grantableRoles = "grantableRoles".equals(name); rolesAtHQ = "rolesAtHQ".equals(name); grantableRolesAtHQ = "grantableRolesAtHQ".equals(name); rolesAtBase = "rolesAtBase".equals(name); grantableRolesAtBase = "g...
public static void main(java.lang.String[] args) { com.badlogic.gdx.math.Vector3 initBallPos = new com.badlogic.gdx.math.Vector3(0, 0, 0); physics.testing.GravityNormalForceTest test = new physics.testing.GravityNormalForceTest(initBallPos); com.badlogic.gdx.math.Vector3 hitForce = new com.badlogic.gdx.math...
public static void main(java.lang.String[] args) { com.badlogic.gdx.math.Vector3 initBallPos = new com.badlogic.gdx.math.Vector3(0, 0, 1); physics.testing.GravityNormalForceTest test = new physics.testing.GravityNormalForceTest(initBallPos); com.badlogic.gdx.math.Vector3 hitForce = new com.badlogic.gdx.math...
public hudson.util.FormValidation doCheckSignPartitionSize(@org.kohsuke.stapler.AncestorInPath hudson.model.AbstractProject project, @org.kohsuke.stapler.QueryParameter java.lang.String value) throws java.io.IOException { try { int partitionSize = java.lang.Integer.parseInt(value); if (partitionSize...
public hudson.util.FormValidation doCheckSignPartitionSize(@org.kohsuke.stapler.AncestorInPath hudson.model.AbstractProject project, @org.kohsuke.stapler.QueryParameter java.lang.String value) throws java.io.IOException { try { int partitionSize = java.lang.Integer.parseInt(value); if (partitionSize...
protected void onCreate(android.os.Bundle savedInstanceState) { requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); super.onCreate(savedInstanceState); setContentView(R.layout.activity_splash); m...
protected void onCreate(android.os.Bundle savedInstanceState) { requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); super.onCreate(savedInstanceState); setContentView(R.layout.activity_splash); m...
private void updateTextures(java.lang.Object texture) { java.lang.Object[] updatedTextures = new java.lang.Object[(getTextures().length) + 1]; for (int i = 0; i < (updatedTextures.length); i++) { updatedTextures[i] = this.textures[i]; } updatedTextures[textures.length] = texture; this.textur...
private void updateTextures(java.lang.Object texture) { java.lang.Object[] updatedTextures = new java.lang.Object[(getTextures().length) + 1]; if ((this.textures.length) > 0) { for (int i = 0; i < (updatedTextures.length); i++) { updatedTextures[i] = this.textures[i]; } } upd...
public static void notifyFollowUpAlarm(long alarmId) { com.fasterxml.jackson.databind.node.ObjectNode jsonNotification = play.libs.Json.newObject(); com.fasterxml.jackson.databind.node.ObjectNode action = play.libs.Json.newObject(); jsonNotification.put("action", action); action.put("action", "notifyFol...
public void notifyFollowUpAlarm(long alarmId) { com.fasterxml.jackson.databind.node.ObjectNode jsonNotification = play.libs.Json.newObject(); com.fasterxml.jackson.databind.node.ObjectNode action = play.libs.Json.newObject(); jsonNotification.put("action", action); action.put("action", "notifyFollowup")...
public java.util.List<org.opencps.paymentmgt.model.PaymentFile> searchPaymentFiles(long groupId, java.lang.String paymentStatus, java.lang.String keywords, int start, int end) { java.lang.String[] names = null; boolean andOperator = false; if (com.liferay.portal.kernel.util.Validator.isNotNull(keywords)) { ...
public java.util.List<org.opencps.paymentmgt.model.PaymentFile> searchPaymentFiles(long groupId, int paymentStatus, java.lang.String keywords, int start, int end) { java.lang.String[] names = null; boolean andOperator = false; if (com.liferay.portal.kernel.util.Validator.isNotNull(keywords)) { names...
public static void AcceptConnection(ProfNetwork esql, java.lang.String cur_usr, java.lang.String reqsender) { try { java.lang.String accept = java.lang.String.format("update connection_usr set status='Accept' where userid='%s' and connectionid='%s' and status='Request'", reqsender, cur_usr); esql.ex...
public static void AcceptConnection(ProfNetwork esql, java.lang.String cur_usr, java.lang.String reqsender) { try { java.lang.String accept = java.lang.String.format("update connection_usr set status='Accept' where userid='%s' and connectionid='%s' and status='Request'", reqsender, cur_usr); esql.ex...
public void copyCurrentPhotoPath() { org.openstreetmap.josm.gui.layer.geoimage.ImageEntry toCopy = null; if (((((data) != null) && (!(data.isEmpty()))) && ((currentPhoto) >= 0)) && ((currentPhoto) < (data.size()))) { toCopy = data.get(currentPhoto); java.lang.String copyString = toCopy.getFile()...
public void copyCurrentPhotoPath() { if (((((data) != null) && (!(data.isEmpty()))) && ((currentPhoto) >= 0)) && ((currentPhoto) < (data.size()))) { org.openstreetmap.josm.tools.Utils.copyToClipboard(data.get(currentPhoto).getFile().toString()); } }
public boolean create(edu.ycp.cs320.groupProject.model.Chatroom c, edu.ycp.cs320.groupProject.model.User u) { boolean success = false; boolean nameTaken = false; java.util.List<edu.ycp.cs320.groupProject.model.Chatroom> listOfChatrooms = db.selectAllChatrooms(); for (edu.ycp.cs320.groupProject.model.Cha...
public boolean create(edu.ycp.cs320.groupProject.model.Chatroom c, edu.ycp.cs320.groupProject.model.User u) { boolean success = false; boolean nameTaken = false; java.util.List<edu.ycp.cs320.groupProject.model.Chatroom> listOfChatrooms = db.selectAllChatrooms(); for (edu.ycp.cs320.groupProject.model.Cha...
public void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.recordingspeakers); safeActivityTransition = false; safeActivityTransitionMessage = "This will discard the selected speakers"; okButton = ((android.widget.ImageButton) (findViewBy...
public void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.recordingspeakers); safeActivityTransition = false; safeActivityTransitionMessage = "This will discard the selected speakers"; okButton = ((android.widget.ImageButton) (findViewBy...
public void run() { java.lang.String link = generateLmgtfyLink(message); java.lang.String sublink = link.substring(no.ntnu.online.onlineguru.plugin.plugins.lmgtfy.LmgtfyPlugin.LMGTFY_BASE.length(), link.length()); if ((sublink.length()) >= 42) link = bitlyfyLink(sublink); wand.sendMessageTo...
public void run() { java.lang.String link = generateLmgtfyLink(message); java.lang.String sublink = link.substring(no.ntnu.online.onlineguru.plugin.plugins.lmgtfy.LmgtfyPlugin.LMGTFY_BASE.length(), link.length()); if ((sublink.length()) >= 42) link = bitlyfyLink(link); wand.sendMessageToTar...
public org.neo4j.cursor.Cursor<org.neo4j.storageengine.api.RelationshipItem> relationshipCursorGetAll() { statement.assertOpen(); java.util.ArrayList<java.lang.Long> list = new java.util.ArrayList<>(); org.neo4j.collection.primitive.PrimitiveLongIterator it = relationshipsGetAll(); while (it.hasNext()) ...
public org.neo4j.cursor.Cursor<org.neo4j.storageengine.api.RelationshipItem> relationshipCursorGetAll() { statement.assertOpen(); java.util.ArrayList<java.lang.Long> list = new java.util.ArrayList<>(); org.neo4j.collection.primitive.PrimitiveLongIterator it = relationshipsGetAll(); while (it.hasNext()) ...
public javabot.Seen getSeen(final java.lang.String nick, final java.lang.String channel) { javabot.Seen seen = null; try { seen = ((javabot.Seen) (getEntityManager().createNamedQuery(LogsDao.SEEN).setParameter("nick", nick).setParameter("channel", channel).setMaxResults(1).getSingleResult())); } cat...
public javabot.Seen getSeen(final java.lang.String nick, final java.lang.String channel) { javabot.Seen seen = null; try { seen = ((javabot.Seen) (getEntityManager().createNamedQuery(LogsDao.SEEN).setParameter("nick", nick.toLowerCase()).setParameter("channel", channel).setMaxResults(1).getSingleResult(...
public void onScrolled(android.support.v7.widget.RecyclerView recyclerView, int dx, int dy) { int topRowVerticalPosition = ((recyclerView == null) || ((recyclerView.getChildCount()) == 0)) ? 0 : recyclerView.getChildAt(0).getTop(); mSwipeRefreshLayout.setEnabled(((dx == 0) && (topRowVerticalPosition >= 0))); }
public void onScrolled(android.support.v7.widget.RecyclerView recyclerView, int dx, int dy) { int topRowVerticalPosition = ((recyclerView == null) || ((recyclerView.getChildCount()) == 0)) ? 0 : recyclerView.getChildAt(0).getTop(); mSwipeRefreshLayout.setEnabled(((dy == 0) && (topRowVerticalPosition >= 0))); }
public void initControllers() { goToMainMenu.addActionListener(new playerController.NavigateMainMenu(app)); for (int i = 0; i < 15; i++) { levels[i].addActionListener(new playerController.PlayLevel(app, m, i)); } }
public void initControllers() { goToMainMenu.addActionListener(new playerController.NavigateMainMenu(app)); for (int i = 0; i < 15; i++) { levels[i].addActionListener(new playerController.PlayLevel(app, m, (i + 1))); } }
private br.univali.ps.ui.inspetor.ItemDaLista getItemDoNo(br.univali.portugol.nucleo.asa.NoDeclaracao no, boolean consideraEscopo) { br.univali.ps.ui.inspetor.ComparadorDeNos comparador = new br.univali.ps.ui.inspetor.ComparadorDeNos(ultimoProgramaCompilado); for (int i = 0; i < (model.getSize()); i++) { ...
private br.univali.ps.ui.inspetor.ItemDaLista getItemDoNo(br.univali.portugol.nucleo.asa.NoDeclaracao no) { br.univali.ps.ui.inspetor.ComparadorDeNos comparador = new br.univali.ps.ui.inspetor.ComparadorDeNos(); for (int i = 0; i < (model.getSize()); i++) { br.univali.ps.ui.inspetor.ItemDaLista item = m...
public com.cidic.design.model.ResultModel getListProductionByPage(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, @org.springframework.web.bind.annotation.RequestParam int offset, @org.springframework.web.bind.annotation.RequestParam int limit, @org.springframework.web.bi...
public com.cidic.design.model.ResultModel getListProductionByPage(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, @org.springframework.web.bind.annotation.RequestParam int offset, @org.springframework.web.bind.annotation.RequestParam int limit, @org.springframework.web.bi...
public static boolean checkWin(com.williamgrand.tictactoe.Player p) { if (com.williamgrand.tictactoe.GameManager.checkVerticalWin(p)) return true; else if (com.williamgrand.tictactoe.GameManager.checkHorizontalWin(p)) return true; else if (com.williamgrand.tictact...
public static boolean checkWin(com.williamgrand.tictactoe.Player p) { if (com.williamgrand.tictactoe.GameManager.checkVerticalWin(p)) return true; else if (com.williamgrand.tictactoe.GameManager.checkHorizontalWin(p)) return true; else if (com.williamgrand.tictact...
private void createGUI(java.lang.String labelInfo) { setMinimumSize(new java.awt.Dimension(200, 200)); setResizable(false); javax.swing.JLabel label = new javax.swing.JLabel(labelInfo); javax.swing.JButton closeButton = new javax.swing.JButton("close"); label.setAlignmentX(javax.swing.JLabel.CENTER_...
private void createGUI(java.lang.String labelInfo) { setMinimumSize(new java.awt.Dimension(200, 200)); setResizable(false); javax.swing.JLabel label = new javax.swing.JLabel(labelInfo); label.setAlignmentX(javax.swing.JLabel.CENTER_ALIGNMENT); label.setAlignmentY(javax.swing.JLabel.CENTER_ALIGNMENT)...
public void onViewCreated(android.view.View view, android.os.Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState); android.app.FragmentManager childFragManager = getChildFragmentManager(); android.app.FragmentTransaction tr = childFragManager.beginTransaction(); for (android.app.Fr...
public void onViewCreated(android.view.View view, android.os.Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState); android.app.FragmentManager childFragManager = getChildFragmentManager(); for (android.app.Fragment frag : mFragments) { android.app.FragmentTransaction tr = child...
public void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); if ((getArguments()) != null) { riderName = getArguments().getString(priyanka.edu.cmu.demo.ui.RiderFragment.ARG_PARAM1); riderGender = getArguments().getString(priyanka.edu.cmu.demo.ui.RiderFragment....
public void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); if ((getArguments()) != null) { riderName = getArguments().getString(priyanka.edu.cmu.demo.ui.RiderFragment.ARG_PARAM1); riderGender = getArguments().getString(priyanka.edu.cmu.demo.ui.RiderFragment....
public java.util.List<com.orientechnologies.orient.server.distributed.ODistributedResponse> getReceivedResponses() { final java.util.List<com.orientechnologies.orient.server.distributed.ODistributedResponse> parsed = new java.util.ArrayList<com.orientechnologies.orient.server.distributed.ODistributedResponse>(); ...
protected java.util.List<com.orientechnologies.orient.server.distributed.ODistributedResponse> getReceivedResponses() { final java.util.List<com.orientechnologies.orient.server.distributed.ODistributedResponse> parsed = new java.util.ArrayList<com.orientechnologies.orient.server.distributed.ODistributedResponse>();...
private java.lang.String readLongType() { (this.byteCurrently)++; java.lang.String type = "" + ((this.bytes[this.byteCurrently]) & 127); if ((((this.bytes[this.byteCurrently]) >> 7) & 1) == 1) { type += readLongType(); return type; } return "" + ((this.bytes[this.byteCurrently]) & 12...
private int readLongType() { (this.byteCurrently)++; int type = (0 << 7) + ((this.bytes[this.byteCurrently]) & 127); if ((((this.bytes[this.byteCurrently]) >> 7) & 1) == 1) { type = (type << 7) + (readLongType()); return type; } return (this.bytes[this.byteCurrently]) & 127; }
private boolean isDisqualified(edu.colorado.csci5828.remotelypossible.dlap.model.Application a) { if ((java.lang.Float.parseFloat(a.getStudent().getGpa())) < 3.0F) { a.setScore(Application.SCORE_DISQUALIFIED); a.setDisqualReason("Reported GPA too low"); return true; } if (a.getAppren...
private boolean isDisqualified(edu.colorado.csci5828.remotelypossible.dlap.model.Application a) { if ((java.lang.Float.parseFloat(a.getStudent().getGpa())) < 3.0F) { a.setScore(Application.SCORE_DISQUALIFIED); a.setDisqualReason("Reported GPA too low"); return true; } return false; }
public void setShopsVisited(java.lang.Integer shopsVisited) { boolean show = (customers) != null; if (show) { customersLabel.setText("<html><font size=5>Shops Visited:"); customers.setText(("<html><font size=5><code>" + shopsVisited)); } customersLabel.setVisible(show); this.customer...
public void setShopsVisited(java.lang.Integer shopsVisited) { boolean show = shopsVisited != null; if (show) { customersLabel.setText("<html><font size=5>Shops Visited:"); customers.setText(("<html><font size=5><code>" + shopsVisited)); } customersLabel.setVisible(show); this.custome...
public void testExtractFailures() throws java.lang.Exception { try { at.favre.crypto.HKDF.extractHmacSha256(null, org.apache.commons.lang3.RandomUtils.nextBytes(10)); org.junit.Assert.fail(); } catch (java.lang.Exception e) { } try { at.favre.crypto.HKDF.extractHmacSha512(new byt...
public void testExtractFailures() throws java.lang.Exception { try { at.favre.crypto.HKDF.extractHmacSha256(null, org.apache.commons.lang3.RandomUtils.nextBytes(10)); fail(); } catch (java.lang.Exception e) { } try { at.favre.crypto.HKDF.extractHmacSha512(new byte[0], null); ...
public void invalidate() { valid = false; try { unregisterMBean(); } catch (java.lang.Exception e) { org.apache.cassandra.db.JVMStabilityInspector.inspectThrowable(e); org.apache.cassandra.db.ColumnFamilyStore.logger.warn("Failed unregistering mbean: {}", mbeanName, e); } lat...
public void invalidate() { valid = false; try { unregisterMBean(); } catch (java.lang.Exception e) { org.apache.cassandra.db.JVMStabilityInspector.inspectThrowable(e); org.apache.cassandra.db.ColumnFamilyStore.logger.warn("Failed unregistering mbean: {}", mbeanName, e); } lat...
private synchronized void up(int x, int y) { com.integreight.onesheeld.utils.customviews.MutitouchKeysContainer.PinData item = getTouhedIndex(x, y, childrenRects); if (((item.index) != (-1)) && (pressedRects.contains(item))) { item.key.eventListener.onReleased(item.key); pressedRects.remove(item...
private synchronized void up(int x, int y) { com.integreight.onesheeld.utils.customviews.MutitouchKeysContainer.PinData item = getTouhedIndex(x, y, childrenRects); if (((item.index) != (-1)) && (pressedRects.contains(item))) { if (((item.key) != null) && ((item.key.eventListener) != null)) i...
public no.difi.meldingsutveksling.ptp.KontaktInfo getCitizenInfo(no.difi.meldingsutveksling.serviceregistry.krr.LookupParameters lookupParameters) { no.difi.meldingsutveksling.ptp.KontaktInfo kontaktInfo = client.hentKontaktInformasjon(lookupParameters); if ((!(kontaktInfo.canReceiveDigitalPost())) || ((!(konta...
public no.difi.meldingsutveksling.ptp.KontaktInfo getCitizenInfo(no.difi.meldingsutveksling.serviceregistry.krr.LookupParameters lookupParameters) { no.difi.meldingsutveksling.ptp.KontaktInfo kontaktInfo = client.hentKontaktInformasjon(lookupParameters); if ((!(kontaktInfo.canReceiveDigitalPost())) || ((!(konta...
public float getExpectedRestCost(final org.anddev.andengine.util.path.ITiledMap<T> pTiledMap, final T pEntity, final int pTileFromX, final int pTileFromY, final int pTileToX, final int pTileToY) { return (java.lang.Math.abs((pTileFromX - pTileToX))) + (java.lang.Math.abs((pTileToX - pTileToY))); }
public float getExpectedRestCost(final org.anddev.andengine.util.path.ITiledMap<T> pTiledMap, final T pEntity, final int pTileFromX, final int pTileFromY, final int pTileToX, final int pTileToY) { return (java.lang.Math.abs((pTileFromX - pTileToX))) + (java.lang.Math.abs((pTileFromY - pTileToY))); }
private void verifyMutedIconSettingInUpdateBreakpointPresentation(java.lang.Boolean muted) { com.intellij.xdebugger.breakpoints.XBreakpointManager breakpointManager = org.mockito.Mockito.mock(com.intellij.xdebugger.breakpoints.XBreakpointManager.class); com.intellij.xdebugger.XDebugSession debugSession = org.mo...
private void verifyMutedIconSettingInUpdateBreakpointPresentation(java.lang.Boolean muted) { com.intellij.xdebugger.breakpoints.XBreakpointManager breakpointManager = org.mockito.Mockito.mock(com.intellij.xdebugger.breakpoints.XBreakpointManager.class); com.intellij.xdebugger.XDebugSession debugSession = org.mo...
public int randomColor(int c1, int c2) { if ((random(0, 1)) > 0.5F) { return c1; }else if ((random(0, 1)) < 0.5F) { return c2; }else { return 1; } }
public int randomColor(int c1, int c2) { if ((random(0, 1)) > 0.5F) { return c1; }else if ((random(0, 1)) < 0.5F) { return c2; } return 0; }