buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
protected void upgradeLaunchConfigFields(io.cattle.platform.core.model.Service service, java.util.Map<java.lang.String, java.lang.Object> launchConfigToUpgrade, java.util.Map<java.lang.String, java.lang.Object> newLaunchConfig) { for (java.lang.String key : newLaunchConfig.keySet()) { launchConfigToUpgrade....
protected void upgradeLaunchConfigFields(io.cattle.platform.core.model.Service service, java.util.Map<java.lang.String, java.lang.Object> launchConfigToUpgrade, java.util.Map<java.lang.String, java.lang.Object> newLaunchConfig) { java.lang.Integer version = new java.lang.Integer(java.lang.Integer.valueOf(launchConf...
private void showPage(java.lang.String page) { mWebView.setWebViewClient(new com.ievolutioned.iac.fragment.SitesFragment.SiteWebClient()); android.webkit.WebSettings settings = mWebView.getSettings(); settings.setJavaScriptEnabled(true); settings.setDomStorageEnabled(true); if ((com.ievolutioned.iac...
private void showPage(java.lang.String page, java.lang.String key) { mWebView.setWebViewClient(new com.ievolutioned.iac.fragment.SitesFragment.SiteWebClient()); android.webkit.WebSettings settings = mWebView.getSettings(); settings.setJavaScriptEnabled(true); settings.setDomStorageEnabled(true); if ...
public java.lang.String execute() throws java.lang.ClassNotFoundException, java.sql.SQLException { com.cocome.DAO.LoginDAOImpl loginDAO = new com.cocome.DAO.LoginDAOImpl(); if (loginDAO.validateUser(login)) { com.cocome.DAO.UserDAOImpl userDAO = new com.cocome.DAO.UserDAOImpl(); com.cocome.DAO.U...
public java.lang.String execute() throws java.lang.ClassNotFoundException, java.sql.SQLException { com.cocome.DAO.LoginDAOImpl loginDAO = new com.cocome.DAO.LoginDAOImpl(); if (loginDAO.validateUser(login)) { com.cocome.DAO.UserDAOImpl userDAO = new com.cocome.DAO.UserDAOImpl(); user = userDAO.g...
public static java.util.List<org.osate.xtext.aadl2.errormodel.errorModel.EMV2PropertyAssociation> getHazardsProperty(org.osate.aadl2.NamedElement ci, org.osate.aadl2.NamedElement target, org.osate.xtext.aadl2.errormodel.errorModel.TypeSet ts) { java.util.List<org.osate.xtext.aadl2.errormodel.errorModel.EMV2Property...
public static java.util.List<org.osate.xtext.aadl2.errormodel.errorModel.EMV2PropertyAssociation> getHazardsProperty(org.osate.aadl2.NamedElement ci, org.osate.aadl2.NamedElement target, org.osate.xtext.aadl2.errormodel.errorModel.TypeSet ts) { java.util.List<org.osate.xtext.aadl2.errormodel.errorModel.EMV2Property...
public java.util.List<com.unalsoft.elitefle.presentation.controller.ElementXML> getTitleElems() { java.util.List<com.unalsoft.elitefle.presentation.controller.ElementXML> elems = new java.util.ArrayList<com.unalsoft.elitefle.presentation.controller.ElementXML>(); if ((text) != null) { java.util.List<com...
public java.util.List<com.unalsoft.elitefle.presentation.controller.ElementXML> getTitleElems() { java.util.List<com.unalsoft.elitefle.presentation.controller.ElementXML> elems = new java.util.ArrayList<com.unalsoft.elitefle.presentation.controller.ElementXML>(); if (((text) != null) && ((text.getContenu().getT...
public static java.lang.String getHashForBinaryContents(android.app.Activity mainActivity, boolean isDebugMode) { try { return com.microsoft.codepush.react.CodePushUtils.getStringFromInputStream(mainActivity.getAssets().open(CodePushConstants.CODE_PUSH_HASH_FILE_NAME)); } catch (java.io.IOException e) {...
public static java.lang.String getHashForBinaryContents(android.content.Context context, boolean isDebugMode) { try { return com.microsoft.codepush.react.CodePushUtils.getStringFromInputStream(context.getAssets().open(CodePushConstants.CODE_PUSH_HASH_FILE_NAME)); } catch (java.io.IOException e) { ...
protected <A> void sendInternal(io.techery.janet.ActionHolder<A> holder) throws io.techery.janet.JanetException { if (onInterceptSend(holder)) callback.onSuccess(holder); else try { actionService.sendInternal(holder); } catch (io.techery.janet.JanetException e) { ...
protected <A> void sendInternal(io.techery.janet.ActionHolder<A> holder) throws io.techery.janet.JanetException { if (onInterceptSend(holder)) callback.onSuccess(holder); else try { actionService.sendInternal(holder); } catch (io.techery.janet.JanetException e) { ...
public boolean update(T entity) { try { setMyDao(getMyDao()); getMyDao().update(entity); return true; } catch (java.lang.Exception db) { this.handleError((("The update operation in the class: " + (source.getClass().getCanonicalName())) + " was impossible for the given entity")); ...
public boolean update(T entity) { try { setMyDao(getMyDao()); if ((getMyDao().update(entity)) == 1) return true; return false; } catch (java.lang.Exception db) { this.handleError((("The update operation in the class: " + (source.getClass().getCanonicalName())...
public boolean isGameOver() { if ((s1.dead()) || (s2.dead())) return true; if (((getMissilesLeft(0)) >= 0) && ((getMissilesLeft(1)) >= 0)) { if (objects.isEmpty()) { return true; } } return (currentTick) >= (battle.SimpleBattle.nTicks); }
public boolean isGameOver() { if ((s1.dead()) || (s2.dead())) return true; if (((getMissilesLeft(0)) <= 0) && ((getMissilesLeft(1)) <= 0)) { if (objects.isEmpty()) { return true; } } return (currentTick) >= (battle.SimpleBattle.nTicks); }
public static com.avengers.model.CountryCity parse(java.lang.String countryCityString) { com.avengers.model.CountryCity countryCity = new com.avengers.model.CountryCity(); java.lang.String[] temp = countryCityString.split(":"); if ((temp.length) == 2) { countryCity.setCountry(temp[0]); count...
public static com.avengers.model.CountryCity parse(java.lang.String countryCityString) { com.avengers.model.CountryCity countryCity = new com.avengers.model.CountryCity(); java.lang.String[] temp = countryCityString.split(":"); if ((temp.length) == 2) { countryCity.setCountry(temp[0].trim()); ...
private boolean isString(java.lang.String value) { int firstIndex = value.indexOf('"'); int lastIndex = value.lastIndexOf('"'); if ((firstIndex == (-1)) || (firstIndex == lastIndex)) { return false; }else { value = value.substring(firstIndex, lastIndex); return !(value.contains("...
private boolean isString(java.lang.String value) { int firstIndex = value.indexOf('"'); int lastIndex = value.lastIndexOf('"'); if ((firstIndex == (-1)) || (firstIndex == lastIndex)) { return false; }else { value = value.substring((firstIndex + 1), lastIndex); return !(value.cont...
@org.junit.jupiter.api.BeforeEach void setUp() { java.lang.String[] rules = new java.lang.String[]{ "0/9/1/0" , "1/9/1/2" , "2/9/1/3" , "1/12/1/3" }; tgm = new TableGenerationMaker(); tgm.setRules(rules); tgm.setNeighbourhood("Moore"); tgm.setBoundary("Void"); tgm.setNewBoard(4, 4); }
@org.junit.jupiter.api.BeforeEach void setUp() { java.lang.String[] rules = new java.lang.String[]{ "0/9/1/0" , "1/9/1/2" , "2/9/1/3" , "1/12/1/3" }; tgm = new TableGenerationMaker(); tgm.setRules(rules); tgm.setNeighbourhood("Moore"); tgm.setBoundary("Void"); }
private com.thoughtworks.go.domain.materials.git.GitCommand getGit(java.io.File workingdir) { com.thoughtworks.go.util.command.InMemoryStreamConsumer output = com.thoughtworks.go.util.command.ProcessOutputStreamConsumer.inMemoryConsumer(); try { return git(output, workingdir); } catch (java.lang.Exc...
private com.thoughtworks.go.domain.materials.git.GitCommand getGit(java.io.File workingdir) { com.thoughtworks.go.util.command.InMemoryStreamConsumer output = com.thoughtworks.go.util.command.ProcessOutputStreamConsumer.inMemoryConsumer(); try { return git(output, workingdir); } catch (java.lang.Exc...
public void run() { try { java.lang.System.setProperty("awt.useSystemAAFontSettings", "on"); java.lang.System.setProperty("swing.aatext", "true"); javax.swing.UIManager.setLookAndFeel(javax.swing.UIManager.getSystemLookAndFeelClassName()); bing_wallpaper.Settings frame = new bing_wal...
public void run() { try { javax.swing.UIManager.setLookAndFeel(javax.swing.UIManager.getSystemLookAndFeelClassName()); bing_wallpaper.Settings frame = new bing_wallpaper.Settings(null, new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR), "����"); frame.setVisible(true); } catch (java.lan...
public void initialize() { logger.debug("Initializing RokuDevice handler '{}'", getThing().getUID()); updateStatus(ThingStatus.INITIALIZING); java.lang.Number refreshInterval = ((java.lang.Number) (this.getConfig().get(org.openhab.binding.roku.internal.handler.REFRESH_INTERVAL))); scheduler.scheduleWith...
public void initialize() { logger.debug("Initializing RokuDevice handler '{}'", getThing().getUID()); java.lang.Number refreshInterval = ((java.lang.Number) (this.getConfig().get(org.openhab.binding.roku.internal.handler.REFRESH_INTERVAL))); scheduler.scheduleWithFixedDelay(new java.lang.Runnable() { ...
public static java.lang.String getSortedDate(java.lang.String fromJson) { if ((fromJson == null) || (fromJson.equalsIgnoreCase("null"))) { return "0"; } java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat(com.omdb.rohksin.Mangoose.NewSearch.Utility.MovieUtils.JSON_DATE_FORMAT); java....
public static java.lang.String getSortedDate(java.lang.String fromJson) { try { if ((fromJson == null) || (fromJson.equalsIgnoreCase("null"))) { return "0"; } java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat(com.omdb.rohksin.Mangoose.NewSearch.Utility.MovieUtils.JS...
private void updateTarget(org.bukkit.entity.Player player) { if ((target) == null) return ; if (!(target.getWorld().getName().equalsIgnoreCase(player.getWorld().getName()))) return ; this.setScore(player, java.lang.Double.valueOf(player.getLocation().distance(target)).intValue()); ...
private void updateTarget(org.bukkit.entity.Player player) { if ((target) == null) return ; if (!(target.getWorld().getName().equalsIgnoreCase(player.getWorld().getName()))) return ; this.setScore(player, (-(java.lang.Double.valueOf(player.getLocation().distance(target)).intValue()...
public java.lang.String nextToken() throws java.io.IOException { while (((strtok) == null) || (!(strtok.hasMoreTokens()))) { strtok = new java.util.StringTokenizer(inr.readLine()); } return strtok.nextToken(); }
private java.lang.String nextToken() throws java.io.IOException { while (((strtok) == null) || (!(strtok.hasMoreTokens()))) { strtok = new java.util.StringTokenizer(inr.readLine()); } return strtok.nextToken(); }
private boolean handleExistingErrors() { net.ocheyedan.ply.script.PropFile errorsProperties = net.ocheyedan.ply.script.PropFiles.load(errorsPropertiesFile.getPath(), false, false); if (errorsProperties.isEmpty()) { return false; } for (net.ocheyedan.ply.script.PropFile.Prop error : errorsPropert...
private boolean handleExistingErrors() { net.ocheyedan.ply.script.PropFile errorsProperties = net.ocheyedan.ply.script.PropFiles.load(errorsPropertiesFile.getPath(), false, false); if (errorsProperties.isEmpty()) { return false; } for (net.ocheyedan.ply.script.PropFile.Prop error : errorsPropert...
public void addWebHistory(java.lang.StringBuffer buffer) { java.util.StringTokenizer line = new java.util.StringTokenizer(buffer.toString(), "|"); while (line.hasMoreTokens()) { java.lang.String token = line.nextToken(); if ((this.webHistory.indexOf(token)) != (-1)) { this.webHistory...
public void addWebHistory(java.lang.StringBuffer buffer) { java.util.StringTokenizer line = new java.util.StringTokenizer(buffer.toString(), "|"); while (line.hasMoreTokens()) { java.lang.String token = line.nextToken(); if ((this.webHistory.indexOf(token)) != (-1)) { this.webHistory...
private void initData() { if ((org.cocos2dx.lib.Cocos2dxHelper.getDeviceModel().indexOf("GT-I9100")) != (-1)) { this.mSoundPool = new android.media.SoundPool(org.cocos2dx.lib.Cocos2dxSound.MAX_SIMULTANEOUS_STREAMS_I9100, android.media.AudioManager.STREAM_MUSIC, org.cocos2dx.lib.Cocos2dxSound.SOUND_QUALITY);...
private void initData() { if (org.cocos2dx.lib.Cocos2dxHelper.getDeviceModel().contains("GT-I9100")) { this.mSoundPool = new android.media.SoundPool(org.cocos2dx.lib.Cocos2dxSound.MAX_SIMULTANEOUS_STREAMS_I9100, android.media.AudioManager.STREAM_MUSIC, org.cocos2dx.lib.Cocos2dxSound.SOUND_QUALITY); }els...
public void remove(@android.support.annotation.IdRes int id) { if ((mButtons.get(id)) != null) { return ; } android.widget.CompoundButton button = mButtons.get(id); button.setOnCheckedChangeListener(null); button.setOnTouchListener(null); mButtons.remove(id); }
public void remove(@android.support.annotation.IdRes int id) { if ((mButtons.get(id)) == null) { return ; } android.widget.CompoundButton button = mButtons.get(id); button.setOnCheckedChangeListener(null); button.setOnTouchListener(null); mButtons.remove(id); }
protected final java.lang.Class<?> findClass(java.lang.String name) throws java.lang.ClassNotFoundException { de.skuzzle.tinyplugz.DelegateClassLoader.LOG.trace("delegate.findClass('{}')", name); final java.lang.Class<?> cls = this.delegator.findClass(null, name); if (cls == null) { throw new java.l...
protected java.lang.Class<?> findClass(java.lang.String name) throws java.lang.ClassNotFoundException { final java.lang.Class<?> cls = this.delegator.findClass(null, name); if (cls == null) { throw new java.lang.ClassNotFoundException(name); } return cls; }
public void testSubmitTeamName() { setCurrentState("register-team"); com.chariot.games.quizzo.web.flow.QuizzoFlowManager quizzoFlowManager = mock(com.chariot.games.quizzo.web.flow.QuizzoFlowManager.class); org.springframework.webflow.test.MockExternalContext context = new org.springframework.webflow.test.Mo...
public void testSubmitTeamName() { setCurrentState("register-team"); org.springframework.webflow.test.MockExternalContext context = new org.springframework.webflow.test.MockExternalContext(); getFlowScope().put("teamSetupForm", createTeamSetupForm("The Jets", "When you're a Jet you're a Jet")); context....
public void addTag(java.lang.String tag, com.facebook.react.bridge.ReadableMap properties) { java.util.HashMap<java.lang.String, java.lang.String> map = new java.util.HashMap<java.lang.String, java.lang.String>(); com.facebook.react.bridge.ReadableMapKeySetIterator iterator = properties.keySetIterator(); wh...
public void addTag(java.lang.String tag, com.facebook.react.bridge.ReadableMap properties) { java.util.HashMap<java.lang.String, java.lang.String> map = new java.util.HashMap<java.lang.String, java.lang.String>(); com.facebook.react.bridge.ReadableMapKeySetIterator iterator = properties.keySetIterator(); wh...
public void askQuestion() { java.lang.System.out.println(("\n" + (QuizItemQuestion))); for (int i = 0; i < (QuizItemChoices.length); i++) { java.lang.System.out.println(("\t" + (QuizItemChoices[i]))); } }
public void askQuestion() { java.lang.System.out.println((("\n" + (QuizItemQuestion)) + "\n")); for (int i = 0; i < (QuizItemChoices.length); i++) { java.lang.System.out.println(("\t" + (QuizItemChoices[i]))); } }
protected android.view.View onCreateView(android.view.ViewGroup parent) { android.view.View view = super.onCreateView(parent); android.view.ViewGroup stub = ((android.view.ViewGroup) (view.findViewById(R.id.stub))); stub.removeAllViews(); android.view.LayoutInflater.from(getContext()).inflate(R.layout.w...
protected android.view.View onCreateView(android.view.ViewGroup parent) { android.view.View view = super.onCreateView(parent); android.view.ViewGroup stub = ((android.view.ViewGroup) (view.findViewById(R.id.stub))); stub.removeAllViews(); android.view.LayoutInflater.from(getContext()).inflate(R.layout.w...
public cn.drct.wepay.entity.TransfersResult transfers(cn.drct.wepay.entity.Transfers transfers, int connectTimeoutMs, int readTimeoutMs) throws cn.drct.wepay.exception.MsgException, cn.drct.wepay.exception.TradeException, java.lang.Exception { java.lang.String url; if (config.isUseSandbox()) { url = WXP...
public cn.drct.wepay.entity.TransfersResult transfers(cn.drct.wepay.entity.Transfers transfers, int connectTimeoutMs, int readTimeoutMs) throws cn.drct.wepay.exception.MsgException, cn.drct.wepay.exception.TradeException, java.lang.Exception { java.lang.String url; if (config.isUseSandbox()) { url = WXP...
public int createString(java.lang.String s) { byte[] utf8 = s.getBytes(flatbuffers.FlatBufferBuilder.utf8charset); addByte(((byte) (0))); startVector(1, utf8.length); java.lang.System.arraycopy(utf8, 0, bb.array(), (space -= utf8.length), utf8.length); return endVector(); }
public int createString(java.lang.String s) { byte[] utf8 = s.getBytes(flatbuffers.FlatBufferBuilder.utf8charset); addByte(((byte) (0))); startVector(1, utf8.length, 1); java.lang.System.arraycopy(utf8, 0, bb.array(), (space -= utf8.length), utf8.length); return endVector(); }
public boolean isOutOfRange(int year, int month, int day) { android.util.Log.d("KG: isOutOfRange:", ""); if ((selectableDays) != null) { return !(isSelectable(year, month, day)); } if (isBeforeMin(year, month, day)) { return true; }else if (isAfterMax(year, month, day)) { ...
public boolean isOutOfRange(int year, int month, int day) { if ((selectableDays) != null) { return !(isSelectable(year, month, day)); } if (isBeforeMin(year, month, day)) { return true; }else if (isAfterMax(year, month, day)) { return true; } return f...
private boolean getAxisPressed(int ID, org.usfirst.frc.team1528.robot.Joystick currentDriver, boolean axisPositive) { boolean pressed; if (((buffer(ID, driver, true, 0.18, (-0.18))) > 0.0) == axisPositive) { pressed = true; }else if (((buffer(ID, driver, true, 0.18, (-0.18))) < 0.0) == (!axi...
private boolean getAxisPressed(int id, org.usfirst.frc.team1528.robot.Joystick currentDriver, boolean axisPositive) { boolean pressed; if (((buffer(id, driver, true, 0.18, (-0.18))) > 0.0) == axisPositive) { pressed = true; }else if (((buffer(id, driver, true, 0.18, (-0.18))) < 0.0) == (!axi...
public void openInstantView(com.chrisplus.muselogger.views.DashButtonView view) { getFragmentManager().beginTransaction().setCustomAnimations(R.anim.fade_in_center, R.anim.fade_out_center).replace(R.id.main_container, com.chrisplus.muselogger.fragments.InstantViewFragment.newInstance(currentMuse)).addToBackStack(co...
public void openInstantView(com.chrisplus.muselogger.views.DashButtonView view) { getFragmentManager().beginTransaction().setCustomAnimations(R.anim.fade_in_center, R.anim.fade_out_center, R.anim.fade_in_center, R.anim.fade_out_center).replace(R.id.main_container, com.chrisplus.muselogger.fragments.InstantViewFragm...
protected void onLaunch() { server = apps.Login.getServer(); configureRemoteListeners(server); cloud = new view.CloudServices(server); menu.addItem("coucou"); menu.addItem("SmartPen"); if (server.getUID().equals("pact")) inputScreen.restart(activity); }
protected void onLaunch() { server = apps.Login.getServer(); configureRemoteListeners(server); if ((cloud) == null) cloud = new view.CloudServices(server); menu.addItem("coucou"); menu.addItem("SmartPen"); if (server.getUID().equals("pact")) inputScreen.restart(activity); ...
private void deleteLastGraph(int phase) { (this.phaseCounter)--; int index = (this.phases[(phase - 1)].getData().size()) - 1; this.phases[(phase - 1)].getData().remove(index); }
private void deleteLastGraph(int phase) { int index = (this.phases[(phase - 1)].getData().size()) - 1; this.phases[(phase - 1)].getData().remove(index); (this.phaseCounter)--; }
public org.apache.drill.exec.physical.impl.xsort.managed.SortImpl.SortResults startMerge() { if ((metrics.getInputRowCount()) == 0) { return new org.apache.drill.exec.physical.impl.xsort.managed.SortImpl.EmptyResults(outputBatch); } org.apache.drill.exec.physical.impl.xsort.managed.SortImpl.logger.d...
public org.apache.drill.exec.physical.impl.xsort.managed.SortImpl.SortResults startMerge() { if ((metrics.getInputRowCount()) == 0) { return new org.apache.drill.exec.physical.impl.xsort.managed.SortImpl.EmptyResults(outputBatch); } org.apache.drill.exec.physical.impl.xsort.managed.SortImpl.logger.d...
public void close() throws java.lang.Exception { while (!(db.isClosed())) { try { for (java.sql.Statement s : database.statementsToClose) { try { s.close(); } catch (java.lang.Exception ex) { } } db.close...
public void close() throws java.lang.Exception { while (!(db.isClosed())) { try { db.close(); } catch (java.lang.Exception ex) { db.close(); java.lang.System.out.println("Db failed to close"); java.lang.System.out.println(ex); } } }
public boolean loadDatabase() throws java.io.IOException { final java.io.File existingDB = databasesDirectory.resolve(databaseName).toFile(); if ((!(existingDB.exists())) || (!(existingDB.canRead()))) { return false; } if (!(com.comcast.cdn.traffic_control.traffic_router.core.loc.RegionalGeo.par...
public boolean loadDatabase() throws java.io.IOException { final java.io.File existingDB = databasesDirectory.resolve(databaseName).toFile(); if ((!(existingDB.exists())) || (!(existingDB.canRead()))) { return false; } return com.comcast.cdn.traffic_control.traffic_router.core.loc.RegionalGeo.pa...
public static void setHDAccount(net.bither.bitherj.core.HDAccount hdAccount) { net.bither.bitherj.core.AddressManager.getInstance().setHdAccountHot(hdAccount); if ((net.bither.preference.AppSharedPreference.getInstance().getAppMode()) == (BitherjSettings.AppMode.COLD)) { net.bither.util.BackupUtil.backu...
public static void setHDAccount(net.bither.bitherj.core.HDAccount hdAccount) { if ((net.bither.preference.AppSharedPreference.getInstance().getAppMode()) == (BitherjSettings.AppMode.COLD)) { net.bither.util.BackupUtil.backupColdKey(false); }else { net.bither.bitherj.core.AddressManager.getInstan...
public T remove(long objId, boolean isAvailable) { synchronized(lock) { safeCheck(); T tmp = null; if (isAvailable) tmp = net.vicp.lylab.core.pool.SeparatePool.removeFromContainer(objId); else tmp = busyContainer.remove(objId); if (tmp != null...
public T remove(long objId, boolean isAvailable) { synchronized(lock) { safeCheck(); T tmp = null; if (isAvailable) tmp = net.vicp.lylab.core.pool.SeparatePool.removeFromContainer(objId); else { tmp = busyContainer.remove(objId); keyContainer.remov...
private void initialToolBar() { org.eclipse.jface.action.IToolBarManager man = getViewSite().getActionBars().getToolBarManager(); if (!(XMLReader.DEFAULT_XMLCONFIG.equals(m_fileName))) { man.add(new org.eclipse.jface.action.Action("Save", scouter.client.util.ImageUtil.getImageDescriptor(Images.save)) { ...
private void initialToolBar() { org.eclipse.jface.action.IToolBarManager man = getViewSite().getActionBars().getToolBarManager(); man.add(new org.eclipse.jface.action.Action("SaveAs", scouter.client.util.ImageUtil.getImageDescriptor(Images.saveas)) { public void run() { saveAsConfigurations(...
public void calculateZValue(int layer, int wire) { circuitValues[layer][wire] = (((wa) ^ ((e) && (circuitValues[(--layer)][wire]))) ^ ((d) && (circuitValues[(--layer)][(++wire)]))) ^ ((e) && (d)); }
public void calculateZValue(int layer, int wire) { circuitValues[layer][wire] = (((wa) ^ ((e) & (circuitValues[(--layer)][wire]))) ^ ((d) & (circuitValues[(--layer)][(++wire)]))) ^ ((e) & (d)); }
public void pop(java.util.List<E> elements, java.util.List<java.lang.Integer> poppedIndices, java.util.List<java.lang.Integer> temp) { indexPool.pop(temp, temp.size()); for (java.lang.Integer i : temp) delegate.set(i, null); poppedIndices.addAll(poppedIndices); }
public void pop(java.util.List<E> elements, java.util.List<java.lang.Integer> poppedIndices, java.util.List<java.lang.Integer> temp) { indexPool.pop(temp, elements.size()); for (java.lang.Integer i : temp) delegate.set(i, elements.get(i)); poppedIndices.addAll(temp); }
public static void playMenuSound() { com.game.Audio.Sounds.sound = Gdx.audio.newSound(Gdx.files.internal("Game_Sound/Sound.mp3")); com.game.Audio.Sounds.sound.setLooping(0, true); com.game.Audio.Sounds.sound.setLooping(com.game.Audio.Sounds.Menu_Music, true); com.game.Audio.Sounds.sound.setVolume(com.ga...
public static void playMenuSound() { com.game.Audio.Sounds.sound = Gdx.audio.newSound(Gdx.files.internal("Game_Sound/Sound.mp3")); com.game.Audio.Sounds.sound.setLooping(0, true); com.game.Audio.Sounds.sound.setVolume(com.game.Audio.Sounds.Menu_Music, com.game.Audio.Sounds.Menu_Volume); com.game.Audio.S...
public java.util.List<java.util.HashMap<java.lang.String, java.lang.String>> parse(java.lang.String jsonData) { org.json.JSONArray jsonArray = null; org.json.JSONObject jsonObject; try { android.util.Log.d("Places", "parse"); jsonObject = new org.json.JSONObject(((java.lang.String) (jsonData...
public java.util.List<java.util.HashMap<java.lang.String, java.lang.String>> parse(java.lang.String jsonData) { org.json.JSONArray jsonArray = new org.json.JSONArray(); org.json.JSONObject jsonObject; try { android.util.Log.d("Places", "parse"); jsonObject = new org.json.JSONObject(((java.la...
protected void finalize() throws java.lang.Throwable { super.finalize(); for (int i = 0; i < (mWallpaperMap.size()); i++) { com.android.server.wallpaper.WallpaperManagerService.WallpaperData wallpaper = mWallpaperMap.valueAt(i); wallpaper.wallpaperObserver.stopWatching(); } for (int i = ...
protected void finalize() throws java.lang.Throwable { super.finalize(); for (int i = 0; i < (mWallpaperMap.size()); i++) { com.android.server.wallpaper.WallpaperManagerService.WallpaperData wallpaper = mWallpaperMap.valueAt(i); wallpaper.wallpaperObserver.stopWatching(); } }
protected void onStart() { super.onStart(); android.util.Log.w("Main", "onStart called"); registerReceiver(scanModeReceiver, new android.content.IntentFilter(android.bluetooth.BluetoothAdapter.ACTION_SCAN_MODE_CHANGED)); registerReceiver(bluetoothStateReceiver, new android.content.IntentFilter(android.b...
protected void onStart() { super.onStart(); android.util.Log.w("Main", "onStart called"); registerReceiver(scanModeReceiver, new android.content.IntentFilter(android.bluetooth.BluetoothAdapter.ACTION_SCAN_MODE_CHANGED)); registerReceiver(bluetoothStateReceiver, new android.content.IntentFilter(android.b...
public geometry.Circle2D getTransformed(geometry.Transform2D transform) { if ((transform.scale.x) != (transform.scale.y)) throw new java.lang.IllegalArgumentException((("Can't scale a " + (this.getClass().getSimpleName())) + " with different x and y factors.")); geometry.Transform2D partial = new g...
public geometry.Circle2D getTransformed(geometry.Transform2D transform) { if ((transform.scale.x) != (transform.scale.y)) throw new java.lang.IllegalArgumentException((("Can't scale a " + (this.getClass().getSimpleName())) + " with different x and y factors.")); return new geometry.Circle2D(center....
public void onLoadFinished(android.content.Loader<java.util.List<com.phendev.booksearch.Book>> loader, java.util.List<com.phendev.booksearch.Book> books) { android.view.View loadingIndicator = findViewById(R.id.loading_indicator); loadingIndicator.setVisibility(View.GONE); mEmptyStateTextView.setText(noBook...
public void onLoadFinished(android.content.Loader<java.util.List<com.phendev.booksearch.Book>> loader, java.util.List<com.phendev.booksearch.Book> books) { android.view.View loadingIndicator = findViewById(R.id.loading_indicator); loadingIndicator.setVisibility(View.GONE); mEmptyStateTextView.setText(noBook...
public boolean addElement(java.lang.String s) { int old_size = this.size(); if (this.get(0).equals(NO_ENTRIES)) { this.remove(0); } super.add(s); if ((this.size()) == old_size) { return false; } (LAST_ELEMENT)++; return true; }
public boolean addElement(java.lang.String s) { int old_size = this.size(); if (this.get(0).equals(NO_ENTRIES)) { this.remove(0); } super.add(s); if ((this.size()) == old_size) { return false; } LAST_ELEMENT = (this.size()) - 1; return true; }
private void updateControlWord(boolean force) { long now = java.lang.System.currentTimeMillis(); synchronized(m_controlWordMutex) { if (((now - (m_lastControlWordUpdate)) > 50) || force) { edu.wpi.first.wpilibj.hal.HAL.getControlWord(m_controlWordCache); now = m_lastControlWordUp...
private void updateControlWord(boolean force) { long now = java.lang.System.currentTimeMillis(); synchronized(m_controlWordMutex) { if (((now - (m_lastControlWordUpdate)) > 50) || force) { edu.wpi.first.wpilibj.hal.HAL.getControlWord(m_controlWordCache); m_lastControlWordUpdate =...
public void update(int delta) { ctTransform.rotateEuler(0.0F, (((float) (java.lang.Math.PI)) / 1000.0F), 0.0F); game.Scene.update(delta); renderer.beginDrawing(); game.Scene.render(delta); renderer.endDrawing(); }
public void update(int delta) { ctTransform.rotateEuler((((float) (java.lang.Math.PI)) / 1000.0F), 0.0F, 0.0F); game.Scene.update(delta); renderer.beginDrawing(); game.Scene.render(delta); renderer.endDrawing(); }
private void divide(double d, javax.swing.JTextField[] fields, java.util.Stack<java.lang.Double> stack) { if (emptyStack(stack)) return ; fields[0].setText(java.lang.Double.toString(((stack.pop()) / d))); resetStack(fields, stack); }
private void divide(double d, javax.swing.JTextField[] fields, java.util.Stack<java.lang.Double> stack) { if (stack.isEmpty()) return ; fields[0].setText(java.lang.Double.toString(((stack.pop()) / d))); resetStack(fields, stack); }
private void readGenes(java.lang.String geneFile) throws java.io.IOException { geneList = japsa.seq.SequenceReader.readAll(geneFile, japsa.seq.Alphabet.DNA()); geneMap = new java.util.HashMap<java.lang.String, japsa.seq.Sequence>(); for (japsa.seq.Sequence gene : geneList) { geneMap.put(gene.getName...
public void readGenes(java.lang.String geneFile) throws java.io.IOException { geneList = japsa.seq.SequenceReader.readAll(geneFile, japsa.seq.Alphabet.DNA()); geneMap = new java.util.HashMap<java.lang.String, japsa.seq.Sequence>(); for (japsa.seq.Sequence gene : geneList) { geneMap.put(gene.getName(...
public void switchToSnap(long number) { if (((this.currentSnap) == ((this.getMaxSnapNumber()) - 1)) && (loop)) number = 1; numberQueue.offer(number); boolean res = graph.loadGraph(number); if (!res) this.viewer.disableAutoLayout(); setSnapNumber(number); notifyJump(numb...
public void switchToSnap(long number) { if (((this.currentSnap) == ((this.getMaxSnapNumber()) - 1)) && (loop)) number = 1; numberQueue.offer(number); boolean res = graph.loadGraph(number); if (!res) this.viewer.disableAutoLayout(); this.currentSnap = number; setSnapNumb...
public static boolean isBetween(java.time.LocalTime lt, java.time.LocalTime startTime, java.time.LocalTime endTime) { if (startTime == null) startTime = java.time.LocalTime.of(0, 0); else if (endTime == null) endTime = java.time.LocalTime.of(23, 0); return ((lt.comp...
public static boolean isBetween(java.time.LocalTime lt, java.time.LocalTime startTime, java.time.LocalTime endTime) { if (startTime == null) startTime = java.time.LocalTime.of(0, 0); if (endTime == null) endTime = java.time.LocalTime.of(23, 0); return ((lt.compareTo(startTime)) >= ...
private void run() throws java.lang.InterruptedException { boolean dataFound = false; while (!(closed)) { shouldFetch = true; while (shouldFetch) { shouldFetch = false; dataFound = fetchData(); } if (tailingConsumers.isEmpty()) { newest = null...
private void run() throws java.lang.InterruptedException { boolean dataFound = false; while (!(closed)) { shouldFetch = true; while (shouldFetch) { shouldFetch = false; dataFound = fetchData(); } if (!dataFound) { waitForData(); } ...
private void jButtonDeleteAttractionActionPerformed(java.awt.event.ActionEvent evt) { mdAttraction = ((javax.swing.table.DefaultTableModel) (jTableAttractions.getModel())); if ((jTableAttractions.getSelectedRowCount()) == 0) { javax.swing.JOptionPane.showMessageDialog(this, "please select the Attraction...
private void jButtonDeleteAttractionActionPerformed(java.awt.event.ActionEvent evt) { mdAttraction = ((javax.swing.table.DefaultTableModel) (jTableAttractions.getModel())); if ((jTableAttractions.getSelectedRowCount()) == 0) { javax.swing.JOptionPane.showMessageDialog(this, "please select the Attraction...
public boolean matches(javax.servlet.http.HttpServletRequest arg0) { if ((arg0.getRequestURI().indexOf("/rest/")) > (-1)) { return false; } if ((arg0.getRequestURI().indexOf("/signin/mitreid")) > (-1)) { return false; } if ((arg0.getMethod()) == "GET") { return false; } ...
public boolean matches(javax.servlet.http.HttpServletRequest arg0) { if ((arg0.getRequestURI().indexOf("/rest/")) > (-1)) { return false; } if ((arg0.getRequestURI().indexOf("/signin/mitreid")) > (-1)) { return false; } if (arg0.getMethod().equals("GET")) { return false; ...
public void multipleObjectInstanceNameReservationFailed(final java.util.Set<java.lang.String> objectNames) throws hla.rti1516e.exceptions.FederateInternalError { this.logger.info(("multipleObjectInstanceNameReservationFailed objectNames=" + (objectNames.toString()))); try { this.myFederateAmbassador.mul...
public void multipleObjectInstanceNameReservationFailed(final java.util.Set<java.lang.String> objectNames) throws hla.rti1516e.exceptions.FederateInternalError { this.logger.info(("multipleObjectInstanceNameReservationFailed objectNames=" + (objectNames.toString()))); try { this.myFederateAmbassador.mul...
public void parseErrorTags(org.springframework.cloud.sleuth.Span span, java.lang.Throwable error) { if (span.isExportable()) { java.lang.String errorMsg = org.springframework.cloud.sleuth.util.ExceptionUtils.getExceptionMessage(error); if (org.springframework.cloud.sleuth.ExceptionMessageErrorParser...
public void parseErrorTags(org.springframework.cloud.sleuth.Span span, java.lang.Throwable error) { if ((span != null) && (span.isExportable())) { java.lang.String errorMsg = org.springframework.cloud.sleuth.util.ExceptionUtils.getExceptionMessage(error); if (org.springframework.cloud.sleuth.Excepti...
public static boolean deleteFile(java.lang.String filename) { java.lang.System.out.println(("Deleting " + filename)); try { java.io.File outtree = new java.io.File(filename); if (outtree.exists()) outtree.delete(); } catch (java.lang.Exception e) { java.lang.Syst...
public static boolean deleteFile(java.lang.String filename) { try { java.io.File outtree = new java.io.File(filename); if (outtree.exists()) outtree.delete(); } catch (java.lang.Exception e) { java.lang.System.out.println(("Can't Delete " + filename)); return...
public void onListUpdated(java.util.List<org.kaaproject.kaa.common.endpoint.gen.Topic> topics) { android.util.Log.i(NotificationConstants.TAG, "Topic list updated with topics: "); for (org.kaaproject.kaa.common.endpoint.gen.Topic topic : topics) { android.util.Log.i(NotificationConstants.TAG, topic.toSt...
public void onListUpdated(java.util.List<org.kaaproject.kaa.common.endpoint.gen.Topic> topics) { android.util.Log.i(NotificationConstants.TAG, "Topic list updated with topics: "); for (org.kaaproject.kaa.common.endpoint.gen.Topic topic : topics) { android.util.Log.i(NotificationConstants.TAG, topic.toSt...
public boolean equals(java.lang.Object t) { if ((t == null) | (!(t instanceof cs2103.v15_1j.jimjim.model.DeadlineTask))) { return false; } cs2103.v15_1j.jimjim.model.DeadlineTask other = ((cs2103.v15_1j.jimjim.model.DeadlineTask) (t)); return (this.getName().equals(other.getName())) && (this.get...
public boolean equals(java.lang.Object t) { if ((t == null) || (!(t instanceof cs2103.v15_1j.jimjim.model.DeadlineTask))) { return false; } cs2103.v15_1j.jimjim.model.DeadlineTask other = ((cs2103.v15_1j.jimjim.model.DeadlineTask) (t)); return (this.getName().equals(other.getName())) && (this.ge...
private static uk.me.mjt.ch.DirectedEdge makeEdgeAndAddToNodes(long edgeId, uk.me.mjt.ch.Node from, uk.me.mjt.ch.Node to, int driveTimeMs, uk.me.mjt.ch.AccessOnly accessOnly) { uk.me.mjt.ch.Preconditions.checkNoneNull(from, to); uk.me.mjt.ch.DirectedEdge de = new uk.me.mjt.ch.DirectedEdge(edgeId, from, to, 1, a...
private static uk.me.mjt.ch.DirectedEdge makeEdgeAndAddToNodes(long edgeId, uk.me.mjt.ch.Node from, uk.me.mjt.ch.Node to, int driveTimeMs, uk.me.mjt.ch.AccessOnly accessOnly) { uk.me.mjt.ch.Preconditions.checkNoneNull(from, to); uk.me.mjt.ch.DirectedEdge de = new uk.me.mjt.ch.DirectedEdge(edgeId, from, to, driv...
public void acceptChecksAcceptsWithRootTagProjectIfExtensionIsXMLAndNonStandardName() throws java.lang.Exception { com.buschmais.jqassistant.plugin.maven3.impl.scanner.MavenPomFileScannerPlugin plugin = new com.buschmais.jqassistant.plugin.maven3.impl.scanner.MavenPomFileScannerPlugin(); java.io.InputStream inp...
public void acceptChecksAcceptsWithRootTagProjectIfExtensionIsXMLAndNonStandardName() throws java.lang.Exception { com.buschmais.jqassistant.plugin.maven3.impl.scanner.MavenPomFileScannerPlugin plugin = new com.buschmais.jqassistant.plugin.maven3.impl.scanner.MavenPomFileScannerPlugin(); java.io.InputStream inp...
private java.lang.String addExtraZerosToDate(int year, int month, int day) { java.lang.String converteMonth = ""; java.lang.String converteDay = ""; if (month < 10) { converteMonth += "0"; } if (day < 10) { converteDay += "0"; } converteMonth += java.lang.Integer.toString(mon...
private java.lang.String addExtraZerosToDate(int year, int month, int day) { java.lang.String converteMonth = ""; java.lang.String converteDay = ""; if (month < 10) { converteMonth += "0"; } if (day < 10) { converteDay += "0"; } converteMonth += java.lang.Integer.toString((mo...
public void showConfiguration() { menuClosed(); ch.bfh.bti7081.s2016.white.sne.ui.model.ConfigurationProvider prov = new ch.bfh.bti7081.s2016.white.sne.ui.model.ConfigurationProvider(new ch.bfh.bti7081.s2016.white.sne.data.User(ch.bfh.bti7081.s2016.white.sne.ui.presenter.SneMenuPresenter.USER)); ch.bfh.bti7...
public void showConfiguration() { menuClosed(); ch.bfh.bti7081.s2016.white.sne.ui.model.ConfigurationProvider prov = new ch.bfh.bti7081.s2016.white.sne.ui.model.ConfigurationProvider(new ch.bfh.bti7081.s2016.white.sne.data.User(ch.bfh.bti7081.s2016.white.sne.ui.presenter.SneMenuPresenter.USER)); ch.bfh.bti7...
public void passCheckedDay(java.util.Date date, int position, boolean isChecked) { fr.wildcodeschool.haa.waxym.model.DayStuffModel passedDay = new fr.wildcodeschool.haa.waxym.model.DayStuffModel(); if (isChecked) { passedDay.setDate(date); if ((position % 2) == 0) { passedDay.setMorn...
public void passCheckedDay(java.util.Date date, int position, boolean isChecked) { fr.wildcodeschool.haa.waxym.model.DayStuffModel passedDay = new fr.wildcodeschool.haa.waxym.model.DayStuffModel(); if (isChecked) { passedDay.setDate(date); passedDay.setMorning(1); passedDay.setAfternoon(...
public void OnEntityDamageByEntity(org.bukkit.event.entity.EntityDamageByEntityEvent e) { if ((e.getDamager()) instanceof org.bukkit.entity.Player) { org.bukkit.entity.Player p = ((org.bukkit.entity.Player) (e.getDamager())); US.bittiez.TotalTracker.QueObject de = new US.bittiez.TotalTracker.QueObje...
public void OnEntityDamageByEntity(org.bukkit.event.entity.EntityDamageByEntityEvent e) { if ((e.getDamager()) instanceof org.bukkit.entity.Player) { org.bukkit.entity.Player p = ((org.bukkit.entity.Player) (e.getDamager())); US.bittiez.TotalTracker.QueObject de = new US.bittiez.TotalTracker.QueObje...
private ru.timurnav.resume.model.sections.MultiTextSection readMultiTextSection(ru.timurnav.resume.storage.file.DataStreamFileStorage.CustomDataInputStream dis) throws java.io.IOException { java.util.List<java.lang.String> lines = new java.util.ArrayList<>(); for (int i = 0; i < (dis.readInt()); i++) { ...
private ru.timurnav.resume.model.sections.MultiTextSection readMultiTextSection(ru.timurnav.resume.storage.file.DataStreamFileStorage.CustomDataInputStream dis) throws java.io.IOException { java.util.List<java.lang.String> lines = new java.util.ArrayList<>(); int counter = dis.readInt(); for (int i = 0; i <...
public void onRenderStateChanged(com.jaspersoft.android.sdk.widget.report.renderer.RenderState renderState) { resourceWebView.setVisibility((renderState == (com.jaspersoft.android.sdk.widget.report.renderer.RenderState.RENDERED) ? android.view.View.VISIBLE : android.view.View.GONE)); if ((renderState == (com.ja...
public void onRenderStateChanged(com.jaspersoft.android.sdk.widget.report.renderer.RenderState renderState) { resourceWebView.setVisibility((renderState == (com.jaspersoft.android.sdk.widget.report.renderer.RenderState.RENDERED) ? android.view.View.VISIBLE : android.view.View.GONE)); if ((renderState == (com.ja...
private void updateTrackTime() { if ((mediaPlayerServiceBinder) == null) return ; int seconds = mediaPlayerServiceBinder.getCurrentPosition(); reloadUIElements(); positionTextView.setText(millisecondsToMinutesAndSeconds(seconds)); float percentCurrentPosition = (((float) (seconds)) / (t...
private void updateTrackTime() { if ((mediaPlayerServiceBinder) == null) return ; int seconds = mediaPlayerServiceBinder.getCurrentPosition(); positionTextView.setText(millisecondsToMinutesAndSeconds(seconds)); float percentCurrentPosition = (((float) (seconds)) / (trackDuration)) * 100; ...
public static void main(java.lang.String[] args) { int sum = 0; int[] array = new int[5]; for (int i = 1; i <= 5; i++) { array[(i - 1)] = i; sum += i; } java.lang.System.out.println(sum); }
public static void main(java.lang.String[] args) { int sum = 0; int num = java.lang.Integer.parseInt(args[0]); int[] array = new int[num]; for (int i = 1; i <= num; i++) { array[(i - 1)] = i; sum += i; } java.lang.System.out.println(sum); }
public void removeOrphanSteps_should_not_remove_root_step() { repository.clear(); org.junit.Assert.assertNotNull(repository.get(rootStep.getId(), org.talend.dataprep.api.preparation.Step.class)); cleaner.removeOrphanSteps(); org.junit.Assert.assertNotNull(repository.get(rootStep.getId(), org.talend.data...
public void removeOrphanSteps_should_not_remove_root_step() { repository.clear(); assertNotNull(repository.get(rootStep.getId(), org.talend.dataprep.api.preparation.Step.class)); cleaner.removeOrphanSteps(); assertNotNull(repository.get(rootStep.getId(), org.talend.dataprep.api.preparation.Step.class));...
public static void readInRegisteredDevices() throws java.io.FileNotFoundException, java.io.IOException, java.lang.ClassNotFoundException { java.io.File f = new java.io.File(((wetsch.jbcsserver.tools.Tools.getApplicationDir()) + "/Registered_devices.jdb")); if (!(f.exists())) { wetsch.jbcsserver.server.r...
public static void readInRegisteredDevices() throws java.io.FileNotFoundException, java.io.IOException, java.lang.ClassNotFoundException { java.io.File f = new java.io.File(((wetsch.jbcsserver.tools.Tools.getApplicationDir()) + "/Registered_devices.jdb")); if (!(f.exists())) { return ; } java.io...
public java.util.List<java.net.URI> getBackendURIs() { java.util.List<java.net.URI> result = new java.util.ArrayList<>(getBackendURIs().size()); for (org.apache.tamaya.mutableconfig.spi.MutableConfigurationBackendSpi backend : targets) { result.add(backend.getBackendURI()); } return java.util.Co...
public java.util.List<java.net.URI> getBackendURIs() { java.util.List<java.net.URI> result = new java.util.ArrayList(targets.size()); for (org.apache.tamaya.mutableconfig.spi.MutableConfigurationBackendSpi backend : targets) { result.add(backend.getBackendURI()); } return java.util.Collections.u...
public void onSuccess(com.datastax.example.ResultSet result) { context.stop(); readSuccess.mark(); com.datastax.example.Row row = result.one(); if ((result.getAvailableWithoutFetching()) > 0) { readFull.mark(); }else { readEmpty.mark(); } }
public void onSuccess(com.datastax.example.ResultSet result) { context.stop(); readSuccess.mark(); if ((result.getAvailableWithoutFetching()) > 0) { readFull.mark(); }else { readEmpty.mark(); } }
private jenkins.widgets.HistoryPageFilter<hudson.model.ModelObject> newPage(int maxEntries, java.lang.Long newerThan, java.lang.Long olderThan) { jenkins.widgets.HistoryPageFilter<hudson.model.ModelObject> pageFilter = new jenkins.widgets.HistoryPageFilter<hudson.model.ModelObject>(maxEntries); if (newerThan !=...
private jenkins.widgets.HistoryPageFilter<hudson.model.ModelObject> newPage(int maxEntries, java.lang.Long newerThan, java.lang.Long olderThan) { jenkins.widgets.HistoryPageFilter<hudson.model.ModelObject> pageFilter = new jenkins.widgets.HistoryPageFilter(maxEntries); if (newerThan != null) { pageFilte...
private void startTrackEdit(android.bluetooth.BluetoothGatt gatt) { if ((mConnectedBluetoothGatt) != null) { com.antilost.app.activity.ScanTrackActivity.sBluetoothConnected = gatt; android.content.Intent i = new android.content.Intent(this, com.antilost.app.activity.TrackREditActivity.class); ...
private void startTrackEdit() { if ((mConnectedBluetoothGatt) != null) { com.antilost.app.activity.ScanTrackActivity.sBluetoothConnected = mConnectedBluetoothGatt; android.content.Intent i = new android.content.Intent(this, com.antilost.app.activity.TrackREditActivity.class); i.putExtra(Trac...
public void updateFloorButtonsFAB(final int floorId) { if (((preSelectedFloorButton) != null) && (floorId > (-1))) { preSelectedFloorButton.setEnabled(true); } preSelectedFloorButton = floorButtonsMap.get(floorId); if ((preSelectedFloorButton) != null) { preSelectedFloorButton.setEnabled...
public void updateFloorButtonsFAB(final int floorId) { if ((preSelectedFloorButton) != null) { preSelectedFloorButton.setEnabled(true); } preSelectedFloorButton = floorButtonsMap.get(floorId); if ((preSelectedFloorButton) != null) { preSelectedFloorButton.setEnabled(false); } }
public void setupVault() { org.bukkit.plugin.RegisteredServiceProvider<net.milkbowl.vault.permission.Permission> permProvider = getServer().getServicesManager().getRegistration(net.milkbowl.vault.permission.Permission.class); if (permProvider != null) { perm = permProvider.getProvider(); } org.b...
private void setupVault() { org.bukkit.plugin.RegisteredServiceProvider<net.milkbowl.vault.permission.Permission> permProvider = getServer().getServicesManager().getRegistration(net.milkbowl.vault.permission.Permission.class); if (permProvider != null) { perm = permProvider.getProvider(); } org....
private static ua.dirproy.profelumno.common.models.Review generateReview(int i, java.util.Date date) { int stars = new java.util.Random().nextInt(10); ua.dirproy.profelumno.common.models.Review review = new ua.dirproy.profelumno.common.models.Review(); review.setComment((i == 1 ? ua.dirproy.profelumno.Globa...
private static ua.dirproy.profelumno.common.models.Review generateReview(int i, java.util.Date date) { int stars = new java.util.Random().nextInt(10); ua.dirproy.profelumno.common.models.Review review = new ua.dirproy.profelumno.common.models.Review(); review.setComment((i == 1 ? ua.dirproy.profelumno.Globa...
public int compareTo(levelGenerators.jaspGeneticLevelGenerator.Individual that) { if (((this.fitness()) - (that.fitness())) < (EPSILON)) { return 0; }else if ((this.fitness()) > (that.fitness())) { return 1; }else { return -1; } }
public int compareTo(levelGenerators.jaspGeneticLevelGenerator.Individual that) { if ((java.lang.Math.abs(((this.fitness()) - (that.fitness())))) < (EPSILON)) { return 0; }else if ((this.fitness()) > (that.fitness())) { return 1; }else { return -1; } ...
private int getBuildNumberFromUpStreamProject(java.lang.String projectName, java.util.Map<hudson.model.AbstractProject, java.lang.Integer> map, hudson.model.BuildListener listener) { for (java.util.Map.Entry<hudson.model.AbstractProject, java.lang.Integer> project : map.entrySet()) { if (project.getKey().eq...
private int getBuildNumberFromUpStreamProject(java.lang.String projectName, java.util.Map<hudson.model.AbstractProject, java.lang.Integer> map, hudson.model.BuildListener listener) { for (java.util.Map.Entry<hudson.model.AbstractProject, java.lang.Integer> project : map.entrySet()) { if (project.getKey().ge...
public android.view.View onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState) { android.view.View view = null; view = inflater.inflate(R.layout.fragment_questions, container, false); butterknife.ButterKnife.bind(this, view); lvQuestio...
public android.view.View onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState) { android.view.View view = null; view = inflater.inflate(R.layout.fragment_questions, container, false); butterknife.ButterKnife.bind(this, view); lvQuestio...
public void updateAllInstances() { instanceProvider.getAvailableInstances(); profileManager.haveProfiles(accumulateProfiles()); java.util.Collection<de.tu_bs.wire.simwatch.api.models.Instance> sims; synchronized(simulations) { sims = simulations.values(); } new de.tu_bs.wire.simwatch.net...
public void updateAllInstances() { instanceProvider.getAvailableInstances(); profileManager.haveProfiles(accumulateProfiles()); java.util.Collection<de.tu_bs.wire.simwatch.api.models.Instance> sims; synchronized(simulations) { sims = new java.util.ArrayList(simulations.values()); } new d...
public void setRequestCity(java.lang.String city) { java.lang.String[] cityInfos = city.split("#"); if (android.text.TextUtils.equals(requestCity, cityInfos[2])) { return ; } requestCity = cityInfos[2]; cityId = cityInfos[3]; if (android.text.TextUtils.equals("N/A", currentWeatherCity)) ...
public void setRequestCity(java.lang.String city) { java.lang.String[] cityInfos = city.split("#"); if (android.text.TextUtils.equals(requestCity, cityInfos[2])) { return ; } requestCity = cityInfos[2]; cityId = cityInfos[3]; if (android.text.TextUtils.equals("N/A", currentWeatherCity)) ...
public void setVisible(boolean visible) { super.setVisible(visible); if (visible && ((getSelectedTabItem()) == (registryTab))) { if ((cordovaPluginInfos) == null) { org.eclipse.swt.widgets.Display.getCurrent().asyncExec(new java.lang.Runnable() { @java.lang.Override ...
public void setVisible(boolean visible) { super.setVisible(visible); if (visible && ((getSelectedTabItem()) == (registryTab))) { org.eclipse.swt.widgets.Display.getCurrent().asyncExec(new java.lang.Runnable() { @java.lang.Override public void run() { if ((cordovaP...
public static java.lang.CharSequence trimSpanned(final android.text.Spanned source) { final int length = source.length(); int i = length; while (((--i) >= 0) && (java.lang.Character.isWhitespace(source.charAt(i)))) { } if (i < length) { return source.subSequence(0, (i + 1)); } retur...
public static java.lang.CharSequence trimSpanned(final android.text.Spanned source) { final int length = source.length(); int i = length; while (((--i) >= 0) && (java.lang.Character.isWhitespace(source.charAt(i)))) { } if (i < (length - 1)) { return source.subSequence(0, (i + 1)); } ...
private void showHomeView() { android.support.v4.app.FragmentManager fragmentManager = getSupportFragmentManager(); if ((fragmentManager.getBackStackEntryCount()) > 1) { fragmentManager.popBackStack("home", 0); }else { android.support.v4.app.FragmentManager manager = getSupportFragmentManage...
private void showHomeView() { android.support.v4.app.FragmentManager fragmentManager = getSupportFragmentManager(); if ((fragmentManager.getBackStackEntryCount()) > 1) { fragmentManager.popBackStack("home", 0); }else { android.support.v4.app.FragmentManager manager = getSupportFragmentManage...
public void whenExist(com.a.eye.skywalking.api.plugin.interceptor.EnhancedClassInstanceContext context, java.lang.Runnable runnable) { if (!(context.isContain(invokeCounterKey))) { throw new com.a.eye.skywalking.api.plugin.interceptor.InterceptorException("key=invokeCounterKey not found is context. unexpect...
public void whenExist(com.a.eye.skywalking.api.plugin.interceptor.EnhancedClassInstanceContext context, java.lang.Runnable runnable) { if (!(context.isContain(invokeCounterKey))) { throw new com.a.eye.skywalking.api.plugin.interceptor.InterceptorException("key=invokeCounterKey not found is context. unexpect...
public void handlerRemoved(io.netty.channel.ChannelHandlerContext ctx) throws java.lang.Exception { SortServer.LOG.info("[END] The Client has been disconnected with Address: {}", ctx.channel().remoteAddress()); com.main.ServerMain.ACTIVE_INSTANCES -= 1; com.main.ServerMain.N_INSTANCES -= 1; com.net.Sort...
public void handlerRemoved(io.netty.channel.ChannelHandlerContext ctx) throws java.lang.Exception { SortServer.LOG.info("[END] The Client has been disconnected with Address: {}", ctx.channel().remoteAddress()); com.main.ServerMain.ACTIVE_INSTANCES -= 1; com.net.SortServerHandler.channels.remove(ctx.channel(...
private static final void INIT_PAGE_CONFIG(final org.json.JSONObject pageConfig) { com.zjh.tears.config.Config.DEFAULT_INDEX = pageConfig.getString("defaultIndex"); for (java.lang.Object obj : pageConfig.getJSONArray("errorPages")) { org.json.JSONObject errorPage = ((org.json.JSONObject) (obj)); ...
private static final void INIT_PAGE_CONFIG(final org.json.JSONObject pageConfig) { for (java.lang.Object obj : pageConfig.getJSONArray("defaultIndex")) { java.lang.String index = ((java.lang.String) (obj)); com.zjh.tears.config.Config.DEFAULT_INDEX.add(index); } for (java.lang.Object obj : p...
public static void test_028() { framework.common.VideoPlayerCommon.comeToVideoScreen(); excute(testcase.Object_ResourceId, testcase.Operation_WaitForExists, "android:id/action_bar_title", "5000"); framework.common.VideoPlayerCommon.shareType("信息"); excute(testcase.Object_Text, testcase.Operation_ClickWa...
public static void test_028() { framework.common.VideoPlayerCommon.comeToVideoScreen(); excute(testcase.Object_ResourceId, testcase.Operation_WaitForExists, "android:id/action_bar_title", "5000"); framework.common.VideoPlayerCommon.shareType("信息"); excute(testcase.Object_Text, testcase.Operation_ClickWa...
public org.fhaes.enums.SampleDepthFilterType getSampleDepthFilterTypePref(org.fhaes.preferences.FHAESPreferences.PrefKey key, org.fhaes.enums.SampleDepthFilterType defaultValue) { java.lang.String value = ""; if (defaultValue == null) { value = org.fhaes.preferences.FHAESPreferences.prefs.get(key.getVal...
public org.fhaes.enums.SampleDepthFilterType getSampleDepthFilterTypePref(org.fhaes.preferences.FHAESPreferences.PrefKey key, org.fhaes.enums.SampleDepthFilterType defaultValue) { java.lang.String value = ""; if (defaultValue == null) { value = org.fhaes.preferences.FHAESPreferences.prefs.get(key.getVal...
protected ru.yandex.yamblz.callinformer.model.SearchResult doInBackground(java.lang.String... strings) { java.util.List<ru.yandex.yamblz.callinformer.model.SearchResult> results = new com.google.gson.GsonBuilder().registerTypeAdapter(new com.google.gson.reflect.TypeToken<java.util.ArrayList<ru.yandex.yamblz.callinf...
protected ru.yandex.yamblz.callinformer.model.SearchResult doInBackground(java.lang.String... strings) { java.util.List<ru.yandex.yamblz.callinformer.model.SearchResult> results = new com.google.gson.GsonBuilder().registerTypeAdapter(new com.google.gson.reflect.TypeToken<java.util.ArrayList<ru.yandex.yamblz.callinf...
private void verifyPath(java.lang.String startValue, java.lang.String endValue, java.lang.String[] wordSet, java.util.List<java.lang.String> expectedPath) { mDictionary.setWords(wordSet); mEvaluator.setTarget(endValue); org.marshallramsey.shortestpath.PathFinder<java.lang.String> pathFinder = new org.marsha...
private void verifyPath(java.lang.String startValue, java.lang.String endValue, java.lang.String[] wordSet, java.util.List<java.lang.String> expectedPath) { if (wordSet != null) { mDictionary.setWords(wordSet); } mEvaluator.setTarget(endValue); org.marshallramsey.shortestpath.PathFinder<java.lan...
public static void assertAllRegistered(@android.support.annotation.NonNull me.drakeet.multitype.MultiTypeAdapter adapter, @android.support.annotation.NonNull java.util.List<?> items) throws java.lang.IllegalAccessError, java.lang.IllegalArgumentException, me.drakeet.multitype.BinderNotFoundException { if ((items.si...
public static void assertAllRegistered(@android.support.annotation.NonNull me.drakeet.multitype.MultiTypeAdapter adapter, @android.support.annotation.NonNull java.util.List<?> items) throws java.lang.IllegalAccessError, java.lang.IllegalArgumentException, me.drakeet.multitype.BinderNotFoundException { if (items.isE...
public synchronized void cleanRoomStateMap() { for (java.util.Map.Entry<java.lang.String, org.cubyte.edumon.client.RoomState> entry : roomStateMap.entrySet()) { if (entry.getValue().isOutdated()) { roomStateMap.remove(entry.getKey()); } } }
public void cleanRoomStateMap() { for (java.util.Map.Entry<java.lang.String, org.cubyte.edumon.client.RoomState> entry : roomStateMap.entrySet()) { if (entry.getValue().isOutdated()) { roomStateMap.remove(entry.getKey()); } } }
public void evaluate(java.io.Writer writer, com.mitchellbosecke.pebble.template.EvaluationContext context) throws com.mitchellbosecke.pebble.error.PebbleException, java.io.IOException { if ((context.getExecutorService()) != null) { writer = new com.mitchellbosecke.pebble.utils.FutureWriter(writer, context.g...
public void evaluate(java.io.Writer writer, com.mitchellbosecke.pebble.template.EvaluationContext context) throws com.mitchellbosecke.pebble.error.PebbleException, java.io.IOException { if ((context.getExecutorService()) != null) { writer = new com.mitchellbosecke.pebble.utils.FutureWriter(writer); } ...