buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
private void assureChecked(final org.deidentifier.arx.framework.lattice.Transformation transformation) { if (!(transformation.hasProperty(propertyChecked))) { transformation.setChecked(checker.check(transformation)); trackOptimum(transformation); listener.progress((((double) ((java.lang.Syst...
private void assureChecked(final org.deidentifier.arx.framework.lattice.Transformation transformation) { if (!(transformation.hasProperty(propertyChecked))) { transformation.setChecked(checker.check(transformation, true)); trackOptimum(transformation); listener.progress((((double) ((java.lan...
private void replaceAnnotations(java.util.Map<java.lang.String, java.lang.String> annotations, java.util.Map<java.lang.String, java.lang.String> newMapping) { for (java.lang.String annotation : annotations.keySet()) { if ((newMapping.get(annotation)) != null) { annotations.put(newMapping.get(ann...
private void replaceAnnotations(java.util.Map<java.lang.String, java.lang.String> annotations, java.util.Map<java.lang.String, java.lang.String> newMapping) { for (java.lang.String annotation : annotations.keySet()) { if ((newMapping.get(annotation)) != null) { annotations.put(newMapping.get(ann...
private void createMarker() { if ((mapIsReady) && (fetchedData)) { for (com.cs492.gpsgame.MainActivity.Position pos : positionList) { com.google.android.gms.maps.model.Marker marker = googleMap.addMarker(new com.google.android.gms.maps.model.MarkerOptions().position(new com.google.android.gms.ma...
private void createMarker() { if ((mapIsReady) && (fetchedData)) { for (com.cs492.gpsgame.MainActivity.Position pos : positionList) { com.google.android.gms.maps.model.Marker marker = googleMap.addMarker(new com.google.android.gms.maps.model.MarkerOptions().position(new com.google.android.gms.ma...
public void setCurrentCursor(android.database.Cursor cursor) { if ((cursor != null) && ((cursor.getCount()) > 0)) { currentCursor = cursor; if ((currentPage) == (com.gautamastudios.whatweather.ui.adapter.WeatherViewPageAdapter.WeatherPage.TODAY)) { updateCurrentWeather(currentViewGroup);...
public void setCurrentCursor(android.database.Cursor cursor) { if ((cursor != null) && ((cursor.getCount()) > 0)) { currentCursor = cursor; if (((currentPage) == (com.gautamastudios.whatweather.ui.adapter.WeatherViewPageAdapter.WeatherPage.TODAY)) && ((currentViewGroup) != null)) { updat...
public void reset() { plane = new wj.airwar.Plane[3]; alive = 3; for (i = 0; (i) < 10; (i)++) for (j = 0; (j) < 10; (j)++) board[i][j] = 0; }
public void reset() { int i; int j; plane = new wj.airwar.Plane[3]; alive = 3; for (i = 0; i < 10; i++) for (j = 0; j < 10; j++) board[i][j] = 0; }
private static java.lang.String intToBinaryString(int i) { int bufLen = 32; char[] buf = new char[bufLen]; int cursor = bufLen; do { buf[(--cursor)] = java.lang.Integer.DIGITS[(i & 1)]; } while ((i >>>= 1) != 0 ); return new java.lang.String(cursor, (bufLen - cursor), buf); }
private static java.lang.String intToBinaryString(int i) { int bufLen = 32; char[] buf = new char[bufLen]; int cursor = bufLen; do { buf[(--cursor)] = java.lang.Integer.DIGITS[(i & 1)]; } while ((i >>>= 1) != 0 ); return new java.lang.String(buf, cursor, (bufLen - cursor)); }
public void requestMoreBacklog(int bufferId, int amount) { android.util.Log.d("libquassel", ((("request more backlog for id " + bufferId) + ": ") + amount)); de.kuschku.libquassel.message.Message last; if ((storage.getUnfiltered(bufferId).isEmpty()) || (null == (last = storage.getUnfiltered(bufferId).last()...
public void requestMoreBacklog(int bufferId, int amount) { de.kuschku.libquassel.message.Message last; if ((storage.getUnfiltered(bufferId).isEmpty()) || (null == (last = storage.getUnfiltered(bufferId).last()))) requestBacklogInitial(bufferId, amount); else { requestBacklog(bufferId, (-1), ...
public appserver.mobileapis.controllers.MessagesController.MessageResponse messages(@org.springframework.web.bind.annotation.RequestParam(value = "applicationId", required = true) java.lang.String applicationId, @org.springframework.web.bind.annotation.RequestParam(value = "fromTime", required = true) long fromTime, or...
public appserver.mobileapis.controllers.MessagesController.MessageResponse messages(@org.springframework.web.bind.annotation.RequestParam(value = "applicationId", required = true) java.lang.String applicationId, @org.springframework.web.bind.annotation.RequestParam(value = "fromTime", required = true) long fromTime, or...
public void onClick(android.view.View v) { if (saveData(false)) { com.appers.ayvaz.thetravelingsalesman.models.ExpenseContent expenseContent = com.appers.ayvaz.thetravelingsalesman.models.ExpenseContent.get(getApplicationContext()); showPhoto(expenseContent.getPhotoFile(expense_main, false), expense...
public void onClick(android.view.View v) { if (saveData()) { com.appers.ayvaz.thetravelingsalesman.models.ExpenseContent expenseContent = com.appers.ayvaz.thetravelingsalesman.models.ExpenseContent.get(getApplicationContext()); showPhoto(expenseContent.getPhotoFile(expense_main, false), expenseConte...
private void stopNodes(java.util.ArrayList<fr.irisa.diverse.Flow.Node> nodes) { this.stop = true; for (java.lang.Thread t : running) { java.lang.System.out.println("Interrupting thread"); t.interrupt(); removeThread(t); } for (fr.irisa.diverse.Flow.Node n : nodes) { toLau...
private void stopNodes(java.util.ArrayList<fr.irisa.diverse.Flow.Node> nodes) { this.stop = true; for (java.lang.Thread t : running) { t.interrupt(); removeThread(t); } for (fr.irisa.diverse.Flow.Node n : nodes) { toLaunch.remove(n); owningWorkspace.stopNode(n); } }
public void put(long key, int val) { root = put(root, key, val); rootIsSet = true; keyColorMap.put(root, thirdparty.edu.princeton.cs.algs4.RedBlackBSTLongInt2.BLACK); if (keyParentMap.containsKey(root)) { keyParentMap.remove(key); } assert check(); }
public void put(long key, int val) { root = put(root, key, val); rootIsSet = true; keyColorMap.put(root, thirdparty.edu.princeton.cs.algs4.RedBlackBSTLongInt2.BLACK); if (keyParentMap.containsKey(root)) { keyParentMap.remove(root); } assert check(); }
public java.lang.String description() { java.lang.String end = (((((((("Lost Item: " + (this.name)) + " \n Category: ") + (this.category)) + "\n Description: ") + (this.description)) + "\n Status: ") + (this.getStatusString())) + "\n Reward: $") + (this.reward); return end; }
public java.lang.String description() { return (((((((("Lost Item: " + (this.name)) + " \n Category: ") + (this.category)) + "\n Description: ") + (this.description)) + "\n Status: ") + (this.getStatusString())) + "\n Reward: $") + (this.reward); }
public void addFirst(Item item) { if (item == null) throw new java.lang.NullPointerException(); if ((n) == (q.length)) resize((2 * (q.length))); if ((first) == 0) { first = (q.length) - 1; q[first] = item; }else q[(--(first))] = item; (n)++; }
public void addFirst(Item item) { if (item == null) throw new java.lang.NullPointerException(); if ((n) == (q.length)) resize((2 * (q.length))); if ((first) == 0) { first = q.length; } q[(--(first))] = item; (n)++; }
public void enoceanTelegram(long senderId, esp3.message.TelegramData telegram) { enocean.OceanConn.LOGGER.debug(("got telegram from " + (java.lang.Long.toString(senderId, 16)))); for (enocean.OceanDevice dev : devices) { if (((dev.node.getAttribute("sender id")) != null) && (senderId == (dev.node.getAtt...
public void enoceanTelegram(long senderId, esp3.message.TelegramData telegram) { enocean.OceanConn.LOGGER.info(("got telegram from " + (java.lang.Long.toString(senderId, 16)))); for (enocean.OceanDevice dev : devices) { if (((dev.node.getAttribute("sender id")) != null) && (senderId == (dev.node.getAttr...
protected void coalesceSameType(java.util.List<org.eclipse.scout.rt.client.ui.basic.table.TableEvent> events) { for (int j = 0; j < ((events.size()) - 1); j++) { int i = ((events.size()) - 1) - j; org.eclipse.scout.rt.client.ui.basic.table.TableEvent event = events.get(i); int type = event.g...
protected void coalesceSameType(java.util.List<org.eclipse.scout.rt.client.ui.basic.table.TableEvent> events) { for (int j = 0; j < ((events.size()) - 1); j++) { int i = ((events.size()) - 1) - j; org.eclipse.scout.rt.client.ui.basic.table.TableEvent event = events.get(i); if (isCoalesceCons...
public void setAlias(java.lang.String nickname, java.lang.String uName) { try { final codeu.chat.common.User user = codeu.chat.client.ClientUser.usersByName.get(name); if (user != null) { user.alias = nickname; codeu.chat.client.ClientUser.LOG.info("New user alias complete, N...
public void setAlias(java.lang.String nickname, java.lang.String uName) { try { final codeu.chat.common.User user = codeu.chat.client.ClientUser.usersByName.first(uName); if (user != null) { user.alias = nickname; codeu.chat.client.ClientUser.LOG.info("New user alias complete...
public void activateNextPrimaryActiveFight() { java.lang.System.out.println("Activate next primary active fight?"); com.google.common.collect.Interner<java.lang.String> interner = com.google.common.collect.Interners.newWeakInterner(); synchronized(interner.intern(getPlayerId())) { if ((getPrimaryAct...
public void activateNextPrimaryActiveFight() { com.google.common.collect.Interner<java.lang.String> interner = com.google.common.collect.Interners.newWeakInterner(); synchronized(interner.intern(getPlayerId())) { if ((getPrimaryActiveFight()) == null) { if ((activeFights.size()) > 0) { ...
public static void createTemplateFolder(final java.lang.String enterpriseRepositoryPath, final java.lang.String ovfId) { final java.lang.String packagePath = com.abiquo.am.services.TemplateConventions.getTemplatePath(enterpriseRepositoryPath, ovfId); java.io.File packFile = new java.io.File(packagePath); if...
public static void createTemplateFolder(final java.lang.String enterpriseRepositoryPath, final java.lang.String ovfId) { final java.lang.String packagePath = com.abiquo.am.services.TemplateConventions.getTemplatePath(enterpriseRepositoryPath, ovfId); java.io.File packFile = new java.io.File(packagePath); if...
public void removeImageFromDevice(java.lang.String imageFileName) { java.lang.String localFileName = getLocalImageFileName(imageFileName); java.io.File dir = android.os.Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES); java.io.File fdelete = new java.io.File(((dir + "/") + local...
public void removeImageFromDevice(java.lang.String imageFileName) { java.lang.String localFileName = getLocalImageFileName(imageFileName); java.io.File dir = android.os.Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES); java.io.File fdelete = new java.io.File(((dir + "/") + local...
public void onControlsEvent(com.kaltura.babble.player.ControlsEvent controlsEvent) { com.kaltura.babble.player.ControlsEvent.ButtonClickEvent buttonClickEvent = controlsEvent.getButtonClickEvent(); switch (buttonClickEvent) { case SELECT_TRACKS_DIALOG : mPlayerControlsView.toggleControlsVisi...
public void onControlsEvent(com.kaltura.babble.player.ControlsEvent controlsEvent) { com.kaltura.babble.player.ControlsEvent.ButtonClickEvent buttonClickEvent = controlsEvent.getButtonClickEvent(); switch (buttonClickEvent) { case SELECT_TRACKS_DIALOG : break; case BACK_BUTTON : ...
private java.lang.String getFileName(javax.ws.rs.core.MultivaluedMap<java.lang.String, java.lang.String> headers) { final java.lang.String[] parts = headers.getFirst("Content-Disposition").split(";"); for (java.lang.String filename : parts) { if (filename.trim().startsWith("filename")) { jav...
private java.lang.String getFileName(javax.ws.rs.core.MultivaluedMap<java.lang.String, java.lang.String> headers) { final java.lang.String[] parts = headers.getFirst("Content-Disposition").split(";"); for (java.lang.String filename : parts) { if (filename.trim().startsWith("filename")) { jav...
private static void upload() throws java.lang.Exception { byte[] receiveData = new byte[1024]; java.net.DatagramPacket receivePacket = new java.net.DatagramPacket(receiveData, receiveData.length); csci4311.nc.NetcatUDPServer.serverSocket.receive(receivePacket); java.lang.System.out.println(java.util.Arr...
private static void upload() throws java.lang.Exception { byte[] receiveData = new byte[1024]; java.net.DatagramPacket receivePacket = new java.net.DatagramPacket(receiveData, receiveData.length); csci4311.nc.NetcatUDPServer.serverSocket.receive(receivePacket); java.lang.System.out.println(new java.lang...
private void save() { ch.six.sixwallet.Goal i = new ch.six.sixwallet.Goal(); i.setApi(((java.lang.String) (mSpinner.getSelectedItem()))); i.setName(mName.getText().toString()); i.setPhoneNumber(mPhoneNumber.getText().toString()); java.util.ArrayList array = ch.six.sixwallet.utils.Utils.SharedPrefere...
private void save() { ch.six.sixwallet.Goal i = new ch.six.sixwallet.Goal(mName.getText().toString(), mPhoneNumber.getText().toString(), ((java.lang.String) (mSpinner.getSelectedItem()))); i.save(this); }
public void actionPerformed(final java.awt.event.ActionEvent event) { pvLoggerID = PV_LOG_CHOOSER.getPVLogId(); if ((pvLoggerID) != 0) { pvLoggerDataSource = new xal.service.pvlogger.sim.PVLoggerDataSource(pvLoggerID); MODEL.configPVLoggerData(pvLoggerDataSource, pvLoggerID, USE_PVLOGGER.isSelec...
public void actionPerformed(final java.awt.event.ActionEvent event) { if ((PV_LOG_CHOOSER.getPVLogId()) != 0) { if ((pvLoggerID) != (PV_LOG_CHOOSER.getPVLogId())) pvLoggerDataSource = new xal.service.pvlogger.sim.PVLoggerDataSource(PV_LOG_CHOOSER.getPVLogId()); MODEL.configPVLog...
public MarioAI.graph.edges.edgeCreation.Collision lowerOppositeCornerCollision(float y, int currentXPosition, MarioAI.graph.edges.edgeCreation.JumpDirection direction) { if (!(direction.isLeftType())) { currentXPosition += direction.getOppositeDirection().getHorizontalDirectionAsInt(); } if (isHitti...
public MarioAI.graph.edges.edgeCreation.Collision lowerOppositeCornerCollision(float y, int currentXPosition, MarioAI.graph.edges.edgeCreation.JumpDirection direction) { currentXPosition += direction.getOppositeDirection().getHorizontalDirectionAsInt(); if (isHittingWallOrGroundDownwards(currentXPosition, y)) {...
public static java.util.stream.Stream<com.crudui.dto.UiFormJSON> getUiFormJSONs(java.lang.String metadataLocation) { if ((com.crudui.dto.UiFormJSONSingleton.uiFormJSONs) == null) { com.fasterxml.jackson.databind.ObjectMapper mapper = new com.fasterxml.jackson.databind.ObjectMapper(); com.crudui.dto....
public static java.util.stream.Stream<com.crudui.dto.UiFormJSON> getUiFormJSONs(java.lang.String metadataLocation) { if ((com.crudui.dto.UiFormJSONSingleton.uiFormJSONs) == null) { com.fasterxml.jackson.databind.ObjectMapper mapper = new com.fasterxml.jackson.databind.ObjectMapper(); com.crudui.dto....
private void processGroundOverlays(java.util.Map<com.google.maps.android.kml.KmlGroundOverlay, java.lang.Object> groundOverlayMap, java.util.Map<java.lang.String, java.lang.String> styleMapHash, java.util.Map<java.lang.String, com.google.maps.android.kml.KmlStyle> styleHash) { for (com.google.maps.android.kml.KmlGr...
private void processGroundOverlays(java.util.Map<com.google.maps.android.kml.KmlGroundOverlay, java.lang.Object> groundOverlayMap) { for (com.google.maps.android.kml.KmlGroundOverlay groundOverlay : groundOverlayMap.keySet()) { try { mil.emp3.api.interfaces.IImageLayer imageLayer = new mil.emp3....
public <E extends io.realm.RealmModel> E createOrUpdateUsingJsonObject(java.lang.Class<E> clazz, io.realm.Realm realm, org.json.JSONObject json, boolean update) throws org.json.JSONException { checkClass(clazz); if (clazz.equals(com.example.nikolay.alarm.model.AlarmRealm.class)) { return clazz.cast(io.r...
public <E extends io.realm.RealmModel> E createOrUpdateUsingJsonObject(java.lang.Class<E> clazz, io.realm.Realm realm, org.json.JSONObject json, boolean update) throws org.json.JSONException { checkClass(clazz); if (clazz.equals(com.example.nikolay.alarm.model.Day.class)) { return clazz.cast(io.realm.io...
public void runSequentialExp() throws java.lang.Exception { java.lang.String pcapPath = "/home/vagrant/darshini/data/packet/packet_data.pcap"; java.lang.String protocolGraphStr = "graph start {\n\tethernet;\n}\ngraph ethernet {\n\tswitch(ethertype) {\n\t\tcase 0800:\t\t\t ipv4;\n\t}\n}\ngraph ipv4 {\n\tswitch(p...
public void runSequentialExp() throws java.lang.Exception { java.lang.String pcapPath = "/home/vagrant/darshini/data/packet/packet_data.pcap"; java.lang.String protocolGraphStr = "graph start {\n\tethernet;\n}\ngraph ethernet {\n\tswitch(ethertype) {\n\t\tcase 0800:\t\t\t ipv4;\n\t}\n}\ngraph ipv4 {\n\tswitch(p...
public boolean validFields() { return ((etConfirmPassword.getText().toString().equals(etPassword.getText().toString())) && ((etUsername.getText().toString().trim().length()) > 0)) && ((etPassword.getText().toString().trim().length()) > 0); }
public boolean validFields() { return ((etConfirmPassword.getText().toString().equals(etPassword.getText().toString())) && ((etUsername.getText().toString().length()) > 0)) && ((etPassword.getText().toString().length()) > 0); }
protected void createDefaultEditPolicies() { installEditPolicy(EditPolicyRoles.CREATION_ROLE, new org.eclipse.gmf.tooling.runtime.edit.policies.reparent.CreationEditPolicyWithCustomReparent(org.wso2.developerstudio.datamapper.diagram.part.DataMapperVisualIDRegistry.TYPED_INSTANCE)); super.createDefaultEditPolic...
protected void createDefaultEditPolicies() { installEditPolicy(EditPolicyRoles.CREATION_ROLE, new org.eclipse.gmf.tooling.runtime.edit.policies.reparent.CreationEditPolicyWithCustomReparent(org.wso2.developerstudio.datamapper.diagram.part.DataMapperVisualIDRegistry.TYPED_INSTANCE)); super.createDefaultEditPolic...
private static void jj_la1_init_0() { frontend.AnalizadorSintacticoTiny.jj_la1_0 = new int[]{ 1441792 , 1441792 , 1441792 , 126976 , 0 , 0 , 0 , 126976 , 27790336 , 4194304 , 0 , 27790336 , 27790336 , 0 , 0 , 0 , 0 , 3072 , 3072 , 3072 }; }
private static void jj_la1_init_0() { frontend.AnalizadorSintacticoTiny.jj_la1_0 = new int[]{ 1441792 , 1441792 , 1441792 , 126976 , 0 , 0 , 0 , 126976 , 27790336 , 4194304 , 0 , 27790336 , 27790336 , 0 , 0 , 0 , 0 , 3072 , 3072 , 3072 , 3072 }; }
public void update(java.lang.String id, ru.evgenyhodz.Store.Role value) { for (int i = 0; i < (arraySize); i++) { if ((simpleArray.get(i).getId().equals(id)) && ((simpleArray.get(i)) != null)) { this.simpleArray.update(java.lang.Integer.parseInt(simpleArray.get(i).getId()), value); } ...
public void update(java.lang.String id, ru.evgenyhodz.Store.Role value) { for (int i = 0; i < (arraySize); i++) { if ((simpleArray.get(i).getId().equals(id)) && ((simpleArray.get(i)) != null)) { this.simpleArray.update(i, value); break; } } }
public void readSemantics(java.lang.String path, util.Sentiment s) { com.google.gson.Gson gson = new com.google.gson.Gson(); try { s = gson.fromJson(new java.io.FileReader(path), util.Sentiment.class); java.lang.System.out.println("-------------"); } catch (com.google.gson.JsonIOException e)...
public util.Sentiment readSemantics(java.lang.String path) { com.google.gson.Gson gson = new com.google.gson.Gson(); util.Sentiment s = null; try { s = gson.fromJson(new java.io.FileReader(path), util.Sentiment.class); java.lang.System.out.println("-------------"); } catch (com.google.gs...
private void mapString(final de.dpa.oss.metadata.mapper.imaging.configuration.generated.IIMMapping.MapsTo mappingInfo, final java.lang.String value, final de.dpa.oss.metadata.mapper.imaging.common.ImageMetadata metadata) { if ((iimStringCharacterMapping) != null) { metadata.addIPTCEntry(mappingInfo.getField...
private void mapString(final de.dpa.oss.metadata.mapper.imaging.configuration.generated.IIMMapping.MapsTo mappingInfo, final java.lang.String value, final de.dpa.oss.metadata.mapper.imaging.common.ImageMetadata metadata) { if ((iimStringCharacterMapping) != null) { metadata.addIPTCEntry(mappingInfo.getField...
public void testProcessJmp() throws net.torocraft.minecoprocessors.util.ParseException { net.torocraft.minecoprocessors.processor.Processor processor = net.torocraft.minecoprocessors.processor.ProcessorTest.setupTest(0, 0, 0, 0, "jmp test_label"); processor.processJmp(); assertRegisters(processor, 0, 0, 0, ...
public void testProcessJmp() throws net.torocraft.minecoprocessors.util.ParseException { net.torocraft.minecoprocessors.processor.Processor processor = net.torocraft.minecoprocessors.processor.ProcessorTest.setupTest(0, 0, 0, 0, "jmp test_label"); processor.processJmp(); net.torocraft.minecoprocessors.proce...
private void broadcastMyPresence(java.lang.String id) { org.jivesoftware.smack.packet.Presence presence = createPresence(); presence.setFrom(mConnection.getUser()); android.content.Intent i = org.kontalk.service.msgcenter.PresenceListener.createIntent(this, presence); i.putExtra(org.kontalk.service.msgc...
private void broadcastMyPresence(java.lang.String id) { org.jivesoftware.smack.packet.Presence presence = createPresence(); presence.setFrom(mConnection.getUser()); android.content.Intent i = org.kontalk.service.msgcenter.PresenceListener.createIntent(this, presence, null); i.putExtra(org.kontalk.servic...
private static boolean retire(int row, int column) { if ((row == (-2)) && (column == (-2))) { java.lang.System.out.print("¿De verdad desea retirarse del juego?: "); return new java.util.Scanner(java.lang.System.in).next().equalsIgnoreCase("SI"); } return false; }
private static boolean retire(int row, int column) { if (((++row) == (-1)) && ((++column) == (-1))) { java.lang.System.out.print("¿De verdad desea retirarse del juego?: "); return new java.util.Scanner(java.lang.System.in).next().equalsIgnoreCase("SI"); } return false; }
public java.lang.String storeProperties(org.talend.components.snowflake.test.Properties properties, java.lang.String name, java.lang.String repositoryLocation, java.lang.String schemaPropertyName) { org.talend.components.snowflake.test.SnowflakeTestIT.RepoProps rp = new org.talend.components.snowflake.test.Snowflak...
public java.lang.String storeProperties(java.util.Properties properties, java.lang.String name, java.lang.String repositoryLocation, java.lang.String schemaPropertyName) { org.talend.components.snowflake.test.SnowflakeTestIT.RepoProps rp = new org.talend.components.snowflake.test.SnowflakeTestIT.RepoProps(propertie...
public void turn_around(haven.Coord tar_rc, int direction) { haven.Coord pc = player().rc; int turn_x = (pc.x) + (20 * direction); haven.Coord target_rc = new haven.Coord(turn_x, get_o_y(pc, tar_rc, turn_x)); ui.gui.map.wdgmsg("click", getCenterScreenCoord(), target_rc, 1, 0, ui.modflags()); }
public void turn_around(haven.Coord tar_rc, int direction) { haven.Coord pc = player().rc; int turn_x = (pc.x) + (20 * direction); haven.Coord target_rc = new haven.Coord(turn_x, get_o_y(pc, tar_rc, turn_x)); ui.gui.map.wdgmsg("click", getCenterScreenCoord(), target_rc, 1, 0); }
public void actionPerformed(java.awt.event.ActionEvent e) { propCalc(); repaint(); try { for (int n = 0; n < (step); n++) { outFile.println(getFactor()); } operator(); } catch (java.io.FileNotFoundException e1) { e1.printStackTrace(); } (counter)++; }
public void actionPerformed(java.awt.event.ActionEvent e) { propCalc(); repaint(); try { for (int n = 0; n < (step); n++) { outFile.println(getFactor()); } } catch (java.io.FileNotFoundException e1) { e1.printStackTrace(); } (counter)++; }
public java.util.List<java.io.File> getSelectedFiles(java.util.List<java.lang.Integer> selectedFileIndices) throws java.io.IOException { java.util.List<java.io.File> list = new java.util.ArrayList<java.io.File>(); java.util.List<java.io.File> zipFileList = getZipFileList(); for (java.lang.Integer i : select...
public java.util.List<java.io.File> getSelectedFiles(java.util.List<java.lang.Integer> selectedFileIndices) throws java.io.IOException { java.util.List<java.io.File> list = new java.util.ArrayList<java.io.File>(); for (java.lang.Integer i : selectedFileIndices) { list.add(zipFileList.get(i)); } ...
public void createFrame(frame.Frame frame, int method) { if (teachFrame.setFrame(((abs(method)) % 2))) { global.Fields.debug("Frame set: %d\n", curFrameIdx); if (frame instanceof frame.ToolFrame) { robot.RobotRun.getActiveRobot().setActiveToolFrame(curFrameIdx); global.DataMa...
public void createFrame(frame.Frame frame, int method) { if (teachFrame.setFrame(((abs(method)) % 2))) { global.Fields.debug("Frame set: %d\n", curFrameIdx); if (frame instanceof frame.ToolFrame) { activeRobot.setActiveToolFrame(curFrameIdx); global.DataManagement.saveRobotDa...
public static void PrintMasterList(java.util.ArrayList<java.util.ArrayList<Node>> masterList) { for (int i = 0; i < (masterList.size()); i++) { java.lang.System.out.print(java.lang.String.format("\nPrinting List# %d : ", i)); TestDataGenerator.PrintNodeList(masterList.get(i)); } }
public static void PrintMasterList(java.util.ArrayList<java.util.ArrayList<Node>> masterList) { if (masterList == null) { return ; } for (int i = 0; i < (masterList.size()); i++) { java.lang.System.out.print(java.lang.String.format("\nPrinting List# %d : ", i)); TestDataGenerator.Pr...
private boolean computeNextFromSourceAndFilter() { while (source.hasNext()) { long value = source.next(); if ((!(removedElements.contains(value))) && (!(addedElements.contains(value)))) { java.lang.System.out.println(("RETURNING A NODE FROM store, id is " + value)); return ne...
private boolean computeNextFromSourceAndFilter() { while (source.hasNext()) { long value = source.next(); if ((!(removedElements.contains(value))) && (!(addedElements.contains(value)))) { return next(value); } } transitionToAddedElements(); return phase.fetchNext(thi...
public void run() { while (true) { try { inputStream = socket.getInputStream(); dataInputStream = new java.io.DataInputStream(inputStream); java.lang.System.out.println("InSignalreciver before accept"); org.json.JSONObject acceptObject = new org.json.JSONObjec...
public void run() { try { inputStream = socket.getInputStream(); dataInputStream = new java.io.DataInputStream(inputStream); java.lang.System.out.println("InSignalreciver before accept"); org.json.JSONObject acceptObject = new org.json.JSONObject(dataInputStream.readUTF()); j...
protected void normalizeIndividualConstraints() throws net.instant.plugins.PluginConflictException { for (net.instant.plugins.Plugin p : getAll()) { for (net.instant.plugins.Plugin q : getAll()) { net.instant.plugins.Constraint pq = p.getConstraint(q); net.instant.plugins.Constraint ...
protected void normalizeIndividualConstraints() throws net.instant.plugins.PluginConflictException { for (net.instant.plugins.Plugin p : getAll()) { for (net.instant.plugins.Plugin q : getAll()) { net.instant.plugins.Constraint pq = p.getConstraint(q); net.instant.plugins.Constraint ...
public void updateEntryTest() throws seedu.multitasky.model.entry.exceptions.DuplicateEntryException, seedu.multitasky.model.entry.exceptions.EntryNotFoundException { seedu.multitasky.model.entry.EventList eventListToTest = createEventList1(); try { eventListToTest.updateEntry(seedu.multitasky.model.ent...
public void updateEntryTest() throws seedu.multitasky.model.entry.exceptions.DuplicateEntryException, seedu.multitasky.model.entry.exceptions.EntryNotFoundException { seedu.multitasky.model.entry.EventList eventListToTest = createEventList1(); try { eventListToTest.updateEntry(seedu.multitasky.model.ent...
public synchronized void write(java.lang.String file, byte[] data) throws java.io.IOException { java.lang.String s = new java.lang.String(data); java.io.BufferedWriter w = new java.io.BufferedWriter(new java.io.FileWriter(file, true)); w.write(s); w.close(); }
public synchronized void write(java.io.File file, byte[] data) throws java.io.IOException { java.lang.String s = new java.lang.String(data); java.io.BufferedWriter w = new java.io.BufferedWriter(new java.io.FileWriter(file, true)); w.write(s); w.close(); }
public int read(byte[] buf) { int i; int len; byte[] rbuf = new byte[64]; if ((buf.length) > 64) { return -1; } len = mDeviceConnection.bulkTransfer(mFTDIEndpointIN, rbuf, 64, 0); for (i = 0; i < len; ++i) { buf[i] = rbuf[(i + 2)]; } return len - 2; }
public int read(byte[] buf) { int i; int len; byte[] rbuf = new byte[64]; if ((buf.length) > 64) { return -1; } len = mDeviceConnection.bulkTransfer(mFTDIEndpointIN, rbuf, buf.length, 0); for (i = 0; i < (len - 2); ++i) { buf[i] = rbuf[(i + 2)]; } return len - 2; }
public java.lang.Void call() throws org.rocksdb.RocksDBException { final org.rocksdb.WriteBatch wb = new org.rocksdb.WriteBatch(); try (final org.rocksdb.WriteBatch wb = new org.rocksdb.WriteBatch();final org.rocksdb.WriteOptions w_opt = new org.rocksdb.WriteOptions()) { for (int i = offset; i < (offset...
public java.lang.Void call() throws org.rocksdb.RocksDBException { try (final org.rocksdb.WriteBatch wb = new org.rocksdb.WriteBatch();final org.rocksdb.WriteOptions w_opt = new org.rocksdb.WriteOptions()) { for (int i = offset; i < (offset + 100); i++) { wb.put(java.nio.ByteBuffer.allocate(4).p...
public java.lang.String lastPosition() throws net.sf.jabb.dstream.ex.DataStreamInfrastructureException { try { java.lang.String firstPositionAfterNow = firstPosition(java.time.Instant.now(), java.time.Duration.ofMillis(1)); if (firstPositionAfterNow == null) { return java.lang.String.val...
public java.lang.String lastPosition() throws net.sf.jabb.dstream.ex.DataStreamInfrastructureException { try { java.lang.String firstPositionAfterNow = firstPosition(java.time.Instant.now(), java.time.Duration.ofMillis(1)); if (firstPositionAfterNow == null) { return java.lang.String.val...
public jenkins.security.plugins.ldap.LDAPConfiguration getConfigurationFor(java.lang.String configurationId) { for (jenkins.security.plugins.ldap.LDAPConfiguration configuration : configurations) { if (configuration.isConfiguration(configurationId)) { return configuration; } } if...
public jenkins.security.plugins.ldap.LDAPConfiguration getConfigurationFor(java.lang.String configurationId) { if ((configurations) != null) { for (jenkins.security.plugins.ldap.LDAPConfiguration configuration : configurations) { if (configuration.isConfiguration(configurationId)) { ...
public java.lang.String getPostalCode() { if (mCountryCode.equals("CA")) { return ((mPostalCode.substring(0, 3)) + " ") + (mPostalCode.substring(3, 6)); }else { return mPostalCode; } }
public java.lang.String getPostalCode() { if ("CA".equals(mCountryCode)) { return ((mPostalCode.substring(0, 3)) + " ") + (mPostalCode.substring(3, 6)); }else { return mPostalCode; } }
private void removeCube(java.lang.String name) { java.lang.System.out.println(name); if (!("the Floor".equals(name))) { mundo.detachChildNamed(name); (highScore)++; (timeLeft)++; playMusic(); CubeNames.remove(name); if ((CubeNames.size()) < 1) createCu...
private void removeCube(java.lang.String name) { java.lang.System.out.println(name); if (!("the Floor".equals(name))) { mundo.detachChildNamed(name); (highScore)++; (timeLeft)++; CubeNames.remove(name); if ((CubeNames.size()) < 1) createCubes(); }...
public void onTextChanged(java.lang.CharSequence s, int start, int before, int count) { int textLength = editText.getText().length(); if (textLength > (minChars)) { currentState = getCurrentState(textLength); updateContentWithState(textLength); }else { fillViewsWithContent(textLength...
public void onTextChanged(java.lang.CharSequence s, int start, int before, int count) { int textLength = editText.getText().length(); if (textLength >= (minChars)) { currentState = getCurrentState(textLength); updateContentWithState(textLength); }else { fillViewsWithContent(textLengt...
public org.nextprot.commons.statements.RawStatement mapRow(java.sql.ResultSet rs, int rowNum) throws java.sql.SQLException { org.nextprot.commons.statements.StatementBuilder sfbuilder = org.nextprot.commons.statements.StatementBuilder.createNew(); for (org.nextprot.commons.statements.StatementField field : org....
public org.nextprot.commons.statements.RawStatement mapRow(java.sql.ResultSet rs, int rowNum) throws java.sql.SQLException { org.nextprot.commons.statements.StatementBuilder sfbuilder = org.nextprot.commons.statements.StatementBuilder.createNew(); for (org.nextprot.commons.statements.StatementField key : org.ne...
public net.minecraft.item.ItemStack getSmeltingResult(net.minecraft.item.ItemStack stack) { java.util.Iterator<java.util.Map.Entry<net.einsteinsci.betterbeginnings.register.recipe.OreRecipeElement, net.minecraft.item.ItemStack>> iterator = smeltingList.entrySet().iterator(); java.util.Map.Entry<net.einsteinsci....
public net.minecraft.item.ItemStack getSmeltingResult(net.minecraft.item.ItemStack stack) { java.util.Iterator<java.util.Map.Entry<net.einsteinsci.betterbeginnings.register.recipe.OreRecipeElement, net.minecraft.item.ItemStack>> iterator = smeltingList.entrySet().iterator(); java.util.Map.Entry<net.einsteinsci....
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_editor); android.content.Intent intent = getIntent(); cols = 20; rows = 24; if (intent != null) { cols = intent.getExtras().getInt("columns"); rows...
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_editor); android.content.Intent intent = getIntent(); cols = 0; rows = 0; if (intent != null) { cols = intent.getExtras().getInt("columns"); rows =...
private int getBundleArg() { int startLI = LineIndex; if (evalNumericExpression()) { int bundleIndex = EvalNumericExpressionValue.intValue(); if ((bundleIndex > 0) && (bundleIndex < (com.rfo.basic.Run.theBundles.size()))) { return bundleIndex; } int endLI = LineIndex;...
private int getBundleArg() { int startLI = LineIndex; if (evalNumericExpression()) { int bundleIndex = EvalNumericExpressionValue.intValue(); if ((bundleIndex > 0) && (bundleIndex < (com.rfo.basic.Run.theBundles.size()))) { return bundleIndex; } int endLI = LineIndex;...
public void process(com.topicsbot.services.api.telegram.model.Update update) { com.topicsbot.services.api.telegram.handlers.UpdateType updateType = convert(update); try { com.topicsbot.services.api.telegram.handlers.UpdateHandler handler = handlers.get(updateType); if (handler == null) ...
public void process(com.topicsbot.services.api.telegram.model.Update update) { try { com.topicsbot.services.api.telegram.handlers.UpdateType updateType = convert(update); if (updateType == null) return ; com.topicsbot.services.api.telegram.handlers.UpdateHandler handler ...
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_edit_recipe); java.lang.String[] steps = new java.lang.String[]{ "step 1" , "step 2" , "step 3" , "step 4" , "step 5" , "step 6" , "step 7" , "step 8" , "step 9" , "step 10" }...
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_edit_recipe); android.widget.ListAdapter stepsAdapter = new org.cook_e.cook_e.StepListAdapter(this); android.widget.ListView stepsList = ((android.widget.ListView) (findVi...
public void setPower(double power) { this.power = power; if ((power < (maxPower)) && (power > (minPower))) { RobotConstants.TALON_ARM_MOTOR.set(power); }else if (power < (minPower)) { RobotConstants.TALON_ARM_MOTOR.set((-0.5)); }else { RobotConstants.TALON_ARM...
public void setPower(double power) { if ((power < (maxPower)) && (power > (minPower))) { }else if (power < (minPower)) { power = minPower; }else { power = maxPower; } RobotConstants.TALON_ARM_MOTOR.set(power); this.power = power; }
public void render() { for (com.smiley.game.entity.Entity e : entities) { e.render(); } for (com.smiley.game.entity.Enemy e : enemies) { if (((com.smiley.game.dungeoncrawler.GameScreen.frame) % (e.moveSpeed)) == 0) { e.chaseMob(player, entities); } } player.render...
public void render() { for (com.smiley.game.entity.Entity e : entities) { e.render(); } for (com.smiley.game.entity.Enemy e : enemies) { if (((com.smiley.game.dungeoncrawler.GameScreen.frame) % (e.moveSpeed)) == 0) { e.chaseMob(player, entities); } } }
public za.org.grassroot.webapp.controller.ussd.menus.USSDMenu askForGroupNoInlineNew(za.org.grassroot.core.domain.User user, za.org.grassroot.webapp.enums.USSDSection section, java.lang.String menuIfExisting, java.lang.String promptIfNotEmpty) throws java.net.URISyntaxException { final java.lang.String promptIfEmpt...
public za.org.grassroot.webapp.controller.ussd.menus.USSDMenu askForGroupNoInlineNew(za.org.grassroot.core.domain.User user, za.org.grassroot.webapp.enums.USSDSection section, java.lang.String menuIfExisting, java.lang.String promptIfNotEmpty) throws java.net.URISyntaxException { final java.lang.String promptIfEmpt...
public Plateau.Plateau.Color getColor(java.lang.String s) { Plateau.Plateau.Color color = null; java.lang.System.out.println(s); switch (s) { case "R" : color = Plateau.Plateau.Color.R; break; case "B" : color = Plateau.Plateau.Color.B; break; ...
public Plateau.Plateau.Color getColor(java.lang.String s) { Plateau.Plateau.Color color = null; switch (s) { case "R" : color = Plateau.Plateau.Color.R; break; case "B" : color = Plateau.Plateau.Color.B; break; case "J" : color ...
private void readCompanies(int id, model.Developer developer, java.sql.Connection connection) throws java.sql.SQLException { java.sql.PreparedStatement ps = connection.prepareStatement("SELECT company_id FROM companies_developers WHERE developer_id = ?"); ps.setInt(1, id); java.sql.ResultSet rs = ps.execute...
private void readCompanies(model.Developer developer, java.sql.Connection connection) throws java.sql.SQLException { java.sql.PreparedStatement ps = connection.prepareStatement("SELECT company_id FROM companies_developers WHERE developer_id = ?"); ps.setInt(1, developer.getId()); java.sql.ResultSet rs = ps....
public void onClick(android.view.View v) { if (tinydb.getBoolean("prob2_completed")) { showDialogStartover(3); }else { int previous_prob_num = (problem_number) - 1; android.support.design.widget.Snackbar.make(findViewById(R.id.main_activity_Relative_Layout), (((("Problem " + (problem_num...
public void onClick(android.view.View v) { if (tinydb.getBoolean("prob2_completed")) { problem_number = 3; showDialogStartover(3); }else { int previous_prob_num = (problem_number) - 1; android.support.design.widget.Snackbar.make(findViewById(R.id.main_activity_Relative_Layout), (...
private rx.Observable<io.reactivex.netty.protocol.http.client.HttpClientResponse<O>> _writeContentRaw(rx.Observable rawContent, rx.functions.Func1<?, java.lang.Boolean> flushSelector, boolean hasTrailers) { final io.reactivex.netty.protocol.http.client.internal.RawRequest<I, O> r = io.reactivex.netty.protocol.http....
private io.reactivex.netty.protocol.http.client.internal.HttpClientRequestImpl<I, O> _writeContentRaw(rx.Observable rawContent, rx.functions.Func1<?, java.lang.Boolean> flushSelector, boolean hasTrailers) { final io.reactivex.netty.protocol.http.client.internal.RawRequest<I, O> r = io.reactivex.netty.protocol.http....
private void testEscolhaCodigoCorreto() { try { br.univali.portugol.nucleo.Portugol.compilarParaAnalise(("programa {" + (((((((((((" funcao inicio() {" + " inteiro a = 1") + " escolha (a) {") + " caso 2:") + " pare") + " caso 1:") + " pare") + " caso contrario:") + " pa...
public void testEscolhaCodigoCorreto() { try { br.univali.portugol.nucleo.Portugol.compilarParaAnalise(("programa {" + (((((((((((" funcao inicio() {" + " inteiro a = 1") + " escolha (a) {") + " caso 2:") + " pare") + " caso 1:") + " pare") + " caso contrario:") + " par...
public java.awt.Point getTipPos() { return new java.awt.Point(((int) ((pos.x) + (16 * (java.lang.Math.cos(ang))))), ((int) ((pos.y) - (16 * (java.lang.Math.sin(ang)))))); }
public java.awt.Point getTipPos() { return new java.awt.Point(((int) ((pos.x) + (16 * (java.lang.Math.cos(ang))))), ((int) ((pos.y) + (16 * (java.lang.Math.sin(ang)))))); }
public boolean equals(java.lang.Object obj) { return ((obj instanceof common.Pair) && ((elem1) == (((common.Pair<T>) (obj)).elem1))) && ((elem2) == (((common.Pair<T>) (obj)).elem2)); }
public boolean equals(java.lang.Object obj) { return ((obj instanceof common.Pair) && (elem1.equals(((common.Pair<T>) (obj)).elem1))) && (elem2.equals(((common.Pair<T>) (obj)).elem2)); }
public void run() { int y = getGlobalId(0); int x = getGlobalId(1); float sum = 0; for (int i = 0; i < (size_$constant$); i++) { sum += (a[((y * (size_$constant$)) + i)]) * (b[((x * (size_$constant$)) + i)]); } result[((y * (size_$constant$)) + x)] = sum; }
public void run() { int y = getGlobalId(0); int x = getGlobalId(1); float sum = 0; for (int i = 0; i <= (size_$constant$); i++) { sum += (a[((y * (size_$constant$)) + i)]) * (b[((x * (size_$constant$)) + i)]); } result[((y * (size_$constant$)) + x)] = sum; }
protected io.dropwizard.cli.Command getCommand(java.lang.String name) { if ((bootstrap) == null) throw new java.lang.RuntimeException("Must be initialized before getCommand is called."); for (io.dropwizard.cli.Command command : bootstrap.getCommands()) { if ((command.getName()) == name) ...
protected io.dropwizard.cli.Command getCommand(java.lang.String name) { if ((bootstrap) == null) throw new java.lang.RuntimeException("Must be initialized before getCommand is called."); for (io.dropwizard.cli.Command command : bootstrap.getCommands()) { if (command.getName().equals(name)) ...
public studio.tmaker.jason.tmcore.TMLocation converter(java.lang.String gps) { java.lang.String[] parts = gps.split(","); if ((parts.length) == 2) { studio.tmaker.jason.tmcore.TMLocation tmLocation = new studio.tmaker.jason.tmcore.TMLocation(); tmLocation.setLatitude(java.lang.Double.parseDouble...
public studio.tmaker.jason.tmcore.TMLocation converter(java.lang.String gps) { java.lang.String[] parts = gps.split(","); if ((parts.length) == 2) { studio.tmaker.jason.tmcore.TMLocation tmLocation = new studio.tmaker.jason.tmcore.TMLocation(); tmLocation.setLatitude(java.lang.Double.parseDouble...
public java.lang.String getLastBuildNode(hudson.model.Job<?, ?> job) { hudson.model.Run<?, ?> lastBuild = job.getLastBuild(); if (lastBuild instanceof hudson.model.AbstractBuild<?, ?>) { hudson.model.Node builtOn = ((hudson.model.AbstractBuild<?, ?>) (lastBuild)).getBuiltOn(); if (builtOn instan...
public java.lang.String getLastBuildNode(hudson.model.Job<?, ?> job) { hudson.model.Run<?, ?> lastBuild = job.getLastBuild(); if (lastBuild instanceof hudson.model.AbstractBuild<?, ?>) { hudson.model.Node builtOn = ((hudson.model.AbstractBuild<?, ?>) (lastBuild)).getBuiltOn(); if (builtOn instan...
public stormpot.slow.GenericPoolable apply(stormpot.slow.Slot slot, stormpot.slow.GenericPoolable obj) throws java.lang.Exception { if (first) { threads.setThreadCpuTimeEnabled(true); first = false; } long cpuTime = threads.getCurrentThreadCpuTime(); long userTime = threads.getCurrentThr...
public stormpot.slow.GenericPoolable apply(stormpot.slow.Slot slot, stormpot.slow.GenericPoolable obj) throws java.lang.Exception { if (first) { threads.setThreadCpuTimeEnabled(true); first = false; } long userTime = threads.getCurrentThreadUserTime(); lastUserTimeIncrement.set((userTime...
public void onEviction(com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.Sha1HashKey key, com.microsoft.sqlserver.jdbc.SQLServerConnection.PreparedStatementCacheItem cacheItem) { if (null != cacheItem) { cacheItem.evictedFromCache = true; if ((cacheItem.hasHandle()) && (cacheItem.discardIfHand...
public void onEviction(com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.Sha1HashKey key, com.microsoft.sqlserver.jdbc.SQLServerConnection.PreparedStatementCacheItem cacheItem) { if (null != cacheItem) { cacheItem.evictedFromCache = true; if ((cacheItem.hasHandle()) && (cacheItem.discardIfHand...
public boolean value(java.lang.Object o) { if (o instanceof java.awt.event.MouseEvent) { java.awt.event.MouseEvent me = ((java.awt.event.MouseEvent) (o)); if ((getActionUnder(me.getPoint())) != null) { if ((me.getID()) == (java.awt.event.MouseEvent.MOUSE_CLICKED)) { javax...
public boolean value(java.lang.Object o) { if (o instanceof java.awt.event.MouseEvent) { java.awt.event.MouseEvent me = ((java.awt.event.MouseEvent) (o)); if ((getActionUnder(me.getPoint())) != null) { if ((me.getID()) == (java.awt.event.MouseEvent.MOUSE_CLICKED)) { javax...
private static void addConfigAlkahestChargingRecipe(net.minecraftforge.common.config.ConfigCategory category, java.lang.String item, @java.lang.SuppressWarnings(value = "SameParameterValue") java.lang.Integer meta, java.lang.Integer charge) { net.minecraftforge.common.config.Property prop = new net.minecraftforge.c...
private static void addConfigAlkahestChargingRecipe(net.minecraftforge.common.config.ConfigCategory category, java.lang.String item, @java.lang.SuppressWarnings(value = "SameParameterValue") java.lang.Integer meta, java.lang.Integer charge) { net.minecraftforge.common.config.Property prop = new net.minecraftforge.c...
public void onGameFinished(int rank, int score) { presenter.newGame(); dialogHelper.createOkOnlyDialog(getString(R.string.memory_game_dialog_title_game_finished), getString(R.string.memory_game_dialog_text_game_finished, score, rank), new android.content.DialogInterface.OnClickListener() { public void o...
public void onGameFinished(int rank, int score) { dialogHelper.createOkOnlyDialog(getString(R.string.memory_game_dialog_title_game_finished), getString(R.string.memory_game_dialog_text_game_finished, score, rank), new android.content.DialogInterface.OnClickListener() { public void onClick(android.content.Di...
public void actionPerformed(java.awt.event.ActionEvent arg0) { (tictactoe_main.chance)++; if (((tictactoe_main.chance) % 2) == 0) { tictactoe_main.button.setText("X"); tictactoe_main.arr[2] = 1; }else if (((tictactoe_main.chance) % 2) == 1) { tictactoe_main.button.setText...
public void actionPerformed(java.awt.event.ActionEvent arg0) { (tictactoe_main.chance)++; if (((tictactoe_main.chance) % 2) == 0) { tictactoe_main.button.setText("X"); tictactoe_main.arr[2] = 1; }else if (((tictactoe_main.chance) % 2) == 1) { tictactoe_main.button.setText...
protected void addParameterDefinitions(java.util.List<org.alfresco.service.cmr.action.ParameterDefinition> paramList) { paramList.add(new org.alfresco.repo.action.ParameterDefinitionImpl(org.alfresco.extension.pdftoolkit.constants.PDFToolkitConstants.PARAM_DESTINATION_FOLDER, org.alfresco.service.cmr.dictionary.Dat...
protected void addParameterDefinitions(java.util.List<org.alfresco.service.cmr.action.ParameterDefinition> paramList) { paramList.add(new org.alfresco.repo.action.ParameterDefinitionImpl(org.alfresco.extension.pdftoolkit.constants.PDFToolkitConstants.PARAM_DESTINATION_FOLDER, org.alfresco.service.cmr.dictionary.Dat...
public org.backmeup.plugin.spi.Authorizable getAuthorizable(java.lang.String sourceSinkId, org.backmeup.plugin.spi.Authorizable.AuthorizationType authType) { switch (authType) { case OAuth : return service(org.backmeup.plugin.spi.OAuthBasedAuthorizable.class, (("(name=" + sourceSinkId) + ")")); ...
public org.backmeup.plugin.spi.Authorizable getAuthorizable(java.lang.String sourceSinkId, org.backmeup.plugin.spi.Authorizable.AuthorizationType authType) { switch (authType) { case OAuth : return service(org.backmeup.plugin.spi.OAuthBasedAuthorizable.class, sourceSinkId); case InputBas...
public edu.chl.proton.model.Document getDocument(java.lang.String documentType) { if (documentType == null) { return null; } if (documentType.equalsIgnoreCase("PLAIN")) { }else if (documentType.equalsIgnoreCase("MARKDOWN")) { return new edu.chl.proton.model.Markdown(file); ...
public edu.chl.proton.model.Document getDocument(java.lang.String documentType) { if (documentType == null) { return null; } if (documentType.equalsIgnoreCase("PLAIN")) { }else if (documentType.equalsIgnoreCase("MARKDOWN")) { }else if (documentType.equalsIgnoreCase("S...
public void test_cmd_mf() { java.lang.String fileName = ""; java.lang.String fileName2 = "meherGolden_RepressionModel"; java.lang.String mainfile = ((sbolDir) + "CRISPR_example") + ".xml"; java.lang.String inputfile2 = ((sbolDir) + fileName2) + ".xml"; java.lang.String outputFile = ""; java.lang...
public void test_cmd_mf() { java.lang.String fileName = ((sbolDir) + "CRISPR_example") + ".xml"; java.lang.String fileName2 = "meherGolden_RepressionModel"; java.lang.String mainfile = ""; java.lang.String inputfile2 = ((sbolDir) + fileName2) + ".xml"; java.lang.String outputFile = ""; java.lang...
public void before() throws java.io.IOException { analyzerFactory = new com.orientechnologies.lucene.analyzer.OLuceneAnalyzerFactory(); java.lang.String metajson = com.orientechnologies.common.io.OIOUtils.readFileAsString(new java.io.File("./src/test/resources/index_metadata_new.json")); metadata = new com....
public void before() throws java.io.IOException { analyzerFactory = new com.orientechnologies.lucene.analyzer.OLuceneAnalyzerFactory(); java.lang.String metajson = com.orientechnologies.common.io.OIOUtils.readFileAsString(new java.io.File("./src/test/resources/index_metadata_new.json")); metadata = new com....
public byte[] getReportFile() { org.jevis.api.JEVisFile template = reportProperty.getTemplate(); org.jevis.report3.TemplateTransformator transformator = new org.jevis.report3.TemplateTransformator(); org.jxls.common.Context context = new org.jxls.common.Context(contextMap); try { transformator.t...
public byte[] getReportFile() { org.jevis.api.JEVisFile template = reportProperty.getTemplate(); org.jevis.report3.TemplateTransformator transformator = new org.jevis.report3.TemplateTransformator(); org.jxls.common.Context context = new org.jxls.common.Context(contextMap); try { transformator.t...
public com.pratilipi.api.shared.GenericResponse get(com.pratilipi.api.impl.init.InitBannerApi.GetRequest request) throws com.pratilipi.common.exception.InvalidArgumentException, com.pratilipi.common.exception.UnexpectedServerException { com.pratilipi.data.type.BlobEntry blobEntry = com.pratilipi.data.util.InitDataU...
public com.pratilipi.api.shared.GenericResponse get(com.pratilipi.api.impl.init.InitBannerApi.GetRequest request) throws com.pratilipi.common.exception.InvalidArgumentException, com.pratilipi.common.exception.UnexpectedServerException { com.pratilipi.data.type.BlobEntry blobEntry = com.pratilipi.data.util.InitDataU...
public u7.u7a2.UnlinkSmallestResult<T> unlinkSmallest(u7.u7a2.BinarySearchTree<T> tree) { if ((tree.left) != null) { u7.u7a2.UnlinkSmallestResult result = unlinkSmallest(tree.left); return new u7.u7a2.UnlinkSmallestResult(result.smallest, new u7.u7a2.BinarySearchTree(tree.key, tree.thing, result.tre...
public u7.u7a2.UnlinkSmallestResult<T> unlinkSmallest(u7.u7a2.BinarySearchTree<T> tree) { if ((tree.left) == null) { return new u7.u7a2.UnlinkSmallestResult(tree, tree.right); } u7.u7a2.UnlinkSmallestResult result = unlinkSmallest(tree.left); tree.left = result.tree; return new u7.u7a2.Unlin...
int errors = log.errorCount(); for (net.percederberg.mibble.MibImport imp : imports) { try { imp.initialize(log); if (loaded) { imp.validateSmiVersion(log, this); } } catch (net.percederberg.mibble.MibException e) { log.addError(e);...
int errors = log.errorCount(); for (net.percederberg.mibble.MibImport imp : imports) { imp.initialize(log); if (loaded) { imp.validateSmiVersion(log, this); } } if (errors != (log.errorCount())) { throw new net.percederberg.mibble.MibLoaderException(log); ...
public void addParams(com.likebamboo.osa.android.request.RequestParams params) { if (!(android.text.TextUtils.isEmpty(mSearchKey))) { try { mSearchKey = java.net.URLEncoder.encode(mSearchKey, "UTF-8"); } catch (java.lang.Exception e) { } params.add("key", mSearchKey); ...
public void addParams(com.likebamboo.osa.android.request.RequestParams params) { if (!(android.text.TextUtils.isEmpty(mSearchKey))) { java.lang.String key = mSearchKey; try { key = java.net.URLEncoder.encode(mSearchKey, "UTF-8"); } catch (java.lang.Exception e) { } ...
public void call(retrofit2.Response<org.gem.indo.dooit.api.responses.EmptyResponse> response) { org.gem.indo.dooit.models.User user = persisted.getCurrentUser(); user.getProfile().setProfileImageUrl(getImageUri().toString()); persisted.setCurrentUser(user); MainActivity.Builder.create(this).startActivit...
public void call(retrofit2.Response<org.gem.indo.dooit.api.responses.EmptyResponse> response) { org.gem.indo.dooit.models.User user = persisted.getCurrentUser(); if (((user != null) && ((user.getProfile()) != null)) && ((getImageUri()) != null)) { user.getProfile().setProfileImageUrl(getImageUri().toStr...
public void run() { try { while (!(isTerminated)) { org.rmatil.sync.event.aggregator.core.events.IEvent headEvent = this.eventQueue.take(); this.fileSyncer.sync(headEvent); } } catch (java.lang.InterruptedException e) { org.rmatil.sync.core.syncer.file.SyncFileCh...
public void run() { while (!(isTerminated)) { try { org.rmatil.sync.event.aggregator.core.events.IEvent headEvent = this.eventQueue.take(); this.fileSyncer.sync(headEvent); } catch (java.lang.InterruptedException e) { org.rmatil.sync.core.syncer.file.SyncFileChang...
public void aggregateInPlaceByAccount_parallel_lazy_gsc() { com.gs.collections.api.map.MapIterable<com.gs.collections.impl.jmh.AggregateByTest.Account, com.gs.collections.impl.jmh.AggregateByTest.MarketValueStatistics> productDoubleMap = this.gscPositions.asParallel(this.executorService, com.gs.collections.impl.jmh...
public com.gs.collections.api.map.MapIterable<com.gs.collections.impl.jmh.AggregateByTest.Account, com.gs.collections.impl.jmh.AggregateByTest.MarketValueStatistics> aggregateInPlaceByAccount_parallel_lazy_gsc() { com.gs.collections.api.map.MapIterable<com.gs.collections.impl.jmh.AggregateByTest.Account, com.gs.col...
public boolean equals(java.lang.Object obj) { if ((this) == obj) { return true; } if (obj instanceof java.lang.Long) { return this.id.equals(obj); } if (obj instanceof tk.itworks10.bookshelf.model.entity.Entity) { return this.id.equals(((tk.itworks10.bookshelf.model.entity.En...
public boolean equals(java.lang.Object obj) { if ((this) == obj) { return true; } if (obj instanceof java.lang.Long) { return this.id.equals(obj); } if (obj instanceof tk.itworks10.bookshelf.model.entity.Entity) { return ((this.id) != null) && (this.id.equals(((tk.itworks10.b...
private java.util.Map<java.lang.String, de.spricom.dessert.dependency.ClassFileEntry> findMatchingClasses(de.spricom.dessert.dependency.Rule rule) { java.util.Map<java.lang.String, de.spricom.dessert.dependency.ClassFileEntry> members = new java.util.HashMap<>(); for (de.spricom.dessert.dependency.ClassFileEntr...
private java.util.Map<java.lang.String, de.spricom.dessert.dependency.ClassFileEntry> findMatchingClasses(de.spricom.dessert.dependency.Rule rule) { java.util.Map<java.lang.String, de.spricom.dessert.dependency.ClassFileEntry> members = new java.util.HashMap<>(); for (de.spricom.dessert.dependency.ClassFileEntr...
private static java.util.List<com.brianstempin.vindiniumclient.bot.simple.CHEBot.Vertex> getPath(com.brianstempin.vindiniumclient.bot.simple.CHEBot.Vertex target) { java.util.List<com.brianstempin.vindiniumclient.bot.simple.CHEBot.Vertex> path = new java.util.LinkedList<com.brianstempin.vindiniumclient.bot.simple.C...
private static java.util.List<com.brianstempin.vindiniumclient.bot.simple.CHEBot.Vertex> getPath(com.brianstempin.vindiniumclient.bot.simple.CHEBot.Vertex target) { java.util.List<com.brianstempin.vindiniumclient.bot.simple.CHEBot.Vertex> path = new java.util.LinkedList<com.brianstempin.vindiniumclient.bot.simple.C...
public void actionPerformed(java.awt.event.ActionEvent ae) { while ((outputDir) == null) { javax.swing.JOptionPane.showMessageDialog(null, "You have not selected a path that contains valid output definition files yet.\nPlease select a path now."); setOutputDir(); } getOutputClasses(); s...
public void actionPerformed(java.awt.event.ActionEvent ae) { while ((outputDir) == null) { javax.swing.JOptionPane.showMessageDialog(null, "You have not selected a path that contains valid output definition files yet.\nPlease select a path now."); if (!(setOutputDir())) { return ; ...
public void getMoreInfoWorkHistoryTime(java.util.List<com.hbbsolution.owner.history.model.workhistory.WorkHistory> listWorkHistory, java.lang.String startAt, java.lang.String endAt) { mDocList.addAll(listWorkHistory); (currentPageTime)++; historyJobAdapter.notifyDataSetChanged(); recyclerView.post(new j...
public void getMoreInfoWorkHistoryTime(java.util.List<com.hbbsolution.owner.history.model.workhistory.WorkHistory> listWorkHistory, java.lang.String startAt, java.lang.String endAt) { mDocList.addAll(listWorkHistory); historyJobAdapter.notifyDataSetChanged(); recyclerView.post(new java.lang.Runnable() { ...