buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public void onClick(android.content.DialogInterface dialog, int which) { try { mAPI.revokeContactFromChain(mAPI.getBlocks(owner).get(position).getBlockOwner()); } catch (nl.tudelft.b_b_w.model.HashException e) { android.widget.Toast.makeText(context, retrievingHashError, Toast.LENGTH_LONG).show(...
public void onClick(android.content.DialogInterface dialog, int which) { try { mAPI.revokeContactFromChain(mAPI.getBlocks(owner).get(position).getBlockOwner()); } catch (nl.tudelft.b_b_w.model.HashException e) { e.printStackTrace(); } catch (nl.tudelft.b_b_w.model.BlockAlreadyExistsException...
public void onEvent(eu.dlvm.domotics.base.Block source, eu.dlvm.domotics.events.EventType event) { switch (event) { case ON : on(); break; case OFF : reallyOff(); break; case TOGGLE : toggle(); break; case DELAY_...
public void onEvent(eu.dlvm.domotics.base.Block source, eu.dlvm.domotics.events.EventType event) { switch (event) { case ON : break; case OFF : reallyOff(); break; case TOGGLE : toggle(); break; case DELAY_ON : d...
public java.util.Iterator<java.nio.file.Path> iterator() { java.lang.System.err.println("iter"); try { autoLoad(); } catch (java.io.IOException e) { e.printStackTrace(); } catch (org.xml.sax.SAXException e) { e.printStackTrace(); } catch (javax.xml.parsers.ParserConfiguration...
public java.util.Iterator<java.nio.file.Path> iterator() { try { autoLoad(); } catch (java.io.IOException e) { e.printStackTrace(); } catch (org.xml.sax.SAXException e) { e.printStackTrace(); } catch (javax.xml.parsers.ParserConfigurationException e) { e.printStackTrace()...
public void formatEditText(android.widget.EditText editText) { if (editText.getText().toString().equals("")) { editText.setText("00"); }else if ((editText.length()) == 1) { java.lang.String temp = 0 + (editText.getText().toString()); editText.setText(temp); } ...
public void formatEditText(android.widget.EditText editText) { if (editText.getText().toString().equals("")) { editText.setText(0); }else if ((editText.length()) == 1) { java.lang.String temp = 0 + (editText.getText().toString()); editText.setText(temp); } }
private void syncNewLinePositions() { for (int i = lastNewLinePositionIndex; i == 0; i--) { if ((position) >= (newLinePositions[lastNewLinePositionIndex])) { break; }else { newLinePositions[((lastNewLinePositionIndex)--)] = -1; } } }
private void syncNewLinePositions() { for (int i = lastNewLinePositionIndex; i > (-1); i--) { if ((position) >= (newLinePositions[lastNewLinePositionIndex])) { break; }else { newLinePositions[((lastNewLinePositionIndex)--)] = -1; } } }
private java.lang.String inputStreamToString(java.io.InputStream inputStream) throws java.io.IOException { java.io.Reader reader = new java.io.InputStreamReader(inputStream, "gb2312"); java.io.BufferedReader bufferedReader = new java.io.BufferedReader(reader); java.lang.StringBuilder sb = new java.lang.Stri...
private java.lang.String inputStreamToString(java.io.InputStream inputStream) throws java.io.IOException { java.io.Reader reader = new java.io.InputStreamReader(inputStream, "gb2312"); java.io.BufferedReader bufferedReader = new java.io.BufferedReader(reader); java.lang.StringBuilder sb = new java.lang.Stri...
private void shuffleDeck() { int random = 0; for (int i = 0; i < (numberOfCards); i++) { random = srk.syracuse.gameofcards.Model.Deck.getRandomCard(i); srk.syracuse.gameofcards.Model.Cards temp = cards[i]; cards[i] = cards[random]; cards[random] = temp; } }
public void shuffleDeck() { int random = 0; for (int i = 0; i < (numberOfCards); i++) { random = srk.syracuse.gameofcards.Model.Deck.getRandomCard(i); srk.syracuse.gameofcards.Model.Cards temp = cards[i]; cards[i] = cards[random]; cards[random] = temp; } }
private boolean hideMessageByJSONSetting(org.json.JSONArray array) { org.json.JSONObject object = array[0]; try { if ((object.getJSONObject("data").getBoolean("notification")) == false) { return false; } } catch (java.lang.Exception e) { return true; } return true...
private boolean hideMessageByJSONSetting(org.json.JSONArray array) { try { org.json.JSONObject object = array.get(0); if ((object.getJSONObject("data").getBoolean("notification")) == false) { return false; } } catch (java.lang.Exception e) { return true; } ret...
public static ml.shifu.shifu.container.obj.ModelConfig loadModelConfig(java.lang.String path, ml.shifu.shifu.container.obj.RawSourceData.SourceType sourceType) throws java.io.IOException { ml.shifu.shifu.container.obj.ModelConfig modelConfig = ml.shifu.shifu.util.CommonUtils.loadJSON(path, sourceType, ml.shifu.shif...
public static ml.shifu.shifu.container.obj.ModelConfig loadModelConfig(java.lang.String path, ml.shifu.shifu.container.obj.RawSourceData.SourceType sourceType) throws java.io.IOException { ml.shifu.shifu.container.obj.ModelConfig modelConfig = ml.shifu.shifu.util.CommonUtils.loadJSON(path, sourceType, ml.shifu.shif...
public void update() { android.content.ContentResolver resolver = mContext.getContentResolver(); mOneFingerQuickSettingsIntercept = (Settings.System.getInt(resolver, Settings.System.STATUS_BAR_QUICK_QS_PULLDOWN, 1)) == 1; mDoubleTapToSleepEnabled = (Settings.System.getInt(resolver, Settings.System.DOUBLE_TA...
public void update() { android.content.ContentResolver resolver = mContext.getContentResolver(); mOneFingerQuickSettingsIntercept = (Settings.System.getInt(resolver, Settings.System.STATUS_BAR_QUICK_QS_PULLDOWN, 1)) == 1; mDoubleTapToSleepEnabled = (Settings.System.getInt(resolver, Settings.System.DOUBLE_TA...
public void run() { if (download.needToDownload()) { fireTask((((Language.INSTANCE.localize("common.downloading")) + " ") + (download.getFilename()))); download.download(true); }else { download.copyFile(); } }
public void run() { if (download.needToDownload()) { fireTask((((Language.INSTANCE.localize("common.downloading")) + " ") + (download.getFilename()))); download.download(true); } }
public void onShutdownInput() { assert eventloop.inEventloopThread(); if ((callback) != null) { if (((reading) == (BODY)) && ((contentLength) == (UNKNOWN_LENGTH))) { onHttpMessage(bodyQueue.takeRemaining()); }else { closeWithError(io.datakernel.http.HttpClientConnection.C...
public void onShutdownInput() { assert eventloop.inEventloopThread(); if ((callback) != null) { if (((reading) == (BODY)) && ((contentLength) == (UNKNOWN_LENGTH))) { onHttpMessage(bodyQueue.takeRemaining()); }else { closeWithError(io.datakernel.http.HttpClientConnection.C...
public android.support.v4.app.Fragment getItem(int position) { switch (position) { case 0 : com.midoreigh.midopicker.CameraKitFragment cameraKitFragment = new com.midoreigh.midopicker.CameraKitFragment(); cameraKitFragment.setConfig(com.midoreigh.midopicker.ImagePickerActivity.getCon...
public android.support.v4.app.Fragment getItem(int position) { switch (position) { case 0 : com.midoreigh.midopicker.CameraKitFragment cameraKitFragment = new com.midoreigh.midopicker.CameraKitFragment(); com.midoreigh.midopicker.CameraKitFragment.setConfig(com.midoreigh.midopicker.I...
public boolean onPreferenceChange(android.preference.Preference preference, final java.lang.Object newValue) { final java.lang.String newPath = ((java.lang.String) (newValue)); try { com.ichi2.anki.AnkiDroidApp.initializeAnkiDroidDirectory(newPath); AnkiDroidApp.sStorageAccessExceptionFlag = fal...
public boolean onPreferenceChange(android.preference.Preference preference, final java.lang.Object newValue) { final java.lang.String newPath = ((java.lang.String) (newValue)); try { com.ichi2.anki.AnkiDroidApp.initializeAnkiDroidDirectory(newPath); return true; } catch (com.ichi2.anki.excep...
public void onAttachedToRecyclerView(android.support.v7.widget.RecyclerView recyclerView) { if ((mRunnables) == null) { mRunnables = new java.util.ArrayList<>(); int count = getItemCount(); for (int i = 0; i < count; i++) { mRunnables.add(null); } } registerAdapte...
public void onAttachedToRecyclerView(android.support.v7.widget.RecyclerView recyclerView) { if ((mRunnables.size()) == 0) { int count = getItemCount(); for (int i = 0; i < count; i++) { mRunnables.add(null); } } registerAdapterDataObserver(new com.tr4android.recyclerviews...
public void createPolicyWithConfigurationAndConfigurationData02() { try (java.io.InputStream is = io.gravitee.gateway.policy.PolicyConfigurationFactoryTest.class.getResourceAsStream("policy-configuration-02.json")) { java.lang.String configuration = org.apache.commons.io.IOUtils.toString(is, "UTF-8"); ...
public void createPolicyWithConfigurationAndConfigurationData02() { try (java.io.InputStream is = io.gravitee.gateway.policy.PolicyConfigurationFactoryTest.class.getResourceAsStream("policy-configuration-02.json")) { java.lang.String configuration = org.apache.commons.io.IOUtils.toString(is, "UTF-8"); ...
private void updateConnections() { for (Models.Location l1 : validLocations) for (Models.Location l2 : validLocations) for (Models.Location mid : validLocations) if ((connection.get(new Models.LocationPair(l1, mid))) && (connection.get(new Models.LocationPair(l2, mid)))) ...
private void updateConnections() { for (Models.Location l1 : validLocations) for (Models.Location l2 : validLocations) for (Models.Location mid : validLocations) if ((connection.get(new Models.LocationPair(l1, mid))) && (connection.get(new Models.LocationPair(mid, l2)))) ...
public Person retrieve() { int iterator = (array.length) - 1; while ((array[iterator]) == null) { iterator--; } Person retrieved = array[iterator]; array[iterator] = null; return retrieved; }
public Person retrieve() { int iterator = (array.length) - 1; while ((iterator > 0) && ((array[iterator]) == null)) { iterator--; } Person retrieved = array[iterator]; array[iterator] = null; return retrieved; }
private void execute() { java.lang.Integer history = null; try { history = config.getInteger(ConfigProperty.EXECUTION_LOG_HISTORY); } finally { } if ((history == null) || (history <= (-1))) { return ; } java.util.Calendar pruneLine = java.util.Calendar.getInstance(); prun...
private void execute() { java.lang.Integer history = null; if (config.contains(ConfigProperty.EXECUTION_LOG_HISTORY)) { history = config.getInteger(ConfigProperty.EXECUTION_LOG_HISTORY); } if ((history == null) || (history <= (-1))) { return ; } java.util.Calendar pruneLine = jav...
public void mouseUpdate(int mx, int my, boolean pressed) { if (pressed == false) { this.destroy(); }else if (this.contains(mx, my)) { if ((this.fixed) == true) { this.bind(mx, this.fixed_y); }else { this.bind(mx, my); } ...
public void mouseUpdate(int mx, int my, boolean pressed) { if (pressed == false) { this.destroy(); }else if (this.contains(mx, my)) { if (!(this.fixed)) { this.bind(mx, my); }else { this.bind(mx, this.fixed_y); } } ...
public static boolean checkLimit(net.dv8tion.jda.core.entities.Guild guild) { fredboat.audio.player.GuildPlayer guildPlayer = fredboat.audio.player.PlayerRegistry.getExisting(guild); if ((guildPlayer != null) && ((guildPlayer.getSongCount()) > 0)) return true; return ((fredboat.audio.player.Pla...
public static boolean checkLimit(net.dv8tion.jda.core.entities.Guild guild) { fredboat.audio.player.GuildPlayer guildPlayer = fredboat.audio.player.PlayerRegistry.getExisting(guild); if ((guildPlayer != null) && ((guildPlayer.getSongCount()) > 0)) return true; return ((fredboat.audio.player.Pla...
public void onClick(android.content.DialogInterface dialog, int which) { boolean connection = mBluetoothLeService.connect(device.getAddress()); if (connection) { rootview.setVisibility(View.VISIBLE); connect_button_view.setVisibility(View.GONE); android.widget.Toast.makeText(this, getBas...
public void onClick(android.content.DialogInterface dialog, int which) { boolean connection = mBluetoothLeService.connect(device.getAddress()); if (connection) { rootview.setVisibility(View.VISIBLE); connect_button_view.setVisibility(View.GONE); } dialog.dismiss(); }
public void onClick(android.view.View v) { java.lang.String x = retrieveMyPHP.deleteUserArtist(MyApplication.userName, artist.getArtistId()); android.widget.Toast.makeText(mActivity.getApplicationContext(), x, Toast.LENGTH_SHORT).show(); if (x.equals("Artist Deleted!")) { dbHelper.deleteUserArtist(d...
public void onClick(android.view.View v) { java.lang.String x = retrieveMyPHP.deleteUserArtist(MyApplication.userName, artist.getArtistId()); dbHelper.deleteUserArtist(dbHelper.getWritableDatabase(), artist.getArtistId()); android.widget.Toast.makeText(mActivity.getApplicationContext(), x, Toast.LENGTH_SHOR...
public void onResponse(de.elanev.studip.android.app.backend.datamodel.ContactGroups response) { try { if (!(favoritesGroupExisting(response))) { createFavoritesGroup(); }else { resolver.applyBatch(AbstractContract.CONTENT_AUTHORITY, new de.elanev.studip.android.app.backend.ne...
public void onResponse(de.elanev.studip.android.app.backend.datamodel.ContactGroups response) { try { resolver.applyBatch(AbstractContract.CONTENT_AUTHORITY, new de.elanev.studip.android.app.backend.net.sync.ContactGroupsHandler(response).parse()); } catch (android.os.RemoteException e) { e.prin...
public void removeDanceSequence(T selectedBeatElem) { java.util.UUID danceSequenceID = selectedBeatElem.getDanceSequenceId(); ch.ethz.asl.dancebots.danceboteditor.model.DanceSequence<T> selectedDanceSequence = mDanceSequences.get(danceSequenceID); int danceSequenceLength = selectedDanceSequence.getLength();...
public void removeDanceSequence(T selectedBeatElem) { java.util.UUID danceSequenceID = selectedBeatElem.getDanceSequenceId(); removeDanceSequence(danceSequenceID, selectedBeatElem.getBeatPosition(), ((selectedBeatElem.getBeatPosition()) + (mDanceSequences.get(danceSequenceID).getLength()))); }
public boolean containsKey(java.lang.String key) { int index = (java.lang.Math.abs(key.hashCode())) % (this.valueTable.length); java.lang.String currentKey; while ((currentKey = this.keyTable[index]) != null) { if (key.equals(currentKey)) return true; index = (index + 1)...
public boolean containsKey(java.lang.String key) { int index = (key.hashCode()) % (this.valueTable.length); java.lang.String currentKey; while ((currentKey = this.keyTable[index]) != null) { if (key.equals(currentKey)) return true; index = (index + 1) % (this.keyTable.le...
public void addDoctor(com.mycompany.dao.Doctor doctor) { org.hibernate.SessionFactory sessionFactory = com.mycompany.hibernate.HibernateUtil.getSessionFactory(); org.hibernate.Session session = sessionFactory.openSession(); session.beginTransaction(); session.save(doctor); session.getTransaction().c...
public com.mycompany.dao.Doctor addDoctor(com.mycompany.dao.Doctor doctor) { org.hibernate.SessionFactory sessionFactory = com.mycompany.hibernate.HibernateUtil.getSessionFactory(); org.hibernate.Session session = sessionFactory.openSession(); session.beginTransaction(); session.save(doctor); sessio...
public boolean onNavigationItemSelected(android.view.MenuItem menuItem) { menuItem.setChecked(true); mDrawerLayout.closeDrawers(); switch (menuItem.getItemId()) { case R.id.nav_home : setToolbarTitle("主页"); navigationDrawerItemSelected(0); break; case R.id...
public boolean onNavigationItemSelected(android.view.MenuItem menuItem) { mDrawerLayout.closeDrawers(); menuItem.setChecked(true); switch (menuItem.getItemId()) { case R.id.nav_home : setToolbarTitle("主页"); navigationDrawerItemSelected(0); break; case R.id...
public twitter4j.User showUser(java.lang.String arg0) throws twitter4j.TwitterException { if ((limits[1]) == 179) { SocialNetworkAnalysis.TwitterWrapper.timelimited[0] = new java.util.Date(); limit.reached(); limits[1] = 0; } (limits[1])++; java.lang.System.out.println("limits in...
public twitter4j.User showUser(java.lang.String arg0) throws twitter4j.TwitterException { if ((limits[1]) == 179) { SocialNetworkAnalysis.TwitterWrapper.timelimited[0] = new java.util.Date(); limit.reached(); limits[1] = 0; } (limits[1])++; java.lang.System.out.print("limits in s...
private com.gamesbykevin.breakout.ball.Balls.Key getRandomKey() { if (this.keys.isEmpty()) { for (com.gamesbykevin.breakout.ball.Balls.Key key : com.gamesbykevin.breakout.ball.Balls.Key.values()) { if (key == (com.gamesbykevin.breakout.ball.Balls.Key.Red)) continue; ...
private com.gamesbykevin.breakout.ball.Balls.Key getRandomKey() { if (this.keys.isEmpty()) { for (com.gamesbykevin.breakout.ball.Balls.Key key : com.gamesbykevin.breakout.ball.Balls.Key.values()) { if (key == (com.gamesbykevin.breakout.ball.Balls.Key.Red)) continue; ...
private boolean checkNumberAssignment(java.lang.String[] input) { if (input[1].matches(".*[^1-9].*")) { if (input[1].contains(".")) { return true; }else { java.lang.System.out.println("ERROR: Number assignment contains a non-number character."); return false; ...
private boolean checkNumberAssignment(java.lang.String[] input) { if ((input[1].matches(".*[^1-9].*")) && (!(input[1].contains("0")))) { if (input[1].contains(".")) { return true; }else { java.lang.System.out.println("ERROR: Number assignment contains a non-number character."...
private void calculateDuration() { if (locations.isEmpty()) { metaData.duration = -1; } metaData.duration = (locations.get(((locations.size()) - 1)).getTimestamp()) - (locations.get(0).getTimestamp()); }
private void calculateDuration() { if (locations.isEmpty()) { metaData.duration = -1; }else { metaData.duration = (locations.get(((locations.size()) - 1)).getTimestamp()) - (locations.get(0).getTimestamp()); } }
public void addAndRemoveTest() { java.util.Collections.addAll(mySet, 1, 2, 3); java.util.Collections.addAll(anotherSet, 1, 3, 4); mySet.add(4); mySet.remove(2); org.junit.Assert.assertTrue(anotherSet.equals(mySet)); org.junit.Assert.assertEquals(anotherSet, mySet.toArray()); }
public void addAndRemoveTest() { java.util.Collections.addAll(mySet, 1, 2, 3); java.util.Collections.addAll(anotherSet, 1, 3, 4); mySet.add(4); mySet.remove(2); org.junit.Assert.assertTrue(anotherSet.equals(mySet)); org.junit.Assert.assertEquals(anotherSet, mySet); }
public org.craftercms.profile.api.VerificationToken getVerificationToken(java.lang.String tokenId) throws org.craftercms.profile.api.exceptions.ProfileException { java.lang.String url = getAbsoluteUrl(((BASE_URL_PROFILE) + (URL_PROFILE_GET_VERIFICATION_TOKEN))); url = org.craftercms.commons.rest.RestClientUtils...
public org.craftercms.profile.api.VerificationToken getVerificationToken(java.lang.String tokenId) throws org.craftercms.profile.api.exceptions.ProfileException { java.lang.String url = getAbsoluteUrl(((BASE_URL_PROFILE) + (URL_PROFILE_GET_VERIFICATION_TOKEN))); url = addQueryParams(url, createBaseParams(), fal...
public void onStart() { super.onStart(); if ((resultDrawer) == null) { accountList = getAccounts(); if (!(accountList.isEmpty())) { selectedAccount = accountList.get(0); createDrawer(); selectAccount(selectedAccount); onUserEventsSelected(); ...
public void onStart() { super.onStart(); if ((resultDrawer) == null) { accountList = getAccounts(); if (!(accountList.isEmpty())) { selectedAccount = accountList.get(0); createDrawer(); selectAccount(selectedAccount); } } }
public void removeFromErrorsWarnings(insalmo.Parameter param) { if (this.errors.contains(param)) { this.errors.remove(param); } if (this.warnings.contains(param)) { this.warnings.remove(param); } this.errorWarningUpdateListener.actionPerformed(new java.awt.event.ActionEvent(this, jav...
public void removeFromErrorsWarnings(insalmo.Parameter param) { if (this.errors.contains(param)) { this.errors.remove(param); this.errorWarningUpdateListener.actionPerformed(new java.awt.event.ActionEvent(this, java.awt.event.ActionEvent.ACTION_PERFORMED, null)); } if (this.warnings.contains...
public void onReceive(android.content.Context context, android.content.Intent intent) { progressBar.setVisibility(View.GONE); android.os.Bundle extras = getIntent().getExtras(); if (extras != null) { java.lang.String messageContent = extras.getString("xmpp_status"); if ((messageContent != nu...
public void onReceive(android.content.Context context, android.content.Intent intent) { progressBar.setVisibility(View.GONE); startActivity(new android.content.Intent(this, com.example.xmppchatsampleproject.ChatOptionActivity.class)); android.os.Bundle extras = getIntent().getExtras(); if (extras != nul...
public java.util.Set<com.ctrip.framework.apollo.core.enums.Env> emailSupportedEnvs() { java.lang.String[] configurations = getArrayProperty("email.supported.envs", ""); java.util.Set<com.ctrip.framework.apollo.core.enums.Env> result = com.google.common.collect.Sets.newHashSet(); if (org.springframework.util...
public java.util.Set<com.ctrip.framework.apollo.core.enums.Env> emailSupportedEnvs() { java.lang.String[] configurations = getArrayProperty("email.supported.envs", null); java.util.Set<com.ctrip.framework.apollo.core.enums.Env> result = com.google.common.collect.Sets.newHashSet(); if ((configurations == nul...
public static java.net.URL makeURL() { android.net.Uri uri = android.net.Uri.parse(com.example.sanket.newsapi.NetworkUtils.GITHUB_BASE_URL).buildUpon().appendQueryParameter(com.example.sanket.newsapi.NetworkUtils.PARAM_SOURCE, com.example.sanket.newsapi.NetworkUtils.source_value).appendQueryParameter(com.example.sa...
public static java.net.URL makeURL() { android.net.Uri uri = android.net.Uri.parse(com.example.sanket.newsapi.NetworkUtils.GITHUB_BASE_URL).buildUpon().appendQueryParameter(com.example.sanket.newsapi.NetworkUtils.PARAM_SOURCE, com.example.sanket.newsapi.NetworkUtils.source_value).appendQueryParameter(com.example.sa...
public void setTime(int minutes, int seconds) { this.minutes = minutes + (seconds / 60); this.seconds = seconds % 60; this.setText(java.lang.String.format("%02d:%02d", this.minutes, this.seconds)); }
public void setTime(int minutes, int seconds) { if (seconds < 0) seconds = 0; if (minutes < 0) minutes = 0; this.minutes = minutes + (seconds / 60); this.seconds = seconds % 60; this.setText(java.lang.String.format("%02d:%02d", this.minutes, this.seconds)); }
public static boolean isBF(java.lang.String word) throws java.io.IOException { if ((utils.GFBF.GFLexicon.isEmpty()) || (utils.GFBF.BFLexicon.isEmpty())) utils.GFBF.intializeLexicon(); if (utils.GFBF.BFLexicon.contains(word)) return true; return false; }
public static boolean isBF(java.lang.String word) throws java.io.IOException { if ((utils.GFBF.GFLexicon.isEmpty()) || (utils.GFBF.BFLexicon.isEmpty())) utils.GFBF.intializeLexicon(); if ((utils.GFBF.BFLexicon.contains(word)) || (!(utils.GFBF.GFLexicon.contains(word)))) return true; ...
public java.lang.String addVolunteer(@org.springframework.web.bind.annotation.ModelAttribute(value = "SpringWeb") us.wasatchsystems.ccs.models.Volunteer volunteer, org.springframework.ui.ModelMap model) { model.addAttribute("firstName", volunteer.getFirstName()); model.addAttribute("lastName", volunteer.getLast...
public java.lang.String addVolunteer(@org.springframework.web.bind.annotation.ModelAttribute(value = "SpringWeb") us.wasatchsystems.ccs.models.Volunteer volunteer, org.springframework.ui.ModelMap model) { model.addAttribute("firstName", volunteer.getFirstName()); model.addAttribute("lastName", volunteer.getLast...
private com.google.common.util.concurrent.ListenableFuture<org.atlasapi.content.IndexQueryResult> queryIndex(org.atlasapi.query.common.Query<org.atlasapi.content.Content> query) throws org.atlasapi.query.common.exceptions.QueryExecutionException { return index.query(query.getOperands(), query.getContext().getApplic...
private com.google.common.util.concurrent.ListenableFuture<org.atlasapi.content.IndexQueryResult> queryIndex(org.atlasapi.query.common.Query<org.atlasapi.content.Content> query) throws org.atlasapi.query.common.exceptions.QueryExecutionException { return index.query(query.getOperands(), query.getContext().getApplic...
public java.util.EnumSet<de.uni_freiburg.informatik.ultimate.modelcheckerutils.smt.predicates.CallReturnPyramideInstanceProvider.Instance> getInstancesGlobalNonOld(final de.uni_freiburg.informatik.ultimate.modelcheckerutils.cfg.variables.IProgramNonOldVar pv) { if (isModifiableByCallee(pv)) { return java.ut...
public java.util.EnumSet<de.uni_freiburg.informatik.ultimate.modelcheckerutils.smt.predicates.CallReturnPyramideInstanceProvider.Instance> getInstancesGlobalNonOld(final de.uni_freiburg.informatik.ultimate.modelcheckerutils.cfg.variables.IProgramNonOldVar pv) { if (isModifiableByCallee(pv)) { if (isWrittenO...
public final boolean titleChanged(final xyz.algogo.core.Algorithm algorithm, final java.lang.String title, final java.lang.String newTitle) { if ((newTitle != null) && (!(newTitle.isEmpty()))) { algoChanged = true; this.setTitle(buildTitle(newTitle, algorithm.getAuthor())); algorithmChanged(...
public final boolean titleChanged(final xyz.algogo.core.Algorithm algorithm, final java.lang.String title, final java.lang.String newTitle) { if ((newTitle != null) && (!(newTitle.isEmpty()))) { algorithmChanged(false); this.setTitle(buildTitle(newTitle, algorithm.getAuthor())); return true;...
public double rand() { double stdv = 1.0 / (java.lang.Math.sqrt((((grads.dims[1]) * (weights.dims[2])) * (weights.dims[3])))); double stdv2 = stdv * 2; return ((java.lang.Math.random()) * stdv2) - stdv; }
public double rand() { double stdv = 1.0 / (java.lang.Math.sqrt(((grads.dims[1]) * (grads.dims[2])))); double stdv2 = stdv * 2; return ((java.lang.Math.random()) * stdv2) - stdv; }
public java.lang.Boolean eventTreasureOpened(java.lang.Integer token, java.lang.Integer treasureID, java.lang.Integer userID) { assert isTokenActive(token); java.util.concurrent.Future<java.lang.Boolean> future = core.CoreModel.getInstance().addCommand(new frontend.Requests.OpenTreasureCommand(treasureID, userI...
public java.lang.Boolean eventTreasureOpened(java.lang.Integer token, java.lang.Integer treasureID, java.lang.Integer userID) { java.util.concurrent.Future<java.lang.Boolean> future = core.CoreModel.getInstance().addCommand(new frontend.Requests.OpenTreasureCommand(treasureID, userID)); try { return fut...
private void setMapPosition() { java.lang.System.out.println("setMapPosition()"); if ((googleMap) != null) { java.lang.System.out.println("googleMap != null"); if (com.syzible.loinnir.utils.LocalStorage.getBooleanPref(LocalStorage.Pref.should_share_location, getActivity())) { getWebS...
private void setMapPosition() { if ((googleMap) != null) { java.lang.System.out.println("googleMap != null"); if (com.syzible.loinnir.utils.LocalStorage.getBooleanPref(LocalStorage.Pref.should_share_location, getActivity())) { getWebServerLocation(); }else { googleMap...
private java.lang.String makeWord() { java.lang.String word = makeSyllable(); double cutoff; switch (monosylProb) { default : case ALWAYS : return word; case MOSTLY : cutoff = 0.6; break; case FREQUENT : cutoff = 0.45; ...
private java.lang.String makeWord() { java.lang.String word = makeSyllable(); double cutoff; switch (monosylProb) { default : case ALWAYS : return word; case MOSTLY : cutoff = 0.6; break; case FREQUENT : cutoff = 0.45; ...
public java.lang.Object getMessageBlocking(long timeDuration, java.util.concurrent.TimeUnit timeUnit) throws java.lang.InterruptedException { FinalProject.communication.CommTuple receivedCommTuple = receivedObjectQueue.poll(timeDuration, timeUnit); if ((replyConnection) == null) return null; re...
public java.lang.Object getMessageBlocking(long timeDuration, java.util.concurrent.TimeUnit timeUnit) throws java.lang.InterruptedException { FinalProject.communication.CommTuple receivedCommTuple = receivedObjectQueue.poll(timeDuration, timeUnit); if (receivedCommTuple == null) return null; re...
private static void set(greymerk.roguelike.worldgen.IWorldEditor editor, java.util.Random rand, greymerk.roguelike.worldgen.Coord origin) { if (!(editor.isAirBlock(origin))) return ; greymerk.roguelike.worldgen.MetaBlock vine = greymerk.roguelike.worldgen.blocks.BlockType.get(BlockType.VINE); f...
private static void set(greymerk.roguelike.worldgen.IWorldEditor editor, java.util.Random rand, greymerk.roguelike.worldgen.Coord origin) { if (!(editor.isAirBlock(origin))) return ; greymerk.roguelike.worldgen.MetaBlock vine = greymerk.roguelike.worldgen.blocks.BlockType.get(BlockType.VINE); f...
public void addUpdate(com.lagopusempire.basicupdater.Update<V, U> update) { if (update == null) { throw new java.lang.IllegalArgumentException("Update cannot be null."); } V from = update.getFrom(); if (updates.containsKey(from)) { updates.remove(from); throw new com.lagopusempir...
public void addUpdate(com.lagopusempire.basicupdater.Update<V, U> update) { if (update == null) { throw new java.lang.IllegalArgumentException("Update cannot be null."); } V from = update.getFrom(); if (updates.containsKey(from)) { throw new com.lagopusempire.basicupdater.DuplicateUpdate...
public void onResume(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); number = 0; sent = false; com.appbackr.android.tracker.demo.Tracker.postData(this.getApplicationContext(), "".getApplicationContext().getPackageName(), "", ""); setContentView(R.layout.main); final a...
public void onResume(android.os.Bundle savedInstanceState) { super.onResume(savedInstanceState); number = 0; sent = false; com.appbackr.android.tracker.demo.Tracker.postData(this.getApplicationContext(), "".getApplicationContext().getPackageName(), "", ""); setContentView(R.layout.main); final a...
public void TestGetDbColumnInfo() { com.github.wz2cool.dynamic.mybatis.ColumnInfo result = com.github.wz2cool.dynamic.mybatis.EntityCache.getInstance().getColumnInfo(com.github.wz2cool.model.Student.class, "name"); org.junit.Assert.assertEquals("name", result.getColumnName()); org.junit.Assert.assertEquals(...
public void TestGetDbColumnInfo() { com.github.wz2cool.dynamic.mybatis.ColumnInfo result = com.github.wz2cool.dynamic.mybatis.EntityCache.getInstance().getColumnInfo(com.github.wz2cool.model.Student.class, "name"); org.junit.Assert.assertEquals("name", result.getColumnName()); org.junit.Assert.assertEquals(...
public void testFeatureGroupTypeAlternative() throws de.ovgu.featureide.fm.core.io.UnsupportedModelException, java.io.FileNotFoundException { for (de.ovgu.featureide.fm.core.base.IFeature origF : origFm.getFeatures()) { if (origF.getStructure().isAlternative()) { de.ovgu.featureide.fm.core.base....
public void testFeatureGroupTypeAlternative() throws de.ovgu.featureide.fm.core.io.UnsupportedModelException, java.io.FileNotFoundException { for (de.ovgu.featureide.fm.core.base.IFeature origF : origFm.getFeatures()) { if (origF.getStructure().isAlternative()) { de.ovgu.featureide.fm.core.base....
public boolean onOptionsItemSelected(android.view.MenuItem item) { int itemClicked = item.getItemId(); if (itemClicked == (R.id.item_Setting)) { android.content.Context context = this; android.content.Intent activity_setting = new android.content.Intent(context, com.example.william.earthdayappli...
public boolean onOptionsItemSelected(android.view.MenuItem item) { int itemClicked = item.getItemId(); if (itemClicked == (R.id.item_Setting)) { android.content.Context context = this; android.content.Intent activity_setting = new android.content.Intent(context, com.example.william.earthdayappli...
public void testRotateY() { org.junit.Assert.assertEquals(Orientation16.S, Orientation16.SSE.rotate(Axis.Y, 1)); org.junit.Assert.assertEquals(Orientation16.NW, Orientation16.N.rotate(Axis.Y, (-2))); org.junit.Assert.assertEquals(Orientation16.NW, Orientation16.SSW.rotate(Axis.Y, 5)); }
public void testRotateY() { org.junit.Assert.assertEquals(Orientation16.SSW, Orientation16.SSW.rotate(Axis.Y, 0)); org.junit.Assert.assertEquals(Orientation16.S, Orientation16.SSE.rotate(Axis.Y, 1)); org.junit.Assert.assertEquals(Orientation16.NW, Orientation16.N.rotate(Axis.Y, (-2))); org.junit.Assert....
public org.springframework.messaging.support.ErrorMessage buildErrorMessage(java.lang.Throwable throwable, org.springframework.core.AttributeAccessor attributes) { java.lang.Object inputMessage = attributes.getAttribute(ErrorMessageUtils.INPUT_MESSAGE_CONTEXT_KEY); return inputMessage instanceof org.springframe...
public org.springframework.messaging.support.ErrorMessage buildErrorMessage(java.lang.Throwable throwable, org.springframework.core.AttributeAccessor attributes) { java.lang.Object inputMessage = attributes.getAttribute(ErrorMessageUtils.INPUT_MESSAGE_CONTEXT_KEY); return inputMessage instanceof org.springframe...
public void updateNFCData() { mNfcFingerprint = org.sufficientlysecure.keychain.ui.util.KeyFormattingUtils.convertFingerprintToHex(mNfcFingerprints); byte[] fp = new byte[20]; java.nio.ByteBuffer.wrap(fp).put(mNfcFingerprints, 0, 20); mNfcFingerprint = org.sufficientlysecure.keychain.ui.util.KeyFormatti...
public void updateNFCData() { if ((mNfcFingerprints) != null) { mNfcFingerprint = org.sufficientlysecure.keychain.ui.util.KeyFormattingUtils.convertFingerprintToHex(mNfcFingerprints); byte[] fp = new byte[20]; java.nio.ByteBuffer.wrap(fp).put(mNfcFingerprints, 0, 20); mNfcFingerprint...
public static java.net.URL fromProjectID(int projectID) { try { final java.net.URL url = com.therandomlabs.utils.network.NetworkUtils.getRedirectedURL(com.therandomlabs.curseapi.Curse.PROJECT_URL.replaceAll(com.therandomlabs.curseapi.Curse.PROJECT_ID, java.lang.Integer.toString(projectID)), 2); if (...
public static java.net.URL fromProjectID(int projectID) { try { final java.net.URL url = com.therandomlabs.utils.network.NetworkUtils.getRedirectedURL(com.therandomlabs.curseapi.Curse.PROJECT_URL.replaceAll(com.therandomlabs.curseapi.Curse.PROJECT_ID, java.lang.Integer.toString(projectID)), 2); if (...
public static java.lang.String getParam(final org.jooq.lambda.tuple.Tuple2<java.lang.String, java.lang.String> valueNameCouple) { return (valueNameCouple.v2().equals("") ? "" : ((it.unibo.alchemist.boundary.gui.view.SingleRunApp.Parameter.PARAMETER_NAME_START) + (valueNameCouple.v1())) + (it.unibo.alchemist.boundar...
public static java.lang.String getParam(final org.jooq.lambda.tuple.Tuple2<java.lang.String, java.lang.String> valueNameCouple) { return ((it.unibo.alchemist.boundary.gui.view.SingleRunApp.Parameter.PARAMETER_NAME_START) + (valueNameCouple.v1())) + (valueNameCouple.v2().equals("") ? "" : (it.unibo.alchemist.boundar...
private void setup(org.bukkit.entity.Player p, java.lang.String id, java.lang.String name, java.lang.String option, int step, org.bukkit.block.Block b) { setupOp = p; setup = id; setupName = name; setupOption = option; setupStep = step; if (b != null) { blockChoices.add(b); setup...
public void setup(org.bukkit.entity.Player p, java.lang.String id, java.lang.String name, java.lang.String option, int step, org.bukkit.block.Block b) { setupOp = p; setup = id; setupName = name; setupOption = option; setupStep = step; if (b != null) { blockChoices.add(b); setupS...
public int ev12(int p) { position = p; java.lang.System.out.println("The gods are in your favor as you seem to have found a hot spring with some lovely women to match..."); java.lang.System.out.println("(1) Approach and see what happens"); java.lang.System.out.println("(2) Resist the urge"); choice ...
public int ev12(int p) { position = p; java.lang.System.out.println("The gods are in your favor as you seem to have found a hot spring with some lovely women to match..."); java.lang.System.out.println("(1) Approach and see what happens"); java.lang.System.out.println("(2) Resist the urge"); choice ...
protected void checkAnswer(java.lang.String answer, boolean outOfTime) { if (answer == (members[memberNum])) { score += 1; refreshScoreText(); }else { java.lang.String wrongText; if (!outOfTime) { wrongText = "You suck! The correct answer was " + (members[memberNum]);...
protected void checkAnswer(java.lang.String answer, boolean outOfTime) { if (answer.equals(members[memberNum])) { score += 1; refreshScoreText(); }else { java.lang.String wrongText; if (!outOfTime) { wrongText = "You suck! The correct answer was " + (members[memberNum...
public void writeToParcel(android.os.Parcel dest, int parcelableFlags) { dest.writeLong(info.presentationTimeUs); dest.writeInt(info.flags); dest.writeByteArray(org.mozilla.gecko.media.Sample.byteArrayFromBuffer(bytes, info.offset, info.size)); dest.writeByteArray(crypto.iv); dest.writeByteArray(cry...
public void writeToParcel(android.os.Parcel dest, int parcelableFlags) { dest.writeLong(info.presentationTimeUs); dest.writeInt(info.flags); dest.writeByteArray(org.mozilla.gecko.media.Sample.byteArrayFromBuffer(bytes, info.offset, info.size)); if ((crypto) != null) { dest.writeByteArray(crypto....
public boolean hasPendingConnectRequest(java.lang.String ipAddress) { logConnectReqeustList(); synchronized(mReconnectRequestList) { if ((mReconnectRequestList.size()) > 0) { for (com.assistant.connection.ConnectionManager.ConnectRequest request : mReconnectRequestList) { if ...
public boolean hasPendingConnectRequest(java.lang.String ipAddress) { synchronized(mReconnectRequestList) { if ((mReconnectRequestList.size()) > 0) { logConnectReqeustList(); for (com.assistant.connection.ConnectionManager.ConnectRequest request : mReconnectRequestList) { ...
private static boolean equals(java.util.Properties p, java.lang.String optionKey, java.lang.String optionValue, boolean caseSensitive) { java.lang.String v = p.getProperty(optionKey); if (v == null) return false; if (caseSensitive) v = v.toLowerCase(); return v.equals(optionVal...
private static boolean equals(java.util.Properties p, java.lang.String optionKey, java.lang.String optionValue, boolean caseSensitive) { java.lang.String v = p.getProperty(optionKey); if (v == null) return false; if (!caseSensitive) v = v.toLowerCase(); return v.equals(optionVa...
public void testSelectAppEngineApi() { syncExec(new java.lang.Runnable() { @java.lang.Override public void run() { appengineButton.click(); java.util.List<com.google.cloud.tools.eclipse.appengine.libraries.model.Library> selectedLibraries = getSelectedLibrariesSorted(); ...
public void testSelectAppEngineApi() { appengineButton.click(); java.util.List<com.google.cloud.tools.eclipse.appengine.libraries.model.Library> selectedLibraries = getSelectedLibrariesSorted(); org.junit.Assert.assertNotNull(selectedLibraries); org.junit.Assert.assertThat(selectedLibraries.size(), org....
public void onEvent(blueprint.com.sage.events.BackEvent event) { if ((mViewPager.getCurrentItem()) == 0) { blueprint.com.sage.signUp.SignUpActivity activity = ((blueprint.com.sage.signUp.SignUpActivity) (getActivity())); activity.finish(); }else { mViewPager.setCurrentItem(((mViewPager.g...
public void onEvent(blueprint.com.sage.events.BackEvent event) { if ((mViewPager.getCurrentItem()) == 0) { getActivity().finish(); }else { mViewPager.setCurrentItem(((mViewPager.getCurrentItem()) - 1), true); } }
public org.apache.catalina.tribes.Member getMember(org.apache.catalina.tribes.Member mbr) { if (hasMembers()) { org.apache.catalina.tribes.Member result = null; for (int i = 0; (i < (this.members.length)) && (result == null); i++) { if (members[i].equals(mbr)) { result = ...
public org.apache.catalina.tribes.Member getMember(org.apache.catalina.tribes.Member mbr) { org.apache.catalina.tribes.Member[] members = this.members; if ((members.length) > 0) { org.apache.catalina.tribes.Member result = null; for (int i = 0; (i < (members.length)) && (result == null); i++) { ...
public void onItemClick(android.widget.AdapterView<?> parent, android.view.View view, int position, long id) { android.content.Intent intent; switch (position) { case 0 : intent = new android.content.Intent(this, com.coolbitx.coolwallet.ui.ExchangeRateActivity.class); startActivi...
public void onItemClick(android.widget.AdapterView<?> parent, android.view.View view, int position, long id) { android.content.Intent intent; switch (position) { case 0 : intent = new android.content.Intent(this, com.coolbitx.coolwallet.ui.ExchangeRateActivity.class); startActivi...
private java.lang.String createFullUrl(final java.lang.String url, final java.util.Map<java.lang.String, java.lang.String> params) { java.lang.String fullUrl = url; if (params != null) { for (java.util.Map.Entry<java.lang.String, java.lang.String> paramEntry : params.entrySet()) { fullUrl = ...
private java.lang.String createFullUrl(final java.lang.String url, final java.util.Map<java.lang.String, java.lang.Object> params) { java.lang.String fullUrl = url; if (params != null) { for (java.util.Map.Entry<java.lang.String, java.lang.Object> paramEntry : params.entrySet()) { fullUrl = ...
private com.strobel.decompiler.ast.Expression updateCurrent(com.strobel.decompiler.ast.Expression node) { while ((node != null) && (node != (Node.NULL))) { if (node == scope) { return null; } node = parentLookup.get(node); return node; } return null; }
private com.strobel.decompiler.ast.Expression updateCurrent(com.strobel.decompiler.ast.Expression node) { if ((node != null) && (node != (Node.NULL))) { if (node == scope) { return null; } node = parentLookup.get(node); return node; } return null; }
public static java.lang.String decode(java.lang.String secret) { if (com.joenee.web.rest.ea.EaDecrypt.isDecrypt) { return secret; } if (org.apache.commons.lang.StringUtils.isEmpty(secret)) { return null; } java.lang.String source = null; try { source = new java.lang.Strin...
public static java.lang.String decode(java.lang.String secret) { if (!(com.joenee.web.rest.ea.EaDecrypt.isDecrypt)) { return secret; } if (org.apache.commons.lang.StringUtils.isEmpty(secret)) { return null; } java.lang.String source = null; try { source = new java.lang.St...
private com.google.gcloud.testing.LocalDnsHelper.Response handleProjectGet(com.sun.net.httpserver.HttpExchange exchange) { java.lang.String path = com.google.gcloud.testing.LocalDnsHelper.BASE_CONTEXT.relativize(exchange.getRequestURI()).getPath(); java.lang.String[] tokens = path.split("/"); java.lang.Stri...
private com.google.gcloud.testing.LocalDnsHelper.Response handleProjectGet(com.sun.net.httpserver.HttpExchange exchange) { java.lang.String path = com.google.gcloud.testing.LocalDnsHelper.BASE_CONTEXT.relativize(exchange.getRequestURI()).getPath(); java.lang.String[] tokens = path.split("/"); java.lang.Stri...
public double curve(double t) { double amount = (this.amount) * 1.525; if ((t *= 2) < 1) { return 0.5 * ((t * t) * (((amount + 1) * t) - amount)); } return 0.5 * ((((t -= 2) * t) * (((amount + 1) * t) + amount)) + 2); }
public double curve(double t) { if ((t *= 2) < 1) { return 0.5 * ((t * t) * ((((amount) + 1) * t) - (amount))); } return 0.5 * ((((t -= 2) * t) * ((((amount) + 1) * t) + (amount))) + 2); }
public void testWaitUntilElementPresentNeg() { com.paypal.selion.platform.grid.Grid.driver().get(url); java.lang.String origTimeout = com.paypal.selion.configuration.Config.getConfigProperty(Config.ConfigProperty.EXECUTION_TIMEOUT); try { com.paypal.selion.configuration.Config.setConfigProperty(Conf...
public void testWaitUntilElementPresentNeg() { com.paypal.selion.platform.grid.Grid.driver().get(url); java.lang.String origTimeout = com.paypal.selion.configuration.Config.getConfigProperty(Config.ConfigProperty.EXECUTION_TIMEOUT); try { com.paypal.selion.configuration.Config.setConfigProperty(Conf...
public static com.w9jds.marketbot.classes.models.MarketHistory map(org.devfleet.crest.model.CrestMarketHistory history) { return new com.w9jds.marketbot.classes.models.MarketHistory.Builder().setAveragePrice(history.getAveragePrice()).setHighPrice(history.getHighPrice()).setLowPrice(history.getLowPrice()).setOrderC...
public static com.w9jds.marketbot.classes.models.MarketHistory map(org.devfleet.crest.model.CrestMarketHistory history) { return new com.w9jds.marketbot.classes.models.MarketHistory.Builder().setAveragePrice(history.getAveragePrice()).setHighPrice(history.getHighPrice()).setLowPrice(history.getLowPrice()).setRecord...
private static com.orientechnologies.orient.core.record.impl.ODocument getDocument(final com.orientechnologies.orient.core.db.record.OIdentifiable id, final boolean forceReload) { final com.orientechnologies.orient.core.record.impl.ODocument doc = id.getRecord(); if ((doc != null) && forceReload) { try ...
private static com.orientechnologies.orient.core.record.impl.ODocument getDocument(final com.orientechnologies.orient.core.db.record.OIdentifiable id, final boolean forceReload) { if (id == null) return null; final com.orientechnologies.orient.core.record.impl.ODocument doc = id.getRecord(); if...
public void onResume() { super.onResume(); com.arnastofnun.idordabanki.Globals g = ((com.arnastofnun.idordabanki.Globals) (this.getActivity().getApplication())); if (g == null) { android.util.Log.v("Globals", "null"); }else if ((g.getGlossaryState()) == null) { android.util.L...
public void onResume() { super.onResume(); com.arnastofnun.idordabanki.Globals g = ((com.arnastofnun.idordabanki.Globals) (this.getActivity().getApplication())); if ((g == null) || ((g.getGlossaryState()) == null)) { }else { resumeGlossaryState(g); } }
public static void onSaveComplete() { wdl.WDL.minecraft.getSaveLoader().flushCache(); wdl.WDL.saveHandler.flush(); wdl.WDL.worldClient = null; wdl.WDL.minecraft.addScheduledTask(new java.lang.Runnable() { @java.lang.Override public void run() { wdl.WDL.minecraft.renderGlobal....
public static void onSaveComplete() { wdl.WDL.minecraft.getSaveLoader().flushCache(); wdl.WDL.saveHandler.flush(); wdl.WDL.worldClient = null; wdl.WDL.worldLoadingDeferred = false; if (wdl.WDL.downloading) { wdl.WDLMessages.chatMessageTranslated(WDLMessageTypes.INFO, "wdl.messages.generalInf...
private static float[] toEffectiveTableColumnWidth(float[] tableColumnWidth) { float[] result = tableColumnWidth.clone(); for (int i = 0; i < (result.length); ++i) { result[i] += com.itextpdf.layout.minmaxwidth.MinMaxWidthUtils.getEps(); } return result; }
private static float[] toEffectiveTableColumnWidth(float[] tableColumnWidth) { float[] result = new float[tableColumnWidth.length]; for (int i = 0; i < (result.length); ++i) { result[i] = (tableColumnWidth[i]) + (com.itextpdf.layout.minmaxwidth.MinMaxWidthUtils.getEps()); } return result; }
public java.lang.String onPlaceholderRequest(org.bukkit.entity.Player pPlayer, java.lang.String pIdentifier) { if (pPlayer == null) return ""; switch (pIdentifier) { case "clantag" : return clanTagProvider.getClanTag(pPlayer.getUniqueId()); case "clantag_custom_design" :...
public java.lang.String onPlaceholderRequest(org.bukkit.entity.Player pPlayer, java.lang.String pIdentifier) { if (pPlayer == null) return ""; switch (pIdentifier) { case "clantag" : return clanTagProvider.getClanTag(pPlayer.getName()); case "clantag_custom_design" : ...
private static org.eclipse.dawnsci.analysis.api.fitting.functions.IParameter[] createParameters(int numberOfParameters) { org.eclipse.dawnsci.analysis.api.fitting.functions.IParameter[] params = new org.eclipse.dawnsci.analysis.api.fitting.functions.IParameter[numberOfParameters]; for (int i = 0; i < numberOfPa...
protected static org.eclipse.dawnsci.analysis.api.fitting.functions.IParameter[] createParameters(int numberOfParameters) { org.eclipse.dawnsci.analysis.api.fitting.functions.IParameter[] params = new org.eclipse.dawnsci.analysis.api.fitting.functions.IParameter[numberOfParameters]; for (int i = 0; i < numberOf...
public org.spongepowered.api.command.args.CommandElement[] getArguments() { return new org.spongepowered.api.command.args.CommandElement[]{ org.spongepowered.api.command.args.GenericArguments.requiringPermission(org.spongepowered.api.command.args.GenericArguments.optionalWeak(org.spongepowered.api.command.args.Gene...
public org.spongepowered.api.command.args.CommandElement[] getArguments() { return new org.spongepowered.api.command.args.CommandElement[]{ org.spongepowered.api.command.args.GenericArguments.optionalWeak(org.spongepowered.api.command.args.GenericArguments.requiringPermission(org.spongepowered.api.command.args.Gene...
public void removeIfDeadStone(goGame.Index i) { java.util.Set<goGame.Index> checkedStones = new java.util.HashSet<>(); if (isDead(i, checkedStones)) { checkedStones.add(i); if (!(checkedStones.isEmpty())) { deadStone = true; } for (goGame.Index deadStones : checkedSto...
public void removeIfDeadStone(goGame.Index i) { java.util.Set<goGame.Index> checkedStones = new java.util.HashSet<>(); if (isDead(i, checkedStones)) { checkedStones.add(i); if (!(checkedStones.isEmpty())) { deadStone = true; } for (goGame.Index deadStones : checkedSto...
public models.Account getByEmailAndPassword(models.Account account) { models.Account acc = ((models.Account) (getBaseCriteria().add(org.hibernate.criterion.Restrictions.eq("email", account.getEmail())).uniqueResult())); if ((acc != null) && (repositories.BCrypt.checkpw("password", account.getPassword()))) { ...
public models.Account getByEmailAndPassword(models.Account account) { models.Account acc = ((models.Account) (getBaseCriteria().add(org.hibernate.criterion.Restrictions.eq("email", account.getEmail())).uniqueResult())); if ((acc != null) && (repositories.BCrypt.checkpw(account.getPassword(), acc.getPassword()))...
private static void getEmailRecursive(java.io.File emailFile, java.util.List<java.io.File> emailFiles) { if ((!(emailFile.isDirectory())) && (!(emailFile.isHidden()))) { emailFiles.add(emailFile); }else { for (java.io.File subFile : emailFile.listFiles()) { com.expee.ml.ExtractEmails...
private static void getEmailRecursive(java.io.File emailFile, java.util.List<java.io.File> emailFiles) { if (!(emailFile.isDirectory())) { if (!(emailFile.isHidden())) { emailFiles.add(emailFile); } }else { for (java.io.File subFile : emailFile.listFiles()) { com....
protected void onPostExecute(java.lang.String result) { switch (status) { case userRecoverableError : activity.startActivityForResult(userException.getIntent(), BaseActivity.REQUEST_PERMISSION); break; case requestFailed : reactToError(); break; ...
protected void onPostExecute(java.lang.String result) { switch (status) { case userRecoverableError : activity.startActivityForResult(userException.getIntent(), BaseActivity.REQUEST_PERMISSION); return ; case requestFailed : reactToError(); break; ...
public static void clearNotification() { android.content.Intent intent = new android.content.Intent(com.project.nghicv.readingbook.RBApp.getInstance(), com.project.nghicv.readingbook.receiver.NotificationPublisher.class); android.app.PendingIntent sender = android.app.PendingIntent.getBroadcast(com.project.nghi...
public static void clearNotification() { android.content.Intent intent = new android.content.Intent(com.project.nghicv.readingbook.RBApp.getInstance(), com.project.nghicv.readingbook.receiver.NotificationPublisher.class); android.app.PendingIntent sender = android.app.PendingIntent.getBroadcast(com.project.nghi...
public static java.lang.String getAddPropertyDetailsData(java.lang.String address, java.lang.String propertyAge, int PropertyResidentialOrCommercial, int typeOfProperty, java.lang.String postCode) { org.json.JSONObject object = new org.json.JSONObject(); try { object.put("address", address); obj...
public static java.lang.String getAddPropertyDetailsData(java.lang.String address, java.lang.String propertyAge, int PropertyResidentialOrCommercial, java.lang.String typeOfProperty, java.lang.String postCode) { org.json.JSONObject object = new org.json.JSONObject(); try { object.put("address", address)...
private se.plilja.imcollect.WeightBalancedTree<K>.Node<K> doubleLeft(se.plilja.imcollect.WeightBalancedTree<K>.Node<K> node) { se.plilja.imcollect.WeightBalancedTree<K>.Node<K> L = node.left; se.plilja.imcollect.WeightBalancedTree<K>.Node<K> R = node.right; se.plilja.imcollect.WeightBalancedTree<K>.Node<K> ...
private se.plilja.imcollect.WeightBalancedTree<K>.Node<K> doubleLeft(se.plilja.imcollect.WeightBalancedTree<K>.Node<K> node) { se.plilja.imcollect.WeightBalancedTree<K>.Node<K> L = node.left; se.plilja.imcollect.WeightBalancedTree<K>.Node<K> R = node.right; se.plilja.imcollect.WeightBalancedTree<K>.Node<K> ...
private void setStyle(int style) { try { boolean success = mMap.setMapStyle(com.google.android.gms.maps.model.MapStyleOptions.loadRawResourceStyle(this, style)); if (!success) { android.util.Log.e(com.task.vasskob.googlemapsrealm.MapsActivity.TAG, "Style parsing failed."); } ...
private void setMapStyle(int style) { try { boolean success = mMap.setMapStyle(com.google.android.gms.maps.model.MapStyleOptions.loadRawResourceStyle(this, style)); if (!success) { android.util.Log.e(com.task.vasskob.googlemapsrealm.MapsActivity.TAG, "Style parsing failed."); } ...
public void marcarAsistencia(android.view.View v) { progressBar.setVisibility(View.VISIBLE); arqrifa.org.arquitecturarifamobile.layout.AsistenciaActivity.mCommandService = DeviceListActivity.mCommandService; arqrifa.org.arquitecturarifamobile.layout.AsistenciaActivity.mCommandService.write(java.lang.String....
public void marcarAsistencia(android.view.View v) { progressBar.setVisibility(View.VISIBLE); arqrifa.org.arquitecturarifamobile.layout.AsistenciaActivity.mCommandService = DeviceListActivity.mCommandService; arqrifa.org.arquitecturarifamobile.layout.AsistenciaActivity.mCommandService.write(java.lang.String....
public void timedActions() { if ((timer.getTick()) > 1) { timer.tick(); currentTick = timer.getTick(); java.lang.System.out.println(currentTick); } if ((currentTick) == 5) { java.lang.System.out.println("Resetting..."); relay.set(Value.kOff); barrelMotor.set(0...
public void timedActions() { if ((timer.getTick()) > 0) { timer.tick(); currentTick = timer.getTick(); java.lang.System.out.println(currentTick); } if ((currentTick) == 5) { java.lang.System.out.println("Resetting..."); relay.set(Value.kOff); barrelMotor.set(0...
private void sendBtnActionPerformed(java.awt.event.ActionEvent evt) { java.lang.String user = userName.getText(); java.lang.String pass1 = new java.lang.String(password1.getPassword()); java.lang.String pass2 = new java.lang.String(password2.getPassword()); boolean success = validateData(user, pass1, pa...
private void sendBtnActionPerformed(java.awt.event.ActionEvent evt) { java.lang.String user = userName.getText(); java.lang.String pass1 = new java.lang.String(password1.getPassword()); java.lang.String pass2 = new java.lang.String(password2.getPassword()); boolean success = validateData(user, pass1, pa...
public java.lang.String authenticate(java.lang.String input, java.util.List<pekl.gasqueue.com.gasqueue.model.Authenticator> authenticatorList) { clientType = "empty"; for (pekl.gasqueue.com.gasqueue.model.Authenticator authPassword : authenticatorList) { if (input.equals(authPassword.getBarPassword())) ...
public java.lang.String authenticate(java.lang.String input, java.util.List<pekl.gasqueue.com.gasqueue.model.Authenticator> authenticatorList) { clientType = "empty"; for (pekl.gasqueue.com.gasqueue.model.Authenticator authPassword : authenticatorList) { if (input.equals(authPassword.getBarPassword())) ...
protected void onImageResult(java.lang.String mediaType, android.net.Uri imageUri, java.lang.String imagePath) { simpleDraweeView.setImageURI(imageUri); this.mediaType = mediaType; this.imagePath = imagePath; org.gem.indo.dooit.helpers.crashlytics.CrashlyticsHelper.log(this.getClass().getSimpleName(), "...
protected void onImageResult(java.lang.String mediaType, android.net.Uri imageUri, java.lang.String imagePath) { simpleDraweeView.setImageURI(imageUri); this.mediaType = mediaType; this.imagePath = imagePath; this.imageUri = imageUri; org.gem.indo.dooit.helpers.crashlytics.CrashlyticsHelper.log(this...
public martell.com.vice.ArticleAdapter.ViewHolder onCreateViewHolder(android.view.ViewGroup parent, int viewType) { android.content.Context context = parent.getContext(); android.view.LayoutInflater inflater = android.view.LayoutInflater.from(context); config = new com.nostra13.universalimageloader.core.Ima...
public martell.com.vice.ArticleAdapter.ViewHolder onCreateViewHolder(android.view.ViewGroup parent, int viewType) { context = parent.getContext(); android.view.LayoutInflater inflater = android.view.LayoutInflater.from(context); config = new com.nostra13.universalimageloader.core.ImageLoaderConfiguration.Bu...
public void onSuccess(int i, cz.msebera.android.httpclient.Header[] headers, byte[] reponseBody) { userS.setAvatar(android.graphics.BitmapFactory.decodeByteArray(reponseBody, 0, reponseBody.length)); (is_finish[0])++; if ((is_finish[0]) == ((userSearch.size()) / 3)) { completeTextView.setAdapter(new...
public void onSuccess(int i, cz.msebera.android.httpclient.Header[] headers, byte[] reponseBody) { userS.setAvatar(android.graphics.BitmapFactory.decodeByteArray(reponseBody, 0, reponseBody.length)); if ((is_finish[0]) == ((userSearch.size()) / 3)) { completeTextView.setAdapter(new com.example.thanhvu.a...