buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public void handle(javafx.scene.input.MouseEvent t) { if (((!(c.isMatched())) && (!(c.isTurned()))) && (!(c.inAnimation()))) { javafx.animation.Transition animation = game.GameEventhandler.cardturn(c, this); animation.play(); c.lock(); } }
public void handle(javafx.scene.input.MouseEvent t) { if (((!(c.isMatched())) & (!(c.isTurned()))) & (!(c.inAnimation()))) { game.GameEventhandler.cardturn(c, this); } }
if ((oldEntryMap.containsKey(regionName)) && (this.oldEntryMap.get(regionName).containsKey(((com.gemstone.gemfire.internal.cache.RegionEntry) (entryKey)).getKeyCopy()))) { return oldEntryMap.get(regionName).get(((com.gemstone.gemfire.internal.cache.RegionEntry) (entryKey)).getKeyCopy()).last(); }else { ...
if ((oldEntryMap.containsKey(regionName)) && (this.oldEntryMap.get(regionName).containsKey(entryKey))) { return oldEntryMap.get(regionName).get(entryKey).last(); }else { return null; } }
public void initialize() { sample.ClientThread cliente = new sample.ClientThread("italo", 2000, 2000); sample.ClientThread cliente2 = new sample.ClientThread("yuri", 500, 500); myButton.setOnAction((javafx.event.ActionEvent event) -> { cliente.run(animation); }); test.setOnAction((javafx.eve...
public void initialize() { sample.ClientThread cliente = new sample.ClientThread("italo", 2000, 2000, animation); sample.ClientThread cliente2 = new sample.ClientThread("yuri", 500, 500, animation); myButton.setOnAction((javafx.event.ActionEvent event) -> { cliente.start(); }); test.setOnAct...
public void run() { try { socket = new java.net.DatagramSocket(port); } catch (java.net.SocketException e) { logger.error(("Occured an error {}. Couldn't open a socket on this port:" + (port)), e); } while (isRunning) { try { socket.receive(request); handl...
public void run() { try { socket = new java.net.DatagramSocket(port); } catch (java.net.SocketException e) { logger.error("Occured an error {}. Couldn't open a socket on this port:", port, e); } while (isRunning) { try { socket.receive(request); handleRequ...
public void executeHook(org.jruby.RubyObject hookRunner, cucumber.api.Scenario scenario) { org.jruby.runtime.builtin.IRubyObject[] jrubyArgs = new org.jruby.runtime.builtin.IRubyObject[2]; jrubyArgs[0] = currentWorld; jrubyArgs[1] = org.jruby.javasupport.JavaEmbedUtils.javaToRuby(hookRunner.getRuntime(), sc...
public org.jruby.runtime.builtin.IRubyObject executeHook(org.jruby.RubyObject hookRunner, cucumber.api.Scenario scenario) { org.jruby.runtime.builtin.IRubyObject[] jrubyArgs = new org.jruby.runtime.builtin.IRubyObject[2]; jrubyArgs[0] = currentWorld; jrubyArgs[1] = org.jruby.javasupport.JavaEmbedUtils.javaT...
public void selectClicked() { abDiscardView.setEnabled(false); abDoneView.setEnabled(false); progress.show(); if (fileNames.isEmpty()) { setResult(com.synconset.RESULT_CANCELED); progress.dismiss(); finish(); }else { setRequestedOrientation(ActivityInfo.SCREEN_ORIENTA...
public void selectClicked() { abDiscardView.setEnabled(false); abDoneView.setEnabled(false); progress.show(); if (fileNames.isEmpty()) { setResult(com.synconset.RESULT_CANCELED); progress.dismiss(); finish(); }else { new com.synconset.MultiImageChooserActivity.ResizeI...
public int checkIfWon(java.lang.String winningDenomination) { int payOutRatio; switch (winningDenomination) { case "JOKER" : payOutRatio = 40; break; case "CASINO" : payOutRatio = 40; break; case "1" : payOutRatio = 1; ...
public int checkIfWon(java.lang.String winningDenomination) { int payOutRatio; switch (winningDenomination) { case "JOKER" : payOutRatio = 40; break; case "CASINO" : payOutRatio = 40; break; case "1" : payOutRatio = 1; ...
public void runOpMode() throws java.lang.InterruptedException { Ready4Action(); waitForStart(); while (opModeIsActive()) { if (gamepad1.x) { Sethe.setPosition(0.5); }else { Sethe.setPosition((((gamepad1.left_stick_y) + 1) / 2)); waitForNextHardwareCycle();...
public void runOpMode() throws java.lang.InterruptedException { Ready4Action(); waitForStart(); while (opModeIsActive()) { if (gamepad1.x) { Sethe.setPosition(1); }else { Sethe.setPosition((((gamepad1.left_stick_y) + 1) / 2)); } waitForNextHardwareCycl...
public static <T> boolean store(java.lang.Class<T> tClass, T entity) { java.util.List<T> entities = ((java.util.List<T>) (com.thoughtworks.gauge.datastore.DataStoreFactory.getScenarioDataStore().get(tClass.getSimpleName()))); if (null == entities) { entities = new java.util.LinkedList<>(); com.t...
public static <T> boolean store(java.lang.Class<T> tClass, T entity) { java.util.List<T> entities = ((java.util.List<T>) (com.thoughtworks.gauge.datastore.DataStoreFactory.getScenarioDataStore().get(tClass.getSimpleName()))); if (null == entities) { entities = new java.util.LinkedList<>(); com.t...
public void put(double[] data) { final int l = data.length; int i = 0; while (i < l) { final double val = data[l]; min = (val < (min)) ? val : min; max = (val > (max)) ? val : max; } }
public void put(double[] data) { final int l = data.length; for (int i = 0; i < l; i++) { final double val = data[i]; min = (val < (min)) ? val : min; max = (val > (max)) ? val : max; } }
private void takePhoto() throws java.io.IOException { android.content.Intent takePictureIntent = new android.content.Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE); java.io.File photoFile = null; try { photoFile = getFile(); } catch (java.io.IOException ex) { } if (photoFile !=...
private void takePhoto() throws java.io.IOException { android.content.Intent takePictureIntent = new android.content.Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE); photoFile = null; try { photoFile = getFile(); } catch (java.io.IOException ex) { } if ((photoFile) != null) { ...
public com.classes.Place newPlace(java.lang.String placeName, int xPos, int yPos) throws java.lang.IllegalArgumentException { if (!(checkPlaceName(placeName))) { throw new java.lang.IllegalArgumentException(); } com.classes.Place place = new com.classes.PlaceImpl(placeName, xPos, yPos); if (!(pl...
public com.classes.Place newPlace(java.lang.String placeName, int xPos, int yPos) throws java.lang.IllegalArgumentException { if (!(checkPlaceName(placeName))) { throw new java.lang.IllegalArgumentException(); } com.classes.PlaceImpl place = new com.classes.PlaceImpl(placeName, xPos, yPos); if (...
public int alitajuntaValinta(int edellinen, boolean kaksiPutkeen, boolean voittiko) { if (edellinen == (-1)) { return aloitusValinta(); } if (kaksiPutkeen) { if (edellinen == 0) { return 2; }else if (edellinen == 1) { return 0; }els...
public int alitajuntaValinta(int edellinen, boolean kaksiPutkeen, boolean voittiko) { if (edellinen == (-1)) { return aloitusValinta(); } if (kaksiPutkeen) { if (edellinen == 0) { return 2; }else if (edellinen == 1) { return 0; }els...
public java.lang.Void visit(org.checkerframework.stubparser.ast.body.FieldDeclaration decl, annotations.el.AElement elem) { for (org.checkerframework.stubparser.ast.body.VariableDeclarator v : decl.getVariables()) { annotations.el.AClass clazz = ((annotations.el.AClass) (elem)); annotations.el.AFiel...
public java.lang.Void visit(org.checkerframework.stubparser.ast.body.FieldDeclaration decl, annotations.el.AElement elem) { for (org.checkerframework.stubparser.ast.body.VariableDeclarator v : decl.getVariables()) { annotations.el.AClass clazz = ((annotations.el.AClass) (elem)); annotations.el.AFiel...
private org.chernovia.net.games.parlour.acro.server.AcroPlayer addNewPlayer(org.chernovia.lib.netgames.zugserv.Connection conn) { if ((players.size()) > (maxplay)) { conn.tell(ZugServ.MSG_SERV, "Game Full!?"); return null; }else { org.chernovia.net.games.parlour.acro.server.AcroPlayer p ...
public org.chernovia.net.games.parlour.acro.server.AcroPlayer addNewPlayer(org.chernovia.lib.netgames.zugserv.Connection conn) { if ((players.size()) > (maxplay)) { conn.tell(ZugServ.MSG_SERV, "Game Full!?"); return null; }else { org.chernovia.net.games.parlour.acro.server.AcroPlayer p =...
private void placePickerProcess(android.content.Intent data) { java.lang.System.out.println("AddPlaceActivity.placePickerProcess"); com.google.android.gms.location.places.Place place = com.google.android.gms.location.places.ui.PlacePicker.getPlace(this, data); java.lang.System.out.println("AddPlaceActivity....
private void placePickerProcess(android.content.Intent data) { com.google.android.gms.location.places.Place place = com.google.android.gms.location.places.ui.PlacePicker.getPlace(this, data); java.lang.String toastMsg = java.lang.String.format("Place: %s, Coords: %s", place.getName(), place.getLatLng()); an...
private void updateContext() { geometry.geom2d.AlignedBoundingBox screen = new geometry.geom2d.AlignedBoundingBox(geometry.geom2d.Point2D.ORIGIN, cameraManager.getCamCorner()); java.util.List<model.battlefield.army.components.Unit> inScreen = new java.util.ArrayList<>(); for (model.battlefield.army.componen...
private void updateContext() { geometry.geom2d.AlignedBoundingBox screen = new geometry.geom2d.AlignedBoundingBox(geometry.geom2d.Point2D.ORIGIN, cameraManager.getCamCorner()); java.util.List<model.battlefield.army.components.Unit> inScreen = new java.util.ArrayList<>(); for (model.battlefield.army.componen...
public void show404(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) { response.setStatus(HttpServletResponse.SC_NOT_FOUND); request.setAttribute(com.lftechnology.batch7crud.controller.MESSAGE, com.lftechnology.batch7crud.controller.PAGE_NOT_FOUND); try { ...
public void show404(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) { response.setStatus(HttpServletResponse.SC_NOT_FOUND); request.setAttribute(com.lftechnology.batch7crud.controller.MESSAGE, com.lftechnology.batch7crud.controller.PAGE_NOT_FOUND); try { ...
private boolean dirtyCurrentProjectHandled() { if (isCurrentProjectDirty()) { int choice = javax.swing.JOptionPane.showConfirmDialog(com.sandy.jnmaker.util.ObjectRepository.getMainFrame(), ("There are unsaved changes. Save before exit?\n" + "Yes to save, No to discard and Cancel to abort.")); if (ch...
private boolean dirtyCurrentProjectHandled() { if (isCurrentProjectDirty()) { int choice = javax.swing.JOptionPane.showConfirmDialog(getMainFrame(), ("There are unsaved changes. Save before exit?\n" + "Yes to save, No to discard and Cancel to abort.")); if (choice == (javax.swing.JOptionPane.CANCEL_...
public Client.State getStatus() throws java.io.IOException { outToServer.writeBytes(("STATUS" + "\n")); java.lang.String response = inFromServer.readLine(); java.lang.System.out.println(response); if (response.equals("DEFEAT")) { return State.DEFEAT; } if (response.equals("PLAY")) { ...
public Client.State getStatus() throws java.io.IOException { outToServer.writeBytes(("STATUS" + "\n")); java.lang.String response = inFromServer.readLine(); if (response.equals("DEFEAT")) { return State.DEFEAT; } if (response.equals("PLAY")) { return State.PLAY; } if (respons...
private void fillDatabins(final org.matsim.contrib.analysis.kai.Databins<java.lang.String> databins) { java.util.SortedMap<java.lang.String, double[]> mode2distanceBasedLegs = distriInfo.getMode2DistanceBasedLegs(); for (java.lang.String mode : mode2distanceBasedLegs.keySet()) { double[] distBasedLegs =...
private void fillDatabins(final org.matsim.contrib.analysis.kai.Databins<java.lang.String> databins) { java.util.Map<java.lang.String, double[]> mode2distanceBasedLegs = distriInfo.getMode2DistanceBasedLegs(); for (java.lang.String mode : mode2distanceBasedLegs.keySet()) { double[] distBasedLegs = mode2...
private void callHandlers(org.springframework.statemachine.state.State<S, E> sourceState, org.springframework.statemachine.state.State<S, E> targetState, org.springframework.messaging.Message<E> message) { if ((sourceState != null) && (targetState != null)) { org.springframework.statemachine.StateContext<S,...
private void callHandlers(org.springframework.statemachine.state.State<S, E> sourceState, org.springframework.statemachine.state.State<S, E> targetState, org.springframework.messaging.Message<E> message) { org.springframework.statemachine.StateContext<S, E> stateContext = buildStateContext(message, null, this); ...
public int compare(org.jahia.modules.rolesmanager.JCRNodeWrapper o1, org.jahia.modules.rolesmanager.JCRNodeWrapper o2) { if (getPermissionPath(o1).equals(getPermissionPath(o2))) { return -(o1.getPath().compareTo(o2.getPath())); } return getPermissionPath(o1).compareTo(getPermissionPath(o2)); }
public int compare(org.jahia.modules.rolesmanager.JCRNodeWrapper o1, org.jahia.modules.rolesmanager.JCRNodeWrapper o2) { if (getPermissionPath(o1).equals(getPermissionPath(o2))) { return o2.getPath().compareTo(o1.getPath()); } return getPermissionPath(o1).compareTo(getPermissionPath(o2)); }
public void render() { Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); r.render(); c.update(); batch.begin(); com.TEAM_NAME.Fructus.RendererUtil.renderDebug(font, batch); com.badlogic.gdx.graphics.profiling.GLProfiler.reset(); com.TEAM_NAME.Fructus.RendererUtil.drawTextures(r, batch, img1, img2, i...
public void render() { Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); r.render(); c.update(); batch.begin(); com.TEAM_NAME.Fructus.RendererUtil.renderDebug(font, batch); com.badlogic.gdx.graphics.profiling.GLProfiler.reset(); com.TEAM_NAME.Fructus.RendererUtil.drawTextures(batch, img1, img2, img3...
public de.neemann.digital.core.element.ElementTypeDescription getDescription() throws java.io.IOException { if ((description) == null) { if (!(unique)) throw new java.io.IOException(de.neemann.digital.lang.Lang.get("err_file_N0_ExistsTwiceBelow_N1", file, library.getRootFilePath())); ...
public de.neemann.digital.core.element.ElementTypeDescription getDescription() throws java.io.IOException { if ((description) == null) { if (!(unique)) throw new java.io.IOException(de.neemann.digital.lang.Lang.get("err_file_N0_ExistsTwiceBelow_N1", file.getName(), library.getRootFilePath())); ...
private java.util.ArrayList<java.lang.Integer> neighboursOf(int vert) { java.util.ArrayList<java.lang.Integer> result = new java.util.ArrayList<java.lang.Integer>(); for (int i = 0; i < (matrix[vert].length); i++) { if ((matrix[vert][i]) != 0) { result.add((i - 1)); } } retur...
private java.util.ArrayList<java.lang.Integer> neighboursOf(int vert) { java.util.ArrayList<java.lang.Integer> result = new java.util.ArrayList<java.lang.Integer>(); for (int i = 0; i < (matrix[vert].length); i++) { if ((matrix[vert][i]) != 0) { result.add(i); } } return resu...
private boolean startScreenCapture() { android.util.Log.d(TAG, ((("mResultCode: " + (mResultCode)) + ", mResultData: ") + (mResultData))); if (((mResultCode) != 0) && ((mResultData) != null)) { setUpMediaProjection(); startRecording(); showNotification(); return true; } r...
private boolean startScreenCapture() { android.util.Log.d(TAG, ((("mResultCode: " + (mResultCode)) + ", mResultData: ") + (mResultData))); if (((mResultCode) != 0) && ((mResultData) != null)) { setUpMediaProjection(); showNotification(); startRecording(); return true; } r...
public static java.util.List<java.io.File> listRawTextFiles(java.lang.String filePath) { java.io.File sourceDir = new java.io.File(filePath); if (sourceDir.exists()) { final java.io.File[] fileArray = sourceDir.listFiles(); if (fileArray != null) { return java.util.Arrays.asList(file...
public static java.util.List<java.io.File> listFiles(java.lang.String filePath) { java.io.File sourceDir = new java.io.File(filePath); if (sourceDir.exists()) { final java.io.File[] fileArray = sourceDir.listFiles(); if (fileArray != null) { return java.util.Arrays.asList(fileArray);...
public static boolean validateVer(java.lang.String ver) { boolean valid = true; try { java.lang.Double.parseDouble(ver.trim()); java.lang.System.out.println("Is correct"); } catch (java.lang.NumberFormatException e) { java.lang.System.out.println("Not an integer"); valid = fa...
public static boolean validateVer(java.lang.String ver) { boolean valid = true; try { java.lang.Double.parseDouble(ver.trim()); } catch (java.lang.NumberFormatException e) { java.lang.System.out.println("Not an integer"); valid = false; } catch (java.lang.NullPointerException e) ...
public void save(javafx.event.ActionEvent event) { try { util.Vehicle vehicle = new util.Vehicle(makeTF, modelTF, yearTF, colorTF, typeCB, priceTF); vehicle.insertEntry(); } catch (java.lang.Exception e) { e.printStackTrace(); } }
public void save(javafx.event.ActionEvent event) { try { util.Vehicle vehicle = new util.Vehicle(makeTF, modelTF, yearTF, colorTF, typeCB, priceTF); util.Vehicle.insertEntry(vehicle); } catch (java.lang.Exception e) { e.printStackTrace(); } }
private void createScrollableTable(javax.swing.JTable table, boolean isSortable) { javax.swing.JScrollPane scrollPane = new javax.swing.JScrollPane(); add(scrollPane); scrollPane.setViewportView(table); table.setFillsViewportHeight(true); table.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_...
private void createScrollableTable(boolean isSortable) { javax.swing.JScrollPane scrollPane = new javax.swing.JScrollPane(); add(scrollPane); scrollPane.setViewportView(table); table.setFillsViewportHeight(true); table.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); table.chan...
public static void closeChestMenus() { for (org.bukkit.entity.Player player : com.gmail.filoghost.chestcommands.util.VersionUtils.getOnlinePlayers()) { com.gmail.filoghost.chestcommands.InventoryView inventory = player.getOpenInventory(); if (inventory != null) { if (((inventory.getTopIn...
public static void closeChestMenus() { for (org.bukkit.entity.Player player : com.gmail.filoghost.chestcommands.util.VersionUtils.getOnlinePlayers()) { com.gmail.filoghost.chestcommands.InventoryView inventory = player.getOpenInventory(); if (inventory != null) { if (((inventory.getTopIn...
private void dice1() { dice1Selected = true; dice2Selected = false; if (!(dice2removed)) { diceImage2.clearColorFilter(); diceImage2.setImageDrawable(getDiceImage(getDice2Value())); } diceImage1.setColorFilter(backgroundColor, PorterDuff.Mode.MULTIPLY); infoText.setText(("Möglich...
private void dice1() { dice1Selected = true; dice2Selected = false; if (!(dice2removed)) { diceImage2.clearColorFilter(); diceImage2.setImageDrawable(getDiceImage(getDice2Value())); } diceImage1.setColorFilter(backgroundColor, PorterDuff.Mode.MULTIPLY); infoText.setText(("Möglich...
private void fillWrappedItems(boolean hasMoreButton) { for (com.rocdev.guardianreader.models.Article article : articles) { wrappedItems.add(new com.rocdev.guardianreader.utils.ArticleAdMobRecyclerAdapter.ItemWrapper(article)); } if (!(wrappedItems.isEmpty())) { wrappedItems.remove(currentAdP...
private void fillWrappedItems(boolean hasMoreButton) { for (com.rocdev.guardianreader.models.Article article : articles) { wrappedItems.add(new com.rocdev.guardianreader.utils.ArticleAdMobRecyclerAdapter.ItemWrapper(article)); } currentAdPosition = wrappedItems.size(); wrappedItems.add(currentAd...
public void onClick(android.content.DialogInterface dialog, int which) { com.blueshift.Blueshift.getInstance(mContext).trackNotificationClick(mMessage, true); android.content.pm.PackageManager packageManager = getPackageManager(); android.content.Intent launcherIntent = packageManager.getLaunchIntentForPack...
public void onClick(android.content.DialogInterface dialog, int which) { com.blueshift.Blueshift.getInstance(mContext).trackNotificationClick(mMessage, true); android.content.pm.PackageManager packageManager = getPackageManager(); android.content.Intent launcherIntent = packageManager.getLaunchIntentForPack...
protected java.util.List<com.facebook.react.ReactPackage> getPackages() { return java.util.Arrays.<com.facebook.react.ReactPackage>asList(new com.facebook.react.shell.MainReactPackage(), new io.invertase.firebase.RNFirebasePackage(), new io.invertase.firebase.analytics.RNFirebaseAnalyticsPackage(), new io.invertase...
protected java.util.List<com.facebook.react.ReactPackage> getPackages() { return java.util.Arrays.<com.facebook.react.ReactPackage>asList(new com.facebook.react.shell.MainReactPackage(), new io.invertase.firebase.RNFirebasePackage(), new io.invertase.firebase.admob.RNFirebaseAdMobPackage(), new io.invertase.firebas...
public static void handle(final java.lang.String info, final java.lang.Exception e, java.lang.Class<?> derivedClass, java.lang.Class<?> baseClass, java.lang.Class<?> subClass) { ExceptionHandler.handle(info, e, true, derivedClass, baseClass, subClass, true); }
public static void handle(final java.lang.String info, final java.lang.Throwable e, java.lang.Class<?> derivedClass, java.lang.Class<?> baseClass, java.lang.Class<?> subClass) { ExceptionHandler.handle(info, e, true, derivedClass, baseClass, subClass, true); }
private void start() { gui.MeasureDialog loading = new gui.MeasureDialog(this, true); loading.init(this, com); if (!(startVehicleSet())) return ; enableCancelling(); loading.setVisible(true); loading.startMeasurement(); }
private void start() { gui.MeasureDialog loading = new gui.MeasureDialog(this, true); loading.init(this, com); if (!(startVehicleSet())) return ; enableCancelling(); loading.startMeasurement(); loading.setVisible(true); }
public static void registerEvents(org.bukkit.plugin.Plugin plugin, org.bukkit.event.Listener... listeners) { org.bukkit.event.Listener[] arrayOfListener; int j = (arrayOfListener = listeners).length; for (int i = 0; i < j; i++) { org.bukkit.event.Listener listener = arrayOfListener[i]; org.b...
public void registerEvents(org.bukkit.event.Listener... listeners) { org.bukkit.event.Listener[] arrayOfListener; int j = (arrayOfListener = listeners).length; for (int i = 0; i < j; i++) { org.bukkit.event.Listener listener = arrayOfListener[i]; org.bukkit.Bukkit.getServer().getPluginManage...
public void evaluate() throws java.lang.Throwable { before(); java.lang.Throwable failure; try { base.evaluate(); } catch (java.lang.Throwable t) { failure = t; } finally { try { after(); } catch (java.lang.Throwable t) { if (failure == null) {...
public void evaluate() throws java.lang.Throwable { before(); java.lang.Throwable failure = null; try { base.evaluate(); } catch (java.lang.Throwable t) { failure = t; } finally { try { after(); } catch (java.lang.Throwable t) { if (failure == ...
public void initHistory() { mBackState = mState.deepCopy(); mCanBackPaginate = true; mIsBackPaginating = false; mIsForewardPaginating = false; if (null != (mDataHandler.getDataRetriever())) { mDataHandler.getDataRetriever().cancelHistoryRequest(mRoomId); } }
public void initHistory() { mBackState = mState.deepCopy(); mCanBackPaginate = true; mIsBackPaginating = false; mIsForewardPaginating = false; if ((null != (mDataHandler)) && (null != (mDataHandler.getDataRetriever()))) { mDataHandler.getDataRetriever().cancelHistoryRequest(mRoomId); } }
public void altaInscripcionNormal(int numero, boolean estado, java.lang.String clases) { java.util.Vector<models.Actividad> cl = app.Utiles.convertStringToClases(clases); models.Normal inscripcionNormal = new models.Normal(estado, numero, cl); inscripcionNormal.insert(); inscripcionesNormales.add(inscri...
public void altaInscripcionNormal(int numero, boolean estado, java.lang.String clases) { java.util.Vector<models.Actividad> cl = app.Utiles.convertStringToClases(clases); models.Normal inscripcionNormal = new models.Normal(estado, numero, cl); inscripcionesNormales.add(inscripcionNormal); inscripcionNor...
public java.lang.Long getLastInsertedId() { java.sql.Statement statement = null; java.sql.ResultSet resultSet = null; java.lang.Long lastId = 0L; try { statement = connection.createStatement(); resultSet = statement.executeQuery(com.zhartunmatthew.web.contactbook.dao.ContactDAO.GET_LAST_...
public java.lang.Long getLastInsertedId() { java.sql.Statement statement; java.sql.ResultSet resultSet; java.lang.Long lastId = 0L; try { statement = connection.createStatement(); resultSet = statement.executeQuery(com.zhartunmatthew.web.contactbook.dao.ContactDAO.GET_LAST_ID); l...
public <T> java.util.Collection<T> getAsCollection(java.lang.String name, java.lang.Class<T> clazz, java.util.Collection<T> defaultValue) { java.lang.Object object = this.get(null, name, java.lang.Object.class, defaultValue); if ((object != null) && (!(object instanceof java.util.List))) { throw new jav...
public <T> java.util.Collection<T> getAsCollection(java.lang.String name, java.lang.Class<T> clazz, java.util.Collection<T> defaultValue) { java.lang.Object object = this.get(null, name, java.lang.Object.class, defaultValue); if ((object != null) && (!(object instanceof java.util.Collection))) { throw n...
public java.util.Map<java.lang.String, java.lang.Object> toMap() { java.util.HashMap<java.lang.String, java.lang.Object> result = new java.util.HashMap<>(); result.put("username", username); result.put("email", email); result.put("message", message); result.put("timeStamp", timeStamp); result.pu...
public java.util.Map<java.lang.String, java.lang.Object> toMap() { java.util.HashMap<java.lang.String, java.lang.Object> result = new java.util.HashMap<>(); result.put("username", username); result.put("email", email); result.put("message", message); result.put("timeStamp", timeStamp); result.pu...
public int antiClockwise(int dir) { if ((mazeType) == 2) { if (dir == 5) return 0; else return ++dir; }else { switch (dir) { case 0 : return 2; case 2 : return 3; case 3 : ...
private int antiClockwise(int dir) { if ((mazeType) == 2) { if (dir == 5) return 0; else return ++dir; }else { switch (dir) { case 0 : return 2; case 2 : return 3; case 3 : ...
private static boolean createLogFile() { java.io.File file = new java.io.File(com.lkworm.miniservice.GPSTrackService.getGPSLogPath()); if ((file.exists()) == false) { try { file.createNewFile(); } catch (java.io.IOException e) { com.lkworm.miniservice.GPSTrackService.LogE...
private boolean createLogFile() { java.io.File file = new java.io.File(getGPSLogPath()); if ((file.exists()) == false) { try { file.createNewFile(); } catch (java.io.IOException e) { LogError(("createLogFile" + (e.toString()))); return false; } } ...
public void map(java.lang.Object key, org.apache.hadoop.io.Text value, com.huike.test00.Context context) throws java.io.IOException, java.lang.InterruptedException { java.util.StringTokenizer itr = new java.util.StringTokenizer(value.toString()); while (itr.hasMoreTokens()) { word.set(itr.nextToken()); ...
public void map(java.lang.Object key, org.apache.hadoop.io.Text value, com.huike.test00.Context context) throws java.io.IOException, java.lang.InterruptedException { java.util.StringTokenizer itr = new java.util.StringTokenizer(value.toString()); while (itr.hasMoreTokens()) { word.set(itr.nextToken()); ...
public void run() { switch (k) { case info.nanodesu.reader.patches.PaClientAccessor.PID_KEY : pidInput.setText((v + "")); break; case info.nanodesu.reader.patches.PaClientAccessor.VERSION_KEY : versionInput.setSelectedItem((v + "")); break; cas...
public void run() { switch (k) { case info.nanodesu.reader.patches.PaClientAccessor.PID_KEY : pidInput.setText((v + "")); break; case info.nanodesu.reader.patches.PaClientAccessor.VERSION_KEY : versionInput.setSelectedItem(v); break; case info....
public void delete(long id) { if (id == (io.keepcoding.rgs.everpobre.model.db.dao.NotebookDAO.INVALID_ID_DELETE_ALL_RECORDS)) { db.getWritableDatabase().delete(DBConstants.TABLE_NOTEBOOK, null, null); }else { db.getWritableDatabase().delete(DBConstants.TABLE_NOTEBOOK, (((io.keepcoding.rgs.everpo...
public void delete(long id) { if (id == (io.keepcoding.rgs.everpobre.model.db.dao.NotebookDAO.INVALID_ID_DELETE_ALL_RECORDS)) { db.getWritableDatabase().delete(DBConstants.TABLE_NOTEBOOK, null, null); }else { db.getWritableDatabase().delete(DBConstants.TABLE_NOTEBOOK, (((io.keepcoding.rgs.everpo...
public int[] getBottomRightCoord() { if ((gridLeftRow) > (gridRightRow)) { return new int[]{ this.gridLeftRow , this.gridLeftCol }; }else return new int[]{ this.gridRightRow , this.gridRightCol }; }
public int[] getBottomRightCoord() { if ((gridLeftRow) > (gridRightRow)) { return new int[]{ this.gridLeftRow , this.gridRightCol }; }else return new int[]{ this.gridRightRow , this.gridRightCol }; }
private int getAreaExplored() { int total = 0; for (int i = 0; i < (mdp.Constants.MAX_X); i++) { for (int j = 0; j < (mdp.Constants.MAX_Y); j++) { if (map.getCoordinate(i, j).getIsExplored()) { total++; } } } return total; }
private int getAreaExplored() { int total = 0; for (int i = 0; i < (mdp.Constants.MAX_Y); i++) { for (int j = 0; j < (mdp.Constants.MAX_X); j++) { if (map.getCoordinate(i, j).getIsExplored()) { total++; } } } return total; }
protected void onPostExecute(java.lang.String result) { android.widget.Toast.makeText(context, result, Toast.LENGTH_LONG).show(); sendBroadcast(new android.content.Intent("com.udacity.gradle.builditbigger.hideprogress")); android.content.Intent intent = new android.content.Intent(getApplicationContext(), co...
protected void onPostExecute(java.lang.String result) { android.widget.Toast.makeText(context, result, Toast.LENGTH_LONG).show(); android.content.Intent intent = new android.content.Intent(getApplicationContext(), com.taehun.jokesactivity.JokesActivity.class); intent.putExtra(JokesActivity.JOKE_KEY, result)...
public boolean checkForGroundProximity(net.minecraft.util.BlockPos bp) { boolean result = false; if ((!(worldObj.isRemote)) && (!(isDead))) { net.minecraft.block.Block block = worldObj.getBlockState(bp).getBlock(); boolean isAir = block == (net.minecraft.init.Blocks.air); boolean isVeget...
public boolean checkForGroundProximity(net.minecraft.util.BlockPos bp) { net.minecraft.block.Block block = worldObj.getBlockState(bp).getBlock(); boolean isAir = block == (net.minecraft.init.Blocks.air); boolean isVegetation = ((block instanceof net.minecraft.block.BlockFlower) || (block instanceof net.mine...
public void setConfigXML(java.util.Collection<org.jdom.Element> configXML, boolean visAvailable) { for (org.jdom.Element element : configXML) { if (element.getName().equals("bitrate")) { RADIO_TRANSMISSION_RATE_kbps = java.lang.Double.parseDouble(element.getText()); RADIO_TRANSMISSIO...
public void setConfigXML(java.util.Collection<org.jdom.Element> configXML, boolean visAvailable) { for (org.jdom.Element element : configXML) { if (element.getName().equals("bitrate")) { RADIO_TRANSMISSION_RATE_kbps = java.lang.Double.parseDouble(element.getText()); if ((this) instan...
private void doResize(final com.ait.lienzo.client.core.shape.wires.event.AbstractWiresEvent.Type type, final int index, final int x, final int y, final com.ait.lienzo.client.widget.DragContext dragContext) { final double[] size = resize(0, 1, 2, 3); getHandlerManager().fireEvent(new com.ait.lienzo.client.core.s...
private void doResize(final com.ait.lienzo.client.core.shape.wires.event.AbstractWiresEvent.Type type, final int index, final com.ait.lienzo.client.widget.DragContext dragContext) { final double[] size = resize(); getHandlerManager().fireEvent(new com.ait.lienzo.client.core.shape.wires.event.ResizeEvent(this, i...
public boolean onOptionsItemSelected(android.view.MenuItem item) { int id = item.getItemId(); if (id == (R.id.action_settings)) { return true; } switch (item.getItemId()) { case R.id.barcode : android.content.Intent i = new android.content.Intent(this, io.moffat.kitchenpal.Ba...
public boolean onOptionsItemSelected(android.view.MenuItem item) { int id = item.getItemId(); if (id == (R.id.action_settings)) { return true; } switch (item.getItemId()) { case R.id.barcode : android.content.Intent i = new android.content.Intent(this, io.moffat.kitchenpal.Ba...
public void onPostExecute(java.lang.Void v) { if ((listener) == null) { return ; } if (isHttpStatusError) { listener.onHttpStatusError(httpStatusCode, httpStatusErrorMessage); listener.onHttpStatusError(httpStatusCode); }else if (isNetworkError) { listener.onN...
public void onPostExecute(java.lang.Void v) { if (isHttpStatusError) { if ((listener) != null) { listener.onHttpStatusError(httpStatusCode); } if ((listener) != null) { listener.onHttpStatusError(httpStatusCode, httpStatusErrorMessage); } }else if ...
public void onPlayerConnect(uno.network.api.Player player) { if ((hostPlayer) == null) { uno.server.core.GameServer.logger.info("Started new game lobby!"); hostPlayer = player; } (currentPlayerCount)++; sendToAllPlayers(("currentplayer#" + (currentPlayerCount))); uno.server.core.Game...
public void onPlayerConnect(uno.network.api.Player player) { uno.server.core.GameServer.logger.info(((((("Player connected: " + (player.getAddress())) + ": ") + (player.getID())) + " #") + (++(currentPlayerCount)))); if ((hostPlayer) == null) { uno.server.core.GameServer.logger.info("Started new game lo...
public void manualLoop() { for (int i = 0; i < (encoderLevels.length); i++) { if (((forkliftEncoder.get()) < ((encoderLevels[i]) + 50)) && ((forkliftEncoder.get()) > ((encoderLevels[i]) - 50))) { levelIndex = i; java.lang.System.out.println(("Forklift moved to level: " + (levelIndex)...
public void manualLoop() { for (int i = 0; i < (encoderLevels.length); i++) { if (((forkliftEncoder.get()) < ((encoderLevels[i]) + 50)) && ((forkliftEncoder.get()) > ((encoderLevels[i]) - 50))) { levelIndex = i; } } }
public void run(double x) { if ((java.lang.Math.abs(math.pow(x, 3))) >= 0.1) { f.set(((yVal) / 2)); b.set(((yVal) / 2)); }else { f.set(0); b.set(0); } }
public void run(double x) { double yVal = math.pow(x, 3); if ((java.lang.Math.abs(yVal)) >= 0) { f.set((yVal / 2)); b.set((yVal / 2)); } }
public java.lang.String[] isLoggedIn() { com.facebook.AccessToken accessToken = com.facebook.AccessToken.getCurrentAccessToken(); java.lang.String id = ""; java.lang.String token = ""; if ((accessToken != null) && (!(accessToken.isExpired()))) { id = accessToken.getUserId(); token = acce...
public java.lang.String[] isLoggedIn() { com.facebook.AccessToken accessToken = com.facebook.AccessToken.getCurrentAccessToken(); java.lang.String id = ""; java.lang.String token = ""; if ((accessToken != null) && (!(accessToken.isExpired()))) { id = accessToken.getUserId(); token = acce...
public void run() { while (running) { try { java.lang.String[] oldData = data; data = streamIn.readUTF().split("-"); if (!(oldData.equals(data))) { client.readInput(); java.lang.System.out.println(java.util.Arrays.toString(data)); ...
public void run() { while (running) { try { java.lang.String[] oldData = data; data = streamIn.readUTF().split("-"); if (!(oldData.equals(data))) { client.readInput(); } } catch (java.io.IOException ioe) { java.lang.System.o...
public void setCell(int row, int col, double val) { double tmp = table[row][col]; table[row][col] = val; if ((isExcessiveVal(row, col)) && (isDuplicated(row, col))) table[row][col] = tmp; }
public void setCell(int row, int col, double val) { double tmp = table[row][col]; table[row][col] = val; if ((isExcessiveVal(row, col)) || (isDuplicated(row, col))) table[row][col] = tmp; }
private void linkAlias(final org.jboss.errai.ioc.rebind.ioc.graph.DependencyGraphBuilderImpl.Alias alias) { final java.util.Collection<org.jboss.errai.ioc.rebind.ioc.graph.DependencyGraphBuilderImpl.Alias> candidates = directAliasesByAssignableTypes.get(alias.type); for (final org.jboss.errai.ioc.rebind.ioc.gra...
private void linkAlias(final org.jboss.errai.ioc.rebind.ioc.graph.DependencyGraphBuilderImpl.Alias alias) { final java.util.Collection<org.jboss.errai.ioc.rebind.ioc.graph.DependencyGraphBuilderImpl.Alias> candidates = directAliasesByAssignableTypes.get(alias.type); for (final org.jboss.errai.ioc.rebind.ioc.gra...
public void buildFinished(com.intellij.openapi.project.Project project, java.util.UUID sessionId, boolean isAutomake) { if (((project == null) || (!(project.equals(myProject)))) || (!isAutomake)) { return ; } console.debug("build finished"); submitter.submitOpenFilesAuto(TriggerType.COMPILATION)...
public void buildFinished(com.intellij.openapi.project.Project project, java.util.UUID sessionId, boolean isAutomake) { if ((!(project.equals(myProject))) || (!isAutomake)) { return ; } console.debug("build finished"); submitter.submitOpenFilesAuto(TriggerType.COMPILATION); }
public void handleMethodTranslateException(com.googlecode.d2j.Method method, com.googlecode.d2j.node.DexMethodNode methodNode, org.objectweb.asm.MethodVisitor mv, java.lang.Exception e) { java.io.StringWriter s = new java.io.StringWriter(); s.append("d2j fail translate: "); e.printStackTrace(new java.io.Pri...
public void handleMethodTranslateException(com.googlecode.d2j.Method method, com.googlecode.d2j.node.DexMethodNode methodNode, org.objectweb.asm.MethodVisitor mv, java.lang.Exception e) { java.io.StringWriter s = new java.io.StringWriter(); s.append("d2j fail translate: "); e.printStackTrace(new java.io.Pri...
private static eu.itesla_project.ucte.network.UcteNodeCode parseNodeCode(eu.itesla_project.ucte.network.io.UcteRecordParser parser, int beginIndex) { eu.itesla_project.ucte.network.UcteCountryCode ucteCountryCode = eu.itesla_project.ucte.network.UcteCountryCode.fromUcteCode(parser.parseChar(beginIndex)); java.l...
private static eu.itesla_project.ucte.network.UcteNodeCode parseNodeCode(eu.itesla_project.ucte.network.io.UcteRecordParser parser, int beginIndex) { eu.itesla_project.ucte.network.UcteCountryCode ucteCountryCode = eu.itesla_project.ucte.network.UcteCountryCode.fromUcteCode(parser.parseChar(beginIndex)); java.l...
public void should_exec_cli_remote() throws com.jcraft.jsch.JSchException, java.io.IOException { java.lang.String uci_show = "uci show "; java.lang.String wan_ifname = "network.wan.ifname"; java.lang.String re = gw.remoteExec((uci_show + wan_ifname)); assertEquals((((wan_ifname + "=\'") + (gw.readProp("...
public void should_exec_cli_remote() throws com.jcraft.jsch.JSchException, java.io.IOException { java.lang.String uci_show = "uci show "; java.lang.String wan_ifname = "network.wan.ifname"; java.lang.String re = gw.remoteExec((uci_show + wan_ifname)); assertTrue(re.contains(gw.readProp("CPE.network.wan....
switch (socketType) { case PAIR : return 0; case SUB : return 1; case PUB : return 2; case REQ : return 3; case REP : return 4; case DEALER : return 5; case ROUTER : return 6; ...
switch (socketType) { case PAIR : return 0; case PUB : return 1; case SUB : return 2; case REQ : return 3; case REP : return 4; case DEALER : return 5; case ROUTER : return 6; ...
public void testGetOrganizedImportSectionWithInnerClasses_02() throws java.lang.Exception { java.lang.String model = "import org.eclipse.emf.ecore.resource.Resource\n" + ((((((((("import org.eclipse.emf.ecore.EPackage\n" + "") + "\n") + "class Foo {\n") + " def test() {\n") + " val x = Resource$Factory$Registry...
public void testGetOrganizedImportSectionWithInnerClasses_02() throws java.lang.Exception { java.lang.String model = "import org.eclipse.emf.ecore.resource.Resource\n" + (((((((("import org.eclipse.emf.ecore.EPackage\n" + "") + "\n") + "class Foo {\n") + " def test() {\n") + " val x = Resource$Factory$Registry:...
public void load() { java.io.File musicFile = new java.io.File(params.get("file")); com.lumitron.music.MusicService.musicPlayer = com.lumitron.music.MusicHandler.load(musicFile); java.lang.Long totalPlaybackInMicro = com.lumitron.music.MusicService.musicPlayer.getTotalPlaybackTime(); java.lang.String to...
public void load() { java.util.HashMap<java.lang.String, java.lang.Object> response = new java.util.HashMap<>(); java.lang.Long totalPlaybackInMicro = com.lumitron.music.MusicHandler.load(params.get("file")); response.put("totalPlaybackTime", convertTime(totalPlaybackInMicro)); response.put("totalPlayba...
public static com.rewedigital.examples.msintegration.productinformation.product.ProductEntity of(final com.rewedigital.examples.msintegration.productinformation.product.Product product) { com.rewedigital.examples.msintegration.productinformation.product.ProductEntity productEntity = new com.rewedigital.examples.msi...
public static com.rewedigital.examples.msintegration.productinformation.product.ProductEntity of(final com.rewedigital.examples.msintegration.productinformation.product.Product product) { com.rewedigital.examples.msintegration.productinformation.product.ProductEntity productEntity = new com.rewedigital.examples.msi...
public void error(java.lang.String tag, java.lang.String message, java.lang.Throwable exception) { if ((logLevel) >= (LOG_ERROR)) { java.lang.String msg = (tag + ": ") + message; org.parallax3d.parallax.platforms.gwt.GwtApp.logger.log(java.util.logging.Level.SEVERE, msg, exception); java.lan...
public void error(java.lang.String tag, java.lang.String message, java.lang.Throwable exception) { if ((logLevel) >= (LOG_ERROR)) { java.lang.String msg = (tag + ": ") + message; org.parallax3d.parallax.platforms.gwt.GwtApp.logger.log(java.util.logging.Level.SEVERE, msg, exception); java.lan...
public org.json.simple.JSONObject logUser(org.json.simple.JSONObject object) { javax.servlet.http.HttpSession session = getSession(); session.setAttribute("user", object); org.json.simple.JSONObject storedUser = ((org.json.simple.JSONObject) (session.getAttribute("user"))); java.lang.System.out.println(...
public static org.json.simple.JSONObject logUser(org.json.simple.JSONObject object, javax.servlet.http.HttpSession session) { session.setAttribute("user", object); org.json.simple.JSONObject storedUser = ((org.json.simple.JSONObject) (session.getAttribute("user"))); java.lang.System.out.println(("---session...
public void onActivityResult(int requestCode, int resultCode, android.content.Intent data) { switch (requestCode) { case kagy.com.calldaemon.MainActivity.PICK_CONTACT_CODE : onPickActivityResult(data); break; case kagy.com.calldaemon.MainActivity.CALL_INTENT_CODE : ...
public void onActivityResult(int requestCode, int resultCode, android.content.Intent data) { switch (requestCode) { case kagy.com.calldaemon.MainActivity.PICK_CONTACT_CODE : { if (data != null) onPickActivityResult(data); } ...
public java.util.List<java.lang.String> getRootBeanNames() { java.util.List<java.lang.String> rootBeanNames = new java.util.ArrayList<java.lang.String>(); for (java.lang.String rootViewName : this.rootViewNames) { for (java.lang.String beanName : this.viewNameToBeanNamesMap.get(rootViewName)) { ...
public java.util.List<java.lang.String> getRootBeanNames() { java.util.List<java.lang.String> rootBeanNames = new java.util.ArrayList<java.lang.String>(); for (java.lang.String rootViewName : this.rootViewNames) { for (java.lang.String beanName : this.viewNameToBeanNamesMap.get(rootViewName)) { ...
private com.homesky.homecloud_lib.model.response.UserDataResponse callUDR(com.homesky.homecloud_lib.HomecloudWrapper.FunctionCommand command) throws com.homesky.homecloud_lib.exceptions.NetworkException { com.homesky.homecloud_lib.model.response.SimpleResponse sr = callFunctionCommand(command); if (sr == null) ...
private com.homesky.homecloud_lib.model.response.UserDataResponse callUDR(com.homesky.homecloud_lib.HomecloudWrapper.FunctionCommand command) throws com.homesky.homecloud_lib.exceptions.NetworkException { com.homesky.homecloud_lib.model.response.SimpleResponse sr = callFunctionCommand(command); if (sr == null) ...
public java.lang.Object getItem(int position) { if ((position == 0) || (position == ((m_favorite.size()) + 1))) return null; if (position <= (m_favorite.size())) return m_favorite.get((position - 1)); return m_recent.get(((position - (m_favorite.size())) + 2)); }
public java.lang.Object getItem(int position) { if ((position == 0) || (position == ((m_favorite.size()) + 1))) return null; if (position <= (m_favorite.size())) return m_favorite.get((position - 1)); return m_recent.get(((position - (m_favorite.size())) - 2)); }
public java.lang.String ReadLine() { java.lang.String content = null; super.ReadLine(); try { java.io.LineNumberReader tmpReader = ((java.io.LineNumberReader) (reader)); tmpReader.setLineNumber(lineNumber); content = ((java.io.LineNumberReader) (reader)).readLine(); lineNumbe...
public java.lang.String ReadLine() { java.lang.String content = null; super.ReadLine(); try { if (null == (reader)) { return null; } java.io.LineNumberReader tmpReader = ((java.io.LineNumberReader) (reader)); tmpReader.setLineNumber(lineNumber); content = ...
protected java.lang.String processYesterday(java.util.ArrayList<java.lang.String> contentToAnalyse) { for (int i = 0; i < (contentToAnalyse.size()); i++) { if (contentToAnalyse.get(i).contains(" ytd ")) { contentToAnalyse.remove(i); contentToAnalyse.set(i, " yesterday "); } ...
protected java.lang.String processYesterday(java.util.ArrayList<java.lang.String> contentToAnalyse) { for (int i = 0; i < (contentToAnalyse.size()); i++) { if (contentToAnalyse.get(i).toLowerCase().contains(" ytd ")) { contentToAnalyse.remove(i); contentToAnalyse.set(i, " yesterday "...
public java.util.Collection<org.bukkit.inventory.ItemStack> getDrops(net.glowstone.block.GlowBlock block, org.bukkit.inventory.ItemStack tool) { java.util.Collection<org.bukkit.inventory.ItemStack> drops = null; for (net.glowstone.block.blocktype.BlockType feature : getFeatures()) { drops = throwDouble(...
public java.util.Collection<org.bukkit.inventory.ItemStack> getDrops(net.glowstone.block.GlowBlock block, org.bukkit.inventory.ItemStack tool) { java.util.Collection<org.bukkit.inventory.ItemStack> drops = null; for (net.glowstone.block.blocktype.BlockType feature : getFeatures()) { drops = throwDouble(...
public void setUserJob(java.lang.String sUserId, java.lang.String sSession, java.lang.String sJobId) { for (int i = 0; i < (nl.ru.crpstudio.CrpUtil.userCache.size()); i++) { nl.ru.crpstudio.UserSession oThis = nl.ru.crpstudio.CrpUtil.userCache.get(i); if ((oThis.userId.equals(sUserId)) && (oThis.ses...
public void setUserJob(java.lang.String sUserId, java.lang.String sSession, java.lang.String sJobId) { if (sUserId.isEmpty()) return ; synchronized(nl.ru.crpstudio.CrpUtil.userCache) { for (int i = 0; i < (nl.ru.crpstudio.CrpUtil.userCache.size()); i++) { nl.ru.crpstudio.UserSes...
protected void onMenuClick(java.lang.String menu) { if (menu.equals("Nouvelle Partie")) { decalageX = ((decalageX) + (tailleMorpion)) % ((tailleMorpion) * 5); decalageY = ((decalageY) + (tailleMorpion)) % ((tailleMorpion) * 5); }else if (menu.equals("Quitter")) { os.startApp(...
protected void onMenuClick(java.lang.String menu) { if ((menu.equals("Nouvelle Partie")) && ((tailleMorpion) != 0)) { decalageX = ((decalageX) + (tailleMorpion)) % ((tailleMorpion) * 5); decalageY = ((decalageY) + (tailleMorpion)) % ((tailleMorpion) * 5); }else if (menu.equals("Quitter")...
for (final java.io.File fileEntry : folder.listFiles()) { if (fileEntry.isDirectory()) { fileList(fileEntry); }else { fileNames.add(fileEntry.getName()); } } return fileNames; }
for (final java.io.File fileEntry : folder.listFiles()) { if (fileEntry.isDirectory()) { fileList(fileEntry); }else { (i)++; fileNames[i] = fileEntry.getName(); } } return fileNames; }
public void testCacheGetShouldRetunInstanceOfCorrectType() { assumeThat(cache, instanceOf(org.springframework.data.redis.cache.RedisCache.class)); java.lang.Object key = getKey(); java.lang.Object value = getValue(); cache.put(key, value); org.springframework.data.redis.cache.RedisCache redisCache =...
public void testCacheGetShouldRetunInstanceOfCorrectType() { assumeThat(cache, instanceOf(org.springframework.data.redis.cache.RedisCache.class)); java.lang.Object key = getKey(); java.lang.Object value = getValue(); cache.put(key, value); org.springframework.data.redis.cache.RedisCache redisCache =...
public void sendAdd(java.lang.String baseURI, com.marklogic.semantics.rdf4j.client.Resource subject, com.marklogic.semantics.rdf4j.client.IRI predicate, com.marklogic.semantics.rdf4j.client.Value object, com.marklogic.semantics.rdf4j.client.Resource... contexts) throws com.marklogic.semantics.rdf4j.MarkLogicRdf4jExcept...
public void sendAdd(java.lang.String baseURI, com.marklogic.semantics.rdf4j.client.Resource subject, com.marklogic.semantics.rdf4j.client.IRI predicate, com.marklogic.semantics.rdf4j.client.Value object, com.marklogic.semantics.rdf4j.client.Resource... contexts) throws com.marklogic.semantics.rdf4j.MarkLogicRdf4jExcept...
public static blusunrize.immersiveengineering.api.tool.ExcavatorHandler.MineralMix getRandomMineral(net.minecraft.world.World world, int chunkX, int chunkZ) { if (world.isRemote) return null; blusunrize.immersiveengineering.api.tool.ExcavatorHandler.MineralWorldInfo info = blusunrize.immersiveengin...
public static blusunrize.immersiveengineering.api.tool.ExcavatorHandler.MineralMix getRandomMineral(net.minecraft.world.World world, int chunkX, int chunkZ) { if (world.isRemote) return null; blusunrize.immersiveengineering.api.tool.ExcavatorHandler.MineralWorldInfo info = blusunrize.immersiveengin...
public java.lang.Long get() { for (int i = 0; i < (jar_available.length); i++) { if (jar_available[i].get()) { jar_available[i].set(false); return java.lang.Long.class.cast(i); } } return -1L; }
public java.lang.Long get() { for (int i = 0; i < (jar_available.length); i++) { if (jar_available[i].get()) { jar_available[i].set(false); return new java.lang.Long(i); } } return -1L; }
public void selectImageMenuOptionVisible() { android.support.test.espresso.action.ViewActions.closeSoftKeyboard(); android.support.test.espresso.Espresso.onView(android.support.test.espresso.matcher.ViewMatchers.withId(R.id.action_select_image)).check(android.support.test.espresso.assertion.ViewAssertions.match...
public void selectImageMenuOptionVisible() { android.support.test.espresso.Espresso.closeSoftKeyboard(); android.support.test.espresso.Espresso.onView(android.support.test.espresso.matcher.ViewMatchers.withId(R.id.action_select_image)).check(android.support.test.espresso.assertion.ViewAssertions.matches(android...
public void showsMenuAgainWhenAnIncorrectOptionIsSelected() throws java.lang.Exception { application.load(catalogue); application.hasShownWelcomeMessage(); application.hasShownMainMenu(); application.selectIncorrectOption(); application.hasShownInputErrorMessage(); application.hasShownMainMenu()...
public void showsMenuAgainWhenAnIncorrectOptionIsSelected() throws java.lang.Exception { application.load(catalogue); application.hasShownWelcomeMessage(); application.hasShownMainMenu(); application.selectIncorrectOption(); application.hasShownInputErrorMessage(); application.hasShownMainMenu()...
public org.sbolstack.frontend.Sequence fetchSequence(java.lang.String storeName, java.net.URI sequenceUri) throws org.sbolstack.frontend.StackException { java.lang.String url = ((((backendUrl) + (storeUriFragment(storeName))) + "/sequence/") + (encodeUri(sequenceUri))) + "/sbol"; org.sbolstack.frontend.TopLevel...
public org.sbolstack.frontend.Sequence fetchSequence(java.lang.String storeName, java.net.URI sequenceUri) throws org.sbolstack.frontend.StackException { java.lang.String url = ((((backendUrl) + (storeUriFragment(storeName))) + "/sequence/") + (encodeUri(sequenceUri))) + "/sbol"; org.sbolstack.frontend.TopLevel...
public void playParticle(java.lang.String effectName, int data, int particles, int radius, int speed) { org.bukkit.entity.Player player = getPlayer(); if ((player != null) && (effectName != null)) { org.bukkit.Particle effect = org.bukkit.Particle.valueOf(effectName); for (int i = 0; i < particl...
public void playParticle(java.lang.String effectName, int data, int particles, int radius) { org.bukkit.entity.Player player = getPlayer(); if ((player != null) && (effectName != null)) { org.bukkit.Particle effect = org.bukkit.Particle.valueOf(effectName); for (int i = 0; i < particles; i++) { ...
protected void onDestroy() { try { if ((vibrator) != null) vibrator.cancel(); } catch (java.lang.Exception e) { } try { mediaPlayer.stop(); } catch (java.lang.Exception e) { } try { mediaPlayer.release(); finishAndRemoveTask(); } catch...
protected void onDestroy() { try { if ((vibrator) != null) vibrator.cancel(); } catch (java.lang.Exception e) { } try { mediaPlayer.stop(); } catch (java.lang.Exception e) { } try { mediaPlayer.release(); this.onDestroy(); } catch (jav...
public static java.io.InputStream replaceMacro(java.io.InputStream original, hudson.util.VariableResolver<java.lang.String> variableResolver) throws java.io.IOException { try { if (variableResolver == null) { return original; } java.lang.String content = org.apache.commons.io.IOU...
public static java.io.InputStream replaceMacro(java.io.InputStream original, hudson.util.VariableResolver<java.lang.String> variableResolver) throws java.io.IOException { if (variableResolver == null) { return original; } try { java.lang.String content = org.apache.commons.io.IOUtils.toStrin...
@com.fasterxml.jackson.annotation.JsonCreator static com.spotify.docker.client.messages.ImageInfo create(@com.fasterxml.jackson.annotation.JsonProperty(value = "Id") final java.lang.String id, @com.fasterxml.jackson.annotation.JsonProperty(value = "Parent") final java.lang.String parent, @com.fasterxml.jackson.annotati...
@com.fasterxml.jackson.annotation.JsonCreator static com.spotify.docker.client.messages.ImageInfo create(@com.fasterxml.jackson.annotation.JsonProperty(value = "Id") final java.lang.String id, @com.fasterxml.jackson.annotation.JsonProperty(value = "Parent") final java.lang.String parent, @com.fasterxml.jackson.annotati...
private boolean cleanupWorkItemReferences(org.yawlfoundation.yawl.engine.interfce.WorkItemRecord wir) { org.yawlfoundation.yawl.engine.interfce.WorkItemRecord removed = null; if (_serviceEnabled) { if (!(removeFromAll(wir))) return false; org.yawlfoundation.yawl.resourcing.R...
private boolean cleanupWorkItemReferences(org.yawlfoundation.yawl.engine.interfce.WorkItemRecord wir) { if (_serviceEnabled) { if (!(removeFromAll(wir))) return false; org.yawlfoundation.yawl.resourcing.ResourceMap rMap = getResourceMap(wir); if (rMap != null) { ...
public boolean isRunning() { lock.lock(); try { if ((process) == null) { return false; } return process.isRunning(); } catch (java.lang.IllegalThreadStateException e) { return true; } finally { lock.unlock(); } }
public boolean isRunning() { lock.lock(); try { return ((process) != null) && (process.isRunning()); } catch (java.lang.IllegalThreadStateException e) { return true; } finally { lock.unlock(); } }
public java.lang.String getSuccessfulArtifactTempStoragePath(java.lang.String applicationId, java.lang.String applicationVersion, java.lang.String artifactType, java.lang.String stage, java.lang.String tenantDomain, java.lang.String jobName) throws org.wso2.carbon.appfactory.common.AppFactoryException { java.lang.S...
public java.lang.String getSuccessfulArtifactTempStoragePath(java.lang.String applicationId, java.lang.String applicationVersion, java.lang.String artifactType, java.lang.String stage, java.lang.String tenantDomain, java.lang.String jobName) throws org.wso2.carbon.appfactory.common.AppFactoryException { java.lang.S...
public static boolean doit(hudson.FilePath workspace, hudson.model.TaskListener listener, net.praqma.jenkins.configrotator.ConfigurationRotatorBuildAction action) { for (net.praqma.jenkins.configrotator.AbstractPostConfigurationRotator l : net.praqma.jenkins.configrotator.AbstractPostConfigurationRotator.all()) { ...
public static boolean doit(hudson.FilePath workspace, hudson.model.TaskListener listener, net.praqma.jenkins.configrotator.ConfigurationRotatorBuildAction action) { for (net.praqma.jenkins.configrotator.AbstractPostConfigurationRotator l : net.praqma.jenkins.configrotator.AbstractPostConfigurationRotator.all()) { ...