buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public net.minecraft.item.ItemStack getCraftingResult(net.minecraft.inventory.InventoryCrafting inv) { net.minecraft.item.ItemStack output = net.minecraftforge.items.ItemHandlerHelper.copyStackWithSize(barrelStack, 1); upgradeStack.getCapability(YabbaCommon.UPGRADE_CAPABILITY, null).applyOn(((com.latmod.yabba.a...
public net.minecraft.item.ItemStack getCraftingResult(net.minecraft.inventory.InventoryCrafting inv) { net.minecraft.item.ItemStack output = net.minecraftforge.items.ItemHandlerHelper.copyStackWithSize(barrelStack, 1); upgradeStack.getCapability(YabbaCommon.UPGRADE_CAPABILITY, null).applyOn(((com.latmod.yabba.a...
private io.github.hidroh.materialistic.data.HackerNewsItem[] toItems(int[] ids) { io.github.hidroh.materialistic.data.HackerNewsItem[] items = new io.github.hidroh.materialistic.data.HackerNewsItem[ids == null ? 0 : ids.length]; for (int i = 0; i < (items.length); i++) { io.github.hidroh.materialistic.d...
private io.github.hidroh.materialistic.data.HackerNewsItem[] toItems(int[] ids) { if (ids == null) { return null; } io.github.hidroh.materialistic.data.HackerNewsItem[] items = new io.github.hidroh.materialistic.data.HackerNewsItem[ids.length]; for (int i = 0; i < (items.length); i++) { ...
private void init(java.util.List<java.awt.Point> pointList) { this.points = pointList; orders = create(); for (java.lang.String key : orders.keySet()) { java.util.List<java.lang.Integer> order = orders.get(key); com.mszychowiak.to.Visualisation.VisualisePanel panel = new com.mszychowiak.to.V...
private void init(java.util.List<java.awt.Point> pointList) { this.points = pointList; orders = create(); for (java.lang.String key : orders.keySet()) { java.util.List<java.lang.Integer> order = orders.get(key); com.mszychowiak.to.Visualisation.VisualisePanel panel = new com.mszychowiak.to.V...
public static void backupContactsTxt() { try { java.nio.file.Files.copy(java.nio.file.Paths.get("contacts.txt"), java.nio.file.Paths.get("contactsCOPY.txt")); java.nio.file.Files.delete(java.nio.file.Paths.get("contacts.txt")); java.lang.System.out.print("Before"); } catch (java.io.IOExc...
public static void backupContactsTxt() { try { java.nio.file.Files.copy(java.nio.file.Paths.get("contacts.txt"), java.nio.file.Paths.get("contactsCOPY.txt")); java.nio.file.Files.delete(java.nio.file.Paths.get("contacts.txt")); } catch (java.io.IOException e) { e.printStackTrace(); }...
protected void onStop() { if ((mChildEventListener) != null) { mMessagesDatabaseReference.child(UserDetails.usernameID).child(UserDetails.secondUser).child(UserDetails.secondUserID).removeEventListener(mDeliveryChildEventListener); mMessagesDatabaseReferenceSecondName.child(UserDetails.secondUserID)...
protected void onStop() { if ((mChildEventListener) != null) { mMessagesDatabaseReference.child(UserDetails.usernameID).child(UserDetails.secondUser).child(UserDetails.secondUserID).removeEventListener(mDeliveryChildEventListener); mMessagesDatabaseReferenceSecondName.child(UserDetails.secondUserID)...
public void onClick(android.view.View view) { android.widget.LinearLayout pickupDateLayout = ((android.widget.LinearLayout) (findViewById(R.id.pickupDateContainer))); android.widget.EditText pickupDate = ((android.widget.EditText) (pickupDateLayout.findViewById(R.id.pickupDate))); if ((pickupDate.getText()....
public void onClick(android.view.View view) { android.widget.LinearLayout pickupDateLayout = ((android.widget.LinearLayout) (findViewById(R.id.pickupDateContainer))); android.widget.EditText pickupDate = ((android.widget.EditText) (pickupDateLayout.findViewById(R.id.pickupDate))); if ((pickupDate.getText()....
public SudokuPTUI solvePuzzle(SudokuPTUI grid) { if (grid.isGoal()) { return grid; }else { for (SudokuPTUI newGrid : grid.getSuccessors()) { if (grid.validate()) { SudokuPTUI solution = solvePuzzle(newGrid); if (solution != null) re...
public SudokuPTUI solvePuzzle(SudokuPTUI grid) { if (grid.isGoal()) { return grid; }else { for (SudokuPTUI newGrid : grid.getSuccessors()) { if (newGrid.validate()) { SudokuPTUI solution = solvePuzzle(newGrid); if (solution != null) ...
private void resetStandardTemplate(android.widget.RemoteViews contentView) { resetNotificationHeader(contentView); resetContentMargins(contentView); contentView.setViewVisibility(R.id.right_icon, View.GONE); contentView.setViewVisibility(R.id.title, View.GONE); contentView.setTextViewText(R.id.title...
private void resetStandardTemplate(android.widget.RemoteViews contentView) { resetNotificationHeader(contentView); resetContentMargins(contentView); contentView.setViewVisibility(R.id.right_icon, View.GONE); contentView.setViewVisibility(R.id.title, View.GONE); contentView.setTextViewText(R.id.title...
public java.lang.String wikiAdd(@org.springframework.web.bind.annotation.RequestParam(value = "group") long groupId, @org.springframework.web.bind.annotation.RequestParam java.lang.String name, @org.springframework.web.bind.annotation.RequestParam java.lang.String description, @org.springframework.web.bind.annotation.R...
public java.lang.String wikiAdd(@org.springframework.web.bind.annotation.RequestParam(value = "group") long groupId, @org.springframework.web.bind.annotation.RequestParam java.lang.String name, @org.springframework.web.bind.annotation.RequestParam java.lang.String description, @org.springframework.web.bind.annotation.R...
public void generateOperationsChangeCellContent(plm.universe.bugglequest.BuggleWorldCell cell, java.lang.String oldContent, java.lang.String newContent, boolean oldHasContent, boolean newHasContent) { addOperation(new plm.universe.bugglequest.operations.ChangeCellContent(getCell().getX(), getCell().getY(), oldConte...
public void generateOperationsChangeCellContent(plm.universe.bugglequest.BuggleWorldCell cell, java.lang.String oldContent, java.lang.String newContent, boolean oldHasContent, boolean newHasContent) { addOperation(new plm.universe.bugglequest.operations.ChangeCellContent(cell.getX(), cell.getY(), oldContent, newCon...
public image.Image getImage(int timePoint, int channel, image.BoundingBox bounds) { if ((fileCT) == null) createFileMap(); return image.ImageReader.openImage(fileCT.get(channel).get(timePoint), new image.ImageIOCoordinates(0, 0, 0, bounds)); }
public image.Image getImage(int timePoint, int channel, image.BoundingBox bounds) { if ((fileCT) == null) { synchronized(this) { if ((fileCT) == null) createFileMap(); } } return image.ImageReader.openImage(fileCT.get(channel).get(timePoint), new imag...
private int getFirstOccurrenceOf(int startIndex, java.lang.String... keywords) { java.lang.String lowerCaseInput = input.substring(startIndex).toLowerCase(); java.util.regex.Matcher matcher = seedu.commando.logic.parser.SequentialParser.WORD_PATTERN.matcher(lowerCaseInput); loop : while (matcher.find()) { ...
private int getFirstOccurrenceOf(int startIndex, java.lang.String... keywords) { java.lang.String lowerCaseInput = input.substring(startIndex).toLowerCase(); java.util.regex.Matcher matcher = seedu.commando.logic.parser.SequentialParser.WORD_PATTERN.matcher(lowerCaseInput); while (matcher.find()) { ...
public void endGame() { this.counter = this.startTime; this.setGameStatus(GameStatus.WAITING); this.sendMessage("Game ending!"); java.lang.System.out.println(this.getPlayers().size()); java.lang.System.out.println(this.players.size()); for (org.bukkit.entity.Player p : this.getPlayers()) { ...
public void endGame() { this.counter = (this.startTime) + 1; this.setGameStatus(GameStatus.WAITING); this.sendMessage("Game ending!"); java.lang.System.out.println(this.getPlayers().size()); java.lang.System.out.println(this.players.size()); for (org.bukkit.entity.Player p : this.getPlayers()) {...
public void remove(org.nusco.narjillos.shared.things.Thing thing) { getArea(thing).remove(thing); allTheThings.remove(thing); countsByLabel.put(thing.getLabel(), ((countsByLabel.get(thing.getLabel())) - 1)); }
public void remove(org.nusco.narjillos.shared.things.Thing thing) { getArea(thing).remove(thing); synchronized(allTheThings) { allTheThings.remove(thing); } synchronized(countsByLabel) { countsByLabel.put(thing.getLabel(), ((countsByLabel.get(thing.getLabel())) - 1)); } }
private int relevance(se.kth.krijor.Document doc1, se.kth.krijor.Document doc2) { int diff = wrd.getRelevance(doc1).compareTo(wrd.getRelevance(doc2)); diff = (asc) ? diff : -diff; if (diff > 0) return 1; else if (diff < 0) return -1; else { return 1; ...
private int relevance(se.kth.krijor.Document doc1, se.kth.krijor.Document doc2) { int diff = wrd.getRelevance(doc1).compareTo(wrd.getRelevance(doc2)); diff = (asc) ? diff : -diff; if (diff > 0) return 1; else if (diff < 0) return -1; else return 0; ...
public void onReceive(android.content.Context context, android.content.Intent intent) { if (intent.getAction().equals(QuoteSyncJob.ACTION_DATA_UPDATED)) { android.appwidget.AppWidgetManager am = android.appwidget.AppWidgetManager.getInstance(context); int[] appWidgetIds = am.getAppWidgetIds(new andr...
public void onReceive(android.content.Context context, android.content.Intent intent) { super.onReceive(context, intent); if (intent.getAction().equals(QuoteSyncJob.ACTION_DATA_UPDATED)) { android.appwidget.AppWidgetManager am = android.appwidget.AppWidgetManager.getInstance(context); int[] appW...
public void setUp() throws java.lang.Exception { injector = com.google.inject.Guice.createInjector(new de.htwg.monopoly.TestMonopolyModule()); testController = injector.getInstance(de.htwg.monopoly.controller.IController.class); java.util.List<java.lang.String> playerList = new java.util.ArrayList<java.lang...
public void setUp() throws java.lang.Exception { injector = com.google.inject.Guice.createInjector(new de.htwg.monopoly.TestMonopolyModule()); testController = injector.getInstance(de.htwg.monopoly.controller.IController.class); java.util.List<java.lang.String> playerList = new java.util.ArrayList<java.lang...
public com.fasterxml.jackson.dataformat.xml.ser.TestSerializerCustom.Item deserialize(com.fasterxml.jackson.dataformat.xml.ser.JsonParser jp, com.fasterxml.jackson.dataformat.xml.ser.DeserializationContext ctxt) throws java.io.IOException { com.fasterxml.jackson.dataformat.xml.ser.ObjectCodec oc = jp.getCodec(); ...
public com.fasterxml.jackson.dataformat.xml.ser.TestSerializerCustom.Item deserialize(com.fasterxml.jackson.dataformat.xml.ser.JsonParser p, com.fasterxml.jackson.dataformat.xml.ser.DeserializationContext ctxt) throws java.io.IOException { com.fasterxml.jackson.dataformat.xml.ser.JsonNode json = ctxt.readTree(p); ...
public void testSimpleMultipleNew() throws java.lang.Exception { samples.expectnew.ExpectNewDemo tested = new samples.expectnew.ExpectNewDemo(); samples.newmocking.MyClass myClassMock = org.powermock.api.mockito.PowerMockito.mock(samples.newmocking.MyClass.class); org.powermock.api.mockito.PowerMockito.when...
public void testSimpleMultipleNew() throws java.lang.Exception { samples.expectnew.ExpectNewDemo tested = new samples.expectnew.ExpectNewDemo(); samples.newmocking.MyClass myClassMock = mock(samples.newmocking.MyClass.class); whenNew(samples.newmocking.MyClass.class).withNoArguments().thenReturn(myClassMock...
public archimulator.uncore.net.basic.Port getOutputPort(archimulator.uncore.net.basic.Router router, archimulator.uncore.net.basic.Flit flit) { archimulator.uncore.net.basic.Router neighbor = this.agents.get(router).getRoutingTable().calculateNeighbor(flit.getDestination()); for (archimulator.uncore.net.basic.P...
public archimulator.uncore.net.basic.Port getOutputPort(archimulator.uncore.net.basic.Router router, archimulator.uncore.net.basic.Flit flit) { archimulator.uncore.net.basic.Router neighbor = this.agents.get(router).getRoutingTable().calculateNeighbor(flit.getDestination(), router); for (archimulator.uncore.net...
private double sigmoid(double[] inputs, double[] weights) { double value = 0.0; for (int i = 0; i < (weights.length); i++) { value += (weights[i]) * (inputs[i]); } return 1.0 / (1.0 + (org.encog.mathutil.BoundMath.exp(((-1) * value)))); }
private double sigmoid(double[] inputs, double[] weights) { double value = 0.0; for (int i = 0; i < (inputs.length); i++) { value += (weights[i]) * (inputs[i]); } value += (weights[inputs.length]) * 1.0; return 1.0 / (1.0 + (org.encog.mathutil.BoundMath.exp(((-1) * value)))); }
private static void startCountAnimation(final android.widget.TextView textView, int amount) { android.animation.ValueAnimator animator = new android.animation.ValueAnimator(); animator.setObjectValues(TravelBox.coin, ((TravelBox.coin) + amount)); animator.setDuration(2000); animator.addUpdateListener(ne...
private static void startCountAnimation(final android.widget.TextView textView, int start, int end) { android.animation.ValueAnimator animator = new android.animation.ValueAnimator(); animator.setObjectValues(start, end); animator.setDuration(2000); animator.addUpdateListener(new android.animation.Value...
public void synchronizationPointRegistrationFailed(final java.lang.String synchronizationPointLabel, final hla.rti1516e.SynchronizationPointFailureReason reason) throws hla.rti1516e.exceptions.FederateInternalError { this.logger.info((("synchronizationPointRegistrationFailed synchronizationPointLabel=" + synchroniz...
public void synchronizationPointRegistrationFailed(final java.lang.String synchronizationPointLabel, final hla.rti1516e.SynchronizationPointFailureReason reason) throws hla.rti1516e.exceptions.FederateInternalError { this.logger.info((("synchronizationPointRegistrationFailed synchronizationPointLabel=" + synchroniz...
public static uu.toolbox.bluetooth.UUBluetoothError gattStatusError(@android.support.annotation.NonNull final java.lang.String method, final int gattStatus) { if (gattStatus == (android.bluetooth.BluetoothGatt.GATT_SUCCESS)) { uu.toolbox.bluetooth.UUBluetoothError err = new uu.toolbox.bluetooth.UUBluetoothE...
public static uu.toolbox.bluetooth.UUBluetoothError gattStatusError(@android.support.annotation.NonNull final java.lang.String method, final int gattStatus) { if (gattStatus != (android.bluetooth.BluetoothGatt.GATT_SUCCESS)) { uu.toolbox.bluetooth.UUBluetoothError err = new uu.toolbox.bluetooth.UUBluetoothE...
private org.apache.commons.cli.Options setUpCommandLineOptions() { commandLineOptions = new org.apache.commons.cli.Options(); commandLineOptions.addOption(HOST_URL_OPTION, true, ("Host URL of transmartApp instance; for example: " + (EXAMPLE_URL))); commandLineOptions.addOption(STUDY_ID_OPTION, true, ("Study...
private void setUpCommandLineOptions() { commandLineOptions = new org.apache.commons.cli.Options(); commandLineOptions.addOption(HOST_URL_OPTION, true, ("Host URL of transmartApp instance; for example: " + (EXAMPLE_URL))); commandLineOptions.addOption(STUDY_ID_OPTION, true, ("Study ID for listing; for examp...
public static void main(java.lang.String[] args) { int availableCpus = java.lang.Runtime.getRuntime().availableProcessors(); int crawlerWorkerThreadCount = (availableCpus * 2) + 1; java.lang.System.out.println((((availableCpus + " processors found, using ") + crawlerWorkerThreadCount) + " worker threads for...
public static void main(java.lang.String[] args) { int availableCpus = java.lang.Runtime.getRuntime().availableProcessors(); int crawlerWorkerThreadCount = (availableCpus * 2) + 1; java.lang.System.out.println((((availableCpus + " processors found, using ") + crawlerWorkerThreadCount) + " worker threads for...
private static java.lang.String _extractText(org.jsoup.nodes.Node node) { com.pratilipi.data.util.PratilipiDocUtil.logger.log(java.util.logging.Level.INFO, node.toString()); java.lang.String text = ((node.getClass()) == (org.jsoup.nodes.TextNode.class)) ? ((org.jsoup.nodes.TextNode) (node)).text() : ((org.jsoup...
private static java.lang.String _extractText(org.jsoup.nodes.Node node) { java.lang.String text = ((node.getClass()) == (org.jsoup.nodes.TextNode.class)) ? ((org.jsoup.nodes.TextNode) (node)).text() : ((org.jsoup.nodes.Element) (node)).text(); text = text.replace(((char) (160)), ' ').trim(); return text.isE...
public void init(org.lex.perf.filter.FilterConfig filterConfig) throws org.lex.perf.filter.ServletException { try { java.lang.String name = filterConfig.getFilterName(); if ((name != null) && ((name.length()) > 0)) { filterName = name; } indexSeries = org.lex.perf.api.fac...
public void init(org.lex.perf.filter.FilterConfig filterConfig) throws org.lex.perf.filter.ServletException { java.lang.String name = filterConfig.getFilterName(); if ((name != null) && ((name.length()) > 0)) { filterName = name; } indexSeries = org.lex.perf.api.factory.IndexFactory.registerInde...
public void updateLastPostInBranchByCreateTopic() throws org.jtalks.jcommune.plugin.api.exceptions.NotFoundException { org.jtalks.jcommune.service.transactional.Branch branch = createBranch(); createTopicStubs(branch); org.jtalks.jcommune.service.transactional.Topic tmp = createTopic(); tmp.setBranch(br...
public void updateLastPostInBranchByCreateTopic() throws org.jtalks.jcommune.plugin.api.exceptions.NotFoundException { org.jtalks.jcommune.service.transactional.Branch branch = createBranch(); createTopicStubs(); org.jtalks.jcommune.service.transactional.Topic tmp = createTopic(); tmp.setBranch(branch);...
private void maskView(int count) { if (count >= (net.redbear.redbear8nanos.ControlActivity.MAX_DEVICES_NUM)) return ; for (int i = 0; i < (net.redbear.redbear8nanos.ControlActivity.MAX_DEVICES_NUM); i++) { if (i >= count) { nanos.get(i).setVisibility(View.INVISIBLE); }el...
private void maskView(int count) { if (count > (net.redbear.redbear8nanos.ControlActivity.MAX_DEVICES_NUM)) return ; for (int i = 0; i < (net.redbear.redbear8nanos.ControlActivity.MAX_DEVICES_NUM); i++) { if (i >= count) { nanos.get(i).setVisibility(View.INVISIBLE); }els...
public void Show() { android.view.View this_view = mContext.loadView(R.layout.screen_top_score); android.graphics.Typeface font = android.graphics.Typeface.createFromAsset(mContext.getAssets(), "fonts/hurry up.ttf"); com.example.swsahu.duplicatecardgame.HelperClass.SetFontToControls(font, ((android.view.Vie...
public void Show() { android.view.View this_view = mContext.loadView(R.layout.screen_top_score); android.graphics.Typeface font = android.graphics.Typeface.createFromAsset(mContext.getAssets(), "fonts/hurry up.ttf"); com.example.swsahu.duplicatecardgame.HelperClass.SetFontToControls(font, ((android.view.Vie...
public static boolean or(org.nd4j.linalg.api.complex.IComplexNDArray n, org.nd4j.linalg.indexing.conditions.Condition cond) { boolean ret = true; org.nd4j.linalg.api.complex.IComplexNDArray linear = n.linearView(); for (int i = 0; i < (linear.length()); i++) { ret = ret || (cond.apply(linear.getComp...
public static boolean or(org.nd4j.linalg.api.complex.IComplexNDArray n, org.nd4j.linalg.indexing.conditions.Condition cond) { boolean ret = false; org.nd4j.linalg.api.complex.IComplexNDArray linear = n.linearView(); for (int i = 0; i < (linear.length()); i++) { ret = ret || (cond.apply(linear.getCom...
public void setSlot(final jcl.symbols.SymbolStruct<?> slotName, final jcl.LispStruct newSlotValue) { if (slots.containsKey(slotName)) { slots.put(slotName, newSlotValue); } throw new jcl.conditions.exceptions.SimpleErrorException(((("Slot " + slotName) + " is not present for structure ") + (this)));...
public void setSlot(final jcl.symbols.SymbolStruct<?> slotName, final jcl.LispStruct newSlotValue) { if (slots.containsKey(slotName)) { slots.put(slotName, newSlotValue); return ; } throw new jcl.conditions.exceptions.SimpleErrorException(((("Slot " + slotName) + " is not present for structu...
public void swapFragment(android.support.v4.app.Fragment fragment, boolean addToBackStack) { if (fragment instanceof com.ameron32.apps.somalibible.frmk.BibleReceiver) { ((com.ameron32.apps.somalibible.frmk.BibleReceiver) (fragment)).passBible(bible); } final android.support.v4.app.FragmentTransactio...
public void swapFragment(android.support.v4.app.Fragment fragment, boolean addToBackStack) { final android.support.v4.app.FragmentTransaction ft = getSupportFragmentManager().beginTransaction(); ft.setCustomAnimations(R.anim.slide_in_right, R.anim.slide_out_left, android.R.anim.slide_in_left, android.R.anim.sli...
private void findVariables(java.lang.String equation) { EquationParser.variables = new java.util.ArrayList<java.lang.Character>(); for (char c : equation.toCharArray()) { if (java.lang.Character.isLetter(c)) { EquationParser.variables.add(c); } } }
private void findVariables(java.lang.String equation) { EquationParser.variables = new java.util.ArrayList<java.lang.Character>(); for (char c : equation.toCharArray()) { if (java.lang.Character.isLetter(c)) { if (!(EquationParser.variables.contains(c))) { EquationParser.vari...
public void filterBy(org.iplantc.de.client.models.notifications.NotificationCategory category) { currentCategory = category; toolbar.setCurrentCategory(category); com.sencha.gxt.data.shared.loader.FilterPagingLoadConfig config = view.getCurrentLoadConfig(); com.sencha.gxt.data.shared.loader.FilterConfig...
public void filterBy(org.iplantc.de.client.models.notifications.NotificationCategory category) { currentCategory = category; toolbar.setCurrentCategory(category); com.sencha.gxt.data.shared.loader.FilterPagingLoadConfig config = view.getCurrentLoadConfig(); com.sencha.gxt.data.shared.loader.FilterConfig...
private static boolean isTaintStateValue(java.lang.String value) { com.h3xstream.findsecbugs.taintanalysis.Taint[] states = Taint.State.values(); for (com.h3xstream.findsecbugs.taintanalysis.Taint.State state : states) { if (state.name().equals(value)) { return true; } } retu...
private static boolean isTaintStateValue(java.lang.String value) { assert (value != null) && (!(value.isEmpty())); com.h3xstream.findsecbugs.taintanalysis.Taint[] states = Taint.State.values(); for (com.h3xstream.findsecbugs.taintanalysis.Taint.State state : states) { if (state.name().equals(value))...
public static void main(java.lang.String[] args) { org.sidoh.reactor_simulator.simulator.BigReactorSimulator.init(); java.lang.String reactor = "EEEEEXXEEEEE"; org.sidoh.reactor_simulator.simulator.FakeReactorWorld fakeReactorWorld = org.sidoh.reactor_simulator.simulator.FakeReactorWorld.makeReactor(reactor...
public static void main(java.lang.String[] args) { org.sidoh.reactor_simulator.simulator.BigReactorSimulator.init(); java.lang.String reactor = "EEEEEXXEEEEE"; org.sidoh.reactor_simulator.simulator.FakeReactorWorld fakeReactorWorld = org.sidoh.reactor_simulator.simulator.FakeReactorWorld.makeReactor(reactor...
public java.lang.String getVillagerName(int profession, int career) { java.util.Map<java.lang.Integer, java.lang.String> map = this.villagerNames.get(profession); if (map == null) return "Unknown"; return "entity.Villager." + (map.get(career)); }
public java.lang.String getVillagerName(int profession, int career) { java.util.Map<java.lang.Integer, java.lang.String> map = this.villagerNames.get(profession); if (map == null) return "Unknown"; java.lang.String id = map.get(career); if (id == null) return "Unknown"; ret...
private void timerFinished() { if (isStretchesRemaining()) { goToNextStretch(); startTimer(returnCountdownTime()); android.widget.Toast.makeText(getApplicationContext(), "Ding", Toast.LENGTH_SHORT).show(); }else { reset(); android.widget.Toast.makeText(getApplicationConte...
private void timerFinished() { if (isStretchesRemaining()) { goToNextStretch(); startTimer(returnCountdownTime()); android.widget.Toast.makeText(getApplicationContext(), "Ding", Toast.LENGTH_SHORT).show(); }else { reset(); android.widget.Toast.makeText(getApplicationConte...
public void testGetWebserviceTaskPostReturnsCorrectJSON() { javax.ws.rs.core.Response response = base.path("scenario/145/webservice/390/post").request().get(); java.lang.System.out.print(""); org.junit.Assert.assertThat("Get webservice Task configuration returns not an valid JSON object", "{\"value\":\"{\\\...
public void testGetWebserviceTaskPostReturnsCorrectJSON() { javax.ws.rs.core.Response response = base.path("scenario/145/webservice/390/post").request().get(); org.junit.Assert.assertThat("Get webservice Task configuration returns not an valid JSON object", "{\"value\":\"{\\\"value\\\":\\\"post\\\"}\"}", net.ja...
public boolean handle(java.io.BufferedWriter writer) { return cn.edu.fudan.se.dac.FileUtil.eachLine(src, new cn.edu.fudan.se.dac.FileUtil.OutputLineHandler(writer), filter); } }); }
public boolean handle(java.io.BufferedWriter writer) { return cn.edu.fudan.se.dac.FileUtil.eachLine(src, new cn.edu.fudan.se.dac.FileUtil.OutputLineHandler(writer), null); } }); }
public void addPoint(eu.daiad.web.model.AmphiroAbstractDataPoint point) { this.volume += point.getVolume(); this.energy += point.getEnergy(); this.volume += point.getVolume(); this.temperature = ((this.temperature) * (this.count)) + (point.getTemperature()); (this.count)++; this.temperature /= (...
public void addPoint(eu.daiad.web.model.AmphiroAbstractDataPoint point) { this.volume += point.getVolume(); this.energy += point.getEnergy(); this.temperature = ((this.temperature) * (this.count)) + (point.getTemperature()); (this.count)++; this.temperature /= ((float) (this.count)); }
protected boolean isPluginWizardFragmentEnabled() { com.liferay.ide.eclipse.project.core.IPortletFramework portletFramework = this.portletPluginPage.getSelectedPortletFramework(); if (portletFramework != null) { com.liferay.ide.eclipse.project.ui.IPortletFrameworkDelegate delegate = com.liferay.ide.ecli...
protected boolean isPluginWizardFragmentEnabled() { com.liferay.ide.eclipse.project.core.IPortletFramework portletFramework = this.portletPluginPage.getSelectedPortletFramework(); if (portletFramework != null) { com.liferay.ide.eclipse.project.ui.IPortletFrameworkDelegate delegate = getPortletFrameworkD...
public void onCreate() { super.onCreate(); chihane.trans.global.App.component = AppComponent.Initializer.init(this); chihane.trans.global.App.graph = chihane.trans.global.App.component; com.crashlytics.android.core.CrashlyticsCore core = new com.crashlytics.android.core.CrashlyticsCore.Builder().disable...
public void onCreate() { super.onCreate(); chihane.trans.global.App.component = AppComponent.Initializer.init(this); chihane.trans.global.App.graph = chihane.trans.global.App.component; com.crashlytics.android.core.CrashlyticsCore core = new com.crashlytics.android.core.CrashlyticsCore.Builder().disable...
public boolean pointOnSegment(Point p) { return (((!(p.isUnder(_poLeft))) & (!(p.isAbove(_poLeft)))) && (p.isRight(_poLeft))) && (p.isLeft(_poRight)); }
public boolean pointOnSegment(Point p) { return ((((!(p.isUnder(_poLeft))) & (!(p.isAbove(_poLeft)))) && (p.isRight(_poLeft))) && (p.isLeft(_poRight))) || ((p.equals(_poLeft)) || (p.equals(_poRight))); }
public void testDeleteVoteReturnsRightUrlForNullPlusValidInput() { java.lang.String movieIdNotValid = null; java.lang.String userIdNotValid = null; resultUrl = crudController.deleteVote(movieId, userIdNotValid); org.junit.Assert.assertTrue(resultUrl.equals("redirect:/voteList")); resultUrl = crudCon...
public void testDeleteVoteReturnsRightUrlForNullPlusValidInput() { java.lang.String movieIdNotValid = null; java.lang.String userIdNotValid = null; resultUrl = crudController.deleteVote(movieId, userIdNotValid); org.junit.Assert.assertTrue("redirect:/voteList".equals(resultUrl)); resultUrl = crudCon...
protected E handleResponseError(org.eclipse.jetty.client.api.Response response, java.util.Optional<info.orestes.rest.client.ResponseListener.EntityContext> entityContext) throws info.orestes.rest.error.RestException { info.orestes.rest.error.RestException exception = entityContext.map(( context) -> { try { ...
protected E handleResponseError(org.eclipse.jetty.client.api.Response response, info.orestes.rest.client.ResponseListener.EntityContext entityContext) throws info.orestes.rest.error.RestException { info.orestes.rest.error.RestException exception = null; if (entityContext != null) { try { exc...
private void initShader() { mProgram = cn.dream.android.opengles20.utils.ShaderUtil.createProgram(cn.dream.android.opengles20.shape.Mountain.VERTEX_CODE, cn.dream.android.opengles20.shape.Mountain.FRAGMENT_CODE); uMVPMatrixHandle = android.opengl.GLES20.glGetUniformLocation(mProgram, "uMVPMatrix"); vertexHa...
private void initShader() { uMVPMatrixHandle = android.opengl.GLES20.glGetUniformLocation(mProgram, "uMVPMatrix"); vertexHandle = android.opengl.GLES20.glGetAttribLocation(mProgram, "aPosition"); textureHandle = android.opengl.GLES20.glGetAttribLocation(mProgram, "aTexCoor"); textureGrassHandle = androi...
protected boolean matchNameAttribute(javax.swing.text.AttributeSet attr, javax.swing.text.html.HTML.Tag tag) { java.lang.Object o = attr.getAttribute(javax.swing.text.StyleConstants.NameAttribute); if (o instanceof javax.swing.text.html.HTML.Tag) { javax.swing.text.html.HTML.Tag name = ((javax.swing.tex...
protected boolean matchNameAttribute(javax.swing.text.AttributeSet attr, javax.swing.text.html.HTML.Tag tag) { java.lang.Object obj = attr.getAttribute(javax.swing.text.StyleConstants.NameAttribute); if (obj instanceof javax.swing.text.html.HTML.Tag) { javax.swing.text.html.HTML.Tag name = ((javax.swing...
public void runServer(int port) { try { java.net.ServerSocket serverSocket = new java.net.ServerSocket(port); while (true) { java.net.Socket socket = serverSocket.accept(); ServerThread serverThread = new ServerThread(socket); serverThread.setDaemon(true); ...
public void runServer(int port) { try { java.net.ServerSocket serverSocket = new java.net.ServerSocket(port); while (true) { java.net.Socket socket = serverSocket.accept(); java.lang.Thread serverThread = new java.lang.Thread(new ServerThread(socket)); serverThrea...
public void onMapReady(final com.google.android.gms.maps.GoogleMap map) { map.setMyLocationEnabled(true); globalMap = map; updateMapsView(); map.setOnCameraChangeListener(new com.google.android.gms.maps.GoogleMap.OnCameraChangeListener() { @java.lang.Override public void onCameraChange(c...
public void onMapReady(final com.google.android.gms.maps.GoogleMap map) { map.setMyLocationEnabled(true); updateMapsView(); map.setOnCameraChangeListener(new com.google.android.gms.maps.GoogleMap.OnCameraChangeListener() { @java.lang.Override public void onCameraChange(com.google.android.gms...
public void playHandler(android.view.View view) { if (!(mediaPlayer.isPlaying())) { try { if (!(bg.su.fmi.fitness.assistant.player.AudioPlayerController.isPaused)) { mediaPlayer.reset(); mediaPlayer.setDataSource(currentTrack); mediaPlayer.prepare(...
public void playHandler(android.view.View view) { if ((!(mediaPlayer.isPlaying())) && ((currentTrack) != null)) { try { if (!(bg.su.fmi.fitness.assistant.player.AudioPlayerController.isPaused)) { mediaPlayer.reset(); mediaPlayer.setDataSource(currentTrack); ...
void putByte(int address, int b) { if (address > ((dataLength) - 1)) { userInterface.fatal(("Memory fault: address " + address)); } data[address] = ((byte) (b & 255)); }
void putByte(int address, int b) { if ((address < 0) || (address > ((dataLength) - 1))) { userInterface.fatal(("Memory fault: address " + address)); }else { data[address] = ((byte) (b & 255)); } }
public java.util.List<java.lang.Integer> elementMapPosition(java.util.List<java.lang.Integer> array) { java.util.List<java.lang.Integer> list = new java.util.ArrayList<java.lang.Integer>(java.util.Collections.nCopies(array.size(), 0)); for (int i = 0; i < (array.size()); i++) { list.add(array.get(i), i)...
public java.util.List<java.lang.Integer> elementMapPosition(java.util.List<java.lang.Integer> array) { java.util.List<java.lang.Integer> list = new java.util.ArrayList<java.lang.Integer>(java.util.Collections.nCopies(array.size(), 0)); for (int i = 0; i < (array.size()); i++) { list.set(array.get(i), i)...
public void execute() throws java.lang.Exception { if (help) { jcommander.usage("set-writer"); }else { org.walkmod.WalkModFacade facade = new org.walkmod.WalkModFacade(org.walkmod.OptionsBuilder.options().printErrors(printErrors)); facade.setWriter(chain, writerType.get(0), path, recursi...
public void execute() throws java.lang.Exception { if (help) { jcommander.usage("set-writer"); }else { org.walkmod.WalkModFacade facade = new org.walkmod.WalkModFacade(org.walkmod.OptionsBuilder.options().printErrors(printErrors)); if ((writerType) != null) { facade.setWriter...
public boolean addToken(java.lang.String userId, com.lqlsoftware.fuckchat.utils.TokenModel model) { setRedis(); java.lang.String token = jedis.get(model.getUserId()); if ((token != null) && (!(token.equals(model.getToken())))) { jedis.del(userId); } jedis.set(userId, model.getToken()); j...
public boolean addToken(java.lang.String userId, com.lqlsoftware.fuckchat.utils.TokenModel model) { setRedis(); java.lang.String token = jedis.get(model.getUserId()); if ((token != null) && (!(token.equals(model.getToken())))) { jedis.del(userId); } jedis.set(userId, model.getToken()); j...
public void exitRangeFilter(com.aerospike.aql.grammar.AQLParser.RangeFilterContext ctx) { org.stringtemplate.v4.ST st = getTemplateFor("filterRange"); st.add("bin", ctx.bin().getText()); st.add("low", code.get(ctx.low)); st.add("high", code.get(ctx.high)); putCode(ctx, st); }
public void exitRangeFilter(com.aerospike.aql.grammar.AQLParser.RangeFilterContext ctx) { org.stringtemplate.v4.ST st = getTemplateFor("filterRange"); st.add("bin", ctx.bin().getText()); st.add("low", ctx.low.getText()); st.add("high", ctx.high.getText()); putCode(ctx, st); }
public java.util.List<edu.msg.ro.persistence.entity.Attachment> getAttachments() { java.util.List<edu.msg.ro.persistence.entity.Attachment> attachments = new java.util.ArrayList<edu.msg.ro.persistence.entity.Attachment>(); for (org.primefaces.model.UploadedFile f : uploadedFiles) { edu.msg.ro.persistenc...
public java.util.List<edu.msg.ro.persistence.entity.Attachment> getAttachments() { java.util.List<edu.msg.ro.persistence.entity.Attachment> attachments = new java.util.ArrayList<edu.msg.ro.persistence.entity.Attachment>(); for (org.primefaces.model.UploadedFile f : uploadedFiles) { edu.msg.ro.persistenc...
public java.lang.Object getConfig(java.lang.String key, @javax.annotation.Nullable java.lang.Object defaultt) { org.bukkit.configuration.file.FileConfiguration spellConfig = HPS.ConfigurationManager.getConfig(ConfigurationType.SPELL).get(); return defaultt == null ? spellConfig.get(((("spells." + (getName())) +...
public java.lang.Object getConfig(java.lang.String key, @javax.annotation.Nullable java.lang.Object defaultt) { org.bukkit.configuration.file.FileConfiguration spellConfig = HPS.ConfigurationManager.getConfig(ConfigurationType.SPELL).get(); return defaultt == null ? spellConfig.get(((("spells." + (getName().toL...
private boolean isFormValid() { java.lang.String rootUrl = rootUrlTF.getText(); if ((((rootUrl != null) && (rootUrl != "")) && ((branchRL.getResources()) != null)) && ((leafRL.getResources()) != null)) { return true; } return false; }
private boolean isFormValid() { java.lang.String rootUrl = rootUrlTF.getText(); if (((rootUrl != null) && (rootUrl != "")) && ((leafRL.getResources()) != null)) { return true; } return false; }
@javax.ws.rs.Path(value = "/{publicCId}/{userEmail}") public javax.ws.rs.core.Response getUser(@javax.ws.rs.PathParam(value = "publicCId") java.lang.String publicCId, @javax.ws.rs.PathParam(value = "userEmail") java.lang.String userEmail) throws io.hops.site.rest.exception.AppException { java.util.Optional<io.hops....
@javax.ws.rs.Path(value = "/{publicCId}/{userEmail}") public javax.ws.rs.core.Response getUser(@javax.ws.rs.PathParam(value = "publicCId") java.lang.String publicCId, @javax.ws.rs.PathParam(value = "userEmail") java.lang.String userEmail) throws io.hops.site.rest.exception.AppException { java.util.Optional<io.hops....
private <T> T executeUpdateAndReturnGeneratedKey(java.sql.Connection connection) { try { java.lang.String convertedPreparedStatement = convertIntoPreparedStatement(sql); java.sql.PreparedStatement preparedStatement = connection.prepareStatement(convertedPreparedStatement, java.sql.Statement.RETURN_G...
private <T> T executeUpdateAndReturnGeneratedKey(java.sql.Connection connection) { java.lang.String convertedPreparedStatement = convertIntoPreparedStatement(sql); try (java.sql.PreparedStatement preparedStatement = connection.prepareStatement(convertedPreparedStatement, java.sql.Statement.RETURN_GENERATED_KEYS...
public void snapshot(final nl.rsdt.japp.jotial.maps.wrapper.JotiMap.SnapshotReadyCallback snapshotReadyCallback) { switch (mapType) { case nl.rsdt.japp.jotial.maps.wrapper.JotiMap.GOOGLEMAPTYPE : googleMap.snapshot(new com.google.android.gms.maps.GoogleMap.SnapshotReadyCallback() { ...
public void snapshot(final nl.rsdt.japp.jotial.maps.wrapper.JotiMap.SnapshotReadyCallback snapshotReadyCallback) { switch (mapType) { case nl.rsdt.japp.jotial.maps.wrapper.JotiMap.GOOGLEMAPTYPE : if (snapshotReadyCallback != null) { googleMap.snapshot(new com.google.android.gms.m...
public void testCallExtensionPoint() throws java.lang.Exception { org.pentaho.metaverse.analyzer.kettle.extensionpoints.job.JobLineageHolderMap originalHolderMap = mockBuilder(); jobExtensionPoint.callExtensionPoint(null, job); java.util.List<org.pentaho.di.job.JobListener> listeners = job.getJobListeners()...
public void testCallExtensionPoint() throws java.lang.Exception { org.pentaho.metaverse.analyzer.kettle.extensionpoints.job.JobLineageHolderMap originalHolderMap = mockBuilder(); jobExtensionPoint.callExtensionPoint(null, job); java.util.List<org.pentaho.di.job.JobListener> listeners = job.getJobListeners()...
public static void hideBgView(final android.widget.ImageView blurryView) { android.view.animation.Animation anim = si.jankokalj.simpleflickrbrowser.util.AnimHelper.createLinearInterpolatorAlpha(1.0F, 0.3F); anim.setDuration(175); anim.setAnimationListener(new android.view.animation.Animation.AnimationListen...
public static void hideBgView(final android.widget.ImageView blurryView) { android.view.animation.Animation anim = si.jankokalj.simpleflickrbrowser.util.AnimHelper.createLinearInterpolatorAlpha(1.0F, 0.3F); anim.setDuration(175); anim.setAnimationListener(new android.view.animation.Animation.AnimationListen...
public void initSocketConnection() throws java.io.IOException { try { java.net.Socket s = new java.net.Socket(address, port); dis = new java.io.DataInputStream(s.getInputStream()); dos = new java.io.DataOutputStream(s.getOutputStream()); new standard.lab9.ChatHandlerClientReadThread(...
public void initSocketConnection() throws java.io.IOException { java.net.Socket s = new java.net.Socket(address, port); dis = new java.io.DataInputStream(s.getInputStream()); dos = new java.io.DataOutputStream(s.getOutputStream()); new standard.lab9.ChatHandlerClientReadThread(dis, txtChatHistory).start...
public boolean GetEmail() { android.database.sqlite.SQLiteDatabase reader = dbHelper.getReadableDatabase(); android.database.Cursor cursor = reader.query(SQLiteDBHelper.TABLE_RCARD, new java.lang.String[]{ sph.durga.rCard.db.SQLiteDBHelper.SQLiteDBHelper.RCARD_EMAIL }, null, null, null, null, null); cursor....
public boolean GetEmail() { android.database.sqlite.SQLiteDatabase reader = dbHelper.getReadableDatabase(); android.database.Cursor cursor = reader.query(SQLiteDBHelper.TABLE_RCARD, new java.lang.String[]{ sph.durga.rCard.db.SQLiteDBHelper.SQLiteDBHelper.RCARD_EMAIL }, null, null, null, null, null); cursor....
public static org.bukkit.entity.ItemFrame[] getMatchingMapFrames(fr.moribus.imageonmap.map.PosterMap map, fr.zcraft.zlib.tools.world.FlatLocation location, short mapId) { int mapIndex = map.getIndex(mapId); int x = map.getColumnAt(mapIndex); int y = map.getRowAt(mapIndex); return fr.moribus.imageonmap.u...
public static org.bukkit.entity.ItemFrame[] getMatchingMapFrames(fr.moribus.imageonmap.map.PosterMap map, fr.zcraft.zlib.tools.world.FlatLocation location, short mapId) { int mapIndex = map.getIndex(mapId); int x = map.getColumnAt(mapIndex); int y = map.getRowAt(mapIndex); return fr.moribus.imageonmap.u...
public void run() { Intermediary.LinkedEntity runner = theLevel.getHead(); gravity(GUI.MainGame.joe); move(GUI.MainGame.joe); while ((runner.equals(null)) == false) { checkCollision(GUI.MainGame.joe, runner); manageCD(runner); runner = runner.next; } repaint(); }
public void run() { Intermediary.LinkedEntity runner = theLevel.getHead(); gravity(GUI.MainGame.joe); move(GUI.MainGame.joe); while (runner != null) { checkCollision(GUI.MainGame.joe, runner); manageCD(runner); runner = runner.next; } repaint(); }
public void showSurveys(java.util.List<br.com.futusteps.survey.core.survey.Survey> surveys) { if ((((getContext()) != null) && (surveys == null)) || (surveys.isEmpty())) { empty.setVisibility(View.VISIBLE); }else { empty.setVisibility(View.GONE); } mListAdapter.replaceData(surveys); }
public void showSurveys(java.util.List<br.com.futusteps.survey.core.survey.Survey> surveys) { if ((getContext()) == null) { return ; } if ((surveys == null) || (surveys.isEmpty())) { empty.setVisibility(View.VISIBLE); }else { empty.setVisibility(View.GONE); } mListAdapter...
public void onResume() { super.onResume(); dataCenter.setMsgHandler(msgHandler); if (((listCount) <= 0) || (dataCenter.getOfferWallAd().offerPageHasExpired())) { dataCenter.requestOfferWallFromWebsite(zoneId); } }
public void onResume() { super.onResume(); dataCenter.setMsgHandler(msgHandler); if (((listCount) <= 0) || (dataCenter.getOfferWallAd().offerPageHasExpired())) { listCount = 0; dataCenter.requestOfferWallFromWebsite(zoneId); } }
public void setExercise(int exerciseId, java.lang.String exerciseName, int dateRange) { if ((exerciseSelector.getVisibility()) == (VISIBLE)) exerciseSelector.setText(exerciseName); this.exerciseId = exerciseId; this.exerciseName = exerciseName; exerciseIsSet = true; currentRangePosition...
public void setExercise(int exerciseId, java.lang.String exerciseName, int dateRange) { if ((((exerciseSelector.getVisibility()) == (VISIBLE)) && (exerciseName != null)) && (!(exerciseName.isEmpty()))) exerciseSelector.setText(exerciseName); this.exerciseId = exerciseId; this.exerciseName = exe...
protected void onPostExecute(java.lang.String[] res) { android.util.Log.d("MyWidget", ("Response string elems: " + (res.length))); if ((res.length) == (org.dkfsoft.KikimorWeather.sids.length)) { if ((res[0].substring(0, 1)) != "-") res[0] = "+" + (res[0]); alarm_manager.refr...
protected void onPostExecute(java.lang.String[] res) { if ((res.length) == (org.dkfsoft.KikimorWeather.sids.length)) { if ((res[0].substring(0, 1)) != "-") res[0] = "+" + (res[0]); alarm_manager.refreshValues(res); } }
private void findAllTargets(experiment.BoardCell startcell, int numsteps) { java.util.Set<experiment.BoardCell> adj = getAdjList(startcell); for (experiment.BoardCell cell : adj) { if (visited.contains(cell)) { break; }else { visited.add(cell); if (numsteps ==...
private void findAllTargets(experiment.BoardCell startcell, int numsteps) { java.util.Set<experiment.BoardCell> adj = getAdjList(startcell); java.lang.System.out.println(adj); for (experiment.BoardCell cell : adj) { if (visited.contains(cell)) { break; }else { visited...
public static void main(java.lang.String[] argv) { Simulator sim = new Simulator(); sim.read("CarWorld.wld"); while (true) { sim.advance(); try { java.lang.Thread.sleep(100); } catch (java.lang.Exception e) { } } }
public static void main(java.lang.String[] argv) { Simulator sim = new Simulator(); sim.read(argv[0]); while (true) { sim.advance(); try { java.lang.Thread.sleep(100); } catch (java.lang.Exception e) { } } }
public java.util.List<com.zimbra.cs.imap.ImapMessage> openImapFolder(com.zimbra.cs.mailbox.OperationContext octxt, com.zimbra.common.mailbox.ItemIdentifier folderId) throws com.zimbra.common.service.ServiceException { java.util.List<com.zimbra.cs.imap.ImapMessage> msgs = new java.util.LinkedList<com.zimbra.cs.imap....
public java.util.List<com.zimbra.cs.imap.ImapMessage> openImapFolder(com.zimbra.cs.mailbox.OperationContext octxt, com.zimbra.common.mailbox.ItemIdentifier folderId) throws com.zimbra.common.service.ServiceException { java.util.List<com.zimbra.cs.imap.ImapMessage> msgs = new java.util.ArrayList<com.zimbra.cs.imap.I...
public void updateGrid() { gameWidthScale = (this.getSize().width) / ((this.game.getDimension().width) + 1); gameHeightScale = (this.getSize().height) / ((this.game.getDimension().height) + 1); this.repaint(); }
public void updateGrid() { gameWidthScale = (this.getSize().width) / ((this.game.getDimension().width) + 1.0); gameHeightScale = (this.getSize().height) / ((this.game.getDimension().height) + 1.0); this.repaint(); }
public void run() { if ((target.getPreviousAlertLevel()) != alertLevel) { if ((alertLevelChangeListener) != null) { target.setAlertUserLevel(alertLevel); alertLevelChangeListener.onAlertLevelChange(alertLevel, target); } } progressChangeListener.onProgressChange(this....
public void run() { if ((target.getPreviousAlertLevel()) != alertLevel) { if ((alertLevelChangeListener) != null) { target.setAlertUserLevel(alertLevel); alertLevelChangeListener.onAlertLevelChange(alertLevel, target); } } if ((progressChangeListener) != null) { ...
public synchronized void stop() { org.apache.lens.server.api.events.LensEventService eventService = ((org.apache.lens.server.api.events.LensEventService) (org.apache.lens.server.LensServices.get().getService(LensEventService.NAME))); eventService.removeListener(queryStatusListener); queryStatusListener.stop...
public synchronized void stop() { org.apache.lens.server.api.events.LensEventService eventService = ((org.apache.lens.server.api.events.LensEventService) (org.apache.lens.server.LensServices.get().getService(LensEventService.NAME))); if (eventService != null) { eventService.removeListener(queryStatusLis...
public java.lang.String getState() { java.lang.StringBuilder tasksString = new java.lang.StringBuilder(); tasksString.append(com.rhodes.chris.taskpopper.TaskAdapter.taskList.get(0).getDesc()); for (int i = 1; i < (com.rhodes.chris.taskpopper.TaskAdapter.taskList.size()); i++) { tasksString.append(",...
public java.lang.String getState() { java.lang.StringBuilder tasksString = new java.lang.StringBuilder(); if ((com.rhodes.chris.taskpopper.TaskAdapter.taskList.size()) > 0) { tasksString.append(com.rhodes.chris.taskpopper.TaskAdapter.taskList.get(0).getDesc()); for (int i = 1; i < (com.rhodes.ch...
public android.app.Fragment getItem(int position) { android.app.Fragment f = new android.app.Fragment(); switch (position) { case 0 : f = com.jahirfiquitiva.paperboard.fragments.IconsFragment.newInstance(R.array.latest); break; case 1 : f = com.jahirfiquitiva....
public android.app.Fragment getItem(int position) { android.app.Fragment f; switch (position) { case 0 : f = com.jahirfiquitiva.paperboard.fragments.IconsFragment.newInstance(R.array.latest); break; case 1 : f = com.jahirfiquitiva.paperboard.fragments.IconsFra...
public static com.intellij.json.psi.JsonFile getComposerManifest(com.intellij.psi.PsiDirectory currentDirectory) { com.intellij.json.psi.JsonFile composerFile; do { composerFile = de.vette.idea.neos.util.ComposerUtil.getComposerManifestInDirectory(currentDirectory); currentDirectory = currentDir...
public static com.intellij.json.psi.JsonFile getComposerManifest(com.intellij.psi.PsiDirectory currentDirectory) { if (currentDirectory == null) { return null; } com.intellij.json.psi.JsonFile composerFile; do { composerFile = de.vette.idea.neos.util.ComposerUtil.getComposerManifestInDir...
public void startGame(android.view.View v) { android.content.SharedPreferences sp = this.getSharedPreferences("com.example.yo_pc.compasssurvival", 0); if ((auth.getCurrentUser().isEmailVerified()) == false) { showToastMessage("Email not confirmed, please, go to profile and make it!"); }else ...
public void startGame(android.view.View v) { android.content.SharedPreferences sp = this.getSharedPreferences("com.example.yo_pc.compasssurvival", 0); if (!(welcome.toString().equals("Name doesn't establisheddd"))) { android.content.Intent intent = new android.content.Intent(this, com.example.yo_pc.comp...
public static void worldTimeStep() { assignment4.Critter.doAllTimeSteps(); assignment4.Critter.doEncounters(); assignment4.Critter.updateRestEnergy(); assignment4.Critter.generateAlgae(); assignment4.Critter.removeDead(); assignment4.Critter.updatePosition(); assignment4.Critter.addBabies();...
public static void worldTimeStep() { assignment4.Critter.doAllTimeSteps(); assignment4.Critter.doEncounters(); assignment4.Critter.updateRestEnergy(); assignment4.Critter.removeDead(); assignment4.Critter.updatePosition(); assignment4.Critter.generateAlgae(); assignment4.Critter.addBabies();...
private static java.lang.String getExpectedOutput(java.lang.StackTraceElement testMethodStackTraceElem) { java.lang.String testMethodName = testMethodStackTraceElem.getMethodName(); java.lang.String className = testMethodStackTraceElem.getClassName(); java.lang.String expectedOutputFromFile = java2typescrip...
private static java.lang.String getExpectedOutput(java.lang.StackTraceElement testMethodStackTraceElem) { java.lang.String testMethodName = testMethodStackTraceElem.getMethodName(); java.lang.String className = testMethodStackTraceElem.getClassName(); java.lang.String expectedOutputFromFile = java2typescrip...
protected org.json.JSONObject checkExistLengthAndPut(java.lang.String searchField, org.json.JSONObject ConditionObject, org.json.JSONObject receiver, java.lang.String key, int threshold) { if (ConditionObject.has(searchField)) { if ((ConditionObject.getJSONArray(searchField).length()) > threshold) { ...
protected org.json.JSONObject checkExistLengthAndPut(java.lang.String searchField, org.json.JSONObject ConditionObject, org.json.JSONObject receiver, java.lang.String key, int threshold) { org.json.JSONObject temp = receiver; if (ConditionObject.has(searchField)) { if ((ConditionObject.getJSONArray(sear...
public com.google.devtools.build.android.StartTag setTo(java.lang.String value) { if (!((optional) && (com.google.common.base.Strings.isNullOrEmpty(value)))) { owner.attributes.add(((((" " + (name)) + "=\"") + value) + "\"")); } return owner; }
public com.google.devtools.build.android.StartTag setTo(java.lang.String value) { if ((!(optional)) || (value != null)) { owner.attributes.add(((((" " + (name)) + "=\"") + value) + "\"")); } return owner; }
public int getHttp2ActiveContextCount(java.lang.String host, int port) { if (!(this.isHttp2Only)) { throw new java.lang.IllegalStateException("Internal error: can't get HTTP/2 information about HTTP/1 context"); } java.lang.String key = com.vmware.xenon.common.http.netty.NettyChannelPool.toConnectio...
public int getHttp2ActiveContextCount(java.lang.String host, int port) { if (!(this.isHttp2Only)) { throw new java.lang.IllegalStateException("Internal error: can't get HTTP/2 information about HTTP/1 context"); } java.lang.String key = com.vmware.xenon.common.http.netty.NettyChannelPool.toConnectio...
public boolean equals(java.lang.Object obj) { if (obj instanceof org.jahia.modules.external.ExternalValueImpl) { return value.equals(((org.jahia.modules.external.ExternalValueImpl) (obj)).value); }else { return ((obj != null) && (obj instanceof org.jahia.modules.external.Value)) && (obj.equals(v...
public boolean equals(java.lang.Object obj) { if ((obj != null) && ((this.getClass()) == (obj.getClass()))) { return value.equals(((org.jahia.modules.external.ExternalValueImpl) (obj)).value); }else { return ((obj != null) && (obj instanceof org.jahia.modules.external.Value)) && (obj.equals(valu...
public static void checkAvailability() { try { File sourcer = new File("houses.dat"); if (!(sourcer.exists())) sourcer.createNewFile(); } catch (java.lang.Exception e) { java.lang.System.out.println(("Error " + e)); } }
public static void checkAvailability() { try { java.io.File sourcer = new java.io.File("houses.dat"); if (!(sourcer.exists())) sourcer.createNewFile(); } catch (java.lang.Exception e) { java.lang.System.out.println(("Error " + e)); } }
public void onClick(android.content.DialogInterface dialog, int which) { java.lang.String m_Text = input.getText().toString(); int m_int = java.lang.Integer.parseInt(m_Text); if (m_int <= (paramBarControl2.getMax())) { paramBarControlText2.setText(m_Text); paramBarValue2 = m_int; par...
public void onClick(android.content.DialogInterface dialog, int which) { java.lang.String m_Text = input.getText().toString(); int m_int = java.lang.Integer.parseInt(m_Text); if (m_int <= (paramBarControl2.getMax())) { paramBarControlText2.setText(m_Text); paramBarValue2 = m_int; par...
public boolean deleteDB() { boolean status = true; for (models.TableDefinition tableDefinition : this.taskSet.getTableDefinitions()) { try { java.lang.String statement = ("DROP TABLE IF EXISTS " + (tableDefinition.getTableName())) + ";"; this.statement.execute(statement); ...
public boolean deleteDB() { boolean status = true; for (models.TableDefinition tableDefinition : this.taskSet.getTableDefinitions()) { try { java.lang.String statement = ("DROP TABLE IF EXISTS " + (tableDefinition.getTableName())) + ";"; this.statement.execute(statement); ...
public void updateGuiAfterBuild(de.ovgu.featureide.core.IFeatureProject project, org.eclipse.core.resources.IFile configurationFile) { boolean isVisible = getSite().getPage().isPartVisible(getSite().getPart()); if (isVisible) { de.ovgu.featureide.ui.UIPlugin.getDefault().logInfo("Team2: StatisticsView -...
public void updateGuiAfterBuild(de.ovgu.featureide.core.IFeatureProject project, org.eclipse.core.resources.IFile configurationFile) { boolean isVisible = getSite().getPage().isPartVisible(getSite().getPart()); if (isVisible) { if ((project != null) && (configurationFile != null)) { refresh(...
void generateArrayElementEquals(net.openhft.chronicle.values.ArrayFieldModel arrayFieldModel, net.openhft.chronicle.values.ValueBuilder valueBuilder, com.squareup.javapoet.MethodSpec.Builder methodBuilder) { methodBuilder.addCode(java.lang.String.format("if ($N(%s) != $N(other.$N(index))) return false;\n", wrap(val...
void generateArrayElementEquals(net.openhft.chronicle.values.ArrayFieldModel arrayFieldModel, net.openhft.chronicle.values.ValueBuilder valueBuilder, com.squareup.javapoet.MethodSpec.Builder methodBuilder) { methodBuilder.addCode(java.lang.String.format("if ($N(%s) != $N(other.$N(index))) return false;\n", wrap(val...
public void filter(javax.ws.rs.container.ContainerRequestContext context) { boolean isSecurePath = isPathSecure(context); javax.ws.rs.core.UriInfo uriInfo = context.getUriInfo(); java.lang.String path = uriInfo.getAbsolutePath().getPath(); if ((isSecurePath && (path.contains("oauth2"))) || (path.contain...
public void filter(javax.ws.rs.container.ContainerRequestContext context) { boolean isSecurePath = isPathSecure(context); javax.ws.rs.core.UriInfo uriInfo = context.getUriInfo(); java.lang.String path = uriInfo.getPath(); if ((isSecurePath && (path.contains("oauth2"))) || (path.contains("accounts/self")...
private void testGetEntities(java.lang.String source, java.lang.String... expectedEntities) { com.ibm.watson.developer_cloud.alchemy.v1.model.Entities entities = getConnector().entities(buildTestRequest(source)); org.junit.Assert.assertNotNull(entities); testPrecenseOf(entities.getEntities(), expectedEntiti...
private void testGetEntities(java.lang.String source, java.lang.String... expectedEntities) { com.ibm.watson.developer_cloud.alchemy.v1.model.Entities entities = getConnector().entities(buildTestRequest(source, null)); org.junit.Assert.assertNotNull(entities); testPrecenseOf(entities.getEntities(), expected...
public java.util.List<org.opennms.netmgt.model.BridgeMacLink> addBridgeForwardingTableEntry(org.opennms.netmgt.model.OnmsNode node, java.lang.Integer bridgeport, java.lang.String mac, java.util.List<org.opennms.netmgt.model.BridgeMacLink> bft) { org.opennms.netmgt.model.BridgeMacLink link = new org.opennms.netmgt.m...
public org.opennms.netmgt.model.BridgeMacLink addBridgeForwardingTableEntry(org.opennms.netmgt.model.OnmsNode node, java.lang.Integer bridgeport, java.lang.String mac) { org.opennms.netmgt.model.BridgeMacLink link = new org.opennms.netmgt.model.BridgeMacLink(); link.setNode(node); link.setBridgePort(bridgep...
private hudson.plugins.sauce_ondemand.SauceOnDemandBuildWrapper createSauceOnDemandBuildWrapper(hudson.plugins.sauce_ondemand.Credentials sauceCredentials) { hudson.plugins.sauce_ondemand.SeleniumInformation seleniumInformation = new hudson.plugins.sauce_ondemand.SeleniumInformation(null, null); return new huds...
private hudson.plugins.sauce_ondemand.SauceOnDemandBuildWrapper createSauceOnDemandBuildWrapper(hudson.plugins.sauce_ondemand.Credentials sauceCredentials) { hudson.plugins.sauce_ondemand.SeleniumInformation seleniumInformation = new hudson.plugins.sauce_ondemand.SeleniumInformation(null, null); return new huds...
private static java.lang.String domainToAscii(java.lang.String input) { try { java.lang.String result = java.net.IDN.toASCII(input).toLowerCase(java.util.Locale.US); if (result.isEmpty()) return null; if (result == null) return null; if (com....
private static java.lang.String domainToAscii(java.lang.String input) { try { java.lang.String result = java.net.IDN.toASCII(input).toLowerCase(java.util.Locale.US); if (result.isEmpty()) return null; if (com.squareup.okhttp.HttpUrl.Builder.containsInvalidHostnameAsciiCo...