buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public void parseListReader() { nhs.genetics.cardiff.framework.ListReader.log.log(java.util.logging.Level.INFO, "Parsing list"); java.lang.String line; try (java.io.BufferedReader bReader = new java.io.BufferedReader(new java.io.FileReader(filePath))) { while ((line = bReader.readLine()) != null) { ...
public void parseListReader() throws java.io.IOException { nhs.genetics.cardiff.framework.ListReader.log.log(java.util.logging.Level.INFO, "Parsing list"); java.lang.String line; try (java.io.BufferedReader bReader = new java.io.BufferedReader(new java.io.FileReader(filePath))) { while ((line = bRea...
public void onConfirmation(java.lang.String callerTag) { com.owncloud.android.ui.activity.ComponentsGetter cg = ((com.owncloud.android.ui.activity.ComponentsGetter) (getSherlockActivity())); com.owncloud.android.datamodel.FileDataStorageManager storageManager = cg.getStorageManager(); if ((storageManager.ge...
public void onConfirmation(java.lang.String callerTag) { com.owncloud.android.ui.activity.ComponentsGetter cg = ((com.owncloud.android.ui.activity.ComponentsGetter) (getSherlockActivity())); com.owncloud.android.datamodel.FileDataStorageManager storageManager = cg.getStorageManager(); if ((storageManager.ge...
public void handle(javafx.event.ActionEvent event) { application.Main.commandHandlerOld(txtF.getText()); txtF.clear(); java.lang.System.out.println(("textfield Text: " + (txtF.getText()))); application.Main.wordHandler(txtF.getText()); executeCommand(txtF.getText()); txtF.clear(); }
public void handle(javafx.event.ActionEvent event) { application.Main.commandHandlerOld(txtF.getText()); java.lang.System.out.println(("textfield Text: " + (txtF.getText()))); application.Main.wordHandler(txtF.getText()); executeCommand(txtF.getText()); txtF.clear(); }
private static void parseSendWirePoleCheckRecordByServiceData(java.lang.String response, android.os.Handler handler, java.lang.String SerialNumber) { if (response.equals("2")) { android.os.Message message = new android.os.Message(); message.obj = SerialNumber; message.what = com.xgf.inspecti...
private static void parseSendWirePoleCheckRecordByServiceData(java.lang.String response, android.os.Handler handler, java.lang.String SerialNumber) { if (response.equals("2")) { android.os.Message message = new android.os.Message(); message.obj = SerialNumber; message.what = com.xgf.inspecti...
public void testSpy() { owo.com.androidunittest.targets.A a = new owo.com.androidunittest.targets.A(); a = org.mockito.Mockito.spy(a); org.mockito.Mockito.when(a.publicMethod()).thenReturn("mockA"); junit.framework.Assert.assertEquals("mockA", a.publicMethod()); junit.framework.Assert.assertEquals("...
public void testSpy() { owo.com.androidunittest.targets.A a = new owo.com.androidunittest.targets.A(); a = org.mockito.Mockito.spy(a); org.mockito.Mockito.when(a.publicMethod()).thenReturn("mockA"); junit.framework.Assert.assertEquals("mockA", a.publicMethod()); junit.framework.Assert.assertEquals("...
public void shouldDetectWhenResourceWasUnloadedOnlyOnce() { com.gemserk.resources.MockResource resource = new com.gemserk.resources.MockResource(new com.gemserk.resources.dataloaders.MockDataLoader("DATA")); resource.load(); com.gemserk.resources.monitor.ResourceStatusMonitor resourceStatusMonitor = new com...
public void shouldDetectWhenResourceWasUnloadedOnlyOnce() { com.gemserk.resources.MockResource resource = new com.gemserk.resources.MockResource(new com.gemserk.resources.dataloaders.MockDataLoader("DATA")); resource.load(); com.gemserk.resources.monitor.ResourceStatusMonitor resourceStatusMonitor = new com...
private javax.swing.JButton createNewAlbumButton() { javax.swing.ImageIcon newAlbumIcon = new javax.swing.ImageIcon("icons/folder_add_32.png"); javax.swing.JButton newAlbumButton = new javax.swing.JButton("New Album"); newAlbumButton.setToolTipText("New Album"); newAlbumButton.addActionListener(new java...
private javax.swing.JButton createNewAlbumButton() { javax.swing.JButton newAlbumButton = new javax.swing.JButton("New Album"); newAlbumButton.setToolTipText("New Album"); newAlbumButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e)...
public void create() { batch = new com.badlogic.gdx.graphics.g2d.SpriteBatch(); font = new com.badlogic.gdx.graphics.g2d.BitmapFont(); font.setColor(Color.RED); screen = new com.dive.game.GameScreen(Gdx.graphics.getWidth(), Gdx.graphics.getHeight(), 0, 0); gameState = new com.dive.game.GameState(1);...
public void create() { batch = new com.badlogic.gdx.graphics.g2d.SpriteBatch(); font = new com.badlogic.gdx.graphics.g2d.BitmapFont(); font.setColor(Color.RED); screen = new com.dive.game.GameScreen(Gdx.graphics.getWidth(), Gdx.graphics.getHeight(), 0, 0); gameState = new com.dive.game.GameState(1);...
public static com.liferay.portlet.documentlibrary.model.DLFolder getFolder(long groupId, long parentFolderId, java.lang.String name) { com.liferay.portlet.documentlibrary.model.DLFolder dlFolder = null; try { dlFolder = com.liferay.portlet.documentlibrary.service.DLFolderLocalServiceUtil.getFolder(group...
public static com.liferay.portlet.documentlibrary.model.DLFolder getFolder(long groupId, long parentFolderId, java.lang.String name) { com.liferay.portlet.documentlibrary.model.DLFolder dlFolder = null; try { dlFolder = com.liferay.portlet.documentlibrary.service.DLFolderLocalServiceUtil.getFolder(group...
public void newSubscriptionCount(int argCount) { boolean showEmpty = argCount == 0; int visibility = (showEmpty) ? android.view.View.VISIBLE : android.view.View.GONE; if (((mShowEmptyView) == null) || ((mShowEmptyView.booleanValue()) != showEmpty)) { if (showEmpty) { mEmptySubscrptionLis...
public void newSubscriptionCount(int argCount) { boolean showEmpty = argCount == 0; if (((mShowEmptyView) == null) || ((mShowEmptyView) != showEmpty)) { if (showEmpty) { mEmptySubscrptionList.setVisibility(View.VISIBLE); }else { mEmptySubscrptionList.setVisibility(View.GO...
public void changed(javafx.beans.value.ObservableValue<? extends java.lang.String> observableValue, java.lang.String oldValue, java.lang.String newValue) { if (!(oldValue.equals(newValue))) { if (!(newValue.equals(""))) { int finalCost = finalCost(java.lang.Integer.parseInt(newValue)); ...
public void changed(javafx.beans.value.ObservableValue<? extends java.lang.String> observableValue, java.lang.String oldValue, java.lang.String newValue) { if ((!(oldValue.equals(newValue))) || (!(newValue.equals("")))) finalCost(java.lang.Integer.parseInt(newValue)); }
public static org.joda.time.DateTime parseDateTime(java.lang.String timestamp) { if (timestamp != null) { for (org.joda.time.format.DateTimeFormatter formatter : com.google.api.ads.adwords.awreporting.model.util.DateUtil.formatters) { try { org.joda.time.LocalDateTime localDateTi...
public static org.joda.time.DateTime parseDateTime(java.lang.String timestamp) { if (timestamp != null) { for (org.joda.time.format.DateTimeFormatter formatter : com.google.api.ads.adwords.awreporting.model.util.DateUtil.formatters) { try { org.joda.time.LocalDateTime localDateTi...
private void setUpToolbarTitle() { switch (typeOfQuestion) { case de.mi.ur.Constants.MULTIPLE_CHOICE : getSupportActionBar().setTitle(R.string.multiple_choice_button); break; case de.mi.ur.Constants.TRUE_FALSE : getSupportActionBar().setTitle(R.string.wrong_true_b...
private void setUpToolbarTitle() { switch (typeOfQuestion) { case de.mi.ur.Constants.MULTIPLE_CHOICE : getSupportActionBar().setTitle(R.string.multiple_choice_button); break; case de.mi.ur.Constants.TRUE_FALSE : getSupportActionBar().setTitle(R.string.wrong_true_b...
public javafx.scene.Node getConntentNode() { if ((border) == null) { border = new javafx.scene.layout.BorderPane(); chartView.drawDefaultAreaChart(); border.setTop(chartView.getLegend()); border.setCenter(chartView.getAreaChartRegion()); border.setStyle(("-fx-background-color...
public javafx.scene.Node getConntentNode() { if ((border) == null) { border = new javafx.scene.layout.BorderPane(); chartView.drawDefaultAreaChart(); border.setCenter(chartView.getAreaChartRegion()); border.setStyle(("-fx-background-color: " + (Constants.Color.LIGHT_GREY2))); } ...
private void fillBoard() { int value = 0; for (int j = 0; j < 4; j++) { for (int i = 0; i < 4; i++) { tiles[i][j] = ++value; } } tiles[3][3] = 0; }
private void fillBoard() { int value = 0; for (int j = 0; j < 4; j++) { for (int i = 0; i < 4; i++) { tiles[j][i] = ++value; } } tiles[3][3] = 0; }
public void cancelActionsCaseNotFound() throws java.lang.Exception { org.springframework.test.web.servlet.ResultActions resultActions = mockMvc.perform(uk.gov.ons.ctp.common.MvcHelper.putJson(java.lang.String.format("/actions/case/%s/cancel", uk.gov.ons.ctp.response.action.endpoint.ActionEndpointUnitTest.NON_EXISTI...
public void cancelActionsCaseNotFound() throws java.lang.Exception { org.springframework.test.web.servlet.ResultActions resultActions = mockMvc.perform(putJson(java.lang.String.format("/actions/case/%s/cancel", uk.gov.ons.ctp.response.action.endpoint.ActionEndpointUnitTest.NON_EXISTING_ID), "")); resultActions....
public synchronized void start() { org.apache.kafka.streams.KafkaStreams.log.debug("Starting Kafka Stream process"); if ((state) == (org.apache.kafka.streams.KafkaStreams.State.CREATED)) { for (final org.apache.kafka.streams.processor.internals.StreamThread thread : threads) thread.start(); ...
public synchronized void start() { org.apache.kafka.streams.KafkaStreams.log.debug("Starting Kafka Stream process"); if ((state) == (org.apache.kafka.streams.KafkaStreams.State.CREATED)) { setState(org.apache.kafka.streams.KafkaStreams.State.RUNNING); for (final org.apache.kafka.streams.processo...
public static java.lang.String getAttrContent(java.lang.String attrName, java.lang.String text) { java.lang.String regex = ("(?:" + attrName) + "=\")([^\"]+)"; java.util.regex.Pattern pattern = java.util.regex.Pattern.compile(regex); java.util.regex.Matcher match = pattern.matcher(text); content = (matc...
public static java.lang.String getAttrContent(java.lang.String attrName, java.lang.String text) { java.lang.String regex = ("(?:" + attrName) + "=\")([^\"]+)"; java.util.regex.Pattern pattern = java.util.regex.Pattern.compile(regex); java.util.regex.Matcher match = pattern.matcher(text); return match.fi...
public void run() { while (true) { if ((stepsToDo) > 0) { tick(); (stepsToDo)--; }else { try { java.lang.Thread.sleep(tickPause); } catch (java.lang.InterruptedException e) { java.lang.System.out.println("sleep failed");...
public void run() { while (true) { if ((stepsToDo) > 0) { (stepsToDo)--; tick(); }else { try { java.lang.Thread.sleep(tickPause); } catch (java.lang.InterruptedException e) { java.lang.System.out.println("sleep failed");...
void setAutomaticBaseUnit(boolean setAutomaticBaseCoversionPolyCoeffs) { if ((unitManagerRef) != null) { com.example.unitconverter.Unit retrievedBaseUnit = unitManagerRef.getBaseUnit(this); if ((!(this.getBaseUnit().equals(retrievedBaseUnit))) && (!(retrievedBaseUnit.getUnitName().equalsIgnoreCase(c...
void setAutomaticBaseUnit(boolean setAutomaticBaseCoversionPolyCoeffs) { if ((unitManagerRef) != null) { com.example.unitconverter.Unit retrievedBaseUnit = unitManagerRef.getBaseUnit(this); if ((!(this.getBaseUnit().equals(retrievedBaseUnit))) && (!(retrievedBaseUnit.getName().equalsIgnoreCase(com.e...
private com.google.common.util.concurrent.CheckedFuture<java.lang.Void, org.opendaylight.controller.md.sal.common.api.data.TransactionCommitFailedException> putDataViaTransaction(final org.opendaylight.controller.md.sal.dom.api.DOMDataReadWriteTransaction writeTransaction, final org.opendaylight.controller.md.sal.commo...
private com.google.common.util.concurrent.CheckedFuture<java.lang.Void, org.opendaylight.controller.md.sal.common.api.data.TransactionCommitFailedException> putDataViaTransaction(final org.opendaylight.controller.md.sal.dom.api.DOMDataReadWriteTransaction writeTransaction, final org.opendaylight.controller.md.sal.commo...
private void openKikUrl(android.content.Context context, java.lang.String url) { android.content.Intent intent = new android.content.Intent(); intent.setAction(Intent.ACTION_VIEW); intent.addFlags(Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); intent.setD...
private void openKikUrl(android.content.Context context, java.lang.String url) { android.content.Intent intent = new android.content.Intent(); intent.setAction(Intent.ACTION_VIEW); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); intent.setData(android.net.Uri.parse(url)); if (canLaunchIntent(context...
private double coverageConstraint() { double coverPercentage = getCoverPercentage(); if (((MIN_COVER_PERCENTAGE) < coverPercentage) && (coverPercentage < (MAX_COVER_PERCENTAGE))) { return 1.0; } if ((MAX_COVER_PERCENTAGE) < coverPercentage) { return 1 - (java.lang.Math.sqrt((coverPercent...
private double coverageConstraint() { double coverPercentage = getCoverPercentage(); if (((MIN_COVER_PERCENTAGE) <= coverPercentage) && (coverPercentage <= (MAX_COVER_PERCENTAGE))) { return 1.0; } if ((MAX_COVER_PERCENTAGE) < coverPercentage) { return 1.0 - (java.lang.Math.sqrt((coverPer...
public void handle(de.westnordost.osmapi.map.data.Element element, de.westnordost.streetcomplete.data.osm.ElementGeometry geometry) { com.vividsolutions.jts.geom.Geometry g = de.westnordost.streetcomplete.util.JTSConst.toGeometry(geometry); for (com.vividsolutions.jts.geom.Point p : housenumberCoords) { ...
public void handle(@android.support.annotation.NonNull de.westnordost.osmapi.map.data.Element element, @android.support.annotation.Nullable de.westnordost.streetcomplete.data.osm.ElementGeometry geometry) { if (geometry == null) return ; com.vividsolutions.jts.geom.Geometry g = de.westnordost.stree...
public static java.lang.String readFileText(java.io.File file) throws java.io.IOException { java.lang.StringBuilder sb = new java.lang.StringBuilder(64); java.io.BufferedReader in = new java.io.BufferedReader(new java.io.FileReader(file)); java.lang.String s; while ((s = in.readLine()) != null) { ...
public static java.lang.String readFileText(java.io.File file) throws java.io.IOException { java.lang.StringBuilder sb = new java.lang.StringBuilder(64); java.io.BufferedReader in = new java.io.BufferedReader(new java.io.FileReader(file)); java.lang.String s; while ((s = in.readLine()) != null) { ...
private com.bitdubai.fermat_api.layer.osa_android.file_system.PluginTextFile getWalletIssuerFile() throws com.bitdubai.fermat_api.CantStartPluginException { try { com.bitdubai.fermat_api.layer.osa_android.file_system.PluginTextFile walletIssuerFile = pluginFileSystem.getTextFile(pluginId, "", org.fermat.fer...
private com.bitdubai.fermat_api.layer.osa_android.file_system.PluginTextFile getWalletIssuerFile() throws com.bitdubai.fermat_api.CantStartPluginException { try { com.bitdubai.fermat_api.layer.osa_android.file_system.PluginTextFile walletIssuerFile = pluginFileSystem.getTextFile(pluginId, "", org.fermat.fer...
public void updateToNextRecurringTask() { assert isRecurring(); if (isTaskWithDeadline()) { setStartDateTime(getNextRecurringDateTime(startDateTime)); setEndDateTime(getNextRecurringDateTime(endDateTime)); }else if (isEvent()) { long days = java.time.temporal.ChronoUnit.D...
public void updateToNextRecurringTask() { assert isRecurring(); if (isTaskWithDeadline()) { startDateTime = getNextRecurringDateTime(startDateTime); endDateTime = getNextRecurringDateTime(endDateTime); }else if (isEvent()) { long days = java.time.temporal.ChronoUnit.DAYS....
public java.lang.String getLogin(java.lang.String userName, java.lang.String password) throws java.rmi.RemoteException { java.lang.String code = ""; peerFile.wsdl.ServiceStub.Login login = new peerFile.wsdl.ServiceStub.Login(); login.setUser_name(userName); login.setPassword(password); peerFile.wsdl...
public java.lang.String getLogin(java.lang.String userName, java.lang.String password) throws java.rmi.RemoteException { java.lang.String code = ""; peerFile.wsdl.ServiceStub.Login login = new peerFile.wsdl.ServiceStub.Login(); login.setUser_name(userName); login.setPassword(password); peerFile.wsdl...
public java.util.List<com.intellij.debugger.engine.Location> locationsOfLine(@org.jetbrains.annotations.NotNull com.intellij.debugger.engine.ReferenceType type, @org.jetbrains.annotations.NotNull com.intellij.debugger.SourcePosition position) throws com.intellij.debugger.NoDataException { try { final int li...
public java.util.List<com.intellij.debugger.engine.Location> locationsOfLine(@org.jetbrains.annotations.NotNull com.intellij.debugger.engine.ReferenceType type, @org.jetbrains.annotations.NotNull com.intellij.debugger.SourcePosition position) throws com.intellij.debugger.NoDataException { try { final int li...
protected com.arangodb.velocystream.Request documentExistsRequest(final java.lang.String key, final com.arangodb.model.DocumentExistsOptions options) { final com.arangodb.velocystream.Request request; request = new com.arangodb.velocystream.Request(db, com.arangodb.velocystream.RequestType.HEAD, executor.create...
protected com.arangodb.velocystream.Request documentExistsRequest(final java.lang.String key, final com.arangodb.model.DocumentExistsOptions options) { final com.arangodb.velocystream.Request request; request = new com.arangodb.velocystream.Request(db, com.arangodb.velocystream.RequestType.HEAD, executor.create...
public void playMusic(java.lang.String musicName) { com.badlogic.gdx.audio.Music music = loadedMusic.get(musicName); if (music == null) { music = gameControl.getGameAssetManager().get(musicName, com.badlogic.gdx.audio.Music.class); loadedMusic.put(musicName, music); } music.setVolume((mu...
public void playMusic(java.lang.String musicName) { com.badlogic.gdx.audio.Music music = loadedMusic.get(musicName); if (music == null) { music = gameControl.getGameAssetManager().get(musicName, com.badlogic.gdx.audio.Music.class); loadedMusic.put(musicName, music); } music.setVolume((mu...
public void execute(com.facebook.react.uimanager.NativeViewHierarchyManager nativeViewHierarchyManager) { android.view.View view = nativeViewHierarchyManager.resolveView(rootTag); if (view instanceof net.mischneider.MSREventBridgeEventReceiver) { net.mischneider.MSREventBridgeEventReceiver receiver = ((...
public void execute(com.facebook.react.uimanager.NativeViewHierarchyManager nativeViewHierarchyManager) { android.view.View view = nativeViewHierarchyManager.resolveView(rootTag); if (view instanceof net.mischneider.MSREventBridgeEventReceiver) { net.mischneider.MSREventBridgeEventReceiver receiver = ((...
private boolean add(T value) { try { if ((size) == 0) { start = new LNode(value); end = start; }else { end.setNext(new LNode(value)); end = end.getNext(); } (size)++; return true; } catch (java.lang.IndexOutOfBoundsException...
public boolean add(T value) { if ((size) == 0) { start = new LNode(value); end = start; }else { end.setNext(new LNode(value)); end = end.getNext(); } (size)++; return true; }
public void onLoadFinished(android.support.v4.content.Loader<android.database.Cursor> cursorLoader, android.database.Cursor cursor) { int i = 0; cursor.moveToFirst(); while (!(cursor.isAfterLast())) { i++; cursor.moveToNext(); } mAdapter.swapCursor(cursor); android.content.Inten...
public void onLoadFinished(android.support.v4.content.Loader<android.database.Cursor> cursorLoader, android.database.Cursor cursor) { int i = 0; cursor.moveToFirst(); while (!(cursor.isAfterLast())) { i++; cursor.moveToNext(); } mAdapter.swapCursor(cursor); }
public void clear() { com.shadowxz.LinkedList.Node<T> mark = first; while ((mark.next) != null) { com.shadowxz.LinkedList.Node<T> markNext = mark.next; mark.prev = null; mark.next = null; mark = markNext; (size)--; } }
public void clear() { com.shadowxz.LinkedList.Node<T> mark = first; while ((mark.next) != null) { com.shadowxz.LinkedList.Node<T> markNext = mark.next; mark.prev = null; mark.next = null; mark = markNext; } first = null; size = 0; }
public void findPath() { java.lang.System.out.println("find path"); java.awt.Point current = start; java.util.ArrayList<pathfinding.Way> possibleDirections = getAllpossibleDirections(current, Way.LEFT); for (pathfinding.Way direction : possibleDirections) { goTo(current, direction, new java.util...
public void findPath() { java.lang.System.out.println("find path"); java.awt.Point current = start; java.util.ArrayList<pathfinding.Way> possibleDirections = getAllpossibleDirections(current, Way.LEFT); for (pathfinding.Way direction : possibleDirections) { goTo(current, direction, new java.util...
protected static int search(int[] array, int pivot) { int result = java.util.Arrays.binarySearch(array, pivot); if (result == (-1)) return 0; else if (result > 0) return result; else { return (java.lang.Math.abs(result)) - 2; } }
protected static int search(int[] array, int pivot) { int result = java.util.Arrays.binarySearch(array, pivot); if (result == (-1)) return 0; else if (result >= 0) return result; else { return (java.lang.Math.abs(result)) - 2; } }
public void updatePaymentMethods(long id, java.lang.String name, int posAfterSort, int type) { android.database.sqlite.SQLiteDatabase db = getWritableDatabase(); android.content.ContentValues contentValues = new android.content.ContentValues(); contentValues.put(com.ab.piggybank.DatabaseHelper.COLUMN_PAYMEN...
public void updatePaymentMethods(long id, java.lang.String name, int posAfterSort, int type) { android.database.sqlite.SQLiteDatabase db = getWritableDatabase(); android.content.ContentValues contentValues = new android.content.ContentValues(); contentValues.put(com.ab.piggybank.DatabaseHelper.COLUMN_PAYMEN...
public void testRootPropertiesPersistAfterFormat() throws java.lang.Exception { org.apache.ignite.internal.processors.igfs.IgfsAbstractSelfTest.igfs.update(new org.apache.ignite.igfs.IgfsPath("/"), java.util.Collections.singletonMap("foo", "moo")); org.apache.ignite.internal.processors.igfs.IgfsAbstractSelfTest...
public void testRootPropertiesPersistAfterFormat() throws java.lang.Exception { org.apache.ignite.internal.processors.igfs.IgfsAbstractSelfTest.igfs.update(new org.apache.ignite.igfs.IgfsPath("/"), java.util.Collections.singletonMap("foo", "moo")); org.apache.ignite.internal.processors.igfs.IgfsAbstractSelfTest...
@org.springframework.web.bind.annotation.RequestMapping(value = "/cs480/jsoupHyperLinks", method = org.springframework.web.bind.annotation.RequestMethod.GET) java.util.List<java.lang.String> parseHyperlinks(java.lang.String url) { org.jsoup.nodes.Document doc; try { doc = org.jsoup.Jsoup.connect(url).ge...
@org.springframework.web.bind.annotation.RequestMapping(value = "/cs480/jsoupHyperLinks", method = org.springframework.web.bind.annotation.RequestMethod.GET) java.util.ArrayList<java.lang.String> parseHyperlinks(java.lang.String url) { org.jsoup.nodes.Document doc; java.util.ArrayList<java.lang.String> storedLi...
public apex.jorje.semantic.compiler.ApexCompiler visitAstsFromStrings(java.util.List<java.lang.String> sources, apex.jorje.semantic.ast.visitor.AstVisitor<apex.jorje.semantic.ast.visitor.AdditionalPassScope> visitor, apex.jorje.semantic.compiler.CompilerStage compilerStage) { java.util.List<apex.jorje.semantic.comp...
public apex.jorje.semantic.compiler.ApexCompiler visitAstsFromStrings(java.util.List<java.lang.String> sources, apex.jorje.semantic.ast.visitor.AstVisitor<apex.jorje.semantic.ast.visitor.AdditionalPassScope> visitor, apex.jorje.semantic.compiler.CompilerStage compilerStage) { java.util.List<apex.jorje.semantic.comp...
public static java.io.File moduleDir(com.intellij.openapi.module.Module module) { if (module == null) return null; if (com.thoughtworks.gauge.util.GaugeUtil.isGradleModule(module)) return com.thoughtworks.gauge.util.GaugeUtil.getProjectDirForGradleProject(module); java.lang.String ...
public static java.io.File moduleDir(com.intellij.openapi.module.Module module) { if (module == null) return null; java.lang.String pathname = com.thoughtworks.gauge.util.GaugeUtil.moduleDirPath(module); if (pathname != null) return new java.io.File(pathname); java.lang.String ...
public void onClick(android.view.View v) { android.content.Intent explicitIntent = new android.content.Intent(getApplicationContext(), com.example.bosanac.ljubica.tasky.NewTask.class); switch (v.getId()) { case R.id.bAddTask : explicitIntent.putExtra(com.example.bosanac.ljubica.tasky.MainAct...
public void onClick(android.view.View v) { android.content.Intent explicitIntent = new android.content.Intent(getApplicationContext(), com.example.bosanac.ljubica.tasky.NewTask.class); if ((v.getId()) == (R.id.bAddTask)) { explicitIntent.putExtra(com.example.bosanac.ljubica.tasky.MainActivity.KEY, "task...
private double getAmonut(java.time.LocalDate date) { java.util.List<budget.Budget> all = budgetRepo.findAll(); for (budget.Budget budget : all) { java.lang.String yearmonth = ((date.getYear()) + "") + (java.lang.String.format("%02d", date.getMonth().getValue())); if (budget.getMonth().equals(yea...
private budget.Budget getAmonut(java.time.LocalDate date) { java.util.List<budget.Budget> all = budgetRepo.findAll(); for (budget.Budget budget : all) { java.lang.String yearmonth = ((date.getYear()) + "") + (java.lang.String.format("%02d", date.getMonth().getValue())); if (budget.getMonth().equ...
private int getDaysToWater() { long timeDiff = (java.util.Calendar.getInstance().getTimeInMillis()) - (refDate.getTime()); int days = ((int) (timeDiff / (com.coconut.young.wateringcan.PlantSchedule.ONE_DAY_IN_MILLISECONDS))); return days % (waterInterval); }
private int getDaysToWater() { long timeDiff = (java.util.Calendar.getInstance().getTimeInMillis()) - (refDate.getTime()); int days = ((int) (timeDiff / (com.coconut.young.wateringcan.PlantSchedule.ONE_DAY_IN_MILLISECONDS))); return (waterInterval) - (days % (waterInterval)); }
public int getProductPrice(java.lang.String barcode) { java.lang.String query = ("select unit_price from inventory where barcode = '" + barcode) + "'"; java.util.ArrayList<java.util.ArrayList<java.lang.String>> outer = new java.util.ArrayList<java.util.ArrayList<java.lang.String>>(); java.util.ArrayList<jav...
public int getProductPrice(java.lang.String barcode) { java.lang.String query = ("select unit_price from inventory where barcode = '" + barcode) + "'"; java.util.ArrayList<java.util.ArrayList<java.lang.String>> outer = new java.util.ArrayList<java.util.ArrayList<java.lang.String>>(); java.util.ArrayList<jav...
public java.lang.String register() { try { user = org.bfh.jass.user.UserAccessor.getCurrentInstance().createNewUser(name, password, dateOfBirth); if ((user) == null) { greeting = "Impossible to register"; java.lang.System.out.println(greeting); return "register?fa...
public java.lang.String register() { try { user = org.bfh.jass.user.UserAccessor.getCurrentInstance().createNewUser(name, password, dateOfBirth); if ((user) == null) { greeting = "Impossible to register"; java.lang.System.out.println(greeting); return "register?fa...
public com.j256.ormlite.dao.CloseableIterator<me.confuser.banmanager.data.PlayerWarnData> findWarnings(long fromTime) throws java.sql.SQLException { if (fromTime == 0) { return iterator(); } long checkTime = fromTime + (me.confuser.banmanager.util.DateUtils.getTimeDiff()); com.j256.ormlite.stmt....
public com.j256.ormlite.dao.CloseableIterator<me.confuser.banmanager.data.PlayerWarnData> findWarnings(long fromTime) throws java.sql.SQLException { if (fromTime == 0) { return iterator(); } long checkTime = fromTime + (me.confuser.banmanager.util.DateUtils.getTimeDiff()); com.j256.ormlite.stmt....
public com.couchbase.lite.Status do_DELETE_Database(com.couchbase.lite.Database _db, java.lang.String _docID, java.lang.String _attachmentName) throws com.couchbase.lite.CouchbaseLiteException { if ((getQuery("rev")) != null) { return new com.couchbase.lite.Status(com.couchbase.lite.Status.BAD_REQUEST); ...
public com.couchbase.lite.Status do_DELETE_Database(com.couchbase.lite.Database _db, java.lang.String _docID, java.lang.String _attachmentName) throws com.couchbase.lite.CouchbaseLiteException { if ((getQuery("rev")) != null) { return new com.couchbase.lite.Status(com.couchbase.lite.Status.BAD_REQUEST); ...
public boolean equals(java.lang.Object obj) { if (obj instanceof tomdrever.timetable.data.Timetable) { tomdrever.timetable.data.Timetable other = ((tomdrever.timetable.data.Timetable) (obj)); return ((java.util.Objects.equals(other.name, name)) && ((other.days.size()) == (days.size()))) && (other.da...
public boolean equals(java.lang.Object obj) { if (obj instanceof tomdrever.timetable.data.Timetable) { tomdrever.timetable.data.Timetable other = ((tomdrever.timetable.data.Timetable) (obj)); return ((java.util.Objects.equals(other.id, id)) && ((other.days.size()) == (days.size()))) && (other.days.e...
public void setEllipse(tracer.Point ab, float c, float d, int ellipseMode) { if ((ab == null) || ((cd) == null)) { setEllipse(ab, new tracer.Point(c, d), ellipseMode); }else { this.ab = ab; cd.x = c; cd.y = d; this.ellipseMode = ellipseMode; setHelperFields(); ...
public void setEllipse(tracer.Point ab, float c, float d, int ellipseMode) { if ((ab == null) || ((cd) == null)) { setEllipse(ab, new tracer.Point(c, d), ellipseMode); }else { this.ab = ab; cd.x = c; cd.y = d; this.ellipseMode = ellipseMode; } }
public void sheetClosed(org.apache.pivot.wtk.Sheet sheet) { if (sheet.getResult()) { java.io.File linkFile = browse.getSelectedFile(); linkText.setText(linkFile.getPath()); pref.put("last_input_link", linkFile.getPath()); txtAutoDomeApplyMsg.setText(""); autoApply = false; ...
public void sheetClosed(org.apache.pivot.wtk.Sheet sheet) { if (sheet.getResult()) { java.io.File linkFile = browse.getSelectedFile(); linkText.setText(linkFile.getPath()); if ((pref) != null) { pref.put("last_input_link", linkFile.getPath()); } txtAutoDomeApplyMs...
protected java.lang.String getPostLogOutUrl(org.kohsuke.stapler.StaplerRequest req, org.acegisecurity.Authentication auth) { if (jenkins.model.Jenkins.getInstance().hasPermission(Jenkins.READ)) { return super.getPostLogOutUrl(req, auth); } return ((req.getContextPath()) + "/") + (GithubLogoutAction....
protected java.lang.String getPostLogOutUrl(org.kohsuke.stapler.StaplerRequest req, org.acegisecurity.Authentication auth) { jenkins.model.Jenkins j = jenkins.model.Jenkins.getInstance(); assert j != null; if (j.hasPermission(Jenkins.READ)) { return super.getPostLogOutUrl(req, auth); } retur...
private void textChanged() { switch (mTypingState) { case Start : if ((mText.length()) <= 0) { return ; } setText(getHtmlText(), BufferType.SPANNABLE); goToBeginningOfParkedText(); mTypingState = com.goka.parkedtextview.ParkedTextVi...
private void textChanged() { switch (mTypingState) { case Start : if ((mText.length()) <= 0) { return ; } setText(getHtmlText(), BufferType.SPANNABLE); goToBeginningOfParkedText(); mTypingState = com.goka.parkedtextview.ParkedTextVi...
private java.io.File writeTempPreview(com.ctrip.hermes.core.bo.TopicView topic) { try { java.io.File f = new java.io.File("/tmp", ((topic.getSchemaId()) + ".avsc")); java.io.BufferedWriter bw = new java.io.BufferedWriter(new java.io.FileWriter(f)); bw.write(topic.getSchema().getSchemaPreview...
private java.io.File writeTempPreview(com.ctrip.hermes.core.bo.TopicView topic) { try { java.io.File f = new java.io.File("/tmp", ((topic.getSchema().getName()) + ".avsc")); java.io.BufferedWriter bw = new java.io.BufferedWriter(new java.io.FileWriter(f)); bw.write(topic.getSchema().getSchem...
public java.lang.String fillReason() throws java.lang.Exception { if (hudson.plugins.claim.ClaimBuildFailureAnalyzer.isBFAEnabled()) { java.util.HashMap<java.lang.String, java.lang.String> map = hudson.plugins.claim.ClaimBuildFailureAnalyzer.getFillReasonMap(); net.sf.json.JSONObject json = new net....
public java.lang.String fillReason() throws java.lang.Exception { net.sf.json.JSONObject json = new net.sf.json.JSONObject(); if (hudson.plugins.claim.ClaimBuildFailureAnalyzer.isBFAEnabled()) { java.util.HashMap<java.lang.String, java.lang.String> map = hudson.plugins.claim.ClaimBuildFailureAnalyzer.ge...
public void onStopTrackingTouch(android.widget.SeekBar seekBar) { settings.hourMinuteSecondMargin = seekBar.getProgress(); settings.saveSettings(); drawView.invalidate(); final int sendValue = seekBar.getProgress(); if (mGoogleApiClient.isConnected()) { new java.lang.Thread(new java.lang.Run...
public void onStopTrackingTouch(android.widget.SeekBar seekBar) { settings.saveSettings(); final int sendValue = seekBar.getProgress(); if (mGoogleApiClient.isConnected()) { new java.lang.Thread(new java.lang.Runnable() { @java.lang.Override public void run() { ...
public boolean isFull(int row, int col) { checkArgs(row, col); if (!(isOpen(row, col))) { return false; } return uf.connected(((((row - 1) * (count)) + col) - 1), ((count) * (count))); }
public boolean isFull(int row, int col) { checkArgs(row, col); if (!(isOpen(row, col))) { return false; } return info.connected(((((row - 1) * (count)) + col) - 1), ((count) * (count))); }
public void setHeader(java.lang.String name, java.lang.String value) { if (name != null) { java.util.List<java.lang.String> values = headers.get(name); if (values == null) { values = new java.util.ArrayList<>(); }else { values.clear(); } if (value != n...
public void setHeader(java.lang.String name, java.lang.String value) { if (name != null) { java.util.List<java.lang.String> values = headers.get(name); if (values == null) { values = new java.util.ArrayList<>(); headers.put(name, values); }else { values.cl...
public void setAccount(edu.manatriya.banking.akunbanking.Account a) { if (a != null) { accountFileName = a.accountFileName; accountID = a.accountID; password = a.password; currency = a.currency; saldo = a.saldo; transactionHistory = new java.util.ArrayList<java.lang.S...
public void setAccount(edu.manatriya.banking.akunbanking.Account a) { if (a != null) { accountFileName = a.accountFileName; accountID = a.accountID; name = a.name; password = a.password; currency = a.currency; saldo = a.saldo; transactionHistory = new java.uti...
public boolean createTask(android.content.Context context, java.lang.String title, java.lang.String priority_s, long category) { android.util.Log.d(NewTaskFragment.TAG, "Entered"); int priority = com.infiniteloop.mytasks.Helpers.getPriority(context, priority_s); if (priority != (-1)) { com.infinitel...
public boolean createTask(android.content.Context context, java.lang.String title, java.lang.String priority_s, long category) { int priority = com.infiniteloop.mytasks.Helpers.getPriority(context, priority_s); if (priority != (-1)) { com.infiniteloop.mytasks.Task t = new com.infiniteloop.mytasks.Task(t...
public static boolean authorize(android.content.Context context, android.accounts.Account account) { com.facebook.FacebookSdk.sdkInitialize(context); if ((org.codarama.haxsync.utilities.FacebookUtil.isExtendingToken) || (!(org.codarama.haxsync.utilities.DeviceUtil.isOnline(context)))) { return false; ...
public static boolean authorize(android.content.Context context, android.accounts.Account account) { com.facebook.FacebookSdk.sdkInitialize(context); if ((org.codarama.haxsync.utilities.FacebookUtil.isExtendingToken) || (!(org.codarama.haxsync.utilities.DeviceUtil.isOnline(context)))) { return false; ...
public static void verifyVideoTimeIsProgressing(final com.wikia.webdriver.pageobjectsfactory.componentobject.ad.AutoplayVuap vuap) { vuap.togglePause(); final double startProgressBarWidth = vuap.getProgressBarWidth(); com.wikia.webdriver.pageobjectsfactory.componentobject.ad.VuapAssertions.playVideoForFewSe...
public static void verifyVideoTimeIsProgressing(final com.wikia.webdriver.pageobjectsfactory.componentobject.ad.AutoplayVuap vuap) { vuap.togglePause(); final double startProgressBarWidth = vuap.getProgressBarWidth(); vuap.playVideoForFewSeconds(); org.testng.Assert.assertTrue((startProgressBarWidth < (...
public void serialize(java.lang.String outputFile) { try { java.io.FileOutputStream fileOut = new java.io.FileOutputStream(outputFile); java.io.ObjectOutputStream objOut = new java.io.ObjectOutputStream(fileOut); objOut.writeObject(trie); objOut.close(); fileOut.close(); ...
public void serialize(java.lang.String outputFile) { try { java.io.FileOutputStream fileOut = new java.io.FileOutputStream(outputFile); java.io.ObjectOutputStream objOut = new java.io.ObjectOutputStream(fileOut); objOut.writeObject(trie); objOut.close(); fileOut.close(); ...
public static void clearAll() { vrg.VRGwithTimeWindow.clearRoutess(); vrg.VRGwithTimeWindow.carsWeight.clear(); vrg.VRGwithTimeWindow.coordinates.clear(); vrg.VRGwithTimeWindow.lengthOfRoutes.clear(); vrg.VRGwithTimeWindow.allIndexes.clear(); vrg.VRGwithTimeWindow.routes.clear(); vrg.VRGwith...
public static void clearAll() { vrg.VRGwithTimeWindow.clearRoutess(); vrg.VRGwithTimeWindow.carsWeight.clear(); vrg.VRGwithTimeWindow.coordinates.clear(); vrg.VRGwithTimeWindow.lengthOfRoutes.clear(); vrg.VRGwithTimeWindow.allIndexes.clear(); vrg.VRGwithTimeWindow.routes.clear(); vrg.VRGwith...
public soot.jimple.Stmt init_label(final soot.javaToJimple.jj.extension.HigherLevelStructureTags initTag) { if (init_label_computed) { return init_label_value; } soot.JastAddJ.ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); init_label_...
private soot.jimple.Stmt init_label(final soot.javaToJimple.jj.extension.HigherLevelStructureTags initTag) { if (init_label_computed) { return init_label_value; } soot.JastAddJ.ASTNode$State state = state(); int num = state.boundariesCrossed; boolean isFinal = this.is$Final(); init_label...
protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { java.lang.String url = "/login.jsp"; javax.servlet.http.HttpSession session = request.getSession(); session.invalidate(); getS...
protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { java.lang.String url = "/login.jsp"; javax.servlet.http.HttpSession session = request.getSession(false); if (session != null) { ...
public void render(net.minecraft.entity.Entity entity, float f, float f1, float f2, float f3, float f4, float f5) { super.render(entity, f, f1, f2, f3, f4, f5); setRotationAngles(f, f1, f2, f3, f4, f5, entity); }
public void render(net.minecraft.entity.Entity entity, float f, float f1, float f2, float f3, float f4, float f5) { super.render(entity, f, f1, f2, f3, f4, f5); setRotationAngles(f, f1, f2, f3, f4, f5, entity); render(f5); }
private void difficultyWordResult(java.lang.String[] words) { for (java.lang.String word : words) { switch (word.toUpperCase()) { case "EASY" : difficulty = 3; playSound("YourFirstWord", yourWordIsCompletion); STATUS = me.ianhenry.wordladder.MainAc...
private void difficultyWordResult(java.lang.String[] words) { for (java.lang.String word : words) { switch (word.toUpperCase()) { case "EASY" : difficulty = 3; playSound("YourFirstWord", yourWordIsCompletion); STATUS = me.ianhenry.wordladder.MainAc...
private android.view.View inflateView(android.widget.LinearLayout cardHolder) { cardHolder.removeAllViews(); android.view.LayoutInflater inflater = getActivity().getLayoutInflater(); int detailLayout = args.getInt(de.aw.cash.action.VIEWHOLDERLAYOUT); for (de.aw.gv.SplitZeile sz : mSplittBuchung.getSplit...
private android.view.View inflateView(android.widget.LinearLayout cardHolder) { cardHolder.removeAllViews(); int detailLayout = args.getInt(de.aw.cash.action.VIEWHOLDERLAYOUT); for (de.aw.gv.SplitZeile sz : mSplittBuchung.getSplitZeilen()) { if (!(sz.isRemoved())) { android.view.View spl...
void sendSetup(me.legrange.swap.ModemSetup setup) { out.write(me.legrange.swap.tcp.TcpTransport.SETUP_START); out.write(java.lang.String.format("%s=%d,", me.legrange.swap.tcp.TcpTransport.SETUP_DEVICE_ADDRESS, setup.getDeviceAddress())); out.write(java.lang.String.format("%s=%d,", me.legrange.swap.tcp.TcpTr...
void sendSetup(me.legrange.swap.ModemSetup setup) { synchronized(out) { out.write(me.legrange.swap.tcp.TcpTransport.SETUP_START); out.write(java.lang.String.format("%s=%d,", me.legrange.swap.tcp.TcpTransport.SETUP_DEVICE_ADDRESS, setup.getDeviceAddress())); out.write(java.lang.String.format(...
protected void onPostExecute(java.lang.String result) { android.util.Log.e(com.udacity.gradle.builditbigger.EndpointsAsyncTask.class.getSimpleName(), ("" + result)); if ((mProgressBar) != null) { mProgressBar.setVisibility(View.GONE); } android.content.Intent intent = new android.content.Intent(...
protected void onPostExecute(java.lang.String result) { android.util.Log.i(com.udacity.gradle.builditbigger.EndpointsAsyncTask.class.getSimpleName(), ("" + result)); if ((mProgressBar) != null) { mProgressBar.setVisibility(View.GONE); } android.content.Intent intent = new android.content.Intent(...
public E next() { if (!(hasNext())) throw new java.util.NoSuchElementException("No more elements remaining in iterator"); collection.HashMultiset.Entry<E> entry = iteratorTable[pointer]; E result = entry.data; if ((entry.next) != null) { iteratorTable[pointer] = entry.next; }els...
public E next() { if (!(hasNext())) throw new java.util.NoSuchElementException("No more elements remaining in iterator"); collection.HashMultiset.Entry<E> entry = iteratorTable[pointer]; E result = entry.data; (iteratorTable[pointer].count)--; if ((iteratorTable[pointer].count) < 1) ...
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); mButton = ((android.widget.ImageButton) (findViewById(R.id.imgBtnOnOff))); mEditUrl = ((android.widget.EditText) (findViewById(R.id.editTextUrl))); android.util...
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); mButton = ((android.widget.ImageButton) (findViewById(R.id.imgBtnOnOff))); mEditUrl = ((android.widget.EditText) (findViewById(R.id.editTextUrl))); mEditUrl.set...
protected void setUserOnline(java.lang.String onlineChoice) { mOnlineActionButton.setText(("Online " + onlineChoice)); mOnlineActionButton.setTextColor(getResources().getColor(R.color.green)); mOnlineIndicator.setImageResource(R.drawable.ic_action_online); com.raildeliveryservices.burnrubber.utils.Utils...
protected void setUserOnline(java.lang.String onlineChoice) { mOnlineActionButton.setText(("Online " + onlineChoice)); mOnlineActionButton.setTextColor(getResources().getColor(R.color.green)); mOnlineIndicator.setImageResource(R.drawable.ic_action_online); com.raildeliveryservices.burnrubber.utils.Utils...
public net.minecraftforge.fml.common.network.simpleimpl.IMessage onMessage(T message, net.minecraftforge.fml.common.network.simpleimpl.MessageContext ctx) { if (ctx.side.isClient()) { return handleClientMessage(net.minecraft.client.Minecraft.getMinecraft().thePlayer, message, ctx); }else { retur...
public net.minecraftforge.fml.common.network.simpleimpl.IMessage onMessage(T message, net.minecraftforge.fml.common.network.simpleimpl.MessageContext ctx) { if (ctx.side.isClient()) { return handleClientMessage(ctx.getServerHandler().playerEntity, message, ctx); }else { return handleServerMessag...
public com.arthur_markus.SampleWebsite.models.DisplayDataWrapper displayData(java.lang.String searchTerm, java.lang.String orderType, int orderColumn, int offset, int limit) { com.arthur_markus.SampleWebsite.models.DisplayDataWrapper retVal = new com.arthur_markus.SampleWebsite.models.DisplayDataWrapper(); java...
public com.arthur_markus.SampleWebsite.models.DisplayDataWrapper displayData(java.lang.String searchTerm, java.lang.String orderType, int orderColumn, int offset, int limit) { com.arthur_markus.SampleWebsite.models.DisplayDataWrapper retVal = new com.arthur_markus.SampleWebsite.models.DisplayDataWrapper(); java...
public static boolean addCluster(pt.ulisboa.tecnico.amorphous.requestrouter.internal.types.Cluster cluster) { java.util.List<java.lang.String> result = pt.ulisboa.tecnico.amorphous.requestrouter.internal.lvs.LVSImplementation.executeCommand(pt.ulisboa.tecnico.amorphous.requestrouter.internal.lvs.LVSImplementation.p...
public static boolean addCluster(pt.ulisboa.tecnico.amorphous.requestrouter.internal.types.Cluster cluster) { java.util.List<java.lang.String> result = pt.ulisboa.tecnico.amorphous.requestrouter.internal.lvs.LVSImplementation.executeCommand(pt.ulisboa.tecnico.amorphous.requestrouter.internal.lvs.LVSImplementation.p...
public void run() { while (gameRunning) { if ((acc) >= (1000 / 30)) { serverNetworkListener.performActions(model); model.step(acc); time = elapsedTime; } elapsedTime = java.lang.System.currentTimeMillis(); acc = (elapsedTime) - (time); } }
public void run() { while (gameRunning) { if ((acc) >= (1000 / 30)) { performActions(); model.step(acc); time = elapsedTime; } elapsedTime = java.lang.System.currentTimeMillis(); acc = (elapsedTime) - (time); } }
public void processAction(com.liferay.portal.kernel.struts.StrutsPortletAction originalStrutsPortletAction, javax.portlet.PortletConfig portletConfig, javax.portlet.ActionRequest actionRequest, javax.portlet.ActionResponse actionResponse) throws java.lang.Exception { long layoutSetPrototypeId = com.liferay.portal.k...
public void processAction(com.liferay.portal.kernel.struts.StrutsPortletAction originalStrutsPortletAction, javax.portlet.PortletConfig portletConfig, javax.portlet.ActionRequest actionRequest, javax.portlet.ActionResponse actionResponse) throws java.lang.Exception { long layoutSetPrototypeId = com.liferay.portal.k...
public static void loadUniversitymain() { try { com.csvreader.CsvReader file; file = new com.csvreader.CsvReader("src/Data/TestDataUniversityName.csv"); test.Main.universityDM = new test.UniversityDM(file); test.Main.university = test.Main.universityDM.getUniversity(); java.l...
public static void loadUniversitymain() { try { com.csvreader.CsvReader file; file = new com.csvreader.CsvReader("src/Data/TestDataUniversityName.csv"); test.Main.universityDM = new test.UniversityDM(file); test.Main.university = test.Main.universityDM.getUniversity(); java.l...
protected java.util.List<com.facebook.react.ReactPackage> getPackages() { return java.util.Arrays.<com.facebook.react.ReactPackage>asList(new com.slowpath.hockeyapp.RNHockeyAppPackage(this), new com.facebook.react.shell.MainReactPackage(), new com.AlexanderZaytsev.RNI18n.RNI18nPackage(), new io.realm.react.RealmRea...
protected java.util.List<com.facebook.react.ReactPackage> getPackages() { return java.util.Arrays.<com.facebook.react.ReactPackage>asList(new com.slowpath.hockeyapp.RNHockeyAppPackage(this), new com.facebook.react.shell.MainReactPackage(), new com.AlexanderZaytsev.RNI18n.RNI18nPackage(), new io.realm.react.RealmRea...
public boolean equals(java.lang.Object obj) { if (!(obj instanceof org.eclipse.ecf.core.util.ProxyAddress)) return false; org.eclipse.ecf.core.util.ProxyAddress other = ((org.eclipse.ecf.core.util.ProxyAddress) (obj)); return (this.hostname.equals(other.hostname)) && ((this.port) == (other.port...
public boolean equals(java.lang.Object obj) { if ((obj == null) || ((this.hostname) == null)) return false; if (!(obj instanceof org.eclipse.ecf.core.util.ProxyAddress)) return false; org.eclipse.ecf.core.util.ProxyAddress other = ((org.eclipse.ecf.core.util.ProxyAddress) (obj)); ...
private void zipFolder(java.lang.String srcFolder, java.lang.String destZipFile) throws java.lang.Exception { java.util.zip.ZipOutputStream zip = null; java.io.FileOutputStream fileWriter = null; fileWriter = new java.io.FileOutputStream(destZipFile); zip = new java.util.zip.ZipOutputStream(fileWriter);...
private void zipFolder(java.lang.String srcFolder, java.lang.String destZipFile) throws java.lang.Exception { java.util.zip.ZipOutputStream zip = null; java.io.FileOutputStream fileWriter = null; fileWriter = new java.io.FileOutputStream(destZipFile); zip = new java.util.zip.ZipOutputStream(fileWriter);...
public static void activateAspect(java.lang.String bundle, java.lang.String aspect) { org.eclipse.rcptt.tesla.core.am.AspectManager.addAspect(bundle, aspect); if (org.eclipse.rcptt.tesla.core.am.Activator.getDefault().LOGGING) { java.lang.System.out.println(((("Tesla: Activate aspect in bundle:" + bundl...
public static void activateAspect(java.lang.String bundle, java.lang.String aspect) { org.eclipse.rcptt.tesla.core.am.AspectManager.addAspect(bundle, aspect); if (((org.eclipse.rcptt.tesla.core.am.Activator.getDefault()) != null) && (org.eclipse.rcptt.tesla.core.am.Activator.getDefault().LOGGING)) { jav...
public static void main(java.lang.String[] args) { EstimatorInterface l; if ((args.length) == 2) { l = new Localizer(args[0], args[1], 4); }else { l = new Localizer(8, 8, 4); } RobotLocalizationViewer viewer = new RobotLocalizationViewer(l); new LocalizationDriver(500, viewer).st...
public static void main(java.lang.String[] args) { EstimatorInterface l; if ((args.length) == 2) { l = new Localizer(java.lang.Integer.parseInt(args[0]), java.lang.Integer.parseInt(args[1]), 4); }else { l = new Localizer(4, 4, 4); } RobotLocalizationViewer viewer = new RobotLocalizat...
public static java.util.List<com.gymkhana.iitbapp.items.FeedSubscriptionItem> getSubscriptions(final android.content.Context context) { java.lang.String fileName = Constants.Filenames.INFO_FEED; if (fileName != null) { java.lang.String json = com.gymkhana.iitbapp.util.Functions.offlineDataReader(context...
public static java.util.List<com.gymkhana.iitbapp.items.FeedSubscriptionItem> getSubscriptions(final android.content.Context context) { java.lang.String fileName = Constants.Filenames.INFO_FEED; if (fileName != null) { java.lang.String json = com.gymkhana.iitbapp.util.Functions.offlineDataReader(context...
public void pickO1() { for (int i = 0; i < (mealsListSize); i++) { java.lang.System.out.println(((("\nOption " + (i + 1)) + " is ") + (mealsList[i]))); } int meals = main.inputInt("\n\nEnter your option: "); main.input((("\nYou chose option " + meals) + " as your meal. Press <return> to continue...
public void pickO1() { for (int i = 0; i < (mealsListSize); i++) { java.lang.System.out.println(((("\nOption " + (i + 1)) + " is ") + (mealsList[i]))); } meals = main.inputInt("\n\nEnter your option: "); main.input((("\nYou chose option " + (meals)) + " as your meal. Press <return> to continue")...
protected java.util.List<java.lang.Class<?>> appendAddonModules(java.util.List<java.lang.Class<?>> modules) { modules.addAll(java.util.Arrays.asList(org.isisaddons.module.audit.AuditModule.class, org.isisaddons.module.command.CommandModule.class, org.isisaddons.module.excel.ExcelModule.class, org.isisaddons.module....
protected java.util.List<java.lang.Class<?>> appendAddonModules(java.util.List<java.lang.Class<?>> modules) { modules.addAll(java.util.Arrays.asList(org.isisaddons.module.audit.AuditModule.class, org.isisaddons.module.command.CommandModule.class, org.isisaddons.module.excel.ExcelModule.class, org.isisaddons.module....
private void calculatePriceFalling() { pcbuilder.controllers.dto.PricePointData first = priceHistory.get(0); pcbuilder.controllers.dto.PricePointData last = priceHistory.get(priceHistory.size()); if ((first.getPrice()) > (last.getPrice())) { setPriceFalling(true); }else { setPriceFalling...
private void calculatePriceFalling() { pcbuilder.controllers.dto.PricePointData first = priceHistory.get(0); pcbuilder.controllers.dto.PricePointData last = priceHistory.get(((priceHistory.size()) - 1)); if ((first.getPrice()) > (last.getPrice())) { setPriceFalling(true); }else { setPric...
public synchronized void unstore(lucee.runtime.type.scope.storage.IKStorageScopeSupport storageScope, lucee.runtime.PageContext pc, java.lang.String appName, java.lang.String name, java.lang.String cfid, lucee.commons.io.log.Log log) { try { lucee.commons.io.cache.Cache cache = lucee.runtime.type.scope.stor...
public void unstore(lucee.runtime.type.scope.storage.IKStorageScopeSupport storageScope, lucee.runtime.PageContext pc, java.lang.String appName, java.lang.String name, java.lang.String cfid, lucee.commons.io.log.Log log) { try { lucee.commons.io.cache.Cache cache = lucee.runtime.type.scope.storage.IKHandler...
private java.lang.String getMacAddr() { android.os.IBinder b = android.os.ServiceManager.getService(Context.NETWORKMANAGEMENT_SERVICE); android.os.INetworkManagementService networkManagement = INetworkManagementService.Stub.asInterface(b); if (networkManagement != null) { android.net.InterfaceConfig...
private java.lang.String getMacAddr() { android.os.IBinder b = android.os.ServiceManager.getService(Context.NETWORKMANAGEMENT_SERVICE); android.os.INetworkManagementService networkManagement = INetworkManagementService.Stub.asInterface(b); if (networkManagement != null) { android.net.InterfaceConfig...
public java.util.List<java.lang.Integer> getCheckedList() { java.util.List<java.lang.Integer> result = new java.util.ArrayList<java.lang.Integer>(); for (java.util.Map.Entry<java.lang.Integer, java.lang.Boolean> checkedEntry : checkedMap.entrySet()) { if ((checkedEntry.getValue()) == true) r...
private java.util.List<java.lang.Integer> getCheckedList() { java.util.List<java.lang.Integer> result = new java.util.ArrayList<>(); for (java.util.Map.Entry<java.lang.Integer, java.lang.Boolean> checkedEntry : checkedMap.entrySet()) { if ((checkedEntry.getValue()) == true) { result.add(chec...
public java.lang.Object createViewCamera(org.eclipse.ice.client.widgets.jme.EmbeddedView view) { java.lang.Object cam = null; if ((view != null) && (view == (embeddedView))) { org.eclipse.ice.client.widgets.jme.FlightCamera flyCam = new org.eclipse.ice.client.widgets.jme.FlightCamera(view.getCamera()); ...
public java.lang.Object createViewCamera(org.eclipse.ice.client.widgets.jme.EmbeddedView view) { java.lang.Object cam = null; if ((view != null) && (view == (embeddedView))) { org.eclipse.ice.client.widgets.jme.FlightCamera flyCam = new org.eclipse.ice.client.widgets.jme.FlightCamera(view.getCamera()); ...
private void construct() { this.add(new javafx.geometry.Point3D(0, 0, 0)); this.add(new javafx.geometry.Point3D(1, 0, 0)); this.add(new javafx.geometry.Point3D(0, 0, 1)); this.add(new javafx.geometry.Point3D(1, 0, 1)); this.add(new javafx.geometry.Point3D(0, 0, 2)); }
protected void construct() { this.add(new javafx.geometry.Point3D(0, 0, 0)); this.add(new javafx.geometry.Point3D(1, 0, 0)); this.add(new javafx.geometry.Point3D(0, 0, 1)); this.add(new javafx.geometry.Point3D(1, 0, 1)); this.add(new javafx.geometry.Point3D(0, 0, 2)); }
protected java.lang.Object doInBackground() throws java.lang.Exception { player = new PlayerShip(); getContentPane().add(player); getContentPane().revalidate(); getContentPane().requestFocus(); getContentPane().setVisible(true); while (true) { player.moveTick(); repaint(); ...
protected java.lang.Object doInBackground() throws java.lang.Exception { getContentPane().add(player); getContentPane().revalidate(); getContentPane().requestFocus(); while (true) { player.moveTick(); repaint(); player.isOffscreen(xSize, ySize); try { java.lan...
public boolean canRead(@javax.annotation.Nonnull com.google.common.net.MediaType mimeType, java.lang.Class<?> resultType) { com.google.common.net.MediaType type = mimeType.withoutParameters(); return ((type.is(com.google.common.net.MediaType.ANY_TEXT_TYPE)) || (com.google.common.net.MediaType.APPLICATION_XML_UT...
public boolean canRead(@javax.annotation.Nonnull com.google.common.net.MediaType mimeType, java.lang.Class<?> resultType) { com.google.common.net.MediaType type = mimeType.withoutParameters(); return (((type.is(com.google.common.net.MediaType.ANY_TEXT_TYPE)) || (com.google.common.net.MediaType.APPLICATION_XML_U...
protected void init(java.lang.String[] fields) { capitalAccountName = fields[0]; if (((capitalAccountName) == null) || (capitalAccountName.isEmpty())) { throw new com.poesys.db.InvalidParametersException(NULL_PARAMETER_ERROR); } distributionAccountName = fields[1]; if (fields[2].isEmpty()) {...
protected void init(java.lang.String[] fields) { capitalAccountName = fields[0].trim(); if (((capitalAccountName) == null) || (capitalAccountName.isEmpty())) { throw new com.poesys.db.InvalidParametersException(NULL_PARAMETER_ERROR); } distributionAccountName = fields[1].trim(); if (fields[2...
public void postHandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.Object handler, org.springframework.web.servlet.ModelAndView modelAndView) throws java.lang.Exception { modelAndView.addObject("baseurl", com.cportal.config.ConfigDB.retrnConf().getBASEUR...
public void postHandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.Object handler, org.springframework.web.servlet.ModelAndView modelAndView) throws java.lang.Exception { if (modelAndView == null) return ; modelAndView.addObject("baseurl...
protected void addHyperlinks(java.util.List<org.eclipse.jface.text.hyperlink.IHyperlink> hyperlinksCollector, org.eclipse.jface.text.IRegion wordRegion, org.eclipse.jdt.ui.actions.SelectionDispatchAction openAction, org.eclipse.jdt.core.IJavaElement element, boolean qualify, org.eclipse.jdt.internal.ui.javaeditor.JavaE...
protected void addHyperlinks(java.util.List<org.eclipse.jface.text.hyperlink.IHyperlink> hyperlinksCollector, org.eclipse.jface.text.IRegion wordRegion, org.eclipse.jdt.ui.actions.SelectionDispatchAction openAction, org.eclipse.jdt.core.IJavaElement element, boolean qualify, org.eclipse.jdt.internal.ui.javaeditor.JavaE...