buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public static java.lang.String convert(java.lang.String source, java.nio.charset.Charset srcCharset, java.nio.charset.Charset destCharset) { if (null == srcCharset) { srcCharset = java.nio.charset.StandardCharsets.ISO_8859_1; } if (null == destCharset) { srcCharset = java.nio.charset.Standar...
public static java.lang.String convert(java.lang.String source, java.nio.charset.Charset srcCharset, java.nio.charset.Charset destCharset) { if (null == srcCharset) { srcCharset = java.nio.charset.StandardCharsets.ISO_8859_1; } if (null == destCharset) { destCharset = java.nio.charset.Standa...
public void testMyJobs() { testLoginAsStaff(); currentState = State.MY_JOBS; next(); assertEquals(currentState, State.SUCCESS_MSG); testLoginAsManager(); currentState = State.MY_JOBS; inputHelper("1"); next(); assertEquals(currentState, State.VIEW_JOB); currentState = State.MY_JO...
public void testMyJobs() { testLoginAsStaff(); currentState = State.MY_JOBS; next(); assertEquals(currentState, State.SUCCESS_MSG); testLoginAsManager(); currentState = State.MY_JOBS; inputHelper("1"); next(); assertEquals(currentState, State.VIEW_JOB); }
protected java.awt.Component getRendererComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, boolean hasFocus, int row, int col) { setSelectedItem(value); isSelected = table.isRowSelected(row); if (isSelected) { javax.swing.SwingUtilities.invokeLater(this.comboBoxFocusRequ...
protected java.awt.Component getRendererComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, boolean hasFocus, int row, int col) { setSelectedItem(value); isSelected = table.isRowSelected(row); if (isSelected) { javax.swing.SwingUtilities.invokeLater(this.comboBoxFocusRequ...
protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { java.lang.String idSelect = request.getParameter("id"); java.lang.System.out.println(idSelect); com.pulppy.model.MusicSinglePlay s...
protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { java.lang.String idSelect = request.getParameter("id"); com.pulppy.model.MusicSinglePlay singplay = new com.pulppy.model.MusicSinglePl...
private static weka.core.Instances addLabelsToInstances(weka.core.Instances instances, java.util.List<java.lang.String> labels) { weka.core.Instances inst2 = com.github.TKnudsen.ComplexDataObject.model.tools.WekaConversion.addLabelAttributeToInstance(instances, labels); for (int i = 0; i < (labels.size()); i++)...
private static weka.core.Instances addLabelsToInstances(weka.core.Instances instances, java.util.List<java.lang.String> labels) { if (instances == null) return null; weka.core.Instances inst2 = com.github.TKnudsen.ComplexDataObject.model.tools.WekaConversion.addLabelAttributeToInstance(instances, l...
public java.io.OutputStream getOutput(org.infinispan.io.GridFile file) throws java.io.IOException { if (file.isDirectory()) { throw new java.io.FileNotFoundException((("Cannot write to directory (" + file) + ")")); } if (!(file.createNewFile())) throw new java.io.IOException((("creation of "...
public java.io.OutputStream getOutput(org.infinispan.io.GridFile file) throws java.io.IOException { if (file.isDirectory()) { throw new java.io.FileNotFoundException((("Cannot write to directory (" + file) + ")")); } if (!(file.createNewFile())) throw new java.io.IOException((("creation of "...
private static void runDFS(java.util.ArrayList<org.smram.sandbox.RelatedQuestions.IUVertex> vList) { long startTime = java.lang.System.currentTimeMillis(); org.smram.sandbox.RelatedQuestions.Vertex minVertex = org.smram.sandbox.RelatedQuestions.runDFS(vList, false); java.lang.System.out.println(java.lang.St...
private static void runDFS(java.util.ArrayList<org.smram.sandbox.RelatedQuestions.IUVertex> vList) { long startTime = java.lang.System.currentTimeMillis(); org.smram.sandbox.RelatedQuestions.Vertex minVertex = org.smram.sandbox.RelatedQuestions.runDFS(vList); java.lang.System.out.println(java.lang.String.fo...
private void erase(float[] data, gdsc.smlm.ij.plugins.CreateData.Spot spot) { if ((spot.samplePositions) != null) { psfModel.eraseSample(data, settings.size, settings.size); }else { psfModel.erase(data, settings.size, settings.size, spot.psf, spot.x0min, spot.x0max, spot.x1min, spot.x1max); ...
private void erase(float[] data, gdsc.smlm.ij.plugins.CreateData.Spot spot) { if ((spot.samplePositions) != null) { psfModel.eraseSample(data, settings.size, settings.size, spot.samplePositions); }else { psfModel.erase(data, settings.size, settings.size, spot.psf, spot.x0min, spot.x0max, spot.x1...
public void loadStudents(java.lang.String studentsDir, java.lang.String studentsFADir) throws java.io.FileNotFoundException, java.io.IOException { this.studentsDir = studentsDir; this.studentsFADir = studentsFADir; studentsIO = new io.match.reader.PeopleIO(studentsDir, new io.match.reader.FixedAttributesIO(...
public void loadStudents(java.lang.String studentsDir, java.lang.String studentsFADir) throws java.io.FileNotFoundException, java.io.IOException { this.studentsDir = studentsDir; this.studentsFADir = studentsFADir; studentsIO = new io.match.reader.PeopleIO(studentsDir, studentsFADir, getAttributes()); s...
public boolean isDownloadComplete(java.lang.String backupName) { com.emc.vipr.model.sys.backup.BackupRestoreStatus s = queryBackupRestoreStatus(backupName, false); if ((s.getStatus()) != (BackupRestoreStatus.Status.DOWNLOAD_SUCCESS)) { return false; } java.io.File downloadFolder = getDownloadDir...
public boolean isDownloadComplete(java.lang.String backupName) { com.emc.vipr.model.sys.backup.BackupRestoreStatus s = queryBackupRestoreStatus(backupName, false); if ((s.getStatus()) != (BackupRestoreStatus.Status.DOWNLOAD_SUCCESS)) { return false; } java.io.File downloadFolder = getDownloadDir...
public void processExtras(final hu.rycus.rpiomxremote.RemoteService remoteService) { hu.rycus.rpiomxremote.manager.PlayerProperty.initialize(remoteService.getResources()); for (final java.lang.String id : extras.keySet()) { final hu.rycus.rpiomxremote.manager.PlayerProperty property = hu.rycus.rpiomxrem...
public void processExtras(final hu.rycus.rpiomxremote.RemoteService remoteService) { hu.rycus.rpiomxremote.manager.PlayerProperty.initialize(remoteService.getResources()); if ((extras) != null) { for (final java.lang.String id : extras.keySet()) { final hu.rycus.rpiomxremote.manager.PlayerPr...
private void testEloquentCreate() { java.lang.String[] columnNames = new java.lang.String[]{ "name" , "gender" , "age" , "extra" }; com.mozzandroidutils.sqlite.ColumnType[] columnTypes = new com.mozzandroidutils.sqlite.ColumnType[]{ com.mozzandroidutils.sqlite.ColumnType.TYPE_TEXT , com.mozzandroidutils.sqlite....
private void testEloquentCreate() { java.lang.String[] columnNames = new java.lang.String[]{ "name" , "gender" , "age" , "extra" }; com.mozzandroidutils.sqlite.ColumnType[] columnTypes = new com.mozzandroidutils.sqlite.ColumnType[]{ com.mozzandroidutils.sqlite.ColumnType.TYPE_TEXT , com.mozzandroidutils.sqlite....
public void acceptOnlyConcreteEmbeddedOrRuntimeImpliedDependenciesAfterTestDependency() throws java.lang.Exception { final org.commonjava.maven.atlas.graph.rel.DependencyRelationship dep = new org.commonjava.maven.atlas.graph.rel.DependencyRelationship(from, root, new org.commonjava.maven.atlas.ident.ref.ArtifactRe...
public void acceptOnlyConcreteEmbeddedOrRuntimeImpliedDependenciesAfterTestDependency() throws java.lang.Exception { final org.commonjava.maven.atlas.graph.rel.DependencyRelationship dep = new org.commonjava.maven.atlas.graph.rel.DependencyRelationship(from, root, new org.commonjava.maven.atlas.ident.ref.ArtifactRe...
public void backgroundMusic() { if ((project.equationinvasion.MainActivity.playing) == 0) { project.equationinvasion.MainActivity.BGM = android.media.MediaPlayer.create(this, R.raw.bgm1); project.equationinvasion.MainActivity.BGM.setLooping(true); project.equationinvasion.MainActivity.BGM.st...
public void backgroundMusic() { if (!(project.equationinvasion.MainActivity.playing)) { project.equationinvasion.MainActivity.BGM = android.media.MediaPlayer.create(this, R.raw.bgm1); project.equationinvasion.MainActivity.BGM.setLooping(true); project.equationinvasion.MainActivity.BGM.start(...
public void onFlexOfferScheduleUpdate(org.arrowhead.wp5.core.entities.FlexOffer fo) { if (((fo.getFlexOfferSchedule()) != null) && (!(httpClients.contains(fo.getOfferedById())))) { try { xFOProvider.setSubscriberId(fo.getOfferedById()); xFOProvider.createFlexOfferSchedule(fo.getId(),...
public void onFlexOfferScheduleUpdate(org.arrowhead.wp5.core.entities.FlexOffer fo) { if (((fo.getFlexOfferSchedule()) != null) && (httpClients.contains(fo.getOfferedById()))) { try { xFOProvider.setSubscriberId(fo.getOfferedById()); xFOProvider.createFlexOfferSchedule(fo.getId(), fo...
public char getGrid(int x, int y) throws java.io.IOException { outToServer.writeBytes((((("GRID " + x) + " ") + y) + "\n")); java.lang.String response = inFromServer.readLine(); java.lang.System.out.println(response); return response.charAt(0); }
public char getGrid(int x, int y) throws java.io.IOException { outToServer.writeBytes((((("GRID " + x) + " ") + y) + "\n")); java.lang.String response = inFromServer.readLine(); return response.charAt(0); }
public void onBlockDestroy(net.minecraftforge.event.world.BlockEvent.HarvestDropsEvent event) { if (((event.block) != null) && ((event.harvester) != null)) { net.minecraft.item.ItemStack block = new net.minecraft.item.ItemStack(event.block, 1, event.blockMetadata); for (ru.lionzxy.damagetweaker.Drop...
public void onBlockDestroy(net.minecraftforge.event.world.BlockEvent.HarvestDropsEvent event) { if ((((event.block) != null) && ((event.harvester) != null)) && ((DropsObject.dropsObj) != null)) { net.minecraft.item.ItemStack block = new net.minecraft.item.ItemStack(event.block, 1, event.blockMetadata); ...
public void onSuccess(int statusCode, cz.msebera.android.httpclient.Header[] headers, org.json.JSONObject response) { try { org.json.JSONArray docs = null; if (response != null) { docs = new org.json.JSONArray(response); final java.util.ArrayList<com.chatak.parkinfiniamarket....
public void onSuccess(int statusCode, cz.msebera.android.httpclient.Header[] headers, org.json.JSONArray response) { if (response != null) { final java.util.ArrayList<com.chatak.parkinfiniamarket.Product> products = com.chatak.parkinfiniamarket.Product.fromJson(response); productAdapter.clear(); ...
public int[] keys(int index) { int[] res = new int[numDimensions]; for (int d = 0; d < (numDimensions); d++) { res[d] = ndKeys[d].get(index); } return res; }
public int[] keys(int index) { int[] res = new int[numDimensions]; for (int d = 0; d < (numDimensions); d++) { res[d] = key(d, index); } return res; }
public static Algebra.Polynome BasicBinome(java.lang.String var, java.lang.Integer root) { Algebra.Polynome basicBinome = new Algebra.Polynome(); basicBinome.members.add(new Algebra.PolynomeMember(var, 1, 1)); basicBinome.members.add(new Algebra.PolynomeMember(new Algebra.MathFunction(), 0, root)); retu...
public static Algebra.Polynome BasicBinome(java.lang.String var, java.lang.Integer root) { Algebra.Polynome basicBinome = new Algebra.Polynome(); basicBinome.members.add(new Algebra.PolynomeMember(var, 1, 1)); basicBinome.members.add(new Algebra.PolynomeMember(new Algebra.MathFunction(), 0, (-root))); r...
public void testApp() { LearningJenkins.ProjectX.Learning obj = new LearningJenkins.ProjectX.Learning(); int res = obj.add(200, 400); org.junit.Assert.assertEquals(600, res); int res = obj.add(20, 40); org.junit.Assert.assertEquals(60, res); java.lang.String res1 = obj.concatenation("Hello ", "W...
public void testApp() { LearningJenkins.ProjectX.Learning obj = new LearningJenkins.ProjectX.Learning(); int res = obj.add(200, 400); org.junit.Assert.assertEquals(600, res); res = obj.add(20, 40); org.junit.Assert.assertEquals(60, res); java.lang.String res1 = obj.concatenation("Hello ", "World...
public int SelectObj(double x, double y, javafx.scene.canvas.GraphicsContext gc) { for (int i = 0; i < (objectList.size()); i++) { if (objectList.get(i).clickInObj(x, y)) { unSelectAll(); objectList.get(i).setSelected(); drawOnCanvas(gc); return i; } ...
public int SelectObj(double x, double y, javafx.scene.canvas.GraphicsContext gc) { for (int i = (objectList.size()) - 1; i >= 0; i--) { if (objectList.get(i).clickInObj(x, y)) { unSelectAll(); objectList.get(i).setSelected(); drawOnCanvas(gc); return i; ...
public static boolean playerIsInGameUserList(java.util.UUID uuid) { for (java.lang.Integer i = 0; i < (murdermystery.game.GameManager.games.size()); i++) { murdermystery.game.Game game = murdermystery.game.GameManager.games.get(i); for (java.util.UUID id : game.users) { if (uuid == id) {...
public static boolean playerIsInGameUserList(java.util.UUID uuid) { for (int i = 0; i < (murdermystery.game.GameManager.games.size()); i++) { murdermystery.game.Game game = murdermystery.game.GameManager.games.get(i); for (java.util.UUID id : game.users) { if (uuid == id) { ...
public play.mvc.Result viewAllPassages() { try { analyzePassages(); } catch (java.lang.Exception e) { java.lang.System.out.println("analysis failure"); } java.lang.Long instId = java.lang.Long.valueOf(session("userId")); controllers.User inst = controllers.User.byId(instId); java...
public play.mvc.Result viewAllPassages() { java.lang.Long instId = java.lang.Long.valueOf(session("userId")); controllers.User inst = controllers.User.byId(instId); java.util.List<controllers.SimplePassage> pList = controllers.SimplePassage.byInstructorId(instId); return ok(viewAllPassages.render(pList,...
public static com.project.backend.Course getCourseById(java.lang.String id) { java.lang.String[] courseId = id.split("-"); if ((courseId.length) != 2) { return null; } return com.project.backend.DatabaseHandler.getCourseById(courseId[0], courseId[2]); }
public static com.project.backend.Course getCourseById(java.lang.String id) { java.lang.String[] courseId = id.split("-"); if ((courseId.length) != 2) { return null; } return com.project.backend.DatabaseHandler.getCourseById(courseId[0], courseId[1]); }
public void returnDonation(final java.lang.String donationId) { mDonations.remove(donationId); final com.gilshelef.feedme.donors.data.Donor donor = com.gilshelef.feedme.donors.data.Donor.get(); mDatabase.child(Constants.DB_DONATION).child(donationId).removeValue(); mDatabase.child(Constants.DB_DONOR_DON...
public void returnDonation(final java.lang.String donationId) { final com.gilshelef.feedme.donors.data.Donor donor = com.gilshelef.feedme.donors.data.Donor.get(); mDatabase.child(Constants.DB_DONATION).child(donationId).removeValue(); mDatabase.child(Constants.DB_DONOR_DONATION).child(donor.getId()).child(C...
public T removeLast() { if ((size) == 0) throw new java.util.NoSuchElementException(); T value = ((T) (data[tail])); data[tail] = null; (tail)++; (size)--; return value; }
public T removeLast() { if ((size) == 0) throw new java.util.NoSuchElementException(); T value = ((T) (data[tail])); (tail)++; (size)--; if ((tail) == (data.length)) tail = 0; return value; }
private void disconnect(java.lang.String reason) { try { com.kylegiro.chat.packet.client.PacketDisconnect packet = new com.kylegiro.chat.packet.client.PacketDisconnect(reason); outputBuffer.clear(); packet.writeToBytes(outputBuffer); outputBuffer.flip(); output.write(outputBu...
private void disconnect(java.lang.String reason) { try { com.kylegiro.chat.packet.client.PacketDisconnect packet = new com.kylegiro.chat.packet.client.PacketDisconnect(reason); outputBuffer.clear(); packet.writeToBytes(outputBuffer); outputBuffer.flip(); output.write(outputBu...
public void testProcessInputNotDeadGetDs() throws java.lang.Exception { org.mockito.Mockito.when(input.isMoveDown()).thenReturn(true); org.mockito.Mockito.when(input.isMoveLeft()).thenReturn(true); assertEquals(0.0, player.getDy()); assertEquals(0.0, player.getDx()); }
public void testProcessInputNotDeadGetDs() throws java.lang.Exception { when(input.isMoveDown()).thenReturn(true); when(input.isMoveLeft()).thenReturn(true); assertEquals(0.0, player.getDy()); assertEquals(0.0, player.getDx()); }
public static void saveBass() { if ((com.rks.musicx.data.Eq.BassBoosts.bassBoost) == null) { return ; } android.content.SharedPreferences.Editor editor = com.rks.musicx.misc.utils.Extras.getInstance().saveEq().edit(); editor.putBoolean(com.rks.musicx.misc.utils.Constants.BASS_ENABLED, com.rks.mu...
public static void saveBass() { if ((com.rks.musicx.data.Eq.BassBoosts.bassBoost) == null) { return ; } android.content.SharedPreferences.Editor editor = com.rks.musicx.misc.utils.Extras.getInstance().saveEq().edit(); editor.putBoolean(com.rks.musicx.misc.utils.Constants.BASS_ENABLED, com.rks.mu...
public void setCustomBiomes(java.util.List<org.pepsoft.worldpainter.biomeschemes.CustomBiome> customBiomes) { this.customBiomes = customBiomes; if (customBiomes != null ? !(customBiomes.equals(this.customBiomes)) : (this.customBiomes) != null) { java.util.List<org.pepsoft.worldpainter.biomeschemes.Custo...
public void setCustomBiomes(java.util.List<org.pepsoft.worldpainter.biomeschemes.CustomBiome> customBiomes) { if (customBiomes != null ? !(customBiomes.equals(this.customBiomes)) : (this.customBiomes) != null) { java.util.List<org.pepsoft.worldpainter.biomeschemes.CustomBiome> oldCustomBiomes = this.customB...
public tubes.kelas getKelas(java.lang.String kelas) { for (int i = 1; i <= (this.listKelas); i++) { if ((this.daftarkelas[i].getNamaKelas()) == kelas) { return this.daftarkelas[i]; } } return null; }
public tubes.kelas getKelas(java.lang.String kelas) { for (int i = 1; i <= (this.listKelas); i++) { if ((this.daftarkelas[i].getNamaKelas()) == kelas) { return this.daftarkelas[i]; } } return ; }
public void onGlobalLayout() { int heightDiff = RlParent.getRootView().getHeight(); int height = RlParent.getHeight(); int diff = heightDiff - height; android.util.Log.i(com.xptschool.parent.ui.chat.TAG, ((((("onGlobalLayout rootH " + heightDiff) + " height:") + height) + " diff:") + diff)); if (d...
public void onGlobalLayout() { int heightDiff = RlParent.getRootView().getHeight(); int height = RlParent.getHeight(); int diff = heightDiff - height; if (diff > 400) { isInputWindowShow = true; }else { isInputWindowShow = false; } }
public void getPercentile(java.lang.Double percentile) { try { outStream.writeObject("get"); outStream.writeObject(0.9); java.lang.System.out.println(inStream.readObject()); } catch (java.io.IOException ex) { java.util.logging.Logger.getLogger(com.tdigestclient.TDigestClient.clas...
public void getPercentile(java.lang.Double percentile) { try { outStream.writeObject("get"); outStream.writeObject(percentile); java.lang.System.out.println(inStream.readObject()); } catch (java.io.IOException ex) { java.util.logging.Logger.getLogger(com.tdigestclient.TDigestClie...
private java.lang.Boolean checkIsEligibleForDiscountOnPermitFee(final java.math.BigDecimal inputUnit, final java.lang.String serviceTypeCode) { if ((org.egov.bpa.utils.BpaConstants.getServicesForValidation().contains(serviceTypeCode)) && ((inputUnit.compareTo(java.math.BigDecimal.valueOf(150))) <= 0)) { ret...
private java.lang.Boolean checkIsEligibleForDiscountOnPermitFee(final java.math.BigDecimal inputUnit, final java.lang.String serviceTypeCode) { return (org.egov.bpa.utils.BpaConstants.getServicesForValidation().contains(serviceTypeCode)) && ((inputUnit.compareTo(java.math.BigDecimal.valueOf(150))) <= 0) ? true : fa...
private static long countInversions(int[] array, int start, int end) { if (start == end) { return 0; }else { int middle = (start + end) / 2; long x = week1.DivideAndConquer.countInversions(array, 0, middle); long y = week1.DivideAndConquer.countInversions(array, (middle + 1), end...
private static long countInversions(int start, int end) { if (start == end) { return 0; }else if (start < end) { int middle = (start + end) / 2; long x = week1.DivideAndConquer.countInversions(start, middle); long y = week1.DivideAndConquer.countInversions((mi...
public void onTextChanged(java.lang.CharSequence charSequence, int i, int i2, int i3) { if (((mLanguage1Words.size()) > (position)) && ((mLanguage1Words.get(position)) != null)) { mLanguage1Words.remove(position); } mLanguage1Words.add(position, charSequence.toString()); while ((mLanguage1Words....
public void onTextChanged(java.lang.CharSequence charSequence, int i, int i2, int i3) { if ((mLanguage1Words.size()) > (position)) { mLanguage1Words.remove(position); } mLanguage1Words.add(position, charSequence.toString()); while ((mLanguage1Words.size()) > (mLanguage2Words.size())) { m...
private boolean canOperateOnUsernameGifts(java.lang.String username) { if (org.apache.commons.lang3.StringUtils.isNotBlank(username)) { com.qprogramming.gifts.account.Account giftOwner = accountService.findByUsername(username); if (giftOwner == null) { return false; } com...
private boolean canOperateOnUsernameGifts(java.lang.String username) { if (org.apache.commons.lang3.StringUtils.isNotBlank(username)) { com.qprogramming.gifts.account.Account giftOwner = accountService.findByUsername(username); if (giftOwner == null) { return false; } com...
public void clearIndex(int indexId) { if ((transaction.get()) != null) doClearIndex(indexId); checkOpeness(); stateLock.acquireReadLock(); try { checkOpeness(); checkLowDiskSpaceAndFullCheckpointRequests(); doClearIndex(indexId); } finally { stateLock.rel...
public void clearIndex(int indexId) { if ((transaction.get()) != null) { doClearIndex(indexId); return ; } checkOpeness(); stateLock.acquireReadLock(); try { checkOpeness(); checkLowDiskSpaceAndFullCheckpointRequests(); doClearIndex(indexId); } finally { ...
public void connectionClosed(javax.resource.spi.ConnectionEvent event) { connections.remove(event.getSource()); try { ((javax.resource.spi.ManagedConnection) (event.getSource())).cleanup(); } catch (javax.resource.ResourceException e) { org.apache.activemq.ra.ConnectionManagerAdapter.LOG.war...
public void connectionClosed(javax.resource.spi.ConnectionEvent event) { connections.remove(event.getSource()); try { ((javax.resource.spi.ManagedConnection) (event.getSource())).cleanup(); } catch (javax.resource.ResourceException e) { org.apache.activemq.ra.ConnectionManagerAdapter.LOG.war...
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_recipe_list); butterknife.ButterKnife.bind(this); setupToolbar(); setupRecyclerView(); setupInjection(); presenter.onCreate(); presenter.getRecipes(); }
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_recipe_list); butterknife.ButterKnife.bind(this); setupInjection(); setupToolbar(); setupRecyclerView(); presenter.onCreate(); presenter.getRecipes(); }
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); android.support.v4.app.FragmentTransaction ft = getSupportFragmentManager().beginTransaction(); ft.replace(R.id.flCurrentWeather, new com.getlosthere.weatherme.frag...
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); if (savedInstanceState == null) { android.support.v4.app.FragmentTransaction ft = getSupportFragmentManager().beginTransaction(); ft.replace(R.id.flCurr...
public net.minecraft.nbt.NBTTagCompound getUpdateTag() { net.minecraft.nbt.NBTTagCompound compound = super.getUpdateTag(); net.minecraft.util.math.BlockPos thisPos = this.pos; io.netty.util.internal.ConcurrentSet<de.ellpeck.actuallyadditions.mod.misc.LaserRelayConnectionHandler.ConnectionPair> connections =...
public net.minecraft.nbt.NBTTagCompound getUpdateTag() { net.minecraft.nbt.NBTTagCompound compound = super.getUpdateTag(); net.minecraft.nbt.NBTTagList list = new net.minecraft.nbt.NBTTagList(); io.netty.util.internal.ConcurrentSet<de.ellpeck.actuallyadditions.mod.misc.LaserRelayConnectionHandler.Connection...
public static java.lang.String getValueType(java.lang.String value) { if (java.util.regex.Pattern.matches(BooleanVariable.VALUE_REGEX, value)) { return BooleanVariable.TYPE; }else if (java.util.regex.Pattern.matches(CharVariable.VALUE_REGEX, value)) { return CharVariable.TYPE; ...
public static java.lang.String getValueType(java.lang.String value) { if (java.util.regex.Pattern.matches(IntVariable.VALUE_REGEX, value)) { return IntVariable.TYPE; }else if (java.util.regex.Pattern.matches(DoubleVariable.VALUE_REGEX, value)) { return DoubleVariable.TYPE; }e...
public void findSets() { for (int i = 0; i < (this.reps); i++) { java.util.ArrayList<java.lang.Long> subSet = this.genSubset(); long nextRes = this.findResidue(subSet); java.lang.System.out.println(("Subset: " + subSet)); java.lang.System.out.println(("Residue: " + nextRes)); } ...
public void findSets() { for (int i = 0; i < (this.reps); i++) { java.util.ArrayList<java.lang.Long> subSet = this.genSubset(); long nextRes = this.findResidue(subSet); } java.lang.System.out.println(("Lowest residue found: " + (this.residue))); }
public static void loadSettings() { net.net63.codearcade.LSD.utils.Settings.loadDefaults(); for (java.lang.String name : net.net63.codearcade.LSD.utils.Settings.preferences.get().keySet()) { if (name == "currentLevel") net.net63.codearcade.LSD.utils.Settings.setCurrentLevel(net.net63.codearc...
public static void loadSettings() { net.net63.codearcade.LSD.utils.Settings.loadDefaults(); for (java.lang.String name : net.net63.codearcade.LSD.utils.Settings.preferences.get().keySet()) { if (name.equals("currentLevel")) net.net63.codearcade.LSD.utils.Settings.setCurrentLevel(net.net63.co...
public void onClick(android.view.View v) { globalPlay.setFgMadeFlag(goodCB.isChecked()); globalPlay.setFgDistance(java.lang.Integer.parseInt(fgDistanceEditText.getText().toString())); if (!(kickerEditText.getText().toString().equals(""))) { globalPlay.setPlayerNumber(java.lang.Integer.parseInt(kicke...
public void onClick(android.view.View v) { if (goodCB.isChecked()) { globalPlay.setFgMadeFlag(true); }else { globalPlay.setFgMadeFlag(false); } saved = true; dialog.dismiss(); savePlay(); }
public void bindView(android.view.View view, android.content.Context context, android.database.Cursor cursor, long id) { if (view instanceof timersassignment.simplegallery.image.ImageGridItemView) { java.lang.Boolean isChecked = mCheckedStateMap.containsKey(id); ((timersassignment.simplegallery.imag...
public void bindView(android.view.View view, android.content.Context context, android.database.Cursor cursor, long id) { if (view instanceof timersassignment.simplegallery.image.ImageGridItemView) { if (mCheckMode) { ((timersassignment.simplegallery.image.ImageGridItemView) (view)).setChecked(is...
private void setVal(N nHashN, D nHashD, V l) { synchronized(val) { if (l == (valueLattice.topElement())) val.put(nHashN, nHashD, l); else val.put(nHashN, nHashD, l); } heros.solver.IDESolver.logger.debug("VALUE: {} {} {} {}", icfg.getMethodOf(nHashN), nHashN,...
private void setVal(N nHashN, D nHashD, V l) { synchronized(val) { if (l == (valueLattice.topElement())) val.remove(nHashN, nHashD); else val.put(nHashN, nHashD, l); } heros.solver.IDESolver.logger.debug("VALUE: {} {} {} {}", icfg.getMethodOf(nHashN), nHashN,...
public void addMsg(client.intf.IMsgWindow imw, java.lang.Object msg) throws java.lang.ClassCastException { java.lang.String jsonString = ((java.lang.String) (msg)); java.lang.String sender = client.ctl.JsonAnalizerClient.getUser(jsonString); java.lang.String content = client.ctl.JsonAnalizerClient.getMessag...
public void addMsg(client.intf.IMsgWindow imw, java.lang.Object msg) throws java.lang.ClassCastException { java.lang.String jsonString = ((java.lang.String) (msg)); java.lang.String sender = client.ctl.JsonAnalizerClient.getUser(jsonString); java.lang.String content = client.ctl.JsonAnalizerClient.getMessag...
private static void clearDirectory(java.io.File directory) { for (java.io.File file : directory.listFiles()) { if (!(file.delete())) { android.util.Log.w(de.fuberlin.dessert.tasks.FileTasks.LOG_TAG, ("Could not delete the file: " + (file.getAbsolutePath()))); } } }
private static boolean clearDirectory(java.io.File directory) { boolean result = true; for (java.io.File file : directory.listFiles()) { if (!(file.delete())) { android.util.Log.w(de.fuberlin.dessert.tasks.FileTasks.LOG_TAG, ("Could not delete the file: " + (file.getAbsolutePath()))); ...
public java.util.List<org.apache.isis.viewer.wicket.model.mementos.ActionParameterMemento> primeArgumentModels() { final org.apache.isis.core.metamodel.spec.feature.ObjectAction objectAction = getActionMemento().getAction(getSpecificationLoader()); final java.util.List<org.apache.isis.core.metamodel.spec.featur...
public java.util.List<org.apache.isis.viewer.wicket.model.mementos.ActionParameterMemento> primeArgumentModels() { final org.apache.isis.core.metamodel.spec.feature.ObjectAction objectAction = getAction(); final java.util.List<org.apache.isis.core.metamodel.spec.feature.ObjectActionParameter> parameters = objec...
public void updateTimeout(org.araqne.logdb.cep.EventContext ctx) { if (slog.isDebugEnabled()) { java.text.SimpleDateFormat df = new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); slog.debug("araqne logdb cep: update timeout [{}] of context [{}]", df.format(new java.util.Date(ctx.getTimeoutTime()...
public void updateTimeout(org.araqne.logdb.cep.EventContext ctx) { if (slog.isDebugEnabled()) { java.text.SimpleDateFormat df = new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); slog.debug("araqne logdb cep: update timeout [{}] of context [{}]", df.format(new java.util.Date(ctx.getTimeoutTime()...
public double getBalance(org.bukkit.OfflinePlayer player) { return withLock(() -> { org.bukkit.configuration.ConfigurationSection bals = balances(); java.lang.String id = player.getUniqueId().toString(); if (!(bals.contains(id))) { bals.set(id, defaultBalance); return...
public java.lang.Double get() { org.bukkit.configuration.ConfigurationSection bals = balances(); java.lang.String id = player.getUniqueId().toString(); if (!(bals.contains(id))) { bals.set(id, defaultBalance); return defaultBalance; }else { return bals.getDouble(id); } }
public void loadDoctors() { com.parse.ParseQuery<com.samahop.samahope.doctors.DoctorProfile> query = com.samahop.samahope.doctors.DoctorProfile.getQuery(); query.fromLocalDatastore(); query.findInBackground(new com.parse.FindCallback<com.samahop.samahope.doctors.DoctorProfile>() { @java.lang.Overrid...
public void loadDoctors() { com.parse.ParseQuery<com.samahop.samahope.doctors.DoctorProfile> query = com.samahop.samahope.doctors.DoctorProfile.getQuery(); query.findInBackground(new com.parse.FindCallback<com.samahop.samahope.doctors.DoctorProfile>() { @java.lang.Override public void done(java....
private java.lang.Long incrementAndSetValue(final byte[] key, final byte[] field, final long value, byte[] elementToUpdate) { try { long longValue = com.lordofthejars.nosqlunit.redis.embedded.ByteArrayIncrement.incrementValue(value, elementToUpdate); hset(key, field, java.lang.Long.toString(value).g...
private java.lang.Long incrementAndSetValue(final byte[] key, final byte[] field, final long value, byte[] elementToUpdate) { try { long longValue = com.lordofthejars.nosqlunit.redis.embedded.ByteArrayIncrement.incrementValue(value, elementToUpdate); hset(key, field, java.lang.Long.toString(longValu...
public void addVideo(java.lang.String url) { playlist.add(new de.dieser1memesprech.proxsync.user.Video(url)); if ((playlist.size()) == 1) { updatePlaylistInfo(playlist.peek()); if (!(playlist.isEmpty())) { setVideo(playlist.peek().url, playlist.peek().episode); } } se...
public void addVideo(java.lang.String url) { playlist.add(new de.dieser1memesprech.proxsync.user.Video(url)); if ((playlist.size()) == 1) { updatePlaylistInfo(playlist.peek()); if (!(playlist.isEmpty())) { java.lang.System.out.println(playlist.peek().episode); setVideo(pl...
public void onClick(android.view.View v) { mManager.send(new com.xlythe.textmanager.text.Text.Builder().message(mEditText.getText().toString()).addRecipients(mThread.getLatestMessage().getMembersExceptMe(getApplicationContext())).build()); mEditText.setText(null); setSendable(false); }
protected void send() { mManager.send(new com.xlythe.textmanager.text.Text.Builder().message(mEditText.getText().toString()).addRecipients(mThread.getLatestMessage().getMembersExceptMe(getApplicationContext())).build()); mEditText.setText(null); }
public void onReceive(java.lang.Object message) throws java.lang.Throwable { if (message instanceof com.monitorjbl.timberflow.monitor.StatsMessage) { com.monitorjbl.timberflow.monitor.StatsMessage stats = ((com.monitorjbl.timberflow.monitor.StatsMessage) (message)); throughput.put((((stats.getType()...
public void onReceive(java.lang.Object message) throws java.lang.Throwable { if (message instanceof com.monitorjbl.timberflow.monitor.StatsMessage) { com.monitorjbl.timberflow.monitor.StatsMessage stats = ((com.monitorjbl.timberflow.monitor.StatsMessage) (message)); throughput.put(stats.getPluginNam...
private void updateAppointmentInformation() { if ((_newTask) != null) { _newAppointment.setStoreTask(_newTask); if (_oldWorker.equals(_newWorker)) { _newAppointment.setStartDate(_oldAppointment.getStartDate()); _newAppointment.setEndDate(_oldAppointment.getEndDate()); ...
private void updateAppointmentInformation() { if ((_newTask) != null) { _newAppointment.setStoreTask(_newTask); if (_oldWorker.equals(_newWorker)) { _newAppointment.setStartDate(_oldAppointment.getStartDate()); }else { _newAppointment.setStartDate(_newWorker.getNextAv...
public void onClick(android.view.View v) { if (holder_temp.person_description_more.isChecked()) { holder_temp.person_description.setText(java.lang.String.format(mContext.getResources().getString(R.string.contacts_detail_more), description_more)); }else { holder_temp.person_description.setText(ja...
public void onClick(android.view.View v) { if (holder_temp.person_description_more.isChecked()) { holder_temp.person_description.setText(java.lang.String.format(mContext.getResources().getString(R.string.contacts_detail_more), description_more)); }else { holder_temp.person_description.setText(ja...
public void mouseClicked(java.awt.event.MouseEvent e) { model.Location tileLocation = this.getTileLocation(e); model.TakeableItem droppedItem = ((model.TakeableItem) (board.getMap().getTile(tileLocation).getItem())); java.lang.System.out.println(((droppedItem + " ") + tileLocation)); if (board.getAvata...
public void mouseClicked(java.awt.event.MouseEvent e) { model.Location tileLocation = this.getTileLocation(e); model.TakeableItem droppedItem = ((model.TakeableItem) (board.getMap().getTile(tileLocation).getItem())); if (board.getAvatar().getInventory().findAndEquip(droppedItem)) { board.getMap().ge...
public int getLatestTestID() { java.sql.Connection con = null; java.sql.Statement st = null; java.sql.ResultSet rs = null; try { con = getConnection(); java.lang.String sql = "SELECT * FROM TESTS ORDER BY ID DESC"; st = con.createStatement(); rs = st.executeQuery(sql); ...
public int getLatestTestID(java.sql.Connection con) { java.sql.Statement st = null; java.sql.ResultSet rs = null; try { java.lang.String sql = "SELECT * FROM TESTS ORDER BY ID DESC"; st = con.createStatement(); rs = st.executeQuery(sql); while (rs.next()) { return...
public void onCreate(android.database.sqlite.SQLiteDatabase db) { java.lang.String CREATE_CONTACTS_TABLE = (((((("CREATE TABLE " + (com.example.ajstrand.reminderapp.DBHandler.TABLE_NAME)) + "(") + (com.example.ajstrand.reminderapp.DBHandler.KEY_ID)) + " INTEGER PRIMARY_KEY, ") + (com.example.ajstrand.reminderapp.DB...
public void onCreate(android.database.sqlite.SQLiteDatabase db) { java.lang.String CREATE_CONTACTS_TABLE; CREATE_CONTACTS_TABLE = (((((("CREATE TABLE " + (com.example.ajstrand.reminderapp.DBHandler.TABLE_NAME)) + "(") + (com.example.ajstrand.reminderapp.DBHandler.KEY_ID)) + " INTEGER PRIMARY_KEY, ") + (com.exam...
private org.exist.dom.persistent.DocumentImpl extractHtmlEntry(java.util.zip.ZipInputStream zis, java.util.zip.ZipEntry zipEntry) throws org.exist.xquery.XPathException { try { return org.exist.xquery.modules.ModuleUtils.htmlToXHtml(context, new javax.xml.transform.stream.StreamSource(zis), null, null); ...
private org.exist.dom.persistent.DocumentImpl extractHtmlEntry(final java.util.zip.ZipInputStream zis) throws org.exist.xquery.XPathException { try { return org.exist.xquery.modules.ModuleUtils.htmlToXHtml(context, new javax.xml.transform.stream.StreamSource(zis), null, null); } catch (org.xml.sax.SAXEx...
public void newRun_endRun_Test() { Chronotimer c5 = new Chronotimer(); c5.power(); assertNull(c5.getCurrentRun()); c5.newRun(); assertNotNull(c5.getCurrentRun()); c5.endRun(); assertNull(c5.getCurrentRun()); }
public void newRun_endRun_Test() { Chronotimer c5 = new Chronotimer(); c5.power(); assertNull(c5.getCurrentRun()); assertEquals(true, c5.newRun()); assertNotNull(c5.getCurrentRun()); assertTrue(c5.endRun()); assertNull(c5.getCurrentRun()); }
private void startServer() { if ((isStopped()) || (isSuspended())) { try { ddf.catalog.core.ftp.FtpServerStarter.server.start(); ddf.catalog.core.ftp.FtpServerStarter.LOGGER.debug("FTP server started on port {}", port); } catch (java.lang.Exception e) { ddf.catalo...
private void startServer() { if ((isStopped()) || (isSuspended())) { try { ddf.catalog.core.ftp.FtpServerStarter.server.start(); ddf.catalog.core.ftp.FtpServerStarter.LOGGER.info("FTP server started on port {}", port); } catch (java.lang.Exception e) { ddf.catalog...
public int getPoigneeBonus() { int pts = 0; for (com.sbgapps.scoreit.core.model.tarot.TarotBonus bonus : getBonuses()) { switch (bonus.get()) { case TarotBonus.BONUS_POIGNEE_SIMPLE : pts += 20; case TarotBonus.BONUS_POIGNEE_DOUBLE : pts += 30; ...
public int getPoigneeBonus() { int pts = 0; for (com.sbgapps.scoreit.core.model.tarot.TarotBonus bonus : getBonuses()) { switch (bonus.get()) { case TarotBonus.BONUS_POIGNEE_SIMPLE : pts += 20; break; case TarotBonus.BONUS_POIGNEE_DOUBLE : ...
public void Normalize180() { angle -= (java.lang.Math.floor(((angle) / 360.0F))) * 360.0F; if ((angle) > 180.0F) { angle -= 360.0F; }else if ((angle) < (-180.0F)) { angle += 360.0F; } }
public void Normalize180() { angle -= (java.lang.Math.floor(((angle) / 360.0F))) * 360.0F; if ((angle) > 180.0F) { angle -= 360.0F; }else if ((angle) < (-180.0F)) { angle += 360.0F; } int a = 0; }
public java.lang.String translate(java.lang.String sentences) { java.lang.String[] words = sentences.split("\\s+"); for (int i = 0; i < (words.length); i++) { words[i] = wordTranslator.translateWord(words[i]); } java.lang.String res = java.util.Arrays.stream(words).collect(java.util.stream.Colle...
public java.lang.String translate(java.lang.String text) { java.lang.String[] words = text.split("\\s+"); for (int i = 0; i < (words.length); i++) { words[i] = wordTranslator.translateWord(words[i]); } java.lang.String res = java.util.Arrays.stream(words).collect(java.util.stream.Collectors.join...
public void accept(com.madscientists.algoliademo.model.AlgoliaSearchResult algoliaSearchResult) throws java.lang.Exception { if (isAdded()) { handleProgressView(false); loadingMore = false; currentPageCount = algoliaSearchResult.getPage(); if (!isPaginatedList) { hitsList...
public void accept(com.madscientists.algoliademo.model.AlgoliaSearchResult algoliaSearchResult) throws java.lang.Exception { if (isAdded()) { handleProgressView(false); loadingMore = false; currentPageCount = algoliaSearchResult.getPage(); hitsList.addAll(algoliaSearchResult.getHits(...
public conversation_test.Address vaildate() { java.lang.String googleMapURL = buildGoogleMapsURL(); java.lang.String googleAddressResponse = getGoogleMapResponse(googleMapURL); processGoogleResponse(googleAddressResponse); java.lang.String yAddressURL = buildYaddressURL(); java.lang.String yAddressR...
public conversation_test.Address vaildate() { java.lang.String googleMapURL = buildGoogleMapsURL(); java.lang.String googleAddressResponse = getGoogleMapResponse(googleMapURL); processGoogleResponse(googleAddressResponse); java.lang.String yAddressURL = buildYaddressURL(); java.lang.System.out.print...
public void withdrawal(double withdrawalAmount) { if (((this.balance) - withdrawalAmount) <= 0) { java.lang.System.out.println((("Only " + (this.balance)) + " available. Withdrawal not processed")); }else { this.balance -= withdrawalAmount; java.lang.System.out.println(((("Withdrawal of ...
public void withdrawal(double withdrawalAmount) { if (((this.balance) - withdrawalAmount) < 0) { java.lang.System.out.println((("Only " + (this.balance)) + " available. Withdrawal not processed")); }else { this.balance -= withdrawalAmount; java.lang.System.out.println(((("Withdrawal of "...
public void postHandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.Object handler, org.springframework.web.servlet.ModelAndView modelAndView) throws java.lang.Exception { if ((modelAndView != null) && (modelAndView.getViewName().startsWith("redirect:")))...
public void postHandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.Object handler, org.springframework.web.servlet.ModelAndView modelAndView) throws java.lang.Exception { if ((modelAndView == null) || (modelAndView.getViewName().startsWith("redirect:")))...
public void testGetAttributeUnsignedIntValue_StringStringInt() throws java.lang.Exception { forgeAndOpenDocument("<foo xmlns:bar=\"12\"/>"); org.assertj.core.api.Assertions.assertThat(parser.getAttributeUnsignedIntValue(org.robolectric.res.builder.XmlResourceParserImplTest.XMLNS_NS, "bar", 0)).isEqualTo(12); ...
public void testGetAttributeUnsignedIntValue_StringStringInt() throws java.lang.Exception { forgeAndOpenDocument("<foo xmlns:bar=\"12\"/>"); org.assertj.core.api.Assertions.assertThat(parser.getAttributeUnsignedIntValue(org.robolectric.res.builder.XmlResourceParserImplTest.XMLNS_NS, "bar", 0)).isEqualTo(12); ...
public void sendMessageToQueue(eu.domibus.api.jms.JmsMessage message, javax.jms.Queue destination) { try { message.getProperties().put(JmsMessage.PROPERTY_ORIGINAL_QUEUE, removeJmsModule(destination.getQueueName())); } catch (javax.jms.JMSException e) { eu.domibus.messaging.jms.JMSManagerImpl.LO...
public void sendMessageToQueue(eu.domibus.api.jms.JmsMessage message, javax.jms.Queue destination) { try { message.getProperties().put(JmsMessage.PROPERTY_ORIGINAL_QUEUE, destination.getQueueName()); } catch (javax.jms.JMSException e) { eu.domibus.messaging.jms.JMSManagerImpl.LOG.warn((("Could n...
public void run() { getSharedPreferences(); timber.log.Timber.d(("run: ===>>> PULLING TO REFRESH Weather==== Destination: " + (app.ga.com.headingout.inputfragment.tabfragment.InputWeatherTabFragment.destinationAirportCode))); app.ga.com.headingout.inputfragment.tabfragment.InputWeatherTabFragment.forecastAp...
public void run() { timber.log.Timber.d(("run: ===>>> PULLING TO REFRESH Weather==== Destination: " + (app.ga.com.headingout.inputfragment.tabfragment.InputWeatherTabFragment.destinationAirportCode))); app.ga.com.headingout.inputfragment.tabfragment.InputWeatherTabFragment.forecastApiKey = getResources().getStr...
protected void configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws java.lang.Exception { http.csrf().disable().authorizeRequests().antMatchers("/", "/login", "/general/**").permitAll().anyRequest().authenticated().and().formLogin().failureHandler(authenticationFailureHand...
protected void configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws java.lang.Exception { http.csrf().disable().authorizeRequests().antMatchers("/login", "/general/**").permitAll().anyRequest().authenticated().and().formLogin().failureHandler(authenticationFailureHandler()...
private int findRangeContaining(long index) { for (int i = 0; i < (indexes.length); i++) { if ((indexes[i]) > index) { return i - 1; }else if ((indexes[i]) == index) { return i; } } return -1; }
private int findRangeContaining(long index) { for (int i = 0; i < (indexes.length); i++) { if ((indexes[i]) > index) { return i - 1; }else if ((indexes[i]) == index) { return i; } } return index > (indexes[((indexes.length) - 1)]) ...
public boolean canPickup(geom.Part p) { java.util.ArrayList<robot.BoundingBox> curEEOBBs = eeOBBsMap.get(activeEndEffector); for (robot.BoundingBox b : curEEOBBs) { if ((p != null) && (p.collision(b))) { return false; } } curEEOBBs = eePickupOBBs.get(activeEndEffector); f...
public boolean canPickup(geom.Part p) { if (p == null) { return false; } java.util.ArrayList<robot.BoundingBox> curEEOBBs = eeOBBsMap.get(activeEndEffector); for (robot.BoundingBox b : curEEOBBs) { if (p.collision(b)) { return false; } } curEEOBBs = eePickupOB...
protected void onPostExecute(java.lang.Object result) { this.progressDialog.dismiss(); if (result instanceof com.nodoubts.core.Subject) { java.util.List<com.nodoubts.core.Subject> subjects = new java.util.ArrayList<com.nodoubts.core.Subject>(); subjects.add(((com.nodoubts.core.Subject) (result))...
protected void onPostExecute(java.lang.Object result) { this.progressDialog.dismiss(); if (result instanceof com.nodoubts.core.Subject) { java.util.List<com.nodoubts.core.Subject> subjects = new java.util.ArrayList<com.nodoubts.core.Subject>(); subjects.add(((com.nodoubts.core.Subject) (result))...
protected void prepareTrueFalseModelBank() { _mQuestionBank = new com.bignerdranch.geoquiz.model.TrueFalseModel[]{ new com.bignerdranch.geoquiz.model.TrueFalseModel(R.string.question_oceans, true) , new com.bignerdranch.geoquiz.model.TrueFalseModel(R.string.question_africa, false) , new com.bignerdranch.geoquiz.mod...
protected void prepareTrueFalseModelBank() { _mQuestionBank = new com.bignerdranch.geoquiz.model.TrueFalseModel[]{ new com.bignerdranch.geoquiz.model.TrueFalseModel(R.string.question_oceans, true) , new com.bignerdranch.geoquiz.model.TrueFalseModel(R.string.question_africa, false) , new com.bignerdranch.geoquiz.mod...
public void onItemSelected(android.widget.AdapterView<?> parent, android.view.View view, int position, long id) { switch (position) { case 0 : spinner.setBackgroundColor(android.graphics.Color.rgb(255, 0, 0)); break; case 1 : spinner.setBackgroundColor(android.gra...
public void onItemSelected(android.widget.AdapterView<?> parent, android.view.View view, int position, long id) { switch (position) { case 0 : parent.setBackgroundColor(android.graphics.Color.rgb(255, 0, 0)); break; case 1 : parent.setBackgroundColor(android.graph...
public java.lang.String toString() { java.lang.StringBuilder sb = new java.lang.StringBuilder(); int i = 1; for (com.bastronaut.linkedlist.LinkedList<K, V> ll : itemContainer) { if (ll == null) { java.lang.System.out.println(i); i++; continue; } sb...
public java.lang.String toString() { java.lang.StringBuilder sb = new java.lang.StringBuilder(); for (com.bastronaut.linkedlist.LinkedList<K, V> ll : itemContainer) { if (ll == null) { continue; } sb.append(ll.toString()); } return sb.toString(); }
public void onCreate(android.os.Bundle savedInstanceState) { getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN); getWindow().setBackgroundDrawableResource(R.color.bg); super.onCreate(savedInstanceState, R.layout.activity_streamloading); getWindow().addFlags(WindowMan...
public void onCreate(android.os.Bundle savedInstanceState) { getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN); getWindow().setBackgroundDrawableResource(R.color.bg); super.onCreate(savedInstanceState, R.layout.activity_streamloading); getWindow().addFlags(WindowMan...
public static void registerTheme(java.lang.String name, com.googlecode.lanterna.graphics.Theme theme) { if (theme == null) { throw new java.lang.IllegalArgumentException("Name cannot be null"); }else if (name.isEmpty()) { throw new java.lang.IllegalArgumentException("Name cannot be e...
public static void registerTheme(java.lang.String name, com.googlecode.lanterna.graphics.Theme theme) { if (theme == null) { throw new java.lang.IllegalArgumentException("Name cannot be null"); }else if (name.isEmpty()) { throw new java.lang.IllegalArgumentException("Name cannot be e...
public int floatValueToSliderIntValue(final uk.co.modularaudio.util.mvc.displayslider.SliderDisplayModel sdm, final float inValue) { final int numSteps = sdm.getNumSliderSteps(); final float minValue = sdm.getMinValue(); final float maxValue = sdm.getMaxValue(); final float diffValue = maxValue - minVal...
public int floatValueToSliderIntValue(final uk.co.modularaudio.util.mvc.displayslider.SliderDisplayModel sdm, final float inValue) { final int numSteps = sdm.getNumSliderSteps(); final float minValue = sdm.getMinValue(); final float maxValue = sdm.getMaxValue(); final float diffValue = maxValue - minVal...
public java.lang.Object getState() { java.lang.String apiUri = getUri(); hudson.model.User user = getAuthenticatedUser(); java.util.List<com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials> credentials = io.jenkins.blueocean.credential.CredentialsUtils.findCredentials(com.cloudbees....
public java.lang.Object getState() { java.lang.String apiUri = getUri(); hudson.model.User user = getAuthenticatedUser(); java.util.List<com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials> credentials = io.jenkins.blueocean.credential.CredentialsUtils.findCredentials(com.cloudbees....
public static double[] predict(Jama.Matrix input, Jama.Matrix weights) { double[][] scores = input.times(weights).getArray(); return java.util.Arrays.stream(scores).map(( n) -> (n[0]) > 0 ? 1.0 : 0.0).mapToDouble(java.lang.Double::doubleValue).toArray(); }
public static double[] predict(Jama.Matrix input, Jama.Matrix weights) { double[][] scores = input.times(weights).getArray(); return java.util.Arrays.stream(scores).map(( n) -> (n[0]) > 0 ? 1.0 : -1.0).mapToDouble(java.lang.Double::doubleValue).toArray(); }
public void setImage() { try { android.graphics.BitmapFactory bitmapFactory = new android.graphics.BitmapFactory(); android.graphics.BitmapFactory.Options options = new android.graphics.BitmapFactory.Options(); options.inJustDecodeBounds = true; options.inJustDecodeBounds = false; ...
public void setImage() { try { android.graphics.BitmapFactory bitmapFactory = new android.graphics.BitmapFactory(); bitmapImage = bitmapFactory.decodeStream(getContext().getContentResolver().openInputStream(imageUri)); editImage.setImageBitmap(bitmapImage); android.util.Log.d(getClas...
protected void addEdge(org.gephi.graph.impl.EdgeImpl edge) { if ((views.length) > 0) { for (org.gephi.graph.impl.GraphViewImpl view : views) { view.ensureEdgeVectorSize(edge); if ((view.nodeView) && (!(view.edgeView))) { view.addEdgeInNodeView(edge); } ...
protected void addEdge(org.gephi.graph.impl.EdgeImpl edge) { if ((views.length) > 0) { for (org.gephi.graph.impl.GraphViewImpl view : views) { if (view != null) { view.ensureEdgeVectorSize(edge); if ((view.nodeView) && (!(view.edgeView))) { vie...
public void onClick(android.view.View v) { int position = ((java.lang.Integer) (v.getTag())); steinbacher.georg.storj_hoststats_app.StorjNode selectedNode = ((steinbacher.georg.storj_hoststats_app.StorjNode) (mListView.getAdapter().getItem(position))); android.util.Log.i(steinbacher.georg.storj_hoststats_ap...
public void onClick(android.view.View v) { int position = ((java.lang.Integer) (v.getTag())); steinbacher.georg.storj_hoststats_app.StorjNode selectedNode = ((steinbacher.georg.storj_hoststats_app.StorjNode) (mListView.getAdapter().getItem(position))); showEditNowDialog(selectedNode, position); }
public void initializeHardware() { driveAssemblies[FRONT_RIGHT].motor = hardwareMap.dcMotor.get("motorFrontRight"); driveAssemblies[FRONT_LEFT].motor = hardwareMap.dcMotor.get("motorFrontLeft"); driveAssemblies[BACK_RIGHT].motor = hardwareMap.dcMotor.get("motorBackRight"); driveAssemblies[BACK_LEFT].mot...
public void initializeHardware() { driveAssemblies[BACK_LEFT].motor = hardwareMap.dcMotor.get("motorBackLeft"); driveAssemblies[BACK_RIGHT].motor = hardwareMap.dcMotor.get("motorBackRight"); driveAssemblies[FRONT_RIGHT].motor = hardwareMap.dcMotor.get("motorFrontRight"); driveAssemblies[FRONT_LEFT].moto...
private void manageSwitchButton() { final android.widget.RelativeLayout localBackupLayout = ((android.widget.RelativeLayout) (findViewById(R.id.relativelayout_settings_backup_localbackupONlayout))); android.widget.Switch localBackupSwitch = ((android.widget.Switch) (findViewById(R.id.switch_settings_backup_loca...
private void manageSwitchButton() { final android.widget.RelativeLayout localBackupLayout = ((android.widget.RelativeLayout) (findViewById(R.id.relativelayout_settings_backup_localbackupONlayout))); localBackupSwitch = ((android.widget.Switch) (findViewById(R.id.switch_settings_backup_localswitchbackup))); ...
public void actionPerformed(java.awt.event.ActionEvent e) { io.github.algorys.agshmne.events.quest.IQuest selectedQuest = quests.getModel().getElementAt(index); io.github.algorys.agshmne.game.quest.JQuestResume questDialog = new io.github.algorys.agshmne.game.quest.JQuestResume(topFrame, selectedQuest, pj); ...
public void actionPerformed(java.awt.event.ActionEvent e) { io.github.algorys.agshmne.events.quest.IQuest selectedQuest = quests.getModel().getElementAt(index); io.github.algorys.agshmne.game.quest.JQuestResume questDialog = new io.github.algorys.agshmne.game.quest.JQuestResume(topFrame, selectedQuest, this.pj)...
public java.lang.Boolean authenicateUser(java.lang.String sessionId, java.lang.String roleName) throws java.lang.Exception { if ((com.mastek.topcoders.smartkanteen.service.UserServiceImpl.userSessionMap.containsKey(sessionId)) && (roleName != null)) { com.mastek.topcoders.smartkanteen.bean.UserSession userS...
public java.lang.Boolean authenicateUser(java.lang.String sessionId, java.lang.String roleName) throws java.lang.Exception { if ((com.mastek.topcoders.smartkanteen.service.UserServiceImpl.userSessionMap.containsKey(sessionId)) && (roleName != null)) { com.mastek.topcoders.smartkanteen.bean.UserSession userS...
public void updateButtons(android.graphics.Bitmap leftBitmap, android.graphics.Bitmap rightBitmap) { setLeftBitmap(leftBitmap); setRightBitmap(rightBitmap); if (leftBitmap != null) { leftImgBtn.setImageBitmap(leftBitmap); leftImgBtn.setClickable(true); }else { leftImgBtn.setClick...
public void updateButtons(android.graphics.Bitmap leftBitmap, android.graphics.Bitmap rightBitmap) { setLeftBitmap(leftBitmap); setRightBitmap(rightBitmap); if (leftBitmap != null) { leftImgBtn.setImageBitmap(leftBitmap); leftImgBtn.setEnabled(true); }else { leftImgBtn.setEnabled...
private void validaDataDeDevolucao(br.edu.utfpr.labscontrol.model.entity.EmprestimoItem item) throws java.lang.IllegalArgumentException { java.lang.Long time1 = item.getEmprestimo().getData().getTime(); java.lang.Long time2 = item.getDataDevolucao().getTime(); if (time1 > time2) { throw new java.lan...
private void validaDataDeDevolucao(br.edu.utfpr.labscontrol.model.entity.EmprestimoItem item) throws java.lang.IllegalArgumentException { if ((item.getDataDevolucao()) != null) { java.lang.Long time1 = item.getEmprestimo().getData().getTime(); java.lang.Long time2 = item.getDataDevolucao().getTime()...
public void executeCommand(int index) { int realIndex = -1; java.util.Iterator<com.zzzkvidi4.Command> iterator = commandList.iterator(); while ((index > 0) && (iterator.hasNext())) { if (iterator.next().isEnabled()) { --index; } realIndex++; } commandList.get(rea...
public void executeCommand(int index) { int realIndex = -1; java.util.Iterator<com.zzzkvidi4.Command> iterator = commandList.iterator(); while ((index >= 0) && (iterator.hasNext())) { if (iterator.next().isEnabled()) { --index; } realIndex++; } commandList.get(re...
public void setFocusOwner(edu.udo.piq.PComponent component) { edu.udo.piq.PComponent oldOwner = getFocusOwner(); if (oldOwner != null) { fireFocusLostEvent(oldOwner); } focusOwner = component; if ((getFocusOwner()) != null) { fireFocusGainedEvent(oldOwner); } }
public void setFocusOwner(edu.udo.piq.PComponent component) { edu.udo.piq.PComponent oldOwner = getFocusOwner(); if (component == oldOwner) { return ; } if (oldOwner != null) { fireFocusLostEvent(oldOwner); } focusOwner = component; if ((getFocusOwner()) != null) { fi...