buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
void addNewPart(java.lang.String instrName, int staffSpan, com.xenoage.zong.core.Score comp) { com.xenoage.zong.core.instrument.Instrument instr = com.xenoage.zong.core.instrument.Instrument.defaultInstrument; com.xenoage.zong.core.music.Part part = new com.xenoage.zong.core.music.Part(instrName, null, staffSpa...
void addNewPart(java.lang.String instrName, int staffSpan, com.xenoage.zong.core.Score comp) { com.xenoage.zong.core.instrument.Instrument instr = com.xenoage.zong.core.instrument.Instrument.defaultInstrument; com.xenoage.zong.core.music.Part part = new com.xenoage.zong.core.music.Part(instrName, null, staffSpa...
void previousMusic() { try { durationTimer.cancel(); if ((remembered) != 0) { boolean tmpIsPlaying = isPlaying; stopMusic(); if (tmpIsPlaying) playLastMusic(); else actualMusicPlaying = getLastOnePlayed(); ...
void previousMusic() { try { if (isPlaying) durationTimer.cancel(); if ((remembered) != 0) { boolean tmpIsPlaying = isPlaying; stopMusic(); if (tmpIsPlaying) playLastMusic(); else actualMusicPlaying ...
public void testDeleteTask() throws java.lang.Exception { rest.task.TaskRepository taskRepository = new rest.task.TaskRepository(); rest.task.Task task = new rest.task.Task(); task.setTask("Name"); task.setDone(false); assertEquals(true, taskRepository.getAll().isEmpty()); taskRepository.add(tas...
public void testDeleteTask() throws java.lang.Exception { rest.task.TaskRepository taskRepository = new rest.task.TaskRepository(); rest.task.Task task = new rest.task.Task(); task.setTask("Name"); task.setDone(false); assertEquals(true, taskRepository.getAll().isEmpty()); taskRepository.add(tas...
private java.lang.String getExecutionKey(com.mangopay.core.APIs.PayIn payIn) throws java.lang.Exception { if ((payIn.ExecutionDetails) == null) throw new java.lang.Exception("Execution is not defined or it is not object type"); java.lang.String className = payIn.ExecutionDetails.getClass().getName(...
private java.lang.String getExecutionKey(com.mangopay.core.APIs.PayIn payIn) throws java.lang.Exception { if ((payIn.ExecutionDetails) == null) throw new java.lang.Exception("Execution is not defined or it is not object type"); java.lang.String className = payIn.ExecutionDetails.getClass().getName(...
public double getRawAnalogStickALY() { try { if (((gp1.getRawAxis(1)) > 0.1) || ((gp1.getRawAxis(1)) < (-0.1))) return gp1.getRawAxis(1); } catch (java.lang.Exception e) { } try { xbox.getRawAxis(1); } catch (java.lang.Exception e) { } return 0.0; }
public double getRawAnalogStickALY() { try { if (((gp1.getRawAxis(1)) > 0.1) || ((gp1.getRawAxis(1)) < (-0.1))) return gp1.getRawAxis(1); } catch (java.lang.Exception e) { } try { if ((xbox.getRawAxis(1)) != 0.0) return xbox.getRawAxis(1); } ...
private int getReviewId(java.lang.String repos, java.lang.String txn) throws org.hooks.SvnException { java.lang.String log = getLog(repos, txn); java.util.regex.Matcher matcher = java.util.regex.Pattern.compile("^review:([0-9]+)").matcher(log); while (matcher.find()) { return java.lang.Integer.parse...
private int getReviewId(java.lang.String repos, java.lang.String txn) throws org.hooks.SvnException { java.lang.String log = getLog(repos, txn); java.util.regex.Matcher matcher = java.util.regex.Pattern.compile("^review:([0-9]+)").matcher(log); while (matcher.find()) { return java.lang.Integer.parse...
double getFraction(io.opencensus.common.Timestamp now) { io.opencensus.common.Duration elapsedTime = now.subtractTimestamp(start); com.google.common.base.Preconditions.checkArgument((((elapsedTime.compareLength(io.opencensus.implcore.stats.IntervalBucket.ZERO)) >= 0) && ((elapsedTime.compareLength(duration)) < ...
double getFraction(io.opencensus.common.Timestamp now) { io.opencensus.common.Duration elapsedTime = now.subtractTimestamp(start); com.google.common.base.Preconditions.checkArgument((((now.compareTo(start)) >= 0) && ((elapsedTime.compareLength(duration)) < 0)), "This bucket must be current."); return ((doub...
public java.util.List<com.innovaee.eorder.entity.UserLevel> getAllUserLevels() { java.util.List<com.innovaee.eorder.entity.UserLevel> levels = userLevelDao.loadAll(); for (com.innovaee.eorder.entity.UserLevel level : levels) { if (level.getLevelName().equals(Constants.DEFAULT_USR_LEVEL)) { l...
public java.util.List<com.innovaee.eorder.entity.UserLevel> getAllUserLevels() { java.util.List<com.innovaee.eorder.entity.UserLevel> levels = userLevelDao.loadAll(); for (com.innovaee.eorder.entity.UserLevel level : levels) { if (level.getLevelName().equals(Constants.DEFAULT_USR_LEVEL)) { l...
private void syncTaskList() { android.support.v4.app.FragmentManager man = this.getSupportFragmentManager(); com.therewillbebugs.todolist.TaskListFragment frag = ((com.therewillbebugs.todolist.TaskListFragment) (man.findFragmentByTag(TaskListFragment.TAG))); if (frag != null) { android.util.Log.d("t...
private void syncTaskList() { android.support.v4.app.FragmentManager man = this.getSupportFragmentManager(); com.therewillbebugs.todolist.TaskListFragment frag = ((com.therewillbebugs.todolist.TaskListFragment) (man.findFragmentByTag(TaskListFragment.TAG))); if (frag != null) { frag.refreshRecyclerL...
private java.util.List<org.naima.service.diagnostic.domain.Symptom> findExclusiveSymptoms(org.naima.service.diagnostic.domain.AssociatedSymptomsRule rule, java.util.Set<java.lang.String> excludeIds) { java.util.List<org.naima.service.diagnostic.domain.Symptom> symptoms = new java.util.ArrayList<org.naima.service.di...
private java.util.List<org.naima.service.diagnostic.domain.Symptom> findExclusiveSymptoms(org.naima.service.diagnostic.domain.AssociatedSymptomsRule rule, java.util.Set<java.lang.String> excludeIds) { java.util.List<org.naima.service.diagnostic.domain.Symptom> symptoms = new java.util.ArrayList<org.naima.service.di...
public void actionPerformed(java.awt.event.ActionEvent arg0) { try { mainPanelTableMouseActivator = true; mainViewModel = mainPanel.getViewModel(); mainViewModel.setTableModel(createDatumTableModel()); mainPanel.setViewModel(mainViewModel); for (int i = 0; i < (columnNames.le...
public void actionPerformed(java.awt.event.ActionEvent arg0) { try { mainViewModel = mainPanel.getViewModel(); mainPanelTableMouseActivator = true; mainViewModel.setTableModel(createDatumTableModel()); mainPanel.setViewModel(mainViewModel); for (int i = 0; i < (columnNames.le...
public void checkBubbles() { java.util.Iterator<model.Bubble> i = bubbles.iterator(); while (i.hasNext()) { model.Bubble bubble = i.next(); if ((bubble.checkPop()) && (!(bubble.getIsPrisonBubble()))) { i.remove(); levelController.getScreenController().removeSprite(bubble)...
public void checkBubbles() { java.util.Iterator<model.Bubble> i = bubbles.iterator(); while (i.hasNext()) { model.Bubble bubble = i.next(); if ((bubble.checkPop()) && (!(bubble.getIsPrisonBubble()))) { i.remove(); levelController.getScreenController().removeSprite(bubble)...
protected void onStart() { super.onStart(); android.content.Intent intent = new android.content.Intent(this, com.sarabjeet.musical.sync.MusicPlayerService.class); intent.setAction("SERVICE_START"); startService(intent); bindService(intent, mServiceConnection, Context.BIND_AUTO_CREATE); android.u...
protected void onStart() { super.onStart(); android.content.Intent intent = new android.content.Intent(this, com.sarabjeet.musical.sync.MusicPlayerService.class); intent.setAction("SERVICE_START"); startService(intent); bindService(intent, mServiceConnection, Context.BIND_AUTO_CREATE); android.s...
public rx.Observable<me.alwx.places.data.models.Geodata> call(me.alwx.places.data.models.gson.GeocodeResponse resp) { localDataSource.removeGeodata(); me.alwx.places.data.models.Geodata geodata = me.alwx.places.data.models.Geodata.builder().setId(place.id()).setLatitude(resp.getLat()).setLongitude(resp.getLng()...
public rx.Observable<me.alwx.places.data.models.Geodata> call(me.alwx.places.data.models.gson.GeocodeResponse resp) { me.alwx.places.data.models.Geodata geodata = me.alwx.places.data.models.Geodata.builder().setId(place.id()).setLatitude(resp.getLat()).setLongitude(resp.getLng()).setAddress(addressStr).build(); ...
protected void layoutLastComponent(com.vaadin.ui.Component component) { switch (getPacking()) { case EXPAND : if (component instanceof de.syngenio.vaadin.synergy.SynergyView.ItemComponent) { layoutComponent(component, "100%", 0, Alignment.MIDDLE_RIGHT); }else { ...
protected void layoutLastComponent(com.vaadin.ui.Component component) { switch (getPacking()) { case EXPAND : if (component instanceof de.syngenio.vaadin.synergy.SynergyView.ItemComponent) { layoutComponent(component, "100%", 1, Alignment.MIDDLE_RIGHT); }else { ...
private javax.swing.JPanel buildCentralPanel() { javax.swing.JPanel panel = new javax.swing.JPanel(); panel.setLayout(new javax.swing.BoxLayout(panel, javax.swing.BoxLayout.PAGE_AXIS)); panel.add(buildPanel("REGULAR EXPRESSION:", inputField), java.awt.BorderLayout.PAGE_START); panel.add(buildPanel("TEXT...
private javax.swing.JPanel buildCentralPanel() { javax.swing.JPanel panel = new javax.swing.JPanel(); panel.setLayout(new javax.swing.BoxLayout(panel, javax.swing.BoxLayout.PAGE_AXIS)); panel.add(buildPanel("REGULAR EXPRESSION:", inputField), java.awt.BorderLayout.PAGE_START); panel.add(buildPanel("TEXT...
private static void assignDeltaDistance(graph.clustering.kmeans.Category currentCategory) { double overallAverage = 0; for (int j = 0; j < (currentCategory.clusters.size()); j++) { currentCategory.clusters.get(j).averageEuclideanDistance = graph.clustering.kmeans.ClusterFactory.calculateAverageEuclidean...
private static void assignDeltaDistance(graph.clustering.kmeans.Category currentCategory) { double overallAverage = 0; for (int j = 0; j < (currentCategory.clusters.size()); j++) { currentCategory.clusters.get(j).averageEuclideanDistance = graph.clustering.kmeans.ClusterFactory.calculateAverageEuclidean...
public void setUserVolume(int volume) { double dVolume = (((double) (volume)) / 100) * (maxVolume); android.util.Log.d("DEBUG", ("Volume level: " + (java.lang.String.valueOf(dVolume)))); mAudioManager.setStreamVolume(AudioManager.STREAM_ALARM, ((int) (dVolume)), 0); }
public void setUserVolume(int volume) { double dVolume = (((double) (volume)) / 100) * (maxVolume); android.util.Log.d("DEBUG", ("Volume level: " + (java.lang.String.valueOf(dVolume)))); mAudioManager.setStreamVolume(AudioManager.STREAM_ALARM, (dVolume >= 1.0 ? ((int) (dVolume)) : 1), 0); }
public boolean tokenCheck(org.bukkit.entity.Player p, int amount) { p.sendMessage("Made it to TM class"); p.sendMessage((":" + (pl.dataBase))); if (pl.dataBase.containsKey(p.getName())) { if ((pl.dataBase.get(p.getName())) >= amount) { return true; }else { return fals...
public boolean tokenCheck(org.bukkit.entity.Player p, int amount) { if (pl.dataBase.containsKey(p.getName())) { if ((pl.dataBase.get(p.getName())) >= amount) { return true; }else { return false; } }else { return false; } }
public void setButtonMotion(int[] array) { buttonMotion = new javafx.scene.control.Button("Motion"); buttonMotion.setStyle("-fx-background-color: #00c9ff;"); buttonMotion.setOnAction(( event) -> { javafx.animation.SequentialTransition transition = new javafx.animation.SequentialTransition(); ...
public void setButtonMotion(int[] array) { buttonMotion = new javafx.scene.control.Button("Motion"); buttonMotion.setStyle("-fx-background-color: #00c9ff;"); buttonMotion.setOnAction(( event) -> { javafx.animation.SequentialTransition transition = new javafx.animation.SequentialTransition(); ...
public int accept(ch.unibe.scg.dicto.Context context, int offset) { int length = 0; int result = FAILURE; while (((context.size()) > 0) && ((result = baseAcceptor.accept(context, length)) != (FAILURE))) length += result; return length; }
public int accept(ch.unibe.scg.dicto.Context context, int offset) { int length = 0; int result = FAILURE; while (((context.size()) > length) && ((result = baseAcceptor.accept(context, (offset + length))) != (FAILURE))) length += result; return length; }
public void initPath() { path = new java.awt.geom.Path2D.Double(); path.moveTo(latitudes.get(0), longtitudes.get(0)); for (int i = 1; i < (latitudes.size()); ++i) { path.lineTo(latitudes.get(i), longtitudes.get(i)); } path.closePath(); }
public void initPath() { path = new java.awt.geom.Path2D.Double(); path.moveTo(longtitudes.get(0), latitudes.get(0)); for (int i = 1; i < (latitudes.size()); ++i) { path.lineTo(longtitudes.get(i), latitudes.get(i)); } path.closePath(); }
public void onItemClick(android.widget.AdapterView<?> parent, android.view.View view, int position, long id) { switch (position) { case 0 : showAntiTheftDialog(); break; case 8 : callFragment(Constants.SETTINGS_FRAG); break; case 1 : ...
public void onItemClick(android.widget.AdapterView<?> parent, android.view.View view, int position, long id) { switch (position) { case 0 : showAntiTheftDialog(); break; case 8 : callFragment(Constants.SETTINGS_FRAG); break; case 1 : ...
public com.mongodb.BasicDBObject findOne(com.mongodb.BasicDBObject query) { com.mongodb.DBCursor iterator = null; iterator = collection.find(query); if (iteratord.hasNext()) { return ((com.mongodb.BasicDBObject) (iterator.next())); }else { return null; } }
public com.mongodb.BasicDBObject findOne(com.mongodb.BasicDBObject query) { com.mongodb.DBCursor iterator = null; iterator = collection.find(query); if (iterator.hasNext()) { return ((com.mongodb.BasicDBObject) (iterator.next())); }else { return null; } }
public void pull(final java.lang.String imageName) throws com.spotify.docker.client.DockerException { java.util.concurrent.Callable<java.lang.Void> callable = new java.util.concurrent.Callable<java.lang.Void>() { @java.lang.Override public java.lang.Void call() throws java.lang.Exception { ...
public void pull(final java.lang.String imageName) throws com.spotify.docker.client.DockerException { java.util.concurrent.Callable<java.lang.Void> callable = new java.util.concurrent.Callable<java.lang.Void>() { @java.lang.Override public java.lang.Void call() throws java.lang.Exception { ...
public void onCreate() { super.onCreate(); com.facebook.soloader.SoLoader.init(this, false); com.jakewharton.threetenabp.AndroidThreeTen.init(this); timber.log.Timber.plant(new timber.log.Timber.DebugTree()); com.facebook.stetho.Stetho.initialize(com.facebook.stetho.Stetho.newInitializerBuilder(this...
public void onCreate() { super.onCreate(); com.facebook.soloader.SoLoader.init(this, false); timber.log.Timber.plant(new timber.log.Timber.DebugTree()); com.facebook.stetho.Stetho.initialize(com.facebook.stetho.Stetho.newInitializerBuilder(this).enableWebKitInspector(new com.facebook.litho.LithoWebKitIn...
private int setControlCommand(int request, int value, int index, byte[] data) { int dataLength = 0; if (data != null) { dataLength = data.length; } int response = connection.controlTransfer(com.felhr.usbserial.FTDISerialDevice.FTDI_REQTYPE_HOST2DEVICE, request, value, (((mInterface.getId()) + 1)...
private int setControlCommand(int request, int value, int index, byte[] data) { int dataLength = (data == null) ? 0 : data.length; int response = connection.controlTransfer(com.felhr.usbserial.FTDISerialDevice.FTDI_REQTYPE_HOST2DEVICE, request, value, (((mInterface.getId()) + 1) + index), data, dataLength, com....
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); app.akeorcist.deviceinformation.utility.WindowsUtils.setStatusAndNavColor(this); setContentView(R.layout.activity_screen_measure); layoutScreenMeasuremen...
protected void onCreate(android.os.Bundle savedInstanceState) { requestWindowFeature(Window.FEATURE_NO_TITLE); super.onCreate(savedInstanceState); app.akeorcist.deviceinformation.utility.WindowsUtils.setStatusAndNavColor(this); setContentView(R.layout.activity_screen_measure); layoutScreenMeasuremen...
public com.orientechnologies.orient.core.sql.method.intl.OCalendar setDate(int year, int month, int day, int hour, int minute, int second, java.lang.String timezoneid) { try { this.calendar.set(year, month, day, hour, minute, second); this.calendar.setTimeZone(java.util.com.ibm.icu.util.TimeZone.get...
public com.orientechnologies.orient.core.sql.method.intl.OCalendar setDate(int year, int month, int day, java.lang.String timezoneid) { try { this.calendar.set(year, month, day); this.calendar.setTimeZone(java.util.com.ibm.icu.util.TimeZone.getTimeZone(timezoneid)); } catch (java.lang.Exception ...
public java.util.ArrayList<main.java.logic.Task> handleUserCommand(java.lang.String userInput, java.util.ArrayList<main.java.logic.Task> taskOptions) throws java.lang.Exception { assert userInput != null; main.java.logic.CommandDispatcher dispatcher = new main.java.logic.CommandDispatcher(); main.java.logic...
public java.util.ArrayList<main.java.logic.Task> handleUserCommand(java.lang.String userInput, java.util.ArrayList<main.java.logic.Task> taskOptions) throws java.lang.Exception { assert userInput != null; main.java.logic.CommandDispatcher dispatcher = new main.java.logic.CommandDispatcher(); main.java.logic...
public java.lang.Object readObjectToFile(java.lang.String fileName, java.lang.String filePath) throws java.io.IOException, java.lang.ClassNotFoundException { java.io.FileInputStream fis = null; java.io.ObjectInputStream ois = null; try { fis = new java.io.FileInputStream(new java.io.File(filePath, f...
public java.lang.Object readObjectToFile(java.lang.String fileName, java.lang.String filePath) throws java.io.IOException, java.lang.ClassNotFoundException { java.io.FileInputStream fis = null; java.io.ObjectInputStream ois = null; try { fis = new java.io.FileInputStream(new java.io.File(filePath, f...
private void ageUp() { if (((age) == ((model.entity.Computer.AGE_MAX) + 1)) && (working)) { working = false; report("I'm too old, need to be replaced!"); server.crashNotification(this); (age)++; }else { (age)++; } }
private void ageUp() { if (((age) == ((model.entity.Computer.AGE_MAX) + 1)) && (working)) { working = false; report("I'm too old, need to be replaced!"); server.crashNotification(this); (age)++; }else if (working) { (age)++; } }
public int addEntity(src.entityThings.Entity e, int x, int y) { e.setMapRelation(new src.model.MapEntity_Relation(this, e, x, y)); int error_code = this.map_grid_[y][x].addEntity(e); if (error_code == 0) { this.entity_list_.put(e.name_, e); }else { e.setMapRelation(null); } items...
public int addEntity(src.entityThings.Entity e, int x, int y) { e.setMapRelation(new src.model.MapEntity_Relation(this, e, x, y)); int error_code = this.map_grid_[y][x].addEntity(e); if (error_code == 0) { this.entity_list_.put(e.name_, e); }else { e.setMapRelation(null); } retur...
public void update(double x, double y, double orientationGeometrique, boolean enMarcheAvant, double courbure) { if (enMarcheAvant) { orientationReelle = orientationGeometrique; courbureReelle = courbure; }else { orientationReelle = orientationGeometrique + (java.lang.Math.PI); co...
public void update(double x, double y, double orientationGeometrique, boolean enMarcheAvant, double courbureGeometrique) { if (enMarcheAvant) { orientationReelle = orientationGeometrique; courbureReelle = courbureGeometrique; }else { orientationReelle = orientationGeometrique + (java.lan...
public boolean apply(lu.zhe.mtgslackbot.card.Card card) { if ((comparison) == null) { return false; } java.lang.Integer intValue = lu.zhe.mtgslackbot.parsing.Parsing.PROPERTY_FUNCS.get(property).apply(card); return (intValue != null) && (intValue != (comparison)); }
public boolean apply(lu.zhe.mtgslackbot.card.Card card) { if ((comparison) == null) { return false; } java.lang.Integer intValue = lu.zhe.mtgslackbot.parsing.Parsing.PROPERTY_FUNCS.get(property).apply(card); return (intValue != null) && (intValue >= (comparison)); }
private short nextParamStackPos(int size) { short pos = ((short) (((parameterStackSpace) + (org.jikesrvm.compilers.baseline.arm.BaselineCompilerImpl.MAX_REGISTER_LOC)) + (org.jikesrvm.SizeConstants.BYTES_IN_INT))); if (org.jikesrvm.VM.VerifyAssertions) org.jikesrvm.VM._assert(((parameterStackSpace) <= (...
private short nextParamStackPos(int size) { short pos = ((short) (((parameterStackSpace) + (org.jikesrvm.compilers.baseline.arm.BaselineCompilerImpl.MAX_REGISTER_LOC)) + size)); if (org.jikesrvm.VM.VerifyAssertions) org.jikesrvm.VM._assert(((parameterStackSpace) <= ((java.lang.Short.MAX_VALUE) - size)))...
public static com.google.common.collect.ImmutableSet<google.registry.model.registry.label.PremiumList.PremiumListEntry> parentPremiumListEntriesOnRevision(java.lang.Iterable<google.registry.model.registry.label.PremiumList.PremiumListEntry> entries, final com.googlecode.objectify.Key<google.registry.model.registry.labe...
public static com.google.common.collect.ImmutableSet<google.registry.model.registry.label.PremiumList.PremiumListEntry> parentPremiumListEntriesOnRevision(java.lang.Iterable<google.registry.model.registry.label.PremiumList.PremiumListEntry> entries, final com.googlecode.objectify.Key<google.registry.model.registry.labe...
protected void addFermentTooltips(net.minecraftforge.fluids.FluidStack fluid, java.util.List<java.lang.String> tooltip) { if (fluid == null) return ; if ((fluid.amount) <= 0) return ; if (growthcraft.api.cellar.CellarRegistry.instance().fermenting().canFerment(fluid)) { add...
protected void addFermentTooltips(net.minecraftforge.fluids.FluidStack fluid, java.util.List<java.lang.String> tooltip) { if (fluid == null) return ; if ((fluid.amount) <= 0) return ; addFluidTooltips(fluid, tooltip); if (!(growthcraft.api.cellar.CellarRegistry.instance().ferme...
public void adjustBranchLevel(int indicator) { this.setLevel(((this.getLevel()) + indicator)); java.lang.System.out.println(this.getId()); for (com.storii.models.InternLink link : this.getOutgoingInternLinks()) { link.getNextPage().adjustBranchLevel(indicator); } }
public void adjustBranchLevel(int indicator) { this.setLevel(((this.getLevel()) + indicator)); for (com.storii.models.InternLink link : this.getOutgoingInternLinks()) { link.getNextPage().adjustBranchLevel(indicator); } }
private static double getTaoSigma() { double answer = (((((((4 * (java.lang.Math.PI)) * (main.Calculation.sigma)) * (main.Calculation.kappa)) * (main.Calculation.kappa)) * (main.Calculation.R)) * (main.Calculation.R)) * (main.Calculation.mu1)) / ((15 * (main.Calculation.c)) * (main.Calculation.c)); answer *= (m...
private static double getTaoSigma() { double answer = ((((((4 * (java.lang.Math.PI)) * (main.Calculation.sigma)) * (main.Calculation.kappa)) * (main.Calculation.kappa)) * (main.Calculation.R)) * (main.Calculation.R)) / ((15 * (main.Calculation.c)) * (main.Calculation.c)); answer *= (main.Calculation.gamma) * (m...
public boolean equals(java.lang.Object o) { if ((this) == o) return true; if (!(o instanceof com.monits.volleyrequests.network.request.SampleData)) return false; com.monits.volleyrequests.network.request.SampleData that = ((com.monits.volleyrequests.network.request.SampleData) (o))...
public boolean equals(final java.lang.Object o) { if ((this) == o) { return true; } if (!(o instanceof com.monits.volleyrequests.network.request.SampleData)) { return false; } final com.monits.volleyrequests.network.request.SampleData that = ((com.monits.volleyrequests.network.reques...
public void testHashSet() { java.util.Set<java.lang.Integer> s = createResizedDS(0, 100000); java.util.Iterator it = s.iterator(); it.next(); it.next(); it.remove(); it.next(); org.junit.Assert.assertEquals("the size should be 9 now", 9, s.size()); org.junit.Assert.assertNotEquals("You a...
public void testHashSet() { java.util.Set<java.lang.Integer> set = this.createResizedDS(0, 100000); java.util.Iterator it = set.iterator(); it.next(); it.next(); it.remove(); it.next(); org.junit.Assert.assertEquals("the size should be 9 now", 9, set.size()); org.junit.Assert.assertNotEq...
private java.util.List<com.emc.storageos.db.client.model.StoragePort> getPortsWithSwitchAffinity(java.net.URI netURI, com.emc.storageos.db.client.model.Initiator initiator, java.lang.String switchName, java.util.Map<java.net.URI, java.util.Map<java.lang.String, java.util.List<com.emc.storageos.db.client.model.StoragePo...
private java.util.List<com.emc.storageos.db.client.model.StoragePort> getPortsWithSwitchAffinity(java.net.URI netURI, com.emc.storageos.db.client.model.Initiator initiator, java.lang.String switchName, java.util.Map<java.net.URI, java.util.Map<java.lang.String, java.util.List<com.emc.storageos.db.client.model.StoragePo...
public void resetStatsOnLogIn(org.bukkit.event.player.PlayerLoginEvent e) { org.bukkit.entity.Player p = e.getPlayer(); for (int i = 0; i < (al.size()); i++) { if (al.get(i).getName().equals(p.getName())) al.get(i).reset(); } }
public void resetStatsOnLogIn(org.bukkit.event.player.PlayerLoginEvent e) { org.bukkit.entity.Player p = e.getPlayer(); for (int i = 0; i < (al.size()); i++) { if (al.get(i).getName().equals(p.getName())) al.remove(i); } }
public static ml.dmlc.xgboost4j.java.pattern.command.List<java.lang.Object> produceRequests() { ml.dmlc.xgboost4j.java.pattern.command.List<java.lang.Object> queue = new java.util.ArrayList<java.lang.Object>(); queue.add(new ml.dmlc.xgboost4j.java.pattern.command.JavaPeople()); queue.add(new ml.dmlc.xgboost...
public static java.util.List<java.lang.Object> produceRequests() { java.util.List<java.lang.Object> queue = new java.util.ArrayList<java.lang.Object>(); queue.add(new ml.dmlc.xgboost4j.java.pattern.command.JavaPeople()); queue.add(new ml.dmlc.xgboost4j.java.pattern.command.PhpPeople()); queue.add(new ml...
public java.lang.String getExec(java.lang.String cmd) { java.lang.String result = ""; if ((diagramController) != null) { result = diagramController.execute(cmd); }else { delay(); } if ((delay) != 0) { diagram.redraw(); try { java.lang.Thread.sleep(delay); ...
public java.lang.String getExec(java.lang.String cmd) { java.lang.String result = ""; if ((diagramController) != null) { result = diagramController.execute(cmd); }else { delay(); } if ((delay) != 0) { diagram.redraw(); try { java.lang.Thread.sleep(delay); ...
public boolean visit(org.eclipse.jdt.core.dom.ReturnStatement node) { (returnCount)++; org.eclipse.jdt.core.dom.ASTNode expression = node.getExpression(); if ((expression != null) && ((expression.getNodeType()) == (org.eclipse.jdt.core.dom.ASTNode.BOOLEAN_LITERAL))) { this.encounteredInvalidReturnSt...
public boolean visit(org.eclipse.jdt.core.dom.ReturnStatement node) { (returnCount)++; org.eclipse.jdt.core.dom.ASTNode expression = node.getExpression(); if ((expression != null) || ((expression.getNodeType()) == (org.eclipse.jdt.core.dom.ASTNode.BOOLEAN_LITERAL))) { this.encounteredInvalidReturnSt...
public boolean generate() { if (!(this.coverLetterTemplate.exists())) { return false; } java.lang.String content = replaceKeywords(this.replacementContent); try { buildCoverLetter(this.fileName, this.coverLetterTemplate, content); } catch (java.io.IOException e) { java.lang.S...
public boolean generate() throws java.io.IOException { if ((((this.fileName) == null) || ((this.replacementContent) == null)) || ((this.coverLetterTemplate) == null)) { return false; } if (!(coverLetterTemplate.exists())) { return false; } java.lang.String content = replaceKeywords(r...
private static java.util.LinkedList<com.purgadell.grizzly.Worlds.DungeonWorld.Board.Helpers.Coordinates> calcPath(com.purgadell.grizzly.Worlds.DungeonWorld.Board.Helpers.PathFinder.Node end) { java.util.LinkedList<com.purgadell.grizzly.Worlds.DungeonWorld.Board.Helpers.Coordinates> path = new java.util.LinkedList<c...
private static java.util.LinkedList<com.purgadell.grizzly.Worlds.DungeonWorld.Board.Helpers.Coordinates> calcPath(com.purgadell.grizzly.Worlds.DungeonWorld.Board.Helpers.PathFinder.Node end) { java.util.LinkedList<com.purgadell.grizzly.Worlds.DungeonWorld.Board.Helpers.Coordinates> path = new java.util.LinkedList<c...
public static void main(java.lang.String[] arg) { com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration config = new com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration(); config.resizable = false; config.width = 800; config.height = 600; config.title = " "; config.addIcon("ico...
public static void main(java.lang.String[] arg) { com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration config = new com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration(); config.resizable = false; config.width = 800; config.height = 600; config.title = " "; new com.badlogic.gd...
public void enter(final com.vaadin.navigator.ViewChangeListener.ViewChangeEvent event) { try { it.cnr.missioni.el.model.search.builder.MissioneSearchBuilder missioneSearchBuilder = it.cnr.missioni.el.model.search.builder.MissioneSearchBuilder.getMissioneSearchBuilder(); it.cnr.missioni.rest.api.resp...
public void enter(final com.vaadin.navigator.ViewChangeListener.ViewChangeEvent event) { try { elencoMissioniTable.aggiornaTableAdmin(it.cnr.missioni.dashboard.client.ClientConnector.getMissione(it.cnr.missioni.el.model.search.builder.MissioneSearchBuilder.getMissioneSearchBuilder())); elencoRimbors...
public java.lang.String toString() { int depth = 0; edu.umn.kylepete.player.UCTPlayer.StateNode temp = this.parent; while (temp != null) { depth++; temp = temp.parent; } return ((((((("Depth(" + depth) + "), Reward(") + (totalReward)) + "), Visits(") + (visits)) + ") Children(") + (...
public java.lang.String toString() { return ((((((("Depth(" + (depth)) + "), Reward(") + (totalReward)) + "), Visits(") + (visits)) + ") Children(") + (children.size())) + ")"; }
public void set(org.springframework.boot.actuate.metrics.Metric<?> value) { org.springframework.boot.actuate.metrics.opentsdb.OpenTsdbData data = new org.springframework.boot.actuate.metrics.opentsdb.OpenTsdbData(this.namingStrategy.getName(value.getName()), value.getValue(), value.getTimestamp().getTime()); th...
public void set(org.springframework.boot.actuate.metrics.Metric<?> value) { org.springframework.boot.actuate.metrics.opentsdb.OpenTsdbData data = new org.springframework.boot.actuate.metrics.opentsdb.OpenTsdbData(this.namingStrategy.getName(value.getName()), value.getValue(), value.getTimestamp().getTime()); sy...
public static boolean isUserPremium(@android.support.annotation.NonNull android.app.Application application) { return (((((com.benoitletondor.easybudgetapp.EasyBudget) (application)).getPremiumCheckStatus()) == (com.benoitletondor.easybudgetapp.PremiumCheckStatus.PREMIUM)) || (com.benoitletondor.easybudgetapp.helpe...
public static boolean isUserPremium(@android.support.annotation.NonNull android.app.Application application) { return ((("true".equals("true")) || ((((com.benoitletondor.easybudgetapp.EasyBudget) (application)).getPremiumCheckStatus()) == (com.benoitletondor.easybudgetapp.PremiumCheckStatus.PREMIUM))) || (com.benoi...
public void render() { background(0); stroke(255); ellipse(((gamedemo.renderer.GraphicsMain.SIZE) / 2), ((gamedemo.renderer.GraphicsMain.SIZE) - ((float) (((((s.getHeight()) * 0.9) * (gamedemo.renderer.GraphicsMain.SIZE)) / (gamedemo.renderer.GraphicsMain.HEIGHT)) + (0.05 * (gamedemo.renderer.GraphicsMain.S...
public void render() { background(0); ellipse(((gamedemo.renderer.GraphicsMain.SIZE) / 2), ((gamedemo.renderer.GraphicsMain.SIZE) - ((float) (((((s.getHeight()) * 0.9) * (gamedemo.renderer.GraphicsMain.SIZE)) / (gamedemo.renderer.GraphicsMain.HEIGHT)) + (0.05 * (gamedemo.renderer.GraphicsMain.SIZE))))), ((gamed...
public void crashLocalNode(java.lang.String msg, boolean produceStackTrace, java.lang.Throwable cause) { try { m_crashLocalNode.invoke(m_handler, msg, cause); } catch (java.lang.reflect.InvocationTargetException | java.lang.IllegalAccessException e) { error(e, "failed to crash. Forcing program e...
public void crashLocalNode(java.lang.String msg, boolean produceStackTrace, java.lang.Throwable cause) { try { m_crashLocalNode.invoke(m_handler, msg, cause); } catch (java.lang.IllegalAccessException e) { error(e, "failed to crash. Forcing program exit"); java.lang.System.exit((-1)); ...
public void entriesAlongDiagonalOfDistanceMatrixShouldBeZero() throws java.lang.Exception { java.nio.file.Path directory = java.nio.file.Paths.get("resources/python/test_subset/"); double[][] matrix = new TreeEditDistanceMatrix(directory, "python").compute(); for (int i = 0; i < (matrix.length); i++) { ...
public void entriesAlongDiagonalOfDistanceMatrixShouldBeZero() throws java.lang.Exception { java.nio.file.Path directory = java.nio.file.Paths.get("resources/python/test_subset/"); double[][] matrix = new TreeEditDistanceMatrix(directory, "python").compute(); for (int i = 0; i < (matrix.length); i++) { ...
public void tryGiveWeapon(weapon.Weapon monsterWeapon) { weapon.Weapon playerWeapon = this.getWeapon(); if (monsterWeapon != null) { if (playerWeapon != null) { if ((monsterWeapon.getDamage()) > (playerWeapon.getDamage())) { this.giveWeapon(monsterWeapon); } ...
public void tryGiveWeapon(weapon.Weapon monsterWeapon) { weapon.Weapon playerWeapon = getWeapon(); if (monsterWeapon != null) { if (playerWeapon != null) { if ((monsterWeapon.getDamage()) > (playerWeapon.getDamage())) { giveWeapon(monsterWeapon); } }else {...
public void done(java.util.List<org.parse4j.ParseObject> arg0, org.parse4j.ParseException arg1) { if ((arg1 != null) || (arg0.isEmpty())) o.done(null, arg1); o.done(arg0.get(0), null); }
public void done(java.util.List<org.parse4j.ParseObject> arg0, org.parse4j.ParseException arg1) { if ((arg1 != null) || (arg0 == null)) o.done(null, arg1); else { o.done(arg0.get(0), null); } }
public java.lang.String getDate() { for (int i = 0; i < (list.size()); i++) { if ((correctFirstNum(list.get(i).substring(0, 3))) && (correctLength(list.get(i)))) { return list.get(i); } } return calandar.getInstance().getTime().toString(); }
public java.lang.String getDate(java.util.List<java.lang.String> list) { for (int i = 0; i < (list.size()); i++) { if ((correctFirstNum(list.get(i).substring(0, 3))) && (correctLength(list.get(i)))) { return list.get(i); } } return calandar.getInstance().getTime().toString(); }
public int getItemViewType(int position) { int viewType; if ((position == 0) && (!(mTwoPane))) { viewType = com.upenn.chriswang1990.sunshine.ForecastAdapter.VIEW_TYPE_TODAY; }else if ((selectedPosition) == position) { viewType = com.upenn.chriswang1990.sunshine.ForecastAdapter.VI...
public int getItemViewType(int position) { int viewType; if ((position == 0) && (!(mTwoPane))) { viewType = com.upenn.chriswang1990.sunshine.ForecastAdapter.VIEW_TYPE_TODAY; }else if (((selectedPosition) == position) && (mTwoPane)) { viewType = com.upenn.chriswang1990.sunshine.Fo...
public void checkTop(int[][] box, int x, int y) { if ((islandMap[x][(y - 1)]) == 1) { box[x][(y - 1)] = 0; checkoutIsland(box, x, (y - 1)); } return ; }
public void checkTop(int[][] box, int x, int y) { if ((islandMap[x][(y - 1)]) == 1) { box[x][(y - 1)] = -1; checkoutIsland(box, x, (y - 1)); } return ; }
public void onPickResult(com.vansuita.pickimage.bean.PickResult pickResult) { if ((pickResult.getError()) == null) { android.widget.Toast.makeText(this, pickResult.getPath(), Toast.LENGTH_LONG).show(); java.lang.String path = com.wewow.utils.BitmapUtils.saveBitmap(this, com.wewow.FeedbackActivity.co...
public void onPickResult(com.vansuita.pickimage.bean.PickResult pickResult) { if ((pickResult.getError()) == null) { java.lang.String path = com.wewow.utils.BitmapUtils.saveBitmap(this, com.wewow.FeedbackActivity.compressBySize(pickResult.getPath(), 720, 1280)); asyncPutObjectFromLocalFile(path); ...
public boolean intersect(com.kylantraynor.civilizations.shapes.Shape s) { if (s.getLocation().getWorld().equals(getLocation().getWorld())) return false; for (org.bukkit.Location l : s.getBlockLocations()) { if (isInside(l)) return true; } return false; }
public boolean intersect(com.kylantraynor.civilizations.shapes.Shape s) { if (!(s.getLocation().getWorld().equals(getLocation().getWorld()))) return false; for (org.bukkit.Location l : s.getBlockLocations()) { if (isInside(l)) return true; } return false; }
private void selectRandomFilesRegardingBytes(java.util.List<java.io.File> files, long allFilesBytes) { int selectedIndex; long fileLength; long bytesToRegard = allFilesBytes; while (allFilesBytes > (getMaxBytesToCopy())) { selectedIndex = rnd.nextInt(files.size()); files.remove(selectedI...
private void selectRandomFilesRegardingBytes(java.util.List<java.io.File> files, long allFilesBytes) { int selectedIndex; long fileLength; while (allFilesBytes > (getMaxBytesToCopy())) { selectedIndex = rnd.nextInt(files.size()); files.remove(selectedIndex); fileLength = files.get(se...
public org.apache.hadoop.io.DataInputBuffer getValue() throws java.io.IOException { final int kvoff = ((current) * (org.apache.hadoop.mapreduce.scache.ScacheKVIterator.NMETA)) % (kvmeta.size()); keybuf.reset(rawData, kvmeta.get((kvoff + (org.apache.hadoop.mapreduce.scache.ScacheKVIterator.VALSTART))), kvmeta.ge...
public org.apache.hadoop.io.DataInputBuffer getValue() throws java.io.IOException { final int kvoff = ((current) * (org.apache.hadoop.mapreduce.scache.ScacheKVIterator.NMETA)) % (kvmeta.size()); vbytes.reset(rawData, kvmeta.get((kvoff + (org.apache.hadoop.mapreduce.scache.ScacheKVIterator.VALSTART))), kvmeta.ge...
public void initDwcaRepo() throws java.lang.Exception { iCfg = org.gbif.checklistbank.cli.importer.ImporterIT.CFG_MAPPER.readValue(com.google.common.io.Resources.getResource("cfg-importer.yaml"), org.gbif.checklistbank.cli.importer.ImporterConfiguration.class); iCfg.chunkMinSize = 10; iCfg.chunkSize = 50; ...
public void initDwcaRepo() throws java.lang.Exception { iCfg = org.gbif.checklistbank.cli.importer.ImporterIT.CFG_MAPPER.readValue(com.google.common.io.Resources.getResource("cfg-importer.yaml"), org.gbif.checklistbank.cli.importer.ImporterConfiguration.class); iCfg.chunkMinSize = 10; iCfg.chunkSize = 50; ...
private void calc(int[] data) { min = java.lang.Integer.MAX_VALUE; max = java.lang.Integer.MIN_VALUE; average = 0; for (int i : data) { average += i; if (i > (max)) { max = i; continue; } if (i < (min)) { min = i; } } av...
private void calc(int[] data) { if ((data.length) == 0) { min = 0; max = 0; average = 0; return ; } min = java.lang.Integer.MAX_VALUE; max = java.lang.Integer.MIN_VALUE; average = 0; for (int i : data) { average += i; if (i > (max)) { m...
private static void writeDataToFile(java.lang.String suffix, java.lang.String data) { if (Constants.DEBUG) { org.apache.http.util.ByteArrayBuffer bab = new org.apache.http.util.ByteArrayBuffer(data.length()); try { bab.append(data.getBytes("UTF-8"), 0, data.length()); com.son...
private static void writeDataToFile(java.lang.String suffix, java.lang.String data) { if ((Constants.DEBUG) && (data != null)) { org.apache.http.util.ByteArrayBuffer bab = new org.apache.http.util.ByteArrayBuffer(data.length()); try { bab.append(data.getBytes("UTF-8"), 0, data.length());...
public void onQueryChange(org.sagebionetworks.repo.model.table.Query newQuery) { if (newQuery != null) { java.lang.String token = queryTokenProvider.queryToToken(newQuery); if (token != null) { areaToken = (org.sagebionetworks.web.client.widget.entity.tabs.TablesTab.TABLE_QUERY_PREFIX) +...
public void onQueryChange(org.sagebionetworks.repo.model.table.Query newQuery) { if (newQuery != null) { java.lang.String token = queryTokenProvider.queryToToken(newQuery); if (token != null) { areaToken = (org.sagebionetworks.web.client.widget.entity.tabs.TablesTab.TABLE_QUERY_PREFIX) +...
public java.lang.String addOps(@org.springframework.web.bind.annotation.RequestParam(value = "val1") java.lang.String val1, @org.springframework.web.bind.annotation.RequestParam(value = "val2") java.lang.String val2) { com.rohan.www.mywebapp.MathOperations ops = new com.rohan.www.mywebapp.MathOperations(); int ...
public java.lang.String addOps(@org.springframework.web.bind.annotation.RequestParam(value = "val1") java.lang.String val1, @org.springframework.web.bind.annotation.RequestParam(value = "val2") java.lang.String val2) { com.rohan.www.mywebapp.MathOperations ops = new com.rohan.www.mywebapp.MathOperations(); int ...
public net.minecraft.item.ItemStack decrStackSize(int slot, int amount) { net.minecraft.item.ItemStack stack = getStackInSlot(slot); if (stack != null) { if ((stack.stackSize) > amount) { stack = stack.splitStack(amount); markDirty(); }else { java.lang.System....
public net.minecraft.item.ItemStack decrStackSize(int slot, int amount) { net.minecraft.item.ItemStack stack = getStackInSlot(slot); if (stack != null) { if ((stack.stackSize) > amount) { stack = stack.splitStack(amount); markDirty(); }else { setInventorySlotC...
private void addHistory(com.sleepyduck.pixelate4crafting.control.util.history.History hist) { mHistory.add(hist); if ((mHistory.size()) == 1) { mOptionMenu.findItem(R.id.menu_item_undo).setVisible(true); } if ((mUndoneHistory.size()) > 0) { mUndoneHistory.clear(); mOptionMenu.fin...
private void addHistory(com.sleepyduck.pixelate4crafting.control.util.history.History hist) { mHistory.add(hist); if ((mHistory.size()) == 1) { mOptionMenu.findItem(R.id.menu_item_undo).setEnabled(true); } if ((mUndoneHistory.size()) > 0) { mUndoneHistory.clear(); mOptionMenu.fin...
private com.englishschool.controllers.Test getTest() { com.englishschool.controllers.Test test = new com.englishschool.controllers.Test(); java.util.ArrayList<java.lang.String> questions = new java.util.ArrayList<>(); questions.add("5612c3c295de30f9fd2392f1"); questions.add("5612c3e295de30f9fd2392f2"); ...
private com.englishschool.controllers.Test getTest() { com.englishschool.controllers.Test test = new com.englishschool.controllers.Test(); java.util.List<java.lang.String> questions = new java.util.ArrayList<>(); questions.add("5612c3c295de30f9fd2392f1"); questions.add("5612c3e295de30f9fd2392f2"); t...
public int compare(org.salesforce.apexdoc.MethodModel o1, org.salesforce.apexdoc.MethodModel o2) { java.lang.String methodName1 = o1.getMethodName(); java.lang.String methodName2 = o2.getMethodName(); java.lang.String className = getClassName(); if (methodName1.equals(className)) { return java.l...
public int compare(org.salesforce.apexdoc.MethodModel o1, org.salesforce.apexdoc.MethodModel o2) { java.lang.String methodName1 = o1.getMethodName(); java.lang.String methodName2 = o2.getMethodName(); java.lang.String className = getClassName(); if ((methodName1 != null) && (methodName1.equals(className...
public void move(double dx, double dy) { double x = getX(); double y = getY(); x = x + dx; y = y + dy; y = (y < (DEFAULT_VALUE)) ? getY() : y; x = (x < (DEFAULT_VALUE)) ? getX() : x; _alpha = calcAlpha(x, y); _radius = calcRadius(x, y); }
public void move(double dx, double dy) { double x = getX(); double y = getY(); x = x + dx; y = y + dy; if ((x > (DEFAULT_VALUE)) && (y > (DEFAULT_VALUE))) { _alpha = calcAlpha(x, y); _radius = calcRadius(x, y); } }
public boolean onOptionsItemSelected(android.view.MenuItem item) { switch (item.getItemId()) { case R.id.settings : android.content.Intent settingsIntent = new android.content.Intent(this, dalbers.com.noise.SettingsActivity.class); settingsIntent.putExtra(dalbers.com.noise.MainActivi...
public boolean onOptionsItemSelected(android.view.MenuItem item) { if ((item.getItemId()) == (R.id.settings)) { android.content.Intent settingsIntent = new android.content.Intent(this, dalbers.com.noise.SettingsActivity.class); settingsIntent.putExtra(dalbers.com.noise.MainActivity.PREF_USE_DARK_MOD...
private int getReplicas(it.polimi.modaclouds.space4cloud.optimization.solution.impl.Tier t) { it.polimi.modaclouds.space4cloud.optimization.solution.impl.CloudService serv = t.getCloudService(); if (serv instanceof it.polimi.modaclouds.space4cloud.optimization.solution.impl.IaaS) { it.polimi.modaclouds....
private int getReplicas(it.polimi.modaclouds.space4cloud.optimization.solution.impl.Tier t) { it.polimi.modaclouds.space4cloud.optimization.solution.impl.CloudService serv = t.getCloudService(); if (serv instanceof it.polimi.modaclouds.space4cloud.optimization.solution.impl.IaaS) { return ((it.polimi.mo...
protected void applyNodeLabelFontFace(org.cytoscape.view.vizmap.VisualStyle visualStyle) { super.applyNodeLabelFontFace(visualStyle); org.cytoscape.view.vizmap.mappings.DiscreteMapping fontDiscreteMapping = ((org.cytoscape.view.vizmap.mappings.DiscreteMapping) (this.discreteMappingFactoryServiceRef.createVisual...
protected void applyNodeLabelFontFace(org.cytoscape.view.vizmap.VisualStyle visualStyle) { org.cytoscape.view.vizmap.mappings.DiscreteMapping fontDiscreteMapping = ((org.cytoscape.view.vizmap.mappings.DiscreteMapping) (this.discreteMappingFactoryServiceRef.createVisualMappingFunction(NodeAttribute.Department.toStri...
private void buildStage() { skinLibgdx = new uk.co.redfruit.gdx.skyisfalling.screens.Skin(Gdx.files.internal(Constants.SKIN_LIBGDX)); stage.clear(); uk.co.redfruit.gdx.skyisfalling.screens.Stack stack = new uk.co.redfruit.gdx.skyisfalling.screens.Stack(); stage.addActor(stack); stack.setSize(Constan...
private void buildStage() { stage.clear(); uk.co.redfruit.gdx.skyisfalling.screens.Stack stack = new uk.co.redfruit.gdx.skyisfalling.screens.Stack(); stage.addActor(stack); stack.setSize(Constants.VIEWPORT_GUI_WIDTH, Constants.VIEWPORT_GUI_HEIGHT); stack.addActor(buildBackgroundLayer()); stack.a...
public java.lang.String toPath() { java.lang.String idLocal = getId(); java.lang.String versionLocal = getVersion(); java.lang.String typeLocal = getType(); if (typeLocal.equals("nuspec")) { return java.lang.String.format("%s/%s/%s.%s", idLocal, versionLocal, idLocal, typeLocal); } retur...
public java.lang.String toPath() { java.lang.String idLocal = getId(); java.lang.String versionLocal = getVersion(); java.lang.String typeLocal = getType(); if ("nuspec".equals(typeLocal)) { return java.lang.String.format("%s/%s/%s.%s", idLocal, versionLocal, idLocal, typeLocal); } retur...
public void close() throws java.io.IOException { connected = false; try { if ((objectInStream) != null) { objectInStream.close(); objectInStream = null; } if ((objectOutStream) != null) { objectOutStream.close(); objectOutStream = null; ...
public void close() throws java.io.IOException { connected = false; try { objectInStream = null; objectOutStream = null; if ((clientSocket) != null) { clientSocket.close(); clientSocket = null; } serverSocket.close(); } catch (java.io.IOExcepti...
public java.lang.String updateUserRoles(@org.springframework.web.bind.annotation.ModelAttribute final org.egov.infra.admin.master.entity.User user, final org.springframework.validation.BindingResult errors, final org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttrs) { if (errors.hasErrors())...
public java.lang.String updateUserRoles(@org.springframework.web.bind.annotation.ModelAttribute final org.egov.infra.admin.master.entity.User user, final org.springframework.validation.BindingResult errors, final org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttrs) { if (errors.hasErrors())...
private java.util.List<jkind.lustre.Type> gatherLustreTypes(org.eclipse.emf.common.util.EList<com.rockwellcollins.atc.agree.agree.SpecStatement> specs) { java.util.List<jkind.lustre.Type> types = new java.util.ArrayList<>(); for (com.rockwellcollins.atc.agree.agree.SpecStatement spec : specs) { if (spec...
private java.util.List<jkind.lustre.Type> gatherLustreTypes(org.eclipse.emf.common.util.EList<com.rockwellcollins.atc.agree.agree.SpecStatement> specs) { java.util.List<jkind.lustre.Type> types = new java.util.ArrayList<>(); for (com.rockwellcollins.atc.agree.agree.SpecStatement spec : specs) { if (spec...
public java.sql.ResultSet query(java.lang.String queryClause) { java.sql.ResultSet rs = null; try { java.sql.Statement stmt = con.createStatement(); rs = stmt.executeQuery(queryClause); stmt.close(); } catch (java.sql.SQLException e) { com.xl.database.DatabaseManager.logger.e...
public java.sql.ResultSet query(java.lang.String queryClause) { java.sql.ResultSet rs = null; try { java.sql.Statement stmt = con.createStatement(); rs = stmt.executeQuery(queryClause); } catch (java.sql.SQLException e) { com.xl.database.DatabaseManager.logger.error(("Error execute t...
public boolean testBit(long bit) { BitVector.checkValidBit(bit); int bucket = BitVector.getBucket(bit); int position = BitVector.getPosition(bit); return ((1 << position) & (vector[bucket])) != 0; }
public boolean testBit(long bit) { checkValidBit(bit); int bucket = BitVector.getBucket(bit); int position = BitVector.getPosition(bit); return ((1 << position) & (vector[bucket])) != 0; }
public java.lang.Boolean isNewFull() { java.lang.Boolean state = ((((leftLine.getIsMarked()) && (upperLine.getIsMarked())) && (rightLine.getIsMarked())) && (bottomLine.getIsMarked())) && (!(marked)); if (isBoxFull()) { marked = true; } return state; }
public java.lang.Boolean isNewFull() { if (!(marked)) { if ((((leftLine.getIsMarked()) && (upperLine.getIsMarked())) && (rightLine.getIsMarked())) && (bottomLine.getIsMarked())) { marked = true; } return marked; } return false; }
private java.util.ArrayList<org.matsim.example.OsmNetworkWithLanesAndSignalsReader.LinkVector> OrderToLinks(org.matsim.api.core.v01.network.Link link, org.matsim.api.core.v01.network.Link[] toLinks) { java.util.ArrayList<org.matsim.example.OsmNetworkWithLanesAndSignalsReader.LinkVector> toLinkList = new java.util.A...
private java.util.List<org.matsim.example.OsmNetworkWithLanesAndSignalsReader.LinkVector> OrderToLinks(org.matsim.api.core.v01.network.Link link, java.util.List<org.matsim.api.core.v01.network.Link> toLinks) { java.util.List<org.matsim.example.OsmNetworkWithLanesAndSignalsReader.LinkVector> toLinkList = new java.ut...
void cluster() { java.lang.System.out.println(("eps: " + (this.view.eps.doubleValue()))); java.lang.System.out.println(("minPts: " + (this.view.minPts.get()))); this.clustering = spinacht.subclu.DumbSUBCLU.go(new spinacht.common.Params(this.view.eps.doubleValue(), this.minPts.get(), this.db)); }
void cluster() { java.lang.System.out.println(("eps: " + (this.view.eps.doubleValue()))); java.lang.System.out.println(("minPts: " + (this.view.minPts.get()))); this.clustering = spinacht.subclu.DumbSUBCLU.go(new spinacht.common.Params(this.view.eps.doubleValue(), this.view.minPts.get(), this.db)); }
private void updateTaskCounts(java.lang.Object id, java.util.List<java.lang.Integer> tasks) { java.util.Map<java.lang.Integer, java.lang.Integer> taskEmittedTuples = _tracked.get(id).taskEmittedTuples; for (java.lang.Integer task : tasks) { int newCount = (backtype.storm.utils.Utils.get(taskEmittedTuple...
private void updateTaskCounts(java.lang.Object id, java.util.List<java.lang.Integer> tasks) { synchronized(_tracked) { java.util.Map<java.lang.Integer, java.lang.Integer> taskEmittedTuples = _tracked.get(id).taskEmittedTuples; for (java.lang.Integer task : tasks) { int newCount = (backty...
public static double[] getCoordsFromAddress(java.lang.String address, android.content.Context context) { if (!(android.location.Geocoder.isPresent())) return null; android.location.Geocoder geocoder = new android.location.Geocoder(context); android.location.Address location = null; try { ...
public static double[] getCoordsFromAddress(java.lang.String address, android.content.Context context) { if (!(android.location.Geocoder.isPresent())) return null; android.location.Geocoder geocoder = new android.location.Geocoder(context); android.location.Address location = null; try { ...
public void onPause() { super.onPause(); android.util.Log.d(com.pokemonshowdown.app.BattleFragment.BTAG, "onPause"); com.pokemonshowdown.data.BattleFieldData.RoomData roomData = com.pokemonshowdown.data.BattleFieldData.get(getActivity()).getAnimationInstance(mRoomId); if (roomData != null) { roo...
public void onPause() { super.onPause(); com.pokemonshowdown.data.BattleFieldData.RoomData roomData = com.pokemonshowdown.data.BattleFieldData.get(getActivity()).getAnimationInstance(mRoomId); if (roomData != null) { roomData.setMessageListener(true); if (((mAnimatorSetQueue) != null) && ((m...
public static com.android.incallui.incall.protocol.PrimaryInfo createEmptyPrimaryInfo() { return new com.android.incallui.incall.protocol.PrimaryInfo(null, null, false, null, null, null, ContactPhotoType.DEFAULT_PLACEHOLDER, false, false, false, false, false, false, null, null, true, (-1)); }
public static com.android.incallui.incall.protocol.PrimaryInfo createEmptyPrimaryInfo() { return new com.android.incallui.incall.protocol.PrimaryInfo(null, null, false, null, null, null, ContactPhotoType.DEFAULT_PLACEHOLDER, false, false, false, false, false, false, false, null, null, true, (-1)); }
static final android.content.Context toContext(android.content.Context context) { if (context != null) { if (context instanceof android.app.Activity) { }else if (context instanceof android.app.Application) { }else if (context instanceof android.app.Service) { ...
static final android.content.Context toContext(android.content.Context context) { if (context != null) { if (context instanceof android.app.Activity) { }else if (context instanceof android.app.Application) { }else if (context instanceof android.content.Context...
public int getNoOfCharactersWithNegativeConfidenceForQuestionId(java.util.List<java.lang.Character> characters, long questionId) { int count = 0; java.util.Iterator<java.lang.Character> it = characters.iterator(); ai.profX.model.Confidence confidence; while (it.hasNext()) { java.lang.Character c...
public int getNoOfCharactersWithNegativeConfidenceForQuestionId(java.util.List<java.lang.Character> characters, long questionId) { int count = 0; java.util.Iterator<java.lang.Character> it = characters.iterator(); ai.profX.model.Confidence confidence; while (it.hasNext()) { java.lang.Character c...
public void preRenderPlayer(net.minecraftforge.client.event.RenderPlayerEvent.Pre event) { if ((((event.entityPlayer.worldObj.getWorldTime()) > 13500) && ((event.entityPlayer.worldObj.getWorldTime()) < 22300)) && (event.entityPlayer.isSneaking())) { if (!(unstudio.chinacraft.api.ChinaCraftApi.isWearingWhole...
public void preRenderPlayer(net.minecraftforge.client.event.RenderPlayerEvent.Pre event) { if (event.entityPlayer.isSneaking()) { if (((event.entityPlayer.worldObj.getWorldTime()) > 13500) && ((event.entityPlayer.worldObj.getWorldTime()) < 22300)) return ; if (!(unstudio.chinacr...
public void index(models.TripleCommit.Diff diff) { java.util.Set<models.Resource> denormalizedResources = getResources(diff); for (models.Resource dnr : denormalizedResources) { if (dnr.hasId()) { java.lang.String type = dnr.getAsString(JsonLdConstants.TYPE); try { ...
public void index(models.TripleCommit.Diff diff) { java.util.Set<models.Resource> denormalizedResources = getResources(diff); for (models.Resource dnr : denormalizedResources) { if (dnr.hasId()) { java.lang.String type = dnr.getAsString(JsonLdConstants.TYPE); try { ...
protected void onActivityResult(int requestCode, int resultCode, android.content.Intent data) { if (requestCode == (com.sangcomz.fishbun.define.Define.TAKE_A_PICK_REQUEST_CODE)) { if (resultCode == (RESULT_OK)) { startFileMediaScan(pickerController.getSavePath()); adapter.addImage(pi...
protected void onActivityResult(int requestCode, int resultCode, android.content.Intent data) { if (requestCode == (com.sangcomz.fishbun.define.Define.TAKE_A_PICK_REQUEST_CODE)) { if (resultCode == (RESULT_OK)) { startFileMediaScan(pickerController.getSavePath()); adapter.addImage(pi...
private java.io.File writeTempFile(java.util.List<java.lang.Float> records) throws java.io.IOException { java.io.File file = java.io.File.createTempFile("tempfile", ".tmp"); try (java.io.PrintWriter out = new java.io.PrintWriter(file.getAbsoluteFile())) { records.forEach(out::println); } catch (java...
private java.io.File writeTempFile(java.util.List<java.lang.Float> records) throws java.io.IOException { java.io.File file = java.io.File.createTempFile("tempfile", ".tmp"); try (java.io.PrintWriter out = new java.io.PrintWriter(file.getAbsoluteFile())) { records.forEach(out::println); } catch (java...
protected android.view.View getTitleView(java.lang.String title, int index, android.view.View convertView, android.view.ViewGroup parent) { android.widget.TextView titleView; if (convertView == null) { titleView = ((android.widget.TextView) (mainActivity.getLayoutInflater().inflate(R.layout.invoice_list...
protected android.view.View getTitleView(java.lang.String title, int index, android.view.View convertView, android.view.ViewGroup parent) { android.widget.TextView titleView; titleView = ((android.widget.TextView) (mainActivity.getLayoutInflater().inflate(R.layout.invoice_list_group_item, null))); titleView...