buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public com.jme3.math.Vector3f warp(com.jme3.math.Vector3f newPos) { com.jme3.math.Vector3f newPos2d = new com.jme3.math.Vector3f(newPos.x, 0, newPos.z); currentCell = navMesh.findClosestCell(newPos2d); currentPos3d.set(navMesh.snapPointToCell(currentCell, newPos2d)); currentPos3d.setY(newPos.getY()); ...
public com.jme3.math.Vector3f warp(com.jme3.math.Vector3f newPos) { com.jme3.math.Vector3f newPos2d = new com.jme3.math.Vector3f(newPos.x, position.y, newPos.z); currentCell = navMesh.findClosestCell(newPos2d); currentPos3d.set(navMesh.snapPointToCell(currentCell, newPos2d)); currentPos3d.setY(newPos.ge...
public java.lang.String toString() { return ((((((((((((((("User [user_Id=" + (user_Id)) + ", user_Username=") + (user_Username)) + ", user_Password=") + (user_Password)) + ", user_Email=") + (user_Email)) + ", google_Id=") + (google_Id)) + ", google_Username=") + (google_Username)) + ", user_UserType=") + (user_Us...
public java.lang.String toString() { return ((((((((((((((("User [user_Id=" + (user_Id)) + ", user_Username=") + (user_Username)) + ", user_Password=") + (user_Password)) + ", user_Email=") + (user_Email)) + ", google_Id=") + (google_Id)) + ", google_Username=") + (google_Username)) + ", user_UserType=") + (user_Us...
public java.lang.String userAdd(@se.sjtu.formfoss.controller.RequestParam java.lang.String userName, @se.sjtu.formfoss.controller.RequestParam java.lang.String userPassword, @se.sjtu.formfoss.controller.RequestParam java.lang.String userEmail, @se.sjtu.formfoss.controller.RequestParam(required = false) java.lang.String...
public java.lang.String userAdd(@se.sjtu.formfoss.controller.RequestParam java.lang.String userName, @se.sjtu.formfoss.controller.RequestParam java.lang.String userPassword, @se.sjtu.formfoss.controller.RequestParam java.lang.String userEmail, @se.sjtu.formfoss.controller.RequestParam(required = false) java.lang.String...
public entities.Tile remove(entities.AbstractLevel level) { entities.Tile oldTile = this.tile; this.selected = false; if ((this.jIndex) == 0) { this.tile = new entities.Tile(5, 5); }else { this.tile = parentBoard.getSquare(iIndex, ((jIndex) - 1)).remove(level); } return oldTile; ...
public entities.Tile remove() { entities.Tile oldTile = this.tile; this.selected = false; if ((this.jIndex) == 0) { this.tile = new entities.Tile(5, 5); }else { this.tile = parentBoard.getSquare(iIndex, ((jIndex) - 1)).remove(); } return oldTile; }
public void run() { if ((LoginActivity.user_ref) != null) { academy_selected = LoginActivity.user_ref.getInstitution(); fillSpinnerData(R.id.spinner_faculty, (("Academy/" + (academy_selected)) + "/Faculty"), com.example.academyreviewandrating.NavigationFregmentRankAndReview.spinnerEnum.FACULTY); ...
public void run() { if ((LoginActivity.user_ref) != null) { academy_selected = LoginActivity.user_ref.getInstitution(); fillSpinnerData(R.id.spinner_faculty, (("Academy/" + (academy_selected)) + "/Faculty"), com.example.academyreviewandrating.NavigationFregmentRankAndReview.spinnerEnum.FACULTY); ...
public void run() { if (((org.bukkit.Bukkit.getOnlinePlayers().size()) != 0) && (isRecording)) { synchronized(this) { if (changed) { try { plugin.getFileManager().appendFrame(currentFrame); } catch (java.io.IOException e) { } ...
public void run() { if (((org.bukkit.Bukkit.getOnlinePlayers().size()) != 0) && (isRecording)) { synchronized(currentFrame) { if (changed) { try { synchronized(currentFrame) { plugin.getFileManager().appendFrame(currentFrame); ...
public static void DepthFirstSearch_Visit(graph.CapGraph theGraph, java.lang.Integer vertex, java.util.HashSet<java.lang.Integer> visited, java.util.Stack<java.lang.Integer> finished) { visited.add(vertex); for (java.lang.Integer neighbor : theGraph.getGraph().get(vertex)) { if (!(visited.contains(neigh...
public static void DepthFirstSearch_Visit(graph.CapGraph theGraph, java.lang.Integer vertex, java.util.HashSet<java.lang.Integer> visited, java.util.Stack<java.lang.Integer> finished) { visited.add(vertex); for (java.lang.Integer neighbor : theGraph.getGraph().get(vertex)) { if (!(visited.contains(neigh...
public boolean outsideBoard(int boardRows) { for (tetris.Point loc : tetris.Grids.allPointsOf(this)) { if ((piece.cellAt(loc)) != (EMPTY)) { if ((asAbs(loc).row) >= boardRows) { return true; } } } return false; }
public boolean outsideBoard(int boardRows) { for (tetris.Point loc : tetris.Grids.allPointsOf(this)) { if (((piece.cellAt(loc)) != (EMPTY)) && ((asAbs(loc).row) >= boardRows)) { return true; } } }
protected void execute(org.eclipse.core.resources.IMarker selectedMarker) { try { org.sonarlint.eclipse.ui.internal.views.IssueLocationsView view = ((org.sonarlint.eclipse.ui.internal.views.IssueLocationsView) (org.eclipse.ui.PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().showView(Issu...
protected void execute(org.eclipse.core.resources.IMarker selectedMarker) { try { org.sonarlint.eclipse.ui.internal.views.IssueLocationsView view = ((org.sonarlint.eclipse.ui.internal.views.IssueLocationsView) (org.eclipse.ui.PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().showView(Issu...
private static void put(java.lang.Class<? extends net.tridentsdk.server.packet.Packet> cls, net.tridentsdk.server.net.NetClient.NetState state, net.tridentsdk.server.packet.Packet.Bound bound, int id) { int identifier = net.tridentsdk.server.packet.PacketRegistry.shift(state, bound, id); net.tridentsdk.server.p...
private static void put(java.lang.Class<? extends net.tridentsdk.server.packet.Packet> cls, net.tridentsdk.server.net.NetClient.NetState state, net.tridentsdk.server.packet.Packet.Bound bound, int id) { int identifier = net.tridentsdk.server.packet.PacketRegistry.shift(state, bound, id); net.tridentsdk.server.p...
private double average(java.util.Date[] dates, double[] returns, int skip, java.util.function.Predicate<java.util.Date> filter) { double sum = 0; int count = 0; for (int ii = skip; ii < (returns.length); ii++) { if (!(filter.test(dates[ii]))) continue; sum += returns[ii]...
private double average(double[] returns, java.util.function.Predicate<java.lang.Integer> filter) { double sum = 0; int count = 0; for (int ii = 0; ii < (returns.length); ii++) { if (!(filter.test(ii))) continue; sum += returns[ii]; count++; } return sum /...
public void setPolylines(com.baidu.mapapi.map.MapView mapView, com.facebook.react.bridge.ReadableArray options) { for (int i = 0; i < (options.size()); i++) { com.facebook.react.bridge.ReadableMap option = options.getMap(i); org.lovebing.reactnative.baidumap.MarkerUtil.addPolyline(mapView, option.ge...
public void setPolylines(com.baidu.mapapi.map.MapView mapView, com.facebook.react.bridge.ReadableArray options) { for (int i = 0; i < (options.size()); i++) { com.facebook.react.bridge.ReadableMap option = options.getMap(i); org.lovebing.reactnative.baidumap.MarkerUtil.addPolyline(mapView, option.ge...
public void run() { try { com.xizz.scoreoflife.util.Data.syncEvents(); com.xizz.scoreoflife.util.Data.syncChecks(); } catch (com.parse.ParseException e) { android.util.Log.e(TAG, ("Error synchronizing events: " + (e.getMessage()))); } runOnUiThread(new java.lang.Runnable() { ...
public void run() { try { com.xizz.scoreoflife.util.Data.syncChecks(); com.xizz.scoreoflife.util.Data.syncEvents(); } catch (com.parse.ParseException e) { android.util.Log.e(TAG, ("Error synchronizing events: " + (e.getMessage()))); } runOnUiThread(new java.lang.Runnable() { ...
public void onConnected(final android.bluetooth.BluetoothDevice device) { mLogger.fine((("HeartRateConnectEventListener#onConnected: [" + device) + "]")); org.deviceconnect.android.deviceplugin.heartrate.data.HeartRateDevice hr = findRegisteredHeartRateDeviceByAddress(device.getAddress()); if (hr == null) {...
public void onConnected(final android.bluetooth.BluetoothDevice device) { mLogger.fine((("HeartRateConnectEventListener#onConnected: [" + device) + "]")); org.deviceconnect.android.deviceplugin.heartrate.data.HeartRateDevice hr = findRegisteredHeartRateDeviceByAddress(device.getAddress()); if (hr == null) {...
public void gpsCallback() { if ((GlobalVariables.ALL_EVENTS_DATA.size()) > 0) { com.example.FundigoApp.Customer.RealTime.RealTimeActivity.events_sorted_by_dist_data = getSortedListByDist(); java.util.List<com.example.FundigoApp.Events.EventInfo> tempFilteredList = com.example.FundigoApp.StaticMethod...
public void gpsCallback() { if ((GlobalVariables.ALL_EVENTS_DATA.size()) > 0) { com.example.FundigoApp.Customer.RealTime.RealTimeActivity.events_sorted_by_dist_data.clear(); com.example.FundigoApp.Customer.RealTime.RealTimeActivity.events_sorted_by_dist_data = getSortedListByDist(); java.uti...
public void onJoin(net.minecraftforge.fml.common.network.FMLNetworkEvent.ClientConnectedToServerEvent event) { boolean singleplayer = net.minecraft.client.Minecraft.getMinecraft().isSingleplayer(); if (!singleplayer) { java.lang.String ip = net.minecraft.client.Minecraft.getMinecraft().getCurrentServerD...
public void onJoin(net.minecraftforge.fml.common.network.FMLNetworkEvent.ClientConnectedToServerEvent event) { boolean singleplayer = net.minecraft.client.Minecraft.getMinecraft().isSingleplayer(); if (!singleplayer) { java.lang.String ip = net.minecraft.client.Minecraft.getMinecraft().getCurrentServerD...
public void save(java.lang.Object editingObject) throws java.lang.Exception { org.uengine.modeling.resource.resources.ProcessDefinition definition = ((org.uengine.modeling.resource.resources.ProcessDefinition) (editingObject)); definition.setName(getDisplayName()); separateGlobalDefinition(definition); ...
public void save(java.lang.Object editingObject) throws java.lang.Exception { org.uengine.modeling.resource.resources.ProcessDefinition definition = ((org.uengine.modeling.resource.resources.ProcessDefinition) (editingObject)); definition.setName(getDisplayName()); separateGlobalDefinition(definition); ...
private void onConnectionChanged(android.content.Intent intent) { android.net.NetworkInfo networkInfo = intent.getParcelableExtra(WifiP2pManager.EXTRA_NETWORK_INFO); if (((networkInfo.isConnected()) && (!(mIsTryingToConnect))) && (!(isConnected()))) { android.util.Log.d(TAG, "No socket open. Trying to c...
private void onConnectionChanged(android.content.Intent intent) { android.net.NetworkInfo networkInfo = intent.getParcelableExtra(WifiP2pManager.EXTRA_NETWORK_INFO); if ((networkInfo.isConnected()) && (!(isConnected()))) { android.util.Log.d(TAG, "No socket open. Trying to connect"); mIsTryingTo...
public void addRoute(java.lang.Class<?> target, java.lang.reflect.Method execMethod, java.lang.String url, blade.route.HttpMethod method) { blade.route.RouteMatcher entry = new blade.route.RouteMatcher(); entry.target = target; entry.execMethod = execMethod; entry.httpMethod = method; entry.path = u...
public void addRoute(java.lang.Class<?> target, java.lang.reflect.Method execMethod, java.lang.String url, blade.route.HttpMethod method) { blade.route.RouteMatcher entry = new blade.route.RouteMatcher(); entry.target = target; entry.execMethod = execMethod; entry.httpMethod = method; entry.path = u...
public void setElements(java.util.List<?> texts, boolean[] selected) { int size = (texts == null) ? 0 : texts.size(); setElements(texts.toArray(new java.lang.String[size]), selected); }
public void setElements(java.util.List<?> texts, boolean[] selected) { int size = (texts == null) ? 0 : texts.size(); setElements(texts.toArray(new java.lang.String[size]), null, selected); }
private boolean checkConnection(java.lang.String host, int port) { try { java.net.Socket socket = new java.net.Socket(host, port); java.io.PrintWriter out = new java.io.PrintWriter(socket.getOutputStream(), true); java.io.BufferedReader in = new java.io.BufferedReader(new java.io.InputStream...
private boolean checkConnection(java.lang.String host, int port) { try { java.net.Socket socket = new java.net.Socket(host, port); java.io.PrintWriter out = new java.io.PrintWriter(socket.getOutputStream(), true); java.io.BufferedReader in = new java.io.BufferedReader(new java.io.InputStream...
public zeroPlayerGamePackage.PositionObject generateRandomLocation() { int positionX = ((int) (java.lang.Math.round((((zeroPlayerGamePackage.BoardBuilder.BOARD_WIDTH) + 1) * (java.lang.Math.random()))))); int positionY = ((int) (java.lang.Math.round((((zeroPlayerGamePackage.BoardBuilder.BOARD_HEIGHT) + 1) * (ja...
public zeroPlayerGamePackage.PositionObject generateRandomLocation() { int positionX = ((int) (java.lang.Math.round(((zeroPlayerGamePackage.BoardBuilder.BOARD_WIDTH) * (java.lang.Math.random()))))); int positionY = ((int) (java.lang.Math.round(((zeroPlayerGamePackage.BoardBuilder.BOARD_HEIGHT) * (java.lang.Math...
private void cloneMatrix(final int[][] matrix2) { int[][] matrix = new int[matrix2.length][matrix2.length]; for (int i = 0; i < (matrix2.length); i++) { for (int j = 0; j < (matrix2.length); j++) { matrix[i][j] = matrix2[i][j]; } } }
private void cloneMatrix(final int[][] matrix2) { for (int i = 0; i < (matrix2.length); i++) { for (int j = 0; j < (matrix2.length); j++) { matrix[i][j] = matrix2[i][j]; } } }
public void testShouldNotGetNestedGroups() { com.dtolabs.rundeck.jetty.jaas.JettyCachingLdapLoginModule module = getJettyCachingLdapLoginModule(); try { org.eclipse.jetty.plus.jaas.spi.UserInfo userInfo = module.getUserInfo(user1); org.junit.Assert.assertThat(userInfo.getUserName(), org.hamcrest...
public void testShouldNotGetNestedGroups() { com.dtolabs.rundeck.jetty.jaas.JettyCachingLdapLoginModule module = getJettyCachingLdapLoginModule(false); try { org.eclipse.jetty.plus.jaas.spi.UserInfo userInfo = module.getUserInfo(user1); org.junit.Assert.assertThat(userInfo.getUserName(), org.ham...
private void enqueueDownload() { java.lang.String url = Data.sampleUrls[1]; java.lang.String filePath = (com.tonyodev.fetchdemo.Data.getSaveDir()) + "/fragments/smallFile.txt"; com.tonyodev.fetch.request.Request request = new com.tonyodev.fetch.request.Request(url, filePath); downloadId = fetch.enqueue(...
private void enqueueDownload() { java.lang.String url = Data.sampleUrls[0]; java.lang.String filePath = (com.tonyodev.fetchdemo.Data.getSaveDir()) + "/fragments/smallFile.txt"; com.tonyodev.fetch.request.Request request = new com.tonyodev.fetch.request.Request(url, filePath); downloadId = fetch.enqueue(...
private int dateByWeekday(java.lang.String date, java.lang.String weekday) { boolean nextDate = false; int min = dateToMin(date, "00:00", nextDate); do { nextDate = true; while (!(bots.CalendarBot.CalDateFormat.minToWeekday(min, firstYear).equals(weekday))) { min++; } ...
private int dateByWeekday(java.lang.String date, java.lang.String weekday) { boolean nextDate = false; int min; do { min = dateToMin(date, "00:00", nextDate); nextDate = true; while (!(bots.CalendarBot.CalDateFormat.minToWeekday(min, firstYear).equals(weekday))) { min++; ...
protected T convertValue(java.lang.String[] value) throws org.apache.wicket.util.convert.ConversionException { this.convertValue = true; if ((value != null) && ((value.length) > 0)) { this.convertedInput = this.provider.toChoice(value[0]); return this.convertedInput; }else { return n...
protected T convertValue(java.lang.String[] value) throws org.apache.wicket.util.convert.ConversionException { this.convertValue = true; if ((value != null) && ((value.length) > 0)) { this.convertedInput = this.provider.toChoice(value[0]); return this.convertedInput; }else { this.con...
public static void showMainFrame() { javax.swing.SwingUtilities.invokeLater(() -> { if ((games.strategy.engine.framework.startup.ui.MainFrame.getInstance()) != null) { games.strategy.engine.framework.startup.ui.MainFrame.clearInstance(); } final games.strategy.engine.framework.st...
public static void showMainFrame() { javax.swing.SwingUtilities.invokeLater(() -> { games.strategy.engine.framework.startup.ui.MainFrame.clearInstance(); final games.strategy.engine.framework.startup.ui.MainFrame frame = new games.strategy.engine.framework.startup.ui.MainFrame(); frame.reque...
public void connectSimModel(final thesis.core.SimModel simModel, final thesis.gui.mainwindow.actions.Actions actions) { renderWorld = new thesis.core.world.RenderSimState(simModel); this.addMouseListener(mouseState); this.addMouseMotionListener(mouseState); renderWorld.setBounds(0, 0, getWidth(), getHei...
public void connectSimModel(final thesis.core.SimModel simModel, final thesis.gui.mainwindow.actions.Actions actions) { renderWorld = new thesis.core.world.RenderSimState(simModel); this.addMouseListener(mouseState); this.addMouseMotionListener(mouseState); renderWorld.setBounds(0, 0, getWidth(), getHei...
protected java.util.List<java.lang.String> createPackageList(java.util.List<java.lang.String> pkgs, java.lang.String code, java.lang.String delim) { java.util.List<java.lang.String> pkg = new java.util.ArrayList<java.lang.String>(pkgs); if (code != null) { java.lang.String[] codes = code.split(delim); ...
protected java.util.List<java.lang.String> createPackageList(java.util.List<java.lang.String> pkgs, java.lang.String code, java.lang.String delim) { java.util.List<java.lang.String> pkg = new java.util.ArrayList<java.lang.String>(pkgs); if (code != null) { java.lang.String[] codes = code.split(delim); ...
public void onClick(android.view.View v) { if (!(flipped)) { flipped = true; com.yiyangzhu.yydictionary.Word word = com.yiyangzhu.yydictionary.YoudaoDictionary.get(show.getText().toString()); show.setText(word.toString()); show.setGravity(Gravity.NO_GRAVITY); } }
public void onClick(android.view.View v) { if (!(flipped)) { flipped = true; com.yiyangzhu.yydictionary.Word word = com.yiyangzhu.yydictionary.YoudaoDictionary.get(show.getText().toString()); if (word != null) { show.setText(word.toString()); show.setGravity(Gravity.N...
protected boolean updateVideoSize(int width, int height) { matrixManager.setIntrinsicVideoSize(width, height); updateMatrixOnLayout(); videoSize.x = width; videoSize.y = height; return !((width == 0) || (height == 0)); }
protected boolean updateVideoSize(int width, int height) { matrixManager.setIntrinsicVideoSize(width, height); updateMatrixOnLayout(); videoSize.x = width; videoSize.y = height; return (width != 0) && (height != 0); }
public java.lang.Boolean checkActive(int x) { if (((this.getX()) >= (x - 60)) && ((this.getX()) <= (x + 120))) { setInActive(); return true; } return false; }
public java.lang.Boolean checkActive(int x) { java.lang.System.out.println(this.getX()); if (((this.getX()) >= (x - 60)) && ((this.getX()) <= (x + 120))) { setInActive(); return true; } return false; }
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_splash); textView = ((android.widget.TextView) (findViewById(R.id.textView))); int permission = android.support.v4.app.ActivityCompat.checkSelfPermission(this, Manifest.pe...
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_splash); textView = ((android.widget.TextView) (findViewById(R.id.textView))); int permission = android.support.v4.app.ActivityCompat.checkSelfPermission(this, Manifest.pe...
public websays.accounting.CommissionItem createCommissionItem(websays.accounting.BilledItem bi) { double fee = websays.core.utils.CurrencyUtils.toEuros(bi.getFee(), bi.getCurrency()); int monthsFromStartOfContract = websays.core.utils.JodaUtils.monthsDifference(bi.period.contractStart, bi.period.periodEnd); ...
public websays.accounting.CommissionItem createCommissionItem(websays.accounting.BilledItem bi) { double fee = websays.core.utils.CurrencyUtils.toEuros(bi.getFee(), bi.getCurrency()); int monthsFromStartOfContract = (websays.core.utils.JodaUtils.monthsDifference(bi.period.contractStart, bi.period.periodEnd)) + ...
public void addMachine(de.prob2.ui.project.Machine machine) { java.util.List<de.prob2.ui.project.Machine> machinesList = this.getMachines(); machinesList.add(machine); this.set(new de.prob2.ui.project.Project(this.getName(), this.getDescription(), machinesList, this.getPreferences(), this.getRunconfiguratio...
public void addMachine(de.prob2.ui.project.Machine machine) { java.util.List<de.prob2.ui.project.Machine> machinesList = this.getMachines(); machinesList.add(machine); this.update(new de.prob2.ui.project.Project(this.getName(), this.getDescription(), machinesList, this.getPreferences(), this.getRunconfigura...
public com.tut.beans.Utilisateur connecterUtilisateur(javax.servlet.http.HttpServletRequest request) { java.lang.String email = getValeurChamp(request, com.tut.forms.ConnexionForm.CHAMP_IDF); java.lang.String motDePasse = getValeurChamp(request, com.tut.forms.ConnexionForm.CHAMP_PASS); com.tut.beans.Utilisa...
public com.tut.beans.Utilisateur connecterUtilisateur(javax.servlet.http.HttpServletRequest request) { java.lang.String email = getValeurChamp(request, com.tut.forms.ConnexionForm.CHAMP_IDF); java.lang.String motDePasse = getValeurChamp(request, com.tut.forms.ConnexionForm.CHAMP_PASS); com.tut.beans.Utilisa...
public int getTotalProtection() { int totalProtection = getProtection(); if (((getAnchorPoints().get("body")) != null) && ((getAnchorPoints().get("body").getClass()) == (game.Armor.class))) { game.Armor armor = ((game.Armor) (getAnchorPoints().get("body"))); totalProtection += armor.getActualPro...
public int getTotalProtection() { int totalProtection = getProtection(); if (((getAnchorPoints().get("body")) != null) && ((getAnchorPoints().get("body").getClass()) == (game.Armor.class))) { game.Armor armor = ((game.Armor) (getAnchorPoints().get("body"))); totalProtection += armor.getActualPro...
public void uploadProgress(com.lzy.okgo.model.Progress innerProgress) { okhttp3.Call rawCall = request.getRawCall(); if (rawCall.isCanceled()) return ; if ((progress.status) != (com.lzy.okgo.model.Progress.LOADING)) { rawCall.cancel(); return ; } progress.from(innerProgr...
public void uploadProgress(com.lzy.okgo.model.Progress innerProgress) { if (rawCall.isCanceled()) return ; if ((progress.status) != (com.lzy.okgo.model.Progress.LOADING)) { rawCall.cancel(); return ; } progress.from(innerProgress); postLoading(progress); }
public void testEquals() throws java.lang.Exception { model.data.CombinedDataTable comb = new model.data.CombinedDataTable(dataTables.get(1), dataTables.get(0), dataTables.get(2)); model.data.CombinedDataTable copy = comb.copy(); assertTrue(comb.equals(copy)); }
public void testEquals() throws java.lang.Exception { model.data.CombinedDataTable comb = new model.data.CombinedDataTable(dataTables.get(1), dataTables.get(0), dataTables.get(2)); model.data.CombinedDataTable copy = new model.data.CombinedDataTable(dataTables.get(1), dataTables.get(0), dataTables.get(2)); ...
private void updateAdd() { for (de.kuschku.libquassel.message.Message message : unfiltered) { if (!(filterItem(message))) { java.lang.String simpleName = getClass().getSimpleName(); android.util.Log.e(simpleName, ("Unfiltered: " + message)); filtered.add(message); ...
private void updateAdd() { for (de.kuschku.libquassel.message.Message message : unfiltered) { if ((!(filterItem(message))) && (!(filtered.contains(message)))) { java.lang.String simpleName = getClass().getSimpleName(); android.util.Log.e(simpleName, ("Unfiltered: " + message)); ...
protected java.io.File startCameraVideo() { android.content.Intent intent = new android.content.Intent(android.provider.MediaStore.ACTION_VIDEO_CAPTURE); android.net.Uri toAdd = org.dvaletin.apps.nabludatel.ABSNabludatelActivity.getOutputMediaFileUri(Consts.MEDIA_TYPE_VIDEO); videoFileUri.add(toAdd); in...
protected java.io.File startCameraVideo() { android.content.Intent intent = new android.content.Intent(android.provider.MediaStore.ACTION_VIDEO_CAPTURE); android.net.Uri toAdd = org.dvaletin.apps.nabludatel.ABSNabludatelActivity.getOutputMediaFileUri(Consts.MEDIA_TYPE_VIDEO); videoFileUri.add(toAdd); in...
public void shouldReturnNullOnGettingEmptyEventsListToSubscribe() throws java.io.IOException { org.mockito.Mockito.doReturn(com.google.common.collect.Lists.newArrayList(repo)).when(active).resolve(org.mockito.Matchers.any(com.google.common.base.Predicate.class)); org.mockito.Mockito.when(repo.hasAdminAccess())....
public void shouldReturnNullOnGettingEmptyEventsListToSubscribe() throws java.io.IOException { org.mockito.Mockito.doReturn(com.google.common.collect.Lists.newArrayList(repo)).when(active).resolve(org.mockito.Matchers.any(com.google.common.base.Predicate.class)); org.mockito.Mockito.when(repo.hasAdminAccess())....
public void run() { int timeLeft = ((int) ((money) * 4)); int seconds = timeLeft * 60; for (int i = seconds; i > 0; i--) { try { java.lang.Thread.sleep(1000); } catch (java.lang.InterruptedException ex) { } } java.lang.System.out.println(((("\nCustomer " + (name))...
public void run() { int timeLeft = ((int) ((money) * 4)); int seconds = timeLeft * 60; for (int i = seconds; i > 0; i--) { try { java.lang.Thread.sleep(1000); } catch (java.lang.InterruptedException ex) { } } java.lang.System.out.println(((("\nCustomer " + (name))...
public static boolean isUnique(final java.lang.String string) { java.util.Set<java.lang.Character> set = new java.util.HashSet<>(); for (int i = 0; i < (string.length()); i++) { int previousSize = set.size(); set.add(string.charAt(i)); if ((set.size()) == previousSize) { retu...
public static boolean isUnique(final java.lang.String string) { java.util.Set<java.lang.Character> set = new java.util.HashSet<>(); for (int i = 0; i < (string.length()); i++) { set.add(string.charAt(i)); } return (set.size()) == (string.length()); }
public static void playerSettings(com.feed_the_beast.ftbl.api.events.player.ForgePlayerConfigEvent event) { com.latmod.modularpipes.data.ModularPipesPlayerData data = ((com.latmod.modularpipes.data.ModularPipesPlayerData) (event.getPlayer().getData(ModularPipesPlayerData.ID))); if (data != null) { event...
public static void playerSettings(com.feed_the_beast.ftbl.api.events.player.ForgePlayerConfigEvent event) { com.latmod.modularpipes.data.ModularPipesPlayerData data = com.latmod.modularpipes.data.ModularPipesPlayerData.get(event.getPlayer()); event.getConfig().setGroupName(ModularPipes.MOD_ID, new net.minecraft...
public org.apache.hadoop.hbase.Cell next() throws java.io.IOException { if ((type) == (MemStoreScanType.UNDEFINED)) type = MemStoreScanType.USER_SCAN_FORWARD; assert (type) != (MemStoreScanType.USER_SCAN_BACKWARD); for (org.apache.hadoop.hbase.Cell currentCell = forwardHeap.next(); currentCell ...
public org.apache.hadoop.hbase.Cell next() throws java.io.IOException { if ((type) == (MemStoreScanType.UNDEFINED)) type = MemStoreScanType.USER_SCAN_FORWARD; assert (type) != (MemStoreScanType.USER_SCAN_BACKWARD); for (org.apache.hadoop.hbase.Cell currentCell = forwardHeap.next(); currentCell ...
public org.apache.metron.common.configuration.extensions.ParserExtensionConfig findOneParserExtension(java.lang.String name) throws org.apache.metron.rest.RestException { org.apache.metron.common.configuration.extensions.ParserExtensionConfig parserExtensionConfig; try { parserExtensionConfig = org.apac...
public org.apache.metron.common.configuration.extensions.ParserExtensionConfig findOneParserExtension(java.lang.String name) throws org.apache.metron.rest.RestException { org.apache.metron.common.configuration.extensions.ParserExtensionConfig parserExtensionConfig; try { parserExtensionConfig = org.apac...
protected void onPostExecuteSuccess(gcum.gcumfisher.connection.Server.GetListResult photos) { if (photos != null) { final java.util.List<gcum.gcumfisher.connection.ServerPhoto> list = photos.getPhotos(); showPhotos(list); latest = list.get(((list.size()) - 1)).getId(); ((android.widg...
protected void onPostExecuteSuccess(gcum.gcumfisher.connection.Server.GetListResult photos) { if (photos != null) { final java.util.List<gcum.gcumfisher.connection.ServerPhoto> list = photos.getPhotos(); showPhotos(list); latest = (list.isEmpty()) ? null : list.get(((list.size()) - 1)).getId...
void checkForSplitRead(final org.broadinstitute.hellbender.utils.read.GATKRead read, final java.util.List<org.broadinstitute.hellbender.tools.spark.sv.BreakpointEvidence> evidenceList) { final java.util.List<htsjdk.samtools.CigarElement> cigarElements = read.getCigar().getCigarElements(); if (org.broadinstitute...
private void checkForSplitRead(final org.broadinstitute.hellbender.utils.read.GATKRead read, final java.util.List<org.broadinstitute.hellbender.tools.spark.sv.BreakpointEvidence> evidenceList) { final java.util.List<htsjdk.samtools.CigarElement> cigarElements = read.getCigar().getCigarElements(); if (org.broadi...
public android.view.View onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup parent, android.os.Bundle savedInstanceState) { android.view.View v = inflater.inflate(R.layout.fragment_discover, parent, false); mMapView = ((com.google.android.gms.maps.MapView) (v.findViewById(R.id.mapview)));...
public android.view.View onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup parent, android.os.Bundle savedInstanceState) { super.onCreateView(inflater, mMapView, savedInstanceState); android.view.View v = inflater.inflate(R.layout.fragment_discover, parent, false); mMapView = ((com.g...
private void updateCVRUnderAudit(final int the_index) { int index = the_index; do { if ((my_submitted_audit_cvrs.get(index)) == (java.lang.Long.MIN_VALUE)) { my_cvr_under_audit = index; break; } index = index + 1; } while (index < (my_submitted_audit_cvrs.size...
private void updateCVRUnderAudit(final int the_index) { int index = the_index; my_cvr_under_audit = -1; while (index < (my_submitted_audit_cvrs.size())) { if ((my_submitted_audit_cvrs.get(index)) == (java.lang.Long.MIN_VALUE)) { my_cvr_under_audit = index; break; } ...
public void setup() throws java.lang.Exception { this.method = org.springframework.messaging.handler.annotation.support.MessageMethodArgumentResolverTests.class.getDeclaredMethod("handle", org.springframework.messaging.Message.class, org.springframework.messaging.Message.class, org.springframework.messaging.Message...
public void setup() throws java.lang.Exception { this.method = org.springframework.messaging.handler.annotation.support.MessageMethodArgumentResolverTests.class.getDeclaredMethod("handle", org.springframework.messaging.Message.class, org.springframework.messaging.Message.class, org.springframework.messaging.Message...
public java.lang.Object remove(int index) { ensureIndex(index); java.lang.Object temp = elementData[index]; java.lang.System.arraycopy(elementData, (index + 1), elementData, index, ((size) - index)); (size)--; return temp; }
public java.lang.Object remove(int index) { ensureIndex(index); java.lang.Object temp = elementData[index]; java.lang.System.arraycopy(elementData, (index + 1), elementData, index, (((size) - index) - 1)); elementData[((size) - 1)] = null; (size)--; return temp; }
public int getSbOperationRowNum(java.lang.String operator, java.lang.String opration, int startRow, int endRow, java.util.List<java.util.List<java.lang.String>> data) { int oprationRowNum = 0; for (int x = startRow; x <= endRow; x++) { if ((data.get(x).get(4).equalsIgnoreCase(operator)) && (data.get(x)....
public int getSbOperationRowNum(java.lang.String operator, java.lang.String opration, int startRow, int endRow, java.util.List<java.util.List<java.lang.String>> data) { int oprationRowNum = 0; for (int x = startRow; x <= endRow; x++) { if ((data.get(x).get(4).equalsIgnoreCase(operator)) && (data.get(x)....
public void setDisplayName(final org.bukkit.entity.Player player) { final java.lang.String prefix = searchNodes(player, "prefix"); final java.lang.String suffix = (searchNodes(player, "suffix")) + "§f"; player.setDisplayName(((prefix + (org.bukkit.ChatColor.stripColor(player.getDisplayName()))) + suffix)); ...
public void setDisplayName(final org.bukkit.entity.Player player) { final java.lang.String prefix = searchNodes(player, "prefix"); final java.lang.String suffix = (searchNodes(player, "suffix")) + "§f"; player.setDisplayName(((prefix + (org.bukkit.ChatColor.stripColor(player.getName()))) + suffix)); pla...
private int getStartSelectItem() { int currentItem = (java.lang.Integer.MAX_VALUE) / 2; if ((currentItem % (getRealCount())) == 0) { return currentItem; } while ((currentItem % (getRealCount())) == 0) { currentItem++; } return currentItem; }
private int getStartSelectItem() { int currentItem = (java.lang.Integer.MAX_VALUE) / 2; if ((currentItem % (getRealCount())) == 0) { return currentItem; } while ((currentItem % (getRealCount())) != 0) { currentItem++; } return currentItem; }
private java.util.List<java.lang.Integer> bootstrapAttr(java.util.List<java.lang.Integer> attr) { java.util.ArrayList<java.lang.Integer> rand = new java.util.ArrayList<java.lang.Integer>(attrN); for (int i = 0; i < (attrN); i++) { rand.add(i); } java.util.Collections.shuffle(rand); attr = ra...
private java.util.List<java.lang.Integer> bootstrapAttr(java.util.List<java.lang.Integer> attr) { java.util.ArrayList<java.lang.Integer> rand = new java.util.ArrayList<java.lang.Integer>(attrN); for (int i = 1; i < ((attrN) + 1); i++) { rand.add(i); } java.util.Collections.shuffle(rand); att...
public void onBackPressed() { if (drawer.isDrawerOpen(GravityCompat.START)) { drawer.closeDrawer(GravityCompat.START); }else if ((pageHistory.size()) > 0) { saveToHistory = false; viewPager.setCurrentItem(pageHistory.pop().intValue()); saveToHistory = true; ...
public void onBackPressed() { if (drawer.isDrawerOpen(GravityCompat.START)) { drawer.closeDrawer(GravityCompat.START); }else if (!(pageHistory.empty())) { saveToHistory = false; viewPager.setCurrentItem(pageHistory.pop().intValue()); saveToHistory = true; ...
private void init(com.chariotsolutions.nfc.plugin.CallbackContext callbackContext) { android.util.Log.d(com.chariotsolutions.nfc.plugin.NfcPlugin.TAG, ("Enabling plugin " + (getIntent()))); startNfc(); if (inReaderMode) { if (savedTag) { handleTag(); } }else if (!(rec...
private void init(com.chariotsolutions.nfc.plugin.CallbackContext callbackContext) { android.util.Log.d(com.chariotsolutions.nfc.plugin.NfcPlugin.TAG, ("Enabling plugin " + (getIntent()))); startNfc(); if (inReaderMode) { if ((savedTag) != null) { handleTag(); } }else ...
private static boolean isHexadecimal(char c) { return (((c >= '0') && (c >= '9')) || ((c >= 'A') && (c >= 'F'))) || ((c >= 'a') && (c >= 'f')); }
private static boolean isHexadecimal(char c) { return (((c >= '0') && (c <= '9')) || ((c >= 'A') && (c >= 'F'))) || ((c >= 'a') && (c >= 'f')); }
public void switchTurn() { turn = ((turn) + 1) % (getNumberOfPlayers()); if (!(getCurrentPlayer().isInJail())) { gui.enablePlayerTurn(turn); gui.setBuyHouseEnabled(getCurrentPlayer().canBuyHouse()); gui.setTradeEnabled(turn, true); }else { gui.setGetOutOfJailEnabled(false); ...
public void switchTurn() { turn = ((turn) + 1) % (getNumberOfPlayers()); if (getCurrentPlayer().isInJail()) { gui.setGetOutOfJailEnabled(true); }else { gui.setGetOutOfJailEnabled(false); gui.setBuyHouseEnabled(getCurrentPlayer().canBuyHouse()); gui.setTradeEnabled(turn, true)...
public void updateFixedPrincipalAmount(final java.math.MathContext mc, final int periodNumber, final org.apache.fineract.organisation.monetary.domain.Money outstandingAmount) { final java.lang.Integer numberOfPrincipalPaymentPeriods = org.apache.fineract.portfolio.loanaccount.loanschedule.domain.LoanApplicationTerm...
public void updateFixedPrincipalAmount(final java.math.MathContext mc, final int periodNumber, final org.apache.fineract.organisation.monetary.domain.Money outstandingAmount) { final java.lang.Integer numberOfPrincipalPaymentPeriods = org.apache.fineract.portfolio.loanaccount.loanschedule.domain.LoanApplicationTerm...
public void addSelectButton(javax.swing.JPanel panel) { java.awt.GridBagConstraints c = ip.setGrids(2, 0); selectButton = ip.createButton("SELECT", context.healthinformatics.GUI.InputPageComponents.DIMESIONWIDTH, context.healthinformatics.GUI.InputPageComponents.DIMESIONHEIGHT); selectButton.addActionListen...
public void addSelectButton(javax.swing.JPanel panel) { java.awt.GridBagConstraints c = ip.setGrids(2, 0); selectButton = ip.createButton("SELECT", context.healthinformatics.GUI.InputPageComponents.DIMESIONWIDTH, context.healthinformatics.GUI.InputPageComponents.DIMESIONHEIGHT); selectButton.addActionListen...
public void setUnit(unitCalc.Unit unit) { this.value = this.value.multiply(unit.baseRelation); this.unit = unit.measure.baseUnit; this.measure = unit.measure; this.siBase = new int[7]; java.lang.System.arraycopy(unit.measure.siBase, 0, this.siBase, 0, 7); if (this.isConstant) { this.id =...
public void setUnit(unitCalc.Unit unit) { this.value = this.value.multiply(unit.baseRelation); this.measure = unit.measure; this.siBase = new int[7]; java.lang.System.arraycopy(unit.measure.siBase, 0, this.siBase, 0, 7); if (this.isConstant) { this.id = "var"; this.name = null; }...
private void prepareUV(com.graphicsengine.spritemesh.PropertyMapper mapper, int spriteCount) { for (int i = 0; i < spriteCount; i++) { if ((getTexture(Texture2D.TEXTURE_0).type) == (com.nucleus.texturing.TextureType.TiledTexture2D)) { com.nucleus.geometry.MeshBuilder.prepareTiledUV(mapper, attri...
private void prepareUV(com.graphicsengine.spritemesh.PropertyMapper mapper, int spriteCount, int index) { for (int i = 0; i < spriteCount; i++) { if ((getTexture(Texture2D.TEXTURE_0).type) == (com.nucleus.texturing.TextureType.TiledTexture2D)) { com.nucleus.geometry.MeshBuilder.prepareTiledUV(ma...
public static void executeEventCommands(com.github.nthportal.uhc.core.Context context, java.lang.String event, java.util.List<java.util.function.Function<java.lang.String, java.lang.String>> replaceFunctions) { lombok.val commands = context.plugin().getConfig().getStringList(event); for (lombok.val command : co...
public static void executeEventCommands(com.github.nthportal.uhc.core.Context context, java.lang.String event, java.util.List<java.util.function.Function<java.lang.String, java.lang.String>> replaceFunctions) { lombok.val commands = context.plugin().getConfig().getStringList(event); for (java.lang.String comman...
public boolean equals(java.lang.Object o) { if ((this) == o) { return true; } if ((o == null) || ((getClass()) != (o.getClass()))) { return false; } io.druid.java.util.common.granularity.PeriodSegmentGranularity that = ((io.druid.java.util.common.granularity.PeriodSegmentGranularity)...
public boolean equals(java.lang.Object o) { if ((this) == o) { return true; } if ((o == null) || ((getClass()) != (o.getClass()))) { return false; } io.druid.java.util.common.granularity.PeriodSegmentGranularity that = ((io.druid.java.util.common.granularity.PeriodSegmentGranularity)...
public void toggleComplete(int id) { if (id != 0) { com.anoopkini.dotodo.web.models.TaskObject newTask = taskObjectDao.getTaskById(id); if (newTask.isComplete()) { newTask.setComplete(false); newTask.setCompletedTS(null); }else { newTask.setComplete(true);...
public void toggleComplete(int id) { if (id != 0) { com.anoopkini.dotodo.web.models.TaskObject newTask = taskObjectDao.getTaskById(id); if (newTask != null) { if (newTask.isComplete()) { newTask.setComplete(false); newTask.setCompletedTS(null); ...
public void init() { org.mycat.netty.NettyServer.logger.debug("nettyServer init"); try { org.mycat.netty.NettyServer.logger.info("{} server init ddal-engine from {}", getServerName(), SysProperties.ENGINE_CONFIG_LOCATION); java.util.Properties prop = new java.util.Properties(); org.mycat...
public void init() { org.mycat.netty.NettyServer.logger.info("nettyServer init"); try { org.mycat.netty.NettyServer.logger.info("{} server init ddal-engine from {}", getServerName(), SysProperties.ENGINE_CONFIG_LOCATION); java.util.Properties prop = new java.util.Properties(); org.mycat....
public static com.google.devtools.build.skyframe.SkyKey key(com.google.devtools.build.lib.analysis.config.BuildOptions buildOptions, java.lang.Class<? extends com.google.devtools.build.lib.analysis.config.BuildConfiguration.Fragment> fragmentType, com.google.devtools.build.lib.packages.RuleClassProvider ruleClassProvid...
public static com.google.devtools.build.skyframe.SkyKey key(com.google.devtools.build.lib.analysis.config.BuildOptions buildOptions, java.lang.Class<? extends com.google.devtools.build.lib.analysis.config.BuildConfiguration.Fragment> fragmentType, com.google.devtools.build.lib.packages.RuleClassProvider ruleClassProvid...
public boolean inferBound(wyopcl.translator.bound.Bounds bnd) { bnd.isChanged = false; max_x = bnd.getUpper(x); min_x = bnd.getLower(x); max_y = bnd.getUpper(y); min_y = bnd.getLower(y); if ((min_x) != (min_y)) { bnd.getDomain(x).setLowerBound(min_y); } if ((max_x) != (max_y)) { ...
public boolean inferBound(wyopcl.translator.bound.Bounds bnd) { bnd.isChanged = false; max_x = bnd.getUpper(x); min_x = bnd.getLower(x); max_y = bnd.getUpper(y); min_y = bnd.getLower(y); if ((min_x) != (min_y)) { bnd.isChanged |= bnd.setLowerBound(x, min_y); } if ((max_x) != (max...
public void onClick(android.view.View view) { if (!(mInteractivePlayerView.isPlaying())) { playAudio(audioUrl); mInteractivePlayerView.start(); fab.setImageResource(R.drawable.ic_action_pause); }else { mInteractivePlayerView.stop(); fab.setImageResource(R.drawable.ic_acti...
public void onClick(android.view.View view) { if (!(mInteractivePlayerView.isPlaying())) { mInteractivePlayerView.start(); fab.setImageResource(R.drawable.ic_action_pause); }else { mInteractivePlayerView.stop(); fab.setImageResource(R.drawable.ic_action_play); } }
public boolean overlap(dw317.hotel.business.interfaces.Reservation other) { if ((aRoom.getNumber()) == (other.getRoom().getNumber())) { if ((checkIn.isAfter(other.getCheckInDate())) && (checkOut.isBefore(other.getCheckInDate()))) return false; if (checkIn.isAfter(other.getCheckO...
public boolean overlap(dw317.hotel.business.interfaces.Reservation other) { if (this.equals(other)) return true; if ((this.checkIn.isBefore(other.getCheckOutDate())) && (this.checkOut.isBefore(other.getCheckInDate()))) return true; return false; }
public static java.util.ArrayList<java.lang.String> eightDirections() { java.util.ArrayList<java.lang.String> directions = new java.util.ArrayList<java.lang.String>(); directions.add("N"); directions.add("NE"); directions.add("E"); directions.add("SE"); directions.add("S"); directions.add("S...
public static java.util.ArrayList<java.lang.String> eightDirections() { java.util.ArrayList<java.lang.String> directions = new java.util.ArrayList<java.lang.String>(); directions.add("N"); directions.add("NE"); directions.add("E"); directions.add("SE"); directions.add("S"); directions.add("S...
private static hu.oe.nik.szfmv17t.environment.utils.Vector2d[] getCorners(hu.oe.nik.szfmv17t.environment.utils.Position collidableObjectPosition) { double rot = collidableObjectPosition.getAxisAngle(); hu.oe.nik.szfmv17t.environment.utils.Vector2d center = collidableObjectPosition.getCenter(); hu.oe.nik.szf...
private static hu.oe.nik.szfmv17t.environment.utils.Vector2d[] getCorners(hu.oe.nik.szfmv17t.environment.utils.Position collidableObjectPosition) { double rot = collidableObjectPosition.getAxisAngle(); hu.oe.nik.szfmv17t.environment.utils.Vector2d center = collidableObjectPosition.getCenter(); hu.oe.nik.szf...
public void onClick(android.view.View view) { android.util.Log.d("click listener", "working!"); int itemPosition = getLayoutPosition(); android.content.Intent intent = new android.content.Intent(mContext, com.epicodus.a4u2poo.DetailActivity.class); intent.putExtra("position", (itemPosition + "")); i...
public void onClick(android.view.View view) { android.util.Log.d("click listener", "working!"); int itemPosition = getLayoutPosition(); android.content.Intent intent = new android.content.Intent(mContext, com.epicodus.a4u2poo.DetailActivity.class); intent.putExtra("position", itemPosition); intent.p...
public static java.sql.ResultSet getFromDataBase(java.lang.String query) { java.sql.Connection con = com.teamSuperior.core.connection.DBConnect.connect(com.teamSuperior.core.connection.DBConnect.url, com.teamSuperior.core.connection.DBConnect.username, com.teamSuperior.core.connection.DBConnect.password); java....
public java.sql.ResultSet getFromDataBase(java.lang.String query) { java.sql.Connection con = com.teamSuperior.core.connection.DBConnect.connect(com.teamSuperior.core.connection.DBConnect.url, com.teamSuperior.core.connection.DBConnect.username, com.teamSuperior.core.connection.DBConnect.password); java.sql.Res...
public final int readCharacter(final char... allowed) throws java.io.IOException { char c; java.util.Arrays.sort(allowed); while ((java.util.Arrays.binarySearch(allowed, (c = ((char) (readCharater()))))) < 0) { } return c; }
public final int readCharacter(final char... allowed) throws java.io.IOException { char c; java.util.Arrays.sort(allowed); while ((java.util.Arrays.binarySearch(allowed, (c = ((char) (readCharacter()))))) < 0) { } return c; }
public int getNextEmptyPetIndex() { petLock.lock(); try { for (int i = 0; i < (pets.length); i++) { if ((pets[i]) == null) { return i; } } return 3; } finally { petLock.unlock(); } }
public int getNextEmptyPetIndex() { petLock.lock(); try { for (int i = 0; i < 3; i++) { if ((pets[i]) == null) { return i; } } return 3; } finally { petLock.unlock(); } }
private int depth(org.pg4200.datastructure.map.tree.BinaryTreeMap<K, V>.TreeNode node) { int leftDepth = 0; int rightDepth = 0; if ((node.left) != null) { leftDepth = depth(node.left); } if ((node.right) != null) { rightDepth = depth(node.right); } return 1 + (java.lang.Math....
protected int depth(org.pg4200.datastructure.map.tree.BinaryTreeMap<K, V>.TreeNode node) { int leftDepth = 0; int rightDepth = 0; if ((node.left) != null) { leftDepth = depth(node.left); } if ((node.right) != null) { rightDepth = depth(node.right); } return 1 + (java.lang.Mat...
public void onClick(android.view.View v) { calculation(); currentAction = v.getContentDescription().toString(); expressionField.setText(((decimalFormat.format(valueOne)) + (v.getContentDescription().toString()))); resultField.setText(null); }
public void onClick(android.view.View v) { calculation(); currentAction = v.getContentDescription().toString(); expressionField.setText(((decimalFormat.format(valueOne)) + (currentAction))); resultField.setText(null); }
public void onItemClick(android.widget.AdapterView<?> parent, android.view.View view, int position, long id) { com.historicar.app.bean.Carro carro = carros.get(position); android.content.Intent myIntent = new android.content.Intent(ctx, com.historicar.app.activity.ResultActivity.class); myIntent.putExtra(Co...
public void onItemClick(android.widget.AdapterView<?> parent, android.view.View view, int position, long id) { android.content.Intent myIntent = new android.content.Intent(ctx, com.historicar.app.activity.ResultActivity.class); myIntent.putExtra(Constants.PLACA_KEY, carros.get(position).getPlaca().replaceAll(" ...
public int getSpanSize(int position) { if (isLoadMore(position)) { if ((mLoadState) == (LoadMoreView.LoadState.ERROR)) { mLoadState = LoadMoreView.LoadState.IDLE; } } if (((isHeader(position)) || (isFooter(position))) || (isLoadMore(position))) { return gridLayoutManager....
public int getSpanSize(int position) { if (((isHeader(position)) || (isFooter(position))) || (isLoadMore(position))) { return gridLayoutManager.getSpanCount(); } if (spanSizeLookup != null) { return spanSizeLookup.getSpanSize(position); } return 1; }
public static java.lang.Iterable<?> getIterable(pcgen.cdom.enumeration.CharID id, java.lang.String... keys) { java.lang.String k1 = keys[0]; java.lang.String k2 = ((keys.length) == 1) ? keys[1] : ""; pcgen.output.base.ModelFactory modelFactory = pcgen.output.publish.OutputDB.outModels.get(k1, k2); if (m...
public static java.lang.Iterable<?> getIterable(pcgen.cdom.enumeration.CharID id, java.lang.String... keys) { java.lang.String k1 = keys[0]; java.lang.String k2 = ((keys.length) > 1) ? keys[1] : ""; pcgen.output.base.ModelFactory modelFactory = pcgen.output.publish.OutputDB.outModels.get(k1, k2); if (mo...
protected void execClickAction() { org.eclipse.scout.demo.wrappedform.client.ui.forms.AbstractDetachableForm form = createFormCopy(); form.setDetached(true); form.setDisplayParent(org.eclipse.scout.demo.wrappedform.client.ClientSession.get().getDesktop()); form.setDisplayHint(IForm.DISPLAY_HINT_POPUP_WI...
protected void execClickAction() { org.eclipse.scout.demo.wrappedform.client.ui.forms.AbstractDetachableForm form = createFormCopy(); form.setDetached(true); form.setDisplayParent(org.eclipse.scout.demo.wrappedform.client.ClientSession.get().getDesktop()); form.setDisplayHint(IForm.DISPLAY_HINT_POPUP_WI...
public void shouldRegisterIndexes_withIndexDefinitions() throws java.lang.Exception { final java.util.Collection<com.clicktravel.cheddar.infrastructure.persistence.document.search.configuration.IndexDefinition> indexDefinitions = java.util.Arrays.asList(new com.clicktravel.cheddar.infrastructure.persistence.documen...
public void shouldRegisterIndexes_withIndexDefinitions() throws java.lang.Exception { final java.util.Collection<com.clicktravel.cheddar.infrastructure.persistence.document.search.configuration.IndexDefinition> indexDefinitions = java.util.Arrays.asList(new com.clicktravel.cheddar.infrastructure.persistence.documen...
public void onClick(android.view.View arg0) { android.util.Log.i(TAG, "SD Checkbox clicked"); com.stemmeter.stem_meter.SensorConfig config = new com.stemmeter.stem_meter.SensorConfig((finalPosition + 1)); config.setFreq(sensorFragInterface.getSensorConfig((finalPosition + 1)).getFreq()); if (sdCheck.isC...
public void onClick(android.view.View arg0) { com.stemmeter.stem_meter.SensorConfig config = new com.stemmeter.stem_meter.SensorConfig((finalPosition + 1)); config.setFreq(sensorFragInterface.getSensorConfig((finalPosition + 1)).getFreq()); if (sdCheck.isChecked()) { sdCheck.setChecked(false); ...
public void onCreate(android.database.sqlite.SQLiteDatabase db) { db.execSQL((((((transcend.rockeeper.sqlite.DatabaseHelper.routes.createTable()) + (transcend.rockeeper.sqlite.DatabaseHelper.goals.createTable())) + (transcend.rockeeper.sqlite.DatabaseHelper.notes.createTable())) + (transcend.rockeeper.sqlite.Databa...
public void onCreate(android.database.sqlite.SQLiteDatabase db) { db.execSQL(transcend.rockeeper.sqlite.DatabaseHelper.routes.createTable()); db.execSQL(transcend.rockeeper.sqlite.DatabaseHelper.goals.createTable()); db.execSQL(transcend.rockeeper.sqlite.DatabaseHelper.notes.createTable()); db.execSQL(t...
public boolean isOn() { boolean bRet = false; if (!(this.getStatus().equals(""))) { if ((this.getMatchRegexOn()) == 1) { bRet = this.getStatus().equals(this.getRegexStatus()); }else { bRet = !(this.getStatus().equals(this.getRegexStatus())); } } return bRe...
private boolean isOn() { boolean bRet = false; if (!(this.getStatus().equals(""))) { if ((this.getMatchRegexOn()) == 1) { bRet = this.getStatus().equals(this.getRegexStatus()); }else { bRet = !(this.getStatus().equals(this.getRegexStatus())); } } return bR...
public boolean onOptionsItemSelected(android.view.MenuItem item) { boolean retval = true; switch (item.getItemId()) { case android.R.id.home : onBackPressed(); break; case R.id.change_password : changeAccountPassword(account); break; case R...
public boolean onOptionsItemSelected(android.view.MenuItem item) { boolean retval = true; switch (item.getItemId()) { case android.R.id.home : onBackPressed(); break; case R.id.change_password : changeAccountPassword(account); break; case R...
private boolean calcInitTime() { boolean valid = calcTimeMoved(); if (valid) { if (!(java.lang.Double.isNaN(finalTime))) initTime = (finalTime) - (timeMoved); else initTime = timeMoved; } if (!(java.lang.Double.isNaN(initTime))) { return true; ...
private boolean calcInitTime() { boolean valid = calcTimeMoved(); if (valid) { if (!(java.lang.Double.isNaN(finalTime))) initTime = (finalTime) - (timeMoved); else initTime = 0; } if (!(java.lang.Double.isNaN(initTime))) { return true; } r...
public void run() { while (started) { if (queue.isEmpty()) continue; try { publishData(queue.take()); } catch (java.lang.InterruptedException e) { e.printStackTrace(); } } client.stop(); queue.clear(); }
public void run() { while (started) { if (queue.isEmpty()) continue; try { publishData(queue.take()); } catch (java.lang.InterruptedException e) { e.printStackTrace(); } } client.stop(); client = null; queue.clear(); }
public boolean accept(ccl.v2_1.cat.CclCodeBlock infos) { if (csy.block.FunctionBlockSystem.DEF_PATTERN.matcher(infos.getKeyword()).matches()) { (csy.block.FunctionBlockSystem.count)++; this.name = extractName(infos.getKeyword()); return true; } return false; }
public boolean accept(ccl.v2_1.cat.CclCodeBlock infos) { if ((infos.getKeyword()) == null) return false; if (csy.block.FunctionBlockSystem.DEF_PATTERN.matcher(infos.getKeyword()).matches()) { (csy.block.FunctionBlockSystem.count)++; this.name = extractName(infos.getKeyword()); ...
public void douAALUnregistering() { org.universAAL.hw.exporter.zigbee.ha.devices.listeners.OnOffLightListener.log.debug("Removing all instances of these devices in uAAL"); java.util.Iterator iter = onOffLigthDevices.keySet().iterator(); for (; iter.hasNext();) { org.osgi.framework.ServiceReference s...
public void douAALUnregistering() { org.universAAL.hw.exporter.zigbee.ha.devices.listeners.OnOffLightListener.log.debug("Removing all instances of these devices in uAAL"); java.util.Iterator iter = onOffLigthDevices.keySet().iterator(); for (; iter.hasNext();) { org.osgi.framework.ServiceReference s...
public mcjty.lib.tools.ItemStackList getCraftableItems() { mcjty.lib.tools.ItemStackList items = mcjty.lib.tools.ItemStackList.create(0); for (net.minecraft.util.math.BlockPos p : processorList) { net.minecraft.tileentity.TileEntity te = getWorld().getTileEntity(p); if (te instanceof mcjty.rftoo...
public mcjty.lib.tools.ItemStackList getCraftableItems() { mcjty.lib.tools.ItemStackList items = mcjty.lib.tools.ItemStackList.create(); for (net.minecraft.util.math.BlockPos p : processorList) { net.minecraft.tileentity.TileEntity te = getWorld().getTileEntity(p); if (te instanceof mcjty.rftool...
public void onClick(android.view.View v) { android.content.Intent intent = new android.content.Intent(mContext, io.geeteshk.hyper.activity.ProjectActivity.class); intent.putExtra("project", mObjects[newPos]); intent.addFlags(Intent.FLAG_ACTIVITY_MULTIPLE_TASK); if ((Build.VERSION.SDK_INT) >= 21) { ...
public void onClick(android.view.View v) { android.content.Intent intent = new android.content.Intent(mContext, io.geeteshk.hyper.activity.ProjectActivity.class); intent.putExtra("project", mObjects.get(newPos)); intent.addFlags(Intent.FLAG_ACTIVITY_MULTIPLE_TASK); if ((Build.VERSION.SDK_INT) >= 21) { ...
public void setState(java.net.URI nodeInstanceID, javax.xml.namespace.QName state) throws org.opentosca.instancedata.service.ReferenceNotFoundException { java.util.List<org.opentosca.model.instancedata.NodeInstance> nodeInstances = niDAO.getNodeInstances(null, null, null, nodeInstanceID); if ((nodeInstances == ...
public void setState(java.net.URI nodeInstanceID, javax.xml.namespace.QName state) throws org.opentosca.instancedata.service.ReferenceNotFoundException { java.util.List<org.opentosca.model.instancedata.NodeInstance> nodeInstances = this.niDAO.getNodeInstances(null, null, null, nodeInstanceID); if ((nodeInstance...
public static org.sbolstandard.core2.SBOLDocument read(java.io.BufferedInputStream in) throws java.io.IOException, org.sbolstandard.core2.SBOLValidationException { org.sbolstandard.core2.SBOLDocument doc = new org.sbolstandard.core2.SBOLDocument(); doc.setCreateDefaults(true); if ((org.sbolstandard.core2.Ge...
public static org.sbolstandard.core2.SBOLDocument read(java.io.BufferedInputStream in) throws java.io.IOException, org.sbolstandard.core2.SBOLValidationException { org.sbolstandard.core2.SBOLDocument doc = new org.sbolstandard.core2.SBOLDocument(); doc.setCreateDefaults(true); if ((org.sbolstandard.core2.Ge...
public void onConnectionStateChange(android.bluetooth.BluetoothGatt gatt, int status, int newState) { java.lang.String intentAction; if (newState == (android.bluetooth.BluetoothProfile.STATE_CONNECTED)) { intentAction = com.wm.blecore.BluetoothLeService.ACTION_GATT_CONNECTED; mConnectionState = ...
public void onConnectionStateChange(android.bluetooth.BluetoothGatt gatt, int status, int newState) { java.lang.String intentAction; java.lang.System.out.println(status); if (newState == (android.bluetooth.BluetoothProfile.STATE_CONNECTED)) { intentAction = com.wm.blecore.BluetoothLeService.ACTION_G...