buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public static java.lang.Boolean anonymousReporter(gov.ca.cwds.rest.api.domain.ScreeningToReferral str) throws gov.ca.cwds.rest.services.ServiceException { java.util.Set<gov.ca.cwds.rest.api.domain.Participant> participants; participants = str.getParticipants(); if (participants != null) { for (gov.c...
public static java.lang.Boolean anonymousReporter(gov.ca.cwds.rest.api.domain.ScreeningToReferral str) throws gov.ca.cwds.rest.services.ServiceException { java.util.Set<gov.ca.cwds.rest.api.domain.Participant> participants; participants = str.getParticipants(); if (participants != null) { for (gov.c...
public java.nio.channels.Selector getSelector() { if ((selector) == null) { synchronized(this) { if ((selector) == null) { try { wait(); } catch (java.lang.InterruptedException e) { java.lang.System.err.println(("NetworkMana...
public java.nio.channels.Selector getSelector() { while ((selector) == null) { synchronized(this) { while ((selector) == null) { try { wait(); } catch (java.lang.InterruptedException e) { java.lang.System.err.println(("Netwo...
public java.util.List<com.plantplaces.dto.Plant> fetchPlants(com.plantplaces.dto.Plant plant) { org.hibernate.Session session = com.plantplaces.dao.HibernateUtil.getSessionFactory().openSession(); org.hibernate.Query query = session.createQuery("from Plant where common like :common"); query.setParameter("co...
public java.util.List<com.plantplaces.dto.Plant> fetchPlants(com.plantplaces.dto.Plant plant) { org.hibernate.Session session = com.plantplaces.dao.HibernateUtil.getSessionFactory().openSession(); org.hibernate.Query query = session.createQuery("from Plant where common like :common"); query.setParameter("co...
private void drainFrom(java.util.concurrent.BlockingQueue<org.zeromq.ZMsg> in) { int lastIndex = -1; org.zeromq.ZMsg msg; while (((++lastIndex) < (buffer.length)) && ((msg = in.poll()) != null)) { buffer[lastIndex] = msg; lastValidIndex = lastIndex; } }
private void drainFrom(java.util.concurrent.BlockingQueue<org.zeromq.ZMsg> in) { int lastIndex = lastValidIndex = -1; org.zeromq.ZMsg msg; while (((++lastIndex) < (buffer.length)) && ((msg = in.poll()) != null)) { buffer[lastIndex] = msg; lastValidIndex = lastIndex; } }
int cpu_quantum() { if (queue.isEmpty()) return 0; else { java.lang.Process p = queue.getFirst(); p.decrement_time(); if ((p.getTime()) <= 0) { queue.removeFirst(); remainingQ = qTime; } return p.getNumber(); } }
int cpu_quantum() { if (queue.isEmpty()) { remainingQ = qTime; return 0; }else { java.lang.Process p = queue.getFirst(); p.decrement_time(); if ((p.getTime()) <= 0) { queue.removeFirst(); remainingQ = qTime; } return p.getNumber(); ...
public void onItemClick(android.widget.AdapterView<?> parent, android.view.View view, int position, long id) { view.callOnClick(); if ((externalItemClickListener) != null) externalItemClickListener.onItemClick(parent, view, position, id); if ((onItemSelectedHandler) != null) onItemSelec...
public void onItemClick(android.widget.AdapterView<?> parent, android.view.View view, int position, long id) { if (parent == null) parent = list; if ((externalItemClickListener) != null) externalItemClickListener.onItemClick(parent, view, position, id); if ((onItemSelectedHandler) ...
public java.util.List<org.dataone.annotator.matcher.ConceptItem> getConcepts(java.util.Map<java.lang.String, java.lang.String> queryItems) throws java.lang.Exception { java.lang.StringBuffer sb = new java.lang.StringBuffer(); for (java.lang.String value : queryItems.values()) { sb.append(value); ...
public java.util.List<org.dataone.annotator.matcher.ConceptItem> getConcepts(java.util.Map<java.lang.String, java.lang.String> queryItems) throws java.lang.Exception { java.lang.StringBuffer sb = new java.lang.StringBuffer(); for (java.lang.String value : queryItems.values()) { sb.append(value); ...
public void set(us.ihmc.humanoidRobotics.communication.packets.walking.FootstepDataListMessage message) { swingTime = message.swingTime; transferTime = message.transferTime; java.util.ArrayList<us.ihmc.humanoidRobotics.communication.packets.walking.FootstepDataMessage> dataList = message.getDataList(); ...
public void set(us.ihmc.humanoidRobotics.communication.packets.walking.FootstepDataListMessage message) { clear(); swingTime = message.swingTime; transferTime = message.transferTime; java.util.ArrayList<us.ihmc.humanoidRobotics.communication.packets.walking.FootstepDataMessage> dataList = message.getDat...
public void hit(int damage) { this.armor -= damage; if ((this.armor) <= 0) { this.health -= damage; if ((this.health) <= 0) { if (explode) { sun.audio.AudioPlayer.player.start(audio.AudioAssets.getExplosionAudio()); explode = false; } ...
public void hit(int damage) { if ((this.armor) > 0) { this.armor -= damage; } if ((this.armor) <= 0) { this.health -= damage; if ((this.health) <= 0) { if (explode) { sun.audio.AudioPlayer.player.start(audio.AudioAssets.getExplosionAudio()); ...
public org.json.simple.JSONObject getUpdate(java.lang.String user) { org.json.simple.JSONObject retVal = new org.json.simple.JSONObject(); if (user == null) { retVal.put("action", "refresh"); retVal.put("success", false); retVal.put("reason", "User is null"); } org.json.simple.JS...
public org.json.simple.JSONArray getUpdate(java.lang.String user) { org.json.simple.JSONArray retVal = null; org.json.simple.JSONArray messages = new org.json.simple.JSONArray(); for (javaserver.User current : glbUser) { if (current.USER_NAME.equalsIgnoreCase(user)) { retVal = current.ge...
public void addToList(java.util.ArrayList<java.lang.String> taskInputs) { com.izzygomez.workr.ListedItem listViewInput = new com.izzygomez.workr.ListedItem(taskInputs.get(0), taskInputs.get(1), taskInputs.get(2), taskInputs.get(3)); if (!(listItems.contains(listViewInput))) { listItems.add(listViewInput...
public void addToList(java.util.ArrayList<java.lang.String> taskInputs) { com.izzygomez.workr.ListedItem listViewInput = new com.izzygomez.workr.ListedItem(taskInputs.get(0), taskInputs.get(1), taskInputs.get(2), taskInputs.get(3)); listItems.add(listViewInput); adapter.notifyDataSetChanged(); lastClick...
public com.podio.sdk.Request<com.podio.sdk.domain.File.Attach> attachFile(long fileId, java.lang.String refType, java.lang.String refId) { com.podio.sdk.provider.FileProvider.FileFilter filter = new com.podio.sdk.provider.FileProvider.FileFilter(); filter.withFileId(fileId); com.podio.sdk.domain.File.Attach...
public com.podio.sdk.Request<com.podio.sdk.domain.File.Attach> attachFile(long fileId, java.lang.String refType, int refId) { com.podio.sdk.provider.FileProvider.FileFilter filter = new com.podio.sdk.provider.FileProvider.FileFilter(); filter.withFileId(fileId); com.podio.sdk.domain.File.Attach attach = new...
private static void addExistingServers() { org.eclipse.wst.server.core.IServer[] s = org.eclipse.wst.server.core.ServerCore.getServers(); for (org.eclipse.wst.server.core.IServer server : s) { if (!(org.wso2.developerstudio.eclipse.carbonserver.base.manager.CarbonServerManager.getServers().contains(serv...
public static void addExistingServers() { org.eclipse.wst.server.core.IServer[] s = org.eclipse.wst.server.core.ServerCore.getServers(); for (org.eclipse.wst.server.core.IServer server : s) { if (!(org.wso2.developerstudio.eclipse.carbonserver.base.manager.CarbonServerManager.getServers().contains(serve...
private void deleteMachine(org.icatproject.topcatdaaasplugin.database.entities.Machine machine, java.lang.String state) { try { org.icatproject.topcatdaaasplugin.MachinePool.logger.info("Deleting machine {}", machine.getId()); cloudClient.deleteServer(machine.getId()); machine.setState(state...
public void deleteMachine(org.icatproject.topcatdaaasplugin.database.entities.Machine machine, java.lang.String state) { try { org.icatproject.topcatdaaasplugin.MachinePool.logger.info("Deleting machine {}", machine.getId()); cloudClient.deleteServer(machine.getId()); machine.setState(state)...
protected void auditWarn(java.lang.String msg, org.apache.synapse.MessageContext msgContext) { log.warn(msg); if ((msgContext.getServiceLog()) != null) { msgContext.getServiceLog().warn(msg); } if (shouldTrace(msgContext.getTracingState())) { org.apache.synapse.mediators.AbstractMediator...
protected void auditWarn(java.lang.String msg, org.apache.synapse.MessageContext msgContext) { log.warn(msg); if ((msgContext.getServiceLog()) != null) { msgContext.getServiceLog().warn(msg); } if (shouldTrace(msgContext)) { org.apache.synapse.mediators.AbstractMediator.trace.warn(msg); ...
public int[][] ratkaiseSudoku(int[][] sudoku) { int limit = sudoku.length; if (!(sudokuPohjanTarkistus(sudoku, limit))) { return null; } boolean[][] valmiiksiannetut = syotettyjenLukujenTaulu(sudoku, limit); if (valmiiksiannetut == null) { return null; } int[][] ratkaisu = su...
public int[][] ratkaiseSudoku(int[][] sudoku) { int limit = sudoku.length; boolean[][] valmiiksiannetut = syotettyjenLukujenTaulu(sudoku, limit); if (valmiiksiannetut == null) { return null; } if (!(sudokuPohjanTarkistus(sudoku, limit))) { return null; } int[][] ratkaisu = su...
public void connect() { close(); logger.log(CloudAdapterLogger.Level.INFO, (("Connecting to [" + (mongoUri)) + "]")); com.mongodb.MongoClientURI uri = new com.mongodb.MongoClientURI(mongoUri); client = new com.mongodb.MongoClient(uri); logger.log(CloudAdapterLogger.Level.INFO, (((("Retrieving collec...
public void connect() { logger.log(CloudAdapterLogger.Level.INFO, (("Connecting to [" + (mongoUri)) + "]")); com.mongodb.MongoClientURI uri = new com.mongodb.MongoClientURI(mongoUri); client = new com.mongodb.MongoClient(uri); logger.log(CloudAdapterLogger.Level.INFO, (((("Retrieving collection [" + (mo...
private void newApp() { app.setDefaultCloseOperation(javax.swing.JFrame.EXIT_ON_CLOSE); app.setLayout(new java.awt.FlowLayout()); app.setSize(600, 600); app.setLocation(800, 400); app.setTitle("Yet Another Tetris Clone"); app.addKeyListener(new applogic.UserInputListener(this.playingFieldGUI)); ...
private void newApp() { app.setDefaultCloseOperation(javax.swing.JFrame.EXIT_ON_CLOSE); app.setLayout(new java.awt.FlowLayout()); app.setSize(600, 600); app.setTitle("Yet Another Tetris Clone"); app.addKeyListener(new applogic.UserInputListener(this.playingFieldGUI)); app.add(playingFieldGUI); ...
public boolean onOptionsItemSelected(android.view.MenuItem item) { switch (item.getItemId()) { case R.id.secure_connect_scan : { isServer = false; android.util.Log.d(groupn.spin_counter.BluetoothBrawlActivity.TAG, "isClient"); android.content.Inten...
public boolean onOptionsItemSelected(android.view.MenuItem item) { switch (item.getItemId()) { case R.id.secure_connect_scan : { android.content.Intent serverIntent = new android.content.Intent(this, groupn.spin_counter.bluetooth.DeviceListActivity.class); startAc...
public void constructSolution() { int i; for (int k = 0; k < (setup.Parameters.getNumOfWeapons()); k++) { i = findTargetIndexForWeapon(k); allocations.add(i); updatePheromoneValuesLocally(k); setup.Parameters.setTargetValue(i, ((setup.Parameters.getTargetValue(i)) * (1 - (setup.P...
public void constructSolution() { int i; for (int k = 0; k < (setup.Parameters.getNumOfWeapons()); k++) { i = findTargetIndexForWeapon(k); allocations.add(i); updatePheromoneValuesLocally(k); setup.Parameters.setTargetValue(i, ((setup.Parameters.getTargetValue(i)) * (1 - (setup.P...
public boolean equals(final java.lang.Object object) { if ((object == null) || ((object.getClass()) != (com.rgi.common.coordinates.AbsoluteTileCoordinate.class))) { return false; } final com.rgi.common.coordinates.AbsoluteTileCoordinate other = ((com.rgi.common.coordinates.AbsoluteTileCoordinate) (o...
public boolean equals(final java.lang.Object object) { if ((object == null) || ((object.getClass()) != (this.getClass()))) { return false; } final com.rgi.common.coordinates.AbsoluteTileCoordinate other = ((com.rgi.common.coordinates.AbsoluteTileCoordinate) (object)); return ((super.equals(other...
public int hashCode() { final int prime = 31; int result = 1; result = prime * result; if ((bufferedWriter) != null) { result = result + (bufferedWriter.hashCode()); } if ((format) == null) { return result; }else { return result + (format.hashCode()); } }
public int hashCode() { final int prime = 31; int result = 1; if ((bufferedWriter) != null) { result = (prime * result) + (bufferedWriter.hashCode()); } if ((format) != null) { result = (prime * result) + (format.hashCode()); } return result; }
public boolean trigger(hudson.model.AbstractBuild<?, ?> build, hudson.model.TaskListener listener) { return (((hudson.plugins.emailext.plugins.trigger.UnsuccessfulTrigger.isBuildUnsuccessful(build.getResult())) && (hudson.plugins.emailext.plugins.trigger.FivePlusUnsuccessfulInPast14DaysTrigger.hasFiveUnsuccessfulBu...
public boolean trigger(hudson.model.AbstractBuild<?, ?> build, hudson.model.TaskListener listener) { return (((hudson.plugins.emailext.plugins.trigger.UnsuccessfulTrigger.isBuildUnsuccessful(build.getResult())) && (hudson.plugins.emailext.plugins.trigger.FivePlusUnsuccessfulInPast14DaysTrigger.hasFiveUnsuccessfulBu...
private java.lang.String getJsonFieldName(com.dnastack.bob.persistence.entity.Beacon b) { java.lang.String res = null; if (b.getId().startsWith(com.dnastack.bob.service.parser.impl.JsonCafeResponseParser.BEACON_PREFIX)) { res = ((b.getId().substring(com.dnastack.bob.service.parser.impl.JsonCafeResponseP...
private java.lang.String getJsonFieldName(com.dnastack.bob.persistence.entity.Beacon b) { java.lang.String res; if (b.getId().startsWith(com.dnastack.bob.service.parser.impl.JsonCafeResponseParser.BEACON_PREFIX)) { res = ((b.getId().substring(com.dnastack.bob.service.parser.impl.JsonCafeResponseParser.B...
public void StopAndClose() { PausePlay(); boolean retry = true; StopThread(); while (retry) { try { join(); retry = false; } catch (java.lang.InterruptedException e) { } } com.peculiargames.andmodplug.PlayerThread.CloseLIBMODPLUG(); Invalidate...
public void StopAndClose() { PausePlay(); boolean retry = true; StopThread(); while (retry) { try { join(); retry = false; } catch (java.lang.InterruptedException e) { } } CloseLIBMODPLUG(); InvalidatePlayer(); }
public void onReceive(android.content.Context context, android.content.Intent intent) { java.lang.String textMessage = intent.getExtras().getString("sms"); java.lang.String message = textMessage.substring(((textMessage.indexOf(':')) + 2)); java.lang.String number = textMessage.substring(0, textMessage.index...
public void onReceive(android.content.Context context, android.content.Intent intent) { java.lang.String textMessage = intent.getExtras().getString("sms"); java.lang.String message = textMessage.substring(((textMessage.indexOf(':')) + 2)); java.lang.String number = textMessage.substring(0, textMessage.index...
public <T> T getCapability(net.minecraftforge.common.capabilities.Capability<T> cap, @javax.annotation.Nullable net.minecraft.util.EnumFacing f) { if (cap == (net.minecraftforge.energy.CapabilityEnergy.ENERGY)) return ((T) (fec)); if (((cap == (net.darkhax.tesla.capability.TeslaCapabilities.CAPABIL...
public <T> T getCapability(net.minecraftforge.common.capabilities.Capability<T> cap, @javax.annotation.Nullable net.minecraft.util.EnumFacing f) { if (cap == (net.minecraftforge.energy.CapabilityEnergy.ENERGY)) return ((T) (fec)); if ((tec) != null) if (((cap == (net.darkhax.tesla.capabilit...
public boolean isStarving(int actualDiet, zoo.animal.feeding.FeedingAttributes feedingAt, zoo.paddock.IPaddock paddock, java.util.List<java.lang.Integer> specieDiet, java.util.List<zoo.animalKeeper.AnimalKeeper> keepers) { if ((feedingAt.getFastDays()) != 7) { return true; } if (!(specieDiet.contain...
public boolean isStarving(int actualDiet, zoo.animal.feeding.FeedingAttributes feedingAt, zoo.paddock.IPaddock paddock, java.util.List<java.lang.Integer> specieDiet, java.util.List<zoo.animalKeeper.AnimalKeeper> keepers) { if ((feedingAt.getFastDays()) == 7) { return true; } if (!(specieDiet.contain...
public int getLowerLevel(int level) { int lower = java.lang.Integer.MIN_VALUE; for (mff.mapGenereator.Room room : owners) { if (((room.getLevel()) > lower) && ((room.getLevel()) < level)) { lower = room.getLevel(); } } return lower; }
public int getLowerLevel(int level) { int lower = java.lang.Integer.MIN_VALUE; for (mff.mapGenereator.Room room : owners) { if (((room.getLevel()) > lower) && ((room.getLevel()) < level)) { lower = room.getLevel(); } } if (lower == (java.lang.Integer.MIN_VALUE)) retur...
public void testStartBeforeEndAfterBusinessDay() { double charge = bcccp.carpark.ChargeCalculator.calcDayCharge(java.time.LocalTime.of(4, 0, 3), java.time.LocalTime.of(23, 0, 0), java.time.DayOfWeek.MONDAY); double outOfHours = ((3 * 60) * 2) + ((4 * 60) * 2); double businessHours = (12 * 60) * 5; asser...
public void testStartBeforeEndAfterBusinessDay() { double charge = bcccp.carpark.ChargeCalculator.calcDayCharge(java.time.LocalTime.of(4, 0, 3), java.time.LocalTime.of(23, 0, 0), java.time.DayOfWeek.MONDAY); double outOfHours = (((3 * 60) * 2) / 60) + (((4 * 60) * 2) / 60); double businessHours = ((12 * 60)...
public double computeNormalizationFactor(int[][] part1, int[][] part2) { infodynamics.measures.discrete.EntropyCalculatorDiscrete ecd = new infodynamics.measures.discrete.EntropyCalculatorDiscrete(base); ecd.initialise(); ecd.addObservations(part1); double entropy1 = ecd.computeAverageLocalOfObservation...
public double computeNormalizationFactor(int[][] part1, int[][] part2) { infodynamics.measures.discrete.EntropyCalculatorDiscrete ecd = new infodynamics.measures.discrete.EntropyCalculatorDiscrete(base); ecd.initialise(); ecd.addObservations(part1); double entropy1 = ecd.computeAverageLocalOfObservation...
public void onCreateEventInteraction(android.widget.ProgressBar progressBar, tcss450.uw.edu.project18.event.Event createdEvent, java.lang.String createURL) { android.util.Log.i("CREATE", "Create task started"); mCreatedEvent = createdEvent; mProgressDialog.setTitle("Creating Event"); mProgressDialog.sho...
public void onCreateEventInteraction(tcss450.uw.edu.project18.event.Event createdEvent, java.lang.String createURL) { android.util.Log.i("CREATE", "Create task started"); mCreatedEvent = createdEvent; mProgressDialog.setTitle("Creating Event"); mProgressDialog.show(); tcss450.uw.edu.project18.Create...
public static java.lang.String dateToPGNDate(java.util.Date date) { java.util.Calendar cal = java.util.Calendar.getInstance(); cal.setTime(date); return ((((cal.get(java.util.Calendar.YEAR)) + ".") + (chesspresso.pgn.PGN.getRights(("00" + (cal.get(java.util.Calendar.MONTH))), 2))) + ".") + (chesspresso.pgn....
public static java.lang.String dateToPGNDate(java.util.Date date) { java.util.Calendar cal = java.util.Calendar.getInstance(); cal.setTime(date); return ((((cal.get(java.util.Calendar.YEAR)) + ".") + (chesspresso.pgn.PGN.getRights(("00" + ((cal.get(java.util.Calendar.MONTH)) + 1)), 2))) + ".") + (chesspress...
private static void computeMaxRandomNumberAndTimes() { for (int i = 0; i <= 100; i++) { if ((day1.test9.Test.hashtable.get(i)) == (day1.test9.Test.maxTimes)) { java.lang.System.out.println(((("number: \t" + i) + "\t times: \t") + (day1.test9.Test.hashtable.get(i)))); } } }
private static void computeMaxRandomNumberAndTimes() { for (int i = 0; i <= 100; i++) { if (((day1.test9.Test.hashtable.get(i)) != null) && ((day1.test9.Test.hashtable.get(i)) == (day1.test9.Test.maxTimes))) { java.lang.System.out.println(((("number: \t" + i) + "\t times: \t") + (day1.test9.Test...
private void actionShowPreviousDocument(org.apache.wicket.ajax.AjaxRequestTarget aTarget) { de.tudarmstadt.ukp.clarin.webanno.api.annotation.model.AnnotatorState state = getModelObject(); editor.reset(aTarget); java.util.List<de.tudarmstadt.ukp.clarin.webanno.model.SourceDocument> listOfSourceDocuements = g...
private void actionShowPreviousDocument(org.apache.wicket.ajax.AjaxRequestTarget aTarget) { de.tudarmstadt.ukp.clarin.webanno.api.annotation.model.AnnotatorState state = getModelObject(); java.util.List<de.tudarmstadt.ukp.clarin.webanno.model.SourceDocument> listOfSourceDocuements = getListOfDocs(); int cur...
public void outputToSQLFile(java.io.File file, java.lang.String databaseName, com.jeremy.SQLHandler.SQLType sqlType) { java.lang.String output = new com.jeremy.SQLHandler(tblData).createSQLFile(databaseName, sqlType); try { com.jeremy.FileUtility.writeFile(file, output); } catch (java.io.IOException...
public void outputToSQLFile(java.io.File file, java.lang.String databaseName, com.jeremy.SQLHandler.SQLType sqlType) throws java.io.IOException { java.lang.String output = new com.jeremy.SQLHandler(tblData).createSQLFile(databaseName, sqlType); try { com.jeremy.FileUtility.writeFile(file, output); }...
public static void applyIdentity(net.sf.mzmine.datamodel.PeakList peaklist, net.sf.mzmine.modules.peaklistmethods.normalization.rtadjuster.JDXCompound identity, int rowId, double score, boolean bruteForce, boolean canTagAsRef) { for (int i = 0; i < (peaklist.getNumberOfRows()); ++i) { net.sf.mzmine.datamode...
public static void applyIdentity(net.sf.mzmine.datamodel.PeakList peaklist, net.sf.mzmine.modules.peaklistmethods.normalization.rtadjuster.JDXCompound identity, int rowId, double score, boolean canTagAsRef) { for (int i = 0; i < (peaklist.getNumberOfRows()); ++i) { net.sf.mzmine.datamodel.PeakListRow a_pl_r...
public void addReflection() { if (this.region.equals("player")) net.pixelstatic.koru.Koru.log("!"); net.pixelstatic.koru.sprites.Layer reflection = net.pixelstatic.koru.sprites.Layer.obtainLayer(); reflection.region = region; reflection.setPosition(x, ((y) - ((net.pixelstatic.koru.sprites.L...
public void addReflection() { net.pixelstatic.koru.sprites.Layer reflection = net.pixelstatic.koru.sprites.Layer.obtainLayer(); reflection.region = region; reflection.setPosition(x, ((y) - ((net.pixelstatic.koru.sprites.Layer.atlas.regionHeight(region)) / 2))).setColor(color).setTemp().setScale(1.0F, (-1.0F...
org.eclipse.jdt.internal.core.nd.util.PathMap.Node<T> createNode(org.eclipse.core.runtime.IPath key) { if ((this.depth) == (key.segmentCount())) { this.exists = true; return this; } if ((this.children) == null) { this.children = new java.util.HashMap<>(); } java.lang.String n...
public org.eclipse.jdt.internal.core.nd.util.PathMap.Node<T> createChild(java.lang.String nextSegment) { if ((this.children) == null) { this.children = new java.util.HashMap<>(); } org.eclipse.jdt.internal.core.nd.util.PathMap.Node<T> next = this.children.get(nextSegment); if (next == null) { ...
public void fetchCalls(int token, int requestId, java.lang.String filter) { java.lang.String selection = ((((((("(" + (android.provider.CallLog.Calls.NUMBER)) + " like '%") + filter) + "%' or ") + (android.provider.CallLog.Calls.CACHED_NAME)) + " like '%") + filter) + "%' )"; startQuery(token, requestId, Call...
public void fetchCalls(int token, java.lang.String filter) { java.lang.String selection = ((((((("(" + (android.provider.CallLog.Calls.NUMBER)) + " like '%") + filter) + "%' or ") + (android.provider.CallLog.Calls.CACHED_NAME)) + " like '%") + filter) + "%' )"; startQuery(token, null, Calls.CONTENT_URI_WITH_V...
public de.ironjan.mensaupb.stw.deserializer.NewAllergen deserialize(de.ironjan.mensaupb.stw.deserializer.JsonParser jp, de.ironjan.mensaupb.stw.deserializer.DeserializationContext ctxt) throws de.ironjan.mensaupb.stw.deserializer.JsonProcessingException, java.io.IOException { if ((jp.getCurrentToken()) == (JsonToke...
public de.ironjan.mensaupb.stw.deserializer.NewAllergen deserialize(de.ironjan.mensaupb.stw.deserializer.JsonParser jp, de.ironjan.mensaupb.stw.deserializer.DeserializationContext ctxt) throws de.ironjan.mensaupb.stw.deserializer.JsonProcessingException, java.io.IOException { if ((jp.getCurrentToken()) == (JsonToke...
private static boolean verifyServer(java.net.Socket socket) { boolean verified = false; try { java.io.BufferedReader input = new java.io.BufferedReader(new java.io.InputStreamReader(socket.getInputStream())); java.io.PrintWriter pw = new java.io.PrintWriter(socket.getOutputStream(), true); ...
private static boolean verifyServer(java.net.Socket socket) { try { java.io.BufferedReader input = new java.io.BufferedReader(new java.io.InputStreamReader(socket.getInputStream())); java.io.PrintWriter pw = new java.io.PrintWriter(socket.getOutputStream(), true); pw.println("verify"); ...
public <T> T await(java.lang.Class<T> class1) throws java.io.IOException, java.lang.InterruptedException { com.cardshifter.api.messages.Message message = messages.take(); if (message instanceof com.cardshifter.api.outgoing.ServerErrorMessage) { org.junit.Assert.fail(message.toString()); } if (!(...
public <T> T await(java.lang.Class<T> class1) throws java.io.IOException, java.lang.InterruptedException { com.cardshifter.api.messages.Message message = messages.take(); if (!(class1.isAssignableFrom(message.getClass()))) { org.junit.Assert.fail(((("Expected " + class1) + " but was ") + message)); ...
protected int getPaddedSize() { int scrollHeight = (this.height) - 96; int minSlots = ((int) (java.lang.Math.ceil((scrollHeight / (wafflestomper.ghostwriter.GuiFileSelection.ScrollList.SLOT_HEIGHT))))); if ((this.listItems.size()) >= minSlots) { return this.listItems.size(); }else { retu...
protected int getPaddedSize() { int scrollHeight = (this.height) - 96; int minSlots = ((int) (java.lang.Math.ceil((scrollHeight / (wafflestomper.ghostwriter.GuiFileSelection.ScrollList.SLOT_HEIGHT))))); if ((this.listItems.size()) >= minSlots) { return (this.listItems.size()) + 1; }else { ...
public static java.lang.String verifyAddress() { UILayer.InputChecker.address = null; do { java.lang.System.out.println("Please input user's address."); UILayer.InputChecker.ok = true; UILayer.InputChecker.address = UILayer.Input.readString(); if ((UILayer.InputChecker.address.ma...
public static java.lang.String verifyAddress() { UILayer.InputChecker.address = null; do { java.lang.System.out.println("Please input user's address."); UILayer.InputChecker.ok = true; UILayer.InputChecker.address = UILayer.Input.readString(); if ((!(UILayer.InputChecker.address....
private java.util.List<de.fau.cs.mad.kwikshop.common.sorting.BoughtItem> getSiblings(de.fau.cs.mad.kwikshop.common.sorting.BoughtItem child) { java.util.List<de.fau.cs.mad.kwikshop.common.sorting.BoughtItem> siblings = new java.util.ArrayList<de.fau.cs.mad.kwikshop.common.sorting.BoughtItem>(); for (de.fau.cs.m...
private java.util.List<de.fau.cs.mad.kwikshop.common.sorting.BoughtItem> getSiblings(de.fau.cs.mad.kwikshop.common.sorting.BoughtItem child) { java.util.List<de.fau.cs.mad.kwikshop.common.sorting.BoughtItem> siblings = new java.util.ArrayList<de.fau.cs.mad.kwikshop.common.sorting.BoughtItem>(); for (de.fau.cs.m...
public void setArguments(android.os.Bundle arguments) { super.setArguments(arguments); if (getArguments().containsKey("timer")) { timerSeconds = getArguments().getInt("timer"); } if (getArguments().containsKey("notification")) { timerSeconds = getArguments().getInt("notification"); }...
public void setArguments(android.os.Bundle arguments) { if (arguments != null) { if (arguments.containsKey("timer")) { timerSeconds = arguments.getInt("timer"); } if (arguments.containsKey("notification")) { timerSeconds = arguments.getInt("notification"); } ...
private static java.util.ArrayList<java.lang.String> execCmd(java.lang.String mainCmd) { java.lang.String[] cmd = new java.lang.String[]{ "/bin/sh" , "-c" , mainCmd }; try { eu.tango.self.adaptation.manager.actuators.SlurmActuator.execCmd(cmd); } catch (java.io.IOException ex) { java.util.lo...
private static java.util.ArrayList<java.lang.String> execCmd(java.lang.String mainCmd) { java.lang.String[] cmd = new java.lang.String[]{ "/bin/sh" , "-c" , mainCmd }; try { return eu.tango.self.adaptation.manager.actuators.SlurmActuator.execCmd(cmd); } catch (java.io.IOException ex) { java....
C getCircuitOpenCommand(com.netflix.hystrix.HystrixCommandProperties.ExecutionIsolationStrategy isolationStrategy, com.netflix.hystrix.AbstractTestHystrixCommand.FallbackResult fallbackResult) { com.netflix.hystrix.HystrixCircuitBreakerTest.TestCircuitBreaker openCircuit = new com.netflix.hystrix.HystrixCircuitBrea...
C getCircuitOpenCommand(com.netflix.hystrix.HystrixCommandProperties.ExecutionIsolationStrategy isolationStrategy, com.netflix.hystrix.AbstractTestHystrixCommand.FallbackResult fallbackResult) { com.netflix.hystrix.HystrixCircuitBreakerTest.TestCircuitBreaker openCircuit = new com.netflix.hystrix.HystrixCircuitBrea...
public void actionPerformed(java.awt.event.ActionEvent e) { java.lang.String name = nameField.getText(); java.lang.String balance = balanceField.getText(); banking.primitive.core.Account acc = myServer.getAccount(name); if ((acc != null) && (acc.withdraw(java.lang.Float.parseFloat(balance)))) { ...
public void actionPerformed(java.awt.event.ActionEvent e) { java.lang.String name = nameField.getText(); java.lang.String balance = balanceField.getText(); banking.primitive.core.Account acc = myServer.getAccount(name); if ((acc != null) && (acc.withdraw(java.lang.Float.parseFloat(balance)))) { ...
public static void start(@android.support.annotation.NonNull android.app.Activity argActivity, @android.support.annotation.NonNull org.bottiger.podcast.provider.Subscription argSubscription) { if (!(argSubscription.IsLoaded())) { org.bottiger.podcast.SoundWaves.getLibraryInstance().loadEpisodes(argSubscript...
public static void start(@android.support.annotation.NonNull android.app.Activity argActivity, @android.support.annotation.NonNull org.bottiger.podcast.provider.Subscription argSubscription) { if (!(argSubscription.IsLoaded())) { org.bottiger.podcast.SoundWaves.getLibraryInstance().loadEpisodes(argSubscript...
protected void addTerms(java.lang.String item, java.util.List<org.phenotips.ontology.OntologyTerm> holder) { if (org.apache.commons.lang3.StringUtils.isNotBlank(item)) { org.phenotips.ontology.OntologyTerm term = this.ontologyManager.resolveTerm(item); if (term != null) { holder.add(term...
private void addTerms(java.lang.String item, java.util.List<org.phenotips.ontology.OntologyTerm> holder) { if (org.apache.commons.lang3.StringUtils.isNotBlank(item)) { org.phenotips.ontology.OntologyTerm term = this.ontologyManager.resolveTerm(item); if (term != null) { holder.add(term);...
public static void removeMarker(org.eclipse.core.resources.IMarker marker) { eu.modelwriter.configuration.internal.AlloyUtilities.removeAllRelationsOfMarker(marker); eu.modelwriter.configuration.internal.AlloyUtilities.removeTypeFromMarker(marker); eu.modelwriter.traceability.core.persistence.DocumentRoot d...
public static void removeMarker(org.eclipse.core.resources.IMarker marker) { eu.modelwriter.configuration.internal.AlloyUtilities.removeAllRelationsOfMarker(marker); eu.modelwriter.configuration.internal.AlloyUtilities.removeTypeFromMarker(marker); eu.modelwriter.traceability.core.persistence.DocumentRoot d...
public boolean runScript(edu.uwb.braingrid.provenance.ProvMgr provMgr, edu.uwb.braingrid.workbench.model.SimulationSpecification simSpec, java.lang.String scriptPath, java.lang.String scriptVersion, java.lang.String[] nListFilenames, java.lang.String simConfigFilename) throws com.jcraft.jsch.JSchException, com.jcraft.j...
public boolean runScript(edu.uwb.braingrid.provenance.ProvMgr provMgr, edu.uwb.braingrid.workbench.model.SimulationSpecification simSpec, java.lang.String scriptPath, java.lang.String scriptVersion, java.lang.String[] nListFilenames, java.lang.String simConfigFilename) throws com.jcraft.jsch.JSchException, com.jcraft.j...
private void addPolicy(java.lang.String resourceId, java.lang.String internalId, eu.h2020.symbiote.security.accesspolicies.IAccessPolicy accPolicy) throws eu.h2020.symbiote.security.commons.exceptions.custom.InvalidArgumentsException { try { if (accPolicy instanceof eu.h2020.symbiote.security.accesspolicies...
private void addPolicy(java.lang.String resourceId, java.lang.String internalId, eu.h2020.symbiote.security.accesspolicies.common.singletoken.SingleTokenAccessPolicySpecifier accPolicy) throws eu.h2020.symbiote.security.commons.exceptions.custom.InvalidArgumentsException { try { eu.h2020.symbiote.security.a...
protected int load(long address) { if (set.containsBlock(address)) { int way = set.findBlock(address); set.updateLRU(way); return hitLatency; }else { int cost = set.evictIfNeeded(address); int way = set.findBlock(address); set.setTag(way, address); set.set...
protected int load(long address) { if (this.containsBlock(address)) { int way = this.findBlock(address); this.updateLRU(way); return hitLatency; }else { int cost = this.evictIfNeeded(address); int way = this.findBlock(address); this.setTag(way, address); t...
public void pendingRemoval(int position) { final E item = itemList.get(position); if (!(itemPendingRemovalList.contains(item))) { itemPendingRemovalList.add(item); net.nemanjakovacevic.recyclerviewswipetodelete.base.BaseRecycleViewSwiped.notifyItemChanged(position); java.lang.Runnable pe...
public void pendingRemoval(int position) { final E item = itemList.get(position); if (!(itemPendingRemovalList.contains(item))) { itemPendingRemovalList.add(item); net.nemanjakovacevic.recyclerviewswipetodelete.base.BaseRecycleViewSwiped.notifyItemChanged(position); java.lang.Runnable pe...
public void addMenuItemListener(java.awt.event.ActionListener l, int index, java.lang.String... path) throws java.lang.IllegalArgumentException { final org.jtrfp.trcl.gui.SwingMenuSystem.MenuNode node = nameMap.get(path[index]); for (java.lang.String s : nameMap.keySet()) java.lang.System.out.println(("...
public void addMenuItemListener(java.awt.event.ActionListener l, int index, java.lang.String... path) throws java.lang.IllegalArgumentException { final org.jtrfp.trcl.gui.SwingMenuSystem.MenuNode node = nameMap.get(path[index]); if (node == null) throw new java.lang.IllegalArgumentException(((("Failed t...
public static FightGame.Player fight(FightGame.Player a, FightGame.Player b) { while (true) { b.setBloodValue(((b.getBloodValue()) - (a.getAtk()))); if (FightGame.GameMain.isDead(a)) { return a; } a.setBloodValue(((a.getBloodValue()) - (b.getAtk()))); if (FightGam...
public static FightGame.Player fight(FightGame.Player a, FightGame.Player b) { while (true) { b.setBloodValue(((b.getBloodValue()) - (a.getAtk()))); if (FightGame.GameMain.isDead(b)) { return b; } a.setBloodValue(((a.getBloodValue()) - (b.getAtk()))); if (FightGam...
public void onClick(android.view.View v) { if ((Build.VERSION.SDK_INT) >= (Build.VERSION_CODES.ICE_CREAM_SANDWICH)) { activityTitle.setSystemUiVisibility(View.SYSTEM_UI_FLAG_HIDE_NAVIGATION); }else if ((Build.VERSION.SDK_INT) >= (Build.VERSION_CODES.HONEYCOMB)) { activityTitle.setSys...
public void onClick(android.view.View v) { if ((Build.VERSION.SDK_INT) >= (Build.VERSION_CODES.ICE_CREAM_SANDWICH)) { activityTitle.setSystemUiVisibility(View.SYSTEM_UI_FLAG_HIDE_NAVIGATION); }else if ((Build.VERSION.SDK_INT) >= (Build.VERSION_CODES.HONEYCOMB)) { activityTitle.setSys...
private void createGameObjects() { player = new OOPDberoepsproduct.TinusDeTierendeTaurus.Player(); OOPDberoepsproduct.TinusDeTierendeTaurus.Obstacle test = new OOPDberoepsproduct.TinusDeTierendeTaurus.Obstacle(new nl.han.ica.OOPDProcessingEngineHAN.Objects.Sprite("src/main/java/OOPDberoepsproduct/TinusDeTierend...
private void createGameObjects() { player = new OOPDberoepsproduct.TinusDeTierendeTaurus.Player(this); OOPDberoepsproduct.TinusDeTierendeTaurus.Obstacle test = new OOPDberoepsproduct.TinusDeTierendeTaurus.Obstacle(new nl.han.ica.OOPDProcessingEngineHAN.Objects.Sprite("src/main/java/OOPDberoepsproduct/TinusDeTie...
public void addressButtonPress(android.view.View view) { if (addressExists) { android.util.Log.e(casaubon.outdooradventures.ParkDetail.TAG, ("address exists it is: " + (address))); java.lang.String uri = java.lang.String.format(java.util.Locale.ENGLISH, "google.navigation:q=%f,%f", selectedPark.getL...
public void addressButtonPress(android.view.View view) { android.util.Log.e(casaubon.outdooradventures.ParkDetail.TAG, ("address exists it is: " + (address))); java.lang.String uri = java.lang.String.format(java.util.Locale.ENGLISH, "google.navigation:q=%f,%f", selectedPark.getLatitude(), selectedPark.getLongit...
public void onReceive(android.content.Context context, android.content.Intent intent) { switch (intent.getAction()) { case org.dcxz.designdigger.activity.LoginActivity.TAG : doPullToRefresh(); break; case MenuFragment.TAG : org.dcxz.designdigger.app.App.getQueue()...
public void onReceive(android.content.Context context, android.content.Intent intent) { switch (intent.getAction()) { case org.dcxz.designdigger.activity.LoginActivity.TAG : doPullToRefresh(); break; case MenuFragment.TAG : org.dcxz.designdigger.app.App.getQueue()...
public void update(float deltaTime) { _camera.update(); Gdx.gl.glClearColor(0.42F, 0.43F, 0.45F, 1); Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); _batch.begin(); generateClippingScissors(); _batch.setProjectionMatrix(_camera.combined); super.update(deltaTime); _batch.end(); com.badlogic...
public void update(float deltaTime) { _camera.update(); Gdx.gl.glClearColor(0.42F, 0.43F, 0.45F, 1); Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); _batch.begin(); generateClippingScissors(); _batch.setProjectionMatrix(_camera.combined); super.update(deltaTime); com.badlogic.gdx.scenes.scene2...
public void pidWrite(double output) { java.lang.System.out.println(("Output: " + output)); double angle = navigationSubsystem.getYaw(); frontLeft.set((output + ((-angle) * (org.usfirst.frc.team5190.robot.subsystems.DriveTrainSubsystem.DriveStraightPIDOutput.kP)))); frontRight.set((output + (angle * (org...
public void pidWrite(double output) { double angle = navigationSubsystem.getYaw(); frontLeft.set((output + ((-angle) * (org.usfirst.frc.team5190.robot.subsystems.DriveTrainSubsystem.DriveStraightPIDOutput.kP)))); frontRight.set((output + (angle * (org.usfirst.frc.team5190.robot.subsystems.DriveTrainSubsyste...
public void onDataChange(com.google.firebase.database.DataSnapshot dataSnapshot) { messageList.clear(); for (com.google.firebase.database.DataSnapshot messageShot : dataSnapshot.getChildren()) { messageList.add(messageShot.getValue(com.codingblocks.groupchat.model.Message.class)); android.util.L...
public void onDataChange(com.google.firebase.database.DataSnapshot dataSnapshot) { messageList.clear(); for (com.google.firebase.database.DataSnapshot messageShot : dataSnapshot.getChildren()) { messageList.add(messageShot.getValue(com.codingblocks.groupchat.model.Message.class)); } listOfMessag...
public void updateFromJar(org.openstreetmap.josm.plugins.PluginInformation other) { updateLocalInfo(other); if ((other.icon) != null) { this.icon = other.icon; } this.early = other.early; this.className = other.className; this.canloadatruntime = other.canloadatruntime; this.libraries...
public void updateFromJar(org.openstreetmap.josm.plugins.PluginInformation other) { updateLocalInfo(other); if ((other.icon) != null) { this.icon = other.icon; } this.early = other.early; this.className = other.className; this.canloadatruntime = other.canloadatruntime; this.libraries...
public void testParseDouble() throws java.lang.Exception { net.openhft.chronicle.bytes.Bytes b = net.openhft.chronicle.bytes.Bytes.elasticByteBuffer(); double expected = 123.1234; b.append(expected); b.flip(); org.junit.Assert.assertEquals(expected, net.openhft.chronicle.bytes.BytesUtil.parseDouble(...
public void testParseDouble() throws java.lang.Exception { net.openhft.chronicle.bytes.Bytes b = net.openhft.chronicle.bytes.Bytes.elasticByteBuffer(); double expected = 123.1234; b.append(expected); b.flip(); org.junit.Assert.assertEquals(expected, net.openhft.chronicle.bytes.BytesUtil.parseDouble(...
public void run() { if (m_stopped.get()) { return ; } try { handleOperations(); checkHolders(); } catch (java.lang.Exception e) { com.ctrip.hermes.broker.queue.AbstractMessageQueue.log.error("Exception occurred while executing ack task.", e); } finally { if (!...
public void run() { try { handleOperations(); checkHolders(); } catch (java.lang.Exception e) { com.ctrip.hermes.broker.queue.AbstractMessageQueue.log.error("Exception occurred while executing ack task.", e); } finally { if (!(m_stopped.get())) { m_ackOpExecutor.s...
public sg.ncl.service.authentication.domain.Credentials updatePassword(@javax.validation.constraints.NotNull final sg.ncl.service.authentication.domain.Credentials credentials) { sg.ncl.service.authentication.validation.Validator.checkPassword(credentials); final sg.ncl.service.authentication.data.jpa.Credentia...
public sg.ncl.service.authentication.domain.Credentials updatePassword(@javax.validation.constraints.NotNull final java.lang.String id, @javax.validation.constraints.NotNull final sg.ncl.service.authentication.domain.Credentials credentials) { sg.ncl.service.authentication.validation.Validator.checkPassword(credent...
private void runReconstructionMarginal() throws java.lang.Exception { if (((nodeLabel) != null) && (!(nodeLabel.equalsIgnoreCase("root")))) asrMarginal = new reconstruction.ASRPOG(null, treeFilepath, alnFilepath, nodeLabel); else asrMarginal = new reconstruction.ASRPOG(alnFilepath, treeFilepath,...
private void runReconstructionMarginal() throws java.lang.Exception { if (((nodeLabel) != null) && (!(nodeLabel.equalsIgnoreCase("root")))) asrMarginal = new reconstruction.ASRPOG(null, treeFilepath, alnFilepath, nodeLabel, false); else asrMarginal = new reconstruction.ASRPOG(alnFilepath, treeFi...
public void toggleTv(android.view.View view) { android.widget.ImageButton tvButton = ((android.widget.ImageButton) (findViewById(R.id.tv_onoff))); if (tvButton != null) { if (tv.getOnOffControl().isOn()) { tvButton.setImageResource(R.drawable.tv_transparent_s_off); tv.getOnOffCon...
public void toggleTv(android.view.View view) { android.widget.ImageButton tvButton = ((android.widget.ImageButton) (findViewById(R.id.tv_onoff))); if (tvButton != null) { if (tv.getOnOffControl().isOn()) { tvButton.setImageResource(R.drawable.tv_transparent_s_off); tv.getOnOffCon...
private void turnOffFlash() { if (isFlashOn) { if (((camera) == null) || ((params) == null)) { return ; } params = camera.getParameters(); params.setFlashMode(Camera.Parameters.FLASH_MODE_OFF); camera.setParameters(params); camera.stopPreview(); is...
private void turnOffFlash() { if (isFlashOn) { if ((camera) == null) { return ; } params = camera.getParameters(); params.setFlashMode(Camera.Parameters.FLASH_MODE_OFF); camera.setParameters(params); camera.stopPreview(); isFlashOn = false; ...
public boolean checkIfLocked() { if ((document.field("locked_until")) != null) { java.util.Date now = new java.util.Date(); if (now.before(((java.util.Date) (document.field("locked_until"))))) { java.lang.System.out.println("Account is still locked"); return true; }el...
public boolean checkIfLocked() { if ((document.field("locked_until")) != null) { java.util.Date now = new java.util.Date(); if (now.before(((java.util.Date) (document.field("locked_until"))))) { java.lang.System.out.println("Account is still locked"); return true; }el...
public java.lang.Number execute(java.lang.Number expected) { try { long solution = solve(); if ((expected.longValue()) == solution) { return expected; }else { return solution; } } catch (java.lang.Exception ex) { if ((ex.getMessage()) != null) { ...
public java.lang.Number execute(java.lang.Number expected) { try { long solution = solve(); if (expected == null) { return solution; }else if ((expected.longValue()) == solution) { return expected; }else { return solution; ...
public void run() { while (true) { android.net.wifi.WifiInfo info = wifiManager.getConnectionInfo(); java.lang.String wifiId = (info != null) ? info.getSSID() : null; if ((wifiId != null) && (wifiId.contains(UrlUtils.HOTPOT_NAME))) { mHanlder.sendEmptyMessage(0); wSta...
public void run() { while (true) { android.net.wifi.WifiInfo info = wifiManager.getConnectionInfo(); java.lang.String wifiId = (info != null) ? info.getSSID() : null; if ((wifiId != null) && (wifiId.contains(UrlUtils.HOTPOT_NAME))) { mHanlder.sendEmptyMessage(0); wSta...
public void rfs(BitWord immed) { R0.setBitValue(new BitWord(ArithmeticLogicUnit.padZeros(immed.getValue()))); java.lang.String pc = R3.getBitValue().getValue().substring(4, 16); PC.setBitValue(ArithmeticLogicUnit.padZeros(pc)); }
public void rfs(BitWord immed) { R0.setBitValue(new BitWord(ArithmeticLogicUnit.padZeros(immed.getValue()))); java.lang.String pc = R3.getBitValue().getValue().substring(4, 16); PC.setBitValue(pc); }
public void addHitbox() { org.newdawn.slick.geom.Ellipse el = new org.newdawn.slick.geom.Ellipse(((posx) + ((getSize()[0]) / 2)), (((posy) + ((getSize()[1]) / 2)) - 1), mesiah.danmaku.model.Player.HITBOX_RADIUS, mesiah.danmaku.model.Player.HITBOX_RADIUS); float[] rel = new float[]{ 0.0F , 0.0F }; addRelativ...
public void addHitbox() { org.newdawn.slick.geom.Ellipse el = new org.newdawn.slick.geom.Ellipse(((posx) + ((getSize()[0]) / 2)), ((posy) + ((getSize()[1]) / 2)), mesiah.danmaku.model.Player.HITBOX_RADIUS, mesiah.danmaku.model.Player.HITBOX_RADIUS); float[] rel = new float[]{ 0.0F , 0.0F }; addRelative(rel)...
public void deleteLinkInputs(long id, java.sql.Connection conn) { java.sql.PreparedStatement dltConnInput = null; try { dltConnInput = conn.prepareStatement(crudQueries.getStmtDeleteLinkInput()); dltConnInput.setLong(1, id); dltConnInput.executeUpdate(); } catch (java.sql.SQLExceptio...
public void deleteLinkInputs(long id, java.sql.Connection conn) { try (java.sql.PreparedStatement dltConnInput = conn.prepareStatement(crudQueries.getStmtDeleteLinkInput())) { dltConnInput.setLong(1, id); dltConnInput.executeUpdate(); } catch (java.sql.SQLException ex) { logException(ex,...
public void put(int presetID, org.openhab.binding.bosesoundtouch.internal.ContentItem preset) throws java.io.IOException, org.openhab.binding.bosesoundtouch.internal.exceptions.ContentItemNotPresetableException { preset.setPresetID(presetID); if (preset.isPresetable()) { mapOfPresets.put(presetID, prese...
public void put(int presetID, org.openhab.binding.bosesoundtouch.internal.ContentItem preset) throws java.io.IOException, org.openhab.binding.bosesoundtouch.internal.exceptions.ContentItemNotPresetableException { preset.setPresetID(presetID); if (preset.isPresetable()) { mapOfPresets.put(presetID, prese...
public java.util.List<java.lang.String> getFieldNames(java.lang.Class<? extends io.realm.RealmModel> clazz) { checkClass(clazz); if (clazz.equals(com.xstock.models.GetTradeList.class)) { return io.realm.io.realm.GetTradeListRealmProxy.getFieldNames(); }else if (clazz.equals(com.xstock.models...
public java.util.List<java.lang.String> getFieldNames(java.lang.Class<? extends io.realm.RealmModel> clazz) { checkClass(clazz); if (clazz.equals(com.xstock.models.UserDetail.class)) { return io.realm.io.realm.UserDetailRealmProxy.getFieldNames(); }else if (clazz.equals(com.xstock.models.Get...
public org.springframework.http.ResponseEntity<ro.mpsit.web.ExerciseResults> stop(@org.springframework.web.bind.annotation.RequestParam java.lang.String name) { if (!(smartwatchService.isPaired(name))) { return org.springframework.http.ResponseEntity.badRequest().body(null); } ro.mpsit.web.ExerciseR...
public org.springframework.http.ResponseEntity<ro.mpsit.web.ExerciseResults> stop(@org.springframework.web.bind.annotation.RequestParam java.lang.String name) { if (!(smartwatchService.isPaired(name))) { return org.springframework.http.ResponseEntity.badRequest().body(null); } ro.mpsit.web.ExerciseR...
public void close() { commitLock.lock(); try { closed = true; flush(); vol.close(); vol = null; if ((caches) != null) { for (org.mapdb.Cache c : caches) { c.close(); } java.util.Arrays.fill(caches, null); } }...
public void close() { if ((closed) == true) return ; commitLock.lock(); try { if ((closed) == true) return ; closed = true; flush(); vol.close(); vol = null; if ((caches) != null) { for (org.mapdb.Cache c : caches)...
public boolean attackEntityFrom(net.minecraft.util.DamageSource source, float damage) { if (defense.common.DamageUtility.canHarm(this, source, damage)) { this.damage += damage; if ((this.damage) >= (this.max_damage)) { this.setDead(); } return true; } return false...
public boolean attackEntityFrom(net.minecraft.util.DamageSource source, float damage) { if (defense.common.DamageUtility.canHarm(this, source, damage)) { damage += damage; if (damage >= (max_damage)) { setDead(); } return true; } return false; }
public static org.bukkit.configuration.file.FileConfiguration loadSignDataInto(java.io.File dataFolder, java.lang.String fileName, org.bukkit.configuration.file.FileConfiguration signDataConfig) { java.io.File signFile = new java.io.File(dataFolder, fileName); if (!(signFile.exists())) { try { ...
public static org.bukkit.configuration.file.FileConfiguration loadSignDataInto(java.io.File dataFolder, java.lang.String fileName) { java.io.File signFile = new java.io.File(dataFolder, fileName); if (!(signFile.exists())) { try { signFile.createNewFile(); return org.bukkit.confi...
public void removeRole(sx.blah.discord.handle.impl.obj.IRole role, sx.blah.discord.handle.impl.obj.IGuild guild) throws sx.blah.discord.util.DiscordException, sx.blah.discord.util.MissingPermissionsException, sx.blah.discord.util.RateLimitException { java.util.List<sx.blah.discord.handle.impl.obj.IRole> roleList = ...
public void removeRole(sx.blah.discord.handle.impl.obj.IRole role, sx.blah.discord.handle.impl.obj.IGuild guild) throws sx.blah.discord.util.DiscordException, sx.blah.discord.util.MissingPermissionsException, sx.blah.discord.util.RateLimitException { java.util.List<sx.blah.discord.handle.impl.obj.IRole> roleList = ...
public void deleteParentFolderAtPC_renameSubFolderAtWEB() throws java.lang.Exception { java.lang.String parentFolder = "/Folder"; java.lang.String subFolder = "/conflict22"; fu.createFolder((parentFolder + subFolder), userId); Utils.WebUtil.refreshUntil90Seconds(1, driver); fu.deleteDirectory(parent...
public void deleteParentFolderAtPC_renameSubFolderAtWEB() throws java.lang.Exception { java.lang.String parentFolder = "/Folder"; java.lang.String subFolder = "/conflict22"; fu.createFolder((parentFolder + subFolder), userId); Utils.WebUtil.refreshUntil90Seconds(1, driver); Utils.WebUtil.navigateToF...
public void parse(final java.io.File rootFile) throws java.io.IOException { for (final java.io.File file : rootFile.listFiles()) { if (file.isDirectory()) { this.parse(file); }else { this.readFile(file); } this.setTotalDocuments(((this.getTotalDocuments()) + 1...
public void parse(final java.io.File rootFile) throws java.io.IOException { for (final java.io.File file : rootFile.listFiles()) { if (file.isDirectory()) { this.parse(file); }else { this.readFile(file); this.setTotalDocuments(((this.getTotalDocuments()) + 1)); ...
public void actionPerformed(java.awt.event.ActionEvent e) { if (updateGuiVariables()) { java.util.concurrent.ExecutorService es = java.util.concurrent.Executors.newCachedThreadPool(); es.execute(new ct.vss.Registration.track3D(gui_selectedTrack, gui_t, 1, gui_dz, gui_pStackRadii, gui_pCenterOfMassRa...
public void actionPerformed(java.awt.event.ActionEvent e) { if (updateGuiVariables()) { java.util.concurrent.ExecutorService es = java.util.concurrent.Executors.newCachedThreadPool(); es.execute(new ct.vss.Registration.track3D(gui_selectedTrack, 1, gui_dz, gui_pStackRadii, gui_pCenterOfMassRadii, gu...
public void bridgeStatusChanged(org.eclipse.smarthome.core.thing.ThingStatusInfo bridgeStatusInfo) { if ((bridgeStatusInfo.getStatus()) == (org.eclipse.smarthome.core.thing.ThingStatus.ONLINE)) { if ((org.openhab.binding.russound.rio.AbstractBridgeHandler.getThing().getStatusInfo().getStatus()) != (org.ecli...
public void bridgeStatusChanged(org.eclipse.smarthome.core.thing.ThingStatusInfo bridgeStatusInfo) { if ((bridgeStatusInfo.getStatus()) == (org.eclipse.smarthome.core.thing.ThingStatus.ONLINE)) { if ((org.openhab.binding.russound.rio.AbstractBridgeHandler.getThing().getStatusInfo().getStatus()) != (org.ecli...
public void testWithUnmanagedComponent(javax.enterprise.inject.spi.BeanManager manager) { javax.enterprise.inject.spi.Unmanaged<org.jboss.weld.tests.interceptors.resource.InterceptedBean> unmanaged = new javax.enterprise.inject.spi.Unmanaged(manager, org.jboss.weld.tests.interceptors.resource.InterceptedBean.class)...
public void testWithUnmanagedComponent(javax.enterprise.inject.spi.BeanManager manager) { javax.enterprise.inject.spi.Unmanaged<org.jboss.weld.tests.interceptors.resource.InterceptedBean> unmanaged = new javax.enterprise.inject.spi.Unmanaged<org.jboss.weld.tests.interceptors.resource.InterceptedBean>(manager, org.j...
public void showOrder() { if ((user) instanceof fr.ecp.IS1220.group5.project.Customer) { if ((currentRestaurant) != null) { currentOrder.showOrder(); java.lang.System.out.println(fr.ecp.IS1220.group5.project.Money.display(currentOrder.getTotal_price())); }else { j...
public void showOrder() { if ((user) instanceof fr.ecp.IS1220.group5.project.Customer) { if ((currentOrder) != null) { currentOrder.showOrder(); java.lang.System.out.println(fr.ecp.IS1220.group5.project.Money.display(currentOrder.getTotal_price())); }else { java.l...
public static void i(java.lang.String tag, java.lang.String message) { if (com.airmap.airmapsdk.AirMapLog.ENABLED) { if (com.airmap.airmapsdk.AirMapLog.TESTING) { java.lang.System.out.println(((tag + ": ") + message)); }else { android.util.Log.i(tag, message); } }...
public static void i(java.lang.String tag, java.lang.String message) { if (com.airmap.airmapsdk.AirMapLog.ENABLED) { if (com.airmap.airmapsdk.AirMapLog.TESTING) { java.lang.System.out.println(((tag + ": ") + message)); }else if (!(message.isEmpty())) { android...
public java.lang.String getNotes() { java.lang.String ret = ""; try { java.util.List<fr.nikk.model.note.Note> ln = this.dao.getData(); try { return this.mapper.writeValueAsString(ln); } catch (com.fasterxml.jackson.core.JsonProcessingException e) { ret = "jdb erro...
public java.lang.String getNotes() { java.lang.String ret = ""; try { java.util.List<fr.nikk.model.note.Note> ln = this.dao.getData(); try { ret = this.mapper.writeValueAsString(ln); } catch (com.fasterxml.jackson.core.JsonProcessingException e) { ret = "jdb error...
public void getLocation() { int x = 10; int y = 20; int min = 1; int max = 100; Location constrainedLocation = new Location(x, y, min, max); assertEquals(x, constrainedLocation.getCoordinate(Location.Coordinate.FIRST)); assertEquals(y, constrainedLocation.getCoordinate(Location.Coordinate.SE...
public void getLocation() { int x = 10; int y = 20; int max = 100; Location constrainedLocation = new Location(x, y, max); assertEquals(x, constrainedLocation.getCoordinate(Location.Coordinate.FIRST)); assertEquals(y, constrainedLocation.getCoordinate(Location.Coordinate.SECOND)); }
private int[] sortOrdersIntoReorderedIndices(int childCount, java.util.List<com.google.android.flexbox.FlexboxLayout.Order> orders) { java.util.Collections.sort(orders); if ((mOrderCache) == null) { mOrderCache = new android.util.SparseIntArray(childCount); } mOrderCache.clear(); int[] reord...
private int[] sortOrdersIntoReorderedIndices(int childCount, java.util.List<com.google.android.flexbox.FlexboxLayout.Order> orders) { java.util.Collections.sort(orders); if ((mOrderCache) == null) { mOrderCache = new android.util.SparseIntArray(childCount); } mOrderCache.clear(); int[] reord...
public void decrypt() throws java.lang.Exception { java.lang.String hello = cwl.security.SecretKeySpecUse.encrypt("hello", myKey); cwl.security.SecretKeySpecUseTest.encrypt("edwin", "password"); cwl.security.SecretKeySpecUseTest.decrypt("6VsVtA/nhHKUZuWWmod/BQ=="); java.lang.String en = cwl.security.Sec...
public void decrypt() throws java.lang.Exception { java.lang.String hello = cwl.security.SecretKeySpecUse.encrypt("hello", myKey); assertEquals("hello", cwl.security.SecretKeySpecUse.decrypt(hello, myKey)); cwl.security.SecretKeySpecUseTest.encrypt("edwin", "password"); cwl.security.SecretKeySpecUseTest...
private static agh.aq21gui.model.output.Selector convertFromStringSelector(java.lang.String sel) { agh.aq21gui.model.output.Selector s = new agh.aq21gui.model.output.Selector(); sel = sel.replaceAll("\\(", "").replaceAll("\\)", ""); java.lang.String[] tokens = sel.split(" "); s.setName(tokens[0]); s...
private static agh.aq21gui.model.output.Selector convertFromStringSelector(java.lang.String sel) { agh.aq21gui.model.output.Selector s = new agh.aq21gui.model.output.Selector(); sel = sel.replaceAll("\\(", "").replaceAll("\\)", ""); java.lang.String[] tokens = sel.trim().split(" "); s.setName(tokens[0])...
private static void testSelectorUpdate(com.facebook.presto.resourceGroups.db.H2ResourceGroupsDao dao, java.util.Map<java.lang.Long, com.facebook.presto.resourceGroups.db.SelectorRecord> map) { dao.updateSelector(2, "ping.*", "ping_source", "ping_user", ".*"); com.facebook.presto.resourceGroups.db.SelectorRecord...
private static void testSelectorUpdate(com.facebook.presto.resourceGroups.db.H2ResourceGroupsDao dao, java.util.Map<java.lang.Long, com.facebook.presto.resourceGroups.db.SelectorRecord> map) { dao.updateSelector(2, "ping.*", "ping_source", "ping_user", ".*"); com.facebook.presto.resourceGroups.db.SelectorRecord...
public void asetaPelaajanNimi(java.lang.String nimi) { sovelluslogiikka.haeSiirtojarjestys().get(((kysyttavaPelaaja) - 1)).asetaNimi(nimi); sovelluslogiikka.haeSiirtojarjestys().get(((kysyttavaPelaaja) - 1)).asetaIhmiseksi(true); (kysyttavaPelaaja)++; kyselyteksti = ("Pelaajan " + (kysyttavaPelaaja)) + ...
public void asetaPelaajanNimi(java.lang.String nimi) { sovelluslogiikka.haeSiirtojarjestys().get(((kysyttavaPelaaja) - 1)).asetaNimi(nimi); sovelluslogiikka.haeSiirtojarjestys().get(((kysyttavaPelaaja) - 1)).asetaIhmiseksi(true); (kysyttavaPelaaja)++; kyselyteksti = ("Pelaajan " + (kysyttavaPelaaja)) + ...