buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
protected net.schmizz.concurrent.Promise<net.schmizz.sshj.sftp.Response, net.schmizz.sshj.sftp.SFTPException> asyncWrite(long fileOffset, byte[] data, int off, int len) throws java.io.IOException { return requester.request(newRequest(PacketType.WRITE).putUInt64(fileOffset).putUInt32(len).putRawBytes(data, off, len)...
protected net.schmizz.concurrent.Promise<net.schmizz.sshj.sftp.Response, net.schmizz.sshj.sftp.SFTPException> asyncWrite(long fileOffset, byte[] data, int off, int len) throws java.io.IOException { return requester.request(newRequest(PacketType.WRITE).putUInt64(fileOffset).putUInt32((len - off)).putRawBytes(data, o...
protected void notifyListeners(lejos.robotics.objectdetection.Feature feature) { super.notifyListeners(feature); if (invert) { while ((lightSensor.getLightValue()) >= (threshold)); }else { while ((lightSensor.getLightValue()) <= (threshold)); } }
protected void notifyListeners(lejos.robotics.objectdetection.Feature feature) { super.notifyListeners(feature); if (invert) { while ((lightSensor.getLightValue()) >= (threshold)); }else { while ((lightSensor.getLightValue()) < (threshold)); } }
public static woohoo.utils.gameobjects.Tile selectTile(int x, int y) { x /= Tile.G_TILE_WIDTH; y /= Tile.G_TILE_HEIGHT; int location = (y * (woohoo.utils.gameobjects.TileMap.mapWidth)) + x; woohoo.utils.gameobjects.Tile clicked = ((woohoo.utils.gameobjects.Tile) (woohoo.utils.gameobjects.TileMap.tileLis...
public static woohoo.utils.gameobjects.Tile selectTile(int x, int y) { x /= Tile.G_TILE_WIDTH; y /= Tile.G_TILE_HEIGHT; int location = (y * (woohoo.utils.gameobjects.TileMap.mapWidth)) + x; if (location >= (woohoo.utils.gameobjects.TileMap.tileList.toArray().length)) return null; woohoo...
public void put(foam.nanos.boot.Detachable sub, foam.nanos.boot.FObject obj) { foam.nanos.boot.NSpec sp = ((foam.nanos.boot.FObject) (obj)); java.lang.System.out.println(("NSpec: " + (sp.name))); foam.nanos.boot.NanoService ns = sp.createService(); ns.setContext(root_); ns.start(); root_.put(sp....
public void put(foam.nanos.boot.Detachable sub, foam.nanos.boot.FObject obj) { foam.nanos.boot.NSpec sp = ((foam.nanos.boot.NSpec) (obj)); java.lang.System.out.println(("NSpec: " + (sp.getName()))); foam.nanos.boot.NanoService ns = sp.createService(); ns.setContext(root_); ns.start(); root_.put(...
public void testViewCommandAll() throws java.io.IOException, taskie.tests.InvalidTaskException, taskie.tests.TaskModificationFailedException, taskie.tests.TaskRetrievalFailedException { setUp(); generateTasks(); taskie.tests.ViewCommand cmd = new taskie.tests.ViewCommand(taskie.models.ViewType.ALL); cmd...
public void testViewCommandAll() throws java.io.IOException, taskie.tests.InvalidTaskException, taskie.tests.TaskModificationFailedException, taskie.tests.TaskRetrievalFailedException { setUp(); generateTasks(); taskie.tests.ViewCommand cmd = new taskie.tests.ViewCommand(taskie.models.ViewType.ALL); cmd...
protected static org.json.JSONObject recursiveCopyJSONObject(org.json.JSONObject record) throws org.json.JSONException { org.json.JSONObject copy = new org.json.JSONObject(); for (java.lang.String key : org.json.JSONObject.getNames(record)) { copy.put(key, edu.umass.cs.gnsserver.database.DiskMapRecords....
protected static org.json.JSONObject recursiveCopyJSONObject(org.json.JSONObject record) throws org.json.JSONException { java.lang.String[] keys = org.json.JSONObject.getNames(record); org.json.JSONObject copy = new org.json.JSONObject(); if (keys != null) for (java.lang.String key : org.json.JSONOb...
public void onClick(android.view.View v) { switch (v.getId()) { case R.id.search : android.content.Intent ser = new android.content.Intent(this, com.example.samsung.weather.activity.lookUp_weather.class); ser.putExtra("is_from_weather", true); startActivity(ser); ...
public void onClick(android.view.View v) { switch (v.getId()) { case R.id.search : android.content.Intent intent = new android.content.Intent(this, com.example.samsung.weather.activity.lookUp_weather.class); intent.putExtra("is_from_weather", true); startActivity(intent);...
public void onSaveSetting(android.view.View view) { android.widget.Spinner spinner = ((android.widget.Spinner) (this.findViewById(R.id.countryDropDown))); com.freedom.freeclient.freeclient.Country country = ((com.freedom.freeclient.freeclient.Country) (spinner.getSelectedItem())); java.lang.StringBuilder bu...
public void onSaveSetting(android.view.View view) { android.widget.Spinner spinner = ((android.widget.Spinner) (this.findViewById(R.id.countryDropDown))); com.freedom.freeclient.freeclient.Country country = ((com.freedom.freeclient.freeclient.Country) (spinner.getSelectedItem())); java.lang.StringBuilder bu...
public static edu.umass.cs.gnsserver.utils.ValuesMap runCode(edu.umass.cs.gnsserver.interfaces.InternalRequestHeader header, java.lang.String code, java.lang.String guid, java.lang.String field, java.lang.String action, edu.umass.cs.gnsserver.utils.ValuesMap valuesMap, int activeCodeTTL) { try { return edu....
public static edu.umass.cs.gnsserver.utils.ValuesMap runCode(edu.umass.cs.gnsserver.interfaces.InternalRequestHeader header, java.lang.String code, java.lang.String guid, java.lang.String field, java.lang.String action, edu.umass.cs.gnsserver.utils.ValuesMap valuesMap, int activeCodeTTL) { try { return edu....
public void visitTypeDeclaration(org.mustbe.consulo.csharp.lang.psi.CSharpTypeDeclaration declaration) { org.mustbe.consulo.dotnet.psi.DotNetModifierList modifierList = declaration.getModifierList(); assert modifierList != null; com.intellij.psi.PsiElement modifierElement = modifierList.getModifierElement(C...
public void visitTypeDeclaration(org.mustbe.consulo.csharp.lang.psi.CSharpTypeDeclaration declaration) { org.mustbe.consulo.dotnet.psi.DotNetModifierList modifierList = declaration.getModifierList(); assert modifierList != null; com.intellij.psi.PsiElement modifierElement = modifierList.getModifierElement(C...
public javax.swing.ImageIcon loadIcon(java.lang.String imagePath) { try { java.io.InputStream input = com.arcade_renegade.graphics_tools.GraphicsTools.class.getClassLoader().getResourceAsStream(imagePath); java.awt.image.BufferedImage image = javax.imageio.ImageIO.read(input); return new jav...
protected javax.swing.ImageIcon loadIcon(java.lang.String imagePath) { try { java.io.InputStream input = com.arcade_renegade.graphics_tools.GraphicsTools.class.getClassLoader().getResourceAsStream(imagePath); java.awt.image.BufferedImage image = javax.imageio.ImageIO.read(input); return new ...
public ChannelBinding.IndexedMessageChannel createChannel(java.lang.Object plugin, java.lang.String name) throws org.spongepowered.api.network.ChannelRegistrationException { org.spongepowered.api.plugin.PluginContainer container = checkCreateChannelArgs(plugin, name); validateChannel(name); org.spongepowere...
public ChannelBinding.IndexedMessageChannel createChannel(java.lang.Object plugin, java.lang.String name) throws org.spongepowered.api.network.ChannelRegistrationException { org.spongepowered.api.plugin.PluginContainer container = checkCreateChannelArgs(plugin, name); validateChannel(name); org.spongepowere...
protected biweekly.property.RawProperty _parseXml(biweekly.io.xml.XCalElement element, biweekly.parameter.ICalParameters parameters, biweekly.io.ParseContext context) { biweekly.io.xml.XCalElement.XCalValue firstValue = element.firstValue(); biweekly.ICalDataType dataType = firstValue.getDataType(); java.la...
protected biweekly.property.RawProperty _parseXml(biweekly.io.xml.XCalElement element, biweekly.parameter.ICalParameters parameters, biweekly.io.ParseContext context) { biweekly.io.xml.XCalElement.XCalValue firstValue = element.firstValue(); biweekly.ICalDataType dataType = firstValue.getDataType(); java.la...
public void testDownloadFileFromServer_ResponseHTML() throws com.jcraft.jsch.JSchException, com.jcraft.jsch.SftpException, com.veritomyx.actions.BaseAction.ResponseFormatException, java.io.IOException, java.lang.IllegalStateException, java.lang.InterruptedException, net.sf.mzmine.modules.rawdatamethods.peakpicking.mass...
public void testDownloadFileFromServer_ResponseHTML() throws com.jcraft.jsch.JSchException, com.jcraft.jsch.SftpException, com.veritomyx.actions.BaseAction.ResponseFormatException, java.io.IOException, java.lang.IllegalStateException, java.lang.InterruptedException, net.sf.mzmine.modules.rawdatamethods.peakpicking.mass...
public void onClick(android.view.View view) { android.util.Log.d(org.septa.android.app.nextarrive.railstationpicker.RailStationPickerFragment.TAG, ("Current Possition is:" + (selectedTab))); if ((currentStop) != null) android.util.Log.d(org.septa.android.app.nextarrive.railstationpicker.RailStationPicke...
public void onClick(android.view.View view) { android.util.Log.d(org.septa.android.app.nextarrive.railstationpicker.RailStationPickerFragment.TAG, ("Current Possition is:" + (selectedTab))); if ((currentStop[selectedTab]) == null) { android.util.Log.d(org.septa.android.app.nextarrive.railstationpicker.R...
private void saveRecords(java.util.List<objects.databaseObjects.Requirement> requirementList, boolean newAdvancement) { advancement = objects.objectLogic.LogicAdvancement.save(advancement); if (newAdvancement) { for (objects.databaseObjects.Requirement requirement : requirementList) { requir...
private void saveRecords(java.util.List<objects.databaseObjects.Requirement> requirementList, boolean newAdvancement) { advancement = objects.objectLogic.LogicAdvancement.save(advancement); if (newAdvancement) { for (objects.databaseObjects.Requirement requirement : requirementList) { requir...
public Abstract.Expression visitDefCall(com.jetbrains.jetpad.vclang.core.expr.visitor.DefCallExpression expr, java.lang.Void params) { com.jetbrains.jetpad.vclang.term.Abstract.Expression result = checkBinOp(expr); if (result != null) { return result; } return visitArguments(myFactory.makeDefCal...
public Abstract.Expression visitDefCall(com.jetbrains.jetpad.vclang.core.expr.visitor.DefCallExpression expr, java.lang.Void params) { com.jetbrains.jetpad.vclang.term.Abstract.Expression result = checkBinOp(expr); if (result != null) { return result; } return visitArguments(myFactory.makeDefCal...
public boolean promptForGuess() { java.util.Scanner scanner = new java.util.Scanner(java.lang.System.in); boolean isHit = false; boolean isAcceptable = false; do { java.lang.System.out.print("Enter a letter: "); java.lang.String guessInput = scanner.nextLine(); char guess = guess...
public boolean promptForGuess() { java.util.Scanner scanner = new java.util.Scanner(java.lang.System.in); boolean isHit = false; boolean isAcceptable = false; do { java.lang.System.out.print("Enter a letter: "); java.lang.String guessInput = scanner.nextLine(); try { ...
private java.util.ArrayList<model.Artist> getArtistsCursor(com.mongodb.client.MongoCursor<org.bson.Document> cursor) { java.util.ArrayList<model.Artist> artists = new java.util.ArrayList<>(); while (cursor.hasNext()) { org.bson.Document obj = cursor.next(); model.Artist artist = new model.Artist...
private java.util.ArrayList<model.Artist> getArtistsCursor(com.mongodb.client.MongoCursor<org.bson.Document> cursor) { java.util.ArrayList<model.Artist> artists = new java.util.ArrayList<>(); while (cursor.hasNext()) { org.bson.Document obj = cursor.next(); model.Artist artist = new model.Artist...
public void run() { org.eclipse.ui.IWorkbenchWindow w = org.eclipse.ui.PlatformUI.getWorkbench().getActiveWorkbenchWindow(); if (w == null) { org.eclipse.ui.IWorkbenchWindow[] windows = org.eclipse.ui.PlatformUI.getWorkbench().getWorkbenchWindows(); if ((windows.length) > 0) w = wind...
public void run() { org.eclipse.ui.IWorkbenchWindow w = org.eclipse.ui.PlatformUI.getWorkbench().getActiveWorkbenchWindow(); if (w == null) { org.eclipse.ui.IWorkbenchWindow[] windows = org.eclipse.ui.PlatformUI.getWorkbench().getWorkbenchWindows(); if ((windows.length) > 0) { w = wi...
public boolean loginUser(java.lang.String username, java.lang.String password) throws client.networking.ServerProxyException { java.lang.String postData = serializer.sCredentials(username, password); java.lang.String urlPath = "/user/login"; try { java.lang.String response = doJSONPost(urlPath, post...
public boolean loginUser(java.lang.String username, java.lang.String password) throws client.networking.ServerProxyException { java.lang.String postData = serializer.sCredentials(username, password); java.lang.String urlPath = "/user/login"; try { doJSONPost(urlPath, postData, true, false); } ca...
private static java.lang.String getSupplicantStateString() { android.net.wifi.SupplicantState sstate = org.wahtod.wififixer.WFConnection.getSupplicantState(); if (sstate.equals(SupplicantState.COMPLETED)) return org.wahtod.wififixer.WFConnection.CONNECTED; else if (sstate.equals(SupplicantSt...
private static java.lang.String getSupplicantStateString(final android.net.wifi.SupplicantState sstate) { if (sstate.equals(SupplicantState.COMPLETED)) return org.wahtod.wififixer.WFConnection.CONNECTED; else if (sstate.equals(SupplicantState.DORMANT)) return org.wahtod.wififixer.WFC...
public void refresh(java.util.Collection<java.lang.String> indices) { io.searchbox.client.JestResult result = execute(new io.searchbox.indices.Refresh.Builder().addIndex(indices).refresh(true).build()); if (!(result.isSucceeded())) { log.warn(((("Unable to refresh indices " + indices) + ": ") + (result....
public void refresh(java.util.Collection<java.lang.String> indices) { io.searchbox.client.JestResult result = execute(new io.searchbox.indices.Refresh.Builder().addIndex(indices).build()); if (!(result.isSucceeded())) { log.warn(((("Unable to refresh indices " + indices) + ": ") + (result.getErrorMessag...
public void writeWeakWrapperTo(javax.annotation.processing.Filer filer) throws java.io.IOException { com.stefandekanski.weakwrap.processor.MethodSpec constructor = createConstructor(originalClassName); com.stefandekanski.weakwrap.processor.FieldSpec weakWrapField = createWeakWrapField(originalClassName); ja...
public void writeWeakWrapperTo(javax.annotation.processing.Filer filer) throws java.io.IOException { com.stefandekanski.weakwrap.processor.MethodSpec constructor = createConstructor(); com.stefandekanski.weakwrap.processor.FieldSpec weakWrapField = createWeakWrapField(); java.util.List<com.stefandekanski.we...
private void doStart(java.lang.String action) { android.app.Activity activity = cordova.getActivity(); android.content.Intent serviceIntent = new android.content.Intent(activity, com.urbanairship.cordova.gimbal.GimbalAdapterService.class); if (action != null) { serviceIntent.setAction(action); }...
private void doStart(java.lang.String action) { android.app.Activity activity = cordova.getActivity(); android.content.Intent serviceIntent = new android.content.Intent(activity, com.urbanairship.cordova.gimbal.GimbalAdapterService.class); if (action != null) { serviceIntent.setAction(action); }...
private void runPlayer(rproject.engine.Player player) { rproject.io.Output.write("***** "); rproject.io.Output.write(player.getName()); rproject.io.Output.writeln(" ******"); fire(); currentPlayer = player; currentPhase = "Spawn Phase"; spawnPhase(player); currentPhase = "Attack Phase"; ...
private void runPlayer(rproject.engine.Player player) { rproject.io.Output.write("***** "); rproject.io.Output.write(player.getName()); rproject.io.Output.writeln(" ******"); currentPlayer = player; fire(); currentPhase = "Spawn Phase"; spawnPhase(player); currentPhase = "Attack Phase"; ...
private void calculateDistance(com.tagdish.domain.dto.TagDishInputDTO tagDishInputDTO, com.tagdish.domain.location.Location location, com.tagdish.domain.dto.RestaurantDishDTO restaurantDishDTO) throws com.tagdish.exception.BizServiceException { double distance; distance = -1; java.lang.System.out.println(("...
private void calculateDistance(com.tagdish.domain.dto.TagDishInputDTO tagDishInputDTO, com.tagdish.domain.location.Location location, com.tagdish.domain.dto.RestaurantDishDTO restaurantDishDTO) throws com.tagdish.exception.BizServiceException { double distance; distance = -1; if ((calculateDistanceFlag) && ...
public void setVoteSet(java.util.Set<Node> vs) { for (Node n : vs) { voteSet.put(n.getId(), n); } this.timeout = (((voteSet.size()) - 1) * (cs_int)) * 1000; }
public void setVoteSet(java.util.Set<Node> vs) { for (Node n : vs) { voteSet.put(n.getId(), n); } this.timeout = ((voteSet.size()) - 1) * (cs_int); }
public void init(Node source, DistanceVector vector) { for (java.lang.Long i = 1L; i <= (nodes.size()); i++) { DistanceElement element = new DistanceElement(i); if ((element.getId()) == (source.getId())) { element.changeDistance(0.0); } vector.addElement(element); } }
public void init(Node source, DistanceVector vector) { for (java.lang.Long i = 1L; i <= (nodes.size()); i++) { DistanceElement element = new DistanceElement(i); if (element.getId().equals(source.getId())) { element.changeDistance(0.0); } vector.addElement(element); } ...
public int getPelletNum() { int numOfPellet = 0; for (int i = 0; i < (Board.NUMBLOCKS); i++) { for (int j = 0; j < (Board.NUMBLOCKS); j++) { if (((screenData[i][j]) & 16) != 0) numOfPellet += 1; } } return numOfPellet; }
public int getPelletNum() { int numOfPellet = 0; for (int i = 0; i < (Board.NUMBLOCKS); i++) { for (int j = 0; j < (Board.NUMBLOCKS); j++) { if (((screenData[i][j]) & 16) != 0) numOfPellet++; } } return numOfPellet; }
public void testGetStoresByProductId_POST_ShouldReturnViewName() throws java.lang.Exception { when(userService.getCurrentUser()).thenReturn(user); mockMvc.perform(org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post("/product/stores").param("productId", "1").sessionAttr("storesInProduct", ne...
public void testGetStoresByProductId_POST_ShouldReturnViewName() throws java.lang.Exception { mockMvc.perform(org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post("/product/stores").param("productId", "1").sessionAttr("storesInProduct", new com.softserve.if072.mvcapp.dto.StoresInProduct())).andE...
public final void setName(final java.lang.String name) throws wolf.mindset.ObjectAlreadyExistsException { for (final wolf.mindset.MindsetObject object : wolf.mindset.MindsetObject.ALL_OBJECTS) if ((object.getType().equals(getType())) && (object.name.get().equals(name))) throw new wolf.mindset.Ob...
public final void setName(final java.lang.String name) throws wolf.mindset.ObjectAlreadyExistsException { for (final wolf.mindset.MindsetObject object : wolf.mindset.MindsetObject.ALL_OBJECTS) if (((object != (this)) && (object.getType().equals(getType()))) && (object.name.get().equals(name))) t...
public void unlink(java.lang.String filepath, com.facebook.react.bridge.Promise promise) { try { java.io.File file = new java.io.File(filepath); if (!(file.exists())) throw new java.lang.Exception("File does not exist"); DeleteRecursive(file); promise.resolve(nul...
public void unlink(java.lang.String filePath, com.facebook.react.bridge.Promise promise) { try { java.io.File file = new java.io.File(filePath); if (!(file.exists())) throw new java.lang.Exception("File does not exist"); DeleteRecursive(file); promise.resolve(nul...
private static java.lang.String getUnit(java.lang.String text) { switch (text.trim().toLowerCase()) { case "days" : case "day" : return "day:"; case "months" : case "month" : return "month:"; case "years" : case "year" : return "yea...
private static java.lang.String getUnit(java.lang.String text) { switch (text.trim().toLowerCase()) { case "days" : case "day" : return "day"; case "months" : case "month" : return "month"; case "years" : case "year" : return "year"...
public int randomPlayer() { int rtn = 0; rtn = ((int) ((java.lang.Math.random()) * (GoFish.players.length))); if (rtn == (player)) { return randomPlayer(); }else if ((GoFish.players[rtn].hand.size()) == 0) { return player; }else { return rtn; } ...
public int randomPlayer() { int rtn = 0; rtn = ((int) ((java.lang.Math.random()) * (GoFish.players.length))); if (rtn == (player)) { return randomPlayer(); }else if ((GoFish.players[rtn].hand.size()) == 0) { return randomPlayer(); }else { return rtn; ...
public long levelWon(int winLevel) { long customWinTime = 1000 * (winLevel + 3); if (customWinTime > 10000) { customWinTime = 10000; } long timeLeft = (com.Norvan.LockPick.TimeTrialMode.TimingHandler.startTime) - ((getCurrentTime()) - (chronoTimer.getBase())); long levelTime = (levelStartTim...
public long levelWon(int winLevel) { long customWinTime = 1000 * (winLevel + 3); if (customWinTime > 10000) { customWinTime = 10000; } long timeLeft = (com.Norvan.LockPick.TimeTrialMode.TimingHandler.startTime) - ((getCurrentTime()) - (chronoTimer.getBase())); long levelTime = (levelStartTim...
public void handleChangeStorageFilePathEvent(seedu.task.commons.events.storage.ChangeStorageFilePathEvent event) throws java.io.IOException { seedu.task.MainApp.logger.info(seedu.task.commons.core.LogsCenter.getEventHandlingLogMessage(event)); config.setTaskManagerFilePath(event.toString()); storage.setTask...
public void handleChangeStorageFilePathEvent(seedu.task.commons.events.storage.ChangeStorageFilePathEvent event) throws java.io.IOException { seedu.task.MainApp.logger.info(seedu.task.commons.core.LogsCenter.getEventHandlingLogMessage(event)); config.setTaskManagerFilePath(event.toString()); storage.setTask...
public org.sonar.wsclient.Sonar getSonar() { java.lang.String host = txtHost.getText(); java.lang.String user = txtUser.getText(); java.lang.String password = txtPassword.getPassword().toString(); return new org.sonar.wsclient.Sonar(new org.sonar.wsclient.connectors.HttpClient4Connector(new org.sonar.ws...
public org.sonar.wsclient.Sonar getSonar() { java.lang.String host = txtHost.getText(); java.lang.String user = txtUser.getText(); java.lang.String password = new java.lang.String(txtPassword.getPassword()); return new org.sonar.wsclient.Sonar(new org.sonar.wsclient.connectors.HttpClient4Connector(new o...
public void testEditJobDetails() { testLoginAsManager(); inputHelper("2"); next(); inputHelper("1"); next(); inputHelper("1"); next(); inputHelper("1"); next(); inputHelper("newJobName"); next(); inputHelper("4"); next(); java.util.List<java.lang.String> jobs = ct...
public void testEditJobDetails() { testLoginAsManager(); inputHelper("2"); next(); inputHelper("2"); next(); inputHelper("1"); next(); inputHelper("1"); next(); inputHelper("newJobName"); next(); inputHelper("4"); next(); java.util.List<java.lang.String> jobs = ct...
public static com.hazelcast.jet.function.DistributedSupplier<com.hazelcast.jet.Processor> streamKafka(java.util.Properties properties, java.lang.String... topics) { com.hazelcast.util.Preconditions.checkPositive(topics.length, "At least one topic must be supplied"); com.hazelcast.util.Preconditions.checkTrue(pr...
public static com.hazelcast.jet.function.DistributedSupplier<com.hazelcast.jet.Processor> streamKafka(java.util.Properties properties, java.lang.String... topics) { com.hazelcast.util.Preconditions.checkPositive(topics.length, "At least one topic must be supplied"); com.hazelcast.util.Preconditions.checkTrue(pr...
public java.util.List<org.jevis.api.JEVisRelationship> getRelationships() throws org.jevis.api.JEVisException { if ((relationships) == null) { relationships = new java.util.ArrayList<>(); for (org.jevis.commons.ws.json.JsonRelationship rel : json.getRelationships()) { try { ...
public java.util.List<org.jevis.api.JEVisRelationship> getRelationships() throws org.jevis.api.JEVisException { if ((relationships) == null) { relationships = new java.util.ArrayList<>(); for (org.jevis.commons.ws.json.JsonRelationship rel : json.getRelationships()) { try { ...
public void minimize(com.intellij.ui.content.Content[] contents) { if ((contents.length) == 0) return ; myContext.saveUiState(); for (final com.intellij.ui.content.Content each : contents) { myMinimizedContents.add(each); remove(each); boolean isShowing = (myTabs.getComp...
public void minimize(com.intellij.ui.content.Content[] contents) { if ((contents.length) == 0) return ; myContext.saveUiState(); for (final com.intellij.ui.content.Content each : contents) { myContainer.minimize(each, new com.intellij.execution.ui.layout.impl.CellTransform.Restore() { ...
public void testInlineCountNone() throws java.lang.Exception { org.mockito.Mockito.when(view.getInlineCount()).thenReturn(InlineCount.NONE); org.apache.olingo.odata2.core.ep.AtomEntityProvider ser = createAtomEntityProvider(); org.apache.olingo.odata2.api.ep.EntityProviderWriteProperties properties = org.ap...
public void testInlineCountNone() throws java.lang.Exception { org.mockito.Mockito.when(view.getInlineCount()).thenReturn(InlineCount.NONE); org.apache.olingo.odata2.core.ep.AtomEntityProvider ser = createAtomEntityProvider(); org.apache.olingo.odata2.api.ep.EntityProviderWriteProperties properties = org.ap...
private java.util.ArrayList<java.lang.Object> getAllObjectsAbove(com.climber.Quadtree.Node n) { if (n == null) return new java.util.ArrayList<java.lang.Object>(); if ((n.m_parent) == null) { return n.m_objects; } java.util.ArrayList<java.lang.Object> list = new java.util.ArrayList<j...
private java.util.ArrayList<java.lang.Object> getAllObjectsAbove(com.climber.Quadtree.Node n) { if (n == null) return new java.util.ArrayList<java.lang.Object>(); java.util.ArrayList<java.lang.Object> a = new java.util.ArrayList<java.lang.Object>(); a.addAll(n.m_objects); if ((n.m_parent) =...
private void initialization() { paperInit(); setContentView(R.layout.activity_start_screen); findViewById(R.id.fullscreen_content_controls).setVisibility(View.VISIBLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); com.captainhampton.an...
private void initialization() { setContentView(R.layout.activity_start_screen); findViewById(R.id.fullscreen_content_controls).setVisibility(View.VISIBLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); com.captainhampton.android.lightsout.L...
public net.minecraft.item.ItemStack getStackInSlot(int slot) { if (useBindings) { if (((slot >= 0) && (slot < 9)) && ((bindings[slot]) >= 0)) { return inputInv.getStackInSlot(bindings[slot]); }else { return null; } } return super.getStackInSlot(slot); }
public net.minecraft.item.ItemStack getStackInSlot(int slot) { if (useBindings) { if (((slot >= 0) && (slot < 9)) && ((bindings[slot]) >= 0)) { return inputInv.getStackInSlot(bindings[slot]); }else { return null; } }else { return super.getStackInSlot(slot)...
private void watchLocal(java.lang.String key, com.yaconfig.client.WatcherListener... listeners) { if (watchers.containsKey(key)) { watchers.get(key).addListeners(listeners); }else { com.yaconfig.client.Watcher watcher = new com.yaconfig.client.Watcher(key, channel); watcher.addListeners(...
public boolean watchLocal(java.lang.String key, com.yaconfig.client.WatcherListener... listeners) { if (watchers.containsKey(key)) { watchers.get(key).addListeners(listeners); return false; }else { com.yaconfig.client.Watcher watcher = new com.yaconfig.client.Watcher(key, channel); ...
protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { request.setAttribute("livreur", this.livreurService.find(((java.lang.String) (request.getParameter("id"))))); if ((request.getParamete...
protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { request.setAttribute("livreur", this.livreurService.find(java.lang.Integer.parseInt(request.getParameter("id")))); if ((request.getPar...
private void ensureOutputExists() { java.io.File outputFile = new java.io.File(outputDirectory); if (!(outputFile.exists())) { if (!(outputFile.mkdirs())) { log(("Can't create " + (outputFile.getPath())), Project.MSG_ERR); } } }
private void ensureOutputExists(java.io.File outputFile) { if (!(outputFile.exists())) { if (!(outputFile.mkdirs())) { log(("Can't create " + (outputFile.getPath())), Project.MSG_ERR); } } }
public void readEdgeTest() { org.s1ck.gdl.GDLLoader loader = getLoaderFromGDLString("()-->()"); validateCollectionSizes(loader, 0, 2, 1); validateCacheSizes(loader, 0, 2, 1); java.util.Optional<org.s1ck.gdl.model.Edge> edge = loader.getEdges().stream().findFirst(); assertTrue(edge.isPresent()); ...
public void readEdgeTest() { org.s1ck.gdl.GDLLoader loader = getLoaderFromGDLString("()-->()"); validateCollectionSizes(loader, 0, 2, 1); validateCacheSizes(loader, 0, 0, 0); java.util.Optional<org.s1ck.gdl.model.Edge> edge = loader.getEdges().stream().findFirst(); assertTrue(edge.isPresent()); ...
private void equipItem(java.awt.event.MouseEvent e) { model.Point pointOfSlot = this.getInventorySlot(e); model.TakeableItem item = inventory.getInventory().getSlot(pointOfSlot).unequip(); item.action(avatar); equipment.repaint(); }
private void equipItem(java.awt.event.MouseEvent e) { model.Point pointOfSlot = this.getInventorySlot(e); model.TakeableItem item = inventory.getInventory().getSlot(pointOfSlot).unequip(); if (item != null) { item.action(avatar); equipment.repaint(); } }
public float establishNeuronOutputFromConnections() { if (harlequinmettle.investmentadviserengine.neuralnet.artificailneuralnet.ArtificailNeuralNet.debugMethodsWithReflection) harlequinmettle.utils.reflection.RuntimeDetails.getPrintMethodInfo(); if (isInputNeuron) { output = input; ...
public float establishNeuronOutputFromConnections() { if (isInputNeuron) { output = input; return output; } if (isBiasNeuron) { derivative = 1; return (harlequinmettle.investmentadviserengine.neuralnet.ArtificialNeuron.one) * (biasNeuronWeight.weight); } float sum = 0...
public void onUnRegisterStatus(final android.content.Context context, com.meizu.cloud.pushsdk.platform.message.UnRegisterStatus unRegisterStatus) { com.jiang.android.push.utils.L.i("onUnRegisterStatus"); if ((com.jiang.android.push.flyme.FlymeReceiver.mPushInterface) != null) { com.jiang.android.push.ut...
public void onUnRegisterStatus(final android.content.Context context, com.meizu.cloud.pushsdk.platform.message.UnRegisterStatus unRegisterStatus) { com.jiang.android.push.utils.L.i("onUnRegisterStatus"); if ((com.jiang.android.push.flyme.FlymeReceiver.mPushInterface) != null) { com.jiang.android.push.ut...
private java.util.TreeMap<java.lang.Integer, java.lang.String> validateGroups(java.util.TreeMap<java.lang.Integer, java.lang.String> groups) { java.util.ArrayList<java.lang.Integer> toRemove = new java.util.ArrayList<java.lang.Integer>(); for (int key : groups.keySet()) { if (groups.get(key).matches("(\...
public java.util.TreeMap<java.lang.Integer, java.lang.String> validateGroups(java.util.TreeMap<java.lang.Integer, java.lang.String> groups) { java.util.ArrayList<java.lang.Integer> toRemove = new java.util.ArrayList<java.lang.Integer>(); for (int key : groups.keySet()) { if (groups.get(key).matches("(\\...
public static com.puppycrawl.tools.checkstyle.api.JavadocTagInfo fromName(final java.lang.String name) { if (name == null) { throw new java.lang.NullPointerException("the name is null"); } final com.puppycrawl.tools.checkstyle.api.JavadocTagInfo tag = com.puppycrawl.tools.checkstyle.api.JavadocTagIn...
public static com.puppycrawl.tools.checkstyle.api.JavadocTagInfo fromName(final java.lang.String name) { if (name == null) { throw new java.lang.IllegalArgumentException("the name is null"); } final com.puppycrawl.tools.checkstyle.api.JavadocTagInfo tag = com.puppycrawl.tools.checkstyle.api.JavadocT...
public static boolean isOnRight(org.opencv.core.Point[] points) { if ((points[0].y) > (points[1].y)) { return (points[0].x) < (points[1].x); } return false; }
public static boolean isOnRight(org.opencv.core.Point[] points) { if ((points[0].y) > (points[1].y)) { return (points[0].x) < (points[1].x); } return (points[0].x) > (points[1].x); }
private void loadSpinnerData() { users = com.scottcrocker.packify.MainActivity.db.getAllUsers(); android.widget.ArrayAdapter<com.scottcrocker.packify.model.User> dataAdapter = new android.widget.ArrayAdapter(this, android.R.layout.simple_spinner_item, users); dataAdapter.setDropDownViewResource(android.R.la...
private void loadSpinnerData() { users = com.scottcrocker.packify.MainActivity.db.getAllUsers(); dataAdapter = new android.widget.ArrayAdapter(this, android.R.layout.simple_spinner_item, users); dataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); mSpinner.setPrompt("Välj ...
public final boolean remove(final java.lang.Object o) { com.github.veqryn.collect.Node<K, V> node = null; final java.util.Iterator<com.github.veqryn.collect.Node<K, V>> iter = new NodePrefixSubMapIterator(key, includePrefixOfKey, keyInclusive, includePrefixedByKey, canBeEmpty); while (iter.hasNext()) { ...
public final boolean remove(final java.lang.Object o) { com.github.veqryn.collect.Node<K, V> node = null; final java.util.Iterator<com.github.veqryn.collect.Node<K, V>> iter = new NodePrefixSubMapIterator(key, includePrefixOfKey, keyInclusive, includePrefixedByKey, canBeEmpty); while (iter.hasNext()) { ...
public void unBindPhone(int type) { java.util.List<java.lang.String> accounts = com.dpower.function.DPFunction.getAccountByPhoneType(type); for (java.lang.String account : accounts) { java.lang.String msg_body = com.dpower.cloudintercom.CloudIntercom.getRoomInfo(); com.dpower.dpsiplib.service.DP...
public void unBindPhone(java.lang.String type) { java.util.List<java.lang.String> accounts = com.dpower.function.DPFunction.getAccountByPhoneType(type); for (java.lang.String account : accounts) { java.lang.String msg_body = com.dpower.cloudintercom.CloudIntercom.getRoomInfo(); com.dpower.dpsipl...
private java.lang.String determineTimeSegment(java.lang.String content) { int timeIndex = getStartingIndexOfIdentifier(content); int priorityIndex = getStartingIndexOfPriority(content); java.lang.String timeSegment = EMPTY_STRING; if (priorityIndex == (main.java.parser.AddCommandParser.FIELD_NOT_EXIST))...
private java.lang.String determineTimeSegment(java.lang.String content) { int timeIndex = getStartingIndexOfIdentifier(content); int priorityIndex = getStartingIndexOfPriority(content); java.lang.String timeSegment; if (timeIndex == (-1)) { timeSegment = EMPTY_STRING; }else if (prior...
protected void testUsage(java.util.List<ca.uhn.hl7v2.validation.ValidationException> exList, java.lang.String encoded, org.openehealth.ipf.gazelle.validation.core.UsageInfo usage) { if (usage.required()) { org.openehealth.ipf.gazelle.validation.core.util.ProfileAssertions.profileViolatedWhen(((encoded.lengt...
protected void testUsage(java.util.List<ca.uhn.hl7v2.validation.ValidationException> exList, java.lang.String encoded, org.openehealth.ipf.gazelle.validation.core.UsageInfo usage) { if (usage.required()) { org.openehealth.ipf.gazelle.validation.core.util.ProfileAssertions.profileViolatedWhen(encoded.isEmpty...
public void validate(java.lang.Object o, org.springframework.validation.Errors errors) { ua.com.javer.flowerexpert.entity.UserChoice userChoice = ((ua.com.javer.flowerexpert.entity.UserChoice) (o)); if ((userChoice.getLowPrice().getPriceCents()) < (50 * 100)) { errors.rejectValue("lowPrice", "lowPrice")...
public void validate(java.lang.Object o, org.springframework.validation.Errors errors) { ua.com.javer.flowerexpert.entity.UserChoice userChoice = ((ua.com.javer.flowerexpert.entity.UserChoice) (o)); if ((userChoice.getLowPrice().getPriceCents()) < (50 * 100)) { errors.rejectValue("lowPrice", "lowPrice")...
protected void onPreExecute() { super.onPreExecute(); this.isFinish = false; if (com.ryan.apihandler.utils.Utils.isNetworkOK(activity)) { if (isShowDialog) dialog.show(); listener.onPrepare(); }else { if (isShowDialog) com.ryan.apihandler.utils.Ut...
protected void onPreExecute() { super.onPreExecute(); this.isFinish = false; if (isShowDialog) { if (com.ryan.apihandler.utils.Utils.isNetworkOK(activity)) { dialog.show(); listener.onPrepare(); }else { com.ryan.apihandler.utils.Utils.showNoNetDialog(activ...
public void onClick(android.view.View v) { if ((tk.lefourretoutsonore.lefourre_toutsonore.DataHolder.getInstance().getPlaylist().getSongIndex()) >= 0) { playing = true; findViewById(R.id.control).setBackgroundResource(R.drawable.pause); tk.lefourretoutsonore.lefourre_toutsonore.DataHolder.ge...
public void onClick(android.view.View v) { if ((tk.lefourretoutsonore.lefourre_toutsonore.DataHolder.getInstance().getPlaylist().getSongIndex()) > 0) { playing = true; findViewById(R.id.control).setBackgroundResource(R.drawable.pause); tk.lefourretoutsonore.lefourre_toutsonore.DataHolder.get...
public java.lang.String[] getImportedConfigs(java.lang.String[] exporterSupportedConfigs) { java.lang.String method = "getImportedConfigs"; org.eclipse.ecf.core.util.Trace.entering(ECFPlugin.PLUGIN_ID, ECFDebugOptions.METHODS_ENTERING, this.getClass(), method); if (exporterSupportedConfigs == null) ...
public java.lang.String[] getImportedConfigs(java.lang.String[] exporterSupportedConfigs) { if (exporterSupportedConfigs == null) return null; try { org.eclipse.ecf.core.provider.IContainerInstantiator ci = getInstantiator(); return ci instanceof org.eclipse.ecf.core.provider.IRemot...
private boolean isInWhileOrFor(VC.Checker.AST currentParent) { boolean isFound = false; while (true) { if ((currentParent instanceof VC.Checker.WhileStmt) || (currentParent instanceof VC.Checker.ForStmt)) { isFound = true; break; }else { currentParent = curren...
private boolean isInWhileOrFor(VC.Checker.AST currentParent) { if (currentParent == null) { return false; } boolean isFound = false; while (true) { if ((currentParent instanceof VC.Checker.WhileStmt) || (currentParent instanceof VC.Checker.ForStmt)) { isFound = true; ...
private io.reactivex.Observable<zlc.season.rxdownload.entity.DownloadStatus> rangeSave(final long start, final long end, final int i, final okhttp3.ResponseBody response) { return io.reactivex.Flowable.create(new io.reactivex.FlowableOnSubscribe<zlc.season.rxdownload.entity.DownloadStatus>() { @java.lang.Ov...
private io.reactivex.Flowable<zlc.season.rxdownload.entity.DownloadStatus> rangeSave(final long start, final long end, final int i, final okhttp3.ResponseBody response) { return io.reactivex.Flowable.create(new io.reactivex.FlowableOnSubscribe<zlc.season.rxdownload.entity.DownloadStatus>() { @java.lang.Over...
public void reverse() { for (n = 0; (n) < ((_players.size()) - 1); (n)++) { _players.add(0, _players.remove(((n) + 1))); } }
public void reverse() { for (int n = 0; n < ((_players.size()) - 1); n++) { _players.add(0, _players.remove((n + 1))); } }
private static boolean isCustomAnnotation(java.lang.annotation.Annotation annotation) { java.lang.Class annotationType = annotation.annotationType(); boolean isCustom = com.univocity.parsers.annotations.helpers.AnnotationHelper.customAnnotationTypes.contains(annotationType); if (isCustom) { return f...
private static boolean isCustomAnnotation(java.lang.annotation.Annotation annotation) { java.lang.Class annotationType = annotation.annotationType(); if (com.univocity.parsers.annotations.helpers.AnnotationHelper.customAnnotationTypes.contains(annotationType)) { return true; } if (com.univocity....
public boolean insert(java.lang.Integer key) { ret = true; if (key == null) { return false; } if ((this.keys[0]) == null) this.keys[0] = key; this.insertRecursiv(key); return ret; }
public boolean insert(java.lang.Integer key) { ret = true; if (key == null) { return false; }else if ((this.keys[0]) == null) { this.keys[0] = key; return true; }else { this.insertRecursiv(key); return ret; } }
public com.hobbes.wstore.FileByteChanges insert(com.hobbes.wstore.Path dataFile, com.hobbes.wstore.Path logFile) { com.hobbes.wstore.FileByteChanges fbc = new com.hobbes.wstore.FileByteChangesDeque(fileSystem, dataFile, logFile); if ((t.size()) == (size)) { evict(); } table.put(dataFile, fbc); ...
public com.hobbes.wstore.FileByteChanges insert(com.hobbes.wstore.Path dataFile, com.hobbes.wstore.Path logFile) throws java.io.IOException { com.hobbes.wstore.FileByteChanges fbc = new com.hobbes.wstore.FileByteChanges(fileSystem, dataFile, logFile); if ((table.size()) == (size)) { evict(); } t...
public void testExpandSkipLimit() { com.orientechnologies.orient.core.sql.query.OSQLSynchQuery sql = new com.orientechnologies.orient.core.sql.query.OSQLSynchQuery("SELECT expand(linked) from ExpandSkipLimit where parent = true order by nnum skip 1 limit 1"); java.util.List<com.orientechnologies.orient.core.rec...
public void testExpandSkipLimit() { com.orientechnologies.orient.core.sql.query.OSQLSynchQuery sql = new com.orientechnologies.orient.core.sql.query.OSQLSynchQuery("SELECT expand(linked) from ExpandSkipLimit where parent = true order by nnum skip 1 limit 1"); java.util.List<com.orientechnologies.orient.core.rec...
private DecTreeNode pruneOneNode(DataSet tune, DecTreeNode internalNode, DecTreeNode bestInternalNode, double bestAccuracy) { double atn = 0; internalNode.terminal = true; if ((calculateAccuracy(tune)) > bestAccuracy) { bestInternalNode = internalNode; bestAccuracy = calculateAccuracy(tune);...
private DecTreeNode pruneOneNode(DataSet tune, DecTreeNode internalNode, DecTreeNode bestInternalNode, double bestAccuracy) { internalNode.terminal = true; if ((calculateAccuracy(tune)) > bestAccuracy) { bestInternalNode = internalNode; bestAccuracy = calculateAccuracy(tune); } internalN...
public net.minecraftforge.common.config.Property getProp(net.minecraftforge.common.config.Configuration cfg, java.lang.String category, java.lang.reflect.Field field, java.lang.Object instance, java.lang.String comment) { return cfg.get(category, field.getName(), com.google.common.primitives.Ints.toArray(scala.acto...
public net.minecraftforge.common.config.Property getProp(net.minecraftforge.common.config.Configuration cfg, java.lang.String category, java.lang.reflect.Field field, java.lang.Object instance, java.lang.String comment) { return cfg.get(category, field.getName(), com.google.common.primitives.Ints.toArray(java.util....
public boolean onEditorAction(android.widget.TextView textView, int i, android.view.KeyEvent keyEvent) { if (i == (android.view.inputmethod.EditorInfo.IME_ACTION_DONE)) { android.view.inputmethod.InputMethodManager inputMethodManager = ((android.view.inputmethod.InputMethodManager) (getActivity().getSystemS...
public boolean onEditorAction(android.widget.TextView textView, int i, android.view.KeyEvent keyEvent) { if (i == (android.view.inputmethod.EditorInfo.IME_ACTION_DONE)) { android.view.inputmethod.InputMethodManager inputMethodManager = ((android.view.inputmethod.InputMethodManager) (getActivity().getSystemS...
private java.lang.String extractAtomicSubject(java.util.List<java.lang.String> tokensList, java.util.List<java.lang.String> tagsList, int extractionEndIndex) { for (int i = extractionEndIndex; i >= 0; i--) { if ((Tags.NOUN.equals(tagsList.get(i))) || (Tags.VERB_ED.equals(tagsList.get(i)))) { ret...
private java.lang.String extractAtomicSubject(java.util.List<java.lang.String> tokensList, java.util.List<java.lang.String> tagsList, int extractionEndIndex) { for (int i = extractionEndIndex; i >= 0; i--) { if ((i != extractionEndIndex) && ((Tags.NOUN.equals(tagsList.get(i))) || (Tags.VERB_ED.equals(tagsLi...
public int popStack(int[] registers) { (registers[sos.CPU.SP])++; if (!(validMemory(((registers[sos.CPU.SP]) + (registers[sos.CPU.BASE]))))) { m_TH.interruptIllegalMemoryAccess(((registers[sos.CPU.SP]) + (registers[sos.CPU.BASE]))); } return m_RAM.read(((registers[sos.CPU.SP]) + (registers[sos.C...
public int popStack(int[] registers) { (registers[sos.CPU.SP])++; if (!(validMemory(((registers[sos.CPU.SP]) + (registers[sos.CPU.BASE])), registers))) { m_TH.interruptIllegalMemoryAccess(((registers[sos.CPU.SP]) + (registers[sos.CPU.BASE]))); } return m_RAM.read(((registers[sos.CPU.SP]) + (regi...
public void shutdown() { running = false; elkAlarmThread.interrupt(); elkAlarmThread = null; try { socket.close(); } catch (java.io.IOException e) { logger.error("Closing the socket", config.ipAddress, config.port, e); } }
public void shutdown() { running = false; elkAlarmThread.interrupt(); elkAlarmThread = null; if ((socket) != null) { try { socket.close(); socket = null; } catch (java.io.IOException e) { logger.error("Closing the socket", config.ipAddress, config.port...
public static void consumeAndDiscardMessage(org.apache.axis2.context.MessageContext msgContext) throws org.apache.axis2.AxisFault { final org.apache.synapse.transport.passthru.Pipe pipe = ((org.apache.synapse.transport.passthru.Pipe) (msgContext.getProperty(PassThroughConstants.PASS_THROUGH_PIPE))); if (pipe !=...
public static void consumeAndDiscardMessage(org.apache.axis2.context.MessageContext msgContext) throws org.apache.axis2.AxisFault { final org.apache.synapse.transport.passthru.Pipe pipe = ((org.apache.synapse.transport.passthru.Pipe) (msgContext.getProperty(PassThroughConstants.PASS_THROUGH_PIPE))); if (pipe !=...
public java.lang.Boolean getAutoFormatValue() { if ("is".equalsIgnoreCase(getOperator())) { return false; } if ("is not".equalsIgnoreCase(getOperator())) { return false; } if ("in".equalsIgnoreCase(getOperator())) { return false; } if ("not in".equalsIgnoreCase(getOpe...
public boolean getAutoFormatValue() { if ("is".equalsIgnoreCase(getOperator())) { return false; } if ("is not".equalsIgnoreCase(getOperator())) { return false; } if ("in".equalsIgnoreCase(getOperator())) { return false; } if ("not in".equalsIgnoreCase(getOperator())) ...
public void testInstanceOf_javaInstance() { java.lang.Object object = (com.google.gwt.core.client.interop.JsFunctionTest.alwaysTrue()) ? new com.google.gwt.core.client.interop.MyJsFunctionInterfaceImpl() : new java.lang.Object(); assertTrue((object instanceof com.google.gwt.core.client.interop.MyJsFunctionInter...
public void testInstanceOf_javaInstance() { java.lang.Object object = new com.google.gwt.core.client.interop.MyJsFunctionInterfaceImpl(); assertTrue((object instanceof com.google.gwt.core.client.interop.MyJsFunctionInterface)); assertTrue((object instanceof com.google.gwt.core.client.interop.MyJsFunctionInt...
public java.lang.String login(@org.springframework.web.bind.annotation.RequestParam(value = "email") java.lang.String email, @org.springframework.web.bind.annotation.RequestParam(value = "password") java.lang.String password, javax.servlet.http.HttpSession session, org.springframework.ui.Model model) { if (userServ...
public java.lang.String login(@org.springframework.web.bind.annotation.RequestParam(value = "email") java.lang.String email, @org.springframework.web.bind.annotation.RequestParam(value = "password") java.lang.String password, org.springframework.ui.Model model) { if (userService.check(email, password)) { ne...
public void setRowIndex(java.lang.Integer rowIndex) { if (((rowIndex == null) || (rowIndex < 1)) || (rowIndex > 999999)) this.rowNumber = DashboardUtils.INT_MISSING_VALUE; else this.rowNumber = new java.lang.Integer(((rowIndex.intValue()) + 1)); }
public void setRowIndex(java.lang.Integer rowIndex) { if (((rowIndex == null) || (rowIndex < 0)) || (rowIndex > 999999)) this.rowNumber = DashboardUtils.INT_MISSING_VALUE; else this.rowNumber = new java.lang.Integer(((rowIndex.intValue()) + 1)); }
public com.chrynan.androidfeedscroll.EndlessScrollAdapter.ViewHolder onCreateViewHolder(android.view.ViewGroup parent, int viewType) { if ((recyclerView) == null) { recyclerView = ((android.support.v7.widget.RecyclerView) (parent)); com.chrynan.androidfeedscroll.EndlessScrollAdapter.EndlessRecyclerO...
public com.chrynan.androidfeedscroll.EndlessScrollAdapter.ViewHolder onCreateViewHolder(android.view.ViewGroup parent, int viewType) { if ((recyclerView) == null) { recyclerView = ((android.support.v7.widget.RecyclerView) (parent)); scrollListener = new com.chrynan.androidfeedscroll.EndlessScrollAda...
private void checkOrMkFile() { try { java.lang.String fileName = getFileName(); java.io.File dataFile = new java.io.File(getPathName()); if ((!(dataFile.exists())) || (!(dataFile.isFile()))) { dataFile.createNewFile(); server.DAO.FileAccess.fileOverWrite(getPathName()...
private void checkOrMkFile() { try { java.io.File dataFile = new java.io.File(getPathName()); if ((!(dataFile.exists())) || (!(dataFile.isFile()))) { dataFile.createNewFile(); server.DAO.FileAccess.fileOverWrite(getPathName(), getBasicString()); } } catch (java.io...
public boolean isMember(long userId) { if (((this.members) == null) || ((this.members.length()) <= 0)) { return false; } java.lang.String[] membersId = this.members.split(","); for (int i = 0; i < (membersId.length); i++) { if (java.lang.String.valueOf(userId).equals(membersId)) { ...
public boolean isMember(long userId) { if (((this.members) == null) || ((this.members.length()) <= 0)) { return false; } java.lang.String[] membersId = this.members.split(","); for (int i = 0; i < (membersId.length); i++) { if (java.lang.String.valueOf(userId).equals(membersId[i])) { ...
public java.lang.Boolean isSharedStorage(java.lang.String driveletter) throws com.iwave.ext.windows.winrm.WinRMException { for (com.iwave.ext.windows.model.wmi.DiskDrive drive : getTargetSystem().listDiskDrives()) { com.iwave.ext.windows.model.Disk disk = getTargetSystem().detailDisk(drive.getNumber()); ...
public java.lang.Boolean isSharedStorage(java.lang.String driveletter) throws com.iwave.ext.windows.winrm.WinRMException { for (com.iwave.ext.windows.model.wmi.DiskDrive drive : getTargetSystem().listDiskDrives()) { com.iwave.ext.windows.model.Disk disk = getTargetSystem().detailDisk(drive.getNumber()); ...
protected void updateVisibility() { if (!(java.awt.EventQueue.isDispatchThread())) { asyncUpdateVisibility(); }else { bibliothek.gui.dock.station.StationChildHandle fullscreenHandle = fullScreenDockable; if (fullscreenHandle == null) { for (bibliothek.gui.dock.station.Station...
protected void updateVisibility() { bibliothek.gui.dock.station.StationChildHandle fullscreenHandle = fullScreenDockable; if (fullscreenHandle == null) { for (bibliothek.gui.dock.station.StationChildHandle handle : dockables) { handle.getDisplayer().getComponent().setVisible(true); }...
public java.lang.Object[] batch(java.util.List<? extends org.apache.hadoop.hbase.client.Row> actions) throws java.io.IOException { com.google.cloud.bigtable.hbase.BatchExecutor.LOG.trace("batch(List<>)"); org.apache.hadoop.hbase.client.Result[] results = new org.apache.hadoop.hbase.client.Result[actions.size()]...
public org.apache.hadoop.hbase.client.Result[] batch(java.util.List<? extends org.apache.hadoop.hbase.client.Row> actions) throws java.io.IOException { try { org.apache.hadoop.hbase.client.Result[] results = new org.apache.hadoop.hbase.client.Result[actions.size()]; batch(actions, results); ...
protected void setConnectionStatus(boolean connected, android.bluetooth.BluetoothDevice device) { if (connected) { synchronized(this) { _isConnected = true; _connectedDevice = device; } synchronized(_newConnection) { _newConnection.notifyAll(); } ...
protected void setConnectionStatus(boolean connected) { if (connected) { synchronized(this) { _isConnected = true; } synchronized(_newConnection) { _newConnection.notifyAll(); } }else { synchronized(this) { _isConnected = false; ...
public void onItemClick(ninja.amp.ampmenus.events.ItemClickEvent event) { for (tk.itstake.steakgui.itemtask.ItemTask task : TASK) { try { task.runTask(event, MENU); } catch (java.lang.Exception e) { e.printStackTrace(); } } MENU.update(event.getPlayer()); }
public void onItemClick(ninja.amp.ampmenus.events.ItemClickEvent event) { for (tk.itstake.steakgui.itemtask.ItemTask task : TASK) { try { task.runTask(event, MENU); } catch (java.lang.Exception e) { e.printStackTrace(); } } MENU.open(event.getPlayer()); }
private static java.lang.String getName(org.w3c.dom.NodeList taglist) { for (int temp = 0; temp < (taglist.getLength()); temp++) { org.w3c.dom.Node tag = taglist.item(temp); org.w3c.dom.Element eTag = ((org.w3c.dom.Element) (tag)); if ((eTag.getAttribute("k")) == "name") { return...
private static java.lang.String getName(org.w3c.dom.NodeList taglist) { for (int temp = 0; temp < (taglist.getLength()); temp++) { org.w3c.dom.Node tag = taglist.item(temp); org.w3c.dom.Element eTag = ((org.w3c.dom.Element) (tag)); if (eTag.getAttribute("k").equals("name")) { ret...
private boolean rightDirection(remote.controller.ButtonOrder b) { if (((b.floor) >= (target)) && ((direction) == 1)) return true; else if (((b.floor) <= (target)) && ((direction) == (-1))) return true; else if ((direction) == 0) { return true; ...
private boolean rightDirection(remote.controller.ButtonOrder b) { if (((b.floor) > (target)) && ((direction) == 1)) return true; else if (((b.floor) < (target)) && ((direction) == (-1))) return true; else if ((direction) == 0) { return true; ...
public void addLast(Item item) { if (item == null) throw new java.lang.NullPointerException(); Deque<Item>.Node oldLast = last; last = new Node(); last.item = item; last.previous = oldLast; if (isEmpty()) { first = last; }else { oldLast.next = last; } (n)...
public void addLast(Item item) { if (item == null) throw new java.lang.NullPointerException(); Deque<Item>.Node oldLast = last; last = new Node(); last.item = item; if (isEmpty()) { first = last; }else { last.previous = oldLast; oldLast.next = last; } ...
public void robotInit() { org.usfirst.frc.team948.robot.Robot.clock.start(); edu.wpi.cscore.UsbCamera camera = edu.wpi.first.wpilibj.CameraServer.getInstance().startAutomaticCapture(); camera.setExposureManual((-11)); camera.setResolution(640, 380); org.usfirst.frc.team948.robot.Robot.proccesor = ne...
public void robotInit() { org.usfirst.frc.team948.robot.Robot.clock.start(); edu.wpi.cscore.UsbCamera camera = edu.wpi.first.wpilibj.CameraServer.getInstance().startAutomaticCapture(); camera.setExposureManual((-11)); org.usfirst.frc.team948.robot.Robot.proccesor = new org.usfirst.frc.team948.robot.visi...
private void unfadeTour(com.uni_wuppertal.iad.vierteltour.utility.xml.Tour tour) { polylines.get(tour.slug()).color(android.graphics.Color.parseColor(tour.color())); for (com.uni_wuppertal.iad.vierteltour.utility.xml.Station station : tour.stations()) { java.lang.System.out.println("UNFADE"); ma...
private void unfadeTour(com.uni_wuppertal.iad.vierteltour.utility.xml.Tour tour) { polylines.get(tour.slug()).color(android.graphics.Color.parseColor(tour.color())); for (com.uni_wuppertal.iad.vierteltour.utility.xml.Station station : tour.stations()) { markers.get(station.slug()).alpha(1.0F); } }
private void startRecording(net.minecraft.entity.player.EntityPlayer player) { if ((this.directorBlock) == null) { return ; } net.minecraft.tileentity.TileEntity tile = player.worldObj.getTileEntity(this.directorBlock); if ((tile != null) && (tile instanceof mchorse.blockbuster.common.tileentity...
private void startRecording(net.minecraft.entity.player.EntityPlayer player) { if ((this.directorBlock) == null) { return ; } net.minecraft.tileentity.TileEntity tile = player.worldObj.getTileEntity(this.directorBlock); if ((tile != null) && (tile instanceof mchorse.blockbuster.common.tileentity...
protected java.util.Collection<java.lang.String> deserialisedBuildpackValues(java.lang.String storedValue) { java.util.Set<java.lang.String> bpVals = new java.util.LinkedHashSet<>(); if (storedValue != null) { java.lang.String[] values = storedValue.split(org.springframework.ide.eclipse.boot.dash.cloudf...
protected java.util.Collection<java.lang.String> deserialisedBuildpackValues(java.lang.String storedValue) { java.util.Set<java.lang.String> bpVals = new java.util.LinkedHashSet<>(); if (storedValue != null) { java.lang.String[] values = storedValue.split(org.springframework.ide.eclipse.boot.dash.cloudf...
private static int hashFunction(java.lang.String value, int start, int end) { int hash = 0; for (int i = start; i < end; i++) { hash = ((hash * (week7.strings.needlehaystack.NeedleHaystack.BASE)) + ((value.charAt(i)) - 'a')) % (week7.strings.needlehaystack.NeedleHaystack.MOD); } return hash; }
private static int hashFunction(java.lang.String value, int start, int end) { int hash = 0; for (int i = start; i < end; i++) { hash = ((hash * (week7.strings.needlehaystack.NeedleHaystack.BASE)) + (((value.charAt(i)) - 'a') + 1)) % (week7.strings.needlehaystack.NeedleHaystack.MOD); } return has...
public net.minecraft.item.ItemStack getStackAtNode(int i) { if ((headptr) == null) { return null; } if (i > (getSize())) { return null; } com.limplungs.blockhole.Node temp = headptr; for (int j = 1; j < i; j++) { temp = temp.next; } return temp.item; }
public net.minecraft.item.ItemStack getStackAtNode(int i) { if ((getSize()) == 0) { return null; } if (i > (getSize())) { return null; } com.limplungs.blockhole.Node temp = headptr; for (int j = 1; j < i; j++) { temp = temp.next; } return temp.item; }