buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
private boolean isGetter(java.lang.reflect.Method method, java.lang.String fieldName) { return ((method.getName().startsWith("get")) || (method.getName().startsWith("is"))) && (method.getName().endsWith(org.redisson.liveobject.core.AccessorInterceptor.getFieldNameSuffix(fieldName))); }
private boolean isGetter(java.lang.reflect.Method method, java.lang.String fieldName) { return (method.getName().equals(("get" + (org.redisson.liveobject.core.AccessorInterceptor.getFieldNameSuffix(fieldName))))) || (method.getName().equals(("is" + (org.redisson.liveobject.core.AccessorInterceptor.getFieldNameSuffi...
public boolean onTouch(android.view.View v, android.view.MotionEvent event) { switch (event.getAction()) { case android.view.MotionEvent.ACTION_DOWN : this.x = event.getX(); this.y = event.getY(); return true; case android.view.MotionEvent.ACTION_UP : case...
public boolean onTouch(android.view.View v, android.view.MotionEvent event) { switch (event.getAction()) { case android.view.MotionEvent.ACTION_DOWN : this.x = event.getX(); this.y = event.getY(); return true; case android.view.MotionEvent.ACTION_UP : ...
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); GenerateSomeFriends(); android.support.v4.view.ViewPager viewPager = ((android.support.v4.view.ViewPager) (findViewById(R.id.vp_mainActivity))); com.example.emc...
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); android.support.v4.view.ViewPager viewPager = ((android.support.v4.view.ViewPager) (findViewById(R.id.vp_mainActivity))); com.example.emcako.birthdayreminder.MainAc...
public java.util.List<java.lang.String> matchPluginName(net.canarymod.chat.MessageReceiver caller, java.lang.String[] args) { return (args.length) == 1 ? net.canarymod.commandsys.TabCompleteHelper.matchTo(args, net.canarymod.Canary.pluginManager().getPluginNames().toArray(new java.lang.String[0])) : null; }
public java.util.List<java.lang.String> matchPluginName(net.canarymod.chat.MessageReceiver caller, java.lang.String[] args) { return (args.length) == 1 ? matchTo(args, net.canarymod.Canary.pluginManager().getPluginNames().toArray(new java.lang.String[0])) : null; }
protected void onNewIntent(android.content.Intent intent) { super.onNewIntent(intent); if (intent.hasExtra(info.schnatterer.nusic.android.activities.MainActivity.EXTRA_ACTIVE_TAB)) { info.schnatterer.nusic.android.activities.MainActivity.currentTab = ((info.schnatterer.nusic.android.activities.MainActiv...
protected void onNewIntent(android.content.Intent intent) { super.onNewIntent(intent); if (intent.hasExtra(info.schnatterer.nusic.android.activities.MainActivity.EXTRA_ACTIVE_TAB)) { info.schnatterer.nusic.android.activities.MainActivity.currentTab = ((info.schnatterer.nusic.android.activities.MainActiv...
public int onStartCommand(android.content.Intent intent, int flags, int startId) { android.util.Log.i("LocalService", ((("Received start id " + startId) + ": ") + intent)); mIsPersistent = true; android.content.Intent target = intent.getParcelableExtra("notificationTarget"); showNotification(target); ...
public int onStartCommand(android.content.Intent intent, int flags, int startId) { android.util.Log.i("LocalService", ((("Received start id " + startId) + ": ") + intent)); mIsPersistent = true; if (intent != null) { android.content.Intent target = intent.getParcelableExtra("notificationTarget"); ...
public android.view.View onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState) { view = inflater.inflate(R.layout.memory_add_wrapper, container, false); butterknife.ButterKnife.bind(this, view); _selectedItem = ((com.oneupapplications.buck...
public android.view.View onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState) { view = inflater.inflate(R.layout.memory_add_wrapper, container, false); butterknife.ButterKnife.bind(this, view); _selectedItem = ((com.oneupapplications.buck...
private <T> T getObject(java.lang.String url, java.lang.Class<T> type) { this.services = client.target(((com.excilys.formation.computerdb.ui.RestCLI.BASE_URL) + url)); javax.ws.rs.client.Invocation.Builder request = this.services.request(MediaType.APPLICATION_JSON); javax.ws.rs.core.Response response = requ...
private <T> T getObject(java.lang.String url, java.lang.Class<T> type) { this.services = client.target(((com.excilys.formation.computerdb.ui.RestCLI.BASE_URL) + url)); java.lang.System.out.println(((com.excilys.formation.computerdb.ui.RestCLI.BASE_URL) + url)); javax.ws.rs.client.Invocation.Builder request ...
private static double getDouble(java.lang.String query) { java.sql.ResultSet result; try (data.DatabaseConnection connection = new data.DatabaseConnection()) { result = connection.query(query); result.next(); return result.getDouble(1); } catch (java.lang.Exception e) { e.pri...
private static double getDouble(java.lang.String query) { java.sql.ResultSet result; try (data.DatabaseConnection connection = new data.DatabaseConnection()) { result = connection.query(query); result.next(); return result.getDouble(1); } catch (java.lang.Exception e) { retur...
private com.alliander.osgp.dto.valueobjects.smartmetering.AmrProfileStatusCodeDto readAmrProfileStatusCode(final org.openmuc.jdlms.datatypes.DataObject amrProfileStatusData) throws org.osgp.adapter.protocol.dlms.exceptions.ProtocolAdapterException { com.alliander.osgp.dto.valueobjects.smartmetering.AmrProfileStatus...
private com.alliander.osgp.dto.valueobjects.smartmetering.AmrProfileStatusCodeDto readAmrProfileStatusCode(final org.openmuc.jdlms.datatypes.DataObject amrProfileStatusData) throws org.osgp.adapter.protocol.dlms.exceptions.ProtocolAdapterException { if (!(amrProfileStatusData.isNumber())) { throw new org.os...
public java.util.List<teammates.common.datatransfer.attributes.StudentProfileAttributes> getAllStudentProfiles() { java.util.List<teammates.common.datatransfer.attributes.StudentProfileAttributes> list = new java.util.LinkedList<>(); java.util.List<teammates.storage.entity.StudentProfile> entities = getStudentP...
public java.util.List<teammates.common.datatransfer.attributes.StudentProfileAttributes> getAllStudentProfiles() { java.util.List<teammates.common.datatransfer.attributes.StudentProfileAttributes> list = new java.util.LinkedList<>(); java.util.List<teammates.storage.entity.StudentProfile> entities = getStudentP...
public int newNet(java.lang.String shortName, int cloneId, int width) { java.lang.System.out.println(((((("newNet " + shortName) + " ") + cloneId) + " ") + width)); VCDLoaderTest.ExpectTraceBuilder.Event event = fEventList.elementAt(((fCurrentEvent)++)); assertEquals(event.fType, VCDLoaderTest.ExpectTraceBu...
public int newNet(java.lang.String shortName, int cloneId, int width) { java.lang.System.out.println(((((("newNet " + shortName) + " ") + cloneId) + " ") + width)); VCDLoaderTest.ExpectTraceBuilder.Event event = fEventList.get(((fCurrentEvent)++)); assertEquals(event.fType, VCDLoaderTest.ExpectTraceBuilder....
public void endSection(int section) { lcm.spy.ObjectPanel.Section cs = sections.get(section); cs.y1 = y; if ((collapse_depth) == 0) { unindent(); } if (sections.get(section).collapsed) { (collapse_depth)--; } spacer(); endColorBlock(); spacer(); }
public void endSection(int section) { lcm.spy.ObjectPanel.Section cs = sections.get(section); if ((collapse_depth) == 0) { unindent(); } if (sections.get(section).collapsed) { (collapse_depth)--; } spacer(); endColorBlock(); spacer(); }
private static java.lang.Boolean ReadVerifyStoreDumpPage(net.basov.nfc.NFCaDump dump, java.lang.String line) { java.lang.Boolean rc = false; line.trim(); line.replace(" ", ""); if ((line.matches("-?[0-9a-fA-F]+")) && ((line.length()) == 8)) { dump.addPage(net.basov.util.FileIO.hexStringToByteArr...
private static java.lang.Boolean ReadVerifyStoreDumpPage(net.basov.nfc.NFCaDump dump, java.lang.String line) { java.lang.Boolean rc = false; if ((line.matches("-?[0-9a-fA-F]+")) && ((line.length()) == 8)) { dump.addPage(net.basov.util.FileIO.hexStringToByteArray(line)); rc = true; }else { ...
public java.lang.Void call() throws java.lang.Exception { try { org.apache.storm.drpc.DRPCInvocationsClient c = new org.apache.storm.drpc.DRPCInvocationsClient(conf, server, port); synchronized(_clients) { _clients.add(c); } } catch (java.lang.Exception e) { org.apach...
public java.lang.Void call() throws java.lang.Exception { try { org.apache.storm.drpc.DRPCInvocationsClient c = new org.apache.storm.drpc.DRPCInvocationsClient(conf, server, port); synchronized(_clients) { _clients.add(c); } } catch (java.lang.Exception e) { org.apach...
public boolean creatObject(java.lang.String name, java.lang.String modelPath, int coordinateSystemID, int x, int y) { view.queueEvent(new gameSystem.gameObjectSystem.ObjectCreator(sdk, modelPath, coordinateSystemID, objects, OIR.getSoldierInfoByName(name), x, y)); return false; }
public boolean creatObject(java.lang.String name, java.lang.String modelPath, int coordinateSystemID, int x, int y) { if (end) return false; view.queueEvent(new gameSystem.gameObjectSystem.ObjectCreator(sdk, modelPath, coordinateSystemID, objects, OIR.getSoldierInfoByName(name), x, y)); return ...
public java.util.List<de.uni_freiburg.informatik.ultimate.plugins.analysis.abstractinterpretationv2.domain.nonrelational.interval.IntervalDomainState> process(final de.uni_freiburg.informatik.ultimate.plugins.analysis.abstractinterpretationv2.domain.nonrelational.interval.IntervalDomainState oldState, final de.uni_frei...
public java.util.List<de.uni_freiburg.informatik.ultimate.plugins.analysis.abstractinterpretationv2.domain.nonrelational.interval.IntervalDomainState> process(final de.uni_freiburg.informatik.ultimate.plugins.analysis.abstractinterpretationv2.domain.nonrelational.interval.IntervalDomainState oldState, final de.uni_frei...
public void setDockBatteryController(com.android.systemui.statusbar.policy.DockBatteryController dockBatteryController) { com.android.systemui.DockBatteryMeterView v = ((com.android.systemui.DockBatteryMeterView) (findViewById(R.id.dock_battery))); if (dockBatteryController != null) { v.setBatteryStateR...
public void setDockBatteryController(com.android.systemui.statusbar.policy.DockBatteryController dockBatteryController) { com.android.systemui.DockBatteryMeterView v = ((com.android.systemui.DockBatteryMeterView) (findViewById(R.id.dock_battery))); if (dockBatteryController != null) { v.setBatteryStateR...
public void playMusic(android.view.View view) { if (DEBUG) android.util.Log.d(com.vibejukebox.jukebox.activities.JukeboxPlaylistActivity.TAG, "playMusic -- (View)"); mChangeTrack = false; android.widget.ImageButton playButton = ((android.widget.ImageButton) (findViewById(R.id.playButton))); ...
public void playMusic(android.view.View view) { if (DEBUG) android.util.Log.d(com.vibejukebox.jukebox.activities.JukeboxPlaylistActivity.TAG, "playMusic -- (View)"); android.widget.ImageButton playButton = ((android.widget.ImageButton) (findViewById(R.id.playButton))); if (mCurrentPlayerState.p...
private void populateContextFromAuthId(java.lang.String authId) { try { java.lang.String sessionId = authIdHelper.reconstructAuthId(authId).getClaimsSet().getClaim(org.forgerock.openam.core.rest.authn.SESSION_ID, java.lang.String.class); if (org.apache.commons.lang.StringUtils.isEmpty(sessionId)) { ...
private void populateContextFromAuthId(java.lang.String authId) { try { java.lang.String sessionId = authIdHelper.reconstructAuthId(authId).getClaimsSet().getClaim(org.forgerock.openam.core.rest.authn.SESSION_ID, java.lang.String.class); if (org.apache.commons.lang.StringUtils.isEmpty(sessionId)) { ...
public boolean collidesWithFace(entities.Ball b) { org.lwjgl.util.vector.Vector3f closest = toolbox.Maths.closestPtPointTriangle(b.getPosition(), point1, point2, point3); org.lwjgl.util.vector.Vector3f.sub(b.getPosition(), closest, dist); java.lang.System.out.println(((("Distance between ball and " + (this)...
public boolean collidesWithFace(entities.Ball b) { org.lwjgl.util.vector.Vector3f closest = toolbox.Maths.closestPtPointTriangle(b.getPosition(), point1, point2, point3); org.lwjgl.util.vector.Vector3f.sub(b.getPosition(), closest, dist); if ((dist.length()) <= (entities.Ball.RADIUS)) return true; ...
public void onClick(android.view.View v) { if (((makeupCount) + 1) < (saveBitmap.size())) { (makeupCount)++; temp = saveBitmap.get(makeupCount).copy(temp.getConfig(), true); imageView.setImageBitmap(temp); android.util.Log.d(((fyp.hkust.facet.activity.ColorizeFaceActivity.TAG) + " re...
public void onClick(android.view.View v) { if ((makeupCount) < (saveBitmap.size())) { (makeupCount)++; temp = saveBitmap.get(makeupCount).copy(temp.getConfig(), true); imageView.setImageBitmap(temp); android.util.Log.d(((fyp.hkust.facet.activity.ColorizeFaceActivity.TAG) + " redo "),...
public void doPowerup(java.lang.String which) { if (which.equals("left")) { if (GameLogic.leftPlayerPowerup.isEmpty()) return ; startLeftPowerup(GameLogic.leftPlayerPowerup.pop()); }else if (which.equals("right")) { if (GameLogic.rightPlayerPowerup.isEmpt...
public void doPowerup(java.lang.String which) { if (which.equals("left")) { if (GameLogic.leftPlayerPowerup.isEmpty()) return ; else startLeftPowerup(GameLogic.leftPlayerPowerup.pop()); }else if (which.equals("right")) { if (GameLogic.rightPla...
private void firstRun(int currentVersion) { android.content.Intent activity = new android.content.Intent(this, es.ugr.swad.swadroid.sync.AccountAuthenticator.class); es.ugr.swad.swadroid.preferences.Preferences.setSyncTime(java.lang.String.valueOf(Constants.DEFAULT_SYNC_TIME)); startActivity(activity); ...
private void firstRun(int currentVersion) { android.content.Intent activity = new android.content.Intent(this, es.ugr.swad.swadroid.sync.AccountAuthenticator.class); es.ugr.swad.swadroid.preferences.Preferences.setSyncTime(java.lang.String.valueOf(Constants.DEFAULT_SYNC_TIME)); startActivity(activity); ...
public void Proceed() { turnState = org.tilegames.hexicube.cah.client.neoteny.gameState.GameLogic.TurnState.ADDING_TO_PILE; org.tilegames.hexicube.cah.client.neoteny.gameLayers.CardsLayer.ClearPile(); org.tilegames.hexicube.cah.client.neoteny.gameLayers.CardGame.SetNotification(""); subCards.clear(); ...
public void Proceed() { turnState = org.tilegames.hexicube.cah.client.neoteny.gameState.GameLogic.TurnState.ADDING_TO_PILE; org.tilegames.hexicube.cah.client.neoteny.gameLayers.CardsLayer.ClearPile(); org.tilegames.hexicube.cah.client.neoteny.gameLayers.CardGame.SetNotification(""); subCards.clear(); ...
public static void setGoodNight(org.springframework.scheduling.TaskScheduler scheduler, resources.internal.Hue hue) { if (hue.getScene().getGoodNight().isEnabled()) { scheduler.schedule(com.sonie.web.util.RunnableUtil.setGoodNight(com.sonie.web.util.CronJobUtil.LOG, hue), new org.springframework.scheduling....
public static void setGoodNight(org.springframework.scheduling.TaskScheduler scheduler, resources.internal.Hue hue) { if (hue.getScene().getGoodNight().isEnabled()) { scheduler.schedule(com.sonie.web.util.RunnableUtil.setGoodNight(com.sonie.web.util.CronJobUtil.LOG, hue), new org.springframework.scheduling....
private static Chat.Builder buildMockChat() { java.util.Random random = new java.util.Random(); sjchat.messages.Chat.Builder chatBuilder = sjchat.messages.Chat.newBuilder(); chatBuilder.setId(java.lang.Math.abs(random.nextInt(100))); chatBuilder.setTitle(("Test chat " + (chatBuilder.getId()))); retu...
private static Chat.Builder buildMockChat() { java.util.Random random = new java.util.Random(); sjchat.messages.Chat.Builder chatBuilder = sjchat.messages.Chat.newBuilder(); chatBuilder.setId(null); chatBuilder.setTitle(("Test chat " + (chatBuilder.getId()))); return chatBuilder; }
public char[] getPassword() throws java.io.IOException { char[] password = new char[0]; java.lang.System.out.print("Password: "); final jline.console.ConsoleReader reader = new jline.console.ConsoleReader(); final java.lang.String passwordStr = reader.readLine('*'); password = passwordStr.toCharArra...
public char[] getPassword() throws java.io.IOException { char[] password = new char[0]; java.lang.System.out.print("Password: "); final jline.console.ConsoleReader reader = new jline.console.ConsoleReader(); java.lang.String passwordStr = reader.readLine('*'); password = passwordStr.toCharArray(); ...
public void transactionEnd() { javax.persistence.EntityManager em = br.com.criativasoft.opendevice.middleware.persistence.HibernateProvider.getInstance(); br.com.criativasoft.opendevice.middleware.persistence.HibernateProvider.setInstance(null); javax.persistence.EntityTransaction local = em.getTransaction(...
public void transactionEnd() { javax.persistence.EntityManager em = br.com.criativasoft.opendevice.middleware.persistence.HibernateProvider.getInstance(); br.com.criativasoft.opendevice.middleware.persistence.HibernateProvider.setInstance(null); javax.persistence.EntityTransaction local = em.getTransaction(...
public void run() { while ((gameRunning) && (!(gameOver))) { run_game(); try { java.lang.Thread.sleep(com.se.softwareEngineering.gameEngine.GameEngine.gameSpeed); } catch (java.lang.Throwable t) { if (com.se.softwareEngineering.gameEngine.GameEngine.debug) { ...
public void run() { while ((gameRunning) && (!(gameOver))) { run_game(); try { java.lang.Thread.sleep(com.se.softwareEngineering.gameEngine.GameEngine.gameSpeed); } catch (java.lang.Throwable t) { if (com.se.softwareEngineering.gameEngine.GameEngine.debug) { ...
public void render(float delta) { Gdx.gl.glClearColor(0, 0, 0, 1); Gdx.gl.glClear(GL30.GL_COLOR_BUFFER_BIT); game.batch.setTransformMatrix(camera.view); game.batch.setProjectionMatrix(camera.combined); game.shapeRenderer.setTransformMatrix(camera.view); game.shapeRenderer.setProjectionMatrix(cam...
public void render(float delta) { Gdx.gl.glClearColor(0, 0, 0, 1); Gdx.gl.glClear(GL30.GL_COLOR_BUFFER_BIT); camera.update(); game.batch.setProjectionMatrix(camera.combined); game.shapeRenderer.setProjectionMatrix(camera.combined); map.draw(game.batch); entityManager.draw(); debugRendere...
public void testStart() { java.lang.System.out.println("Testing OrionCKANSink.start"); java.lang.String attrPersistence = "row"; java.lang.String enableGrouping = "true"; org.apache.flume.Context context = createContext(attrPersistence, enableGrouping); sink.configure(context); sink.setChannel(n...
public void testStart() { java.lang.System.out.println("Testing OrionCKANSink.start"); attrPersistence = "row"; enableGrouping = "true"; org.apache.flume.Context context = createContext(attrPersistence, enableGrouping); sink.configure(context); sink.setChannel(new org.apache.flume.channel.Memory...
public void testCreateArtWithNullCreationDate() { thrown.expect(exceptions.ConstraintViolationException.class); thrown.expectMessage(org.hamcrest.core.StringStartsWith.startsWith("Validation failed")); thrown.expectMessage(org.hamcrest.CoreMatchers.containsString("Please provide creation date or use right c...
public void testCreateArtWithNullCreationDate() { thrown.expect(exceptions.ConstraintViolationException.class); thrown.expectMessage(org.hamcrest.core.StringStartsWith.startsWith("Validation failed")); thrown.expectMessage(org.hamcrest.CoreMatchers.containsString("Please provide creation date or use right c...
public void securityTest3() { request = makeRequest(3, nc.sumy.edu.webcontainer.sequrity.ServerSecurityTest.IP_VAR1, nc.sumy.edu.webcontainer.sequrity.ServerSecurityTest.NC_COM); nc.sumy.edu.webcontainer.sequrity.ServerSecurity serverSecurity = new nc.sumy.edu.webcontainer.sequrity.ServerSecurity(request, serve...
public void securityTest3() { request = makeRequest(3, nc.sumy.edu.webcontainer.sequrity.ServerSecurityTest.IP_VAR1); nc.sumy.edu.webcontainer.sequrity.ServerSecurity serverSecurity = new nc.sumy.edu.webcontainer.sequrity.ServerSecurity(request, serverConfiguration); org.junit.Assert.assertEquals(serverSecu...
public void addLast(Item item) { Deque<Item>.Node old = last; last = new Node(); last.item = item; last.backward = old; last.forward = null; (size)++; if ((size) == 1) { first = last; }else { old.forward = last; } }
public void addLast(Item item) { if (item == null) { throw new java.lang.NullPointerException(); } Deque<Item>.Node old = last; last = new Node(); last.item = item; last.backward = old; last.forward = null; (size)++; if ((size) == 1) { first = last; }else { ...
public void canReturnCorrectScoreIfGameEndsInATie() throws java.lang.Exception { com.tictactoe.Board board = new com.tictactoe.Board(); populateBoard_GameEndsInATie(board); com.tictactoe.Rules rules = new com.tictactoe.RulesFor3x3(); com.tictactoe.Minimax minimax = new com.tictactoe.Minimax(rules, board...
public void canReturnCorrectScoreIfGameEndsInATie() throws java.lang.Exception { com.tictactoe.Board board = new com.tictactoe.Board(); populateBoard_GameEndsInATie(board); com.tictactoe.Rules rules = new com.tictactoe.RulesFor3x3(); com.tictactoe.Minimax minimax = new com.tictactoe.Minimax(rules, board...
public java.lang.String getLabel() { if ((!(labelSet)) && (!(localVarLabelSet))) { if ((algoParent) == null) { return toOutputValueString(); }else { return algoParent.getCommandDescription(); } }else { return kernel.printVariableName(label); } }
public java.lang.String getLabel() { if ((!(labelSet)) && (!(localVarLabelSet))) { if ((algoParent) == null) { return toOutputValueString(); } return algoParent.getCommandDescription(); } return kernel.printVariableName(label); }
public lib.Number push(char digit) { if ((!(this.hasDecimal)) || (digit != '.')) { this.hasDecimal = (this.hasDecimal) || (digit != '.'); this.state += digit; } return this; }
public lib.Number push(char digit) { if ((!(this.hasDecimal)) || (digit != '.')) { this.hasDecimal = (this.hasDecimal) || (digit == '.'); this.state += digit; } return this; }
private void play() { this.showBoard(); while ((!(board.hasWinner())) && (!(board.isFull()))) { players[current].makeMove(board); this.showBoard(); current = ((current) + 1) % 2; } this.printResult(); }
private void play() { this.showBoard(); do { players[current].makeMove(board); this.showBoard(); current = ((current) + 1) % 2; } while ((!(board.hasWinner())) && (!(board.isFull())) ); this.printResult(); }
private boolean hasHeader(int position) { if (position == 0) { return true; } int previous = position - 1; return ((mAdapter.getHeaderId(position)) != (android.support.v7.widget.RecyclerView.NO_ID)) && ((mAdapter.getHeaderId(position)) != (mAdapter.getHeaderId(previous))); }
private boolean hasHeader(int position) { if ((position == 0) && ((mAdapter.getHeaderId(position)) != (android.support.v7.widget.RecyclerView.NO_ID))) { return true; } int previous = position - 1; return ((mAdapter.getHeaderId(position)) != (android.support.v7.widget.RecyclerView.NO_ID)) && ((mA...
public stamboom.domain.Gezin getGezin(int gezinsNr) { gezinsNr = 3; if ((((gezinnen) != null) && (1 <= gezinsNr)) && (1 <= (gezinnen.size()))) { return gezinnen.get((gezinsNr - 1)); } return null; }
public stamboom.domain.Gezin getGezin(int gezinsNr) { if ((((gezinnen) != null) && (1 <= gezinsNr)) && (1 <= (gezinnen.size()))) { return gezinnen.get((gezinsNr - 1)); } return null; }
public void whenSpeedBelow10KmItHasExpressData() { org.highway.whatsup.data.physics.SpeedMeter.Progression progressionSpeed = actionCreator.getProgression(2); org.hamcrest.MatcherAssert.assertThat(progressionSpeed, org.hamcrest.CoreMatchers.is(SpeedMeter.Progression.LOW_SPEED)); org.highway.whatsup.domain.d...
public void whenSpeedBelow10KmItHasExpressData() { org.highway.whatsup.data.physics.SpeedMeter.Progression progressionSpeed = actionCreator.getProgression(2); org.hamcrest.MatcherAssert.assertThat(progressionSpeed, org.hamcrest.CoreMatchers.is(SpeedMeter.Progression.LOW_SPEED)); org.highway.whatsup.domain.d...
public com.fasterxml.jackson.databind.ObjectMapper jacksonObjectMapper() { com.fasterxml.jackson.databind.ObjectMapper objectMapper = new com.fasterxml.jackson.databind.ObjectMapper().setPropertyNamingStrategy(com.fasterxml.jackson.databind.PropertyNamingStrategy.CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES); com....
public com.fasterxml.jackson.databind.ObjectMapper jacksonObjectMapper() { final com.fasterxml.jackson.databind.ObjectMapper objectMapper = new com.fasterxml.jackson.databind.ObjectMapper().setPropertyNamingStrategy(com.fasterxml.jackson.databind.PropertyNamingStrategy.CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES); ...
public void test_150_ACLCreateDeeperField(edu.umass.cs.gnsclient.client.util.GuidEntry westyEntry) { try { try { edu.umass.cs.gnsclient.client.integrationtests.ServerIntegrationTest.client.fieldUpdate(westyEntry.getGuid(), "test.deeper.field", "fieldValue", westyEntry); } catch (java.lan...
public void test_150_ACLCreateDeeperField(edu.umass.cs.gnsclient.client.util.GuidEntry westyEntry) { try { try { edu.umass.cs.gnsclient.client.integrationtests.ServerIntegrationTest.client.fieldUpdate(westyEntry.getGuid(), "test.deeper.field", "fieldValue", westyEntry); } catch (java.lan...
public boolean waterWeakest() throws battlecode2017.GameActionException { battlecode2017.TreeInfo weakest = trees.getWeakestTreeWithinInteract(team); if (((weakest.health) <= (TREE_WATERING_THRESHOLD)) && (rc.canWater(weakest.location))) { rc.water(weakest.location); return true; }else { ...
public boolean waterWeakest() throws battlecode2017.GameActionException { battlecode2017.TreeInfo weakest = trees.getWeakestTreeWithinInteract(team); if (((weakest != null) && ((weakest.health) <= (TREE_WATERING_THRESHOLD))) && (rc.canWater(weakest.location))) { rc.water(weakest.location); retur...
boolean equals(int itemID, int meta, net.minecraft.nbt.NBTTagCompound nbt) { return ((((this.itemID) == itemID) && ((this.meta) == meta)) && ((this.nbt) == nbt)) || (((this.nbt) != null) && (this.nbt.equals(nbt))); }
boolean equals(int itemID, int meta, net.minecraft.nbt.NBTTagCompound nbt) { return (((this.itemID) == itemID) && ((this.meta) == meta)) && (((this.nbt) == nbt) || (((this.nbt) != null) && (this.nbt.equals(nbt)))); }
private void refreshContent() { android.support.v4.widget.SwipeRefreshLayout swipeRefreshLayout = ((android.support.v4.widget.SwipeRefreshLayout) (getActivity().findViewById(R.id.event_swipe_layout))); thestral.agc.events.EventDownloadTask eventDownloadTask = new thestral.agc.events.EventDownloadTask(getActivit...
private void refreshContent() { thestral.agc.events.EventDownloadTask eventDownloadTask = new thestral.agc.events.EventDownloadTask(getActivity(), true); thestral.agc.BackgroundDownloader backgroundDownloader = new thestral.agc.BackgroundDownloader(getActivity()); backgroundDownloader.executeOnExecutor(Asyn...
public void resolveRoute() { try { closeLoadingBar(); activity.activityCloseLoadingBar(); } catch (java.lang.Exception e) { android.util.Log.e(Constants.TAG, "Error loading bar instance has not been created. in ActivityHelper resolveroute"); } java.lang.String pendingDelivery = o...
public void resolveRoute() { try { activity.activityCloseLoadingBar(); closeLoadingBar(); } catch (java.lang.Exception e) { android.util.Log.e(Constants.TAG, "Error loading bar instance has not been created. in ActivityHelper resolveroute"); } java.lang.String pendingDelivery = o...
public void updateAirCondition() { java.util.List<java.lang.String> devices = deviceStatusDao.selectAllActiveDevices(); java.util.List<model.CleanerStatus> cleanerStatusList = new java.util.ArrayList<model.CleanerStatus>(); for (java.lang.String deviceID : devices) { java.lang.String chipID = device...
public void updateAirCondition() { java.util.List<java.lang.String> devices = deviceStatusDao.selectAllActiveDevices(); java.util.List<model.CleanerStatus> cleanerStatusList = new java.util.ArrayList<model.CleanerStatus>(); for (java.lang.String deviceID : devices) { model.CleanerStatus cleanerStatu...
private static java.lang.Class<?> forName(final java.lang.String directory, final java.lang.String name) { try { final java.lang.Class<?> cls = org.obicere.cc.util.Reflection.LOADER.loadClass(name); if (cls != null) { return cls; } } catch (java.lang.Error | java.lang.Excepti...
private static java.lang.Class<?> forName(final java.lang.String directory, final java.lang.String name) { try { final java.lang.Class<?> cls = org.obicere.cc.util.Reflection.LOADER.loadClass(name); if (cls != null) { return cls; } } catch (final java.lang.Throwable ignored) ...
public boolean onItemUse(net.minecraft.item.ItemStack stack, @org.jetbrains.annotations.NotNull net.minecraft.entity.player.EntityPlayer playerIn, @org.jetbrains.annotations.NotNull net.minecraft.world.World worldIn, @org.jetbrains.annotations.NotNull net.minecraft.util.BlockPos pos, net.minecraft.util.EnumFacing side,...
public boolean onItemUse(net.minecraft.item.ItemStack stack, @org.jetbrains.annotations.NotNull net.minecraft.entity.player.EntityPlayer playerIn, @org.jetbrains.annotations.NotNull net.minecraft.world.World worldIn, @org.jetbrains.annotations.NotNull net.minecraft.util.BlockPos pos, net.minecraft.util.EnumFacing side,...
private boolean isOwnProfile(javax.faces.context.FacesContext fctx, java.lang.String role) { boolean ownProfile = true; if ((fctx.getViewRoot().getViewId().endsWith("profile.xhtml")) && (!(role.equals("SYSTEM_ADMINISTRATOR")))) { int userID = java.lang.Integer.parseInt(javax.faces.context.FacesContext.g...
private boolean isOwnProfile(javax.faces.context.FacesContext fctx) { if (fctx.getViewRoot().getViewId().endsWith("profile.xhtml")) { int userID = java.lang.Integer.parseInt(javax.faces.context.FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("userID")); if ((sessi...
public static byte[] parse(final int value) { final byte[] bytes = new byte[4]; bytes[0] = ((byte) (value << 24)); bytes[1] = ((byte) (value << 16)); bytes[2] = ((byte) (value << 8)); bytes[3] = ((byte) (value)); return bytes; }
public static byte[] parse(final int value) { final byte[] bytes = new byte[4]; bytes[0] = ((byte) (value >>> 24)); bytes[1] = ((byte) (value >>> 16)); bytes[2] = ((byte) (value >>> 8)); bytes[3] = ((byte) (value)); return bytes; }
private void initView() { mobileNumber = getIntent().getStringExtra("NUMBER"); android.widget.TextView mobileNum = getView(R.id.editText_mobileNumber); profilePic = getView(R.id.profile_thumb); mobileNum.setText(((getResources().getString(R.string.string_plus)) + (mobileNumber))); emailEditText = ge...
private void initView() { mobileNumber = getIntent().getStringExtra("NUMBER"); android.widget.TextView mobileNum = getView(R.id.editText_mobileNumber); profilePic = getView(R.id.profile_thumb); mobileNum.setText(((getResources().getString(R.string.string_plus)) + (mobileNumber))); emailEditText = ge...
private void updateReady(java.util.List<com.kilobolt.framework.Input.TouchEvent> touchEvents) { if (!(otherSizeIsSet)) { bluetoothModule.sendMessage(java.lang.String.format("%s %d %d", com.wanlin.androidgame.pikachuvolleyball.GameScreen.SCREEN_SIZE_KEY, com.wanlin.androidgame.pikachuvolleyball.GameScreen.sc...
private void updateReady(java.util.List<com.kilobolt.framework.Input.TouchEvent> touchEvents) { if (!(otherSizeIsSet)) { bluetoothModule.sendMessage(java.lang.String.format("%s %d %d", com.wanlin.androidgame.pikachuvolleyball.GameScreen.SCREEN_SIZE_KEY, com.wanlin.androidgame.pikachuvolleyball.GameScreen.sc...
public org.springframework.http.ResponseEntity<?> dismissTeam(@juja.microservices.teams.controller.PathVariable java.lang.String uuid) { logger.debug("Received dismiss team request. User id in Team: {}", uuid); juja.microservices.teams.entity.Team team = teamService.dismissTeam(uuid); logger.info("Team dism...
public org.springframework.http.ResponseEntity<?> dismissTeam(@juja.microservices.teams.controller.PathVariable java.lang.String uuid) { logger.debug("Received dismiss team request. User id in Team: {}", uuid); juja.microservices.teams.entity.Team team = teamService.dismissTeam(uuid); logger.info("Team dism...
public fi.nls.oskari.domain.map.view.View getViewWithConf(java.lang.String viewName) { if ((viewName != null) && (viewName.isEmpty())) { for (fi.nls.oskari.domain.map.view.View item : list) { if (viewName.equals(item.getName())) { return item; } } } re...
public fi.nls.oskari.domain.map.view.View getViewWithConf(java.lang.String viewName) { if ((viewName != null) && (!(viewName.isEmpty()))) { for (fi.nls.oskari.domain.map.view.View item : list) { if (viewName.equals(item.getName())) { return item; } } } ...
public com.buyhatke.core.Entry get(java.lang.String key) { com.buyhatke.core.Entry entry = getInMemoryEntry(key); if (entry == null) { entry = checkInFileSystem(key); if (entry != null) { if (!(com.buyhatke.core.PersistenceManager.isExpired(entry))) { cacheListMap.put...
public com.buyhatke.core.Entry get(java.lang.String key) { com.buyhatke.core.Entry entry = getInMemoryEntry(key); if (entry == null) { entry = checkInFileSystem(key); if (entry != null) { if (!(com.buyhatke.core.PersistenceManager.isExpired(entry))) { this.put(entry);...
private void clearFields() { bookTitle.setText(""); bookSubtitle.setText(""); authorsText.setText(""); categoriesText.setText(""); bookContainer.setVisibility(View.INVISIBLE); scanButton.setVisibility(View.VISIBLE); if (it.jaschke.alexandria.activities.MainActivity.IS_TABLET) { saveB...
private void clearFields() { bookTitle.setText(""); bookSubtitle.setText(""); authorsText.setText(""); categoriesText.setText(""); bookContainer.setVisibility(View.INVISIBLE); scanButton.setVisibility(View.VISIBLE); if (it.jaschke.alexandria.activities.MainActivity.IS_TABLET) { saveB...
public boolean isViewUnder(android.view.View view, int x, int y) { if (view == null) { return false; } return (((x >= (view.getX())) && (x < ((view.getX()) + (view.getWidth())))) && (y >= (view.getY()))) && (y < ((view.getBottom()) + (view.getHeight()))); }
public boolean isViewUnder(android.view.View view, int x, int y) { if (view == null) { return false; } return (((x >= (view.getX())) && (x < ((view.getX()) + (view.getWidth())))) && (y >= (view.getY()))) && (y < ((view.getY()) + (view.getHeight()))); }
private com.questdb.ql.parser.RecordSource compile(com.questdb.ql.parser.QueryModel model, com.questdb.factory.JournalReaderFactory factory) throws com.questdb.ex.JournalException, com.questdb.ex.ParserException { return limit(order(selectColumns(((model.getJoinModels().size()) > 1 ? optimise(model, factory).compil...
private com.questdb.ql.parser.RecordSource compile(com.questdb.ql.parser.QueryModel model, com.questdb.factory.JournalReaderFactory factory) throws com.questdb.ex.JournalException, com.questdb.ex.ParserException { return limit(order(selectColumns(((model.getJoinModels().size()) > 1 ? optimise(model, factory).compil...
public DataStructure.LinkedList2<T>.Node search(T value) { DataStructure.LinkedList2<T>.Node x = nil.next; while ((x != (nil)) && ((x.key) != value)) { x = x.next; } return x; }
public DataStructure.LinkedList2<T>.Node search(T value) { DataStructure.LinkedList2<T>.Node x = nil.next; nil.key = value; while ((x.key) != value) { x = x.next; } nil.key = null; if (x == (nil)) { return null; } return x; }
private void changeValue(boolean add) { float oldValue = value; if (add) { value = java.lang.Math.min(maxValue, ((value) + (step))); }else { value = java.lang.Math.max(minValue, ((value) - (step))); } if ((onValueChangedListener) != null) { onValueChangedListener.onValueChang...
private void changeValue(boolean add) { oldValue = value; if (add) { value = java.lang.Math.min(maxValue, ((value) + (step))); }else { value = java.lang.Math.max(minValue, ((value) - (step))); } if ((onValueChangedListener) != null) { onValueChangedListener.onValueChanged(thi...
public be.willima.jrpgdatabase.model.JRPGTile getTile(int x, int y) throws java.lang.IndexOutOfBoundsException { be.willima.jrpgdatabase.model.JRPGTile tile = null; if ((((x < 0) || (x >= (this.width))) || (y < 0)) || (y >= (this.width))) { throw new java.lang.IndexOutOfBoundsException("Tile not within ...
public be.willima.jrpgdatabase.model.JRPGTile getTile(int x, int y) throws java.lang.IndexOutOfBoundsException { be.willima.jrpgdatabase.model.JRPGTile tile = null; if ((((x < 0) || (x >= (this.width))) || (y < 0)) || (y >= (this.height))) { throw new java.lang.IndexOutOfBoundsException("Tile not within...
public boolean accept(java.io.File pathname) { if (pathname.getName().contains(EInternalTemplate.HEADER_ADDITIONAL.toString())) if (pathname.getName().contains(((language.getExtension()) + (org.talend.designer.codegen.config.TemplateUtil.TEMPLATE_EXT)))) return true; return fal...
public boolean accept(java.io.File pathname) { if (pathname.getName().contains(EInternalTemplate.HEADER_ADDITIONAL.toString())) { if (pathname.getName().contains(((language.getExtension()) + (org.talend.designer.codegen.config.TemplateUtil.TEMPLATE_EXT)))) { return true; } } retu...
public void doNotify() { logger.info("[notifyUpstreamChanged]{},{},{},{},{}", clusterName, shardName, ip, port, dc.getDcName()); metaServerConsoleServiceManagerWrapper.get(dc.getDcName()).upstreamChange(clusterName, shardName, ip, port); }
public java.lang.Void doNotify() { logger.info("[notifyUpstreamChanged]{},{},{},{},{}", clusterName, shardName, ip, port, dc.getDcName()); metaServerConsoleServiceManagerWrapper.get(dc.getDcName()).upstreamChange(clusterName, shardName, ip, port); return null; }
public void onItemClick(android.widget.AdapterView<?> parent, android.view.View view, int position, long id) { android.content.Intent intent = new android.content.Intent(getBaseContext(), a15s.android.datamatiker.mini_projekt1.TestWaresList.class); intent.putExtra(ShoppingListDetail.EXTRA_LISTNO, list_id); ...
public void onItemClick(android.widget.AdapterView<?> parent, android.view.View view, int position, long id) { android.content.Intent intent = new android.content.Intent(getBaseContext(), a15s.android.datamatiker.mini_projekt1.TestWaresList.class); intent.putExtra(ShoppingListDetail.EXTRA_LISTNO, list_id); ...
public void setSelectRename_smallerThanPrevious() { selectValuesMeta.setSelectRename(new java.lang.String[]{ org.pentaho.di.trans.steps.selectvalues.SelectValuesMetaTest.FIRST_FIELD , org.pentaho.di.trans.steps.selectvalues.SelectValuesMetaTest.SECOND_FIELD }); selectValuesMeta.setSelectRename(new java.lang.Str...
public void setSelectRename_smallerThanPrevious() { selectValuesMeta.setSelectRename(new java.lang.String[]{ org.pentaho.di.trans.steps.selectvalues.SelectValuesMetaTest.FIRST_FIELD , org.pentaho.di.trans.steps.selectvalues.SelectValuesMetaTest.SECOND_FIELD }); selectValuesMeta.setSelectRename(new java.lang.Str...
public void populate() { get().getNode("world", "inventory", "separate").setValue(true).setComment("Toggles separate inventories between worlds."); get().getNode("world", "inventory", "groups").setComment("Contains all world inventory groups."); get().getNode("world", "inventory", "groups", "example").setVa...
public void populate() { get().getNode("world", "inventory", "separate").setValue(false).setComment("Toggles separate inventories between worlds."); get().getNode("world", "inventory", "groups").setComment("Contains all world inventory groups."); get().getNode("world", "inventory", "groups", "example").setV...
private void fromPayload(java.lang.String partContent) { java.lang.String[] parts = partContent.split(Constants.CRLFCRLF, 2); parseHeaders(parts[0]); mContent = parts[1].substring(0, parts[1].lastIndexOf(Constants.CRLF)); }
private void fromPayload(java.lang.String partContent) { java.lang.String[] parts = partContent.split(Constants.CRLFCRLF, 2); if (2 == (parts.length)) { parseHeaders(parts[0]); mContent = parts[1].substring(0, parts[1].lastIndexOf(Constants.CRLF)); } }
private void setCelebFields(com.example.jeka.movieshelper.model.Celebrity celebrity, java.lang.String jsonValue, java.lang.String value) { switch (jsonValue) { case com.example.jeka.movieshelper.network.CelebFetch.PERSON_NAME : celebrity.setName(value); break; case com.exampl...
private void setCelebFields(com.example.jeka.movieshelper.model.Celebrity celebrity, java.lang.String jsonValue, java.lang.String value) { switch (jsonValue) { case com.example.jeka.movieshelper.network.CelebFetch.PERSON_NAME : celebrity.setName(value); break; case com.exampl...
public void onMeasure(int widthSpec, int heightSpec) { super.onMeasure(widthSpec, heightSpec); if (pullEnabled) { pullView.measure(widthSpec, 0); setMeasuredDimension(getMeasuredWidth(), ((getMeasuredHeight()) + (pullView.getMeasuredHeight()))); } }
public void onMeasure(int widthSpec, int heightSpec) { super.onMeasure(widthSpec, heightSpec); if ((pullView) != null) { pullView.measure(widthSpec, 0); setMeasuredDimension(getMeasuredWidth(), ((getMeasuredHeight()) + (pullView.getMeasuredHeight()))); } }
public boolean onPreferenceChange(android.preference.Preference preference, java.lang.Object data) { final int pinStringLength = ((java.lang.String) (data)).length(); if (pinStringLength != (info.dvkr.screenstream.SettingsActivity.PIN_DIGITS_COUNT)) { android.widget.Toast.makeText(getActivity().getAppli...
public boolean onPreferenceChange(android.preference.Preference preference, java.lang.Object data) { final int pinStringLength = data.toString().length(); if (pinStringLength != (info.dvkr.screenstream.SettingsActivity.PIN_DIGITS_COUNT)) { android.widget.Toast.makeText(getActivity().getApplicationContex...
public boolean leaveGroup(long courseId, long courseSkuId, long userId) { cn.momia.api.im.dto.Group group = queryGroup(courseId, courseSkuId); if (!(group.exists())) return false; if (doLeaveGroup(group.getGroupId(), userId)) { deleteGroupMembersLog(group.getGroupId(), com.google.common...
public boolean leaveGroup(long userId, long courseId, long courseSkuId) { cn.momia.api.im.dto.Group group = queryGroup(courseId, courseSkuId); if (!(group.exists())) return false; if (doLeaveGroup(userId, group.getGroupId())) { deleteGroupMembersLog(group.getGroupId(), com.google.common...
protected java.lang.String sendRequest(java.lang.String resourceFile) throws java.lang.Exception { final java.net.URL resource = com.google.common.io.Resources.getResource(org.incode.eurocommercial.ecpcrm.webapp.card_check_unbound.CardCheckUnboundTest.class, resourceFile); final java.lang.String json = com.goog...
protected java.lang.String sendRequest(java.net.URL resource) throws java.lang.Exception { final java.lang.String json = com.google.common.io.Resources.toString(resource, com.google.common.base.Charsets.UTF_8); com.google.api.client.http.HttpContent content = com.google.api.client.http.ByteArrayContent.fromStri...
public void testAbsentEntityCreationSucceeds() throws java.lang.Throwable { org.terracotta.connection.Connection client = org.ehcache.clustered.BasicEntityInteractionTest.CLUSTER.newConnection(); try { org.terracotta.connection.entity.EntityRef<org.ehcache.clustered.client.internal.EhcacheClientEntity, ...
public void testAbsentEntityCreationSucceeds() throws java.lang.Throwable { org.terracotta.connection.Connection client = org.ehcache.clustered.BasicEntityInteractionTest.CLUSTER.newConnection(); try { org.terracotta.connection.entity.EntityRef<org.ehcache.clustered.client.internal.EhcacheClientEntity, ...
public void changeState(java.lang.String recordingId, java.lang.String state) { if (state.equals(Recording.STATE_PUBLISHED)) { changeState(unpublishedDir, recordingId, state); }else if (state.equals(Recording.STATE_UNPUBLISHED)) { changeState(publishedDir, recordingId, state); ...
public void changeState(java.lang.String recordingId, java.lang.String state) { if (state.equals(Recording.STATE_PUBLISHED)) { changeState(unpublishedDir, recordingId, state); }else if (state.equals(Recording.STATE_UNPUBLISHED)) { changeState(publishedDir, recordingId, state); ...
public static void comChoiceS() { java.util.Random rand = new java.util.Random(); int comPick = (rand.nextInt(3)) + 1; if (comPick == 1) { java.lang.System.out.println("I chose rock and you chose scissors...I win :p"); com.bleh.Main.resultsL(); }else if (comPick == 2) { ...
public static void comChoiceS() { java.util.Random rand = new java.util.Random(); int comPick = (rand.nextInt(3)) + 1; if (comPick == 1) { java.lang.System.out.println("I chose rock and you chose scissors...I win :p"); com.bleh.Main.resultsL(); }else if (comPick == 2) { ...
public io.netty.util.concurrent.Future<java.lang.Boolean> removeAllAsync(java.util.Collection<?> c) { if (c.isEmpty()) { return org.redisson.RedissonSet.newSucceededFuture(false); } java.util.List<java.lang.Object> args = new java.util.ArrayList<java.lang.Object>(((c.size()) + 1)); args.add(getN...
public io.netty.util.concurrent.Future<java.lang.Boolean> removeAllAsync(java.util.Collection<?> c) { if (c.isEmpty()) { return org.redisson.RedissonSet.newSucceededFuture(false); } java.util.List<java.lang.Object> args = new java.util.ArrayList<java.lang.Object>(((c.size()) + 1)); args.add(getN...
public void setBrightness(final int pRenderLayerIndex, final double pBrightness) { mBrightness[getCurrentRenderLayerIndex()] = ((float) (clearvolume.renderer.ClearVolumeRendererBase.clamp(pBrightness, 0, ((getBytesPerVoxel()) == 1 ? 16 : 256)))); notifyUpdateOfVolumeRenderingParameters(); }
public void setBrightness(final int pRenderLayerIndex, final double pBrightness) { mBrightness[pRenderLayerIndex] = ((float) (clearvolume.renderer.ClearVolumeRendererBase.clamp(pBrightness, 0, ((getBytesPerVoxel()) == 1 ? 16 : 256)))); notifyUpdateOfVolumeRenderingParameters(); }
public void inMailSystemMenuShouldChangeGreeting() { connection.dial("3"); connection.record("Greeting"); connection.dial("#"); org.mockito.Mockito.verify(currentMailbox).setGreeting("Greeting"); assert connection.isInMailBoxMenu(); org.mockito.Mockito.verify(phone, times(2)).speak(ConnectionTes...
public void inMailSystemMenuShouldChangeGreeting() { phone.speak(ConnectionTestMailboxMenu.MAILBOX_MENU_TEXT); connection.dial("3"); connection.record("Greeting"); connection.dial("#"); org.mockito.Mockito.verify(currentMailbox).setGreeting("Greeting"); assert connection.isInMailBoxMenu(); o...
private java.util.ArrayList<org.Point> finalLocs() { java.util.ArrayList<org.Point> ret = new java.util.ArrayList<>(); for (javafx.scene.control.ChoiceBox cb : locations) { if ((cb.getValue()) != null) { addtoFinalLocs(ret, cb); } } return ret; }
private java.util.ArrayList<org.Point> finalLocs() { java.util.ArrayList<org.Point> ret = new java.util.ArrayList<>(); for (javafx.scene.control.ChoiceBox cb : locations) { if ((cb.getValue()) != null) { ret.add(((org.Point) (cb.getValue()))); } } return ret; }
protected void writeResults() throws java.io.IOException { org.apache.commons.io.FileUtils.write(new java.io.File(outputFolder, de.unidue.ltl.flextag.core.reports.crf.TtAbstractKnownUnknownWordAccuracyReport.UNKNOWN_WORDS_FINE), java.lang.String.format("%.1f", ((invocabAccuracy) * 100))); org.apache.commons.io....
protected void writeResults() throws java.io.IOException { org.apache.commons.io.FileUtils.write(new java.io.File(outputFolder, de.unidue.ltl.flextag.core.reports.crf.TtAbstractKnownUnknownWordAccuracyReport.UNKNOWN_WORDS_FINE), java.lang.String.format("%.1f", ((outvocabAccuracy) * 100))); org.apache.commons.io...
private static void calculateDiscount() { java.util.Collections.sort(Constants.quotes); double higherValue = Constants.quotes.get(0).getThreeYearTotal(); if (higherValue > 0) { for (com.amazon.proposalcalculator.bean.Quote q : com.amazon.proposalcalculator.utils.Constants.quotes) { q.set...
private static void calculateDiscount() { java.util.Collections.sort(Constants.quotes); double higherValue = Constants.quotes.get(0).getThreeYearTotal(); if (higherValue > 0) { for (com.amazon.proposalcalculator.bean.Quote q : com.amazon.proposalcalculator.utils.Constants.quotes) { q.set...
public void doRefreshVisual(org.eclipse.gef.fx.nodes.GeometryNode<org.eclipse.gef.geometry.planar.IGeometry> visual) { if ((getAnchoragesUnmodifiable().size()) != 1) { return ; } org.eclipse.gef.geometry.planar.IGeometry feedbackGeometry = getFeedbackGeometry(); if (feedbackGeometry == null) { ...
public void doRefreshVisual(org.eclipse.gef.fx.nodes.GeometryNode<org.eclipse.gef.geometry.planar.IGeometry> visual) { if ((getAnchoragesUnmodifiable().size()) != 1) { return ; } org.eclipse.gef.geometry.planar.IGeometry feedbackGeometry = getFeedbackGeometry(); if (feedbackGeometry == null) { ...
public void render() { Gdx.gl.glClearColor(1, 1, 1, 1); Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); stage.act(); stage.draw(); if ((showProgressUntilTime) < (com.badlogic.gdx.utils.TimeUtils.millis())) { if ((progressDialog) != null) { progressDialog.dismiss(); } } }
public void render() { Gdx.gl.glClearColor(1, 1, 1, 1); Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); stage.act(); stage.draw(); if (((showProgressUntilTime) < (com.badlogic.gdx.utils.TimeUtils.millis())) && ((showProgressUntilTime) != 0)) { if ((progressDialog) != null) { showProgre...
protected void onPostExecute(java.lang.Void result) { loadingDialog.cancel(); android.content.Intent intent = new android.content.Intent(android.content.Intent.ACTION_SEND); intent.setType("text/plain"); intent.putExtra(Intent.EXTRA_STREAM, android.net.Uri.fromFile(targetFile)); startActivity(intent...
protected void onPostExecute(java.lang.Boolean result) { loadingDialog.cancel(); if (result) { android.content.Intent intent = new android.content.Intent(android.content.Intent.ACTION_SEND); intent.setType("text/plain"); intent.putExtra(Intent.EXTRA_STREAM, android.net.Uri.fromFile(targe...
protected void onActivityResult(int requestCode, int resultCode, android.content.Intent data) { if ((requestCode == (com.ww23.l_band.ListenActivity.REQUEST_ENABLE_BT)) && (resultCode == (android.app.Activity.RESULT_CANCELED))) { toast(getString(R.string.deny_open_bluetooth).toString()); finish(); ...
protected void onActivityResult(int requestCode, int resultCode, android.content.Intent data) { if ((requestCode == (com.ww23.l_band.ListenActivity.REQUEST_ENABLE_BT)) && (resultCode == (android.app.Activity.RESULT_CANCELED))) { toast(getString(R.string.deny_open_bluetooth)); finish(); retur...
public void saveConfig() { if (((fileConfiguration) == null) || ((configFile) == null)) { return ; }else { try { getConfig().save(configFile); } catch (java.io.IOException ex) { plugin.getLogger().log(java.util.logging.Level.SEVERE, ("Could not save config to " + ...
public void saveConfig() { if (((fileConfiguration) == null) || ((configFile) == null)) { return ; }else { try { getConfig().save(configFile); } catch (java.io.IOException ex) { plugin.getLogger().log(java.util.logging.Level.SEVERE, ("Could not save config to " + ...
public void add(int data) { (this.size)++; if ((this.front) == null) { this.front = new QueueNode(data); }else { QueueNode current = this.front; while (current != null) { current = current.next; } current.next = new QueueNode(data); } }
public void add(int data) { (this.size)++; if ((this.front) == null) { this.front = new QueueNode(data); }else { QueueNode current = this.front; while ((current.next) != null) { current = current.next; } current.next = new QueueNode(data); } }
public java.lang.Object pop() { final int n = stack.size(); if (n == 0) { throw new java.lang.RuntimeException("The stack is empty"); } for (int i = (marks.size()) - 1; i >= 0; --i) { if ((marks.get(i)) == n) { marks.set(i, (n - 1)); } } return stack.remove((n...
public java.lang.Object pop() { final int n = stack.size(); if (n == 0) { return 0L; } for (int i = (marks.size()) - 1; i >= 0; --i) { if ((marks.get(i)) == n) { marks.set(i, (n - 1)); } } return stack.remove((n - 1)); }
private static java.lang.String filterChars(java.lang.String s) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); for (char c : s.toCharArray()) { if (("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".indexOf(c)) >= 0) { sb.append(c); } } return sb...
private static java.lang.String filterChars(java.lang.String s) { if (s == null) { return null; } java.lang.StringBuilder sb = new java.lang.StringBuilder(); for (char c : s.toCharArray()) { if (("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".indexOf(c)) >= 0) { ...
public void createDirIfNotExists(java.lang.String dirPath) throws org.seagrid.desktop.connectors.storage.SftpException { java.lang.String pwd = channelSftp.pwd(); java.lang.String[] folders = dirPath.split("/"); for (java.lang.String folder : folders) { if ((folder.length()) > 0) { try {...
public void createDirIfNotExists(java.lang.String dirPath) throws org.seagrid.desktop.connectors.storage.SftpException { java.lang.String pwd = channelSftp.pwd(); channelSftp.cd("/"); java.lang.String[] folders = dirPath.split("/"); for (java.lang.String folder : folders) { if ((folder.length())...
public com.containersol.minimesos.state.State getState() { try { return com.containersol.minimesos.state.State.fromJSON(getStateInfoJSON().toString()); } catch (com.fasterxml.jackson.core.JsonParseException | com.fasterxml.jackson.databind.JsonMappingException | com.mashape.unirest.http.exceptions.Unire...
public com.containersol.minimesos.state.State getState() { try { return com.containersol.minimesos.state.State.fromJSON(getStateInfoJSON().toString()); } catch (com.fasterxml.jackson.core.JsonParseException | com.fasterxml.jackson.databind.JsonMappingException | com.mashape.unirest.http.exceptions.Unire...
public void detectListenerWithStartProximityDetectionWithCustomThreshold() { addSensor(android.hardware.Sensor.TYPE_PROXIMITY); com.github.nisrulz.sensey.ProximityDetector.ProximityListener fakeListener = org.mockito.Mockito.mock(com.github.nisrulz.sensey.ProximityDetector.ProximityListener.class); sensey.s...
public void detectListenerWithStartProximityDetectionWithCustomThreshold() { addSensor(android.hardware.Sensor.TYPE_PROXIMITY); com.github.nisrulz.sensey.ProximityDetector.ProximityListener fakeListener = org.mockito.Mockito.mock(com.github.nisrulz.sensey.ProximityDetector.ProximityListener.class); sensey.s...
public boolean checkTuple(com.github.dakusui.jcunit.core.tuples.Tuple tuple) throws com.github.dakusui.jcunit.exceptions.UndefinedSymbol { com.github.dakusui.jcunit.fsm.FSMFactors fsmFactors = this.getFactors(); com.github.dakusui.jcunit.fsm.ScenarioSequence<SUT> seq = new com.github.dakusui.jcunit.fsm.Scenario...
public boolean checkTuple(com.github.dakusui.jcunit.core.tuples.Tuple tuple) throws com.github.dakusui.jcunit.exceptions.UndefinedSymbol { com.github.dakusui.jcunit.fsm.ScenarioSequence<SUT> seq = new com.github.dakusui.jcunit.fsm.ScenarioSequence.BuilderFromTuple<SUT>().setTuple(tuple).setFSMName(this.fsmName).set...
public static boolean cas(long[] array, int index, long expected, long value) { return com.questdb.misc.Unsafe.getUnsafe().compareAndSwapLong(array, ((com.questdb.misc.Unsafe.LONG_OFFSET) + (((long) (index)) << (com.questdb.misc.Unsafe.LONG_SCALE))), expected, value); }
public static boolean cas(long[] array, int index, long expected, long value) { assert (index > (-1)) && (index < (array.length)); return com.questdb.misc.Unsafe.getUnsafe().compareAndSwapLong(array, ((com.questdb.misc.Unsafe.LONG_OFFSET) + (((long) (index)) << (com.questdb.misc.Unsafe.LONG_SCALE))), expected, ...
public boolean onLongClick(android.view.View v) { if (!(v.isInTouchMode())) return false; if ((mNextPage) != (INVALID_PAGE)) return false; if ((!(mLauncher.isAllAppsVisible())) || (mLauncher.getWorkspace().isSwitchingState())) return false; return (!(mLauncher.isDr...
public boolean onLongClick(android.view.View v) { if (!(v.isInTouchMode())) return false; if ((mNextPage) != (INVALID_PAGE)) return false; if ((!(mLauncher.isAllAppsVisible())) || (mLauncher.getWorkspace().isSwitchingState())) return false; return beginDragging(v);...
public java.lang.String arrayToString(java.lang.Object[] array) { java.lang.StringBuffer buffer = new java.lang.StringBuffer(); for (int i = 0; i < (array.length); i++) { if (i > 0) { buffer.append(dk.lessismore.nojpa.reflection.attributeconverters.AttributeConverter.arraySeparator); ...
public java.lang.String arrayToString(java.lang.Object[] array) { java.lang.StringBuilder buffer = new java.lang.StringBuilder(); for (int i = 0; i < (array.length); i++) { if (i > 0) { buffer.append(dk.lessismore.nojpa.reflection.attributeconverters.AttributeConverter.arraySeparator); ...
public com.abilists.bean.para.profile.MTechDetailListAjax sltMTechDetailListAjax(@org.springframework.web.bind.annotation.RequestBody com.abilists.bean.para.admin.SltMTechDetailPara sltMTechDetailPara, javax.servlet.http.HttpSession session) throws java.lang.Exception { logger.info(("sltMTechDetailListAjax. MtNo >>...
public com.abilists.bean.para.profile.MTechDetailListAjax sltMTechDetailListAjax(@org.springframework.web.bind.annotation.RequestBody com.abilists.bean.para.admin.SltMTechDetailPara sltMTechDetailPara, javax.servlet.http.HttpSession session) throws java.lang.Exception { this.handleSessionInfo(session, sltMTechDetai...