buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public java.util.List<java.lang.String> getClassSubClasses(java.lang.String subject) { java.util.List<impl.Relationship> subClassesRela = this.childrenRelationships.get(subject); if (subClassesRela == null) return new java.util.ArrayList<java.lang.String>(); java.util.List<java.lang.String> sub...
public java.util.List<java.lang.String> getClassSubClasses(java.lang.String subject) { java.util.List<impl.Relationship> subClassesRela = this.childrenRelationships.get(subject); if (subClassesRela == null) return new java.util.ArrayList<java.lang.String>(); java.util.List<java.lang.String> sub...
public static android.graphics.Bitmap getScaledBitmap(java.lang.String path, android.app.Activity activity) { android.graphics.Point size = new android.graphics.Point(); activity.getWindowManager().getDefaultDisplay().getSize(size); java.lang.System.out.println(((" SIZE X Y " + (size.x)) + (size.y))); r...
public static android.graphics.Bitmap getScaledBitmap(java.lang.String path, android.app.Activity activity) { android.graphics.Point size = new android.graphics.Point(); activity.getWindowManager().getDefaultDisplay().getSize(size); return com.bignerdranch.android.criminalintent.PictureUtils.getScaledBitmap...
public void testSetSize() throws java.lang.Exception { final ch.cyberduck.core.io.FileBuffer buffer = new ch.cyberduck.core.io.FileBuffer(); org.junit.Assert.assertEquals(0L, buffer.length(), 0L); buffer.truncate(1L); org.junit.Assert.assertEquals(1L, buffer.length(), 0L); final byte[] chunk = org.a...
public void testSetSize() throws java.lang.Exception { final ch.cyberduck.core.io.FileBuffer buffer = new ch.cyberduck.core.io.FileBuffer(); assertEquals(0L, buffer.length(), 0L); buffer.truncate(1L); assertEquals(1L, buffer.length(), 0L); final byte[] chunk = org.apache.commons.lang3.RandomUtils.ne...
public static long recountDataSize() { java.lang.String[] fileNames = com.adsamcik.signalcollector.DataStore.getDataFileNames(true); long size = 0; for (java.lang.String fileName : fileNames) size += com.adsamcik.signalcollector.DataStore.sizeOf(fileName); com.adsamcik.signalcollector.Setti...
public static long recountDataSize() { java.lang.String[] fileNames = com.adsamcik.signalcollector.DataStore.getDataFileNames(true); if (fileNames == null) return 0; long size = 0; for (java.lang.String fileName : fileNames) size += com.adsamcik.signalcollector.DataStore.sizeOf(file...
public java.lang.String getKey() { java.util.concurrent.locks.Lock lock = mutationLock.readLock(); lock.lock(); try { return null == (templateResource) ? name() : templateResource.getKey().toString(); } finally { lock.unlock(); } }
public java.lang.String getKey() { java.util.concurrent.locks.Lock lock = mutationLock.readLock(); lock.lock(); try { return null == (templateResource) ? name : templateResource.getKey().toString(); } finally { lock.unlock(); } }
public static int getLastDigitOfFibonacciNumber(int n) { int[] fibArray = new int[n + 1]; fibArray[0] = 0; fibArray[1] = 1; for (int i = 2; i <= n; i++) { fibArray[i] = (fibArray[(i - 1)]) + (fibArray[(i - 2)]); } return (fibArray[n]) % 10; }
public static long getLastDigitOfFibonacciNumber(int n) { long[] fibArray = new long[n + 1]; fibArray[0] = 0; fibArray[1] = 1; for (int i = 2; i <= n; i++) { fibArray[i] = ((fibArray[(i - 1)]) + (fibArray[(i - 2)])) % 10; } return fibArray[n]; }
public void onDataChange(com.google.firebase.database.DataSnapshot dataSnapshot) { if ((dataSnapshot.exists()) && ((counter.decrementAndGet()) == 0)) { addUid(uid, mUid, reference); }else { android.widget.Toast.makeText(this, R.string.error_invalid_uid, Toast.LENGTH_SHORT).show(); } }
public void onDataChange(com.google.firebase.database.DataSnapshot dataSnapshot) { if (dataSnapshot.exists()) { if ((counter.decrementAndGet()) == 0) addUid(uid, mUid, reference); }else { android.widget.Toast.makeText(this, R.string.error_invalid_uid, Toast.LENGTH_SHORT).sho...
private int has4Kind() { java.util.ArrayList<edu.psu.ist412.poker.Card> sorted = sortByValue(getCombined()); java.util.ArrayList<edu.psu.ist412.poker.CardValue> cardValues = edu.psu.ist412.poker.CardValue.getAll(); int numValue = 0; for (int i = 0; i < (cardValues.size()); i++) { numValue = coun...
private int has4Kind() { java.util.ArrayList<edu.psu.ist412.poker.Card> sorted = sortByValue(getCombined()); java.util.ArrayList<edu.psu.ist412.poker.CardValue> cardValues = edu.psu.ist412.poker.CardValue.getAll(); int numValue = 0; for (int i = 0; i < (cardValues.size()); i++) { numValue = coun...
public void stop() throws javax.cache.CacheException { synchronized(status) { if (cacheConfiguration.isStatisticsEnabled()) { org.infinispan.jcache.util.JMXHelper.unregisterStatisticsMBean(cacheManager.getName(), getName()); } cache.stop(); cache.clear(); status =...
public void stop() throws javax.cache.CacheException { synchronized(status) { if (cacheConfiguration.isStatisticsEnabled()) { org.infinispan.jcache.util.JMXHelper.unregisterStatisticsMBean(cacheManager.getName(), getName()); } cache.clear(); cache.stop(); status =...
public boolean savePersonalInfo(me.shafin.sustord.model.PersonalInfo personalInfo) { try { org.hibernate.Session session = sessionFactory.openSession(); session.beginTransaction(); session.saveOrUpdate(personalInfo); session.getTransaction().commit(); session.close(); } c...
public boolean savePersonalInfo(me.shafin.sustord.model.PersonalInfo personalInfo) { org.hibernate.Session session = sessionFactory.openSession(); try { session.beginTransaction(); session.saveOrUpdate(personalInfo); session.getTransaction().commit(); session.close(); } catch...
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { if ((mHeadView) == null) { mHeadView = getChildAt(0); measureChildWithMargins(mHeadView, widthMeasureSpec, 0, MeasureSpec.UNSPECIFIED, 0); maxY = mHeadView.getMeasuredHeight(); mHeadHeight = mHeadView.getMeasured...
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { mHeadView = getChildAt(0); if (mHeadView = null) { measureChildWithMargins(mHeadView, widthMeasureSpec, 0, MeasureSpec.UNSPECIFIED, 0); maxY = mHeadView.getMeasuredHeight(); mHeadHeight = mHeadView.getMeasuredHeight(...
public void onClick(android.view.View v) { if ((i) == (cards.size())) { i = 0; } mCardQuestionTextView.setVisibility(View.VISIBLE); mCardAnswerTextView.setVisibility(View.GONE); mCardQuestionTextView.setText(cards.get(i).getQuestion()); mShowCardButton.setVisibility(View.VISIBLE); mN...
public void onClick(android.view.View v) { if ((i) == (cards.size())) { i = 0; } mCardAnswerTextView.setVisibility(View.GONE); mCardQuestionTextView.setText(cards.get(i).getQuestion()); mCardQuestionTextView.setVisibility(View.VISIBLE); mShowCardButton.setVisibility(View.VISIBLE); mN...
public void test_constructor_wholeValueIsDouble() throws org.kairosdb.client.builder.DataFormatException { org.kairosdb.client.builder.DataPoint dataPoint = new org.kairosdb.client.builder.DataPoint(93939393, 5.0); org.junit.Assert.assertThat(dataPoint.longValue(), org.hamcrest.Matchers.equalTo(5L)); org.ju...
public void test_constructor_wholeValueIsDouble() throws org.kairosdb.client.builder.DataFormatException { org.kairosdb.client.builder.DataPoint dataPoint = new org.kairosdb.client.builder.DataPoint(93939393, 5.0); org.junit.Assert.assertThat(dataPoint.longValue(), org.hamcrest.Matchers.equalTo(5L)); org.ju...
private java.util.ArrayList<java.lang.Integer> getRawResourcesIds() { java.util.ArrayList<java.lang.Integer> IDs = new java.util.ArrayList<>(); for (java.lang.String name : getRawResourcesNames()) { int id = getApplicationContext().getResources().getIdentifier(name, "raw", "com.example.user1.absolute");...
public java.util.ArrayList<java.lang.Integer> getRawResourcesIds() { java.util.ArrayList<java.lang.Integer> IDs = new java.util.ArrayList<>(); for (java.lang.String name : getRawResourcesNames()) { int id = getApplicationContext().getResources().getIdentifier(name, "raw", "com.example.user1.absolute"); ...
private Move standardMove(int start, int finish) { if ((ThirtyFiveElementArray.validLocation(finish)) && ((locations[finish]) == ' ')) { return new Move(player, start, finish, null, ThirtyFiveElementArray.shouldKing(player, finish)); } return null; }
private Move standardMove(int start, int finish) { if ((ThirtyFiveElementArray.validLocation(finish)) && ((locations[finish]) == ' ')) { return new Move(player, start, finish, null, shouldKing(player, locations[start], finish)); } return null; }
private void countup() { (counter)++; if ((limit) >= (counter)) { new android.os.Handler(android.os.Looper.getMainLooper()).post(new java.lang.Runnable() { @java.lang.Override public void run() { jp.shts.android.keyakifeed.models.eventbus.BusHolder.get().post(new ...
private void countup() { (counter)++; if ((limit) <= (counter)) { new android.os.Handler(android.os.Looper.getMainLooper()).post(new java.lang.Runnable() { @java.lang.Override public void run() { jp.shts.android.keyakifeed.models.eventbus.BusHolder.get().post(new ...
protected org.openedit.repository.Repository createRepo(java.lang.String inType) { org.openedit.repository.Repository repo; if (inType == "version") { repo = new org.openedit.repository.filesystem.XmlVersionRepository(); repo.setRepositoryType("versionRepository"); }else if (inType =...
protected org.openedit.repository.Repository createRepo(java.lang.String inType) { org.openedit.repository.Repository repo; if ("version".equals(inType)) { repo = new org.openedit.repository.filesystem.XmlVersionRepository(); repo.setRepositoryType("versionRepository"); }else if ("s3...
public void editCategory_shouldCallAddCategoryToDao() { edu.com.softserveinc.bawl.models.CategoryModel mockCategoryModel = org.mockito.Mockito.mock(edu.com.softserveinc.bawl.models.CategoryModel.class); org.mockito.Mockito.when(categoryService.getCategoryByID(1)).thenReturn(mockCategoryModel); categoryServi...
public void editCategory_shouldCallAddCategoryToDao() { edu.com.softserveinc.bawl.models.CategoryModel mockCategoryModel = org.mockito.Mockito.mock(edu.com.softserveinc.bawl.models.CategoryModel.class); org.mockito.Mockito.when(categoryService.getCategoryByID(1).get()).thenReturn(mockCategoryModel); categor...
private java.util.List<com.vividsolutions.jts.geom.Coordinate> makeExpectedCoordinates(double... points) { java.util.List<com.vividsolutions.jts.geom.Coordinate> result = new java.util.ArrayList<com.vividsolutions.jts.geom.Coordinate>(points.length); double x = -1; for (double d : points) { if (x ==...
private java.util.List<com.vividsolutions.jts.geom.Coordinate> makeExpectedCoordinates(double... points) { java.util.List<com.vividsolutions.jts.geom.Coordinate> result = new java.util.ArrayList<com.vividsolutions.jts.geom.Coordinate>(points.length); double x = -1; for (double d : points) { if (x ==...
public void test_recipes() { java.lang.String allRecipes = ""; java.util.ArrayList<java.lang.String> recipes = access.getRecipes(); java.util.ArrayList<java.lang.String> all = access.getAllIngredients(); for (java.lang.String i : recipes) { java.util.ArrayList<java.lang.String> ingred = access.g...
public void test_recipes() { java.util.ArrayList<java.lang.String> recipes = access.getRecipes(); java.util.ArrayList<java.lang.String> all = access.getAllIngredients(); for (java.lang.String i : all) { java.util.ArrayList<java.lang.String> ingred = access.getIngredients(i); for (java.lang.S...
public void onClick(android.view.View v) { v.setOnClickListener(null); java.lang.String num = ev.getText().toString(); if ("".equals(num)) return ; setText(inIntTermsOfAny(java.lang.Math.pow(currentValue, parseDouble(num))), ev); v.setVisibility(View.GONE); }
public void onClick(android.view.View v) { v.setOnClickListener(null); java.lang.String num = ev.getText().toString(); if (!("".equals(num))) setText(inIntTermsOfAny(java.lang.Math.pow(currentValue, parseDouble(num))), ev); v.setVisibility(View.GONE); }
public Item removeFirst() { if ((count) <= 0) throw new java.util.NoSuchElementException(); (count)--; Deque<Item>.Node result = first; if ((count) <= 0) { first = null; last = null; }else { first = first.next; } return result.item; }
public Item removeFirst() { if ((count) <= 0) throw new java.util.NoSuchElementException(); (count)--; Item result = first.item; if ((count) <= 0) { first = null; last = null; }else { first = first.next; } return result; }
public static boolean containsString(java.lang.String[] array, java.lang.String string) { for (int i = 0; i < (array.length); i++) { if (array[i].equals(string)) { return true; } } return false; }
private static boolean containsString(java.lang.String[] array, java.lang.String string) { for (int i = 0; i < (array.length); i++) { if (array[i].equals(string)) { return true; } } return false; }
private void initUi(android.content.Context ctx) { if (!(checkForColorsDb())) { try { android.util.Log.d("c", "DOES NOT EXIST!"); ColorsUtil.FileUtil.setupData(SEED_DATA_PATH, SAVE_FILE_PATH, ",", this); } catch (java.io.IOException e) { } } loadColors(ctx, SA...
private void initUi(android.content.Context ctx) { if (!(checkForColorsDb())) { try { ColorsUtil.FileUtil.setupData(SEED_DATA_PATH, SAVE_FILE_PATH, ",", this); } catch (java.io.IOException e) { } } loadColors(ctx, SAVE_FILE_PATH); android.widget.LinearLayout btns = ((...
static void checkLocationPermissions(android.app.Activity targetActivity, com.airbnb.android.airmapview.AirMapInterface airMapInterface) { if (com.airbnb.android.airmapview.RuntimePermissionUtils.hasSelfPermissions(targetActivity, com.airbnb.android.airmapview.RuntimePermissionUtils.LOCATION_PERMISSIONS)) { ...
static boolean checkLocationPermissions(android.app.Activity targetActivity, com.airbnb.android.airmapview.AirMapInterface airMapInterface) { if (com.airbnb.android.airmapview.RuntimePermissionUtils.hasSelfPermissions(targetActivity, com.airbnb.android.airmapview.RuntimePermissionUtils.LOCATION_PERMISSIONS)) { ...
public void apply(android.database.Cursor cursor, com.th3l4b.srm.model.runtime.IInstance instance) throws java.lang.Exception { int i = columnIndex(); if (cursor.isNull(i)) { java.lang.String v = cursor.getString(i); runtime().set(v, instance); } }
public void apply(android.database.Cursor cursor, com.th3l4b.srm.model.runtime.IInstance instance) throws java.lang.Exception { int i = columnIndex(); if (!(cursor.isNull(i))) { java.lang.String v = cursor.getString(i); runtime().set(v, instance); } }
public void initialise() { overlay = nuiManager.addOverlay(org.terasology.logic.console.ConsoleSystem.MINICHAT_UI, org.terasology.logic.console.ui.MiniChatOverlay.class); console.subscribe((org.terasology.logic.console.Message message) -> { if (!(nuiManager.isOpen("engine:console"))) { overl...
public void initialise() { overlay = nuiManager.addOverlay(org.terasology.logic.console.ConsoleSystem.MINICHAT_UI, org.terasology.logic.console.ui.MiniChatOverlay.class); console.subscribe((org.terasology.logic.console.Message message) -> { if (!(nuiManager.isOpen("engine:console"))) { overl...
public static java.lang.String getLogFilesFolder() throws qla.modules.actions.exeption.ActionException { java.lang.String pathToFolder = qla.modules.confuguration.AppConfiguration.getProperty("logfiles.folder"); if (org.springframework.util.StringUtils.isEmpty(pathToFolder)) { throw new qla.modules.acti...
public static java.lang.String getLogFilesFolder() throws qla.modules.actions.exeption.ActionException { java.lang.String pathToFolder = qla.modules.confuguration.AppConfiguration.getProperty("logfiles.folder"); if (org.springframework.util.StringUtils.isEmpty(pathToFolder)) { throw new qla.modules.acti...
public javax.ws.rs.core.Response creatTicket(HW12Rest.Ticket ticket) throws java.sql.SQLException { try { entryManager.addTicket(ticket); } catch (java.lang.Exception e) { e.printStackTrace(); } java.lang.System.out.println("are we here"); return javax.ws.rs.core.Response.status(200)...
public javax.ws.rs.core.Response creatTicket(HW12Rest.Ticket ticket) throws java.sql.SQLException { try { entryManager.addTicket(ticket); } catch (java.lang.Exception e) { e.printStackTrace(); } return javax.ws.rs.core.Response.status(200).entity("saved successfully").build(); }
public void checkLoginStatus() { com.firebase.client.AuthData authData = mFirebaseRef.getAuth(); if (authData != null) { android.util.Log.v(com.epicodus.myrestaurants.ui.LoginActivity.TAG, authData.getUid()); android.util.Log.v(com.epicodus.myrestaurants.ui.LoginActivity.TAG, mSharedPreferences....
public void checkLoginStatus() { com.firebase.client.AuthData authData = mFirebaseRef.getAuth(); if ((authData != null) && (authData.getUid().equals(mSharedPreferences.getString(Constants.KEY_UID, null)))) { android.content.Intent intent = new android.content.Intent(this, com.epicodus.myrestaurants.ui.M...
private void traceCall(java.lang.String method, java.lang.String[] arguments) { try { java.io.FileOutputStream fos = new java.io.FileOutputStream(filename); fos.write((((('\t' + method) + '(') + (java.lang.String.join(", ", arguments))) + ')').getBytes()); fos.close(); } catch (java.io.I...
private void traceCall(java.lang.String method, java.lang.String[] arguments) { try { java.io.FileOutputStream fos = new java.io.FileOutputStream(filename, true); fos.write((((('\t' + method) + '(') + (java.lang.String.join(", ", arguments))) + ')').getBytes()); fos.close(); } catch (jav...
public static void keyCheck(int alpha, int beta) { if ((((alpha < 1) || (alpha > 26)) || (beta < 1)) || (beta > 26)) { java.lang.System.out.println("Error key must have values greater than 0 and less than 26"); java.lang.System.exit(0); } }
public static boolean keyCheck(int alpha, int beta) { if ((((alpha < 1) || (alpha > 26)) || (beta < 1)) || (beta > 26)) { return false; } return true; }
public void handleFree(final jd.plugins.DownloadLink link) throws java.lang.Exception, jd.plugins.PluginException { showMessage(link, "Task 1: Check URL validity!"); final jd.plugins.DownloadLink.AvailableStatus status = requestFileInformation(link); if (AvailableStatus.UNCHECKABLE.equals(status)) { ...
public void handleFree(final jd.plugins.DownloadLink link) throws java.lang.Exception, jd.plugins.PluginException { showMessage(link, "Task 1: Check URL validity!"); final jd.plugins.DownloadLink.AvailableStatus status = requestFileInformation(link); if (AvailableStatus.UNCHECKABLE.equals(status)) { ...
public boolean execute() { _ble.relayOn(_address, new nl.dobots.bluenet.ble.base.callbacks.IStatusCallback() { @java.lang.Override public void onSuccess() { android.util.Log.i(nl.dobots.crownstone.gui.control.ControlMainFragment.TAG, "relay on success"); updateLightBulb(true)...
public boolean execute() { _ble.relayOn(_address, new nl.dobots.bluenet.ble.base.callbacks.IStatusCallback() { @java.lang.Override public void onSuccess() { android.util.Log.i(nl.dobots.crownstone.gui.control.ControlMainFragment.TAG, "relay on success"); done(); } ...
public com.haibin.httpnet.builder.Request build() { if (((mHttpContent) == null) && ((mParams) != null)) { if ((mParams.getMultiParams()) != null) { mHttpContent = new com.haibin.httpnet.core.io.MultiPartContent(mParams, mEncode); }else { mHttpContent = new com.haibin.httpnet...
public com.haibin.httpnet.builder.Request build() { if (((mHttpContent) == null) && ((mParams) != null)) { if ((mParams.getMultiParams()) != null) { mHttpContent = new com.haibin.httpnet.core.io.MultiPartContent(mParams, mEncode); }else { mHttpContent = new com.haibin.httpnet...
private void ok() { if ((builder.locationNameListener) != null) { builder.locationNameListener.locationName(locationET.getText().toString().trim()); builder.locationNameListener.placeId(place_id); builder.locationNameListener.getLatLng(latLngLocation); } dismiss(); }
private void ok() { if ((builder.locationNameListener) != null) { builder.locationNameListener.getLatLng(latLngLocation); builder.locationNameListener.locationName(locationET.getText().toString().trim()); builder.locationNameListener.placeId(place_id); } dismiss(); }
public void selectNext() { if ((getSelectedImage()) instanceof org.openstreetmap.josm.plugins.mapillary.MapillaryImage) { if ((getSelectedImage()) == null) return ; if ((((org.openstreetmap.josm.plugins.mapillary.MapillaryImage) (getSelectedImage())).getSequence()) == null) ...
public void selectNext() { if ((getSelectedImage()) instanceof org.openstreetmap.josm.plugins.mapillary.MapillaryImage) { if ((getSelectedImage()) == null) return ; if ((((org.openstreetmap.josm.plugins.mapillary.MapillaryImage) (getSelectedImage())).getSequence()) == null) ...
public void onClick(android.view.View v) { com.customview.pranay.dasmusica.model.MusicPOJO musicPOJO = com.customview.pranay.dasmusica.model.MusicPOJO.getInstance(); java.util.ArrayList<com.customview.pranay.dasmusica.model.SongsPojo> list = new java.util.ArrayList(musicPOJO.getSongsList()); musicPOJO.clear...
public void onClick(android.view.View v) { com.customview.pranay.dasmusica.model.MusicPOJO musicPOJO = com.customview.pranay.dasmusica.model.MusicPOJO.getInstance(); java.util.ArrayList<com.customview.pranay.dasmusica.model.SongsPojo> list = new java.util.ArrayList(musicPOJO.getSongsList()); musicPOJO.clear...
protected void initializeClientConfiguration() { if (((this.casPrefixUrl) != null) && (!(this.casPrefixUrl.endsWith("/")))) { this.casPrefixUrl += "/"; } if (org.pac4j.core.util.CommonHelper.isBlank(this.casPrefixUrl)) { this.casPrefixUrl = this.casLoginUrl.replaceFirst("/login$", "/$"); ...
protected void initializeClientConfiguration() { if (((this.casPrefixUrl) != null) && (!(this.casPrefixUrl.endsWith("/")))) { this.casPrefixUrl += "/"; } if (org.pac4j.core.util.CommonHelper.isBlank(this.casPrefixUrl)) { this.casPrefixUrl = this.casLoginUrl.replaceFirst("/login$", "/"); ...
public void whenUserResetsForgottenPasswordExpired_verifyBadCredentialsExceptionThrown() throws java.lang.Exception { com.e451.rest.domains.user.User user = users.get(0); user.setResetPasswordGuid("1234"); user.setResetPasswordSentDate(new java.util.Date(0L)); org.mockito.Mockito.when(userRepository.fin...
public void whenUserResetsForgottenPasswordExpired_verifyBadCredentialsExceptionThrown() throws java.lang.Exception { com.e451.rest.domains.user.User user = users.get(0); user.setResetPasswordGuid("1234"); user.setResetPasswordSentDate(new java.util.Date(0L)); org.mockito.Mockito.when(userRepository.fin...
public void toResponseCode_BaseResponse_Test() { final java.lang.String expected = "try (final InputStream inputStream = new ReadableByteChannelInputStream(blockingByteChannel)) {\n" + ((" final Type result = XmlOutput.fromXml(inputStream, Type.class);\n" + " return new TestRes...
public void toResponseCode_BaseResponse_Test() { final java.lang.String expected = "try (final InputStream inputStream = new ReadableByteChannelInputStream(blockingByteChannel)) {\n" + ((" final Type result = XmlOutput.fromXml(inputStream, Type.class);\n" + " return new TestRes...
public void click(java.awt.Component c) { if ((robot) != null) { java.awt.Point point = c.getLocation(); javax.swing.SwingUtilities.convertPointToScreen(point, c); robot.mouseMove(point.x, point.y); robot.mousePress(java.awt.event.InputEvent.BUTTON1_DOWN_MASK); robot.mouseRel...
public void click(java.awt.Component c) { if ((robot) != null) { java.awt.Point point = c.getLocation(); javax.swing.SwingUtilities.convertPointToScreen(point, this); robot.mouseMove(point.x, point.y); robot.mousePress(java.awt.event.InputEvent.BUTTON1_DOWN_MASK); robot.mouse...
public void hashCodeTest() { main.java.group37.bejeweled.board.Tile tile = new main.java.group37.bejeweled.board.Tile(1, 1); tile.setIndex(2); main.java.group37.bejeweled.board.Tile tile2 = new main.java.group37.bejeweled.board.Tile(1, 1); tile2.setIndex(2); assertTrue(((tile.hashCode()) == (tile2.h...
public void hashCodeTest() { main.java.group37.bejeweled.board.Tile tile = new main.java.group37.bejeweled.board.Tile(1, 1); tile.setIndex(2); main.java.group37.bejeweled.board.Tile tile2 = new main.java.group37.bejeweled.board.Tile(1, 1); tile2.setIndex(2); java.lang.System.out.println(); asser...
public static java.lang.String shortify(java.lang.String text) { int maxlength = 22; if ((text.length()) <= maxlength) { return text; }else { return (text.substring(0, (maxlength + 1))) + "..."; } }
public static java.lang.String shortify(java.lang.String text) { int maxlength = 22; if ((text == null) || ((text.length()) <= maxlength)) { return text; }else { return (text.substring(0, (maxlength + 1))) + "..."; } }
public void deleteOneGroup() { int index = extendedGroupIndexGettind(); com.example.utilits.SortedListOf<com.example.tests.ObjGroup> beforeGroupsList = app.getGroupHelper().getGroupList(); int idGroup = app.getGroupHelper().getIdGroup(index); app.getGroupHelper().selectGroup(idGroup).deleteGroup(); ...
public void deleteOneGroup() { int index = extendedGroupIndexGettind(); com.example.utilits.SortedListOf<com.example.tests.ObjGroup> beforeGroupsList = app.getGroupHelper().getGroupList(); app.getGroupHelper().selectGroup(index).deleteGroup(); com.example.utilits.SortedListOf<com.example.tests.ObjGroup>...
public java.awt.Component getListCellRendererComponent(javax.swing.JList list, java.lang.Object value, int index, boolean isSelected, boolean hasFocus) { if (isSelected && (value instanceof org.promasi.client_swing.components.JList.CheckBoxListEntry)) { org.promasi.client_swing.components.JList.CheckBoxList...
public java.awt.Component getListCellRendererComponent(javax.swing.JList list, java.lang.Object value, int index, boolean isSelected, boolean hasFocus) { if (value instanceof org.promasi.client_swing.components.JList.CheckBoxListEntry) { org.promasi.client_swing.components.JList.CheckBoxListEntry entry = ((...
public void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); android.content.SharedPreferences sp = android.preference.PreferenceManager.getDefaultSharedPreferences(getActivity()); mUserLearnedDrawer = sp.getBoolean(com.dc.cowbird.NavigationDrawerFragment.PREF_USER_LEARNE...
public void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); android.content.SharedPreferences sp = android.preference.PreferenceManager.getDefaultSharedPreferences(getActivity()); mUserLearnedDrawer = sp.getBoolean(com.dc.cowbird.NavigationDrawerFragment.PREF_USER_LEARNE...
public static void main(java.lang.String[] args) { int[] data = new int[]{ 5 , 4 , 3 , 2 , 1 }; pl.java.recruitmenttask.app.sort.Sorter sorter = new pl.java.recruitmenttask.app.sort.Sorter(false); sorter.trigger(data); java.lang.System.out.printf("Results:"); for (int i = 0; i < (data.length); ++i) ...
public static void main(java.lang.String[] args) { java.lang.Integer[] data = new java.lang.Integer[]{ 5 , 4 , 3 , 2 , 1 }; pl.java.recruitmenttask.app.sort.Sorter sorter = new pl.java.recruitmenttask.app.sort.Sorter(false); sorter.trigger(data); java.lang.System.out.printf("Results:"); for (int i =...
net.ogiekako.algorithm.geometry.Point rot(double x) { return new net.ogiekako.algorithm.geometry.Point(((x * (java.lang.Math.cos(x))) - ((y) * (java.lang.Math.sin(x)))), (((y) * (java.lang.Math.cos(x))) + (x * (java.lang.Math.sin(x))))); }
net.ogiekako.algorithm.geometry.Point rot(double t) { return new net.ogiekako.algorithm.geometry.Point((((x) * (java.lang.Math.cos(t))) - ((y) * (java.lang.Math.sin(t)))), (((y) * (java.lang.Math.cos(t))) + ((x) * (java.lang.Math.sin(t))))); }
public static ReverseLinkedList.LinkedListNode reverseList(ReverseLinkedList.LinkedListNode front) { if ((front.next) != null) { ReverseLinkedList.LinkedListNode curr = front; if ((front.next.next) == null) { front = front.next; front.next = curr; curr.next = null...
public static ReverseLinkedList.LinkedListNode reverseList(ReverseLinkedList.LinkedListNode front) { ReverseLinkedList.LinkedListNode curr = front; ReverseLinkedList.LinkedListNode temp; while ((curr != null) && ((curr.next) != null)) { temp = front; front = curr.next; curr.next = fr...
public void process(final cfa.vo.iris.sed.ExtSed source, cfa.vo.iris.events.SedCommand payload) { if ((payload == (cfa.vo.iris.events.SedCommand.SELECTED)) || (payload == (cfa.vo.iris.events.SedCommand.CHANGED))) { if ((source.getNumberOfSegments()) > 0) { display(source); } }else ...
public void process(final cfa.vo.iris.sed.ExtSed source, cfa.vo.iris.events.SedCommand payload) { if ((payload == (cfa.vo.iris.events.SedCommand.SELECTED)) || (payload == (cfa.vo.iris.events.SedCommand.CHANGED))) { if ((source.getNumberOfSegments()) > 0) { display(source); }else { ...
public void getFriendsTest() { java.lang.String[] expectedFriends = new java.lang.String[]{ "TestUser" , "EnochTsang" }; java.lang.String[] actualFriends = userDataGuard.getFriends("BillyBob"); java.util.Arrays.sort(expectedFriends); java.util.Arrays.sort(actualFriends); assertArrayEquals(actualFrie...
public void getFriendsTest() { java.lang.String[] expectedFriends = new java.lang.String[]{ "TestUser" }; java.lang.String[] actualFriends = userDataGuard.getFriends("BillyBob"); java.util.Arrays.sort(expectedFriends); java.util.Arrays.sort(actualFriends); assertArrayEquals(actualFriends, expectedFr...
public boolean removeFeature(java.lang.String code) throws org.wso2.carbon.device.mgt.common.DeviceManagementException { boolean status; try { org.wso2.carbon.device.mgt.mobile.impl.windows.dao.WindowsDAOFactory.beginTransaction(); featureDAO.deleteFeatureByCode(code); org.wso2.carbon.de...
public boolean removeFeature(java.lang.String code) throws org.wso2.carbon.device.mgt.common.DeviceManagementException { boolean status; try { org.wso2.carbon.device.mgt.mobile.impl.windows.dao.WindowsDAOFactory.beginTransaction(); featureDAO.deleteFeatureByCode(code); org.wso2.carbon.de...
public java.util.Set<org.sosy_lab.solver.api.BooleanFormula> performWeakening(java.util.Map<org.sosy_lab.solver.api.BooleanFormula, org.sosy_lab.solver.api.BooleanFormula> selectionInfo, org.sosy_lab.solver.api.BooleanFormula fromState, org.sosy_lab.cpachecker.util.predicates.pathformula.PathFormula transition, org.sos...
public java.util.Set<org.sosy_lab.solver.api.BooleanFormula> performWeakening(java.util.Map<org.sosy_lab.solver.api.BooleanFormula, org.sosy_lab.solver.api.BooleanFormula> selectionInfo, org.sosy_lab.solver.api.BooleanFormula fromState, org.sosy_lab.cpachecker.util.predicates.pathformula.PathFormula transition, org.sos...
public Item removeFirst() { DequeRandomizedQueue.Deque<Item>.Node<Item> current = null; if (isEmpty()) { throw new java.util.NoSuchElementException("You can't remove an Item from an empty Deque"); }else if ((count) == 1) { Item item = first.item; first = null; ...
public Item removeFirst() { DequeRandomizedQueue.Deque<Item>.Node<Item> current = null; if (isEmpty()) { throw new java.util.NoSuchElementException("You can't remove an Item from an empty Deque"); }else if ((count) == 1) { Item item = first.item; first = null; ...
private static byte[] retrieveOutputBuffer(int utfCount) { byte[] utfBytes = org.apache.cassandra.io.util.AbstractDataOutputStreamAndChannelPlus.utfBytesLocal.get(); if ((utfBytes == null) || ((utfBytes.length) < utfCount)) { utfBytes = new byte[java.lang.Math.min(org.apache.cassandra.io.util.AbstractDa...
private static byte[] retrieveOutputBuffer(int utfCount) { byte[] utfBytes = org.apache.cassandra.io.util.AbstractDataOutputStreamAndChannelPlus.utfBytesLocal.get(); if ((utfBytes.length) < utfCount) { utfBytes = new byte[java.lang.Math.min(org.apache.cassandra.io.util.AbstractDataOutputStreamAndChannel...
public static void appendFile(java.lang.String content, java.lang.String fileName) { java.io.File file = cn.j1angvei.castk2.util.FileUtil.createFileIfNotExist(fileName); try { org.apache.commons.io.FileUtils.write(file, content, java.nio.charset.Charset.defaultCharset(), true); } catch (java.io.IOEx...
public static void appendFile(java.lang.String content, java.lang.String fileName) { java.io.File file = cn.j1angvei.castk2.util.FileUtil.createFileIfNotExist(fileName); try { assert file != null; org.apache.commons.io.FileUtils.write(file, content, java.nio.charset.Charset.defaultCharset(), tru...
public static boolean operator_lessEqualsThan(org.eclipse.smarthome.core.types.Type type, java.lang.Number x) { if ((type != null) && (type instanceof org.eclipse.smarthome.core.library.types.DecimalType)) { return (((org.eclipse.smarthome.core.library.types.DecimalType) (type)).toBigDecimal().compareTo(org...
public static boolean operator_lessEqualsThan(org.eclipse.smarthome.core.types.Type type, java.lang.Number x) { if (((type != null) && (type instanceof org.eclipse.smarthome.core.library.types.DecimalType)) && (x != null)) { return (((org.eclipse.smarthome.core.library.types.DecimalType) (type)).toBigDecima...
public static org.apache.cxf.rs.security.jose.jwe.KeyDecryptionProvider getPrivateKeyDecryptionProvider(java.security.PrivateKey key, org.apache.cxf.rs.security.jose.jwa.KeyAlgorithm algo) { if (key instanceof java.security.interfaces.RSAPrivateKey) { return new org.apache.cxf.rs.security.jose.jwe.RSAKeyDec...
public static org.apache.cxf.rs.security.jose.jwe.KeyDecryptionProvider getPrivateKeyDecryptionProvider(java.security.PrivateKey key, org.apache.cxf.rs.security.jose.jwa.KeyAlgorithm algo) { if (key instanceof java.security.interfaces.RSAPrivateKey) { return new org.apache.cxf.rs.security.jose.jwe.RSAKeyDec...
public void onClick(android.view.View v) { android.widget.TextView exp = ((android.widget.TextView) (findViewById(R.id.expression))); exp.setText(exp.getText().toString().substring(0, ((exp.getText().length()) - 1))); }
public void onClick(android.view.View v) { android.widget.TextView exp = ((android.widget.TextView) (findViewById(R.id.expression))); if ((exp.getText().toString().length()) > 0) exp.setText(exp.getText().toString().substring(0, ((exp.getText().length()) - 1))); }
public boolean execute(net.minecraft.world.World world, int x, int y, int z) { if (!(((net.minecraft.entity.passive.EntityAnimal) (targets[0].getEntity())).isChild())) { ((net.minecraft.entity.passive.EntityAnimal) (targets[0].getEntity())).onKillCommand(); return true; } return false; }
public boolean execute(net.minecraft.world.World world, int x, int y, int z) { if ((targets[0].getEntity()) instanceof net.minecraft.entity.passive.EntityAnimal) { if (!(((net.minecraft.entity.passive.EntityAnimal) (targets[0].getEntity())).isChild())) { ((net.minecraft.entity.passive.EntityAnim...
private int selectSpinnerItem(android.widget.SpinnerAdapter adapter) { if ((card) != null) for (int i = 0; i < (adapter.getCount()); i++) if (adapter.getItem(i).equals(card.getFlag())) { positionAccount = i; return i; } return 0; }
private int selectSpinnerItem(android.widget.SpinnerAdapter adapter) { if ((card) != null) { for (int i = 0; i < (adapter.getCount()); i++) if (adapter.getItem(i).equals(card.getFlag())) { return i; } } return 0; }
public com.sonycsl.echo.EchoFrame receive(java.net.Socket socket) throws java.io.IOException { java.io.DataInputStream in = new java.io.DataInputStream(socket.getInputStream()); java.lang.String address = socket.getInetAddress().getHostAddress(); com.sonycsl.echo.EchoFrame frame = null; try { fr...
public com.sonycsl.echo.EchoFrame receive(java.net.Socket socket) throws java.io.IOException { java.io.DataInputStream in = new java.io.DataInputStream(socket.getInputStream()); java.lang.String address = socket.getInetAddress().getHostAddress(); com.sonycsl.echo.EchoFrame frame = null; try { fr...
private net.mwplay.nativefont.NativeLabel addLabel50(java.lang.String text, com.badlogic.gdx.math.Vector2 pos, com.badlogic.gdx.graphics.Color strokeColor) { label = new net.mwplay.nativefont.NativeLabel("", game.fonts.get("font50"), com.badlogic.gdx.graphics.Color.BLACK); label.setText(text); label.setPosi...
private net.mwplay.nativefont.NativeLabel addLabel50(java.lang.String text, com.badlogic.gdx.math.Vector2 pos, com.badlogic.gdx.graphics.Color strokeColor) { label = new net.mwplay.nativefont.NativeLabel("", game.fonts.get("font50"), com.badlogic.gdx.graphics.Color.BLACK); label.setText(text); label.setPosi...
public void testBeforeClass() { com.carrotsearch.junitbenchmarks.Result result = org.junit.runner.JUnitCore.runClasses(com.carrotsearch.junitbenchmarks.TestAssumptions.AssumeOnBeforeClass.class); org.fest.assertions.api.Assertions.assertThat(result.getFailures()).isEmpty(); org.fest.assertions.api.Assertion...
public void testBeforeClass() { com.carrotsearch.junitbenchmarks.Result result = org.junit.runner.JUnitCore.runClasses(com.carrotsearch.junitbenchmarks.TestAssumptions.AssumeOnBeforeClass.class); org.fest.assertions.api.Assertions.assertThat(result.getFailures()).isEmpty(); org.fest.assertions.api.Assertion...
public void remove(java.lang.Object o) { LinkedList<E>.LinkedListNode<E> current = head; while ((current != null) && (o.equals(current.element))) { current = current.next; } removeHelper(current); }
public void remove(java.lang.Object o) { LinkedList<E>.LinkedListNode<E> current = head; if (o == null) { while ((current != null) && ((current.element) != null)) { current = current.next; } }else { while ((current != null) && (!(o.equals(current.element)))) { ...
public void onItemSelected(android.widget.AdapterView<?> parent, android.view.View view, int pos, long id) { ((android.widget.TextView) (view)).setText(null); switch (pos) { case 0 : break; case 1 : com.facebook.login.LoginManager.getInstance().logOut(); com.p...
public void onItemSelected(android.widget.AdapterView<?> parent, android.view.View view, int pos, long id) { ((android.widget.TextView) (view)).setText(null); switch (pos) { case 0 : break; case 1 : com.facebook.login.LoginManager.getInstance().logOut(); com.p...
public java.lang.String clean(java.lang.String verse) { return verse.replaceAll("<(\"[^\"]*\"|\'[^\']*\'|[^\'\">])*>", "").replaceAll("&nbsp;", " ").replaceFirst("^.*\n[0-9]+", "").replaceAll("\n", "").replaceFirst("[0-9]+", "").replaceAll("\\[[a-z]]", "").replaceAll("[ ]{2,}", " ").trim(); }
public java.lang.String clean(java.lang.String verse) { return verse.replaceAll("<(\"[^\"]*\"|\'[^\']*\'|[^\'\">])*>", "").replaceAll("&nbsp;", " ").replaceFirst("^.*\n[0-9]+", "").replaceAll("\n", " ").replaceFirst("[0-9]+", "").replaceAll("\\[[a-z]]", "").replaceAll("[ ]{2,}", " ").trim(); }
private void testFailingWithEmptyProperties(final org.everit.osgi.ecm.component.ri.ComponentContainerInstance<org.everit.osgi.ecm.component.tests.FailingComponent> container) { java.util.Hashtable<java.lang.String, java.lang.Object> properties = new java.util.Hashtable<java.lang.String, java.lang.Object>(); upd...
private void testFailingWithEmptyProperties(final org.everit.osgi.ecm.component.ri.ComponentContainerInstance<org.everit.osgi.ecm.component.tests.FailingComponent> container) { java.util.Hashtable<java.lang.String, java.lang.Object> properties = new java.util.Hashtable<java.lang.String, java.lang.Object>(); upd...
private void percentEncode(java.util.Map<java.lang.String, java.lang.String> map) { map.forEach(( a, b) -> { try { percentEncode(a); } catch (java.io.UnsupportedEncodingException e) { e.printStackTrace(); } try { percentEncode(b); } catch (...
private java.util.Map<java.lang.String, java.lang.String> percentEncode(java.util.Map<java.lang.String, java.lang.String> map) { java.util.Map<java.lang.String, java.lang.String> out = new java.util.HashMap<>(); map.forEach(( a, b) -> { try { out.put(percentEncode(a), percentEncode(b)); ...
public void add(java.lang.Object key, qp.utils.Tuple value) { java.util.Vector<qp.utils.Tuple> currentRecords = index.get(key); if (currentRecords == null) { currentRecords = new java.util.Vector<qp.utils.Tuple>(); index.put(key, currentRecords); } currentRecords.add(value); }
public void add(java.lang.Object key, qp.utils.Tuple value) { java.util.Vector<qp.utils.Tuple> currentRecords = index.get(key); if ((currentRecords == null) || (currentRecords.isEmpty())) { currentRecords = new java.util.Vector<qp.utils.Tuple>(); index.put(key, currentRecords); } current...
public void setChoice() { int computerChoice = rollRandomNumber(); java.lang.System.out.println(("GOT THIS FAR, computer random rolled is " + computerChoice)); switch (computerChoice) { case 0 : choice = "Rock"; case 1 : choice = "Paper"; case 2 : ...
public void setChoice() { int computerChoice = rollRandomNumber(); switch (computerChoice) { case 0 : choice = "Rock"; break; case 1 : choice = "Paper"; break; case 2 : choice = "Scissor"; break; default : ...
public void playSequenceNote(int ch, int note, int velocity, double time) { if (!(isValid())) { return ; } org.geogebra.common.main.App.debug(((((((("[MIDIW] ch: " + ch) + " note: ") + note) + " velocity: ") + velocity) + " time: ") + time)); sendNote(0, ch, note, velocity, time); }
public void execute() { org.geogebra.common.main.App.debug(((((((("[MIDIW] ch: " + ch) + " note: ") + note) + " velocity: ") + velocity) + " time: ") + time)); sendNote(0, ch, note, velocity, time); }
public int getSpecialCharacterCount(java.lang.String regEx) { if (!(hasSpecialCharacters(regEx))) return 0; java.lang.String subRegEx = regEx; int specialCharCount = 0; while (hasSpecialCharacters(subRegEx)) { specialCharCount++; java.lang.String lastEscapedChar = getLastSpe...
public int getSpecialCharacterCount(java.lang.String regEx) { if (!(hasSpecialCharacters(regEx))) { return 0; } java.lang.String subRegEx = regEx; int specialCharCount = 0; while (hasSpecialCharacters(subRegEx)) { specialCharCount++; java.lang.String lastEscapedChar = getLast...
public void onReceive(android.content.Context context, android.content.Intent intent) { android.util.Log.e("rrrrrrrr", ""); java.lang.String uuid = intent.getStringExtra("uuid"); java.lang.String name = intent.getStringExtra("name"); int rssi = intent.getIntExtra("rssi", 0); addDeviceInfo(name, uuid...
public void onReceive(android.content.Context context, android.content.Intent intent) { java.lang.String uuid = intent.getStringExtra("uuid"); java.lang.String name = intent.getStringExtra("name"); int rssi = intent.getIntExtra("rssi", 0); addDeviceInfo(name, uuid, rssi); }
public static int getAudioSampleRate() { for (int i = 0; i < (de.uni_freiburg.es.sensorrecordingtool.sensors.AudioSensor.validSampleRates.length); i++) { int result = android.media.AudioRecord.getMinBufferSize(de.uni_freiburg.es.sensorrecordingtool.sensors.AudioSensor.validSampleRates[i], de.uni_freiburg.es...
public static int getAudioSampleRate() { for (int i = 0; i < (de.uni_freiburg.es.sensorrecordingtool.sensors.AudioSensor.validSampleRates.length); i++) { int result = android.media.AudioRecord.getMinBufferSize(de.uni_freiburg.es.sensorrecordingtool.sensors.AudioSensor.validSampleRates[i], de.uni_freiburg.es...
public android.view.View onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState) { android.view.View rootView = inflater.inflate(R.layout.fragment_home_activity, container, false); android.widget.ListView forecastListView = ((android.widget.List...
public android.view.View onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState) { android.view.View rootView = inflater.inflate(R.layout.fragment_home_activity, container, false); android.widget.ListView forecastListView = ((android.widget.List...
public boolean toggle(@android.support.annotation.NonNull org.bottiger.podcast.provider.IEpisode argEpisode) { org.bottiger.podcast.provider.IEpisode item = getCurrentItem(); if ((!(mPlayer.isPlaying())) || ((item != null) && ((item.getUrl()) != (argEpisode.getUrl())))) { play(argEpisode.getUrl().toStri...
public boolean toggle(@android.support.annotation.NonNull org.bottiger.podcast.provider.IEpisode argEpisode) { org.bottiger.podcast.provider.IEpisode item = getCurrentItem(); if ((!(mPlayer.isPlaying())) || ((item != null) && (!(argEpisode.getUrl().equals(item.getUrl()))))) { play(argEpisode.getUrl().to...
private boolean isComplete(java.util.Set<java.lang.Character> sigma) { java.util.Set<java.lang.Character> newSigma = new java.util.HashSet<java.lang.Character>(); newSigma.addAll(sigma); newSigma.retainAll(this.getSigma()); for (java.lang.Character label : newSigma) { for (automaton.State state ...
private boolean isComplete(java.util.Set<java.lang.Character> sigma) { for (java.lang.Character label : sigma) { for (automaton.State state : this.getStates()) { if ((transition(state, label)) == null) { return false; } } } return true; }
public int compare(com.example.mjk.camera2videoimage.Size lhs, com.example.mjk.camera2videoimage.Size rhs) { return java.lang.Long.signum(((((long) (lhs.getWidth())) * (lhs.getHeight())) / (((long) (rhs.getWidth())) * (rhs.getHeight())))); }
public int compare(com.example.mjk.camera2videoimage.Size lhs, com.example.mjk.camera2videoimage.Size rhs) { return java.lang.Long.signum(((((long) (lhs.getWidth())) * (lhs.getHeight())) - (((long) (rhs.getWidth())) * (rhs.getHeight())))); }
public void onAuthenticationSuccess(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication) throws java.io.IOException, javax.servlet.ServletException { org.json.simple.JSONObject json = new org.json.simple.JSON...
public void onAuthenticationSuccess(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication) throws java.io.IOException, javax.servlet.ServletException { org.json.simple.JSONObject json = new org.json.simple.JSON...
public long insertRow(java.lang.String name, int gender, int phone, java.lang.Double salary, int language) { android.content.ContentValues contentValues = new android.content.ContentValues(); contentValues.put(com.pinku.sqlitedatabase.DBHelper.KEY_NAME, name); contentValues.put(com.pinku.sqlitedatabase.DBHe...
public long insertRow(java.lang.String name, int gender, int phone, java.lang.Double salary, boolean language) { android.content.ContentValues contentValues = new android.content.ContentValues(); contentValues.put(com.pinku.sqlitedatabase.DBHelper.KEY_NAME, name); contentValues.put(com.pinku.sqlitedatabase....
public void check() { android.net.wifi.WifiManager wifiManager = ((android.net.wifi.WifiManager) (context.getApplicationContext().getSystemService(Context.WIFI_SERVICE))); android.net.wifi.WifiInfo wifiInfo = wifiManager.getConnectionInfo(); if ((type) == (ryey.easer.commons.plugindef.eventplugin.EventType....
public void check() { android.net.wifi.WifiManager wifiManager = ((android.net.wifi.WifiManager) (context.getApplicationContext().getSystemService(Context.WIFI_SERVICE))); android.net.wifi.WifiInfo wifiInfo = wifiManager.getConnectionInfo(); if ((type) == (ryey.easer.commons.plugindef.eventplugin.EventType....
public void onConfigurationChanged(android.content.res.Configuration newConfig) { super.onConfigurationChanged(newConfig); mPosition = linearLayoutManager.findLastVisibleItemPosition(); newsAdapter = new com.digitalvm.vmnews.adapter.NewsAdapterRecycle(this); lv_news.setAdapter(newsAdapter); newsAdap...
public void onConfigurationChanged(android.content.res.Configuration newConfig) { super.onConfigurationChanged(newConfig); mPosition = linearLayoutManager.findLastVisibleItemPosition(); if ((mPosition) != 0) mPosition = (mPosition) - 1; newsAdapter = new com.digitalvm.vmnews.adapter.NewsAda...
private void initialize() { txtDecimalPlaces.textProperty().setValue(java.lang.Integer.toString(config.getDecimalPlaces())); cbBlackAndWhite.setSelected(config.getBlackAndWhiteMode()); zoomer = new de.oth.smplsp.zoom.Zoomer(); zoomer.init(this); zoomer.rescaleSettingsDialog(); zoomer.resetZoomLe...
private void initialize() { txtDecimalPlaces.textProperty().setValue(java.lang.Integer.toString(config.getDecimalPlaces())); cbBlackAndWhite.setSelected(config.getBlackAndWhiteMode()); zoomer = new de.oth.smplsp.zoom.Zoomer(); zoomer.init(this); zoomer.rescaleSettingsDialog(); }
private void initView() { rv_scc = ((android.support.v7.widget.RecyclerView) (findViewById(R.id.rv_scc))); lo_mng = new android.support.v7.widget.LinearLayoutManager(this); adapter = new com.doricovix.utif.retrofitgetmysql.SccAdapter(this, itemScc); itemScc = new java.util.ArrayList<>(); rv_scc.setL...
private void initView() { rv_scc = ((android.support.v7.widget.RecyclerView) (findViewById(R.id.rv_scc))); lo_mng = new android.support.v7.widget.LinearLayoutManager(this); adapter = new com.doricovix.utif.retrofitgetmysql.SccAdapter(this, itemScc); rv_scc.setLayoutManager(lo_mng); rv_scc.setAdapter...
protected static java.util.List<java.lang.String> toMultiValue(com.google.gwt.core.client.JavaScriptObject js_multi_value) { java.util.List<java.lang.String> retValue = new java.util.ArrayList<java.lang.String>(); com.google.gwt.core.client.JsArrayString js_string_array = js_multi_value.cast(); for (int i =...
protected static java.util.List<java.lang.String> toMultiValue(com.google.gwt.core.client.JavaScriptObject js_multi_value) { java.util.List<java.lang.String> retValue = new java.util.ArrayList<java.lang.String>(); if (js_multi_value != null) { com.google.gwt.core.client.JsArrayString js_string_array = j...
public int[] batchSaveByContainsFields(java.lang.Class<?> entityClass, java.util.List<?> entitys, java.lang.String... containsFields) { org.springframework.util.Assert.notNull(entitys); java.util.List<java.lang.Object[]> allValues = new java.util.ArrayList<java.lang.Object[]>(); java.lang.String[] fieldName...
public int[] batchSaveByContainsFields(java.lang.Class<?> entityClass, java.util.List<?> entitys, java.lang.String... containsFields) { org.springframework.util.Assert.notNull(entitys); java.util.List<java.lang.Object[]> allValues = new java.util.ArrayList<java.lang.Object[]>(); return doBatchSave(entityCla...
public void integrateTokensFeatures() { for (int actualRow : lineDefaultFeatures.keySet()) { for (int desideredRow : rowColumns.keySet()) { java.util.List<eu.fbk.dh.jamcha.feature.FeatureInfo> lineRenamedFeatures = getLineFeatures((actualRow + desideredRow), actualRow, rowColumns.get(desideredRo...
public void integrateTokensFeatures() { for (int actualRow : lineDefaultFeatures.keySet()) { for (int desideredRow : rowColumns.keySet()) { java.util.List<eu.fbk.dh.jamcha.feature.FeatureInfo> lineRenamedFeatures = getLineFeatures((actualRow + desideredRow), actualRow); if (lineRenam...
public void sendData(java.util.Map<java.lang.String, java.lang.String> data) { if ((topic) == null) topic = new org.fusesource.hawtbuf.UTF8Buffer(boxName); java.lang.System.out.println((("topic :" + (topic)) + ": ")); connection.publish(topic, new org.fusesource.hawtbuf.AsciiBuffer(ummisco.gama...
public void sendData(java.util.Map<java.lang.String, java.lang.String> data) { if ((topic) == null) topic = new org.fusesource.hawtbuf.UTF8Buffer(boxName); connection.publish(topic, new org.fusesource.hawtbuf.AsciiBuffer(ummisco.gama.network.common.SimpleMapSerializer.map2String(data)), QoS.AT_LEAS...
private void generateMinus() { java.lang.StringBuffer bufa = new java.lang.StringBuffer(); for (int a = 0; a < 21; a++) for (int b = 0; b <= a; b++) { bufa.append(a); bufa.append(b); } aufgaben = bufa.toString(); }
private void generateMinus() { java.lang.StringBuffer bufa = new java.lang.StringBuffer(); for (int a = 0; a < 21; a++) for (int b = 0; b <= a; b++) { append(bufa, a); append(bufa, b); } aufgaben = bufa.toString(); }
protected org.apache.http.HttpResponse doReceiveResponse(final org.apache.http.HttpRequest request, final org.apache.http.HttpClientConnection conn, final org.apache.http.protocol.HttpContext context) throws java.io.IOException, org.apache.http.HttpException { final org.apache.http.HttpResponse response = super.doR...
protected org.apache.http.HttpResponse doReceiveResponse(final org.apache.http.HttpRequest request, final org.apache.http.HttpClientConnection conn, final org.apache.http.protocol.HttpContext context) throws java.io.IOException, org.apache.http.HttpException { final org.apache.http.HttpResponse response = super.doR...
private javax.swing.JMenuItem createDeleteMenu(java.util.List<edu.brandeis.cs.nlp.mae.model.ExtentTag> tags) throws edu.brandeis.cs.nlp.mae.database.MaeDBException { switch (tags.size()) { case 0 : return null; case 1 : return getPluralDelete(tags); default : ...
private javax.swing.JMenuItem createDeleteMenu(java.util.List<edu.brandeis.cs.nlp.mae.model.ExtentTag> tags) throws edu.brandeis.cs.nlp.mae.database.MaeDBException { switch (tags.size()) { case 0 : return null; case 1 : return getSingleDelete(tags.get(0)); default : ...
public void sendUpdatePacket(boolean hahahahahahahahahahahaha) { net.minecraft.nbt.NBTTagCompound tag = new net.minecraft.nbt.NBTTagCompound(); tag.setByteArray("bitz", connectData.toByteArray()); if ((gridIdentifier) != null) { tag.setString("uidC", gridIdentifier.toString()); } sendPacket(...
public void sendUpdatePacket(boolean hahahahahahahahahahahaha) { net.minecraft.nbt.NBTTagCompound tag = new net.minecraft.nbt.NBTTagCompound(); tag.setByteArray("bitz", connectData.toByteArray()); if ((gridIdentifier) != null) { tag.setString("uidC", gridIdentifier.toString()); } sendPacket(...
private int insertNewSafePoint(int pos, short[] data, byte[] source, int sourcePos, int sourceLength, int sourceMask, long value, int runLenPos) { makeRoomForInsert(sourceLength, pos, SIZE_OF_SAFE_END); data[(pos++)] = com.ociweb.pronghorn.util.TrieParser.TYPE_SAFE_END; pos = writeEndValue(pos, value); ...
private int insertNewSafePoint(int pos, byte[] source, int sourcePos, int sourceLength, int sourceMask, long value, int runLenPos) { makeRoomForInsert(sourceLength, pos, SIZE_OF_SAFE_END); data[(pos++)] = com.ociweb.pronghorn.util.TrieParser.TYPE_SAFE_END; pos = writeEndValue(pos, value); pos = writeRun...
public void start(javafx.stage.Stage primaryStage) throws java.lang.Exception { primaryStage.getIcons().add(new javafx.scene.image.Image(Presenter.Main.class.getResourceAsStream("img/icon2.gif"))); javafx.scene.Parent root = javafx.fxml.FXMLLoader.load(getClass().getResource("View/StructurnaView.fxml")); pr...
public void start(javafx.stage.Stage primaryStage) throws java.lang.Exception { primaryStage.getIcons().add(new javafx.scene.image.Image(Presenter.Main.class.getResourceAsStream("img/icon2.gif"))); javafx.scene.Parent root = javafx.fxml.FXMLLoader.load(getClass().getResource("View/StructurnaView.fxml")); pr...
public java.util.Map<java.lang.String, java.lang.String> getHeaders() throws com.android.volley.AuthFailureError { java.util.Map<java.lang.String, java.lang.String> params = new java.util.HashMap<>(); params.put("Authorization", AuthToken); params.put("Username", UserName); params.put("Content-Type", "a...
public java.util.Map<java.lang.String, java.lang.String> getHeaders() throws com.android.volley.AuthFailureError { java.util.Map<java.lang.String, java.lang.String> params = new java.util.HashMap<>(); params.put("Authorization", AuthToken); params.put("Username", UserName); return params; }
public void invoke(java.util.List<java.lang.String> args) { for (java.lang.String token : args) { final java.lang.String title = token; if ((title.length()) > 0) { final codeu.chat.client.core.ConversationContext conversation = find(title); if (conversation == null) { ...
public void invoke(java.util.List<java.lang.String> args) { for (java.lang.String token : args) { final java.lang.String title = token; if ((title.length()) > 0) { final codeu.chat.client.core.ConversationContext conversation = find(title); if (conversation == null) { ...
private void setGridPosition(int player, int x, int z) { grid[z][(x + 2)] = player; if (x < 2) { grid[z][(((it.unibo.ai.didattica.mulino.domain.MillMinimax.X_SIZE) + x) + 2)] = it.unibo.ai.didattica.mulino.domain.MillMinimax.FREE; }else if (x > ((it.unibo.ai.didattica.mulino.domain.MillMinim...
public void setGridPosition(int player, int x, int z) { grid[z][(x + 2)] = player; if (x < 2) { grid[z][(x + 2)] = player; }else if (x > ((it.unibo.ai.didattica.mulino.domain.MillMinimax.X_SIZE) - 2)) { grid[z][(x + 2)] = player; } }
public void updateIsAbove() { if ((head.getPosition()[0]) == 0) { this.isAbove = false; }else { if ((gameboard.getSquares()[((head.getPosition()[0]) + 1)][head.getPosition()[1]]) == 1) { this.isAbove = true; }else { this.isAbove = false; } } }
public void updateIsAbove() { if ((head.getPosition()[0]) == 0) { this.isAbove = false; }else { if ((gameboard.getSquares()[((head.getPosition()[0]) + 1)][head.getPosition()[1]]) > 0) { this.isAbove = true; }else { this.isAbove = false; } } }