buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public int compare(org.eclipse.emf.ecore.EClass first, org.eclipse.emf.ecore.EClass second) { if (((first != null) && (second != null)) && ((first.getName()) != null)) { return first.getName().compareTo(second.getName()); }else { return 0; } }
public int compare(org.eclipse.emf.ecore.EClass first, org.eclipse.emf.ecore.EClass second) { if ((((first != null) && (second != null)) && ((first.getName()) != null)) && ((second.getName()) != null)) { return first.getName().compareTo(second.getName()); }else { return 0; } }
public void onGamePadCustomMessageReceived(java.lang.String customMessage, int gamepad) { if (isGamePadConnected(gamepad)) return ; final com.fbessou.sofa.GameIOHelper.GamePadCustomMessage gpCustom = new com.fbessou.sofa.GameIOHelper.GamePadCustomMessage(); gpCustom.customMessage = customMessag...
public void onGamePadCustomMessageReceived(java.lang.String customMessage, int gamepad) { if (!(isGamePadConnected(gamepad))) return ; final com.fbessou.sofa.GameIOHelper.GamePadCustomMessage gpCustom = new com.fbessou.sofa.GameIOHelper.GamePadCustomMessage(); gpCustom.customMessage = customMes...
public void actionPerformed(java.awt.event.ActionEvent arg0) { if (!(done.isEmpty())) { undone.push(grid); sim.eqiv(grid, done.pop()); java.lang.System.out.println("KKK"); sim.updateToGrid(frame, panel, grid, mmax); } }
public void actionPerformed(java.awt.event.ActionEvent arg0) { if (!(done.isEmpty())) { long[][] temp = new long[n][n]; sim.eqiv(temp, grid); undone.push(temp); sim.eqiv(grid, done.pop()); sim.updateToGrid(frame, panel, grid, mmax); } }
private io.gravitee.repository.redis.management.model.RedisView convert(final io.gravitee.repository.management.model.View view) { final io.gravitee.repository.redis.management.model.RedisView redisView = new io.gravitee.repository.redis.management.model.RedisView(); redisView.setId(view.getId()); redisView...
private io.gravitee.repository.redis.management.model.RedisView convert(final io.gravitee.repository.management.model.View view) { if (view == null) { return null; } final io.gravitee.repository.redis.management.model.RedisView redisView = new io.gravitee.repository.redis.management.model.RedisView(...
public void init() { sim = new edu.vt.ece5574.sim.Simulation(1); java.lang.String rID = "1"; java.lang.String bID = "0"; bld = new edu.vt.ece5574.agents.Building(bID); sim.addAgent(bld); rob = new edu.vt.ece5574.agents.Robot(rID, bID, 5, 100); sim.addAgent(rob); }
public void init() { sim = new edu.vt.ece5574.sim.Simulation(1); java.lang.String rID = "1"; java.lang.String bID = "0"; bld = new edu.vt.ece5574.agents.Building(bID); sim.addAgent(bld); rob = new edu.vt.ece5574.agents.Robot(rID, bID, 5, 100); assertTrue(sim.addAgent(rob)); }
public void updateMovieList() { java.lang.String sortOrder = android.preference.PreferenceManager.getDefaultSharedPreferences(getContext()).getString(getString(R.string.pref_key_sort_order), getString(R.string.pref_default_value_sort_order)); com.tutorial.nano.popularmovies.FetchMoviesTask moviesTask = new com....
public void updateMovieList() { java.lang.String sortOrder = android.preference.PreferenceManager.getDefaultSharedPreferences(getContext()).getString(getString(R.string.pref_key_sort_order), getString(R.string.pref_default_value_sort_order)); com.tutorial.nano.popularmovies.FetchMoviesTask moviesTask = new com....
public static boolean canUseName(org.bukkit.entity.Player player, java.lang.String name) { java.lang.String shortenedName = com.Acrobot.Breeze.Utils.NameUtil.stripUsername(com.Acrobot.ChestShop.UUIDs.NameManager.getUsername(player.getUniqueId())); if (com.Acrobot.ChestShop.Signs.ChestShopSign.isAdminShop(name))...
public static boolean canUseName(org.bukkit.entity.Player player, java.lang.String name) { java.lang.String shortenedName = com.Acrobot.Breeze.Utils.NameUtil.stripUsername(com.Acrobot.ChestShop.UUIDs.NameManager.getUsername(player.getUniqueId())); if (com.Acrobot.ChestShop.Signs.ChestShopSign.isAdminShop(name))...
public int descriptionEdit(webdoctor.jooq.tables.pojos.Disease disease) { if ((checkDisease(disease)) == 0) { return 0; }else { create.update(webdoctor.service.DISEASE).set(DISEASE.DESCRIPTION, disease.getDescription()).where(DISEASE.NAME.equal(disease.getName())).execute(); return 1; ...
public int descriptionEdit(webdoctor.jooq.tables.pojos.Disease disease) { if ((checkDisease(disease)) == 0) { return 0; }else { java.lang.System.out.println(disease.getDescription()); create.update(webdoctor.service.DISEASE).set(DISEASE.DESCRIPTION, disease.getDescription()).where(DISEAS...
public void disable() { disabled = true; spawns.clear(); java.util.ListIterator<org.bukkit.entity.Player> players = activePlayers.listIterator(); while (players.hasNext()) { org.bukkit.entity.Player p = players.next(); removePlayer(p, false); com.endercrest.colorcube.game.Message...
public void disable() { disabled = true; spawns.clear(); java.util.ListIterator<org.bukkit.entity.Player> players = activePlayers.listIterator(); while (players.hasNext()) { org.bukkit.entity.Player p = players.next(); com.endercrest.colorcube.game.MessageManager.getInstance().sendFMessa...
private void addTask(java.lang.String[] addTaskString) { com.example.heetel.todo.Task newTask = new com.example.heetel.todo.Task(addTaskString[0], addTaskString[1]); if (!(newTask.equals(tasks.get(0)))) { tasks.add(0, newTask); writePreferences(); this.lastTask = newTask; android...
private void addTask(java.lang.String[] addTaskString) { com.example.heetel.todo.Task newTask = new com.example.heetel.todo.Task(addTaskString[0], addTaskString[1]); if (!(newTask.equals(tasks.get(0)))) { tasks.add(0, newTask); this.lastTask = newTask; android.util.Log.i("addTask", "Task...
protected android.view.View createNewAdViewSsl(com.spotxchange.sdk.android.SpotxAdListener adListener) { java.lang.String appDomain = getActivity().getString(R.string.app_domain); com.spotxchange.sdk.android.SpotxAdSettings settings = new com.spotxchange.sdk.android.SpotxAdSettings(getChannelIdFromEditText(), a...
protected android.view.View createNewAdViewSsl(com.spotxchange.sdk.android.SpotxAdListener adListener) { java.lang.String appDomain = getActivity().getString(R.string.app_domain); com.spotxchange.sdk.android.SpotxAdSettings settings = new com.spotxchange.sdk.android.SpotxAdSettings(getChannelIdFromEditText(), a...
private static long setBits(long word, int offset, int length, long value) { long mask = (co.paralleluniverse.fibers.Stack.MASK_FULL) >>> (64 - length); word = word & (~(mask << ((64 - offset) - length))); value = value & mask; word = word | (value << ((64 - offset) - length)); return word; }
private static long setBits(long word, int offset, int length, long value) { int a = 64 - length; int b = a - offset; word = word & (~(((co.paralleluniverse.fibers.Stack.MASK_FULL) >>> a) << b)); word = word | (value << b); return word; }
private void writeConstructor() { org.renjin.repackaged.asm.MethodVisitor mv = cv.visitMethod(org.renjin.compiler.pipeline.ACC_PUBLIC, "<init>", "()V", null, null); mv.visitCode(); mv.visitVarInsn(org.renjin.compiler.pipeline.ALOAD, 0); mv.visitMethodInsn(org.renjin.compiler.pipeline.INVOKESPECIAL, "jav...
private void writeConstructor() { org.renjin.repackaged.asm.MethodVisitor mv = cv.visitMethod(org.renjin.compiler.pipeline.ACC_PUBLIC, "<init>", "()V", null, null); mv.visitCode(); mv.visitVarInsn(org.renjin.compiler.pipeline.ALOAD, 0); mv.visitMethodInsn(org.renjin.compiler.pipeline.INVOKESPECIAL, "jav...
public void onSingleTapUp(android.view.MotionEvent event) { if ((!(isVisible())) || (mIsLocked)) return ; mMapPoint = mMapViewOverlays.getMap().screenToMap(new com.nextgis.maplib.datasource.GeoPoint(event.getX(), event.getY())); mMapPoint.setCRS(GeoConstants.CRS_WEB_MERCATOR); mMapPoint.pro...
public void onSingleTapUp(android.view.MotionEvent event) { if ((!(isVisible())) || (mIsLocked)) return ; mMapPoint = mMapViewOverlays.getMap().screenToMap(new com.nextgis.maplib.datasource.GeoPoint(event.getX(), event.getY())); mMapPoint.setCRS(GeoConstants.CRS_WEB_MERCATOR); mMapPoint.pro...
protected void handleSetData(io.oversec.one.crypto.proto.Outer.Msg msg, io.oversec.one.crypto.BaseDecryptResult tdr, io.oversec.one.crypto.images.xcoder.ImageXCoder coder) { mTvCoder.setText(coder.getClass().getSimpleName()); io.oversec.one.crypto.AbstractCryptoHandler encH = io.oversec.one.crypto.CryptoHandler...
protected void handleSetData(io.oversec.one.crypto.proto.Outer.Msg msg, io.oversec.one.crypto.BaseDecryptResult tdr, io.oversec.one.crypto.images.xcoder.ImageXCoder coder) { io.oversec.one.crypto.AbstractCryptoHandler encH = io.oversec.one.crypto.CryptoHandlerFacade.getInstance(getActivity()).getCryptoHandler(tdr);...
protected void onPostExecute(java.lang.Boolean aBoolean) { super.onPostExecute(aBoolean); if (!aBoolean) { com.byteshaft.towerinfo.PhoneInfo.getInstance().setDataDirection(0); }else { if (AppGlobals.APP_FOREGROUND) { android.util.Log.e("TAG", ("wifiAction" + (AppGlobals.APP_FOREG...
protected void onPostExecute(java.lang.Boolean aBoolean) { super.onPostExecute(aBoolean); if (!aBoolean) { if (AppGlobals.APP_FOREGROUND) { com.byteshaft.towerinfo.PhoneInfo.getInstance().setDataDirection(0); } }else { if (AppGlobals.APP_FOREGROUND) { android....
protected void onResume() { super.onResume(); try { locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 10, locationListener); } catch (java.lang.SecurityException e) { android.widget.Toast.makeText(this, "No authorization for the processing of data", Toast.LENGTH_LONG).s...
protected void onResume() { super.onResume(); try { locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, locationListener); } catch (java.lang.SecurityException e) { android.widget.Toast.makeText(this, "No authorization for the processing of data", Toast.LENGTH_LONG).sh...
public void addEvent(java.lang.String event) { if (event.equals("")) { return ; } try { java.io.BufferedWriter bw = new java.io.BufferedWriter(new java.io.FileWriter(monthFilePath, true)); bw.newLine(); bw.write((((date) + " ") + event)); bw.close(); } catch (java...
public void addEvent(java.lang.String event) { event = event.trim(); if (event.equals("")) { return ; } try { java.io.BufferedWriter bw = new java.io.BufferedWriter(new java.io.FileWriter(monthFilePath, true)); bw.newLine(); bw.write((((date) + " ") + event)); bw....
public void onResponse(retrofit2.Call<java.util.List<com.extinctspecie.betman.models.HistoryItem>> call, retrofit2.Response<java.util.List<com.extinctspecie.betman.models.HistoryItem>> response) { historyItems = response.body(); lvAdapterHistory = new com.extinctspecie.betman.LVAdapterTVHistory(getActivity().ge...
public void onResponse(retrofit2.Call<java.util.List<com.extinctspecie.betman.models.HistoryItem>> call, retrofit2.Response<java.util.List<com.extinctspecie.betman.models.HistoryItem>> response) { historyItems = response.body(); if ((historyItems.size()) > 0) { lvAdapterHistory = new com.extinctspecie.b...
public void testGettingContactsViaID() { manager.addNewContact("c1", "notes1"); manager.addNewContact("c2", "notes2"); manager.addNewContact("c3", "notes3"); java.util.Set<Contact> several = manager.getContacts(2, 1); assertEquals(3, several.size()); assertTrue(hasContact(several, "c1")); as...
public void testGettingContactsViaID() { manager.addNewContact("c1", "notes1"); manager.addNewContact("c2", "notes2"); manager.addNewContact("c3", "notes3"); java.util.Set<Contact> several = manager.getContacts(2, 1); assertEquals(2, several.size()); assertTrue(hasContact(several, "c1")); as...
protected void onResume() { android.util.Log.d(com.setmusic.bitmine.BitmineMainActivity.TAG, "onStart"); super.onStart(); if ((googleApiClient) != null) { googleApiClient.connect(); }else { getLastLocation(); createLocationRequest(); storeLocation(); } }
protected void onResume() { android.util.Log.d(com.setmusic.bitmine.BitmineMainActivity.TAG, "onStart"); super.onResume(); if ((googleApiClient) != null) { googleApiClient.connect(); }else { getLastLocation(); createLocationRequest(); storeLocation(); } }
public static void main(java.lang.String[] args) { java.lang.System.out.println("Hi, I am your Drone application!"); java.lang.System.out.println(""); droneandshare.Media media = new droneandshare.Media("sky.jpg"); media.showProperty(); java.lang.System.out.println(""); droneandshare.Picture pic...
public static void main(java.lang.String[] args) { java.lang.System.out.println("Hi, I am your Drone application!"); java.lang.System.out.println(""); droneandshare.Media media = new droneandshare.Media("sky.jpg"); media.showProperty(); java.lang.System.out.println(""); droneandshare.Picture pic...
public static void byteListToFile(byte[] byteArray, java.io.File file) { try { java.io.FileOutputStream stream = new java.io.FileOutputStream(file); stream.write(byteArray); stream.flush(); stream.close(); } catch (java.io.IOException e) { java.lang.System.err.println(e.g...
public static void byteListToFile(byte[] byteArray, java.io.File file) { try { java.io.FileOutputStream stream = new java.io.FileOutputStream(file); stream.write(byteArray); stream.flush(); } catch (java.io.IOException e) { java.lang.System.err.println(e.getMessage()); } }
private void scannerPrint() throws java.lang.Exception { mCancelSignal = new android.support.v4.os.CancellationSignal(); com.dax.demo.fingerprint.SymmetricCryptoObjectHelper cryptoHelper = new com.dax.demo.fingerprint.SymmetricCryptoObjectHelper(); android.support.v4.hardware.fingerprint.FingerprintManagerC...
private void scannerPrint(int type) throws java.lang.Exception { mCancelSignal = new android.support.v4.os.CancellationSignal(); com.dax.demo.fingerprint.SymmetricCryptoObjectHelper cryptoHelper = new com.dax.demo.fingerprint.SymmetricCryptoObjectHelper(this); android.support.v4.hardware.fingerprint.Fingerp...
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_list_authors); android.transition.Fade fade = ((android.transition.Fade) (android.transition.TransitionInflater.from(this).inflateTransition(R.transition.activity_fade))); ...
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_list_authors); setInitialValues(); initiateActionBar(); setInitialRecyclerView(); dbManager.read(); updateControl = new fw.musicauthors.ListAuthorsActivity.Upd...
com.forgerock.opendj.cli.ArgumentGroup group; if (isInputOutputArgument(argument)) { group = ioArgGroup; }else if (isGeneralArgument(argument)) { group = generalArgGroup; }else if (isLdapConnectionArgument(argument)) { group = ldapArgGroup; ...
if (isInputOutputArgument(argument)) { return ioArgGroup; }else if (isGeneralArgument(argument)) { return generalArgGroup; }else if (isLdapConnectionArgument(argument)) { return ldapArgGroup; }else { return defaultArgGro...
public int compare(org.ehcache.impl.internal.store.heap.ValueHolder<?> t, org.ehcache.impl.internal.store.heap.ValueHolder<?> u) { if (t instanceof org.ehcache.impl.internal.store.heap.OnHeapStore.Fault) { return -1; }else if (u instanceof org.ehcache.impl.internal.store.heap.OnHeapStore.Fault) ...
public int compare(org.ehcache.impl.internal.store.heap.ValueHolder<?> t, org.ehcache.impl.internal.store.heap.ValueHolder<?> u) { if (t instanceof org.ehcache.impl.internal.store.heap.OnHeapStore.Fault) { return -1; }else if (u instanceof org.ehcache.impl.internal.store.heap.OnHeapStore.Fault) ...
public boolean onMenuItemClick(android.view.MenuItem item) { java.lang.String difficulty = item.toString(); switch (difficulty) { case "Hard" : previewIntent.putExtra("difficulty", 0); break; case "Harder" : previewIntent.putExtra("difficulty", 1); ...
public boolean onMenuItemClick(android.view.MenuItem item) { java.lang.String difficulty = item.toString(); switch (difficulty) { case "Hard" : previewIntent.putExtra("difficulty", 0); break; case "Harder" : previewIntent.putExtra("difficulty", 1); ...
public org.fenixedu.academic.domain.curricularRules.executors.RuleResult execute(final org.fenixedu.academic.domain.enrolment.EnrolmentContext enrolmentContext) { final java.util.Set<org.fenixedu.academic.domain.curricularPeriod.CurricularPeriod> configured = getCurricularPeriodsConfigured(getYearMin(), getYearMax(...
public org.fenixedu.academic.domain.curricularRules.executors.RuleResult execute(final org.fenixedu.academic.domain.enrolment.EnrolmentContext enrolmentContext) { final java.util.Set<org.fenixedu.academic.domain.curricularPeriod.CurricularPeriod> configured = getCurricularPeriodsConfigured(getYearMin(), getYearMax(...
public void mouseClicked(java.awt.event.MouseEvent e) { if ((chessManMover) == null) { if ((table[((e.getY()) / 70)][((e.getX()) / 70)]) != null) this.showAvailableMoves(e); java.lang.System.out.println("fdjfafkdjads;lf"); }else { java.lang.System.out.println("here12...
public void mouseClicked(java.awt.event.MouseEvent e) { if ((chessManMover) == null) { if ((table[((e.getY()) / 70)][((e.getX()) / 70)]) != null) this.showAvailableMoves(e); }else { this.chessManMove(e); } }
protected java.lang.String doInBackground(java.lang.String... urls) { com.example.ginji.rssfeed.NewsDAO news = new com.example.ginji.rssfeed.NewsDAO(mActivity); news.open(); news.delete(); for (int i = 0; i < (listItem.size()); i++) news.insert(listItem.get(i)); return null; }
protected java.lang.String doInBackground(java.lang.String... urls) { com.example.ginji.rssfeed.NewsDAO news = new com.example.ginji.rssfeed.NewsDAO(mActivity); news.open(); news.delete(); if ((listItem) != null) { for (int i = 0; i < (listItem.size()); i++) news.insert(listItem.get(...
public void setup() throws java.lang.NoSuchMethodException { request = org.easymock.EasyMock.createMock(javax.servlet.http.HttpServletRequest.class); session = org.easymock.EasyMock.createMock(javax.servlet.http.HttpSession.class); authenticatedUserService = org.easymock.EasyMock.createMock(ee.hm.dop.servic...
public void setup() throws java.lang.NoSuchMethodException { request = org.easymock.EasyMock.createMock(javax.servlet.http.HttpServletRequest.class); session = org.easymock.EasyMock.createMock(javax.servlet.http.HttpSession.class); authenticatedUserService = org.easymock.EasyMock.createMock(ee.hm.dop.servic...
protected void ConfigurationSpecificBuildStructure(net.minecraft.entity.player.EntityPlayer player, net.minecraft.world.World world, net.minecraft.util.math.BlockPos hitBlockPos) { com.wuest.prefab.StructureGen.CustomStructures.StructureTreeFarm structure = com.wuest.prefab.StructureGen.CustomStructures.StructureTr...
protected void ConfigurationSpecificBuildStructure(net.minecraft.entity.player.EntityPlayer player, net.minecraft.world.World world, net.minecraft.util.math.BlockPos hitBlockPos) { com.wuest.prefab.StructureGen.CustomStructures.StructureTreeFarm structure = com.wuest.prefab.StructureGen.CustomStructures.StructureTr...
public void setup(java.util.concurrent.Semaphore inputSemaphore) { endSemaphore = new java.util.concurrent.Semaphore((-(Sorters.size())), true); this.inputSemaphore = inputSemaphore; for (core.Sorter sorter : Sorters) { sorter.setup(endSemaphore); } this.start(); }
public void setup(java.util.concurrent.Semaphore inputSemaphore) { endSemaphore = new java.util.concurrent.Semaphore(((-(Sorters.size())) + 1), true); this.inputSemaphore = inputSemaphore; for (core.Sorter sorter : Sorters) { sorter.setup(endSemaphore); } this.start(); }
private static void writeUVarLong(com.pingcap.tikv.codec.CodecDataOutput cdo, long value) { while ((value - 128) >= 0) { cdo.writeByte((((byte) (value)) | 128)); value >>>= 7; } cdo.writeByte(((byte) (value))); }
public static void writeUVarLong(com.pingcap.tikv.codec.CodecDataOutput cdo, long value) { while ((value - 128) >= 0) { cdo.writeByte((((byte) (value)) | 128)); value >>>= 7; } cdo.writeByte(((byte) (value))); }
public synchronized void close() throws java.io.IOException { try { if ((memoryBuffer) != null) { memoryBuffer.close(); memoryBuffer = null; } if ((fileOutput) != null) { fileOutput.close(); } } finally { tempFile.delete(); } }
public synchronized void close() throws java.io.IOException { try { if ((memoryBuffer) != null) { memoryBuffer.close(); memoryBuffer = null; } if ((fileOutput) != null) { fileOutput.close(); } } finally { if ((tempFile) != null) { ...
private android.os.Bundle getExtras(android.app.Notification notification) { if (com.achep.acdisplay.Device.hasKitKatApi()) { return notification.extras; } try { java.lang.reflect.Field field = android.app.Notification.class.getDeclaredField("extras"); field.setAccessible(true); ...
private android.os.Bundle getExtras(android.app.Notification notification) { if (com.achep.acdisplay.Device.hasKitKatApi()) { return notification.extras; } try { java.lang.reflect.Field field = notification.getClass().getDeclaredField("extras"); field.setAccessible(true); ret...
public boolean onTouchEvent(android.view.MotionEvent ev) { if (menuContainsTouch(ev)) { ev.offsetLocation(0, (-((getHeight()) - (menu.getHeight())))); menu.onTouchEvent(ev); drawer.setOnTouchListener(null); } return true; }
public boolean onTouchEvent(android.view.MotionEvent ev) { if (menuContainsTouch(ev)) { ev.offsetLocation(0, (-((getHeight()) - (menu.getHeight())))); menu.onTouchEvent(ev); } return true; }
private void stopRecordingVideo() { if ((recorder) != null) { android.util.Log.v(edu.au.sydney.MainActivity.TAG, "Finishing recording, calling stop and release on recorder"); try { recorder.stop(); recorder.release(); } catch (org.bytedeco.javacv.FFmpegFrameRecorder e...
private void stopRecordingVideo() { if ((recorder) != null) { android.util.Log.v(edu.au.sydney.MainActivity.TAG, "Finishing recording, calling stop and release on recorder"); try { recorder.stop(); recorder.release(); } catch (org.bytedeco.javacv.FFmpegFrameRecorder e...
public java.util.List<org.wso2.carbon.policy.mgt.common.ProfileFeature> getFeaturesForProfile(int profileId) throws org.wso2.carbon.policy.mgt.common.FeatureManagementException { try { org.wso2.carbon.device.mgt.core.dao.DeviceManagementDAOFactory.openConnection(); return featureDAO.getFeaturesForPr...
public java.util.List<org.wso2.carbon.policy.mgt.common.ProfileFeature> getFeaturesForProfile(int profileId) throws org.wso2.carbon.policy.mgt.common.FeatureManagementException { try { org.wso2.carbon.policy.mgt.core.dao.PolicyManagementDAOFactory.openConnection(); return featureDAO.getFeaturesForPr...
public void init() { for (int i = 0; i < 6; i++) { java.lang.String imageText = null; imageText = getParameter(("image" + i)); if (imageText != null) { (totalPictures)++; picture[i] = getImage(getCodeBase(), imageText); }else break; } ...
public void init() { for (int i = 0; i < (picture.length); i++) { java.lang.String imageText = null; imageText = getParameter(("image" + i)); if (imageText != null) { (totalPictures)++; }else break; } java.lang.String pauseText = null; pau...
private static void sendHttpRedirect(co.paralleluniverse.comsat.webactors.netty.ChannelHandlerContext ctx, co.paralleluniverse.comsat.webactors.netty.FullHttpRequest req, java.lang.String newUri) { final co.paralleluniverse.comsat.webactors.netty.FullHttpResponse res = new co.paralleluniverse.comsat.webactors.netty...
static void sendHttpRedirect(co.paralleluniverse.comsat.webactors.netty.ChannelHandlerContext ctx, co.paralleluniverse.comsat.webactors.netty.FullHttpRequest req, java.lang.String newUri) { final co.paralleluniverse.comsat.webactors.netty.FullHttpResponse res = new co.paralleluniverse.comsat.webactors.netty.Default...
public boolean apply(org.eclipse.emf.common.notify.Notification notification) { boolean isRemoveNotif = ((notification.getEventType()) == (org.eclipse.emf.common.notify.Notification.REMOVE)) || ((notification.getEventType()) == (org.eclipse.emf.common.notify.Notification.REMOVE_MANY)); return isRemoveNotif && (...
public boolean apply(org.eclipse.emf.common.notify.Notification notification) { boolean isRemoveNotif = ((notification.getEventType()) == (org.eclipse.emf.common.notify.Notification.REMOVE)) || ((notification.getEventType()) == (org.eclipse.emf.common.notify.Notification.REMOVE_MANY)); return isRemoveNotif && (...
public boolean onDoubleTap(android.view.MotionEvent e) { if ((mChicken1Count) == 0) { rotateImage(mChicken1); mChicken1.setVisibility(View.INVISIBLE); yellow.start(); mChicken2.setVisibility(View.VISIBLE); }else if ((mChicken1Count) == 1) { scaleImage(mChicken...
public boolean onDoubleTap(android.view.MotionEvent e) { if ((mChicken1Count) == 0) { rotateImage(mChicken1); mChicken1.setVisibility(View.INVISIBLE); yellow.start(); mChicken2.setVisibility(View.VISIBLE); }else if ((mChicken1Count) >= 1) { scaleImage(mChicken...
public static void loadWordTable(java.util.ArrayList<java.lang.String> words) { entities.WordTable.table = new java.util.Hashtable<java.lang.String, java.lang.Boolean>(); int numWords = words.size(); for (int i = 0; i < numWords; i++) { java.lang.String word = words.get(i); word = word.trim(...
public static void loadWordTable(java.util.ArrayList<java.lang.String> words) { entities.WordTable.table = new java.util.Hashtable<java.lang.String, java.lang.Boolean>(); int numWords = words.size(); for (int i = 0; i < numWords; i++) { java.lang.String word = words.get(i); word = word.trim(...
public void handle(org.sonar.api.server.ws.Request request, org.sonar.api.server.ws.Response response) throws java.lang.Exception { java.lang.String componentKey = request.mandatoryParam("component"); org.sonar.api.rule.RuleKey ruleKey = org.sonar.api.rule.RuleKey.parse(request.mandatoryParam("rule")); org....
public void handle(org.sonar.api.server.ws.Request request, org.sonar.api.server.ws.Response response) throws java.lang.Exception { java.lang.String componentKey = request.mandatoryParam("component"); org.sonar.api.rule.RuleKey ruleKey = org.sonar.api.rule.RuleKey.parse(request.mandatoryParam("rule")); org....
public android.app.Dialog onCreateDialog(android.os.Bundle savedInstanceState) { java.lang.String title = getArguments().getString(com.proxy.app.dialog.LoginErrorDialog.ARG_TITLE); java.lang.String message = getArguments().getString(com.proxy.app.dialog.LoginErrorDialog.ARG_MESSAGE); android.app.AlertDialog...
public android.app.Dialog onCreateDialog(android.os.Bundle savedInstanceState) { java.lang.String title = getArguments().getString(com.proxy.app.dialog.LoginErrorDialog.ARG_TITLE); java.lang.String message = getArguments().getString(com.proxy.app.dialog.LoginErrorDialog.ARG_MESSAGE); android.app.AlertDialog...
org.ednovo.gooru.client.gin.AppClientFactory.fireEvent(new org.ednovo.gooru.client.mvp.home.event.HomeEvent(org.ednovo.gooru.client.mvp.home.event.HeaderTabType.NONE)); org.ednovo.gooru.client.gin.AppClientFactory.fireEvent(new org.ednovo.gooru.client.mvp.search.event.SetFooterEvent(org.ednovo.gooru.client.gin....
org.ednovo.gooru.client.gin.AppClientFactory.fireEvent(new org.ednovo.gooru.client.mvp.home.event.HomeEvent(org.ednovo.gooru.client.mvp.home.event.HeaderTabType.NONE)); org.ednovo.gooru.client.gin.AppClientFactory.fireEvent(new org.ednovo.gooru.client.mvp.search.event.SetFooterEvent(org.ednovo.gooru.client.gin....
public void testInvalidOrder() throws java.lang.Exception { org.rakam.collection.Event.EventContext api = new org.rakam.collection.Event.EventContext(apiKeys.writeKey, "1.0", null, null); byte[] bytes = mapper.writeValueAsBytes(com.google.common.collect.ImmutableMap.of("project", "test", "properties", com.googl...
public void testInvalidOrder() throws java.lang.Exception { org.rakam.collection.Event.EventContext api = new org.rakam.collection.Event.EventContext(apiKeys.writeKey, "1.0", null, null); byte[] bytes = mapper.writeValueAsBytes(com.google.common.collect.ImmutableMap.of("properties", com.google.common.collect.Im...
public static void writeChallenges(java.util.ArrayList<Picolo.model.Challenge> challenges) { try { com.fasterxml.jackson.databind.ObjectMapper mapper = new com.fasterxml.jackson.databind.ObjectMapper(); mapper.writeValue(new java.io.File(((Picolo.service.Const.RESOURCE_PATH) + "Challenges.json")), c...
private static void writeChallenges(java.util.ArrayList<Picolo.model.Challenge> challenges) { try { com.fasterxml.jackson.databind.ObjectMapper mapper = new com.fasterxml.jackson.databind.ObjectMapper(); mapper.writeValue(new java.io.File(((Picolo.service.Const.RESOURCE_PATH) + "Challenges.json")), ...
public encryptor.EncryptorReturn encrypt(java.lang.String in) throws encryptor.CustomizeEncryptorException { if (((password) == null) || ((password) == "")) throw new encryptor.CustomizeEncryptorException("Empty password"); java.lang.String properIn = preprocessingEncryptToDisplay(in); encrypto...
public encryptor.EncryptorReturn encrypt(java.lang.String in) throws encryptor.CustomizeEncryptorException { if (((password) == null) || ("".equals(password))) throw new encryptor.CustomizeEncryptorException("Empty password"); java.lang.String properIn = preprocessingEncryptToDisplay(in); encry...
private simulator.ProcessControlBlock dispatch() { simulator.ProcessControlBlockImpl prev_process = ((simulator.ProcessControlBlockImpl) (simulator.Config.getCPU().getCurrentProcess())); simulator.ProcessControlBlockImpl next_process; if (readyQueue.isEmpty()) { simulator.Config.getCPU().contextSwit...
private simulator.ProcessControlBlock dispatch() { simulator.ProcessControlBlockImpl prev_process = ((simulator.ProcessControlBlockImpl) (simulator.Config.getCPU().getCurrentProcess())); simulator.ProcessControlBlockImpl next_process; if (!(readyQueue.isEmpty())) { next_process = ((simulator.Process...
public static NovaNative.mc_render_command makeRenderCommand(net.minecraft.client.Minecraft mc, float partialTicks) { NovaNative.mc_render_command command = new NovaNative.mc_render_command(); command.anaglyph = mc.gameSettings.anaglyph; command.display_height = mc.displayHeight; command.display_width =...
public static NovaNative.mc_render_command makeRenderCommand(net.minecraft.client.Minecraft mc, float partialTicks) { NovaNative.mc_render_command command = new NovaNative.mc_render_command(); command.anaglyph = mc.gameSettings.anaglyph; command.display_height = mc.displayHeight; command.display_width =...
public static bammerbom.ultimatecore.spongeapi.api.UPlayer getPlayer(java.util.UUID u) { for (bammerbom.ultimatecore.spongeapi.api.UPlayer p : bammerbom.ultimatecore.spongeapi.api.UC.uplayers) { if (p.uuid.equals(u)) { return p; } } bammerbom.ultimatecore.spongeapi.api.bammerbom....
public static bammerbom.ultimatecore.spongeapi.api.UPlayer getPlayer(java.util.UUID u) { for (bammerbom.ultimatecore.spongeapi.api.UPlayer p : bammerbom.ultimatecore.spongeapi.api.UC.uplayers) { if ((p.uuid) == null) { continue; } if (p.uuid.equals(u)) { return p; ...
public void onResponse(retrofit2.Call<java.util.List<com.extinctspecie.betman.models.VIPLiveItem>> call, retrofit2.Response<java.util.List<com.extinctspecie.betman.models.VIPLiveItem>> response) { vipLiveItems = response.body(); if ((vipLiveItems.size()) > 0) { lvAdapterTVVIPLive = new com.extinctspecie...
public void onResponse(retrofit2.Call<java.util.List<com.extinctspecie.betman.models.VIPLiveItem>> call, retrofit2.Response<java.util.List<com.extinctspecie.betman.models.VIPLiveItem>> response) { vipLiveItems = response.body(); if ((vipLiveItems.size()) > 0) { lvAdapterTVVIPLive = new com.extinctspecie...
public rx.Observable<?> call(java.lang.Throwable throwable) { if ((throwable instanceof java.lang.IllegalArgumentException) || (throwable instanceof java.lang.NullPointerException)) { return fakeApi.getFakeToken("fake_auth_code").doOnNext(new rx.functions.Action1<com.rengwuxian.rxjavasamples.model.FakeToken...
public rx.Observable<?> call(java.lang.Throwable throwable) { if ((throwable instanceof java.lang.IllegalArgumentException) || (throwable instanceof java.lang.NullPointerException)) { return fakeApi.getFakeToken("fake_auth_code").doOnNext(new rx.functions.Action1<com.rengwuxian.rxjavasamples.model.FakeToken...
public void responseCallBack(org.json.JSONObject response) { android.util.Log.e(com.example.qwerty.http.MeetupActivity.TAG, response.toString()); try { meetupResponse = response; parsedDate = dateParser.parseResponseDate(response.getJSONObject("date")); usersFragment.passDataToFragment(r...
public void responseCallBack(org.json.JSONObject response) { try { meetupResponse = response; parsedDate = dateParser.parseResponseDate(response.getJSONObject("date")); if (displayData) { title.setText(response.getString("name")); desc.setText(response.getString("desc...
protected void doStart() throws java.lang.Exception { org.orienteer.camel.tasks.CamelEventHandler.LOG.info(java.lang.Thread.currentThread().getName()); if ((taskSession) == null) { taskSession = new org.orienteer.camel.tasks.OCamelTaskSession(); taskSession.setCallback(callback); taskSes...
protected void doStart() throws java.lang.Exception { org.orienteer.camel.tasks.CamelEventHandler.LOG.info(java.lang.Thread.currentThread().getName()); taskSession = new org.orienteer.camel.tasks.OCamelTaskSession(); taskSession.setCallback(callback); taskSession.setDeleteOnFinish(false); taskSessio...
public void onDestroy() { super.onDestroy(); if ((recognizer) != null) recognizer.cancel(); if ((tts_eng) != null) { tts_eng.stop(); tts_eng.shutdown(); } if ((tts) != null) { tts.stop(); tts.shutdown(); } mMediaPlayer.stop(); mMediaPlayer.rel...
public void onDestroy() { if ((recognizer) != null) recognizer.cancel(); if ((tts_eng) != null) { tts_eng.stop(); tts_eng.shutdown(); } if ((tts) != null) { tts.stop(); tts.shutdown(); } mMediaPlayer.stop(); mMediaPlayer.release(); cursor.clos...
public void displayListenContent(com.lovelybroteam.listenexercise.model.ListenContent listenContent, java.lang.String filePath) { this.listenContent = listenContent; showConversationDialog(false); currentFileName = filePath; questionAnswerAdapter.setShowAnswer(false); questionAnswerAdapter.setListen...
public void displayListenContent(com.lovelybroteam.listenexercise.model.ListenContent listenContent, java.lang.String filePath) { this.listenContent = listenContent; showConversationDialog(false); currentFileName = filePath; questionAnswerAdapter.setShowAnswer(false); questionAnswerAdapter.setListen...
public boolean onSingleTapConfirmed(android.view.MotionEvent e) { if ((greyFavIcon.getVisibility()) == (android.view.View.GONE)) { greyFavIcon.setVisibility(View.VISIBLE); orangeFavIcon.setVisibility(View.GONE); circleBackground.setVisibility(View.GONE); com.example.aishwarya.favorit...
public boolean onSingleTapConfirmed(android.view.MotionEvent e) { if ((greyFavIcon.getVisibility()) == (android.view.View.GONE)) { com.example.aishwarya.favoriteicon.AnimationUtils.heart(circleBackground, orangeFavIcon, greyFavIcon); }else { com.example.aishwarya.favoriteicon.AnimationUtils.hear...
public void reset(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request) { org.kuali.kra.protocol.ProtocolFormBase.LOG.debug("reset() ENTER"); super.reset(mapping, request); this.setLookupResultsSequenceNumber(null); this.setLookupResultsBOClassName(null); thi...
public void reset(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request) { org.kuali.kra.protocol.ProtocolFormBase.LOG.debug("reset() ENTER"); super.reset(mapping, request); this.setLookupResultsSequenceNumber(null); this.setLookupResultsBOClassName(null); onl...
public java.util.stream.Stream<java.util.logging.LogRecord> stream(java.lang.Class<?> clazz, java.util.logging.Level level) { if (level == null) { throw new org.junit.platform.commons.JUnitException("Level must not be null"); } return stream(clazz).filter(( logRecord) -> (logRecord.getLevel()) == le...
public java.util.stream.Stream<java.util.logging.LogRecord> stream(java.lang.Class<?> clazz, java.util.logging.Level level) { if (level == null) { throw new org.junit.platform.commons.JUnitException("Level must not be null"); } return stream(clazz).filter(( logRecord) -> logRecord.getLevel().equals(...
public void onClick(android.view.View v) { if (mediaPlayer.isPlaying()) { mediaPlayer.pause(); mediaPlayer.setLooping(true); start.setImageDrawable(android.support.v4.content.ContextCompat.getDrawable(this, R.drawable.ic_action_play)); }else { mediaPlayer.start(); start.s...
public void onClick(android.view.View v) { if (mediaPlayer.isPlaying()) { mediaPlayer.pause(); start.setImageDrawable(android.support.v4.content.ContextCompat.getDrawable(this, R.drawable.ic_action_play)); }else { mediaPlayer.start(); start.setImageDrawable(android.support.v4.con...
public void exactMatchExcludeStrains() throws org.eol.globi.data.NodeFactoryException, org.eol.globi.service.PropertyEnricherException { taxonIndex.getOrCreateTaxon(new org.eol.globi.domain.TaxonImpl("Phytophthora infestans", null)); new org.eol.globi.tool.LinkerGlobalNames(getGraphDb()).link(); java.util.L...
public void exactMatchExcludeStrains() throws org.eol.globi.data.NodeFactoryException, org.eol.globi.service.PropertyEnricherException { taxonIndex.getOrCreateTaxon(new org.eol.globi.domain.TaxonImpl("Phytophthora infestans", null)); new org.eol.globi.tool.LinkerGlobalNames(getGraphDb()).link(); java.util.C...
public void Attacked(int damage) { _currentHeath -= damage; if (((_currentHeath) - damage) <= 0) { KnockedBack(); Died(); }else if (((_currentHeath) > ((_health) / 2)) && (((_health) / 2) > ((_currentHeath) - damage))) { KnockedBack(); } }
public void Attacked(int damage) { _currentHeath -= damage; if ((_currentHeath) <= 0) { KnockedBack(); Died(); }else if (((_currentHeath) > ((_health) / 2)) && (((_health) / 2) > ((_currentHeath) - damage))) { KnockedBack(); } }
private int rowColToIndex(int row, int col) { row = row - 1; int index = (row * (rows)) + col; if ((((((index > ((rows) * (rows))) || (index < 0)) || (row < 0)) || (row > (rows))) || (col < 0)) || (col > (rows))) throw new java.lang.IndexOutOfBoundsException(); return index; }
private int rowColToIndex(int row, int col) { row = row - 1; int index = (row * (rows)) + col; if ((((((index > ((rows) * (rows))) || (index < 0)) || (row < 0)) || (row >= (rows))) || (col <= 0)) || (col > (rows))) throw new java.lang.IndexOutOfBoundsException(); return index; }
public boolean folderSelectorON() { chooser.setFileSelectionMode(javax.swing.JFileChooser.DIRECTORIES_ONLY); chooser.showOpenDialog(chooser); java.io.File dir = chooser.getSelectedFile(); try { selectedPath = dir.getPath(); selectionEnd = true; return true; } catch (java.lang...
public boolean folderSelectorON() { chooser.setFileSelectionMode(javax.swing.JFileChooser.DIRECTORIES_ONLY); chooser.showOpenDialog(chooser); java.io.File dir = chooser.getSelectedFile(); try { selectedPath = dir.getPath(); selectionEnd = true; return true; } catch (java.lang...
private double inner_product(double[] d1, double[] d2, double initial) throws java.security.InvalidParameterException { if ((d1.length) != (d1.length)) { throw new java.security.InvalidParameterException("The arrays are not the same length"); } double val = initial; for (int i = 0; i < (d1.lengt...
private double inner_product(double[] d1, double[] d2, double initial) throws java.security.InvalidParameterException { if ((d1.length) != (d2.length)) { throw new java.security.InvalidParameterException("The arrays are not the same length"); } double val = initial; for (int i = 0; i < (d1.lengt...
public void doesNotReopenBrowserIfItFailed() { com.codeborne.selenide.Configuration.reopenBrowserOnFail = false; org.openqa.selenium.WebDriver webdriver = mock(org.openqa.selenium.WebDriver.class); container.THREAD_WEB_DRIVER.put(java.lang.Thread.currentThread().getId(), webdriver); org.junit.Assert.ass...
public void doesNotReopenBrowserIfItFailed() { com.codeborne.selenide.Configuration.reopenBrowserOnFail = false; org.openqa.selenium.WebDriver webdriver = mock(org.openqa.selenium.WebDriver.class); container.THREAD_WEB_DRIVER.put(java.lang.Thread.currentThread().getId(), webdriver); org.junit.Assert.ass...
public double getDoubleFromElement(java.lang.String el) { double d = 0; java.util.regex.Pattern p = java.util.regex.Pattern.compile("(\\d+(?:\\.\\d+))"); java.util.regex.Matcher m = p.matcher(el); while (m.find()) { d = java.lang.Double.parseDouble(m.group(1)); } return d; }
public double getDoubleFromElement(java.lang.String el) { if (el != null) { double d = 0; java.util.regex.Pattern p = java.util.regex.Pattern.compile("(\\d+(?:\\.\\d+))"); java.util.regex.Matcher m = p.matcher(el); while (m.find()) { d = java.lang.Double.parseDouble(m.gro...
void GenerateShipsOnTheField(int[][] f) { PutNDeckShip(f, 4); for (int i = 1; i <= 2; i++) { PutNDeckShip(f, 3); } for (int i = 1; i <= 3; i++) { PutNDeckShip(f, 2); } Put1DeckShip4Times(f); }
void GenerateShipsOnTheField(int[][] field) { PutNDeckShip(field, 4); for (int i = 1; i <= 2; i++) { PutNDeckShip(field, 3); } for (int i = 1; i <= 3; i++) { PutNDeckShip(field, 2); } Put1DeckShip4Times(field); }
private int findFALusingAdapterPosition(long l) { try { java.lang.String choosenID = adapter.getItem(((int) (l))).getSteamID(); for (int i = 0; i < (de.fosefx.steamnotificator.Main2Activity.friendArrayList.size()); i++) { if (de.fosefx.steamnotificator.Main2Activity.friendArrayList.get(i...
private int findFALusingAdapterPosition(long l) { try { java.lang.String choosenID = adapter.getItem(((int) (l))).getSteamID(); for (int i = 0; i < (de.fosefx.steamnotificator.Main2Activity.friendArrayList.size()); i++) { if (de.fosefx.steamnotificator.Main2Activity.friendArrayList.get(i...
public void cancelReplace(java.lang.String entryId) { com.kaltura.media.server.managers.KalturaLiveManager.logger.info("Cancel replacement is required"); com.kaltura.client.types.KalturaLiveEntry liveEntry = get(entryId); com.kaltura.client.KalturaClient impersonateClient = impersonate(liveEntry.partnerId);...
public void cancelReplace(java.lang.String entryId) { com.kaltura.media.server.managers.KalturaLiveManager.logger.info("Cancel replacement is required"); com.kaltura.client.types.KalturaLiveEntry liveEntry = get(entryId); com.kaltura.client.KalturaClient impersonateClient = impersonate(liveEntry.partnerId);...
private java.util.function.Consumer wrapVoidMethod(java.lang.reflect.Method method) { return ( c) -> { try { method.invoke(this, c); } catch (java.lang.reflect.InvocationTargetException e) { throw new io.atomix.copycat.error.CommandException(e.getCause()); } catch (ja...
private java.util.function.Consumer wrapVoidMethod(java.lang.reflect.Method method) { return ( c) -> { try { method.invoke(this, c); } catch (java.lang.reflect.InvocationTargetException e) { throw new io.atomix.copycat.error.CommandException(e); } catch (java.lang.Ill...
public java.util.List<com.siddhrans.biometric.model.User> findAllUsers() { org.hibernate.Criteria criteria = createEntityCriteria().addOrder(org.hibernate.criterion.Order.asc("firstName")); criteria.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY); java.util.List<com.siddhrans.biometric.model.User> users...
public java.util.List<com.siddhrans.biometric.model.User> findAllUsers() { org.hibernate.Criteria criteria = createEntityCriteria().addOrder(org.hibernate.criterion.Order.asc("id")); criteria.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY); java.util.List<com.siddhrans.biometric.model.User> users = ((ja...
public org.bukkit.World getWorld(java.lang.String worldname) { for (org.bukkit.World world : ((org.bukkit.World[]) (this.getServer().getWorlds().toArray()))) { if (world.getName().equalsIgnoreCase(worldname)) { return world; } } return null; }
public org.bukkit.World getWorld(java.lang.String worldname) { for (java.lang.Object world : this.getServer().getWorlds().toArray()) { if (!(world instanceof org.bukkit.World)) continue; if (((org.bukkit.World) (world)).getName().equalsIgnoreCase(worldname)) { return...
public void run() { com.rey.material.widget.CheckedTextView tv = getTabView(position); if (!(mScrolling)) { updateIndicator(tv.getLeft(), tv.getMeasuredWidth()); } smoothScrollTo((((tv.getLeft()) - (((getWidth()) - (tv.getWidth())) / 2)) + (getPaddingLeft())), 0); mTabAnimSelector = null; }
public void run() { com.rey.material.widget.CheckedTextView tv = getTabView(position); if (tv != null) { if (!(mScrolling)) updateIndicator(tv.getLeft(), tv.getMeasuredWidth()); smoothScrollTo((((tv.getLeft()) - (((getWidth()) - (tv.getWidth())) / 2)) + (getPaddingLeft())), ...
public void onDestroy() { int lastItemPosition = mLayoutManager.findFirstVisibleItemPosition(); java.lang.String chapterId = mAdapter.getFocusedChapterId(lastItemPosition); java.lang.String frameId = mAdapter.getFocusedFrameId(lastItemPosition); com.door43.translationstudio.util.AppContext.setLastFocus(...
public void onDestroy() { if ((mLayoutManager) != null) { int lastItemPosition = mLayoutManager.findFirstVisibleItemPosition(); java.lang.String chapterId = mAdapter.getFocusedChapterId(lastItemPosition); java.lang.String frameId = mAdapter.getFocusedFrameId(lastItemPosition); com.do...
public static java.net.URI getFileName() { if ((io.cloudracer.LogMonitor.getLogMonitor()) != null) { final org.apache.logging.log4j.core.LoggerContext context = ((org.apache.logging.log4j.core.LoggerContext) (org.apache.logging.log4j.LogManager.getContext(false))); final org.apache.logging.log4j.cor...
public static java.net.URI getFileName() { final org.apache.logging.log4j.core.LoggerContext context = ((org.apache.logging.log4j.core.LoggerContext) (org.apache.logging.log4j.LogManager.getContext(false))); final org.apache.logging.log4j.core.config.Configuration configuration = context.getConfiguration(); ...
public void solve(int iterations) { if (isStopped) { throw new sk.uniza.fri.hlavna2.diss.monte.carlo.core.exception.MonteCarloStoppedException(); } int i; for (i = statistics.getIterationsRunned(); i < ((statistics.getIterationsRunned()) + iterations); i++) { if (!(isStopped)) { ...
public void solve(int iterations) { if (isStopped) { throw new sk.uniza.fri.hlavna2.diss.monte.carlo.core.exception.MonteCarloStoppedException(); } int i; for (i = statistics.getIterationsRunned(); i < ((statistics.getIterationsRunned()) + iterations); i++) { if (!(isStopped)) { ...
private int IndexofPoint(Point[] pointsArr, Point point) { int size = pointsArr.length; for (int i = 0; i < size; i++) { if ((pointsArr[i].getY()) == (point.getY())) return i; } return -1; }
private int IndexofPoint(Point[] pointsArr, Point point) { int size = pointsArr.length; for (int i = 0; i < size; i++) { if (pointsArr[i].equals(point)) return i; } return -1; }
public void testForNamespace() { com.indeed.util.varexport.VarExporter alt = com.indeed.util.varexport.VarExporter.forNamespace("foo"); org.junit.Assert.assertFalse(alt.getVariables().iterator().hasNext()); com.indeed.util.varexport.VarExporter.forNamespace("foo").export(com.indeed.util.varexport.VarExporte...
public void testForNamespace() { com.indeed.util.varexport.VarExporter alt = com.indeed.util.varexport.VarExporter.forNamespace("foo"); org.junit.Assert.assertFalse(alt.getVariables().iterator().hasNext()); com.indeed.util.varexport.VarExporter.forNamespace("foo").export(com.indeed.util.varexport.VarExporte...
public void onImageFileGenerated(java.io.File file) { android.content.Intent takePictureIntent = new android.content.Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE); if ((takePictureIntent.resolveActivity(getActivity().getPackageManager())) != null) { takePictureIntent.putExtra(MediaStore.EXTRA...
public void onImageFileGenerated(android.net.Uri file) { android.content.Intent takePictureIntent = new android.content.Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE); if ((takePictureIntent.resolveActivity(getActivity().getPackageManager())) != null) { takePictureIntent.putExtra(MediaStore.EX...
public org.springframework.http.ResponseEntity<java.util.List<org.openbox.sf5.model.Transponders>> getTranspondersBySatelliteId(@org.springframework.web.bind.annotation.PathVariable(value = "filter") java.lang.String ignore, @org.springframework.web.bind.annotation.MatrixVariable(required = true, value = "satId") long ...
public org.springframework.http.ResponseEntity<java.util.List<org.openbox.sf5.model.Transponders>> getTranspondersBySatelliteId(@org.springframework.web.bind.annotation.MatrixVariable(required = true, value = "satId") long satId) { java.util.List<org.openbox.sf5.model.Transponders> transList = transpondersJsonizer....
private void getPlayerPassword(java.io.PrintWriter msgOut, java.io.BufferedReader msgIn, Player newPlayer) { java.lang.String tempPassword = ""; msgOut.print("Please input your Password: "); msgOut.flush(); try { tempPassword = msgIn.readLine(); } catch (java.io.IOException e) { java...
private boolean getPlayerPassword(java.io.PrintWriter msgOut, java.io.BufferedReader msgIn, Player newPlayer) { java.lang.String tempPassword = ""; msgOut.print("Please input your Password: "); msgOut.flush(); try { tempPassword = msgIn.readLine(); } catch (java.io.IOException e) { j...
public org.sagebionetworks.bridge.models.studies.Study getStudy(java.lang.String identifier) { com.google.common.base.Preconditions.checkArgument(org.apache.commons.lang3.StringUtils.isNotBlank(identifier), Validate.CANNOT_BE_BLANK, "identifier"); org.sagebionetworks.bridge.models.studies.Study study = cachePro...
public org.sagebionetworks.bridge.models.studies.Study getStudy(java.lang.String identifier) { com.google.common.base.Preconditions.checkArgument(org.apache.commons.lang3.StringUtils.isNotBlank(identifier), Validate.CANNOT_BE_BLANK, "identifier"); org.sagebionetworks.bridge.models.studies.Study study = cachePro...
public static <T> void modifyRecord(T object, net.moddity.droidnubekit.utils.DNKOperationType operationType, DroidNubeKitConstants.kDatabaseType environmentType, final net.moddity.droidnubekit.requests.DNKCallback<java.util.List<T>> callback) { if (!(object instanceof net.moddity.droidnubekit.objects.DNKObject)) { ...
public <T> void modifyRecord(T object, net.moddity.droidnubekit.utils.DNKOperationType operationType, DroidNubeKitConstants.kDatabaseType environmentType, final net.moddity.droidnubekit.requests.DNKCallback<java.util.List<T>> callback) { if (!(object instanceof net.moddity.droidnubekit.objects.DNKObject)) { ...
public void negativeCancelOrderTest() throws java.lang.Exception { try { com.foodybuddy.service.OrderService orderService = new com.foodybuddy.service.impl.OrderServiceImpl(sessionFactory); insertOrderUtil(orderService); int orderId = -1; orderService.cancelOrder(orderId); co...
public void negativeCancelOrderTest() throws java.lang.Exception { try { com.foodybuddy.service.OrderService orderService = new com.foodybuddy.service.impl.OrderServiceImpl(sessionFactory); insertOrderUtil(orderService); int orderId = -1; orderService.cancelOrder(orderId); co...
public java.lang.String loandata(java.lang.String page, java.lang.String size, org.springframework.ui.Model model) { try { size = "10"; java.util.List<java.lang.String> statuslist = new java.util.ArrayList<java.lang.String>(); statuslist.add(CrediteInfo.Status.WAIT_ASSIGN); org.sprin...
public java.lang.String loandata(java.lang.String page, java.lang.String size, org.springframework.ui.Model model) { try { size = "10"; org.springframework.data.domain.Page<com.jlfex.hermes.model.CrediteInfo> obj = creditInfoService.queryByCondition(null, page, size, null); model.addAttribut...
private synchronized boolean removeThreadFromList(final long threadId, boolean closeSocketAndStreams) { boolean threadRemoved = false; for (org.thaliproject.p2p.btconnectorlib.utils.BluetoothSocketIoThread thread : mSocketIoThreads) { if ((thread != null) && ((thread.getId()) == threadId)) { ...
private synchronized boolean removeThreadFromList(final long threadId, boolean closeSocketAndStreams) { boolean threadRemoved = false; for (org.thaliproject.p2p.btconnectorlib.utils.BluetoothSocketIoThread thread : mSocketIoThreads) { if ((thread != null) && ((thread.getId()) == threadId)) { ...
public void initializeSession(org.apache.mina.core.session.IoSession wsSession, org.apache.mina.core.future.IoFuture future) { wsSession.setAttribute(HttpAcceptor.SERVICE_REGISTRATION_KEY, session.getAttribute(HttpAcceptor.SERVICE_REGISTRATION_KEY)); wsSession.setAttribute(org.kaazing.gateway.transport.wsr.WsrA...
public void initializeSession(org.apache.mina.core.session.IoSession wsSession, org.apache.mina.core.future.IoFuture future) { wsSession.setAttribute(HttpAcceptor.SERVICE_REGISTRATION_KEY, session.getAttribute(HttpAcceptor.SERVICE_REGISTRATION_KEY)); wsSession.setAttribute(org.kaazing.gateway.transport.wsr.WsrA...
public void update() { super.update(); this.x = ((this.renderer.x()) * (com.darkxell.client.resources.images.AbstractDungeonTileset.TILE_SIZE)) + ((com.darkxell.client.resources.images.AbstractDungeonTileset.TILE_SIZE) / 2); this.y = ((this.renderer.y()) * (com.darkxell.client.resources.images.AbstractDunge...
public void update() { super.update(); this.x = (this.renderer.x()) + ((com.darkxell.client.resources.images.AbstractDungeonTileset.TILE_SIZE) / 2); this.y = (this.renderer.y()) + ((com.darkxell.client.resources.images.AbstractDungeonTileset.TILE_SIZE) / 2); }
public void dispose() { logger.debug("Disposing the Helios IP Vario handler for '{}'.", getThing().getUID().toString()); if ((logSubscriptionID) != 0) { unsubscribe(); } updateStatus(ThingStatus.OFFLINE); if (((logJob) != null) && (!(logJob.isCancelled()))) { logJob.cancel(true); ...
public void dispose() { logger.debug("Disposing the Helios IP Vario handler for '{}'.", getThing().getUID().toString()); if ((logSubscriptionID) != 0) { unsubscribe(); } if (((logJob) != null) && (!(logJob.isCancelled()))) { logJob.cancel(true); logJob = null; } if ((heli...
private void saveToStream(final org.eclipse.core.runtime.IProgressMonitor monitor, final org.csstudio.display.pvtable.persistence.PVTablePersistence persistence, final java.io.OutputStream stream) { if (monitor != null) monitor.beginTask("Save", IProgressMonitor.UNKNOWN); try { persistence....
private void saveToStream(final org.eclipse.core.runtime.IProgressMonitor monitor, final org.csstudio.display.pvtable.persistence.PVTablePersistence persistence, final java.io.OutputStream stream) { if (monitor != null) monitor.beginTask("Save", IProgressMonitor.UNKNOWN); try { persistence....
static boolean isAscending(int[] values) { int old = values[0]; for (int i = 1; i < (values.length); i++) { if (old > (values[i])) return false; } return true; }
static boolean isAscending(int[] values) { for (int i = 1; i < (values.length); i++) { if ((values[(i - 1)]) > (values[i])) return false; } return true; }
public java.util.Map<java.lang.Integer, java.util.Map<java.lang.Integer, java.lang.Double>> estimateRelevances(java.util.ArrayList<java.lang.Integer> startCategories, int topKShortestPathes, boolean distributeOverSiblingCategories) { java.util.List<java.util.List<java.util.List<grph.path.ArrayListPath>>> sourcesToT...
public java.util.Map<java.lang.Integer, java.util.Map<java.lang.Integer, java.lang.Double>> estimateRelevances(java.util.List<java.lang.Integer> startCategories, int topKShortestPathes, boolean distributeOverSiblingCategories) { java.util.List<java.util.List<java.util.List<grph.path.ArrayListPath>>> sourcesToTarget...
public int containsStraight() { startLoop : for (int i = 0; i <= 9; i++) { for (int j = i; j < (i + 5); j++) { if ((numberOf((j % 13))) != 1) continue startLoop; } return i; } return -1; }
private int containsStraight() { startLoop : for (int i = 0; i <= 9; i++) { for (int j = i; j < (i + 5); j++) { if ((numberOf((j % 13))) != 1) continue startLoop; } return i; } return -1; }
public static void main(java.lang.String[] args) { java.util.Scanner mainScan = new java.util.Scanner(java.lang.System.in); java.lang.System.out.print("Which method would you like to run? Type: numAvg, sup, xor randy. "); java.lang.String choice = mainScan.nextLine(); if (choice == "numAvg") { I...
public static void main(java.lang.String[] args) { java.util.Scanner mainScan = new java.util.Scanner(java.lang.System.in); java.lang.System.out.print("Which method would you like to run? Type: numAvg, sup, xor randy. "); java.lang.String choice = mainScan.nextLine(); if (choice.equals("numAvg")) { ...
protected void startWaiting(java.lang.String message, boolean canStop) { java.lang.String queue = (javax.swing.SwingUtilities.isEventDispatchThread()) ? "event dispatch thread." : ("a separate thread (" + (java.lang.Thread.currentThread().getName())) + ")."; java.lang.System.out.println(("Start waiting called f...
protected void startWaiting(java.lang.String message, boolean canStop) { java.lang.String queue = (javax.swing.SwingUtilities.isEventDispatchThread()) ? "event dispatch thread." : ("a separate thread (" + (java.lang.Thread.currentThread().getName())) + ")."; java.lang.System.out.println(("Start waiting called f...