buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
@butterknife.OnClick(value = R.id.icon) void version() { android.widget.Toast.makeText(this, ((((((" " + (getString(R.string.version))) + (cc.haoduoyu.umaru.BuildConfig.VERSION_NAME)) + "\n\n") + (cc.haoduoyu.umaru.utils.PreferencesUtils.getAll(this))) + "\n\n") + (cc.haoduoyu.umaru.utils.SettingUtils.getAll()...
@butterknife.OnClick(value = R.id.icon) void version() { android.widget.Toast.makeText(this, ((((((getString(R.string.version)) + (cc.haoduoyu.umaru.BuildConfig.VERSION_NAME)) + "\n\n") + (cc.haoduoyu.umaru.utils.PreferencesUtils.getAll(this))) + "\n\n") + (cc.haoduoyu.umaru.utils.SettingUtils.getAll())), Toast.LEN...
public static void main(java.lang.String[] args) { java.util.Map<Node, java.lang.Integer> topology = new java.util.HashMap<Node, java.lang.Integer>(); topology.put(new Node(1), 1); topology.put(new Node(2), 4); Network net = new Network(topology); net.simulate(); }
public static void main(java.lang.String[] args) { java.util.Map<Node, java.lang.Integer> topology = new java.util.HashMap<Node, java.lang.Integer>(); topology.put(new Node(1), 1); topology.put(new Node(2), 4); Network net = new Network(topology); java.lang.System.out.println(net); }
public void startFailureMode() { android.util.Log.d("BROWSERTESTING", (("failuremode: checking if network is online before continuing." + " Setting URL to this fallback in the meantime: ") + (fallbackURL))); if (!(changeToFallbackURL.equals("PROPERTY_NOT_FOUND"))) runOnUiThread(changeToFallbackURL); ...
public void startFailureMode() { android.util.Log.d("BROWSERTESTING", (("failuremode: checking if network is online before continuing." + " Setting URL to this fallback in the meantime: ") + (fallbackURL))); if (((fallbackURL) != null) && (!(fallbackURL.equals("PROPERTY_NOT_FOUND")))) runOnUiThread(chan...
private boolean putNewTask(TASK newTask) { java.lang.String url = newTask.getKey(); boolean s = mExecuteQueue.offer(newTask); android.util.Log.w(com.arialyy.aria.core.queue.pool.ExecutePool.TAG, ("任务添加" + (s ? "成功" : ("失败,【" + url) + "】"))); if (s) { newTask.start(); mExecuteArray.put(co...
private boolean putNewTask(TASK newTask) { java.lang.String url = newTask.getKey(); boolean s = mExecuteQueue.offer(newTask); android.util.Log.w(com.arialyy.aria.core.queue.pool.ExecutePool.TAG, ("任务添加" + (s ? "成功" : ("失败,【" + url) + "】"))); if (s) { mExecuteArray.put(com.arialyy.aria.util.Commo...
public boolean sendToServer(org.bukkit.entity.Player player, java.lang.String destination, boolean callEvent) { if (!callEvent) { com.yahoo.tracebachi.DeltaEssentials.Events.PlayerServerSwitchEvent event = new com.yahoo.tracebachi.DeltaEssentials.Events.PlayerServerSwitchEvent(player, destination); ...
public boolean sendToServer(org.bukkit.entity.Player player, java.lang.String destination, boolean callEvent) { if (callEvent) { com.yahoo.tracebachi.DeltaEssentials.Events.PlayerServerSwitchEvent event = new com.yahoo.tracebachi.DeltaEssentials.Events.PlayerServerSwitchEvent(player, destination); o...
protected void desconectarUsuario() { try { if ((servidor) != null) { java.rmi.server.UnicastRemoteObject.unexportObject(this, true); javax.swing.JOptionPane.showMessageDialog(this, "Voc� se desconectou do Servidor..."); configuraBotoes(true); servidor = null;...
protected void desconectarUsuario() { try { if ((servidor) != null) { java.rmi.server.UnicastRemoteObject.unexportObject(this, true); servidor = null; } } catch (java.rmi.NoSuchObjectException e) { e.printStackTrace(); } javax.swing.JOptionPane.showMessage...
public void execute(java.lang.String command) { for (int i = 0; i < (command.length()); i++) { switch (command.charAt(i)) { case Command.FORWARD : case Command.BACKWARD : move(command.charAt(i)); break; case Command.RIGHT : case...
public void execute(java.lang.String command) { for (int i = 0; i < (command.length()); i++) { switch (command.charAt(i)) { case Command.FORWARD : case Command.BACKWARD : if (!(move(command.charAt(i)))) { return ; } ...
public static int S(double t) { int count = SIRModel.getRecord(SIRModel.S_HIST, t); if (count != (-1)) { return count; }else { double lt = t - (SIRModel.DT); int newCount = ((int) ((SIRModel.S(lt)) + (SIRModel.dS(t)))); SIRModel.S_HIST.add(newCount); return newCount; ...
public static double S(double t) { double count = SIRModel.getRecord(SIRModel.S_HIST, t); if (count >= 0) { return count; }else { double lt = t - (SIRModel.DT); double newCount = (SIRModel.S(lt)) + (SIRModel.dS(t)); SIRModel.S_HIST.add(newCount); return newCount; ...
private void close(java.sql.Statement statement) { try { java.sql.Connection connection = statement.getConnection(); statement.close(); connection.close(); } catch (java.sql.SQLException e) { com.mayhew3.drafttower.server.PlayerDataSourceImpl.logger.log(java.util.logging.Level.SE...
private static void close(java.sql.Statement statement) { try { if (statement == null) { return ; } java.sql.Connection connection = statement.getConnection(); statement.close(); connection.close(); } catch (java.sql.SQLException e) { com.mayhew3.draft...
public void updateFilelist() { java.util.List<java.lang.String> fileList = new java.util.ArrayList<java.lang.String>(); try { fileList = fileserverHandler.listFiles("s974489", UserPreferences.USERNAME, UserPreferences.PASSWORD); } catch (java.io.IOException e) { e.printStackTrace(); } ...
public void updateFilelist() { java.util.List<java.lang.String> fileList = new java.util.ArrayList<java.lang.String>(); try { fileList = fileserverHandler.listFiles(UserPreferences.USERNAME, UserPreferences.USERNAME, UserPreferences.PASSWORD); } catch (java.io.IOException e) { e.printStackTr...
protected void fetchData() { try { java.net.URL url = new com.weihua.newyorktimes.search.SearchUrlBuilder().setBeginDate(com.weihua.newyorktimes.search.SearchActivity.DEFAULT_SEARCH_BEGIN_DATE).setQuery((searchQuery.getText().toString().equals("") ? com.weihua.newyorktimes.search.SearchActivity.DEFAULT_CATE...
protected void fetchData() { try { java.net.URL url = new com.weihua.newyorktimes.search.SearchUrlBuilder().setBeginDate(com.weihua.newyorktimes.search.SearchActivity.DEFAULT_SEARCH_BEGIN_DATE).setQuery((searchQuery.getText().toString().trim().equals("") ? com.weihua.newyorktimes.search.SearchActivity.DEFAU...
private boolean mouseOnMaximize() { if (((((mouse) != null) && (!(isModal()))) && ((mouse.getAbsoluteY()) == (getY()))) && ((mouse.getAbsoluteX()) == (((getX()) + (getWidth())) - 4))) { return true; } return false; }
protected boolean mouseOnMaximize() { if (((((mouse) != null) && (!(isModal()))) && ((mouse.getAbsoluteY()) == (getY()))) && ((mouse.getAbsoluteX()) == (((getX()) + (getWidth())) - 4))) { return true; } return false; }
public float estimate(us.thirdmillenium.desktoptrainer.ai.TileNode node, us.thirdmillenium.desktoptrainer.ai.TileNode endNode) { com.badlogic.gdx.math.Vector2 start = new com.badlogic.gdx.math.Vector2(node.getCellX(), node.getCellY()); com.badlogic.gdx.math.Vector2 end = new com.badlogic.gdx.math.Vector2(endNod...
public float estimate(us.thirdmillenium.desktoptrainer.ai.TileNode node, us.thirdmillenium.desktoptrainer.ai.TileNode endNode) { com.badlogic.gdx.math.Vector2 start = new com.badlogic.gdx.math.Vector2(node.getCellX(), node.getCellY()); com.badlogic.gdx.math.Vector2 end = new com.badlogic.gdx.math.Vector2(endNod...
public void ensureObjectsAreSynchronizedIfOnlyNodeHasObjects() throws java.lang.Exception { ch.dissem.bitmessage.networking.NetworkHandlerTest.peerInventory.init(); ch.dissem.bitmessage.networking.NetworkHandlerTest.nodeInventory.init("V1Msg.payload"); java.lang.Thread t = ch.dissem.bitmessage.networking.Ne...
public void ensureObjectsAreSynchronizedIfOnlyNodeHasObjects() throws java.lang.Exception { ch.dissem.bitmessage.networking.NetworkHandlerTest.peerInventory.init(); ch.dissem.bitmessage.networking.NetworkHandlerTest.nodeInventory.init("V1Msg.payload"); java.lang.Thread t = ch.dissem.bitmessage.networking.Ne...
public static java.util.Date parseDate(java.lang.String dateStr) { java.util.Date date = null; try { date = delta.games.lotro.utils.Formats._dateFormatter.parse(dateStr); } catch (java.text.ParseException parseException) { } if (date == null) { try { date = delta.games.lo...
public static java.util.Date parseDate(java.lang.String dateStr) { java.util.Date date = null; try { date = delta.games.lotro.utils.Formats._dateTimeFormatter.parse(dateStr); } catch (java.text.ParseException parseException) { } if (date == null) { try { date = delta.game...
public void run(org.zstack.network.service.eip.FlowTrigger trigger, java.util.Map data) { org.zstack.network.service.eip.EipBackend bkd = getEipBackend(providerType.toString()); bkd.applyEip(struct, new org.zstack.header.core.Completion(trigger) { @java.lang.Override public void success() { ...
public void run(org.zstack.network.service.eip.FlowTrigger trigger, java.util.Map data) { org.zstack.network.service.eip.EipBackend bkd = getEipBackend(providerType); bkd.applyEip(struct, new org.zstack.header.core.Completion(trigger) { @java.lang.Override public void success() { tri...
private static boolean hasFormatWithClassHeader(java.lang.String text) { java.lang.String[] lines = text.split("\n"); for (int i = 0; i < (lines.length); i++) { if ((lines[i].trim().length()) == 0) break; if (edu.psu.ist.acs.micro.mid.scratch.ConstructMID4NewsDocumentSet.isL...
public static boolean hasFormatWithClassHeader(java.lang.String text) { java.lang.String[] lines = text.split("\n"); for (int i = 0; i < (lines.length); i++) { if ((lines[i].trim().length()) == 0) break; if (edu.psu.ist.acs.micro.mid.scratch.ConstructMID4NewsDocumentSet.isLi...
public void onCreate(android.database.sqlite.SQLiteDatabase db) { java.lang.String SQL_CREATE_SHOES_TABLE = ((((((((((((("CREATE TABLE " + (com.example.android.deadstock.data.ShoeContract.ShoeEntry.TABLE_NAME)) + " (") + (com.example.android.deadstock.data.ShoeContract.ShoeEntry._ID)) + " INTEGER PRIMARY KEY AUTOIN...
public void onCreate(android.database.sqlite.SQLiteDatabase db) { java.lang.String SQL_CREATE_SHOES_TABLE = ((((((((((("CREATE TABLE " + (com.example.android.deadstock.data.ShoeContract.ShoeEntry.TABLE_NAME)) + " (") + (com.example.android.deadstock.data.ShoeContract.ShoeEntry._ID)) + " INTEGER PRIMARY KEY AUTOINCR...
public void render(float dt) { update(dt); Gdx.gl.glClearColor(0.0F, 0.0F, 0.0F, 1.0F); Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); game.batch.setProjectionMatrix(cam.combined); rayHandler.setCombinedMatrix(cam); renderer.render(); if (com.develorain.game.Screens.PlayScreen.DEBUG_MODE) ...
public void render(float dt) { update(dt); Gdx.gl.glClearColor(0.0F, 0.0F, 0.0F, 1.0F); Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); game.batch.setProjectionMatrix(cam.combined); rayHandler.setCombinedMatrix(cam); if (com.develorain.game.Screens.PlayScreen.DEBUG_MODE) b2dr.render(world, cam...
public static void initializeCustomWorld(java.util.Scanner input, boolean[][] world) { boolean done = false; GameOfLife.clearWorld(world); java.lang.System.out.printf("Enter a pattern using %c for alive and %c as dead cells.\n", Config.ALIVE, Config.DEAD); java.lang.System.out.println("To end the patter...
public static void initializeCustomWorld(java.util.Scanner input, boolean[][] world) { boolean done = false; GameOfLife.clearWorld(world); java.lang.System.out.printf("Enter a pattern using %c for alive and %c as dead cells.\n", Config.ALIVE, Config.DEAD); java.lang.System.out.println("To end the patter...
protected void initiateAutomaticSync() { long lastAutoSync = com.todoroo.andlib.utility.Preferences.getLong(((com.todoroo.astrid.actfm.TagViewActivity.LAST_FETCH_KEY) + (tagData.getId())), 0); if (((com.todoroo.andlib.utility.DateUtilities.now()) - lastAutoSync) > (com.todoroo.andlib.utility.DateUtilities.ONE_H...
protected void initiateAutomaticSync() { if ((tagData) != null) { long lastAutoSync = com.todoroo.andlib.utility.Preferences.getLong(((com.todoroo.astrid.actfm.TagViewActivity.LAST_FETCH_KEY) + (tagData.getId())), 0); if (((com.todoroo.andlib.utility.DateUtilities.now()) - lastAutoSync) > (com.todor...
private static java.lang.String getMessageString(hu.bme.tmit.agile.logfilereader.model.TtcnEvent event) { return (((("\"" + (event.getSender())) + "\" -> \"") + (((hu.bme.tmit.agile.logfilereader.model.Message) (event)).getDestination())) + "\" : ") + "Simple message \n"; }
private static java.lang.String getMessageString(hu.bme.tmit.agile.logfilereader.model.TtcnEvent event) { return (((((("\"" + (event.getSender())) + "\" -> \"") + (((hu.bme.tmit.agile.logfilereader.model.Message) (event)).getDestination())) + "\" : ") + (event.getId())) + (((hu.bme.tmit.agile.logfilereader.model.Me...
private workshop.pages.ComponentFactory getBehaviorFromProperties() { workshop.pages.ComponentFactory behavior = null; try { java.lang.Class c = java.lang.Class.forName(java.lang.System.getProperty("container.behavior")); java.lang.reflect.Constructor cons = c.getConstructor(); behavior ...
private workshop.pages.ComponentFactory getBehaviorFromProperties() { workshop.pages.ComponentFactory behavior = null; try { java.lang.Class c = java.lang.Class.forName(java.lang.System.getProperty("container.behavior")); java.lang.reflect.Constructor cons = c.getConstructor(); behavior ...
private void shutdown() { if ((serverThread) != null) { org.codice.alliance.video.stream.mpegts.UdpStreamMonitor.LOGGER.debug("shutting down monitor server thread"); joinServerThread(); serverThread = null; } if ((eventLoopGroup) != null) { eventLoopGroup.shutdownGracefully()...
private void shutdown() { if ((eventLoopGroup) != null) { eventLoopGroup.shutdownGracefully(); } if ((serverThread) != null) { org.codice.alliance.video.stream.mpegts.UdpStreamMonitor.LOGGER.debug("shutting down monitor server thread"); joinServerThread(); serverThread = null...
public java.lang.String visitSimple_stmt(lessa.ExprParser.Simple_stmtContext ctx) { java.lang.System.out.println("simple_stmt -> small_stmt (';' small_stmt)* ';' "); java.lang.String ret = (visit(ctx.small_stmt(0))) + "\n"; int i = 1; while ((ctx.small_stmt(i)) != null) { ret += (visit(ctx.small...
public java.lang.String visitSimple_stmt(lessa.ExprParser.Simple_stmtContext ctx) { java.lang.System.out.println("simple_stmt -> small_stmt (';' small_stmt)* ';' "); java.lang.String ret = (visit(ctx.small_stmt(0))) + "\n"; int i = 1; while ((ctx.small_stmt(i)) != null) { ret += (visit(ctx.small...
private void updateUI_2_Dashboard() { final boolean isBrowserAvailable = (_browser) != null; _dashboard_PageBook.showPage((isBrowserAvailable ? _dashboardPage_WithBrowser : _dashboardPage_NoBrowser)); if (!isBrowserAvailable) { return ; } final java.lang.String html = createHTML(); _isBr...
private void updateUI_2_Dashboard() { if ((_dashboard_PageBook) == null) { return ; } final boolean isBrowserAvailable = (_browser) != null; _dashboard_PageBook.showPage((isBrowserAvailable ? _dashboardPage_WithBrowser : _dashboardPage_NoBrowser)); if (!isBrowserAvailable) { return ;...
public void updateIndex() { org.elasticsearch.common.settings.Settings settings = org.elasticsearch.common.settings.ImmutableSettings.settingsBuilder().put("number_of_replicas", 5).build(); org.elasticsearch.action.admin.indices.settings.put.UpdateSettingsResponse updateSettingsResponse = client.admin().indices...
public void updateIndex() { org.elasticsearch.common.settings.Settings settings = org.elasticsearch.common.settings.Settings.settingsBuilder().put("number_of_replicas", 5).build(); org.elasticsearch.action.admin.indices.settings.put.UpdateSettingsResponse updateSettingsResponse = client.admin().indices().prepar...
public java.util.List<java.util.Map<java.lang.String, java.lang.Object>> getRecentVideos(java.lang.Integer pageNo, java.lang.Integer pageSize) { java.util.List<java.util.Map<java.lang.String, java.lang.Object>> result = null; int offset = (pageNo * pageSize) + 1; java.lang.String selectQuery = "SELECT * FRO...
public java.util.List<java.util.Map<java.lang.String, java.lang.Object>> getRecentVideos(java.lang.Integer pageNo, java.lang.Integer pageSize) { java.util.List<java.util.Map<java.lang.String, java.lang.Object>> result = null; int offset = ((pageNo - 1) * pageSize) + 1; java.lang.String selectQuery = "SELECT...
public void onClick(android.view.View view) { johnsmith.haruhi.co.refrigerator.Model.Unit.Item item = itemList.get(position); if (itemList.contains(item)) { listener.onDeleteClick(item.getId()); itemList.remove(position); notifyItemRemoved(position); notifyItemRangeChanged(positi...
public void onClick(android.view.View view) { johnsmith.haruhi.co.refrigerator.Model.Unit.Item item = itemList.get(position); if (itemList.contains(item)) { listener.onDeleteClick(item.getName(), item.getId()); itemList.remove(position); notifyItemRemoved(position); notifyItemRan...
public void doSave() { java.lang.System.out.println("CRMController.doSave()"); java.util.ArrayList<java.lang.String> errors = controllers.CRMController.emptyErrors; view.clearFieldErrors(); try { validateForm(); view.formToBean(model.getCurrentBean()); this.getModel().doSave(); ...
public void doSave() { java.lang.System.out.println("CRMController.doSave()"); view.clearFieldErrors(); try { validateForm(); view.formToBean(model.getCurrentBean()); this.getModel().doSave(); currentBeanIsNew = false; view.disableEditMode(); this.refreshView(...
public boolean execute(com.intellij.openapi.compiler.CompileContext context) { for (com.intellij.openapi.module.Module module : com.intellij.openapi.module.ModuleManager.getInstance(context.getProject()).getModules()) { com.google.cloud.tools.intellij.jps.model.impl.StackdriverProperties configuration = com...
public boolean execute(com.intellij.openapi.compiler.CompileContext context) { for (com.intellij.openapi.module.Module module : com.intellij.openapi.module.ModuleManager.getInstance(context.getProject()).getModules()) { com.google.cloud.tools.intellij.jps.model.impl.StackdriverProperties configuration = com...
public static boolean isInteger(java.lang.String str) { java.util.regex.Pattern pattern = java.util.regex.Pattern.compile("^[-\\+]?[\\d]*$"); if ((pattern != null) && ((pattern.matcher(str)) != null)) return pattern.matcher(str).matches(); else return false; }
public static boolean isInteger(java.lang.String str) { java.util.regex.Pattern pattern = java.util.regex.Pattern.compile("^[-\\+]?[\\d]*$"); if ((str != null) && ((pattern.matcher(str)) != null)) return pattern.matcher(str).matches(); else return false; }
private void getResultsFromApi() { if (!(isGooglePlayServicesAvailable())) { acquireGooglePlayServices(); }else if ((credential.getSelectedAccountName()) == null) { chooseAccount(); }else if (!(isDeviceOnline())) { android.util.Log.i(kelvinycchan.a...
private void getResultsFromApi() { if (!(isDeviceOnline())) { android.util.Log.i(kelvinycchan.a12googlesheetcheck_insystem.CheckInActivity.TAG, "No network connection available."); android.widget.Toast.makeText(this, "No network connection available.", Toast.LENGTH_LONG).show(); }else { ...
public void closeToLeft() { if (viewDragHelper.smoothSlideViewTo(dragView, ((int) (-(transformer.getOriginalWidth()))), ((getHeight()) - (transformer.getMinHeightPlusMargin())))) { android.support.v4.view.ViewCompat.postInvalidateOnAnimation(this); notifyCloseToLeftListener(); } }
public void closeToLeft() { if (viewDragHelper.smoothSlideViewTo(dragView, (-(transformer.getOriginalWidth())), ((getHeight()) - (transformer.getMinHeightPlusMargin())))) { android.support.v4.view.ViewCompat.postInvalidateOnAnimation(this); notifyCloseToLeftListener(); } }
public org.springframework.http.ResponseEntity<java.lang.Void> createUser(@rest.controller.RequestBody rest.model.User user, org.springframework.web.util.UriComponentsBuilder uriComponentsBuilder) { java.lang.System.out.println(("post: " + user)); if (userService.isUserExist(user)) { return new org.spri...
public org.springframework.http.ResponseEntity<java.lang.Void> createUser(@rest.controller.RequestBody rest.model.User user, org.springframework.web.util.UriComponentsBuilder uriComponentsBuilder) { if (userService.isUserExist(user)) { return new org.springframework.http.ResponseEntity<java.lang.Void>(org.s...
public int hamming() { int count = 0; for (int i = 0; i < (N); i++) { for (int j = 0; j < (N); j++) { if ((pieces[i][j]) != (goalValueAt(i, j))) { count++; } } } return count; }
public int hamming() { int count = 0; for (int i = 0; i < (N); i++) { for (int j = 0; j < (N); j++) { if (((pieces[i][j]) != (goalValueAt(i, j))) && ((pieces[i][j]) != 0)) { count++; } } } return count; }
public void shuffle() { sorted = false; for (int i = (topCard) - 1; i > 0; i--) { int randomPos = ((int) ((java.lang.Math.random()) * (topCard))) + 1; Card temp = cards[i]; cards[i] = cards[randomPos]; cards[randomPos] = temp; } }
public void shuffle() { sorted = false; for (int i = (topCard) - 1; i > 0; i--) { int randomPos = ((int) ((java.lang.Math.random()) * (topCard))); Card temp = cards[i]; cards[i] = cards[randomPos]; cards[randomPos] = temp; } }
public static void alimentarMatriz(int[][] matriz) { for (int linha = 0; linha < (matriz.length); linha++) { for (int coluna = 0; coluna < 2; coluna++) { java.util.Random random = new java.util.Random(); matriz[linha][coluna] = random.nextInt(11); } } }
public static void alimentarMatriz(int[][] matriz) { for (int linha = 0; linha < (matriz.length); linha++) { for (int coluna = 0; coluna < (matriz[0].length); coluna++) { java.util.Random random = new java.util.Random(); matriz[linha][coluna] = random.nextInt(11); } } }
private java.lang.Object getEnumValue(final java.lang.Class<?> enumType, final java.lang.String name) throws java.lang.ReflectiveOperationException { final java.lang.Object result; if (enumType != null) { final java.lang.reflect.Method method = enumType.getDeclaredMethod("valueOf", java.lang.String.clas...
static java.lang.Object getEnumValue(final java.lang.Class<?> enumType, final java.lang.String name) throws java.lang.ReflectiveOperationException { final java.lang.Object result; if (enumType != null) { final java.lang.reflect.Method method = enumType.getDeclaredMethod("valueOf", java.lang.String.class...
public static void setTotals() { com.tanghe.garben.capitalbooze.OrderFragment.mTotalPrice.setText(java.lang.String.format(java.util.Locale.getDefault(), "€%.2f", com.tanghe.garben.capitalbooze.OrderFragment.totalPrice)); com.tanghe.garben.capitalbooze.OrderFragment.mTotalSquares.setText(java.lang.String.format(...
public static void setTotals() { if ((com.tanghe.garben.capitalbooze.OrderFragment.totalPrice) > 0.0) { com.tanghe.garben.capitalbooze.OrderFragment.mTotalPrice.setText(java.lang.String.format(java.util.Locale.getDefault(), "€%.2f", com.tanghe.garben.capitalbooze.OrderFragment.totalPrice)); }else { ...
public void testCache() throws java.lang.Exception { org.uli.gcb.GuavaCacheKo gc = new org.uli.gcb.GuavaCacheKo(); assertEquals(0, gc.cnt); java.lang.String s = gc.getPair(1, 2); assertEquals(1, gc.cnt); assertEquals("this pair is (1,2) : 1", s); java.lang.String s2 = gc.getPair(2, 3); asser...
public void testCache() throws java.lang.Exception { org.uli.gcb.GuavaCacheKo gc = new org.uli.gcb.GuavaCacheKo(); assertEquals(0, gc.cnt); java.lang.String s = gc.getPair(1, 2); assertEquals(1, gc.cnt); assertEquals("this pair is (1,2) : 1", s); java.lang.String s2 = gc.getPair(2, 3); asser...
protected static java.lang.String oldFileNameToViewName(java.lang.String fileName) throws com.couchbase.lite.CouchbaseLiteException { if (!(fileName.endsWith(com.couchbase.lite.store.ForestDBViewStore.kViewIndexPathExtension))) throw new com.couchbase.lite.CouchbaseLiteException(com.couchbase.lite.Status.BA...
protected static java.lang.String oldFileNameToViewName(java.lang.String fileName) throws com.couchbase.lite.CouchbaseLiteException { if ((!(fileName.endsWith(com.couchbase.lite.store.ForestDBViewStore.kViewIndexPathExtension))) || (fileName.startsWith("."))) throw new com.couchbase.lite.CouchbaseLiteExcept...
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_course_selection); se.kth.csc.iprog.dinnerplanner.model.DinnerModel model = ((se.kth.csc.iprog.dinnerplanner.android.DinnerPlannerApplication) (this.getApplication())).getMode...
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_course_selection); se.kth.csc.iprog.dinnerplanner.model.DinnerModel model = ((se.kth.csc.iprog.dinnerplanner.android.DinnerPlannerApplication) (this.getApplication())).getMode...
public void onLoadFinished(android.support.v4.content.Loader<android.database.Cursor> loader, android.database.Cursor data) { forecastAdapter.swapCursor(data); if ((selectedPosition) != (android.support.v7.widget.RecyclerView.NO_POSITION)) { recyclerView.smoothScrollToPosition(selectedPosition); ...
public void onLoadFinished(android.support.v4.content.Loader<android.database.Cursor> loader, android.database.Cursor data) { forecastAdapter.swapCursor(data); if ((selectedPosition) != (android.support.v7.widget.RecyclerView.NO_POSITION)) { recyclerView.smoothScrollToPosition(selectedPosition); ...
private final boolean is7BitClean(org.forgerock.opendj.ldap.ByteSequence value) { byte b; for (int i = 0; i < (value.length()); i++) { b = value.byteAt(i); if ((b & (org.opends.server.plugins.SevenBitCleanPlugin.MASK)) != b) { return false; } } return true; }
private final boolean is7BitClean(org.forgerock.opendj.ldap.ByteSequence value) { for (int i = 0; i < (value.length()); i++) { byte b = value.byteAt(i); if ((b & (org.opends.server.plugins.SevenBitCleanPlugin.MASK)) != b) { return false; } } return true; }
public boolean canConfirmOrderOfCart(io.muic.ooc.model.Cart cart) { java.util.Set<io.muic.ooc.model.CartProduct> cartProductSet = cartProductService.findCartProductsByCart(cart); if ((cartProductSet == null) || ((cartProductSet.size()) == 0)) { return false; } cart.setOrderConfirmed(true); c...
public boolean canConfirmOrderOfCart(io.muic.ooc.model.Cart cart) { java.util.Set<io.muic.ooc.model.CartProduct> cartProductSet = cartProductService.findCartProductsByCart(cart); if ((cartProductSet == null) || ((cartProductSet.size()) == 0)) { return false; } return true; }
private java.util.Date parseDateValue(java.lang.String value) { try { if (!(android.text.TextUtils.isEmpty(value))) { return new java.util.Date(java.lang.Long.parseLong(value)); } } catch (java.lang.NumberFormatException e) { timber.log.Timber.e("parseDateValue() - Value is n...
private java.util.Date parseDateValue(java.lang.String value) { try { if (!(android.text.TextUtils.isEmpty(value))) { java.util.Date time = new java.util.Date(java.lang.Long.parseLong(value)); return time; } } catch (java.lang.NumberFormatException e) { timber.log...
public model.modelClasses.mainData.BibleChapterModel getBibleChapter(android.content.Context context, int chapterNumber) { this.getBibleChildModels(context); java.util.Collections.sort(this.bibleChapterModels); if (chapterNumber >= (this.bibleChapterModels.size())) { return null; }else { ...
public model.modelClasses.mainData.BibleChapterModel getBibleChapter(android.content.Context context, int chapterNumber) { this.getBibleChildModels(context); java.util.Collections.sort(this.bibleChapterModels); if (chapterNumber > (this.bibleChapterModels.size())) { return null; }else { ...
protected java.lang.Boolean doInBackground(java.lang.String... params) { com.mongodb.MongoClientURI mongoUri = new com.mongodb.MongoClientURI(tasks.CallEvacuationTask.DBAdress); com.mongodb.MongoClient mongoClient = new com.mongodb.MongoClient(mongoUri); com.mongodb.client.MongoDatabase db = mongoClient.get...
protected java.lang.Boolean doInBackground(java.lang.String... params) { com.mongodb.MongoClientURI mongoUri = new com.mongodb.MongoClientURI(tasks.CallEvacuationTask.DBAdress); com.mongodb.MongoClient mongoClient = new com.mongodb.MongoClient(mongoUri); com.mongodb.client.MongoDatabase db = mongoClient.get...
public void actionPerformed(java.awt.event.ActionEvent e) { javax.swing.JFileChooser jfc = new javax.swing.JFileChooser(); int result = jfc.showOpenDialog(view.getFrame()); if (result == (javax.swing.JFileChooser.APPROVE_OPTION)) model.loadPathbaseFile(jfc.getSelectedFile().getAbsolutePath()); ...
public void actionPerformed(java.awt.event.ActionEvent e) { javax.swing.JFileChooser jfc = new javax.swing.JFileChooser(); int result = jfc.showOpenDialog(view.getFrame()); if (result == (javax.swing.JFileChooser.APPROVE_OPTION)) model.loadPathbaseFile(jfc.getSelectedFile().getAbsolutePath()); ...
protected static org.python.core.PyBuffer getViewOrError(org.python.core.PyObject b) { org.python.core.PyBuffer buffer = org.python.core.BaseBytes.getView(b); if (buffer != null) { return buffer; }else { java.lang.String fmt = "Type %s doesn't support the buffer API"; throw org.pytho...
protected static org.python.core.PyBuffer getViewOrError(org.python.core.PyObject b, java.lang.String fmt) { org.python.core.PyBuffer buffer = org.python.core.BaseBytes.getView(b); if (buffer != null) { return buffer; }else { throw org.python.core.Py.TypeError(java.lang.String.format(fmt, b....
public void onGetDataShareWithFinish(com.owncloud.android.lib.common.operations.RemoteOperationResult result) { ((com.owncloud.android.ui.activity.ShareActivity) (getActivity())).dismissLoadingDialog(); if ((result != null) && (result.isSuccess())) { com.owncloud.android.lib.common.utils.Log_OC.d(com.ow...
public void onGetDataShareWithFinish(com.owncloud.android.lib.common.operations.RemoteOperationResult result) { ((com.owncloud.android.ui.activity.ShareActivity) (getActivity())).dismissLoadingDialog(); if ((result != null) && (result.isSuccess())) { com.owncloud.android.lib.common.utils.Log_OC.d(com.ow...
private void addNewGoogleGuavaClasses() { nl.jqno.equalsverifier.internal.ConditionalInstantiator range = new nl.jqno.equalsverifier.internal.ConditionalInstantiator(((nl.jqno.equalsverifier.JavaApiPrefabValues.GUAVA_PACKAGE) + "Range")); addValues(range.resolve(), range.callFactory("open", classes(java.lang.Co...
private void addNewGoogleGuavaClasses() { nl.jqno.equalsverifier.internal.ConditionalInstantiator range = new nl.jqno.equalsverifier.internal.ConditionalInstantiator(((nl.jqno.equalsverifier.JavaApiPrefabValues.GUAVA_PACKAGE) + "Range"), false); addValues(range.resolve(), range.callFactory("open", classes(java....
public void next() { this.index += 1; int tempIndex = this.index; while (((menu.get(tempIndex).price) >= (this.price)) && ((this.index) < (this.menuSize))) { this.index += 1; tempIndex += 1; } }
public void next() { this.index += 1; int tempIndex = this.index; while (((this.index) < (this.menuSize)) && ((menu.get(tempIndex).price) >= (this.price))) { this.index += 1; tempIndex += 1; } }
public void click_deleteButton(android.view.View v) { for (int position : win.successlvchao.android.moneypocket.MainActivity.checkedIndexList.keySet()) { mCostBeanList.remove(position); win.successlvchao.android.moneypocket.MainActivity.checkBoxList.remove(position); mDatabaseHelper.deleteSp...
public void click_deleteButton(android.view.View v) { for (int position : win.successlvchao.android.moneypocket.MainActivity.checkedIndexList.keySet()) { mCostBeanList.remove(position); mDatabaseHelper.deleteSpecificItem(win.successlvchao.android.moneypocket.MainActivity.checkedIndexList.get(positio...
private void findNextTurn() { java.lang.Boolean found = false; nextTurn(); while (!found) { addLog("error6"); if ((!(currentPlayer.getPass())) && (!(currentPlayer.getWon()))) { addLog("found"); found = true; }else { nextTurn(); } } }
private void findNextTurn() { java.lang.Boolean found = false; nextTurn(); while (!found) { if ((!(currentPlayer.getPass())) && (!(currentPlayer.getWon()))) { found = true; }else { nextTurn(); } } }
public static java.io.OutputStream getFileOutputSteam(android.content.Context context, java.lang.String fileName, android.net.Uri rootUri, java.lang.String... subDirs) { android.support.v4.provider.DocumentFile parent = ml.puredark.hviewer.utils.DocumentUtil.getDirDocument(context, rootUri, subDirs); if (parent...
public static java.io.OutputStream getFileOutputSteam(android.content.Context context, java.lang.String fileName, android.net.Uri rootUri, java.lang.String... subDirs) { android.support.v4.provider.DocumentFile parent = ml.puredark.hviewer.utils.DocumentUtil.getDirDocument(context, rootUri, subDirs); if (parent...
protected net.schmizz.concurrent.Promise<net.schmizz.sshj.sftp.Response, net.schmizz.sshj.sftp.SFTPException> asyncWrite(long fileOffset, byte[] data, int off, int len) throws java.io.IOException { return requester.request(newRequest(PacketType.WRITE).putUInt64(fileOffset).putUInt32((len - off)).putRawBytes(data, o...
protected net.schmizz.concurrent.Promise<net.schmizz.sshj.sftp.Response, net.schmizz.sshj.sftp.SFTPException> asyncWrite(long fileOffset, byte[] data, int off, int len) throws java.io.IOException { return requester.request(newRequest(PacketType.WRITE).putUInt64(fileOffset).putUInt32(len).putRawBytes(data, off, len)...
public void handleMessage(android.os.Message inputMessage) { org.mobicents.restcomm.android.client.sdk.SignalingMessage message = ((org.mobicents.restcomm.android.client.sdk.SignalingMessage) (inputMessage.obj)); if ((message.type) == (SignalingMessage.MessageType.OPEN_REPLY)) { listener.onOpenReply(mes...
public void handleMessage(android.os.Message inputMessage) { org.mobicents.restcomm.android.client.sdk.SignalingMessage message = ((org.mobicents.restcomm.android.client.sdk.SignalingMessage) (inputMessage.obj)); if ((message.type) == (SignalingMessage.MessageType.OPEN_REPLY)) { listener.onOpenReply(mes...
public nl.renarj.jasdb.api.properties.Property removeValue(nl.renarj.jasdb.api.properties.Value v) { for (java.util.Iterator i = values.iterator(); i.hasNext();) { if (i.next().equals(v)) { i.remove(); } } validateAndSetCollection(); return this; }
public nl.renarj.jasdb.api.properties.Property removeValue(nl.renarj.jasdb.api.properties.Value v) { for (java.util.Iterator i = values.iterator(); i.hasNext();) { if (i.next().equals(v)) { i.remove(); } } return this; }
java.util.ArrayList<java.lang.Integer> list_numbers_equal_values = new java.util.ArrayList<>(); for (int i = 0; i < (ja_equal_words_v.length()); i++) { if (ja_equal_words_v.get(i).toString().toLowerCase().equals(v)) { list_numbers_equal_values.add((i + 1)); } } return list_nu...
private java.util.ArrayList<java.lang.Integer> list_numbers_equal_values_col2(org.json.JSONArray ja_equal_words_v, java.lang.String v) { java.util.ArrayList<java.lang.Integer> list_numbers_equal_values = new java.util.ArrayList<>(); for (int i = 0; i < (ja_equal_words_v.length()); i++) { if (ja_equal_wo...
public void windowClosing(java.awt.event.WindowEvent windowEvent) { if ((javax.swing.JOptionPane.showConfirmDialog(null, "Wollen sie Speicher und Schließen?", "Wirklich schließen?", javax.swing.JOptionPane.YES_NO_OPTION, javax.swing.JOptionPane.QUESTION_MESSAGE)) == (javax.swing.JOptionPane.YES_OPTION)) { i...
public void windowClosing(java.awt.event.WindowEvent windowEvent) { if ((javax.swing.JOptionPane.showConfirmDialog(null, "Wollen sie Speicher und Schließen?", "Wirklich schließen?", javax.swing.JOptionPane.YES_NO_OPTION, javax.swing.JOptionPane.QUESTION_MESSAGE)) == (javax.swing.JOptionPane.YES_OPTION)) { i...
private void checkExistenceOfRequiredTranslations(java.util.Set<java.io.File> filesInResourceBundle) { final java.lang.String fullBundleName = getFullBundleName(filesInResourceBundle); final java.lang.String extension = getFileExtensions()[0]; for (java.lang.String languageCode : requiredTranslations) { ...
private void checkExistenceOfRequiredTranslations(java.util.Set<java.io.File> filesInResourceBundle) { final java.lang.String fullBundleName = getFullBundleName(filesInResourceBundle); for (java.lang.String languageCode : requiredTranslations) { final java.lang.String translationFileName = (fullBundleNa...
private xl.playground.algo.tree.BinarySearchTree.Node<Item> addNode(xl.playground.algo.tree.BinarySearchTree.Node<Item> root, Item value) { if (root == null) { return new xl.playground.algo.tree.BinarySearchTree.Node<>(value); } if ((root.value.compareTo(value)) <= 0) { root.left = addNode(r...
private xl.playground.algo.tree.BinarySearchTree.Node<Item> addNode(xl.playground.algo.tree.BinarySearchTree.Node<Item> root, Item value) { if (root == null) { return new xl.playground.algo.tree.BinarySearchTree.Node<>(value); } if ((root.value.compareTo(value)) >= 0) { root.left = addNode(r...
public boolean onRequest(final android.content.Intent request, final android.content.Intent response) { java.lang.String sessionKey = getSessionKey(request); if (sessionKey == null) { org.deviceconnect.android.message.MessageUtils.setInvalidRequestParameterError(response, "Not found sessionKey"); }e...
public boolean onRequest(final android.content.Intent request, final android.content.Intent response) { org.deviceconnect.android.event.EventError error = EventManager.INSTANCE.addEvent(request); if (error == (org.deviceconnect.android.event.EventError.NONE)) { setResult(response, DConnectMessage.RESULT...
public void setTagline() { if ((mMovie.getTagline().length()) != 0) { ((android.widget.TextView) (mRootView.findViewById(R.id.banner_title))).setText((("\"" + (mMovie.getTagline())) + "\"")); } }
public void setTagline() { if (((mMovie.getTagline()) != null) && ((mMovie.getTagline().length()) != 0)) { ((android.widget.TextView) (mRootView.findViewById(R.id.banner_title))).setText((("\"" + (mMovie.getTagline())) + "\"")); } }
public void onClick(android.view.View v) { if ((mCurrentPage) <= (mNumberPages)) { mRightButton.setEnabled(false); mCurrentPage += 1; mImageAdapter.invalidateData(); mPagerAdapter.notifyDataSetChanged(); getAllPopularPhotos(); }else { android.widget.Toast.makeText...
public void onClick(android.view.View v) { if ((mCurrentPage) < (mNumberPages)) { mRightButton.setEnabled(false); mCurrentPage += 1; mImageAdapter.invalidateData(); mPagerAdapter.notifyDataSetChanged(); getAllPopularPhotos(); }else { android.widget.Toast.makeText(...
public void onFocusChange(android.view.View view, boolean hasFocus) { if (hasFocus) { bottomNavigationBar.hide(); android.util.Log.d("~focus", ((bottomNavigationBar.isHidden()) + "")); }else { android.view.inputmethod.InputMethodManager imm = ((android.view.inputmethod.InputMethodManager...
public void onFocusChange(android.view.View view, boolean hasFocus) { if (hasFocus) { bottomNavigationBar.hide(); android.util.Log.d("~focus", ((bottomNavigationBar.isHidden()) + "")); }else { android.view.inputmethod.InputMethodManager imm = ((android.view.inputmethod.InputMethodManager...
public void addLoop() { currentLoop = new ir.cfgraph.Loop(); if ((startingBlock) == null) { currentBlock = startingBlock = currentLoop; }else if ((currentBlock) instanceof ir.cfgraph.ControlFlow) { ir.cfgraph.ControlFlow cf = ((ir.cfgraph.ControlFlow) (currentBlock)); ...
public void addLoop() { currentLoop = new ir.cfgraph.Loop(); if ((startingBlock) == null) { currentBlock = startingBlock = currentLoop; }else if ((currentBlock) instanceof ir.cfgraph.ControlFlow) { ir.cfgraph.ControlFlow cf = ((ir.cfgraph.ControlFlow) (currentBlock)); ...
private edu.utsa.fileflow.client.fileflow.VariableAutomaton getValue(edu.utsa.fileflow.client.fileflow.FileFlowAnalysisDomain domain, edu.utsa.fileflow.cfg.FlowPointContext context) { edu.utsa.fileflow.antlr.FileFlowParser.FunctionCallContext ctx = ((edu.utsa.fileflow.antlr.FileFlowParser.FunctionCallContext) (cont...
private edu.utsa.fileflow.client.fileflow.VariableAutomaton getValue(edu.utsa.fileflow.client.fileflow.FileFlowAnalysisDomain domain, edu.utsa.fileflow.cfg.FlowPointContext context) { edu.utsa.fileflow.antlr.FileFlowParser.FunctionCallContext ctx = ((edu.utsa.fileflow.antlr.FileFlowParser.FunctionCallContext) (cont...
public void register(org.bukkit.entity.Player player) { int toLevel = this._model.getDonationLevel(0); se.fredsfursten.donationboardplugin.PlayerInfo playerInfo = getOrAddPlayerInfo(player); playerInfo.demoteOrPromote(toLevel); this._knownPlayers.put(player, playerInfo); player.sendMessage(java.lang...
private se.fredsfursten.donationboardplugin.PlayerInfo getOrAddPlayerInfo(org.bukkit.entity.Player player) { se.fredsfursten.donationboardplugin.PlayerInfo playerInfo = this._knownPlayers.get(player); if (playerInfo == null) { playerInfo = new se.fredsfursten.donationboardplugin.PlayerInfo(player); ...
protected void onCreate(android.os.Bundle savedInstanceState) { android.os.StrictMode.ThreadPolicy policy = new android.os.StrictMode.ThreadPolicy.Builder().permitAll().build(); android.os.StrictMode.setThreadPolicy(policy); super.onCreate(savedInstanceState); setContentView(R.layout.activity_scan); ...
protected void onCreate(android.os.Bundle savedInstanceState) { android.os.StrictMode.ThreadPolicy policy = new android.os.StrictMode.ThreadPolicy.Builder().permitAll().build(); android.os.StrictMode.setThreadPolicy(policy); super.onCreate(savedInstanceState); setContentView(R.layout.activity_scan); ...
private void pickPlace() { com.google.android.gms.location.places.ui.PlacePicker.IntentBuilder builder = new com.google.android.gms.location.places.ui.PlacePicker.IntentBuilder(); try { java.lang.System.out.println("before starting act..."); startActivityForResult(builder.build(this), com.arman....
private void pickPlace() { com.google.android.gms.location.places.ui.PlacePicker.IntentBuilder builder = new com.google.android.gms.location.places.ui.PlacePicker.IntentBuilder(); try { startActivityForResult(builder.build(this), com.arman.horus.activities.AddPlaceActivity.PLACE_PICKER_REQUEST); } c...
private data.Vector calculateMeanPoint(java.util.List<? extends data.Data> dataSet) { double[] meanPoint = new double[argumentsCount]; for (data.Data data : dataSet) { for (int i = 0; i < (argumentsCount); i++) { meanPoint[i] += data.getValueAt(i); } } for (int i = 0; i < (ar...
private java.util.Vector calculateMeanPoint(java.util.List<? extends data.Data> dataSet) { double[] meanPoint = new double[argumentsCount]; for (data.Data data : dataSet) { for (int i = 0; i < (argumentsCount); i++) { meanPoint[i] += data.getValueAt(i); } } for (int i = 0; i ...
public static java.lang.Throwable getRootCause(java.lang.Throwable t) { java.lang.Throwable rootCause = t; java.lang.Throwable cause = rootCause.getCause(); while ((cause != null) && (cause != rootCause)) { rootCause = cause; cause = cause.getCause(); } return rootCause; }
public static java.lang.Throwable getRootCause(java.lang.Throwable t) { if (t == null) { return null; } java.lang.Throwable rootCause = t; java.lang.Throwable cause = rootCause.getCause(); while ((cause != null) && (cause != rootCause)) { rootCause = cause; cause = cause.getC...
public void testPlayer(java.lang.String player, org.bukkit.command.CommandSender sender) { if (playerOnline(player)) { sender.sendMessage(((((((((((((ChatColor.MAGIC) + "") + (ChatColor.GOLD)) + "aaaaa") + (ChatColor.RED)) + player) + (ChatColor.GOLD)) + "is online!") + (ChatColor.MAGIC)) + "aaaaa") + (Chat...
public void testPlayer(java.lang.String player, org.bukkit.command.CommandSender sender) { if (playerOnline(player)) { sender.sendMessage(((((((((((((ChatColor.GOLD) + "") + (ChatColor.MAGIC)) + "aaaaa") + (ChatColor.RED)) + player) + (ChatColor.GOLD)) + "is online!") + (ChatColor.MAGIC)) + "aaaaa") + (Chat...
public void onTriggered() { if ((tilemap) != null) { int[] dims = getNumberPair("Please enter the new dimensions?"); for (int i = 0; i < (tilemap.getLayerCount()); i++) { tilemap.getLayer(i).resize(dims[0], dims[1]); } } }
public void onTriggered() { if ((tilemap) != null) { int[] dims = getNumberPair("Please enter the new dimensions?"); if (dims == null) return ; for (int i = 0; i < (tilemap.getLayerCount()); i++) { tilemap.getLayer(i).resize(dims[0], dims[1]); } }...
public void addNewLevelUpEvent(long buildingID) { com.greenfox.jasper.domain.Building temporaryBuilding = buildingServices.findOneBuilding(((int) (buildingID))); com.greenfox.jasper.services.MainEvent levelUpEvent = new com.greenfox.jasper.services.LevelUpEvent(buildingID, ((java.lang.System.currentTimeMillis()...
public void addNewLevelUpEvent(long buildingID) { com.greenfox.jasper.domain.Building temporaryBuilding = buildingServices.findOneBuilding(((int) (buildingID))); com.greenfox.jasper.services.MainEvent levelUpEvent = new com.greenfox.jasper.services.LevelUpEvent(((java.lang.System.currentTimeMillis()) + (calcula...
public android.view.View getView(int position, android.view.View convertView, android.view.ViewGroup parent) { android.widget.ImageView imageView = new android.widget.ImageView(context); android.graphics.Bitmap ThumbImage = android.media.ThumbnailUtils.extractThumbnail(android.graphics.BitmapFactory.decodeFile(...
public android.view.View getView(int position, android.view.View convertView, android.view.ViewGroup parent) { android.widget.ImageView imageView = new android.widget.ImageView(context); android.graphics.Bitmap ThumbImage = android.media.ThumbnailUtils.extractThumbnail(android.graphics.BitmapFactory.decodeFile(...
public void removeStatsProvider(org.osgi.framework.ServiceReference<org.inaetics.demonstrator.api.stats.StatsProvider> serviceRef, org.inaetics.demonstrator.api.stats.StatsProvider provider) { if ("true".equals(serviceRef.getProperty("aggregator"))) { m_aggregator = null; } java.lang.String type = "...
public void removeStatsProvider(org.osgi.framework.ServiceReference<org.inaetics.demonstrator.api.stats.StatsProvider> serviceRef, org.inaetics.demonstrator.api.stats.StatsProvider provider) { if ("true".equals(serviceRef.getProperty("aggregator"))) { m_aggregator = null; } java.lang.String type = "...
public java.util.ArrayList<java.lang.String> getTables() { java.util.ArrayList<ragnardb.parser.ast.TableOrSubquery> tables = _primary.getTablesAndSubqueries(); java.util.ArrayList<java.lang.String> out = new java.util.ArrayList<>(); for (ragnardb.parser.ast.TableOrSubquery table : tables) { out.add(...
public java.util.ArrayList<java.lang.String> getTables() { if ((_primary) == null) { return null; } java.util.ArrayList<ragnardb.parser.ast.TableOrSubquery> tables = _primary.getTablesAndSubqueries(); java.util.ArrayList<java.lang.String> out = new java.util.ArrayList<>(); for (ragnardb.pars...
public java.lang.String parseStepsHash() { java.lang.String outputString = ""; for (java.lang.String term : steps.keySet()) { java.lang.Integer value = steps.get(term); java.lang.String lineToAdd = ((((("\"" + term) + "\"") + ": ") + (value.toString())) + ",") + "\n"; outputString = outp...
public java.lang.String parseStepsHash() { java.lang.String outputString = ""; for (java.lang.String term : steps.keySet()) { java.lang.String value = steps.get(term); java.lang.String lineToAdd = ((((("\"" + term) + "\"") + ": ") + value) + ",") + "\n"; outputString = outputString + lin...
public void start() { if (!(mRunning)) { mRunning = true; android.util.Log.i(ch.logixisland.anuto.game.GameEngine.TAG, "Starting game loop"); mGameThread = new android.os.HandlerThread("GameThread-0"); mGameThread.start(); mGameHandler = new android.os.Handler(mGameThread.get...
public void start() { if (!(mRunning)) { android.util.Log.i(ch.logixisland.anuto.game.GameEngine.TAG, "Starting game loop"); mRunning = true; mGameHandler.post(new java.lang.Runnable() { @java.lang.Override public void run() { tick(); } ...
public static void printPlainMessage(objects.PlainMessage message) { java.lang.System.out.println(); java.lang.System.out.println(message.getMessageText()); java.lang.System.out.println(java.util.Arrays.toString(message.getMessageDecimalArray())); java.lang.System.out.println(message.getMessageDecimal()...
public static void printPlainMessage(objects.PlainMessage message) { java.lang.System.out.println(); java.lang.System.out.println(message.getMessageText()); java.lang.System.out.println(java.util.Arrays.toString(message.getMessageDecimalArray())); java.lang.System.out.println(message.getMessageHex()); ...
public void onDateSet(android.widget.DatePicker view, int year, int monthOfYear, int dayOfMonth) { dates = ((((java.lang.Integer.toString(year)) + "/") + (java.lang.Integer.toString(monthOfYear))) + "/") + (java.lang.Integer.toString(dayOfMonth)); }
public void onDateSet(android.widget.DatePicker view, int year, int monthOfYear, int dayOfMonth) { monthOfYear = monthOfYear + 1; dates = ((((java.lang.Integer.toString(dayOfMonth)) + "/") + (java.lang.Integer.toString(monthOfYear))) + "/") + (java.lang.Integer.toString(year)); }
protected sentimentAnalysis.ScoreNode getNode(edu.emory.clir.clearnlp.dependency.DEPNode node, java.util.Map<java.lang.String, java.lang.Double> map) { double score = 0; double intensity = getIntensity(node); if (map.containsKey(node.getLemma())) { score = map.get(node.getLemma()); } sentime...
protected sentimentAnalysis.ScoreNode getNode(edu.emory.clir.clearnlp.dependency.DEPNode node, java.util.Map<java.lang.String, java.lang.Double> map) { double score = 0; double intensity = getIntensity(node); if (map.containsKey(node.getLemma())) { score = map.get(node.getLemma()); } sentime...
protected org.apache.ignite.configuration.CacheConfiguration cacheConfiguration(@org.jetbrains.annotations.NotNull java.lang.String name, java.lang.Class<?> clsK, java.lang.Class<?> clsV) { org.apache.ignite.configuration.CacheConfiguration<?, ?> cache = defaultCacheConfiguration(); cache.setName(name); cac...
protected org.apache.ignite.configuration.CacheConfiguration cacheConfiguration(@org.jetbrains.annotations.NotNull java.lang.String name) { org.apache.ignite.configuration.CacheConfiguration<?, ?> cache = defaultCacheConfiguration(); cache.setName(name); cache.setCacheMode(org.apache.ignite.cache.CacheMode....
private static java.util.Optional<edu.cwru.eecs.clipper.Models.UserAccount> convertToUserAccount(org.bson.Document result) { java.util.Optional<edu.cwru.eecs.clipper.Models.UserAccount> userAccountOptional = java.util.Optional.empty(); if ((result != null) && (!(result.getBoolean("isDeleted")))) { edu.c...
static java.util.Optional<edu.cwru.eecs.clipper.Models.UserAccount> convertToUserAccount(org.bson.Document result) { java.util.Optional<edu.cwru.eecs.clipper.Models.UserAccount> userAccountOptional = java.util.Optional.empty(); if ((result != null) && (!(result.getBoolean("isDeleted", false)))) { edu.cw...
protected static java.lang.String getBNpos_ro(java.util.Map<java.lang.String, it.uniroma1.lcl.babelnet.data.BabelPOS> posMapping, java.lang.String pos) { java.lang.String pos5chars = ""; if ((pos.length()) > 1) { pos5chars = pos.substring(0, 5); }else { return null; } it.uniroma1.lcl...
protected static java.lang.String getBNpos_ro(java.util.Map<java.lang.String, it.uniroma1.lcl.babelnet.data.BabelPOS> posMapping, java.lang.String pos) { java.lang.String pos5chars = ""; if ((pos.length()) > 1) { pos5chars = pos.substring(0, 5); }else { return null; } it.uniroma1.lcl...
public void setNetworkProperties(java.util.Collection<org.ndexbio.model.object.NdexPropertyValuePair> properties, java.util.Collection<org.ndexbio.model.object.SimplePropertyValuePair> presentationProperties) { if (properties != null) { this.network.getProperties().addAll(properties); this.networkDo...
public void setNetworkProperties(java.util.Collection<org.ndexbio.model.object.NdexPropertyValuePair> properties, java.util.Collection<org.ndexbio.model.object.SimplePropertyValuePair> presentationProperties) { if (properties != null) { this.network.getProperties().addAll(properties); this.networkDo...
public void onInitViewContent() { super.onInitViewContent(); addProfileFieldForDetailsPage(caseRegisterPresenter.getFields()); formSwitcher.setText(R.string.show_more_details); if (((org.unicef.rapidreg.base.record.RecordActivity) (getActivity())).getCurrentFeature().isDetailMode()) { editButton...
public void onInitViewContent() { super.onInitViewContent(); formSwitcher.setText(R.string.show_more_details); if (((org.unicef.rapidreg.base.record.RecordActivity) (getActivity())).getCurrentFeature().isDetailMode()) { editButton.setVisibility(View.VISIBLE); } }
public java.util.List<org.egov.works.models.masters.ScheduleOfRate> getSORList() { if (((estimateId) != null) && ((estimateDate) != null)) return scheduleOfRateService.getScheduleOfRatesByCodeAndScheduleOfCategories(query, scheduleCategoryId.toString()); else if ((estimateDate) != null) ...
public java.util.List<org.egov.works.models.masters.ScheduleOfRate> getSORList() { if (((estimateId) != null) && ((estimateDate) != null)) return scheduleOfRateService.getScheduleOfRatesByCodeAndScheduleOfCategories(query, scheduleCategoryId.toString(), estimateDate); else if ((estimateDate) != ...
public static void setUpClass() { org.holodeckb2b.integ.OutFlowIT.itHelper = new org.holodeckb2b.integ.ITHelper(); org.holodeckb2b.integ.OutFlowIT.itHelper.unzipHolodeckDistribution(org.holodeckb2b.integ.OutFlowIT.dADirName); org.holodeckb2b.integ.OutFlowIT.itHelper.unzipHolodeckDistribution(org.holodeckb2b...
public static void setUpClass() { org.holodeckb2b.integ.OutFlowIT.itHelper = new org.holodeckb2b.integ.ITHelper(); org.holodeckb2b.integ.OutFlowIT.itHelper.unzipHolodeckDistribution(org.holodeckb2b.integ.OutFlowIT.dADirName); org.holodeckb2b.integ.OutFlowIT.itHelper.unzipHolodeckDistribution(org.holodeckb2b...
public void onCheckedChanged(android.widget.RadioGroup group, int checkedId) { int selected = ((android.widget.RadioGroup) (findViewById(R.id.createMatchRadioGroupLevel))).getCheckedRadioButtonId(); if (selected == (R.id.createMatchRadioButtonJunior)) { radioGroupLevelSelection = 1; }else if...
public void onCheckedChanged(android.widget.RadioGroup group, int checkedId) { int selected = ((android.widget.RadioGroup) (findViewById(R.id.createMatchRadioGroupLevel))).getCheckedRadioButtonId(); if (selected == (R.id.createMatchRadioButtonJunior)) { radioGroupLevelSelection = 1; }else if...
public boolean compare(double avgT, double devT, double minT, double maxT) { if (((((avgTemp) == avgT) && ((devTemp) == devT)) && ((minTemp) == minT)) && ((maxTemp) == maxT)) return true > ((origin) / (master)); return false; }
public boolean compare(double avgT, double devT, double minT, double maxT) { if (((((avgTemp) == avgT) && ((devTemp) == devT)) && ((minTemp) == minT)) && ((maxTemp) == maxT)) { return true; } return false; }
private int getMove(com.rijul.game.core.Board board) { java.lang.String boardAsString = getBoardAsString(board); if ((playerNumber) == 1) { if (boardAsString.equals(com.rijul.game.app.player.impl.Bot.INITIAL_BOARD)) { int ind = random.nextInt(com.rijul.game.app.player.impl.Bot.INITIAL_MOVES....
private int getMove(com.rijul.game.core.Board board) { java.lang.String boardAsString = getBoardAsString(board); if (boardAsString.equals(com.rijul.game.app.player.impl.Bot.INITIAL_BOARD)) { int ind = random.nextInt(com.rijul.game.app.player.impl.Bot.INITIAL_MOVES.length); return com.rijul.game....
public void calculateRedpacksPrize(cn.wisdom.lottery.dao.vo.Lottery lottery) { if (cn.wisdom.lottery.common.utils.CollectionUtils.isNotEmpty(lottery.getRedpacks())) { int totalBonus = lottery.getPeriods().get(0).getPrizeBonus(); int bonus = 0; for (cn.wisdom.lottery.dao.vo.LotteryRedpack lot...
public void calculateRedpacksPrize(cn.wisdom.lottery.dao.vo.Lottery lottery) { if (cn.wisdom.lottery.common.utils.CollectionUtils.isNotEmpty(lottery.getRedpacks())) { int totalBonus = lottery.getPeriods().get(0).getPrizeBonus(); float bonus = 0; for (cn.wisdom.lottery.dao.vo.LotteryRedpack l...
private void passMessagesToLeaves(int i) { node.Node from = getNodeFromId(i); if (from.isLeaf()) { from = from.getNeighborList().get(0); } java.lang.System.out.println(("root " + (from.getNodeName()))); for (node.Node to : from.getNeighborList()) { from.passMessageTo(to); pas...
private void passMessagesToLeaves(int i) { node.Node from = getNodeFromId(i); if (from.isLeaf()) { from = from.getNeighborList().get(0); } for (node.Node to : from.getNeighborList()) { from.passMessageTo(to); passMessagesToLeaves2(to, from); } }
public java.util.List<org.neo4j.data.generator.domains.medicalrecords.encounters.Encounter> encountersSince(org.joda.time.LocalDate dateOfBirth) { java.util.ArrayList<org.neo4j.data.generator.domains.medicalrecords.encounters.Encounter> encounters = new java.util.ArrayList<org.neo4j.data.generator.domains.medicalre...
public java.util.List<org.neo4j.data.generator.domains.medicalrecords.encounters.Encounter> encountersSince(org.joda.time.LocalDate dateOfBirth) { java.util.ArrayList<org.neo4j.data.generator.domains.medicalrecords.encounters.Encounter> encounters = new java.util.ArrayList<org.neo4j.data.generator.domains.medicalre...
public void testUnknownTableJobGetsRemoved() throws java.lang.Exception { execute("set global stats.enabled=true"); ensureYellow(); try { execute("select * from foobar"); } catch (io.crate.action.sql.SQLActionException e) { assertEquals(e.getMessage(), "Table 'foobar' unknown"); } ...
public void testUnknownTableJobGetsRemoved() throws java.lang.Exception { execute("set global stats.enabled=true"); ensureYellow(); try { execute("select * from foobar"); } catch (io.crate.action.sql.SQLActionException e) { assertEquals(e.getMessage(), "Table 'foobar' unknown"); } fi...