buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public void setTeam(java.lang.Integer team) { if ((de.mickyjou.plugins.pvpevent.listener.player.SignInteractListener.currentNPC1) != null) { de.mickyjou.plugins.pvpevent.listener.player.SignInteractListener.currentNPC1.destroy(); de.mickyjou.plugins.pvpevent.listener.player.SignInteractListener.curr...
public static void setTeam(java.lang.Integer team) { if ((de.mickyjou.plugins.pvpevent.listener.player.SignInteractListener.currentNPC1) != null) { de.mickyjou.plugins.pvpevent.listener.player.SignInteractListener.currentNPC1.destroy(); de.mickyjou.plugins.pvpevent.listener.player.SignInteractListen...
private void handleIntent(android.content.Intent intent) { if (intent.getAction().equals(Intent.ACTION_SEARCH)) { java.lang.String query = intent.getStringExtra(SearchManager.QUERY); android.widget.Toast.makeText(mContext, query, Toast.LENGTH_SHORT).show(); android.provider.SearchRecentSugge...
private void handleIntent(android.content.Intent intent) { if (((intent.getAction()) != null) && (intent.getAction().equals(Intent.ACTION_SEARCH))) { java.lang.String query = intent.getStringExtra(SearchManager.QUERY); android.widget.Toast.makeText(mContext, query, Toast.LENGTH_SHORT).show(); ...
private void updateNotifyMenu(boolean flag) { if ((menu) == null) return ; if ((cn.edu.jxnu.awesome_campus.MainActivity.presenter.getCurrentSelectedID()) == (DrawerItem.HOME.getId())) { menu.clear(); if (flag) { getMenuInflater().inflate(R.menu.menu_notify_unread, menu);...
private void updateNotifyMenu(boolean flag) { if ((menu) == null) return ; menu.clear(); if ((cn.edu.jxnu.awesome_campus.MainActivity.presenter.getCurrentSelectedID()) == (DrawerItem.HOME.getId())) { if (flag) { getMenuInflater().inflate(R.menu.menu_notify_unread, menu); ...
private void NewCookie(javax.servlet.http.HttpServletResponse response) { javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("cartID", Managers.ShoppingCartHolder.getRandomID()); response.addCookie(cookie); Managers.ShoppingCart cart = new Managers.ShoppingCart(); Managers.ShoppingCartHold...
public void NewCookie(javax.servlet.http.HttpServletResponse response) { javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("cartID", Managers.ShoppingCartHolder.getRandomID()); response.addCookie(cookie); Managers.ShoppingCart cart = new Managers.ShoppingCart(); Managers.ShoppingCartHolde...
public net.minecraft.item.ItemStack getStack() { if (!((this.inventory) instanceof infiniteinvo.inventory.BigInventoryPlayer)) { return this.inventory.getStackInSlot(this.slotIndex); }else if ((((infiniteinvo.inventory.BigInventoryPlayer) (this.inventory)).getUnlockedSlots()) > ((this.slotIndex)...
public net.minecraft.item.ItemStack getStack() { if (!((this.inventory) instanceof infiniteinvo.inventory.BigInventoryPlayer)) { return this.inventory.getStackInSlot(this.slotIndex); }else if ((((infiniteinvo.inventory.BigInventoryPlayer) (this.inventory)).getUnlockedSlots()) > (this.slotIndex))...
private <T> void check(net.serenitybdd.screenplay.Consequence<T> consequence, net.serenitybdd.screenplay.ErrorTally errorTally) { try { eventBusInterface.startQuestion(net.serenitybdd.screenplay.formatting.FormattedTitle.ofConsequence(consequence)); if (eventBusInterface.shouldIgnoreConsequences()) ...
private <T> void check(net.serenitybdd.screenplay.Consequence<T> consequence, net.serenitybdd.screenplay.ErrorTally errorTally) { try { eventBusInterface.startQuestion(net.serenitybdd.screenplay.formatting.FormattedTitle.ofConsequence(consequence)); if (eventBusInterface.shouldIgnoreConsequences()) ...
public com.jetbrains.jetpad.vclang.term.expr.visitor.CheckTypeVisitor.Result visitDefCall(com.jetbrains.jetpad.vclang.term.Abstract.DefCallExpression expr, com.jetbrains.jetpad.vclang.term.expr.type.Type expectedType) { com.jetbrains.jetpad.vclang.term.expr.visitor.CheckTypeVisitor.PreResult result = myTypeChecking...
public com.jetbrains.jetpad.vclang.term.expr.visitor.CheckTypeVisitor.Result visitDefCall(com.jetbrains.jetpad.vclang.term.Abstract.DefCallExpression expr, com.jetbrains.jetpad.vclang.term.expr.type.Type expectedType) { com.jetbrains.jetpad.vclang.term.expr.visitor.CheckTypeVisitor.PreResult result = myTypeChecking...
public void deleteAll() { try { com.edp.myesper.engine.EsperEngine.logger.info("Trying to delete all queries from the Esper Engine Server."); deleteQueryDB("ALL"); java.util.List<java.lang.Integer> keyset = new java.util.ArrayList<java.lang.Integer>(queryMap.keySet()); for (int i : k...
public void deleteAll() { try { com.edp.myesper.engine.EsperEngine.logger.info("Trying to delete all queries from the Esper Engine Server."); deleteQueryDB("ALL"); java.util.List<java.lang.Integer> keyset = new java.util.ArrayList<java.lang.Integer>(queryMap.keySet()); for (int i : k...
public void shouldNotFlushCacheWhenBaseUrlConfigIsNotChanged() { com.thoughtworks.go.server.cache.GoCache cache = org.mockito.Mockito.mock(com.thoughtworks.go.server.cache.GoCache.class); com.thoughtworks.go.listener.BaseUrlChangeListener listener = new com.thoughtworks.go.listener.BaseUrlChangeListener(new com...
public void shouldNotFlushCacheWhenBaseUrlConfigIsNotChanged() { com.thoughtworks.go.server.cache.GoCache cache = mock(com.thoughtworks.go.server.cache.GoCache.class); com.thoughtworks.go.listener.BaseUrlChangeListener listener = new com.thoughtworks.go.listener.BaseUrlChangeListener(new com.thoughtworks.go.dom...
public void update(float delta) { elapsed += delta; runnable.pitch = ionium.util.MathHelper.lerp(init, end, com.badlogic.gdx.math.MathUtils.clamp(((elapsed) / (time)), 0.0F, 1.0F)); Gdx.app.postRunnable(runnable); }
public void update(float delta) { elapsed += delta; runnable.pitch = ionium.util.MathHelper.lerp(init, end, com.badlogic.gdx.math.MathUtils.clamp(((elapsed) / ((time) <= 0 ? 1 : 0)), 0.0F, 1.0F)); Gdx.app.postRunnable(runnable); }
public void handleResetButtonAction(javafx.event.ActionEvent event) throws java.io.IOException { java.lang.System.out.println("reseting level"); int i; try { i = java.lang.Integer.parseInt(levelNumber.getText()); } catch (java.lang.Exception e) { return ; } resetPieces(); res...
public void handleResetButtonAction(javafx.event.ActionEvent event) throws java.io.IOException { java.lang.System.out.println("reseting level"); int i; try { i = java.lang.Integer.parseInt(levelNumber.getText()); } catch (java.lang.Exception e) { return ; } resetButtons(); re...
protected void onResume() { super.onResume(); isFirstScan = true; registerReceiver(mWifiScanReceiver, new android.content.IntentFilter(android.net.wifi.WifiManager.SCAN_RESULTS_AVAILABLE_ACTION)); android.content.IntentFilter filter = new android.content.IntentFilter(); filter.addAction(WifiManager....
protected void onResume() { super.onResume(); isFirstScan = true; registerReceiver(mWifiScanReceiver, new android.content.IntentFilter(android.net.wifi.WifiManager.SCAN_RESULTS_AVAILABLE_ACTION)); android.content.IntentFilter filter = new android.content.IntentFilter(); filter.addAction(WifiManager....
public static boolean setByteFile(java.lang.String fileName, java.lang.String hex) { if ((MockFTPServerJulia.fakeFtpServer.getFileSystem()) == null) { org.mockftpserver.fake.filesystem.FileSystem fileSystem = new org.mockftpserver.fake.filesystem.UnixFakeFileSystem(); MockFTPServerJulia.fakeFtpServe...
public static boolean setByteFile(java.lang.String fileName, java.lang.String hex) { if ((MockFTPServerJulia.fakeFtpServer.getFileSystem()) == null) { org.mockftpserver.fake.filesystem.FileSystem fileSystem = new org.mockftpserver.fake.filesystem.UnixFakeFileSystem(); MockFTPServerJulia.fakeFtpServe...
public void shouldProvideLabelScanStoreUpdatesSortedByNodeId() throws java.lang.Exception { org.neo4j.kernel.impl.api.index.IndexingService indexing = org.mockito.Mockito.mock(org.neo4j.kernel.impl.api.index.IndexingService.class); org.neo4j.unsafe.batchinsert.LabelScanWriter writer = new org.neo4j.kernel.impl....
public void shouldProvideLabelScanStoreUpdatesSortedByNodeId() throws java.lang.Exception { org.neo4j.kernel.impl.api.index.IndexingService indexing = org.mockito.Mockito.mock(org.neo4j.kernel.impl.api.index.IndexingService.class); org.neo4j.unsafe.batchinsert.LabelScanWriter writer = new org.neo4j.kernel.impl....
public void menuRespuestaTruco() { Truco.InputProvider input = new Truco.InputProvider(); java.lang.Integer num1; do { java.lang.System.out.println("El oponente canto truco: "); java.lang.System.out.println("1) Quiero"); java.lang.System.out.println("2) No quiero"); java.lang...
public void menuRespuestaTruco() { Truco.InputProvider input = new Truco.InputProvider(); java.lang.Integer num1; do { java.lang.System.out.println("El oponente canto truco: "); java.lang.System.out.println("1) Quiero"); java.lang.System.out.println("2) No quiero"); java.lang...
public java.util.Set<sk.fei.stuba.xpivarcim.db.entities.assignment.TestFile> unitTestFiles() { java.util.Set<sk.fei.stuba.xpivarcim.db.entities.assignment.TestFile> output = new java.util.HashSet<>(); for (sk.fei.stuba.xpivarcim.db.entities.assignment.TestFile f : testFiles) if (!(f.isRunTest())) ...
public java.util.Set<sk.fei.stuba.xpivarcim.db.entities.assignment.TestFile> unitTestFiles() { java.util.Set<sk.fei.stuba.xpivarcim.db.entities.assignment.TestFile> output = new java.util.HashSet<>(); if (!((testFiles) == null)) { for (sk.fei.stuba.xpivarcim.db.entities.assignment.TestFile f : testFiles...
public org.springframework.data.domain.Page<com.cspinformatique.kubik.model.sales.InvoiceDetail> findProductInvoices(@org.springframework.web.bind.annotation.PathVariable(value = "productId") int productId, @org.springframework.web.bind.annotation.RequestParam(defaultValue = "0") java.lang.Integer page, @org.springfram...
public org.springframework.data.domain.Page<com.cspinformatique.kubik.model.sales.InvoiceDetail> findProductInvoices(@org.springframework.web.bind.annotation.PathVariable(value = "productId") int productId, @org.springframework.web.bind.annotation.RequestParam(defaultValue = "0") java.lang.Integer page, @org.springfram...
public void Process() { setAirplaneState(StateAirplane.LoadingPassagers); enstabretagne.base.time.LogicalDuration t = enstabretagne.base.time.LogicalDuration.ofSeconds((20 * 60)); Post(new enstabretagne.SimEntity.airplane.Airplane.RollingToTrack(), getCurrentLogicalDate().add(t)); java.lang.System.out.p...
public void Process() { setAirplaneState(StateAirplane.LoadingPassagers); enstabretagne.base.time.LogicalDuration t = enstabretagne.base.time.LogicalDuration.ofSeconds((20 * 60)); Post(new enstabretagne.SimEntity.airplane.Airplane.RollingToTrack(), getCurrentLogicalDate().add(t)); enstabretagne.base.uti...
private static java.util.List<Tile> createGameBoard(Board.Builder builder) { java.util.List<Tile> tiles = new java.util.ArrayList<>(); for (int i = 0; i <= (BoardUtils.NUM_TILES); i++) { tiles.add(Tile.createTile(i, builder.boardConfig.get(i))); } return tiles; }
private static java.util.List<Tile> createGameBoard(final Board.Builder builder) { final Tile[] tiles = new Tile[BoardUtils.NUM_TILES]; for (int i = 0; i < (BoardUtils.NUM_TILES); i++) { tiles[i] = Tile.createTile(i, builder.boardConfig.get(i)); } return java.util.Arrays.asList(tiles); }
private double semestrialCorrection(final double param) { final int debeq_pr = 59; final int debeq_au = 244; final double result; if ((cachedDay) >= 100) { final double xmult = ((cachedDay) - debeq_au) / 40.0; result = param - ((2.0 * param) * xmult); }else { final double xmu...
private synchronized double semestrialCorrection(final double param) { final int debeq_pr = 59; final int debeq_au = 244; final double result; if ((cachedDay) >= 100) { final double xmult = ((cachedDay) - debeq_au) / 40.0; result = param - ((2.0 * param) * xmult); }else { fin...
public boolean escribirObjeto(java.lang.Object objeto) { try { if ((outStream) == null) { if ((inStream) != null) { inStream.close(); inStream = null; } outStream = getOutStream(archivo.exists()); } outStream.writeObject(arc...
public boolean escribirObjeto(java.lang.Object objeto) { try { if ((outStream) == null) { if ((inStream) != null) { inStream.close(); inStream = null; } outStream = getOutStream(archivo.exists()); } outStream.writeObject(obj...
public java.util.List<com.spotify.docker.client.messages.Container> listContainers() throws com.spotify.docker.client.DockerException { java.util.concurrent.Callable<java.util.List<com.spotify.docker.client.messages.Container>> callable = new java.util.concurrent.Callable<java.util.List<com.spotify.docker.client.me...
public java.util.List<com.spotify.docker.client.messages.Container> listContainers() throws com.spotify.docker.client.DockerException { java.util.concurrent.Callable<java.util.List<com.spotify.docker.client.messages.Container>> callable = new java.util.concurrent.Callable<java.util.List<com.spotify.docker.client.me...
protected com.sproutigy.libs.luceneplus.core.indices.LuceneIndex instantiate(java.lang.String name) throws java.io.IOException { com.sproutigy.libs.luceneplus.core.indices.LuceneIndex index = instantiated.get(name); if (index == null) { synchronized(lock) { index = instantiated.get(name); ...
protected com.sproutigy.libs.luceneplus.core.indices.LuceneIndex instantiate(java.lang.String name) throws java.io.IOException { com.sproutigy.libs.luceneplus.core.indices.LuceneIndex index = instantiated.get(name); if (index == null) { synchronized(lock) { index = instantiated.get(name); ...
public void writeToParcel(android.os.Parcel dest, int flags) { dest.writeString(this.userID); dest.writeString(this.title); dest.writeString(this.subtitle); dest.writeLong(this.chatTime); dest.writeString(this.image); dest.writeByte((this.isGroup ? ((byte) (1)) : ((byte) (0)))); }
public void writeToParcel(android.os.Parcel dest, int flags) { dest.writeString(this.id); dest.writeString(this.title); dest.writeString(this.subtitle); dest.writeLong(this.chatTime); dest.writeString(this.image); dest.writeByte((this.isGroup ? ((byte) (1)) : ((byte) (0)))); }
public void learning() { if (((tick) % 4) == 0) { calculateReward(); copyCurrentSVIntoPrevSV(); generateCurrentStateVector(); getQfromNet(); qFunction(); resetReward(); doAction(); }else { setTurnGunRight(robocode.util.Utils.normalRelativeAngleDegr...
public void learning() { calculateReward(); copyCurrentSVIntoPrevSV(); generateCurrentStateVector(); getQfromNet(); qFunction(); resetReward(); doAction(); setTurnGunRight(robocode.util.Utils.normalRelativeAngleDegrees(enemyBearingFromGun)); setTurnRadarRight(robocode.util.Utils.norm...
private void SendFileContent(java.net.Socket conn, java.io.InputStream fileIs) throws java.io.IOException { java.io.OutputStream os = conn.getOutputStream(); byte[] b = new byte[1024]; int x = fileIs.read(b); while (x != (-1)) { if (x < 10) { b = java.util.Arrays.copyOf(b, x); ...
private void SendFileContent(java.net.Socket conn, java.io.InputStream fileIs) throws java.io.IOException { java.io.OutputStream os = conn.getOutputStream(); byte[] b = new byte[1024]; int x = fileIs.read(b); while (x != (-1)) { if (x < 1024) { b = java.util.Arrays.copyOf(b, x); ...
public final java.util.Map<java.lang.String, java.lang.Object> getUserData() { final java.util.Map<java.lang.String, java.lang.Object> userData = new java.util.HashMap<>(); userData.put(UserDataFields.PVP_STATUS, hasPvPEnabled()); userData.put(UserDataFields.TOGGLE_TIME, getToggleTime()); userData.put(U...
public final java.util.Map<java.lang.String, java.lang.Object> getUserData() { final java.util.Map<java.lang.String, java.lang.Object> userData = new java.util.HashMap<>(); userData.put(UserDataFields.PVP_STATUS, hasPvPEnabled()); userData.put(UserDataFields.TOGGLE_TIME, getToggleTime()); userData.put(U...
public org.apache.jackrabbit.core.security.authorization.AbstractCompiledPermissions.Result combine(org.apache.jackrabbit.core.security.authorization.AbstractCompiledPermissions.Result other) { int cAllows = (allows) | (org.apache.jackrabbit.core.security.authorization.Permission.diff(other.allows, denies)); in...
public org.apache.jackrabbit.core.security.authorization.AbstractCompiledPermissions.Result combine(org.apache.jackrabbit.core.security.authorization.AbstractCompiledPermissions.Result other) { int cAllows = (allows) | (org.apache.jackrabbit.core.security.authorization.Permission.diff(other.allows, denies)); in...
public void Is_Valid_Person_Name(android.widget.EditText edt) throws java.lang.NumberFormatException { if ((edt.getText().toString().length()) <= 0) { edt.setError("Accept Alphabets Only."); valid_name = null; }else if (!(edt.getText().toString().matches("[a-zA-Z ]+"))) { edt...
public void Is_Valid_Person_Name(android.widget.EditText edt) throws java.lang.NumberFormatException { if ((edt.getText().toString().length()) <= 0) { valid_name = null; }else if (!(edt.getText().toString().matches("[a-zA-Z ]+"))) { valid_name = null; }else { vali...
private void extendProgram() { insertAdditionalVariables(); notNullVariables.set(0); org.teavm.model.Variable[] parameters = new org.teavm.model.Variable[(methodDescriptor.parameterCount()) + 1]; for (int i = 0; i < (parameters.length); ++i) { parameters[i] = program.variableAt(i); } phi...
private void extendProgram() { notNullVariables.set(0); insertAdditionalVariables(); org.teavm.model.Variable[] parameters = new org.teavm.model.Variable[(methodDescriptor.parameterCount()) + 1]; for (int i = 0; i < (parameters.length); ++i) { parameters[i] = program.variableAt(i); } phi...
public void add(cque.INodePool pool, E e) { assert e != null; cque.Node<E> n = getNode(pool, e); if ((tail) == null) { assert (head) == null; head = n; tail = n; } tail.setNext(n); tail = n; }
public void add(cque.INodePool pool, E e) { assert e != null; cque.Node<E> n = getNode(pool, e); if ((tail) == null) { assert (head) == null; head = n; tail = n; return ; } tail.setNext(n); tail = n; }
public int getTotalPoints() { int points = 0; for (int i = 1; i < (this.cards.size()); i++) { points += this.cards.get(i).getPoints(); } return points; }
public int getTotalPoints() { int points = 0; for (int i = 0; i < (this.cards.size()); i++) { points += this.cards.get(i).getPoints(); } return points; }
public void dispose() { timer.stop(); byte option = ((byte) (javax.swing.JOptionPane.showConfirmDialog(this, "Exit all programs?", "Exit Confirmation", javax.swing.JOptionPane.YES_NO_CANCEL_OPTION))); if (option == (javax.swing.JOptionPane.YES_OPTION)) { java.lang.System.exit(0); }else i...
public void dispose() { if ((timer) != null) timer.stop(); byte option = ((byte) (javax.swing.JOptionPane.showConfirmDialog(this, "Exit all programs?", "Exit Confirmation", javax.swing.JOptionPane.YES_NO_CANCEL_OPTION))); if (option == (javax.swing.JOptionPane.YES_OPTION)) { java.lang.S...
public final void backup(java.lang.String extension) throws java.io.IOException { javi.FileDescriptor.LocalFile file2 = FileDescriptor.LocalFile.make(((prop.fdes.shortName) + extension)); if ((!(prop.fdes.canWrite())) && ("Microsoft Corp.".equals(java.lang.System.getProperty("java.vendor")))) history.To...
public final void backup(java.lang.String extension) throws java.io.IOException { javi.FileDescriptor.LocalFile file2 = FileDescriptor.LocalFile.make(((prop.fdes.shortName) + extension)); if ((!(prop.fdes.canWrite())) && ("Microsoft Corp.".equals(java.lang.System.getProperty("java.vendor")))) history.To...
public void testRemoveBookingWithPreviousBookingButUnendedRemoveCandidate() { testee.addBooking(testBookings, de.lgblaumeiser.ptm.datamanager.service.BookingServiceTest.ACTIVITY1, de.lgblaumeiser.ptm.datamanager.service.BookingServiceTest.TIME1); de.lgblaumeiser.ptm.datamanager.model.Booking testBooking = teste...
public void testRemoveBookingWithPreviousBookingButUnendedRemoveCandidate() { testee.addBooking(testBookings, de.lgblaumeiser.ptm.datamanager.service.BookingServiceTest.ACTIVITY1, de.lgblaumeiser.ptm.datamanager.service.BookingServiceTest.TIME1); de.lgblaumeiser.ptm.datamanager.model.Booking testBooking = teste...
private boolean assertContiguous(gnu.trove.list.TIntList list) { if ((list.size()) < 2) { return true; } int prev = list.get(0); for (int i = 1; i < (list.size()); ++i) { int v = list.get(i); if (v == (prev - 1)) { prev = v; continue; } ret...
private boolean assertContiguous(gnu.trove.list.TIntList list) { if ((list.size()) < 2) { return true; } int prev = list.get(0); for (int i = 1; i < (list.size()); ++i) { int v = list.get(i); if (v == (prev + 1)) { prev = v; continue; } ret...
public T addExtra(T... extras) { if (extras != null) { for (T extra : extras) { if ((this.extra) == null) { this.extra = new java.util.LinkedList<>(); } this.extra.add(extra); } } return ((T) (this)); }
public T addExtra(T... extras) { if (extras != null) { for (T extra : extras) { if (extra == null) continue; if ((this.extra) == null) { this.extra = new java.util.LinkedList<>(); } this.extra.add(extra); } ...
private void setPortraitAspectRatio() { double param = ((double) (mDisplayMetrics.widthPixels)) / ((double) (mDisplayMetrics.heightPixels)); for (com.beautiful_wallpapers_hd_qhd.activity.CropImageActivity.ImageSizes size : com.beautiful_wallpapers_hd_qhd.activity.CropImageActivity.ImageSizes.values()) { ...
private void setPortraitAspectRatio() { double param = ((double) (mDisplayMetrics.widthPixels)) / ((double) (mDisplayMetrics.heightPixels)); for (com.beautiful_wallpapers_hd_qhd.activity.CropImageActivity.ImageSizes size : com.beautiful_wallpapers_hd_qhd.activity.CropImageActivity.ImageSizes.values()) { ...
public void onGroundedClick() { interactor.emptyQueue(); logic.Extension grounded = argumentFramework.getGroundedExtension(previousCheckBox.isSelected()); java.lang.System.out.println((("{" + (grounded.getArgumentNames())) + "}")); setUI(); }
public void onGroundedClick() { interactor.emptyQueue(); logic.Extension grounded = argumentFramework.getGroundedExtension(previousCheckBox.isSelected()); if (grounded != null) { java.lang.System.out.println((("{" + (grounded.getArgumentNames())) + "}")); } setUI(); }
public static java.lang.Object getReflectedField(java.lang.String fieldName, main.java.HashTable instance) throws test.java.HashTableTests.HashTableUtilException { java.lang.Class hashTableClass = instance.getClass(); try { java.lang.reflect.Field field = hashTableClass.getDeclaredField(fieldName); ...
public static java.lang.Object getReflectedField(java.lang.String fieldName, main.java.HashTable instance) throws test.java.HashTableTests.HashTableUtilException { java.lang.Class hashTableClass = instance.getClass(); try { java.lang.reflect.Field field = hashTableClass.getDeclaredField(fieldName); ...
private boolean playerIsLastToClose(int number) { boolean result = true; for (spare.n52.yadarts.entity.Player p : this.cricketScores.keySet()) { spare.n52.yadarts.games.cricket.CricketScore s = this.cricketScores.get(p); if ((p != (this.currentPlayer)) && (!(s.playerHasOpened(number)))) { ...
private boolean playerIsLastToClose(int number) { for (spare.n52.yadarts.entity.Player p : this.cricketScores.keySet()) { spare.n52.yadarts.games.cricket.CricketScore s = this.cricketScores.get(p); if ((p != (this.currentPlayer)) && (!(s.playerHasOpened(number)))) { return false; ...
public void run() { com.vessel.VesselAB.setABListener(new com.vessel.interfaces.ABListener() { @java.lang.Override public void testNotAvailable(com.vessel.enums.VesselEnums.TestVariation arg0) { callbackContext.success(arg0.toString()); } @java.lang.Override publ...
public void run() { com.vessel.VesselAB.setABListener(new com.vessel.interfaces.ABListener() { @java.lang.Override public void testNotAvailable(final com.vessel.enums.VesselEnums.TestVariation testVariation) { callbackContext.success(testVariation.toString()); } @java.la...
public static void writeNBTFound(net.minecraft.nbt.NBTTagCompound nbt, net.minecraft.util.math.BlockPos pos) { nbt.setBoolean("found", true); nbt.removeTag("searchStarted"); nbt.setInteger("posX", pos.getX()); nbt.setInteger("posZ", pos.getZ()); }
private static void writeNBTFound(net.minecraft.nbt.NBTTagCompound nbt, net.minecraft.util.math.BlockPos pos) { nbt.setBoolean("found", true); nbt.removeTag("searchStarted"); nbt.setInteger("posX", pos.getX()); nbt.setInteger("posZ", pos.getZ()); }
public de.tum.in.www1.exerciseapp.domain.Result retreiveBuildDetailsFromBambooAndStoreThem(de.tum.in.www1.exerciseapp.domain.Result result) { de.tum.in.www1.exerciseapp.domain.Participation participation = result.getParticipation(); java.util.Map buildDetails = continuousIntegrationService.get().getLatestBuildR...
public de.tum.in.www1.exerciseapp.domain.Result retreiveBuildDetailsFromBambooAndStoreThem(de.tum.in.www1.exerciseapp.domain.Result result) { de.tum.in.www1.exerciseapp.domain.Participation participation = result.getParticipation(); java.util.Map buildDetails = continuousIntegrationService.get().getLatestBuildR...
public boolean onMenuItemClick(android.view.MenuItem menuItem) { ticketList.add(new Data.Ticket("00:00", menuItem.getTitle().toString())); ticketList.add(new Data.Ticket("00:00", menuItem.getTitle().toString())); setAdapter(); userData.setTicketList(ticketList); applicationTimeTracker.setUserData(us...
public boolean onMenuItemClick(android.view.MenuItem menuItem) { ticketList.add(new Data.Ticket("00:00", menuItem.getTitle().toString())); userData.setTicketList(ticketList); applicationTimeTracker.setUserData(userData); adapter.notifyDataSetChanged(); return true; }
private void updateDefStats(boolean pic, boolean tackle, boolean loss, boolean fumblerec, boolean forcedfum, boolean sack, boolean td) { if (pic) (pics)++; if (tackle) (tackles)++; if (tackle && loss) (tfls)++; if (fumblerec) (fumblerecs)++; if (sa...
public void updateDefStats(boolean pic, boolean tackle, boolean loss, boolean fumblerec, boolean forcedfum, boolean sack, boolean td) { if (pic) (pics)++; if (tackle) (tackles)++; if (tackle && loss) (tfls)++; if (fumblerec) (fumblerecs)++; if (sac...
public static void main(java.lang.String[] args) throws java.io.FileNotFoundException { emotion.Emotion emotion = new emotion.Emotion(); java.util.List<java.lang.String> codes = emotion.getCodes(); try { java.lang.String html = emotion.html((((com.nju.util.Constant.EMOTION_URL) + "1F338") + "/index....
public static void main(java.lang.String[] args) throws java.io.FileNotFoundException { emotion.Emotion emotion = new emotion.Emotion(); java.util.List<java.lang.String> codes = emotion.getCodes(); for (java.lang.String str : codes) { try { java.lang.String html = emotion.html((((com.nju...
static org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier getRootInstanceIdentifier(final java.lang.Class type) { try { return org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.of(org.opendaylight.yangtools.yang.common.QName.class.cast(type.getField("QNAME").get(null))); } cat...
static org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier getRootInstanceIdentifier(final java.lang.Class type) { try { return org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.of(org.opendaylight.yangtools.yang.common.QName.class.cast(type.getField("QNAME").get(null))); } cat...
public void onDataChange(com.totvs.pcsistemas.pocbeacons.pocbeacons.DataSnapshot snapshot) { try { ShowOffer(snapshot.child("OfferSponsor").getValue().toString(), snapshot.child("OfferPicture").getValue().toString(), snapshot.child("Offer").getValue().toString(), snapshot.child("OfferPictureSponsor").getVal...
public void onDataChange(com.totvs.pcsistemas.pocbeacons.pocbeacons.DataSnapshot snapshot) { try { ShowOffer(snapshot.child("OfferSponsor").getValue().toString(), snapshot.child("OfferPictureSponsor").getValue().toString(), snapshot.child("Offer").getValue().toString(), snapshot.child("OfferPicture").getVal...
public void onDataChange(com.firebase.client.DataSnapshot dataSnapshot) { for (com.firebase.client.DataSnapshot child : dataSnapshot.getChildren()) { email = ((java.lang.String) (child.child("email").getValue())); java.lang.System.out.println(("email:" + (email))); if (userId.equals(myRef.ge...
public void onDataChange(com.firebase.client.DataSnapshot dataSnapshot) { for (com.firebase.client.DataSnapshot child : dataSnapshot.getChildren()) { email = ((java.lang.String) (child.child("email").getValue())); java.lang.System.out.println(("email:" + (email))); if (userId.equals(myRef.ge...
public static int[] generateDescending(int size) { int[] tab = new int[size]; for (int i = 0; i < size; i++) { tab[i] = size - 1; } return tab; }
public static int[] generateDescending(int size) { int[] tab = new int[size]; for (int i = 0; i < size; i++) { tab[i] = size - i; } return tab; }
private java.lang.Boolean getBooleanSetting(java.lang.String setting, java.lang.Boolean fallback) { java.lang.String val = burp.BurpExtender.getInstance().getCallbacks().loadExtensionSetting(setting); try { return java.lang.Boolean.valueOf(val); } catch (java.lang.NullPointerException nPException) {...
private java.lang.Boolean getBooleanSetting(java.lang.String setting, java.lang.Boolean fallback) { java.lang.String val = burp.BurpExtender.getInstance().getCallbacks().loadExtensionSetting(setting); if (val == null) return fallback; try { return java.lang.Boolean.valueOf(val); } c...
public void invoke(java.util.Scanner args) { final java.lang.String message = (args.hasNext()) ? args.nextLine().trim() : ""; if ((message.length()) > 0) { conversation.add(message); }else { java.lang.System.out.println("ERROR: Messages must contain text"); } }
public void invoke(java.util.List<java.lang.String> args) { final java.lang.String message = args.get(0); args.remove(0); if ((message.length()) > 0) { conversation.add(message); }else { java.lang.System.out.println("ERROR: Messages must contain text"); } }
public static java.lang.Iterable<java.lang.Object> asList(java.lang.Object x) { if (x instanceof java.lang.Iterable) { return ((java.lang.Iterable<java.lang.Object>) (x)); }else { java.util.List<java.lang.Object> list = new java.util.ArrayList<java.lang.Object>(1); list.add(1); r...
public static java.lang.Iterable<java.lang.Object> asList(java.lang.Object x) { if (x instanceof java.lang.Iterable) { return ((java.lang.Iterable<java.lang.Object>) (x)); }else { java.util.List<java.lang.Object> list = new java.util.ArrayList<java.lang.Object>(1); list.add(x); r...
public void setCardId(java.lang.String name, java.lang.String ID, int ent_id) { try { Card c = new Card(); c = cardsByID.get(ID); c.name = name; c.EntityID = ent_id; cards.put(name, c); } catch (java.lang.Exception e) { java.lang.System.out.println(("Could not fin...
public void setCardId(java.lang.String name, java.lang.String ID, int ent_id) { try { Card c = new Card(); c = cardsByID.get(ID); c.name = name; c.EntityID = ent_id; cards.put(name, c); } catch (java.lang.Exception e) { } }
public void testDeleteExists() throws java.io.IOException { org.gbif.api.model.occurrence.Occurrence occ = occurrenceService.delete(org.gbif.occurrence.persistence.OccurrencePersistenceServiceImplTest.KEY); assertEquivalence(occ); org.junit.Assert.assertEquals(((java.lang.Integer) (org.gbif.occurrence.persi...
public void testDeleteExists() throws java.io.IOException { org.gbif.api.model.occurrence.Occurrence occ = occurrenceService.delete(org.gbif.occurrence.persistence.OccurrencePersistenceServiceImplTest.KEY); assertEquivalence(occ); assertEquals(((java.lang.Integer) (org.gbif.occurrence.persistence.Occurrence...
public static void releaseBatches(org.apache.drill.exec.record.RecordBatch incoming) { if (incoming instanceof org.apache.drill.exec.physical.impl.validate.IteratorValidatorBatchIterator) { incoming = ((org.apache.drill.exec.physical.impl.validate.IteratorValidatorBatchIterator) (incoming)).getIncoming(); ...
public static void releaseBatches(org.apache.drill.exec.record.RecordBatch incoming) { if (incoming instanceof org.apache.drill.exec.physical.impl.validate.IteratorValidatorBatchIterator) { incoming = ((org.apache.drill.exec.physical.impl.validate.IteratorValidatorBatchIterator) (incoming)).getIncoming(); ...
public void onClick(android.view.View view) { if (textview.getText().equals("")) { textview.setText(((ans) + "+")); }else if (!(isOperator(textview.getText().toString()))) { textview.append("+"); } enterClear(enterPressed); }
public void onClick(android.view.View view) { enterClear(enterPressed); if (textview.getText().equals("")) { textview.setText(((ans) + "+")); }else if (!(isOperator(textview.getText().toString()))) { textview.append("+"); } }
public void onDisable() { this.plugin = null; this.versions.clear(); this.entities.clear(); this.kickMessage = null; this.versionMsg = null; this.manager = null; this.minMinecraftVersion = null; this.maxMinecraftVersion = null; this.minProtocolVersion = 0; this.maxProtocolVersion...
public void onDisable() { this.plugin = null; this.versions.clear(); this.entities.clear(); this.kickMessage = null; this.versionMsg = null; this.manager = null; this.minProtocolVersion = null; this.maxProtocolVersion = null; }
public boolean equals(java.lang.Object obj) { if (obj == null) return false; if (obj == (this)) return true; if ((obj.getClass()) == (this.getClass())) { return (this.id) == (((Person) (obj)).getId()); } }
public boolean equals(java.lang.Object obj) { if (obj == null) return false; if (obj == (this)) return true; if ((obj.getClass()) == (this.getClass())) { return (this.id) == (((Person) (obj)).getId()); } return false; }
public java.lang.instrument.ClassFileTransformer getTransformer(java.lang.ClassLoader classLoader, java.lang.String targetClassName) { if (transformerMap.isEmpty()) { return null; } java.lang.instrument.ClassFileTransformer transformer = transformerMap.remove(new com.navercorp.pinpoint.profiler.Defa...
public java.lang.instrument.ClassFileTransformer getTransformer(java.lang.ClassLoader classLoader, java.lang.String targetClassName) { if (transformerMap.isEmpty()) { return null; } final com.navercorp.pinpoint.profiler.DefaultDynamicTransformerRegistry.TransformerKey key = new com.navercorp.pinpoin...
public void dispose() { try { fieldNames.clear(); index.close(); writer.close(); indexAdapter.dispose(); } catch (java.io.IOException e) { e.printStackTrace(); throw new java.lang.RuntimeException(e); } }
public void dispose() { try { fieldNames.clear(); writer.close(); index.close(); indexAdapter.dispose(); } catch (java.io.IOException e) { e.printStackTrace(); throw new java.lang.RuntimeException(e); } }
public void testKillNonExisitingJob() throws java.lang.Exception { java.util.UUID jobId = java.util.UUID.randomUUID(); io.crate.action.sql.SQLResponse killResponse = execute("KILL ?", new java.lang.Object[]{ jobId }); assertThat(killResponse.rowCount(), org.hamcrest.Matchers.is(0L)); io.crate.action.sql...
public void testKillNonExisitingJob() throws java.lang.Exception { java.util.UUID jobId = java.util.UUID.randomUUID(); io.crate.action.sql.SQLResponse killResponse = execute("KILL ?", new java.lang.Object[]{ jobId }); assertThat(killResponse.rowCount(), is(0L)); io.crate.action.sql.SQLResponse logRespon...
public void sendPacket(org.mcexchange.Packet p) { try { byte id = org.mcexchange.Packet.getId(p); out.writeByte(id); p.write(out); } catch (java.io.IOException e) { e.printStackTrace(); } catch (java.lang.NullPointerException e) { java.lang.System.out.println((("Tried...
public void sendPacket(org.mcexchange.Packet p) { try { byte id = org.mcexchange.Packet.getId(p); out.writeByte(id); p.write(out); } catch (java.io.IOException e) { e.printStackTrace(); } catch (java.lang.NullPointerException e) { java.lang.System.err.println((("Tried...
public boolean hasTop() { java.lang.System.out.println((((((thisInst) + " hasTop(): entriesWritten==") + (entriesWritten)) + " rowRangeIterator.hasNext()==") + (rowRangeIterator.hasNext()))); return ((numRejects) != (-1)) && (((((numRejects) >= (edu.mit.ll.graphulo.skvi.RemoteWriteIterator.REJECT_FAILURE_THRESH...
public boolean hasTop() { return ((numRejects) != (-1)) && (((((numRejects) >= (edu.mit.ll.graphulo.skvi.RemoteWriteIterator.REJECT_FAILURE_THRESHOLD)) || (rowRangeIterator.hasNext())) || ((entriesWritten) > 0)) || (reducer.hasTopForClient())); }
private void updateLocation(android.location.Location location) { mCurrentLocation = location; double latitude = mCurrentLocation.getLatitude(); double longitude = mCurrentLocation.getLongitude(); stationManager.updateLocation(latitude, longitude); route = stationManager.updateNexttation(route); ...
private void updateLocation(android.location.Location location) { mCurrentLocation = location; double latitude = mCurrentLocation.getLatitude(); double longitude = mCurrentLocation.getLongitude(); stationManager.updateLocation(latitude, longitude); route = stationManager.updateNexttation(route); ...
public java.lang.Object getTransferLocation(@javax.annotation.Nonnull java.lang.Object object, @javax.annotation.Nonnull java.lang.String key) { com.google.common.collect.Multimap<java.lang.Class<?>, org.squiddev.plethora.api.transfer.ITransferProvider<?>> map = primary; java.lang.String[] parts = key.split("\\...
public java.lang.Object getTransferLocation(@javax.annotation.Nonnull java.lang.Object object, @javax.annotation.Nonnull java.lang.String key) { com.google.common.collect.Multimap<java.lang.Class<?>, org.squiddev.plethora.api.transfer.ITransferProvider<?>> map = primary; java.lang.String[] parts = key.split("\\...
protected void onActivityResult(int requestCode, int resultCode, android.content.Intent data) { switch (requestCode) { case net.lorenzobianconi.wwatcher.WWatcher.REQ_ENABLE_BT : boolean btEnabled = resultCode == (RESULT_OK); configureButton(btEnabled, false); break; ...
protected void onActivityResult(int requestCode, int resultCode, android.content.Intent data) { switch (requestCode) { case net.lorenzobianconi.wwatcher.WWatcher.REQ_ENABLE_BT : btEnabled = resultCode == (RESULT_OK); configureButton(btEnabled, false); break; case ...
public java.sql.Connection connect() { java.sql.Connection conn = null; try { java.lang.Class.forName("org.sqlite.JDBC"); conn = java.sql.DriverManager.getConnection(SqliteConnection.url); } catch (java.sql.SQLException e) { java.lang.System.out.println(e.getMessage()); } catch (...
public java.sql.Connection connect() { java.sql.Connection conn = null; try { java.lang.Class.forName("org.sqlite.JDBC"); conn = java.sql.DriverManager.getConnection(SqliteConnection.url); } catch (java.sql.SQLException e) { java.lang.System.out.println(e.getMessage()); } catch (...
public static boolean checkCollision(worldObjects.WorldObject w) { for (worldObjects.WorldObject obj : controller.WorldController.getWorld().getObjects()) { if (!(obj.equals(w))) { return controller.CollisionChecker.overlap(w, obj); } } return false; }
public static boolean checkCollision(worldObjects.WorldObject w) { for (worldObjects.WorldObject obj : controller.WorldController.getWorld().getObjects()) { if ((!(obj.equals(w))) && (controller.CollisionChecker.overlap(w, obj))) { return true; } } return false; }
public void onClick(android.view.View v) { switch (v.getId()) { case R.id.btn__download_map : com.mapswithme.maps.downloader.MapManager.nativeDownload(mCurrentCountry.id); break; case R.id.btn__select_map : getMwmActivity().replaceFragment(com.mapswithme.maps.down...
public void onClick(android.view.View v) { switch (v.getId()) { case R.id.btn__download_map : mDownloadingCountry = mCurrentCountry; com.mapswithme.maps.downloader.MapManager.nativeDownload(mCurrentCountry.id); break; case R.id.btn__select_map : getMwm...
private java.lang.String getSystemName(java.lang.String systemID) { java.lang.String systemName; java.lang.String message = "Enter the name for " + systemID; systemName = javax.swing.JOptionPane.showInputDialog(null, message); EFBOUserInterfaceManager.progressBar.setValue(10); java.lang.System.out.p...
private java.lang.String getSystemName(java.lang.String systemID) { java.lang.String systemName = null; java.lang.String message = "Enter the name for " + systemID; systemName = javax.swing.JOptionPane.showInputDialog(null, message); EFBOUserInterfaceManager.progressBar.setValue(10); java.lang.Syste...
public void initialize(io.dropwizard.setup.Bootstrap<io.dropwizard.example.JobsApplicationConfiguration> bootstrap) { com.hubspot.dropwizard.guice.GuiceBundle<io.dropwizard.example.JobsApplicationConfiguration> guiceBundle = com.hubspot.dropwizard.guice.GuiceBundle.<io.dropwizard.example.JobsApplicationConfiguratio...
public void initialize(io.dropwizard.setup.Bootstrap<io.dropwizard.example.JobsApplicationConfiguration> bootstrap) { com.hubspot.dropwizard.guice.GuiceBundle<io.dropwizard.example.JobsApplicationConfiguration> guiceBundle = com.hubspot.dropwizard.guice.GuiceBundle.<io.dropwizard.example.JobsApplicationConfiguratio...
public void genWidget() throws java.lang.Exception { java.lang.String jsonStr = org.talend.daikon.serialize.jsonschema.JsonSchemaUtilTest.readJson("FullExampleUiSchema.json"); org.talend.daikon.serialize.FullExampleProperties properties = new org.talend.daikon.serialize.FullExampleProperties("fullexample"); ...
public void genWidget() throws java.lang.Exception { java.lang.String jsonStr = org.talend.daikon.serialize.jsonschema.JsonSchemaUtilTest.readJson("FullExampleUiSchema.json"); org.talend.daikon.serialize.FullExampleProperties properties = new org.talend.daikon.serialize.FullExampleProperties("fullexample"); ...
protected void shiftRight(int index) { if (isFull()) throw new java.lang.IllegalStateException("Le tableau est plein"); else if (isEmpty()) { return ; }else if (index > (lastIndex)) { return ; }else { for (int i = lastIn...
protected void shiftRight(int index) { if (isFull()) throw new java.lang.IllegalStateException("Le tableau est plein"); else if (isEmpty()) { return ; }else if (index > (lastIndex)) { return ; }else { for (int i = lastIn...
public static int next(int digit, int size) { int nextVal; while (odometer.Odometer.isValid(digit)) { nextVal = digit++; if (((digit % 10) ^ (size + 1)) == 1) { nextVal = 1; } } return nextVal; }
public static int next(int digit, int size) { int nextVal = 0; while (odometer.Odometer.isValid(digit, size)) { nextVal = digit++; if (((digit % 10) ^ (size + 1)) == 1) { nextVal = 1; } } return nextVal; }
public void test_139_ACLNotReadOtherGuidFieldTest(edu.umass.cs.gnsclient.client.util.GuidEntry westyEntry, edu.umass.cs.gnsclient.client.util.GuidEntry samEntry) { try { try { java.lang.String result = edu.umass.cs.gnsclient.client.integrationtests.ServerIntegrationTest.client.fieldRead(westyEnt...
public void test_139_ACLNotReadOtherGuidFieldTest(edu.umass.cs.gnsclient.client.util.GuidEntry westyEntry, edu.umass.cs.gnsclient.client.util.GuidEntry samEntry) { try { try { java.lang.String result = edu.umass.cs.gnsclient.client.integrationtests.ServerIntegrationTest.client.fieldRead(westyEnt...
public void render(java.awt.Graphics g) { if (((this.width) == 30) && ((this.height) == 30)) { g.setColor(java.awt.Color.RED); g.drawRect(x, y, width, height); }else { g.setColor(java.awt.Color.RED); g.drawOval(x, y, width, height); } }
public void render(java.awt.Graphics g) { if (((this.width) == 30) && ((this.height) == 30)) { g.setColor(java.awt.Color.RED); g.drawRect(x, y, width, height); }else { g.setColor(java.awt.Color.RED); g.drawRect(x, y, width, height); } }
try { sessionResponseMeter.mark(); if ((message.getError()) == null) { processSessionResponse(message); }else { processErrors(message.getChannelContext(), message.getErrorConverter(), message.getError()); } } catch (java.lang.Exception e) { process...
try { sessionResponseMeter.mark(); if ((message.getError()) == null) { processSessionResponse(message); }else { processErrors(message.getChannelContext(), message.getErrorBuilder(), message.getError()); } } catch (java.lang.Exception e) { processEr...
private java.util.List<java.lang.String> getHeaders() { java.util.List<java.lang.String> headers = new java.util.ArrayList<java.lang.String>(); headers.add("Title"); headers.add("Definition URL"); headers.add("Definition"); headers.add("Creator"); headers.add("PreLabel"); return headers; }
private java.util.List<java.lang.String> getHeaders() { java.util.List<java.lang.String> headers = new java.util.ArrayList<java.lang.String>(); headers.add("Definition URL"); headers.add("Title"); headers.add("Definition"); headers.add("Creator"); headers.add("PreLabel"); return headers; }
private java.lang.String[] arrayListToArray(java.util.ArrayList<java.lang.String> needingConversion) { int count = needingConversion.size(); java.lang.String[] converted = new java.lang.String[count]; for (int i = 0; i < count; i++) { converted[i] = needingConversion.get(i); elfdreaming.app....
private java.lang.String[] arrayListToArray(java.util.ArrayList<java.lang.String> needingConversion) { int count = needingConversion.size(); java.lang.String[] converted = new java.lang.String[count]; for (int i = 0; i < count; i++) { converted[i] = needingConversion.get(i); } return convert...
public void testValidateCredentialsUserOnly() throws java.lang.Exception { expectedMessages.add(HubProxyInfoBuilder.ERROR_MSG_CREDENTIALS_INVALID); final com.blackducksoftware.integration.hub.builder.HubProxyInfoBuilder builder = new com.blackducksoftware.integration.hub.builder.HubProxyInfoBuilder(); build...
public void testValidateCredentialsUserOnly() throws java.lang.Exception { expectedMessages.add(HubProxyInfoBuilder.ERROR_MSG_CREDENTIALS_INVALID); expectedMessages.add(HubProxyInfoBuilder.ERROR_MSG_CREDENTIALS_INVALID); final com.blackducksoftware.integration.hub.builder.HubProxyInfoBuilder builder = new c...
public void removeAndFail(java.lang.Throwable cause) { assert ctx.executor().inEventLoop(); if (cause == null) { throw new java.lang.NullPointerException("cause"); } io.netty.channel.PendingWriteQueue.PendingWrite write = head; if (write == null) { return ; } io.netty.util.Re...
public void removeAndFail(java.lang.Throwable cause) { assert ctx.executor().inEventLoop(); if (cause == null) { throw new java.lang.NullPointerException("cause"); } io.netty.channel.PendingWriteQueue.PendingWrite write = head; if (write == null) { return ; } io.netty.util.Re...
private int getFlag(int flag) { int flagVal = 0; int flagReg = (registers[Z80.REGISTER_F]) & flag; switch (flag) { case Z80.FLAG_ZERO : flagVal = flagReg >>> 7; break; case Z80.FLAG_SUBTRACT : flagVal = flagReg >>> 6; break; case Z80.FL...
public int getFlag(int flag) { int flagVal = 0; int flagReg = (registers[Z80.REGISTER_F]) & flag; switch (flag) { case Z80.FLAG_ZERO : flagVal = flagReg >>> 7; break; case Z80.FLAG_SUBTRACT : flagVal = flagReg >>> 6; break; case Z80.FLA...
private void findHrefs() { java.util.regex.Matcher matcher = hrefPattern.matcher(Html); java.lang.String link = ""; while (matcher.find()) { link = matcher.group(); if (((!(Suspectedlinks.contains(link))) && (CrawlerHandler.CheckIfUrlBeenCrawled(link))) && (isValidDomain(link))) { ...
private void findHrefs() { java.util.regex.Matcher matcher = hrefPattern.matcher(Html); java.lang.String link = ""; while (matcher.find()) { link = matcher.group(1); if (((!(Suspectedlinks.contains(link))) && (!(CrawlerHandler.CheckIfUrlBeenCrawled(link)))) && (isValidDomain(link))) { ...
public javax.ws.rs.core.Response geAlltSuppress(@com.magnet.mmx.server.plugin.mmxmgmt.servlet.integration.PathParam(value = "appId") final java.lang.String appId) { com.magnet.mmx.server.plugin.mmxmgmt.servlet.integration.RestMethod<java.lang.String, java.util.Collection<com.magnet.mmx.server.plugin.mmxmgmt.servlet...
public javax.ws.rs.core.Response geAlltSuppress(@com.magnet.mmx.server.plugin.mmxmgmt.servlet.integration.QueryParam(value = "appId") java.lang.String appId) { com.magnet.mmx.server.plugin.mmxmgmt.servlet.integration.RestMethod<java.lang.String, java.util.Collection<com.magnet.mmx.server.plugin.mmxmgmt.servlet.inte...
private com.ksss.splintter.features.group.view.ExpenseManager getCallback() { com.ksss.splintter.features.group.view.ExpenseManager callback; try { callback = ((com.ksss.splintter.features.group.view.ExpenseManager) (getActivity())); } catch (java.lang.ClassCastException e) { throw new java....
private com.ksss.splintter.features.group.view.ExpenseManager getCallback() { com.ksss.splintter.features.group.view.ExpenseManager callback; try { callback = ((com.ksss.splintter.features.group.view.ExpenseManager) (getActivity())); } catch (java.lang.ClassCastException e) { throw new java....
public boolean closeWindow(uniol.aptgui.mainwindow.WindowId id) { if (id.getType().isEditorWindow()) { uniol.aptgui.editor.document.Document<?> doc = getDocument(id); if ((doc.hasUnsavedChanges()) && (askSaveDocument(id, getDocument(id)))) { return false; } } if ((activeW...
public boolean closeWindow(uniol.aptgui.mainwindow.WindowId id) { if (id.getType().isEditorWindow()) { uniol.aptgui.editor.document.Document<?> doc = getDocument(id); if ((doc.hasUnsavedChanges()) && (askSaveDocument(id, getDocument(id)))) { return false; } } if ((activeW...
public void should_return_root_project_uuids_for_group() { setupData("should_return_root_project_keys_for_group"); org.sonar.core.user.AuthorizationDao authorization = new org.sonar.core.user.AuthorizationDao(getMyBatis()); java.util.Collection<java.lang.String> rootProjectUuids = authorization.selectAuthor...
public void should_return_root_project_uuids_for_group() { setupData("should_return_root_project_keys_for_group"); java.util.Collection<java.lang.String> rootProjectUuids = authorization.selectAuthorizedRootProjectsUuids(org.sonar.core.user.AuthorizationDaoTest.USER, "user"); org.assertj.core.api.Assertions...
public java.util.Optional<java.nio.file.Path> findIn(java.util.List<java.nio.file.Path> directories) { java.nio.file.Path file = java.nio.file.Paths.get(link); if ((file.isAbsolute()) || (directories.isEmpty())) { return java.util.Optional.of(file); }else { return org.jabref.model.util.FileH...
public java.util.Optional<java.nio.file.Path> findIn(java.util.List<java.nio.file.Path> directories) { java.nio.file.Path file = java.nio.file.Paths.get(link.get()); if ((file.isAbsolute()) || (directories.isEmpty())) { return java.util.Optional.of(file); }else { return org.jabref.model.util...
public void onBlockDialogInitialize() { int phoneId = getActivePhoneId(); com.android.incallui.Log.d(this, ((("onBlock mCallId:" + (mCallId)) + "phoneId:") + phoneId)); com.android.incallui.Call call = mCall[phoneId]; final java.lang.String number = call.getNumber(); final android.content.Context co...
public void onBlockDialogInitialize() { int phoneId = getActivePhoneId(); com.android.incallui.Log.d(this, ((("onBlock mCallId:" + (mCallId)) + "phoneId:") + phoneId)); if (phoneId == (-1)) { return ; } com.android.incallui.Call call = mCall[phoneId]; final java.lang.String number = call...
private void pickOut(courier.Parcel pickOut) { pickOut.arriveTime = map.schedule.getSteps(); if (carrying.remove(pickOut)) { spaceRemaining += pickOut.weight; } if (!(pickOut instanceof courier.CarCaller)) { printParcelUnloadLog(pickOut); currStation.pArrived.add(pickOut); ...
private void pickOut(courier.Parcel pickOut) { pickOut.arriveTime = map.schedule.getSteps(); if (carrying.remove(pickOut)) { spaceRemaining += pickOut.weight; } if (!(pickOut instanceof courier.CarCaller)) { printParcelUnloadLog(pickOut); currStation.pArrived.add(pickOut); ...
public void onSuccess(com.google.common.base.Optional<org.opendaylight.yang.gen.v1.urn.opendaylight.faas.fabric.rev150930.fabric.attributes.Options> result) { if (result.isPresent()) { org.opendaylight.yang.gen.v1.urn.opendaylight.faas.fabric.rev150930.fabric.attributes.Options opt = result.get(); o...
public void onSuccess(com.google.common.base.Optional<org.opendaylight.yang.gen.v1.urn.opendaylight.faas.fabric.rev150930.fabric.attributes.Options> result) { if (result.isPresent()) { org.opendaylight.yang.gen.v1.urn.opendaylight.faas.fabric.rev150930.fabric.attributes.Options opt = result.get(); o...
private long getNumberRecursion(long n) { int sum = 0; if (n == 0) return 1; else if (n == 1) return 0; else if (n == 2) return 1; for (int k = 1; k <= n; k++) { sum += (sequenceGeneratorA008472.getNumber(...
protected long getNumberRecursion(long n) { int sum = 0; if (n == 0) return 1; else if (n == 1) return 0; else if (n == 2) return 1; for (int k = 1; k <= n; k++) { sum += (sequenceGeneratorA008472.getNumbe...
public static models.UserImpl fetchUser(java.lang.String username) { javax.persistence.EntityManager em = play.db.jpa.JPA.em(); if ((em.find(models.UserImpl.class, username)) != null) { java.lang.System.out.println("ERROR NULL"); } return em.find(models.UserImpl.class, username); }
public static models.UserImpl fetchUser(java.lang.String username) { javax.persistence.EntityManager em = play.db.jpa.JPA.em(); if ((em.find(models.UserImpl.class, username)) == null) { java.lang.System.out.println("ERROR NULL"); return null; } return em.find(models.UserImpl.class, usern...
java.lang.String networkOperator = ((android.telephony.TelephonyManager) (getSystemService(Context.TELEPHONY_SERVICE))).getNetworkOperator(); return !(android.text.TextUtils.isEmpty(networkOperator)) ? java.lang.Integer.parseInt(networkOperator.substring(0, 3)) : 0; }
java.lang.String networkOperator = ((android.telephony.TelephonyManager) (c.getSystemService(Context.TELEPHONY_SERVICE))).getNetworkOperator(); return !(android.text.TextUtils.isEmpty(networkOperator)) ? java.lang.Integer.parseInt(networkOperator.substring(0, 3)) : 0; }
public void getDurationInfo() throws java.lang.Exception { com.ptc.taskanalyse.services.TaskService service = new com.ptc.taskanalyse.services.TaskService(repo); repo.setPerformed(2, 5); repo.setPerformed(1, 5); com.ptc.taskanalyse.models.TaskDurationInfo durInfo = repo.getDurationInfo(2); org.junit...
public void getDurationInfo() throws java.lang.Exception { com.ptc.taskanalyse.services.TaskService service = new com.ptc.taskanalyse.services.TaskService(repo); repo.setPerformed(2, 5); repo.setPerformed(1, 5); com.ptc.taskanalyse.models.TaskDurationInfo durInfo = repo.getDurationInfo(2); org.junit...
private void settleHeader() { if ((Build.VERSION.SDK_INT) >= (Build.VERSION_CODES.LOLLIPOP)) { if ((currentHeader.getTag()) != null) { currentHeader.setTag(null); currentHeader.animate().z(0); } } }
private void settleHeader() { if (((Build.VERSION.SDK_INT) >= (Build.VERSION_CODES.LOLLIPOP)) && ((currentHeader.getTag()) != null)) { currentHeader.setTag(null); currentHeader.animate().z(0); } }
public static <T> boolean noneOf(final java.lang.Iterable<T> source, final int begin, final int end, java.util.function.Predicate<T> pred) { final java.util.Iterator<T> iter = getIteratorAtIndex(source, begin); for (int i = begin; i != end; ++i) { assert iter.hasNext(); if (pred.test(iter.next()...
public static <T> boolean noneOf(final java.lang.Iterable<T> source, final int begin, final int end, java.util.function.Predicate<T> pred) { final java.util.Iterator<T> iter = getIteratorAtIndex(source, begin); for (int i = begin; i != end; ++i) { assert iter.hasNext(); if (pred.test(iter.next()...
private void setUserType(org.trakhound.www.trakhound.device_list.ListAdapter.ViewHolder holder) { if ((holder.SelectionArrow) != null) { if (((org.trakhound.www.trakhound.MyApplication.User) != null) && ((MyApplication.User.type) == 1)) holder.SelectionArrow.setVisibility(View.VISIBLE); ...
private void setUserType(org.trakhound.www.trakhound.device_list.ListAdapter.ViewHolder holder) { if ((holder.SelectionArrow) != null) { if (((org.trakhound.www.trakhound.MyApplication.User) != null) && ((MyApplication.User.type) > 0)) holder.SelectionArrow.setVisibility(View.VISIBLE); e...