buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); android.os.Bundle extras = getIntent().getExtras(); if ((extras != null) && (extras.getBoolean("cdvStartInBackground", false))) { moveTaskToBack(true); } if (NITConfig.AUTO_ASK_FOR_PERMISSION_AT_...
public void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); android.os.Bundle extras = getIntent().getExtras(); if ((extras != null) && (extras.getBoolean("cdvStartInBackground", false))) { moveTaskToBack(true); } loadUrl(launchUrl); }
public void onResponse(retrofit2.Call<com.illicar.redstone.common.IllicarServerResponse<java.util.ArrayList<com.illicar.redstone.common.dto.VehicleDTO>>> call, retrofit2.Response<com.illicar.redstone.common.IllicarServerResponse<java.util.ArrayList<com.illicar.redstone.common.dto.VehicleDTO>>> response) { java.util...
public void onResponse(retrofit2.Call<com.illicar.redstone.common.IllicarServerResponse<java.util.ArrayList<com.illicar.redstone.common.dto.VehicleDTO>>> call, retrofit2.Response<com.illicar.redstone.common.IllicarServerResponse<java.util.ArrayList<com.illicar.redstone.common.dto.VehicleDTO>>> response) { java.util...
public void replaceAuxVars() { for (de.uni_freiburg.informatik.ultimate.logic.TermVariable tv : m_TF.getAuxVars()) { tv = transferToCurrentScriptIfNecessary(tv); de.uni_freiburg.informatik.ultimate.logic.Term freshConst = m_SmtManager.getVariableManager().constructFreshConstant(tv); m_Substi...
public void replaceAuxVars() { for (de.uni_freiburg.informatik.ultimate.logic.TermVariable tv : m_TF.getAuxVars()) { de.uni_freiburg.informatik.ultimate.logic.Term freshConst = m_SmtManager.getVariableManager().constructFreshConstant(tv); tv = transferToCurrentScriptIfNecessary(tv); freshCon...
private void nextItem() { if (((searchResult.length) > 1) && ((resultCounter) < ((searchResult.length) - 1))) { (resultCounter)++; displayResult(searchResult[resultCounter]); } }
private void nextItem() { if ((searchResult) != null) { if (((searchResult.length) > 1) && ((resultCounter) < ((searchResult.length) - 1))) { (resultCounter)++; displayResult(searchResult[resultCounter]); } } }
public void onComplete(com.google.firebase.database.DatabaseError databaseError, com.google.firebase.database.DatabaseReference databaseReference) { if (databaseError != null) { android.widget.Toast.makeText(this, databaseError.getMessage(), Toast.LENGTH_SHORT).show(); hideProgressDialog(); }els...
public void onComplete(com.google.firebase.database.DatabaseError databaseError, com.google.firebase.database.DatabaseReference databaseReference) { if (databaseError != null) { android.widget.Toast.makeText(this, databaseError.getMessage(), Toast.LENGTH_SHORT).show(); hideProgressDialog(); }els...
private void regMoveHandler(java.lang.String target, lir.Environment d) { java.lang.String currReg = "R" + (d.getCurrentRegister()); if (target.endsWith("]")) { d.addInstructionToBuilder(MoveEnum.MOVE_ARRAY, target, currReg); }else if (target.contains(".")) { d.addInstructionToBu...
private void regMoveHandler(java.lang.String target, lir.Environment d) { java.lang.String currReg = "R" + (d.getCurrentRegister()); if (target.endsWith("]")) { d.addInstructionToBuilder(MoveEnum.MOVE_ARRAY, target, currReg); }else if (target.contains(".")) { d.addInstructionToBu...
public void set(final com.charlesmadere.hummingbird.models.MediaStory mediaStory, final com.charlesmadere.hummingbird.models.Feed feed) { final java.util.ArrayList<java.lang.Object> list = new java.util.ArrayList<>(); list.add(mediaStory); final java.util.ArrayList<com.charlesmadere.hummingbird.models.AbsSu...
public void set(final com.charlesmadere.hummingbird.models.MediaStory mediaStory, final com.charlesmadere.hummingbird.models.Feed feed) { final java.util.ArrayList<java.lang.Object> list = new java.util.ArrayList<>(); list.add(mediaStory); final java.util.ArrayList<com.charlesmadere.hummingbird.models.AbsSu...
public java.lang.String eval(java.lang.String script) { try { java.lang.Object value = nashorn.eval((("yod('" + script) + "') + '';")); return value.toString(); } catch (javax.script.ScriptException e) { log.error(((("script: " + script) + ", reason:") + (e.getMessage()))); } ret...
public synchronized java.lang.Object eval(java.lang.String script) { try { return nashorn.eval((("yod('" + script) + "') + '';")).toString(); } catch (java.lang.Exception e) { log.error(((("script: " + script) + ", reason:") + (e.getMessage()))); } return null; }
public void handleError(java.lang.String dialogTitle, java.lang.String message, java.lang.String error) { org.corehunter.ui.ShellUtilitiies.logger.error("Error message: {}. Due to : {} ", message, error); if ((shell) != null) { org.eclipse.core.runtime.IStatus status; if (error != null) { ...
public void handleError(java.lang.String dialogTitle, java.lang.String message, java.lang.String error) { org.corehunter.ui.ShellUtilitiies.logger.error("Error message: {}. Due to : {} ", message, error); if ((shell) != null) { org.eclipse.core.runtime.IStatus status; if (error != null) { ...
public void uncaughtException(java.lang.Thread thread, java.lang.Throwable ex) { android.util.Log.i("virgil", "-------get uncaught exception-----------"); if ((!(handleException(ex))) && ((mDefaultHandler) != null)) { mDefaultHandler.uncaughtException(thread, ex); }else { try { ...
public void uncaughtException(java.lang.Thread thread, java.lang.Throwable ex) { android.util.Log.i("virgil", "-------get uncaught exception-----------"); handleException(thread, ex); try { java.lang.Thread.sleep(5000); } catch (java.lang.InterruptedException e) { android.util.Log.e(com...
public static groovyx.gpars.activeobject.InternalActor create(final java.lang.Object groupId) { final groovyx.gpars.group.PGroup group; if ("".equals(groupId)) group = groovyx.gpars.actor.Actors.defaultActorPGroup; else group = groovyx.gpars.activeobject.ActiveObjectRegistry.getInstance().fi...
public static groovyx.gpars.activeobject.InternalActor create(final java.lang.Object groupId) { final groovyx.gpars.group.PGroup group; group = ("".equals(groupId)) ? groovyx.gpars.actor.Actors.defaultActorPGroup : groovyx.gpars.activeobject.ActiveObjectRegistry.getInstance().findGroupById(((java.lang.String) (...
private static void initHttpClient() { okhttp3.OkHttpClient.Builder httpClientBuilder = new okhttp3.OkHttpClient.Builder(); if ((httpClientBuilder.interceptors()) != null) { httpClientBuilder.interceptors().clear(); } httpClientBuilder.addNetworkInterceptor(new com.dorothy.v2ex.http.AddCookieInt...
private static void initHttpClient() { okhttp3.OkHttpClient.Builder httpClientBuilder = new okhttp3.OkHttpClient.Builder(); if ((httpClientBuilder.interceptors()) != null) { httpClientBuilder.interceptors().clear(); } httpClientBuilder.addNetworkInterceptor(new com.dorothy.v2ex.http.RecivedCooki...
public int ilPiuPovero() { int posizione = 0; for (int i = 0; i < (elencoGiocatori.size()); i++) for (int j = 0; j < (elencoGiocatori.size()); j++) if (elencoGiocatori.get(i).piuPovero(elencoGiocatori.get(j))) posizione = i; return posizione; }
private int ilPiuPovero() { int posizione = 0; for (int i = 0; i < (elencoGiocatori.size()); i++) for (int j = 0; j < (elencoGiocatori.size()); j++) if (elencoGiocatori.get(i).piuPovero(elencoGiocatori.get(j))) posizione = i; return posizione; }
public void handle(java.lang.String target, org.eclipse.jetty.client.Request baseRequest, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { baseRequest.setHandled(true); if (!(java.net.URI.create(baseReque...
public void handle(java.lang.String target, org.eclipse.jetty.client.Request baseRequest, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { baseRequest.setHandled(true); if (serverHost.equals(request.getSe...
public boolean onRequest(final android.content.Intent request, final android.content.Intent response) { org.deviceconnect.android.message.DConnectMessageService service = ((org.deviceconnect.android.message.DConnectMessageService) (getContext())); if (!(service.isUseLocalOAuth())) { org.deviceconnect.an...
public boolean onRequest(final android.content.Intent request, final android.content.Intent response) { org.deviceconnect.android.message.DConnectMessageService service = ((org.deviceconnect.android.message.DConnectMessageService) (getContext())); if (!(service.isUseLocalOAuth())) { org.deviceconnect.an...
public void onCreate(android.database.sqlite.SQLiteDatabase db) { java.lang.String query = (((((((((((("CREATE TABLE " + (com.example.erica.recsfromtechs.MovieDB.TABLE_MOVIES)) + " (") + (com.example.erica.recsfromtechs.MovieDB.COLUMN_TITLE)) + " TEXT PRIMARY KEY, ") + (com.example.erica.recsfromtechs.MovieDB.COLUM...
public void onCreate(android.database.sqlite.SQLiteDatabase db) { java.lang.String query = (((((((((((("CREATE TABLE " + (com.example.erica.recsfromtechs.MovieDB.TABLE_MOVIES)) + " (") + (com.example.erica.recsfromtechs.MovieDB.COLUMN_TITLE)) + " TEXT, ") + (com.example.erica.recsfromtechs.MovieDB.COLUMN_URATING)) ...
public void onClick(android.content.DialogInterface dialog, int which) { java.util.Calendar nextExecute = schedule.getNextExecute(); nextExecute.add(java.util.Calendar.MINUTE, java.lang.Integer.parseInt(input.getText().toString())); schedule.setNextExecute(nextExecute); scheduleHelper.update(schedule); ...
public void onClick(android.content.DialogInterface dialog, int which) { java.util.Calendar nextExecute = java.util.Calendar.getInstance(); nextExecute.add(java.util.Calendar.MINUTE, java.lang.Integer.parseInt(input.getText().toString())); schedule.setNextExecute(nextExecute); scheduleHelper.update(sche...
public void testReplaceRemovingParent() { com.google.gcloud.resourcemanager.LocalResourceManagerHelperTest.RESOURCE_MANAGER_HELPER.addProject(com.google.gcloud.resourcemanager.LocalResourceManagerHelperTest.PROJECT_WITH_PARENT); com.google.gcloud.resourcemanager.Project anotherProject = new com.google.gcloud.re...
public void testReplaceRemovingParent() { com.google.gcloud.resourcemanager.LocalResourceManagerHelperTest.RESOURCE_MANAGER_HELPER.addProject(com.google.gcloud.resourcemanager.LocalResourceManagerHelperTest.PROJECT_WITH_PARENT); com.google.gcloud.resourcemanager.Project anotherProject = new com.google.gcloud.re...
public void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.titulo); habilitaBluetoothSeExistir(); me.chester.minitruco.android.Publicidade.inicializa(this); preferences = android.preference.PreferenceManager.getDefaultSharedPreferences(th...
public void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.titulo); habilitaBluetoothSeExistir(); preferences = android.preference.PreferenceManager.getDefaultSharedPreferences(this); boolean mostraInstrucoes = preferences.getBoolean("mos...
protected void onPostExecute(java.lang.String res) { if ((responseCode) == 200) { mProgressDialog.dismiss(); java.lang.String destination_path = (android.os.Environment.getExternalStorageDirectory()) + "/HCircle"; openFolder(); }else { mProgressDialog.setMessage(res); mPr...
protected void onPostExecute(java.lang.String res) { if ((responseCode) == 200) { mProgressDialog.dismiss(); java.lang.String destination_path = (android.os.Environment.getExternalStorageDirectory()) + "/HCircle"; openFolder(context); }else { mProgressDialog.setMessage(res); ...
private int launchCompiler(com.siberika.idea.pascal.jps.compiler.PascalBackendCompiler compiler, com.siberika.idea.pascal.jps.compiler.CompilerMessager messager, java.lang.String[] cmdLine, java.io.File workingDir) throws java.io.IOException { java.lang.Process process = java.lang.Runtime.getRuntime().exec(cmdLine,...
private int launchCompiler(com.siberika.idea.pascal.jps.compiler.PascalBackendCompiler compiler, com.siberika.idea.pascal.jps.compiler.CompilerMessager messager, java.lang.String[] cmdLine, java.io.File workingDir) throws java.io.IOException { java.lang.Process process = java.lang.Runtime.getRuntime().exec(cmdLine,...
public static java.lang.String decToHexR(int n) { if (n < 16) { return "" + (chooseHex(n)); } return (Hexadecimal.decToHexR((n / 16))) + ("" + (chooseHex((n % 16)))); }
public static java.lang.String decToHexR(int n) { if (n < 16) { return "" + (Hexadecimal.chooseHex(n)); } return (Hexadecimal.decToHexR((n / 16))) + ("" + (Hexadecimal.chooseHex((n % 16)))); }
public void startArticle(android.view.View view) { android.widget.Toast.makeText(view.getContext(), java.lang.String.format(openingArticleText, titleView.getText().toString()), Toast.LENGTH_SHORT).show(); MinimalWebViewActivity.Builder.create(getContext()).setUrl(articleUrl).setNoCaret().setWebTipShare().startA...
public void startArticle(android.view.View view) { android.widget.Toast.makeText(view.getContext(), java.lang.String.format(openingArticleText, titleView.getText().toString()), Toast.LENGTH_SHORT).show(); MinimalWebViewActivity.Builder.create(getContext()).setUrl(articleUrl).setWebTipShare().startActivity(); }
public static org.ftcteam5206.utils.vectors.vector2d deadzone(org.ftcteam5206.utils.vectors.vector2d vector) { org.ftcteam5206.utils.vectors.vector2d output = null; output.x = vector.x; output.y = vector.y; if ((java.lang.Math.abs(vector.x)) < 0.1) output.x = 0; if ((java.lang.Math.abs(...
public static org.ftcteam5206.utils.vectors.vector2d deadzone(org.ftcteam5206.utils.vectors.vector2d vector) { org.ftcteam5206.utils.vectors.vector2d output = new org.ftcteam5206.utils.vectors.vector2d(); output.x = vector.x; output.y = vector.y; if ((java.lang.Math.abs(vector.x)) < 0.1) output....
private void moveCursor(java.lang.String s, java.awt.Point cursor) { switch (s) { case "up" : cursor.y -= 1; break; case "down" : cursor.y += 1; break; case "left" : cursor.x -= 1; break; case "right" : ...
private void moveCursor(java.lang.String s, java.awt.Point cursor) { if (s.equals("up")) { cursor.y -= 1; }else if (s.equals("down")) { cursor.y += 1; }else if (s.equals("left")) { cursor.x -= 1; }else if (s.equals("righ...
protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { request.setCharacterEncoding("utf-8"); float distance = calculateDistance(request); com.netcracker.ejb.PriceBeanLocal priceBean = ...
protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { request.setCharacterEncoding("UTF-8"); float distance = calculateDistance(request); com.netcracker.ejb.PriceBeanLocal priceBean = ...
private void runProcessorsHook(int pRenderLayerIndex) { for (final clearvolume.renderer.processors.Processor<?> lProcessor : mProcessorsMap.values()) if (lProcessor.isCompatibleProcessor(getClass())) { final clearvolume.renderer.processors.CUDAProcessor<?> lCUDAProcessor = ((clearvolume.renderer...
private void runProcessorsHook(int pRenderLayerIndex) { for (final clearvolume.renderer.processors.Processor<?> lProcessor : mProcessorsMap.values()) if (lProcessor.isCompatibleProcessor(getClass())) { if (lProcessor instanceof clearvolume.renderer.processors.CUDAProcessor) { fin...
private void flush(boolean fsync) throws java.io.IOException { if (fsync) { while (!(closed.get())) { try { randomAccessFile.getFD().sync(); break; } catch (java.nio.channels.ClosedChannelException e) { if (java.lang.Thread.currentThrea...
private void flush(boolean fsync) throws java.io.IOException { if (fsync) { while (!(closed.get())) { try { randomAccessFile.getFD().sync(); break; } catch (java.nio.channels.ClosedChannelException e) { ensureOpen(); } ...
private void add(java.lang.String key, java.lang.Object value, java.util.Map<java.lang.String, java.util.Set<java.lang.Object>> map) { java.util.Set<java.lang.Object> valueSet = map.get(key); if (valueSet == null) { valueSet = org.mockito.internal.util.collections.Sets.newSet(); }else { valu...
private void add(java.lang.String key, java.lang.Object value, java.util.Map<java.lang.String, java.util.Set<java.lang.Object>> map) { if (key != null) { java.util.Set<java.lang.Object> valueSet = map.get(key); if (valueSet == null) { valueSet = org.mockito.internal.util.collections.Sets...
public void actionPerformed(java.awt.event.ActionEvent e) { java.lang.String input = inputField.getText(); java.lang.String[] output = uiController.processUserInput(input); textArea.append((input + (ui.CommandLinePanel.NEXT_LINE))); for (java.lang.String s : output) { textArea.append((s + (ui.Co...
public void actionPerformed(java.awt.event.ActionEvent e) { java.lang.String input = inputField.getText(); java.lang.String[] output = uiController.processUserInput(input); textArea.append((input + (ui.CommandLinePanel.NEXT_LINE))); for (java.lang.String s : output) { textArea.append((s + (ui.Co...
public void tap(com.badlogic.gdx.scenes.scene2d.InputEvent event, float x, float y, int count, int button) { if ((!(player.animated)) && (!(player.isDead()))) { game.score.add(1); win(); font.setText(game.score); java.lang.System.out.println(("Score = " + (game.score))); play...
public void tap(com.badlogic.gdx.scenes.scene2d.InputEvent event, float x, float y, int count, int button) { if ((!(player.animated)) && (!(player.isDead()))) { game.score.add(1); font.setText(game.score); java.lang.System.out.println(("Score = " + (game.score))); player.move(); ...
public src.implementation.Grid compute() { boolean converged = false; int counter = 0; while (!converged) { converged = grid.serialComputation(); java.lang.System.out.println(((("sum at " + counter) + " is ") + (grid.getSum()))); try { assert (grid.getSum()) == 1.0; ...
public src.implementation.Grid compute() { boolean converged = false; int counter = 0; while (!converged) { converged = grid.serialComputation(); try { assert (grid.getSum()) == 1.0; } catch (java.lang.Exception e) { java.lang.System.out.println(("assert faile...
public static play.mvc.Result save() { play.data.Form<models.Game> form = new play.data.Form<models.Game>(models.Game.class).bindFromRequest(); models.Game game = form.get(); game.save(); controllers.GameController.createPlatforms(game); controllers.GameController.createDifficulties(game); contr...
public static play.mvc.Result save() { play.data.Form<models.Game> form = new play.data.Form<models.Game>(models.Game.class).bindFromRequest(); models.Game game = form.get(); controllers.GameController.createPlatforms(game); controllers.GameController.createDifficulties(game); controllers.GameContro...
public int getOffset(long when) { int unix = ((int) (when / 1000)); int transition = java.util.Arrays.binarySearch(mTransitions, unix); if (transition < 0) { transition = (~transition) - 1; if (transition < 0) { return mEarliestRawOffset; } } return (mRawOffset) +...
public int getOffset(long when) { long unix = when / 1000; int transition = java.util.Arrays.binarySearch(mTransitions, unix); if (transition < 0) { transition = (~transition) - 1; if (transition < 0) { return mEarliestRawOffset; } } return (mRawOffset) + ((mOffse...
public double findMinDistance(gameLogic.map.Station s1, gameLogic.map.Station s2) { for (gameLogic.dijkstra.DijkstraData d : dijkstras) { if ((d.getSource().getName().equals(s1.getName())) || (d.getTarget().getName().equals(s2.getName()))) { return d.getDistance(); } } return -1;...
public double findMinDistance(gameLogic.map.Station s1, gameLogic.map.Station s2) { for (gameLogic.dijkstra.DijkstraData d : dijkstras) { if ((d.getSource().getName().equals(s1.getName())) && (d.getTarget().getName().equals(s2.getName()))) { return d.getDistance(); } } return -1;...
public void onBackPressed() { backpress = (backpress) + 1; android.widget.Toast.makeText(getApplicationContext(), " Press Back again to Exit ", Toast.LENGTH_SHORT).show(); if ((backpress) > 1) { session1.logoutUser(); this.finish(); } }
public void onBackPressed() { backpress = (backpress) + 1; if (((backpress) < 1) || ((backpress) == 1)) { android.widget.Toast.makeText(getApplicationContext(), " Press Back again to Exit ", Toast.LENGTH_SHORT).show(); } if ((backpress) > 1) { session1.logoutUser(); this.finish()...
public void test_at_hour() { com.todoroo.astrid.service.TaskService taskService = new com.todoroo.astrid.service.TaskService(); com.todoroo.astrid.data.Task task = new com.todoroo.astrid.data.Task(); com.todoroo.astrid.data.Task nothing = new com.todoroo.astrid.data.Task(); java.lang.String testTitle = ...
public void test_at_hour() { com.todoroo.astrid.service.TaskService taskService = new com.todoroo.astrid.service.TaskService(); com.todoroo.astrid.data.Task task = new com.todoroo.astrid.data.Task(); java.lang.String testTitle = "Jog at 8 PM."; insertTitleAddTask(testTitle, task, taskService); java....
protected void onPostExecute(com.QuarkLabs.BTCeClient.api.CallResult<com.QuarkLabs.BTCeClient.api.AccountInfo> result) { java.lang.String notificationText; if (result.isSuccess()) { notificationText = getString(R.string.FundsInfoUpdatedtext); if (isVisible()) { refreshFundsView(resul...
protected void onPostExecute(com.QuarkLabs.BTCeClient.api.CallResult<com.QuarkLabs.BTCeClient.api.AccountInfo> result) { java.lang.String notificationText; if (!(isVisible())) { return ; } if (result.isSuccess()) { notificationText = getString(R.string.FundsInfoUpdatedtext); refr...
public int calcSurfacePreference(boolean pavedSurface) { int preference = 0; if ((profileManager.prefersPavedSurface()) && pavedSurface) preference = -2; else if ((!(profileManager.prefersPavedSurface())) && (!pavedSurface)) preference = -2; java.lang.System.out...
public int calcSurfacePreference(boolean pavedSurface) { int preference = 0; if ((profileManager.prefersPavedSurface()) && (!pavedSurface)) preference = -2; else if ((!(profileManager.prefersPavedSurface())) && pavedSurface) preference = -2; java.lang.System.out...
public void setLog(java.lang.String log) { java.lang.String userNo = userPreferences.getUserNo(); sendData = new org.json.JSONObject(); try { sendData.put("userNo", userNo); sendData.put("log", log); } catch (org.json.JSONException e) { e.printStackTrace(); } requestNetwo...
public void setLog(java.lang.String log) { java.lang.String userNo = userPreferences.getUserNo(); sendData = new org.json.JSONObject(); try { sendData.put("userNo", userNo); sendData.put("log", log); } catch (org.json.JSONException e) { e.printStackTrace(); } requestNetwo...
private void dropCoin(logic.BouncingCircle circle) { boolean bigMoney = random.nextBoolean(); logic.Coin someCoin = new logic.Coin(circle.getCenterX(), circle.getCenterY(), bigMoney); droppedCoins.add(someCoin); if (mainGame.isLanMultiplayer()) { mainGame.getHost().updateCoinsAdd(someCoin); ...
private void dropCoin(logic.BouncingCircle circle) { boolean bigMoney = random.nextBoolean(); logic.Coin someCoin = new logic.Coin(circle.getCenterX(), circle.getCenterY(), bigMoney); synchronized(droppedCoins) { droppedCoins.add(someCoin); } if (mainGame.isLanMultiplayer()) { mainGa...
public void onComplete(java.lang.String response) { super.onComplete(response); if (!(android.text.TextUtils.isEmpty(response))) { if (response.startsWith("{\"comments\"")) { mCommentList = com.sina.weibo.sdk.openapi.models.CommentList.parse(response); if (null != (mCommentList.c...
public void onComplete(java.lang.String response) { super.onComplete(response); if (!(android.text.TextUtils.isEmpty(response))) { if (response.startsWith("{\"comments\"")) { mCommentList = com.sina.weibo.sdk.openapi.models.CommentList.parse(response); if (null != (mCommentList.c...
private void AddTextFields() { newField1.setVisible(false); newField2.setVisible(false); newField3.setVisible(false); newField4.setVisible(false); if ((fxml_controller.MultiplayerController02.players) >= 2) { newField1.setVisible(true); newField2.setVisible(true); } if ((fxml...
private void AddTextFields() { newField1.setVisible(false); newField2.setVisible(false); newField3.setVisible(false); newField4.setVisible(false); if ((fxml_controller.MultiplayerController02.players) >= 2) { newField1.setVisible(true); newField2.setVisible(true); } if ((fxml...
public com.mikepenz.fastadapter.adapters.ItemAdapter<Item> remove(int position) { if ((mOriginalItems) != null) { mItems.remove((position - (com.mikepenz.fastadapter.adapters.ItemAdapter.ItemFilter.getFastAdapter().getPreItemCount(position)))); performFiltering(mConstraint); return this; ...
public com.mikepenz.fastadapter.adapters.ItemAdapter<Item> remove(int position) { if ((mOriginalItems) != null) { mOriginalItems.remove((position - (com.mikepenz.fastadapter.adapters.ItemAdapter.ItemFilter.getFastAdapter().getPreItemCount(position)))); performFiltering(mConstraint); return t...
private void saveDownloadSize(java.lang.String url, long size) { android.content.SharedPreferences sp = org.lzh.framework.updatepluginlib.UpdateConfig.getConfig().getContext().getSharedPreferences(org.lzh.framework.updatepluginlib.business.DefaultDownloadWorker.KEY_DOWN_SIZE, Context.MODE_PRIVATE); android.cont...
private void saveDownloadSize(java.lang.String url, long size) { android.content.SharedPreferences sp = org.lzh.framework.updatepluginlib.UpdateConfig.getConfig().getContext().getSharedPreferences(org.lzh.framework.updatepluginlib.business.DefaultDownloadWorker.KEY_DOWN_SIZE, Context.MODE_PRIVATE); android.cont...
public void onDialogPositiveClick(final android.app.DialogFragment dialog, final int position, final java.lang.String text) { if (position == 0) { for (int i = (listNames.size()) - 1; i > 1; i--) { backupSingleList(backupNames, listNames.get(i)); } }else { backupSingleList(ba...
public void onDialogPositiveClick(final android.app.DialogFragment dialog, final int position, final java.lang.String text) { if (position == 0) { for (int i = (listNames.size()) - 1; i > 0; i--) { backupSingleList(backupNames, listNames.get(i)); } }else { backupSingleList(ba...
public static void main(java.lang.String[] args) { java.lang.String det = "PCAL"; org.clas.fcmon.ec.ECMon monitor = new org.clas.fcmon.ec.ECMon(det); org.clas.fcmon.ec.ECMon.app.setPluginClass(monitor); org.clas.fcmon.ec.ECMon.app.makeGUI(); org.clas.fcmon.ec.ECMon.app.mode7Emulation.init("/daq/fadc...
public static void main(java.lang.String[] args) { java.lang.String det = "PCAL"; org.clas.fcmon.ec.ECMon monitor = new org.clas.fcmon.ec.ECMon(det); org.clas.fcmon.ec.ECMon.app.setPluginClass(monitor); org.clas.fcmon.ec.ECMon.app.makeGUI(); monitor.makeApps(); monitor.addCanvas(); monitor.i...
public boolean withdraw(float amount) { if (((getState()) == (State.OPEN)) && (amount > 0.0F)) { balance = (balance) - amount; (numWithdraws)++; if ((numWithdraws) > 3) balance = (balance) - 1.0F; if ((balance) <= 0.0F) { setState(State.OVERDRAWN); ...
public boolean withdraw(float amount) { if (((getState()) == (State.OPEN)) && (amount > 0.0F)) { balance = (balance) - amount; (numWithdraws)++; if ((numWithdraws) > 3) balance = (balance) - 1.0F; if ((balance) < 0.0F) { setState(State.OVERDRAWN); ...
void CalcCheckSum(byte[] bytes) { bytes[7] = 0; for (int i = 0; i < 6; i++) { bytes[7] += bytes[i]; } bytes[7] = ((byte) (((bytes[7]) & 255) ^ 165)); }
void CalcCheckSum(byte[] bytes) { bytes[7] = 0; for (int i = 0; i < 7; i++) { bytes[7] += bytes[i]; } bytes[7] = ((byte) (((bytes[7]) & 255) ^ 165)); }
public void updateInstructions() { int instSize = getActiveRobot().getActiveProg().getInstructions().size(); getActiveRobot().setActiveInstIdx(min(getActiveRobot().getActiveInstIdx(), (instSize - 1))); contents.setLineIdx(min(getActiveRobot().getActiveInstIdx(), ((ITEMS_TO_SHOW) - 1))); contents.setColu...
public void updateInstructions() { int instSize = getActiveRobot().getActiveProg().getInstructions().size(); getActiveRobot().setActiveInstIdx(min(getActiveRobot().getActiveInstIdx(), instSize)); lastScreen(); }
private org.apache.hive.jdbc.HiveConnection getHiveConnection(com.google.common.base.Optional<java.lang.String> proxyUser) throws java.lang.ClassNotFoundException, java.sql.SQLException { java.lang.Class.forName("org.apache.hive.jdbc.HiveDriver"); com.google.common.base.Preconditions.checkArgument(this.state.co...
private org.apache.hive.jdbc.HiveConnection getHiveConnection(com.google.common.base.Optional<java.lang.String> proxyUser) throws java.lang.ClassNotFoundException, java.sql.SQLException { java.lang.Class.forName("org.apache.hive.jdbc.HiveDriver"); com.google.common.base.Preconditions.checkArgument(this.state.co...
private static void compareHigh(java.util.List<java.lang.Integer> x, java.util.List<java.lang.Integer> y) { int player1High = week1Problems.P6.findHighCard(x); int player2High = week1Problems.P6.findHighCard(y); int player1WinCount = 0; int player2WinCount = 0; if (player1High > player2High) { ...
private static void compareHigh(java.util.List<java.lang.Integer> x, java.util.List<java.lang.Integer> y) { int player1High = week1Problems.P6.findHighCard(x); int player2High = week1Problems.P6.findHighCard(y); int player1WinCount = 0; int player2WinCount = 0; if (player1High > player2High) { ...
public void moveTo(cs242.chess.ChessSpace newSpace) { cs242.chess.pieces.ChessPiece targetPiece = newSpace.getPiece(); if (targetPiece != null) { newSpace.getPiece().setSpace(null); } newSpace.setPiece(this); getSpace().setPiece(null); setSpace(newSpace); }
public void moveTo(cs242.chess.ChessSpace newSpace) { cs242.chess.pieces.ChessPiece targetPiece = newSpace.getPiece(); if (targetPiece != null) { newSpace.getPiece().setSpace(null); } newSpace.setPiece(this); if ((getSpace()) != null) { getSpace().setPiece(null); } setSpace(n...
private boolean isAscii(int start, int end, io.netty.buffer.DrillBuf buffer) { for (int i = start; i <= end; i++) { byte bb = buffer.getByte(i); if (bb < 0) { return false; } } return true; }
private boolean isAscii(int start, int end, io.netty.buffer.DrillBuf buffer) { for (int i = start; i < end; i++) { byte bb = buffer.getByte(i); if (bb < 0) { return false; } } return true; }
public void onRatingChanged(android.widget.RatingBar ratingBar, float rating, boolean fromUser) { int tag = ((int) (ratingBar.getTag())); if (tag == 0) { totalScore = ((int) (rating)); }else if (tag == 1) { teacherScore = ((int) (rating)); }else { envScore = (...
public void onRatingChanged(android.widget.RatingBar ratingBar, float rating, boolean fromUser) { int tag = ((java.lang.Integer) (ratingBar.getTag())).intValue(); if (tag == 0) { totalScore = ((int) (rating)); }else if (tag == 1) { teacherScore = ((int) (rating)); }else {...
public void loadDB() { pm.getPoolUnassigned().addAll(dbf.getAllSubjects()); java.lang.System.out.println(pm.getPoolUnassigned().size()); java.util.List<dk.cphbusiness.xpscrumproject.Pool> pool = dbf.getPools(); pm.setPools(pool.get(0), pool.get(1), pool.get(2), pool.get(3)); }
public void loadDB() { pm.getPoolUnassigned().addAll(dbf.getAllSubjects()); java.util.List<dk.cphbusiness.xpscrumproject.Pool> pool = dbf.getPools(); pm.setPools(pool.get(0), pool.get(1), pool.get(2), pool.get(3)); }
public void add(java.lang.String id, com.couchbase.client.java.Bucket bucket, java.lang.Object object) throws com.fasterxml.jackson.core.JsonProcessingException { java.util.Objects.requireNonNull(id); java.util.Objects.requireNonNull(bucket); java.util.Objects.requireNonNull(object); com.couchbase.clien...
public void add(java.lang.String id, com.couchbase.client.java.Bucket bucket, java.lang.Object object) throws com.fasterxml.jackson.core.JsonProcessingException { java.util.Objects.requireNonNull(id); java.util.Objects.requireNonNull(bucket); java.util.Objects.requireNonNull(object); com.couchbase.clien...
protected java.lang.String getContactsString() { java.lang.String s = ""; java.util.Iterator<fry.oldschool.utils.Contact> it = contacts.iterator(); if (it.hasNext()) { s += it.next().id; } while (it.hasNext()) { s += (SEP_1) + (it.next().id); } if (s.isEmpty()) { ret...
protected java.lang.String getContactsString() { if ((contacts.size()) == 0) { return "n"; } java.lang.String s = ""; java.util.Iterator<fry.oldschool.utils.Contact> it = contacts.iterator(); if (it.hasNext()) { s += it.next().id; } while (it.hasNext()) { s += (SEP_1)...
public boolean sendKeyEvent(android.view.KeyEvent event) { boolean shouldConsume = false; if ((event.getAction()) == (android.view.KeyEvent.ACTION_DOWN)) { switch (event.getKeyCode()) { case android.view.KeyEvent.KEYCODE_DEL : if ((getSelectionStart()) == 0) { ...
public boolean sendKeyEvent(android.view.KeyEvent event) { boolean shouldConsume = false; if ((event.getAction()) == (android.view.KeyEvent.ACTION_DOWN)) { switch (event.getKeyCode()) { case android.view.KeyEvent.KEYCODE_DEL : if ((getSelectionStart()) == 0) { ...
protected void saveLoginSetup() { loginPrefs = getSharedPreferences("loginPrefs", com.example.noah.onthefly.activities.MODE_PRIVATE); loginPrefsEditor = loginPrefs.edit(); saveLogin = loginPrefs.getBoolean("saveLogin", false); usernameField.setText(loginPrefs.getString("username", "")); passwordFiel...
protected void saveLoginSetup() { loginPrefs = getSharedPreferences("loginPrefs", com.example.noah.onthefly.activities.MODE_PRIVATE); loginPrefsEditor = loginPrefs.edit(); saveLogin = loginPrefs.getBoolean("saveLogin", false); usernameField.setText(loginPrefs.getString("username", "")); passwordFiel...
public java.lang.String getStatistics() throws java.io.IOException { java.lang.StringBuilder stats = new java.lang.StringBuilder(256); stats.append((("The maximum depth of the webpage is: " + (edu.virginia.cs4240.webmetrics.modules.PageModule.maxTreeDepth(document))) + "\n")); stats.append(pageSize(url)); ...
public java.lang.String getStatistics() throws java.io.IOException { java.lang.StringBuilder stats = new java.lang.StringBuilder(256); stats.append((("The maximum depth of the webpage is: " + (edu.virginia.cs4240.webmetrics.modules.PageModule.maxTreeDepth(document))) + "\n")); stats.append(pageSize(url)); ...
public void setEnable(boolean enable) { java.lang.System.out.println(("setEnable" + enable)); if (enable) { graphModel.addGraphListener(this); }else { graphModel.removeGraphListener(this); refresh.set(false); } if (!(isAlive())) { start(); } }
public void setEnable(boolean enable) { if (enable) { graphModel.addGraphListener(this); }else { graphModel.removeGraphListener(this); refresh.set(false); } if (!(isAlive())) { start(); } }
public static java.lang.String getStringProperty(java.util.Map<java.lang.String, ?> props, java.lang.String name, java.lang.String defaultValue) { java.lang.Object value = (org.apache.sshd.common.util.GenericUtils.isEmpty(props)) ? null : props.get(name); java.lang.String s = java.util.Objects.toString(value); ...
public static java.lang.String getStringProperty(java.util.Map<java.lang.String, ?> props, java.lang.String name, java.lang.String defaultValue) { java.lang.Object value = (org.apache.sshd.common.util.GenericUtils.isEmpty(props)) ? null : props.get(name); java.lang.String s = java.util.Objects.toString(value, n...
public boolean contains(gamemodel.ScreenComponent comp, int x, int y) { return (((x >= 0) && (y >= 0)) && ((x + (comp.getWidth())) <= (getWidth()))) && ((y + (comp.getWidth())) <= (getHeight())); }
public boolean contains(gamemodel.ScreenComponent comp, int x, int y) { return (((x >= 0) && (y >= 0)) && ((x + (comp.getWidth())) <= ((getWidth()) + 1))) && ((y + (comp.getWidth())) <= ((getHeight()) + 1)); }
private void logInToVideoCallService() { if (!(getSinchServiceInterface().isStarted())) { getSinchServiceInterface().startClient(settings.getString(Constants.CLEAN_EMAIL, "")); showSpinner(); }else { mSpinner.dismiss(); } }
private void logInToVideoCallService() { if (!(getSinchServiceInterface().isStarted())) { getSinchServiceInterface().startClient(settings.getString(Constants.CLEAN_EMAIL, "")); showSpinner(); }else { if ((mSpinner) != null) { mSpinner.dismiss(); } } }
public boolean isEnabled() { if ((file.exists()) && (!(file.canRead()))) return false; return (file.SyncropItem.isFileEnabled(file)) && (file.SyncropItem.isPathEnabled(path, owner)); }
public boolean isEnabled() { if ((file.exists()) && (!(file.canRead()))) return false; if (path.isEmpty()) return true; return (file.SyncropItem.isFileEnabled(file)) && (file.SyncropItem.isPathEnabled(path, owner)); }
public boolean onOptionsItemSelected(android.view.MenuItem item) { super.onOptionsItemSelected(item); if ((item.getItemId()) == (R.id.main_logout_btn)) { com.google.firebase.auth.FirebaseAuth.getInstance().signOut(); android.content.Intent startIntent = new android.content.Intent(this, com.mobiv...
public boolean onOptionsItemSelected(android.view.MenuItem item) { if ((item.getItemId()) == (R.id.main_logout_btn)) { com.google.firebase.auth.FirebaseAuth.getInstance().signOut(); android.content.Intent startIntent = new android.content.Intent(this, com.mobiversal.practica.biaflatalking.StartActiv...
<K, V> org.ehcache.Ehcache<K, V> createNewEhcache(final java.lang.String alias, final org.ehcache.config.CacheConfiguration<K, V> config, final java.lang.Class<K> keyType, final java.lang.Class<V> valueType, java.util.Deque<org.ehcache.Releasable> releasables) { final org.ehcache.Ehcache<K, V> ehcache = super.creat...
<K, V> org.ehcache.Ehcache<K, V> createNewEhcache(final java.lang.String alias, final org.ehcache.config.CacheConfiguration<K, V> config, final java.lang.Class<K> keyType, final java.lang.Class<V> valueType) { final org.ehcache.Ehcache<K, V> ehcache = super.createNewEhcache(alias, config, keyType, valueType); c...
public void setPercent(double percent) { this.percent = percent; if (percent < 100) { div.getElement().getStyle().setWidth(percent, Unit.PCT); }else { com.google.gwt.core.client.GWT.log("Progress percent must not exceed to 100 percent.", new java.lang.RuntimeException()); } }
public void setPercent(double percent) { this.percent = percent; if (percent <= 100) { div.getElement().getStyle().setWidth(percent, Unit.PCT); }else { com.google.gwt.core.client.GWT.log("Progress percent must not exceed to 100 percent.", new java.lang.RuntimeException()); } }
public boolean dispatchKeyEvent(android.view.KeyEvent event) { if (dismissOnBackPress) { if (((event.getAction()) == (android.view.KeyEvent.ACTION_UP)) && ((event.getKeyCode()) == (android.view.KeyEvent.KEYCODE_BACK))) { dismiss(); return true; } } return super.dispat...
public boolean dispatchKeyEvent(android.view.KeyEvent event) { if ((dismissOnBackPress) && ((event.getKeyCode()) == (android.view.KeyEvent.KEYCODE_BACK))) { if ((event.getAction()) == (android.view.KeyEvent.ACTION_UP)) { dismiss(); } return true; } return super.dispatchKe...
protected void onPostExecute(java.lang.Void result) { super.onPostExecute(result); if (pDialog.isShowing()) pDialog.dismiss(); android.widget.ListAdapter adapter = new android.widget.SimpleAdapter(this, contactList, R.layout.hwlist_item, new java.lang.String[]{ "Class" , "Subject" , "Title" , "...
protected void onPostExecute(java.lang.Void result) { super.onPostExecute(result); if (pDialog.isShowing()) pDialog.dismiss(); adapter = new android.widget.SimpleAdapter(this, contactList, R.layout.hwlist_item, new java.lang.String[]{ "Class" , "Subject" , "Title" , "Description" , "postDate" ,...
public boolean containsValue(java.lang.Object value) { for (ua.yandex.prioritymap.PriorityHashMap.Node<K, V> currentNode : table) { while (currentNode != null) { V nodeValue = currentNode.value; if (java.util.Objects.equals(value, nodeValue)) { return true; ...
public boolean containsValue(java.lang.Object value) { ua.yandex.prioritymap.PriorityHashMap.Node<K, V> currentNode; for (ua.yandex.prioritymap.PriorityHashMap.Node<K, V> node : table) { currentNode = node; while (currentNode != null) { V nodeValue = currentNode.value; if...
public org.sentilo.platform.common.domain.AlarmInputMessage parseRequest(final org.sentilo.platform.server.request.SentiloRequest request) throws org.sentilo.platform.common.exception.PlatformException { final org.sentilo.platform.common.domain.AlarmInputMessage inputMessage = ((org.sentilo.platform.common.domain.A...
public org.sentilo.platform.common.domain.AlarmInputMessage parseRequest(final org.sentilo.platform.server.request.SentiloRequest request) throws org.sentilo.platform.common.exception.PlatformException { final org.sentilo.platform.common.domain.AlarmInputMessage inputMessage = ((org.sentilo.platform.common.domain.A...
public void onSuccess(com.simpleql.shared.datamodel.DateElementCounter[] result) { com.simpleql.shared.datamodel.DateResolution resolution = com.simpleql.shared.datamodel.DateResolution.Year; for (int i = 0; i < (result.length); i++) { model.insert(result[i], resolution); } java.lang.System.out....
public void onSuccess(com.simpleql.shared.datamodel.DateElementCounter[] result) { com.simpleql.shared.datamodel.DateResolution resolution = com.simpleql.shared.datamodel.DateResolution.Year; for (int i = 0; i < (result.length); i++) { model.insert(result[i], resolution, false); } java.lang.Syst...
private void loadResources() throws java.lang.Exception { for (java.lang.String name : this.defs.keySet()) { try { autorest.generator.Resource res = new autorest.generator.Resource(name, this.defs.get(name).clone(), this); this.resources.put(name, res); } catch (java.lang.Exc...
private void loadResources() throws java.lang.Exception { for (java.lang.String name : this.defs.keySet()) { try { autorest.generator.Resource res = new autorest.generator.Resource(name, this.defs.get(name).clone(), this); this.resources.put(name, res); } catch (java.lang.Exc...
private org.eclipse.jgit.revwalk.RevWalk getInitializedRevWalk(yousei.Repository repo, org.eclipse.jgit.revwalk.RevSort revSort) throws java.io.IOException { org.eclipse.jgit.revwalk.RevWalk rw = new org.eclipse.jgit.revwalk.RevWalk(repo); yousei.AnyObjectId headId; headId = repo.resolve(Constants.HEAD); ...
public org.eclipse.jgit.revwalk.RevWalk getInitializedRevWalk(yousei.Repository repo, org.eclipse.jgit.revwalk.RevSort revSort) throws java.io.IOException { org.eclipse.jgit.revwalk.RevWalk rw = new org.eclipse.jgit.revwalk.RevWalk(repo); yousei.AnyObjectId headId; headId = repo.resolve(Constants.HEAD); ...
public static boolean isCdma(int radioTechnology) { return (((((((radioTechnology == (android.telephony.ServiceState.RIL_RADIO_TECHNOLOGY_IS95A)) || (radioTechnology == (android.telephony.ServiceState.RIL_RADIO_TECHNOLOGY_IS95B))) || (radioTechnology == (android.telephony.ServiceState.RIL_RADIO_TECHNOLOGY_1xRTT))) ...
public static boolean isCdma(int radioTechnology) { return ((((((radioTechnology == (android.telephony.ServiceState.RIL_RADIO_TECHNOLOGY_IS95A)) || (radioTechnology == (android.telephony.ServiceState.RIL_RADIO_TECHNOLOGY_IS95B))) || (radioTechnology == (android.telephony.ServiceState.RIL_RADIO_TECHNOLOGY_1xRTT))) |...
private void attack1() { skill = 0; comboing = true; targetX = (((rand.nextDouble()) * (Gdx.graphics.getWidth())) / 2) + ((Gdx.graphics.getWidth()) / 3); targetY = (Gdx.graphics.getHeight()) / 2; startX = (Gdx.graphics.getWidth()) / 20; startTime = com.badlogic.gdx.utils.TimeUtils.millis(); ...
private void attack1() { comboing = true; targetX = (((rand.nextDouble()) * (Gdx.graphics.getWidth())) / 2) + ((Gdx.graphics.getWidth()) / 3); targetY = (Gdx.graphics.getHeight()) / 2; startX = (Gdx.graphics.getWidth()) / 20; startTime = com.badlogic.gdx.utils.TimeUtils.millis(); allowedTime = 3...
public static org.joda.time.DateTime dataFixer(proxi.model.objects.Article article, proxi.model.objects.Commentary commentary) { if (article.getDiary().contains("20minutos.es")) return proxi.model.DataFixer.minutosCommentaryDateText2DateTime(commentary); else if (article.getDiary().contains("elp...
public static org.joda.time.DateTime dataFixer(proxi.model.objects.Article article, proxi.model.objects.Commentary commentary) { if (article.getDiary().contains("20minutos.es")) return proxi.model.DataFixer.paisCommentaryDateText2DateTime(commentary); else if (article.getDiary().contains("elpais...
public android.view.View onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState) { android.view.View view = inflater.inflate(R.layout.fragment_drawn_paths, container, false); mDrawnPathList = ((android.widget.ListView) (view.findViewById(R.id.li...
public android.view.View onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState) { android.view.View view = inflater.inflate(R.layout.fragment_drawn_paths, container, false); mDrawnPathList = ((android.widget.ListView) (view.findViewById(R.id.li...
public void doInitialViewsLocation() { mForegroundView = ((com.xenione.libs.swipemaker.SwipeLayout) (findViewById(R.id.foregroundView))); mBg = ((android.widget.ImageView) (findViewById(R.id.bg_disc))); mDelete = findViewById(R.id.delete); mAction = findViewById(R.id.action); mForegroundView.anchor(...
public void doInitialViewsLocation() { mForegroundView = ((com.xenione.libs.swipemaker.SwipeLayout) (findViewById(R.id.foregroundView))); mBg = ((android.widget.ImageView) (findViewById(R.id.bg_disc))); mDelete = findViewById(R.id.delete); mAction = findViewById(R.id.action); mForegroundView.anchor(...
public void testJsonObjectEncodePrettily() { runJavaScript("json/JsObject", "encodePrettily"); org.junit.Assert.assertEquals("{\"foo\":\"foo_value\"}", io.vertx.codetrans.JsonTest.o); runGroovy("json/JsObject", "encodePrettily"); org.junit.Assert.assertEquals("[foo:foo_value]", io.vertx.codetrans.JsonTe...
public void testJsonObjectEncodePrettily() { runJavaScript("json/JsObject", "encodePrettily"); org.junit.Assert.assertEquals("{\"foo\":\"foo_value\"}", io.vertx.codetrans.JsonTest.o); runGroovy("json/JsObject", "encodePrettily"); org.junit.Assert.assertEquals("{\"foo\":\"foo_value\"}", io.vertx.codetran...
public void pushConfiguration(java.lang.String[] servers, java.lang.String[] change) { for (int i = 0; i < (servers.length); i++) { pushConfiguration((((servers[i]) + ",") + change)); } }
public void pushConfiguration(java.lang.String[] servers, java.lang.String[] change) { for (int i = 0; i < (servers.length); i++) { for (int j = 0; j < (change.length); j++) { pushConfiguration((((servers[i]) + ",") + (change[j]))); } } }
public java.lang.String entityNameFromClassName(java.lang.String className) { if (!(useHibernateFullEntityNames)) { for (javax.persistence.metamodel.EntityType<?> entity : metamodel.getEntities()) if (entity.getJavaType().getName().equals(className)) return entity.getName(); ...
public java.lang.String entityNameFromClassName(java.lang.String className) { for (javax.persistence.metamodel.EntityType<?> entity : metamodel.getEntities()) { if (entity.getJavaType().getName().equals(className)) { if (!(useHibernateFullEntityNames)) return entity.getName(); ...
protected void interpretSignal(battlecode.common.Signal message) { int actionCode = (message.getMessage()[0]) % (trashboys.Radio.GROUP_SCALE); int messageCode = (message.getMessage()[0]) / (trashboys.Radio.GROUP_SCALE); switch (actionCode) { case trashboys.Radio.RALLY : rc.setIndicatorSt...
protected void interpretSignal(battlecode.common.Signal message) { int actionCode = (message.getMessage()[0]) % (trashboys.Radio.GROUP_SCALE); int messageCode = (message.getMessage()[0]) / (trashboys.Radio.GROUP_SCALE); switch (actionCode) { case trashboys.Radio.RALLY : owner.setDestinat...
public int listen() { ++(this.listenCount); int ret; commLock.acquire(); while (!(inTransaction)) { if ((speakCount) > 0) speakQueue.wake(); listenQueue.sleep(); } ret = msg; inTransaction = false; if (((listenCount) > 0) && ((speakCount) > 0)) ...
public int listen() { int ret; commLock.acquire(); ++(this.listenCount); while (!(inTransaction)) { if ((speakCount) > 0) speakQueue.wake(); listenQueue.sleep(); } ret = msg; inTransaction = false; --(listenCount); if (((listenCount) > 0) && ((sp...
public void controlEvent(controlP5.ControlEvent theEvent) { super.controlEvent(theEvent); switch (theEvent.getName()) { case "shapeSelect" : this.shape.setShapeIndex(((int) (theEvent.getValue()))); this.updateSliders(); java.lang.System.out.println(theEvent.getValue()...
public void controlEvent(controlP5.ControlEvent theEvent) { super.controlEvent(theEvent); switch (theEvent.getName()) { case "shapeSelect" : this.shape.setShapeIndex(((int) (theEvent.getValue()))); this.updateSliders(); java.lang.System.out.println(theEvent.getValue()...
public void run() { if ((bitstring[m]) == "1") { turnOnFlash(); }else if ((bitstring[m]) == "0") { turnOffFlash(); } (m)++; int temp; temp = m; t.setText((("Sending element " + temp) + " of the string.")); delay(); }
public void run() { if ((bitstring[m]) == "1") { turnOnFlash(); }else if ((bitstring[m]) == "0") { turnOffFlash(); } (m)++; int temp; temp = m; t.setText((("Sending element " + temp) + " of the string.")); }
public static java.util.ArrayList<stock.theme.StockTheme> findCompanyWithTheme(java.lang.String theme) { java.util.ArrayList<stock.theme.StockTheme> companyList = new java.util.ArrayList<stock.theme.StockTheme>(); for (int i = 0; i < (stock.market.StockMarketManager.stockCompanyList.size()); i++) { if (...
public static java.util.ArrayList<stock.theme.StockTheme> findCompanyWithTheme(java.lang.String theme) { synchronized(stock.market.StockMarketManager.stockCompanyList) { java.util.ArrayList<stock.theme.StockTheme> companyList = new java.util.ArrayList<stock.theme.StockTheme>(); for (int i = 0; i < (...
private void processAlert(org.bitcoinj.core.AlertMessage m) { try { if (m.isSignatureValid()) { org.bitcoinj.core.Peer.log.info("Received alert from peer {}: {}", this, m.getStatusBar()); }else { org.bitcoinj.core.Peer.log.warn("Received alert with invalid signature from peer...
protected void processAlert(org.bitcoinj.core.AlertMessage m) { try { if (m.isSignatureValid()) { org.bitcoinj.core.Peer.log.info("Received alert from peer {}: {}", this, m.getStatusBar()); }else { org.bitcoinj.core.Peer.log.warn("Received alert with invalid signature from pe...
public void before() { path = "src/test/data/excelparsertestfiles/"; cols = new java.util.ArrayList<context.healthinformatics.Parser.Column>(); cols.add(new context.healthinformatics.Parser.Column(2, "value", "Integer")); cols.add(new context.healthinformatics.Parser.Column(context.healthinformatics.Par...
public void before() { path = "src/test/data/excelparsertestfiles/"; cols = new java.util.ArrayList<context.healthinformatics.Parser.Column>(); cols.add(new context.healthinformatics.Parser.Column(0, "value", "Integer")); cols.add(new context.healthinformatics.Parser.Column(1, "date", "String")); co...
public void destroy() { java.lang.Integer counter = org.romaframework.core.flow.ObjectContext.getInstance().getContextComponent(org.romaframework.core.RomaContext.CTX_CREATED); if (counter == 0) { java.util.List<org.romaframework.core.flow.ContextLifecycleListener> contextListener = org.romaframework.co...
public void destroy() { java.lang.Integer counter = org.romaframework.core.flow.ObjectContext.getInstance().getContextComponent(org.romaframework.core.RomaContext.CTX_CREATED); if (counter == 0) { try { java.util.List<org.romaframework.core.flow.ContextLifecycleListener> contextListener = or...
public <T> java.lang.Object getEntryForMapping(T index) { java.lang.Object result = null; try { result = ((hashtable.get(index)) == null) ? null : hashtable.get(index); } catch (java.io.IOException e) { java.lang.System.out.println(("Database cannot find object" + index)); e.printSta...
public <T> java.lang.Object getEntryForMapping(T index) { java.lang.Object result = new java.lang.Object(); try { if ((hashtable.get(index)) != null) { result = hashtable.get(index); } } catch (java.io.IOException e) { java.lang.System.out.println(("Database cannot find o...
public java.util.List<com.mmontes.model.entity.UserAccount> findUserAccountsByFBUserIDs(java.util.List<java.lang.Long> FBUserIDs) { java.lang.String friendFBIds = com.mmontes.model.util.QueryUtils.getINvalues(FBUserIDs); java.lang.String queryString = "SELECT ua FROM UserAccount ua WHERE ua.facebookUserId IN " ...
public java.util.List<com.mmontes.model.entity.UserAccount> findUserAccountsByFBUserIDs(java.util.List<java.lang.Long> FBUserIDs) { if ((FBUserIDs == null) || (FBUserIDs.isEmpty())) { return new java.util.ArrayList<>(); } java.lang.String friendFBIds = com.mmontes.model.util.QueryUtils.getINvalues(F...
public static java.lang.String getFileExtension(@javax.validation.constraints.NotNull java.io.File file) { java.lang.System.out.println("VFSImpl getFileExtension is called"); java.lang.String fileName = file.getName(); int i = fileName.lastIndexOf('.'); if (i > 0) { return fileName.substring((i ...
private static java.lang.String getFileExtension(@javax.validation.constraints.NotNull java.io.File file) { java.lang.String fileName = file.getName(); int i = fileName.lastIndexOf('.'); if (i > 0) { return fileName.substring((i + 1)); } return ""; }
public boolean sendEmail(java.lang.String targetEmail, java.lang.String text, java.lang.String userName, java.lang.String region) { java.lang.String emailServerLocation = com.riotgames.education.cnu.example.refactoring.EmailManager.getAvailableEmailServerLocation(region); if (emailServerLocation != null) { ...
public boolean sendEmail(java.lang.String targetEmail, java.lang.String text, java.lang.String userName, java.lang.String region) { java.lang.String emailServerLocation = com.riotgames.education.cnu.example.refactoring.EmailManager.getAvailableEmailServerLocation(region); if (emailServerLocation != null) { ...
public void onAttach(com.example.reseplaneraren2.controllers.nexttrip.Context context) { super.onAttach(context); try { mParent = ((com.example.reseplaneraren2.MainActivity) (context)); } catch (final java.lang.ClassCastException e) { e.printStackTrace(); } journeyPlanner = mParent.g...
public void onAttach(android.content.Context context) { super.onAttach(context); try { mParent = ((com.example.reseplaneraren2.MainActivity) (context)); } catch (final java.lang.ClassCastException e) { e.printStackTrace(); } journeyPlanner = mParent.getJourneyPlanner(); }
public void setValues(com.trcolgrove.contours.contoursGame.Note target, int tweenType, float[] newValues) { switch (tweenType) { case com.trcolgrove.contours.accessors.NoteAccessor.RIPPLE_ALPHA : target.setRippleAlpha(((int) (newValues[0]))); case com.trcolgrove.contours.accessors.NoteAc...
public void setValues(com.trcolgrove.contours.contoursGame.Note target, int tweenType, float[] newValues) { switch (tweenType) { case com.trcolgrove.contours.accessors.NoteAccessor.RIPPLE_ALPHA : target.setRippleAlpha(((int) (newValues[0]))); return ; case com.trcolgrove.cont...
protected com.atlassian.stash.util.Page<networkservlet.Branch> getBranches(networkservlet.Repository repository) { long startTime = java.lang.System.currentTimeMillis(); com.atlassian.stash.util.PageRequest pageRequest = com.atlassian.stash.util.PageUtils.newRequest(0, 100); networkservlet.RepositoryBranche...
protected com.atlassian.stash.util.Page<networkservlet.Branch> getBranches(networkservlet.Repository repository) { long startTime = java.lang.System.currentTimeMillis(); com.atlassian.stash.util.PageRequest pageRequest = com.atlassian.stash.util.PageUtils.newRequest(0, 100); networkservlet.RepositoryBranche...
private java.lang.String paramsToString(org.eclipse.emf.common.util.EList<de.cooperateproject.modeling.textual.cls.cls.Parameter> params) { java.lang.String ret = ""; if ((params.size()) <= 0) return ret; for (de.cooperateproject.modeling.textual.cls.cls.Parameter param : params) { ret ...
private java.lang.String paramsToString(org.eclipse.emf.common.util.EList<de.cooperateproject.modeling.textual.cls.cls.Parameter> params) { java.lang.String ret = ""; if ((params.size()) <= 0) return ret; for (de.cooperateproject.modeling.textual.cls.cls.Parameter param : params) { ret ...