buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public AST.T_Seq buildProgram() { src.IRUtils.init(); AST.T_Seq classes = this.buildIr(); AST.T_Exp accessViolation = new AST.T_AccessViolation(); AST.T_Seq main = new AST.T_Seq(new AST.T_Raw("main:%n"), new AST.T_JumpLabel(this.programMain)); return new AST.T_Seq(main, new AST.T_Seq(classes, access...
public AST.T_Seq buildProgram() { src.IRUtils.init(); AST.T_Seq classes = this.buildIr(); AST.T_Exp accessViolation = new AST.T_AccessViolation(); AST.T_Seq main = new AST.T_Seq(new AST.T_Raw(java.lang.String.format("main:%n")), new AST.T_JumpLabel(this.programMain)); return new AST.T_Seq(main, new ...
protected void onPause() { android.support.v4.content.LocalBroadcastManager.getInstance(this).unregisterReceiver(mRegistrationBroadcastReceiver); stopRepeatingTask(); super.onPause(); android.util.Log.d("SCXTT2", " onPause"); com.harnk.whereru.DeviceSingleton deviceSingleton = com.harnk.whereru.Devi...
protected void onPause() { android.support.v4.content.LocalBroadcastManager.getInstance(this).unregisterReceiver(mRegistrationBroadcastReceiver); stopRepeatingTask(); super.onPause(); android.util.Log.d("SCXTT2", " onPause"); mIsInForegroundMode = false; com.harnk.whereru.DeviceSingleton deviceS...
public byte[] getBlbValue(java.lang.String key) { try { if ((com.raizlabs.android.dbflow.structure.container.JSONModel.getData()) != null) { java.lang.Object value = com.raizlabs.android.dbflow.structure.container.JSONModel.getData().get(key); if (value instanceof com.raizlabs.androi...
public byte[] getBlbValue(java.lang.String key) { try { if ((com.raizlabs.android.dbflow.structure.container.JSONModel.getData()) != null) { java.lang.Object value = com.raizlabs.android.dbflow.structure.container.JSONModel.getData().get(key); if (value instanceof com.raizlabs.androi...
protected org.springframework.web.servlet.ModelAndView mainController(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) { org.springframework.web.servlet.ModelAndView model = new org.springframework.web.servlet.ModelAndView("/SwitchFile"); flag2 = dummy.AppControlle...
protected org.springframework.web.servlet.ModelAndView mainController(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) { org.springframework.web.servlet.ModelAndView model = new org.springframework.web.servlet.ModelAndView("/SwitchFile"); flag2 = dummy.AppControlle...
public void onConnectedToRoom(com.google.android.gms.games.multiplayer.realtime.Room room) { android.util.Log.d(com.google.example.games.bc.MainActivity.TAG, "onConnectedToRoom."); mParticipants = room.getParticipants(); mMyId = room.getParticipantId(Games.Players.getCurrentPlayerId(mGoogleApiClient)); ...
public void onConnectedToRoom(com.google.android.gms.games.multiplayer.realtime.Room room) { android.util.Log.d(com.google.example.games.bc.MainActivity.TAG, "onConnectedToRoom."); mParticipants = room.getParticipants(); mMyId = room.getParticipantId(Games.Players.getCurrentPlayerId(mGoogleApiClient)); ...
protected void doUpdate() { if (hasMarblePanel()) { marblePanel.update(); } if (hasAnimPanel()) { animPanel.update(); } if (isItemChecBox()) { updateCheckBox(); }else if (isItemNumeric()) { updateNumerics(); }else { if ((!(isInputTr...
protected void doUpdate() { if (hasMarblePanel()) { marblePanel.update(); } if (hasAnimPanel()) { animPanel.update(); } if (isItemChecBox()) { updateCheckBox(); }else if (isItemNumeric()) { updateNumerics(); updateTextItems(); }else...
protected boolean shouldBlockDamage(net.minecraft.entity.Entity entity) { if (!(entity instanceof net.minecraft.entity.player.EntityPlayer)) { return false; } net.minecraft.entity.player.EntityPlayer player = ((net.minecraft.entity.player.EntityPlayer) (entity)); if ((!(player.isActiveItemStackB...
protected boolean shouldBlockDamage(net.minecraft.entity.Entity entity) { if (!(entity instanceof net.minecraft.entity.player.EntityPlayer)) { return false; } net.minecraft.entity.player.EntityPlayer player = ((net.minecraft.entity.player.EntityPlayer) (entity)); if ((!(player.isActiveItemStackB...
public com.javamonkeys.dao.user.User getUserByToken(java.lang.String token) { if (token == null) return null; org.hibernate.Query query = getSession().createQuery("from User where token = :token"); query.setParameter("token", token); return ((com.javamonkeys.dao.user.User) (query.uniqueResu...
public com.javamonkeys.dao.user.User getUserByToken(java.lang.String token) { if (token == null) return null; org.hibernate.Query query = getSession().createQuery("from User where token = :token"); query.setParameter("token", token); java.util.List result = query.list(); if (result.isEm...
protected void onVisibilityChanged(@android.support.annotation.NonNull android.view.View changedView, int visibility) { super.onVisibilityChanged(changedView, visibility); if (((getProgressMode()) == (com.rey.material.widget.ProgressView.MODE_INDETERMINATE)) && (mAutostart)) { if ((visibility == (GONE))...
protected void onVisibilityChanged(@android.support.annotation.NonNull android.view.View changedView, int visibility) { super.onVisibilityChanged(changedView, visibility); if (changedView != (this)) return ; if (mAutostart) { if ((visibility == (GONE)) || (visibility == (INVISIBLE))) ...
private void showFragmentMap(java.util.ArrayList<java.lang.String[]> Lijst) { empty = Lijst; android.app.Fragment newFrag = new nmct.howest.be.desproject.ShowMapFragment().newInstance("a", "b"); android.app.FragmentManager fMgr = getFragmentManager(); android.app.FragmentTransaction fTr = fMgr.beginTran...
private void showFragmentMap(java.util.ArrayList<java.lang.String[]> Lijst) { android.app.Fragment newFrag = new nmct.howest.be.desproject.ShowMapFragment(); android.app.FragmentManager fMgr = getFragmentManager(); android.app.FragmentTransaction fTr = fMgr.beginTransaction(); fTr.replace(R.id.container...
public java.lang.String addEmployeeWorkEvent(ru.kolaer.permit.entity.WorkEvent workEvent) { final ru.kolaer.permit.entity.WorkEvent updatable = this.workEventDao.findById(workEvent.getId(), false); updatable.getEmployeesEntity().addAll(workEvent.getEmployeesEntity()); this.workEventDao.update(updatable); ...
public java.lang.String addEmployeeWorkEvent(ru.kolaer.permit.entity.WorkEvent workEvent) { if (((workEvent.getEmployeesEntity()) != null) || (!(workEvent.getEmployeesEntity().isEmpty()))) { final ru.kolaer.permit.entity.WorkEvent updatable = this.workEventDao.findById(workEvent.getId(), true); upda...
public boolean equals(java.lang.Object obj) { if ((this) == obj) return true; if (obj == null) return false; if ((getClass()) != (obj.getClass())) return false; org.amc.game.chess.Location other = ((org.amc.game.chess.Location) (obj)); if ((letter) != (other.le...
public boolean equals(java.lang.Object obj) { if ((this) == obj) return true; if (obj == null) return false; if ((getClass()) != (obj.getClass())) return false; org.amc.game.chess.Location other = ((org.amc.game.chess.Location) (obj)); if ((letter) != (other.le...
public void onWindowFocusChanged(boolean hasFocus) { super.onWindowFocusChanged(hasFocus); int flags = (((android.view.View.SYSTEM_UI_FLAG_HIDE_NAVIGATION) | (android.view.View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION)) | (android.view.View.SYSTEM_UI_FLAG_FULLSCREEN)) | (android.view.View.SYSTEM_UI_FLAG_LAYOUT_FUL...
public void onWindowFocusChanged(boolean hasFocus) { super.onWindowFocusChanged(hasFocus); if (hasFocus) { int flags = ((((android.view.View.SYSTEM_UI_FLAG_HIDE_NAVIGATION) | (android.view.View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION)) | (android.view.View.SYSTEM_UI_FLAG_FULLSCREEN)) | (android.view.View....
public com.lami.tuomatuo.mq.netty.util.concurrent.Future<V> addListeners(com.lami.tuomatuo.mq.netty.util.concurrent.GenericFutureListener<? extends com.lami.tuomatuo.mq.netty.util.concurrent.Future<? super V>>... listeners) { if (listeners == null) { throw new java.lang.NullPointerException("Listeners is nu...
public com.lami.tuomatuo.mq.netty.util.concurrent.Future<V> addListeners(com.lami.tuomatuo.mq.netty.util.concurrent.GenericFutureListener<? extends com.lami.tuomatuo.mq.netty.util.concurrent.Future<? super V>>... listeners) { if (listeners == null) { throw new java.lang.NullPointerException("Listeners is nu...
public com.github.a2g.core.objectmodel.AutoplayCommand getNext() { if (!(currentSet.isEmpty())) return currentSet.removeFirst(); getNextSet(solutions.getFirst().getNext(((currentIndexIntoFirst)++))); if (!(currentSet.isEmpty())) return currentSet.removeFirst(); solutions.remove...
public com.github.a2g.core.objectmodel.AutoplayCommand getNext() { if (!(currentSet.isEmpty())) return currentSet.removeFirst(); if (solutions.isEmpty()) return null; getNextSet(solutions.getFirst().getNext(((currentIndexIntoFirst)++))); if (!(currentSet.isEmpty())) ret...
public void mutateAllele() { int rand = ((int) ((java.lang.Math.random()) * 20)); if (rand == 1) { int allele = ((int) ((java.lang.Math.random()) * (StarcraftAI.Gene.GENE_SIZE))); int newVal = ((int) ((java.lang.Math.random()) * (java.lang.Integer.MAX_VALUE))); gene.set(allele, newVal); ...
public void mutateAllele() { int rand = ((int) ((java.lang.Math.random()) * 20)); if (rand == 1) { int allele = ((int) ((java.lang.Math.random()) * (size))); int newVal = ((int) ((java.lang.Math.random()) * (java.lang.Integer.MAX_VALUE))); gene.set(allele, newVal); geneClone.set(...
public java.lang.Object decode(java.lang.String toDecode) throws java.io.InterruptedIOException, java.lang.NullPointerException { com.google.gson.JsonParser parser = new com.google.gson.JsonParser(); if (toDecode == null) { throw new java.io.InterruptedIOException("Errore"); } java.lang.String m...
public java.lang.Object decode(java.lang.String toDecode) throws java.io.InterruptedIOException, java.lang.NullPointerException { com.google.gson.JsonParser parser = new com.google.gson.JsonParser(); if (toDecode == null) { throw new java.io.InterruptedIOException("Errore"); } java.lang.System.o...
public static <O, T> java.util.List<T> collect(final java.lang.Iterable<O> inputIterable, final org.apache.commons.collections4.Transformer<? super O, ? extends T> transformer) { return null == inputIterable ? java.util.Collections.<T>emptyList() : ((java.util.List<T>) (org.apache.commons.collections4.CollectionUti...
public static <O, T> java.util.List<T> collect(final java.lang.Iterable<O> inputIterable, final org.apache.commons.collections4.Transformer<? super O, ? extends T> transformer) { return null == inputIterable ? null : ((java.util.List<T>) (org.apache.commons.collections4.CollectionUtils.collect(inputIterable, transf...
private void loadShareProvider(java.lang.String title) { android.content.Intent shareIntent = new android.content.Intent(android.content.Intent.ACTION_SEND); shareIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_DOCUMENT); shareIntent.setType("text/plain"); shareIntent.putExtra(Intent.EXTRA_TEXT, ((getString(R....
private void loadShareProvider(java.lang.String title) { if ((shareActionProvider) == null) { return ; } android.content.Intent shareIntent = new android.content.Intent(android.content.Intent.ACTION_SEND); shareIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_DOCUMENT); shareIntent.setType("text/pla...
private it.unibas.spicy.persistence.sql.ExportSQLInstances.TableSchema searchTableName(java.lang.String tableName, java.util.ArrayList<it.unibas.spicy.persistence.sql.ExportSQLInstances.TableSchema> t) { for (int i = 0; i < (t.size()); i++) { if (tableName.equals(t.get(i).getName())) { return t....
private it.unibas.spicy.persistence.sql.ExportSQLInstances.TableSchema searchTableName(java.lang.String tableName, java.util.ArrayList<it.unibas.spicy.persistence.sql.ExportSQLInstances.TableSchema> t) { for (int i = 0; i < (t.size()); i++) { if (tableName.equals(t.get(i).getName())) { return t....
public void handle(javafx.event.ActionEvent event) { EventWindow.LoadEventWindow eventWindow = new EventWindow.LoadEventWindow(); MapHTML.LoadMap map = new MapHTML.LoadMap(); LogWindow.LoadLogWindow logWindow = new LogWindow.LoadLogWindow(); UnitTableView.LoadUnitTable unitTable = new UnitTableView.Load...
public void handle(javafx.event.ActionEvent event) { EventWindow.LoadEventWindow eventWindow = new EventWindow.LoadEventWindow(); MapHTML.LoadMap map = new MapHTML.LoadMap(); LogWindow.LoadLogWindow logWindow = new LogWindow.LoadLogWindow(); UnitTableView.LoadUnitTable unitTable = new UnitTableView.Load...
private void addInfRow() { java.lang.String eth = "eth"; java.lang.String infName = (eth + (java.lang.Integer.toString(index))) + ":"; application.Graphics.addInfRow(infName, infRow); (index)++; infRow.getScene().getWindow().sizeToScene(); }
private void addInfRow() { java.lang.String eth = "eth"; java.lang.String infName = eth + (java.lang.Integer.toString(index)); application.Graphics.addInfRow(infName, infRow); (index)++; infRow.getScene().getWindow().sizeToScene(); }
public void loadUserData(java.lang.String username, long connectionId, com.bolyartech.scram_sasl.server.ScramSaslServerProcessor processor) { java.security.SecureRandom random = new java.security.SecureRandom(); byte[] salt = new byte[24]; random.nextBytes(salt); try { com.bolyartech.scram_sasl....
public void loadUserData(java.lang.String username, long connectionId, com.bolyartech.scram_sasl.server.ScramSaslServerProcessor processor) { java.security.SecureRandom random = new java.security.SecureRandom(); byte[] salt = new byte[24]; random.nextBytes(salt); try { com.bolyartech.scram_sasl....
protected boolean isFulfilled(org.deidentifier.arx.framework.check.groupify.HashGroupifyDistribution distribution) { org.deidentifier.arx.risk.RiskModelPopulationBasedUniquenessRisk riskModel = new org.deidentifier.arx.risk.RiskModelPopulationBasedUniquenessRisk(this.populationModel, distribution.getEquivalenceClas...
protected boolean isFulfilled(org.deidentifier.arx.framework.check.groupify.HashGroupifyDistribution distribution) { org.deidentifier.arx.risk.RiskModelPopulationBasedUniquenessRisk riskModel = new org.deidentifier.arx.risk.RiskModelPopulationBasedUniquenessRisk(this.populationModel, distribution.getEquivalenceClas...
public void onSuccess(java.lang.String url) { if (isClassPageImage) { org.ednovo.gooru.application.client.gin.AppClientFactory.fireEvent(new org.ednovo.gooru.client.mvp.classpages.event.UpdateClasspageImageEvent(url)); }else { if (isImageUploadedFromUrl) { org.ednovo.gooru.client.uti...
public void onSuccess(java.lang.String url) { if (isClassPageImage) { org.ednovo.gooru.application.client.gin.AppClientFactory.fireEvent(new org.ednovo.gooru.client.mvp.classpages.event.UpdateClasspageImageEvent(url)); }else { if (isImageUploadedFromUrl) { org.ednovo.gooru.client.uti...
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); forwardPort(); invoices = new java.util.ArrayList<>(); invoicesMap = new java.util.HashMap<>(); adapter = new android.widget.ArrayAdapter<java.lang.String>(...
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); forwardPort(); invoices = new java.util.ArrayList<>(); invoicesMap = new java.util.HashMap<>(); adapter = new android.widget.ArrayAdapter(this, android.R.la...
public void onClick(android.content.DialogInterface dialog, int item) { if (item == 0) { com.clic.org.serve.Utils.ClicUtils.createPreferences(this, sharedProfiles.getCustomerId(), R.string.clic_ClientID); com.clic.org.serve.Utils.ClicUtils.createPreferences(this, sharedProfiles.getCustomerId(), R.st...
public void onClick(android.content.DialogInterface dialog, int item) { if (item == 0) { com.clic.org.serve.Utils.ClicUtils.createPreferences(this, sharedProfiles.getCustomerId(), R.string.clic_ClientID); com.clic.org.serve.Utils.ClicUtils.createPreferences(this, sharedProfiles.getCustomerId(), R.st...
public java.util.List<org.phenotips.configuration.RecordElement> getEnabledElements() { if ((this.elements) != null) { return this.elements; } java.util.List<org.phenotips.configuration.RecordElement> result = new java.util.LinkedList<>(); for (org.phenotips.configuration.RecordElement element :...
public java.util.List<org.phenotips.configuration.RecordElement> getEnabledElements() { java.util.List<org.phenotips.configuration.RecordElement> result = new java.util.LinkedList<>(); for (org.phenotips.configuration.RecordElement element : getAllElements()) { if (element.isEnabled()) { res...
public static qora.web.blog.BlogEntry getBlogEntryOpt(byte[] signature) { try { qora.transaction.ArbitraryTransaction transaction = ((qora.transaction.ArbitraryTransaction) (controller.Controller.getInstance().getTransaction(signature))); return utils.BlogUtils.getBlogEntryOpt(transaction); } ca...
public static qora.web.blog.BlogEntry getBlogEntryOpt(byte[] signature) { qora.transaction.ArbitraryTransaction transaction = null; try { transaction = ((qora.transaction.ArbitraryTransaction) (controller.Controller.getInstance().getTransaction(signature))); } catch (java.lang.Exception e) { ...
public org.apache.wicket.model.IModel<T> getModel(org.apache.wicket.model.IModel<T> itemModel) { java.lang.Object value = getPropertyValue(((T) (itemModel.getObject()))); if (value instanceof org.apache.wicket.model.IModel) { return ((org.apache.wicket.model.IModel<T>) (value)); }else { retu...
public org.apache.wicket.model.IModel<?> getModel(org.apache.wicket.model.IModel<T> itemModel) { java.lang.Object value = getPropertyValue(((T) (itemModel.getObject()))); if (value instanceof org.apache.wicket.model.IModel) { return ((org.apache.wicket.model.IModel<?>) (value)); }else { retu...
private void submitAnswer(java.util.UUID answerID) { setBuzzerTime(); if ((buzzerTime) <= (allowedTime)) try { service.sendMessage(new TrivaGameClient.BasicUserMessage(1, playerID, groupIp)); } catch (java.net.UnknownHostException e) { e.printStackTrace(); } catch...
public void submitAnswer(java.util.UUID answerID) { setBuzzerTime(); if ((buzzerTime) <= (allowedTime)) try { service.sendMessage(new TrivaGameClient.BasicUserMessage(1, playerID, groupIp)); } catch (java.net.UnknownHostException e) { e.printStackTrace(); } catch ...
public boolean checkTrigger(mage.game.events.GameEvent event, mage.game.Game game) { mage.game.stack.StackObject item = game.getState().getStack().getFirst(); if ((item instanceof mage.game.stack.StackAbility) && ((((mage.game.stack.StackAbility) (item)).getStackAbility()) instanceof mage.abilities.keyword.Cycl...
public boolean checkTrigger(mage.game.events.GameEvent event, mage.game.Game game) { if (game.getState().getStack().isEmpty()) { return false; } mage.game.stack.StackObject item = game.getState().getStack().getFirst(); if ((item instanceof mage.game.stack.StackAbility) && ((((mage.game.stack.Sta...
private static void updateIndexes(com.usda.fmsc.twotrails.data.DataAccessLayer dal) { java.util.ArrayList<com.usda.fmsc.twotrails.objects.points.TtPoint> savePoints = new java.util.ArrayList<>(); for (com.usda.fmsc.twotrails.objects.TtPolygon poly : dal.getPolygons()) { long index = 0; for (com....
private static void updateIndexes(com.usda.fmsc.twotrails.data.DataAccessLayer dal) { java.util.ArrayList<com.usda.fmsc.twotrails.objects.points.TtPoint> savePoints = new java.util.ArrayList<>(); for (com.usda.fmsc.twotrails.objects.TtPolygon poly : dal.getPolygons()) { int index = 0; for (com.u...
public void onDataChange(com.google.firebase.database.DataSnapshot dataSnapshot) { java.lang.String receiverFCMToken = dataSnapshot.getValue(java.lang.String.class); if ((receiverFCMToken != null) && (receiverFCMToken.equals(""))) { com.example.rajk.leasingmanagers.model.Notif newNotif = new com.example...
public void onDataChange(com.google.firebase.database.DataSnapshot dataSnapshot) { java.lang.String receiverFCMToken = dataSnapshot.getValue(java.lang.String.class); if ((receiverFCMToken != null) && (!(receiverFCMToken.equals("")))) { com.example.rajk.leasingmanagers.model.Notif newNotif = new com.exam...
public static void writeProperties(final java.util.Properties properties, final java.io.File file) throws java.io.IOException { if ((file.exists()) && (!(file.canWrite()))) { throw new java.io.IOException(("Could not write to properties file: " + file)); } final java.io.FileOutputStream stream = new...
public static void writeProperties(final java.util.Properties properties, final java.io.File file) throws java.io.IOException { if ((!(file.exists())) || (!(file.canWrite()))) { throw new java.io.IOException(("Could not write to properties file: " + file)); } final java.io.FileOutputStream stream = ...
private void createAnimalInProtocol(java.lang.String protocolInstanceId, java.lang.String animalId) { java.lang.String newId = "TEMP_" + (java.util.Calendar.getInstance().getTimeInMillis()); long currentDate = java.util.Calendar.getInstance().getTime().getTime(); java.lang.String query = "INSERT INTO animal...
private void createAnimalInProtocol(java.lang.String protocolInstanceId, java.lang.String animalId) { java.lang.String newId = "TEMP_" + (java.util.Calendar.getInstance().getTimeInMillis()); long currentDate = java.util.Calendar.getInstance().getTimeInMillis(); java.lang.String query = "INSERT INTO animal_i...
private void zoomTo(com.esri.core.geometry.Geometry geometry) { com.esri.core.geometry.Envelope envelope = new com.esri.core.geometry.Envelope(); geometry.queryEnvelope(envelope); int vh = map.getMeasuredHeight(); int vw = map.getMeasuredWidth(); double eh = envelope.getHeight(); double ew = env...
private void zoomTo(com.esri.core.geometry.Geometry geometry) { com.esri.core.geometry.Envelope envelope = new com.esri.core.geometry.Envelope(); geometry.queryEnvelope(envelope); int vh = map.getMeasuredHeight(); int vw = map.getMeasuredWidth(); double eh = envelope.getHeight(); double ew = env...
public void resetPieces() { if ((level.getBullpen().getPieces().size()) > 0) { level.getBullpen().getPieces().clear(); bullpenView.getChildren().clear(); numberOfBullpenPieces = 0; } }
public void resetPieces() { if (!(level.getBullpen().getPieces().isEmpty())) { level.getBullpen().getPieces().clear(); bullpenView.getChildren().clear(); numberOfBullpenPieces = 0; } }
public boolean evaluate(org.wso2.andes.server.queue.QueueEntry message) throws org.wso2.andes.kernel.AndesException { long messageID = message.getMessage().getMessageNumber(); java.lang.Integer numOfDeliveriesOfCurrentMsg = message.getAndesMessageReference().getTrackingData().getNumOfDeliveires4Channel(amqChann...
public boolean evaluate(org.wso2.andes.server.queue.QueueEntry message) throws org.wso2.andes.kernel.AndesException { long messageID = message.getMessage().getMessageNumber(); java.lang.Integer numOfDeliveriesOfCurrentMsg = message.getAndesMessageReference().getTrackingData().getNumOfDeliveires4Channel(amqChann...
public com.seniordesign.wolfpack.quizinator.Database.Rules.Rules cursorToRule(android.database.Cursor cursor) { com.seniordesign.wolfpack.quizinator.Database.Rules.Rules rule = new com.seniordesign.wolfpack.quizinator.Database.Rules.Rules(); rule.setId(cursor.getLong(0)); rule.setTimeLimit(cursor.getLong(1)...
public com.seniordesign.wolfpack.quizinator.Database.Rules.Rules cursorToRule(android.database.Cursor cursor) { com.seniordesign.wolfpack.quizinator.Database.Rules.Rules rule = new com.seniordesign.wolfpack.quizinator.Database.Rules.Rules(); rule.setId(cursor.getLong(0)); rule.setTimeLimit(cursor.getLong(1)...
private void checkForKeyByName(org.apache.cloudstack.api.command.user.ssh.RegisterSSHKeyPairCmd cmd, com.cloud.user.Account owner) throws com.cloud.exception.InvalidParameterValueException { com.cloud.user.SSHKeyPairVO existingPair = _sshKeyPairDao.findByName(owner.getAccountId(), owner.getDomainId(), cmd.getName()...
protected void checkForKeyByName(org.apache.cloudstack.api.command.user.ssh.RegisterSSHKeyPairCmd cmd, com.cloud.user.Account owner) throws com.cloud.exception.InvalidParameterValueException { com.cloud.user.SSHKeyPairVO existingPair = _sshKeyPairDao.findByName(owner.getAccountId(), owner.getDomainId(), cmd.getName...
protected void nextSet() { stop(); if ((++(setsCurrent)) <= (setsUser)) { android.util.Log.d(com.simpleworkout.timer.MainActivity.TAG, ("nextSet: setsCurrent=" + (setsCurrent))); }else { android.util.Log.e(com.simpleworkout.timer.MainActivity.TAG, ("nextSetStart: setsCurrent=" + (setsCurrent...
protected void nextSet() { if ((++(setsCurrent)) <= (setsUser)) { android.util.Log.d(com.simpleworkout.timer.MainActivity.TAG, ("nextSet: setsCurrent=" + (setsCurrent))); }else { android.util.Log.e(com.simpleworkout.timer.MainActivity.TAG, ("nextSetStart: setsCurrent=" + (setsCurrent))); } ...
void buildXmlScore() { java.util.List<com.xenoage.zong.musicxml.types.partwise.MxlPart> parts = new java.util.ArrayList<com.xenoage.zong.musicxml.types.partwise.MxlPart>(); if ((scoreDoc.getScore().getStavesCount()) > 1) java.lang.System.out.println("MORE THAN ONE STAFF"); for (int i = 0; i < (...
void buildXmlScore() { java.util.List<com.xenoage.zong.musicxml.types.partwise.MxlPart> parts = new java.util.ArrayList<com.xenoage.zong.musicxml.types.partwise.MxlPart>(); parts.add(buildPart()); java.lang.String version = "1.0"; xmlDoc = new com.xenoage.zong.musicxml.MusicXMLDocument(new io_handler.Mx...
public void koRundenLaden() { if (!(hasKOStage)) return ; koRundenDatenFromFile = ausDatei(dateiKORundenDaten); this.numberOfKORounds = koRundenDatenFromFile.size(); koRunden = new model.KORunde[numberOfKORounds]; for (int i = 0; i < (koRunden.length); i++) koRunden[i] = new mod...
public void koRundenLaden() { if (!(hasKOStage)) return ; koRundenDatenFromFile = ausDatei(dateiKORundenDaten); this.numberOfKORounds = koRundenDatenFromFile.size(); koRunden = new model.KORunde[numberOfKORounds]; for (int i = 0; i < (koRunden.length); i++) koRunden[i] = new mod...
protected boolean initialize(java.lang.Object initObject) { if (initObject instanceof org.eclipse.core.resources.IFile) { org.eclipse.core.resources.IFile originalFile = ((org.eclipse.core.resources.IFile) (initObject)); originalFileFullName = originalFile.getName(); dsProject = originalFile...
protected boolean initialize(java.lang.Object initObject) { if (initObject instanceof org.eclipse.core.resources.IFile) { originalFile = ((org.eclipse.core.resources.IFile) (initObject)); originalFileFullName = originalFile.getName(); dsProject = originalFile.getProject(); return tru...
public void run() { try { java.lang.Thread.sleep(3500); } catch (java.lang.InterruptedException e) { e.printStackTrace(); } player.setHealth(java.lang.Math.min(100, ((player.getHealth()) + (consumable.getEffectValue())))); consumable.removeDurability(); if ((consumable.getDurabil...
public void run() { try { java.lang.Thread.sleep(3500); } catch (java.lang.InterruptedException e) { e.printStackTrace(); } player.setHealth(java.lang.Math.min(100, ((player.getHealth()) + (consumable.getEffectValue())))); consumable.removeDurability(); if ((consumable.getDurabil...
public boolean onOptionsItemSelected(android.view.MenuItem item) { int id = item.getItemId(); if (id == (R.id.menu_setting)) { android.widget.Toast.makeText(this, "You hit Settings..", Toast.LENGTH_LONG).show(); return true; } if (id == (R.id.next)) { startActivity(new android.co...
public boolean onOptionsItemSelected(android.view.MenuItem item) { int id = item.getItemId(); if (id == (R.id.menu_setting)) { android.widget.Toast.makeText(this, "You hit Settings..", Toast.LENGTH_LONG).show(); return true; } return super.onOptionsItemSelected(item); }
public void insertNode(int data, Node recursiveNode) { Node node = new Node(data); if (isEmpty()) { recursiveNode = node; }else if ((node.data) < (recursiveNode.data)) { if ((recursiveNode.left) == null) recursiveNode = node; else inser...
public void insertNode(int data, Node recursiveNode) { Node node = new Node(data); if ((node.data) < (recursiveNode.data)) { if ((recursiveNode.left) == null) recursiveNode.left = node; else insertNode(node.data, recursiveNode.left); }else { if ((recu...
void draw() { if (hovering) fill(24); else noFill(); stroke(255); rect(x, y, ((width) + ((padding) * 2)), height); fill(255); noStroke(); text(text, ((x) + (padding)), (((y) + (height)) - (((height) - (fontSize)) / 2))); }
void draw() { if (hovering) fill(24); else noFill(); stroke(255); rect(x, y, width, height); fill(255); noStroke(); text(text, ((x) + (padding)), (((y) + (height)) - (((height) - (fontSize)) / 2))); }
public void onEvent(int event, java.lang.String path) { if ((event & (dev.dworks.apps.anexplorer.provider.ExternalStorageProvider.DirectoryObserver.NOTIFY_EVENTS)) != 0) { if (dev.dworks.apps.anexplorer.provider.ExternalStorageProvider.LOG_INOTIFY) android.util.Log.d(dev.dworks.apps.anexplorer.p...
public void onEvent(int event, java.lang.String path) { if ((event & (dev.dworks.apps.anexplorer.provider.ExternalStorageProvider.DirectoryObserver.NOTIFY_EVENTS)) != 0) { if (dev.dworks.apps.anexplorer.provider.ExternalStorageProvider.LOG_INOTIFY) android.util.Log.d(dev.dworks.apps.anexplorer.p...
public boolean useOffheapEntry() { if ((cacheCfg) == null) { log.info((">>>>>>> Cache cfg is null for cache: " + (cacheName))); org.apache.ignite.internal.util.typedef.internal.U.dumpThreads(null); if ((log) != null) org.apache.ignite.internal.util.typedef.internal.U.dumpThreads(...
public boolean useOffheapEntry() { if ((cacheCfg) == null) { log.info((">>>>>>> Cache cfg is null for cache: " + (cacheName))); org.apache.ignite.internal.util.typedef.internal.U.dumpThreads(log); } return ((cacheCfg.getMemoryMode()) == (org.apache.ignite.cache.CacheMemoryMode.OFFHEAP_TIERED...
private com.github.sommeri.less4j.core.ast.IndirectVariable buildFromIndirectVariable(org.antlr.v4.runtime.tree.ParseTree expressionToken, org.antlr.v4.runtime.tree.ParseTree variableToken) { if (expressionToken != null) { return new com.github.sommeri.less4j.core.ast.IndirectVariable(toToken(expressionToke...
public com.github.sommeri.less4j.core.ast.IndirectVariable buildFromIndirectVariable(org.antlr.v4.runtime.tree.ParseTree expressionToken, org.antlr.v4.runtime.tree.ParseTree variableToken) { if (expressionToken != null) { return new com.github.sommeri.less4j.core.ast.IndirectVariable(toToken(expressionToken...
public org.springframework.http.HttpEntity<com.fergoid.controller.Message> sendMessage(@com.fergoid.controller.PathVariable java.lang.String message) { java.lang.String s = java.lang.String.format("I will publish %s to %s", message, exchangeName); com.fergoid.controller.MessageSenderController.log.info(s); ...
public org.springframework.http.HttpEntity<com.fergoid.controller.Message> sendMessage(@com.fergoid.controller.PathVariable java.lang.String message) { java.lang.String s = java.lang.String.format("I will publish %s to %s", message, exchangeName); com.fergoid.controller.MessageSenderController.log.info(s); ...
java.text.SimpleDateFormat df = new java.text.SimpleDateFormat("dd/MM/yyyy"); java.util.Date date1; date1 = df.parse(date); android.util.Log.e("asdasda", (date1 + " ")); java.text.SimpleDateFormat dateFormat = new java.text.SimpleDateFormat("LLL dd, yyyy"); java.lang.String formattedDate = dateF...
java.text.SimpleDateFormat df = new java.text.SimpleDateFormat("dd/MM/yyyy"); java.util.Date date1; date1 = df.parse(date); java.text.SimpleDateFormat dateFormat = new java.text.SimpleDateFormat("LLL dd, yyyy"); java.lang.String formattedDate = dateFormat.format(date1); return date1; }
public void setActiveProject(edu.stanford.protege.metaproject.api.ProjectId projectId, org.protege.editor.owl.server.versioning.api.VersionedOWLOntology versionOntology) { registerProject(versionOntology.getOntology().getOntologyID(), projectId); registerVersionOntology(versionOntology.getOntology().getOntology...
public void setActiveProject(edu.stanford.protege.metaproject.api.ProjectId projectId, org.protege.editor.owl.server.versioning.api.VersionedOWLOntology versionOntology) { registerProject(versionOntology.getOntology().getOntologyID(), projectId); registerVersionOntology(versionOntology.getOntology().getOntology...
private ua.storchak.task.blackjack.service.blackjack.response.common.GameResponse finishGameAtDealPhase() { if (currentGameData.checkPush()) { return createEndGameResponse(GameAnswerType.PUSH); } if (currentGameData.checkDealerBlackJack()) { accountDao.subtractPlayersBet(payDataHolder.getPay...
private ua.storchak.task.blackjack.service.blackjack.response.common.GameResponse finishGameAtDealPhase() { if (currentGameData.checkDealerBlackJack()) { accountDao.subtractPlayersBet(payDataHolder.getPayData()); return createEndGameResponse(GameAnswerType.LOST); }else { accountDao.addHa...
public void moveHeadRight() { (rwHead)++; if ((rwHead) > ((content.length) - 1)) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); java.lang.String oldContent = new java.lang.String(content); sb.append(oldContent); sb.append("_"); setContent(sb.toString()); ...
public void moveHeadRight() { (rwHead)++; if ((rwHead) > ((content.length) - 1)) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); java.lang.String oldContent = new java.lang.String(content); sb.append(oldContent); sb.append("_"); setContent(sb.toString()); ...
protected boolean isStatementReady(terraingen.backend.graghlike.Statement statement) { boolean statementReady = true; java.util.List<terraingen.backend.graghlike.IInput<?>> inputList = statement.getInputs(); for (terraingen.backend.graghlike.IInput<?> input : inputList) if (((input.getOutEdge()) != ...
protected boolean isStatementReady(terraingen.backend.graghlike.Statement statement) { boolean statementReady = true; java.util.List<terraingen.backend.graghlike.IInput<?>> inputList = statement.getInputs(); for (terraingen.backend.graghlike.IInput<?> input : inputList) if (((input.getOutEdge()) == ...
public static java.util.List<com.google.gson.JsonObject> getIndex(java.lang.Long pratilipiId) throws com.pratilipi.common.exception.InsufficientAccessException, com.pratilipi.common.exception.UnexpectedServerException { com.pratilipi.data.DataAccessor dataAccessor = com.pratilipi.data.DataAccessorFactory.getDataAcc...
public static java.util.List<com.google.gson.JsonObject> getIndex(java.lang.Long pratilipiId) throws com.pratilipi.common.exception.InsufficientAccessException, com.pratilipi.common.exception.UnexpectedServerException { com.pratilipi.data.DataAccessor dataAccessor = com.pratilipi.data.DataAccessorFactory.getDataAcc...
public engine.GameStateAlteration occupyLocalBoardState(int board, int space) throws engine.LocalBoardInvalidException, engine.LocalBoardSpaceAlreadyOccupiedException { if ((checkSpace(board, space)) != (EngineValues.EMPTY)) { java.lang.System.out.println("FAIL IN OCCUPY BOARD STATE GA"); throw new ...
public engine.GameStateAlteration occupyLocalBoardState(int board, int space) throws engine.LocalBoardInvalidException, engine.LocalBoardSpaceAlreadyOccupiedException { if ((checkSpace(board, space)) != (EngineValues.EMPTY)) { java.lang.System.out.println("FAIL IN OCCUPY BOARD STATE GA"); throw new ...
private java.util.List<java.lang.String> getCorrectlySizedWords(java.util.List<java.lang.String> words, int correctSize) { if (correctSize == (-1)) { return words; } java.util.List<java.lang.String> correctlySizedWords = new java.util.ArrayList<>(); for (java.lang.String word : words) { ...
private java.util.List<java.lang.String> getCorrectlySizedWords(java.util.List<java.lang.String> words, int correctSize) { if (correctSize == 0) { return words; } java.util.List<java.lang.String> correctlySizedWords = new java.util.ArrayList<>(); for (java.lang.String word : words) { if ...
public void log(java.lang.String log, org.sonarsource.scanner.maven.bootstrap.Level level) { switch (level) { case TRACE : mavenLog.debug(log); break; case DEBUG : mavenLog.debug(log); break; case INFO : mavenLog.info(log); ...
public void log(java.lang.String log, org.sonarsource.scanner.maven.bootstrap.Level level) { switch (level) { case TRACE : case DEBUG : mavenLog.debug(log); break; case WARN : mavenLog.warn(log); break; case ERROR : mavenLog...
public java.lang.String getStringParameter(final java.lang.String parameterName) { assert parameterName != null; final java.lang.String value = properties.getProperty(parameterName); if (value == null) throw new java.lang.IllegalStateException(java.lang.String.format("%s: Parameter '%s' was not foun...
public java.lang.String getStringParameter(final java.lang.String parameterName) { assert parameterName != null; assert !(parameterName.isEmpty()); final java.lang.String value = properties.getProperty(parameterName); if (value == null) throw new java.lang.IllegalStateException(java.lang.String....
private void assertEditSuccess(int filteredTaskListIndex, int taskManagerIndex, java.lang.String detailsToEdit, seedu.address.testutil.TestTask editedTask) { commandBox.runCommand(((("edit " + filteredTaskListIndex) + " ") + detailsToEdit)); assertResultMessage(java.lang.String.format(EditCommand.MESSAGE_EDIT_T...
private void assertEditSuccess(int filteredTaskListIndex, int taskManagerIndex, java.lang.String detailsToEdit, seedu.address.testutil.TestTask editedTask) { commandBox.runCommand(((("edit " + filteredTaskListIndex) + " ") + detailsToEdit)); assertResultMessage(java.lang.String.format(EditCommand.MESSAGE_EDIT_T...
private java.util.ArrayList<java.lang.String> setupStoryline(java.util.ArrayList<java.lang.String> storyline) { storyline.add(com.sebastiangallese.kiteboardsimulatordemo2015.WelcomeFragment.class.getName()); storyline.add(com.sebastiangallese.kiteboardsimulatordemo2015.SelectGearFragment.class.getName()); s...
private java.util.ArrayList<java.lang.String> setupStoryline(java.util.ArrayList<java.lang.String> storyline) { storyline.add(com.sebastiangallese.kiteboardsimulatordemo2015.WelcomeFragment.class.getName()); storyline.add(com.sebastiangallese.kiteboardsimulatordemo2015.SelectGearFragment.class.getName()); s...
public void enterResult(com.swisstournament.sh4ke.swisstournament.Core.Player.Player p1, int won_p1, com.swisstournament.sh4ke.swisstournament.Core.Player.Player p2, int won_p2) throws java.lang.IllegalStateException, java.security.InvalidParameterException { if ((currentRound) != null) { if (currentRound.i...
public void enterResult(com.swisstournament.sh4ke.swisstournament.Core.Player.Player p1, int won_p1, com.swisstournament.sh4ke.swisstournament.Core.Player.Player p2, int won_p2) throws java.lang.IllegalStateException, java.security.InvalidParameterException { if (((currentRound) != null) && (currentRound.isStarted(...
public static long getFileSize(edu.isi.pegasus.planner.classes.PegasusFile file) { if ((edu.isi.pegasus.planner.refiner.cleanup.constraint.Utilities.sizes) == null) { long fileSize = ((long) (file.getSize())); return fileSize == (-1) ? edu.isi.pegasus.planner.refiner.cleanup.constraint.Utilities.DEF...
public static long getFileSize(edu.isi.pegasus.planner.classes.PegasusFile file) { if (((edu.isi.pegasus.planner.refiner.cleanup.constraint.Utilities.sizes) == null) || ((edu.isi.pegasus.planner.refiner.cleanup.constraint.Utilities.sizes.get(file.getLFN())) == null)) { long fileSize = ((long) (file.getSize(...
public void createBand(javax.servlet.http.HttpSession session, java.lang.String name, java.lang.String location, java.lang.String genre) throws java.lang.Exception { java.lang.String username = ((java.lang.String) (session.getAttribute("username"))); com.theironyard.entities.User user = users.findOneByUsername(...
public void createBand(javax.servlet.http.HttpSession session, @org.springframework.web.bind.annotation.RequestBody com.theironyard.entities.Band band) throws java.lang.Exception { java.lang.String username = ((java.lang.String) (session.getAttribute("username"))); com.theironyard.entities.User user = users.fin...
protected void processPhotoMetadata(java.io.File file, org.mashupmedia.model.media.photo.Photo photo) throws com.drew.imaging.ImageProcessingException, com.drew.metadata.MetadataException, java.io.IOException { com.drew.metadata.Metadata metadata = com.drew.imaging.ImageMetadataReader.readMetadata(file); java.u...
protected void processPhotoMetadata(java.io.File file, org.mashupmedia.model.media.photo.Photo photo) throws com.drew.imaging.ImageProcessingException, com.drew.metadata.MetadataException, java.io.IOException { com.drew.metadata.Metadata metadata = com.drew.imaging.ImageMetadataReader.readMetadata(file); java.u...
public double[] classify(float[][] data) { double[] output = new double[data.length]; for (javaboost.weaklearning.WeakClassifier wc : m_classifiers) { output = javaboost.util.Utils.addVectors(output, wc.classify(data)); } return output; }
public double[] classify(float[][] data) { double[] output = new double[data.length]; for (int i = 0; i < (data.length); ++i) { output[i] = 0; } for (javaboost.weaklearning.WeakClassifier wc : m_classifiers) { output = javaboost.util.Utils.addVectors(output, wc.classify(data)); } ...
public java.lang.String getBundleUrl(java.lang.String defaultAssetsUrl) { java.lang.String currentVersion = getCurrentVersion(); if (currentVersion == null) { return defaultAssetsUrl; } if (!(sp.getBoolean("firstTime", false))) { if (!(sp.getBoolean("firstTimeOk", true))) { c...
public java.lang.String getBundleUrl(java.lang.String defaultAssetsUrl) { java.lang.String currentVersion = getCurrentVersion(); if (currentVersion == null) { return defaultAssetsUrl; } if (!(sp.getBoolean("firstTime", false))) { if (!(sp.getBoolean("firstTimeOk", true))) { c...
public void configureCluster(io.subutai.core.plugincommon.api.ConfigBase configBase, io.subutai.common.environment.Environment environment) throws io.subutai.core.plugincommon.api.ClusterConfigurationException { io.subutai.plugin.appscale.impl.ClusterConfiguration.LOG.info("ClusterConfiguration :: configureCluster ...
public void configureCluster(io.subutai.core.plugincommon.api.ConfigBase configBase, io.subutai.common.environment.Environment environment) throws io.subutai.core.plugincommon.api.ClusterConfigurationException { io.subutai.plugin.appscale.impl.ClusterConfiguration.LOG.info("ClusterConfiguration :: configureCluster ...
private void checkmsg(java.lang.String msg) { com.example.mychatapp.JsonReader jsonReader = com.example.mychatapp.Json.createReader(new java.io.StringReader(msg)); com.example.mychatapp.JsonObject json = jsonReader.readObject(); jsonReader.close(); java.lang.String flag = json.getString("flag"); if ...
private void checkmsg(java.lang.String msg) { com.example.mychatapp.JsonReader jsonReader = com.example.mychatapp.Json.createReader(new java.io.StringReader(msg)); com.example.mychatapp.JsonObject json = jsonReader.readObject(); jsonReader.close(); java.lang.String flag = json.getString("flag"); if ...
public java.lang.String getPhaseString() { int phase = getPhase(); switch (phase) { case 1 : return "Buy Land Plot"; case 2 : return "Purchase Roboticons"; case 3 : return "Install Roboticons"; case 4 : return "Resource Generation";...
public java.lang.String getPhaseString() { int phase = getPhase(); switch (phase) { case 1 : return "Buy Land Plot"; case 2 : return "Purchase Roboticons"; case 3 : return "Install Roboticons"; case 5 : return "Resource Generation";...
public com.jaguarlandrover.rvi.Service copy() { com.jaguarlandrover.rvi.Service copy = new com.jaguarlandrover.rvi.Service(this.getDomain(), this.getNodeIdentifier(), this.getBundleIdentifier(), this.getServiceIdentifier()); copy.setTimeout(this.getTimeout()); copy.setParameters(this.getParameters()); r...
public com.jaguarlandrover.rvi.Service copy() { com.jaguarlandrover.rvi.Service copy = new com.jaguarlandrover.rvi.Service(this.getDomain(), this.getNodeIdentifier(), this.getServiceIdentifier()); copy.setTimeout(this.getTimeout()); copy.setParameters(this.getParameters()); return copy; }
public static play.mvc.Result moveModule(int moduleId, int to) { models.Module module = Module.find.byId(moduleId); if ((module != null) && ((module.page) != to)) { module.setPage(to); module.setModuleOrder(0); module.setSize(12); module.save(); controllers.Application.mo...
public static play.mvc.Result moveModule(int moduleId, int to) { models.Module module = Module.find.byId(moduleId); if ((module != null) && ((module.page) != to)) { module.setPage(to); module.setModuleOrder(0); module.setSize(12); module.update(); controllers.Application....
public void saveUser(week04.app.User user) throws week04.data.AtmDataException { java.util.Calendar now = java.util.Calendar.getInstance(); week04.app.User updateUser = null; java.sql.Date updateDate = new java.sql.Date(now.getTime().getTime()); if ((user.getUserId()) == (-1)) { updateUser = ins...
public void saveUser(week04.app.User user) throws week04.data.AtmDataException { java.util.Calendar now = java.util.Calendar.getInstance(); java.sql.Date updateDate = new java.sql.Date(now.getTime().getTime()); if ((user.getUserId()) == (-1)) { insertUser(user, updateDate); }else { updat...
public void disconnect(boolean expected) { lookingForInput = false; if ((listener) != null) { listener.shutdown(); } clientAliveTimer.cancel(); pixyel_backend.connection.Connection.disconnect(this, socket.hashCode()); try { socket.close(); } catch (java.lang.Exception e) { ...
public void disconnect(boolean expected) { lookingForInput = false; listener.shutdown(); clientAliveTimer.cancel(); pixyel_backend.connection.Connection.disconnect(this, socket.hashCode()); try { socket.close(); } catch (java.lang.Exception e) { pixyel_backend.Log.logError(("Coul...
private void assertDeepEqualsCustomers(java.util.List<cz.muni.fi.pv168.project.Guest> expectedList, java.util.List<cz.muni.fi.pv168.project.Guest> actualList) { for (int i = 0; i < (expectedList.size()); i++) { cz.muni.fi.pv168.project.Guest expected = expectedList.get(i); cz.muni.fi.pv168.project.G...
private void assertDeepEqualsCustomers(java.util.List<cz.muni.fi.pv168.project.Guest> expectedList, java.util.List<cz.muni.fi.pv168.project.Guest> actualList) { assertEquals(expectedList.size(), actualList.size()); for (int i = 0; i < (expectedList.size()); i++) { cz.muni.fi.pv168.project.Guest expected...
private int incr(int len, int x, int deltaX, final int xprime) { if (deltaX > 0) { return (x + deltaX) < len ? x + deltaX : xprime; }else { return (x + deltaX) > 0 ? x + deltaX : xprime; } }
private int incr(int len, int x, int deltaX, final int xprime) { if (deltaX > 0) { return (x + deltaX) < len ? x + deltaX : xprime; }else { return (x + deltaX) >= 0 ? x + deltaX : xprime; } }
public java.util.List<java.lang.Object> random(java.util.List<java.lang.Object> tempItemsList) { java.util.List<java.lang.Object> newItemsList = new java.util.ArrayList<>(); java.util.Random random = new java.util.Random(); for (int i = 0; i < (tempItemsList.size()); i++) { int randomValue = random....
public java.util.List<java.lang.Object> random(java.util.List<java.lang.Object> tempItemsList) { java.util.List<java.lang.Object> newItemsList = new java.util.ArrayList<>(); java.util.Random random = new java.util.Random(); for (int i = 0; i < (tempItemsList.size()); i++) { int randomValue = random....
public void show() { try { percorso_finale = ((CARTELLA_CONTROLLER) + (CONTROLLER)) + (ESTENSIONE_CONTROLLER); java.lang.System.out.println(percorso_finale); javafx.fxml.FXMLLoader fx = new javafx.fxml.FXMLLoader(); fx.setLocation(presentation.StageController.class.getResource(percor...
public void show() { try { percorso_finale = ((CARTELLA_CONTROLLER) + (CONTROLLER)) + (ESTENSIONE_CONTROLLER); javafx.fxml.FXMLLoader fx = new javafx.fxml.FXMLLoader(); fx.setLocation(presentation.StageController.class.getResource(percorso_finale)); presentation.StageController.stage...
private javax.ws.rs.core.Cookie authenticate() { javax.ws.rs.core.Response response = client.target(((serverUri) + (com.checkmarx.jenkins.web.client.RestClient.REST_AUTHENTICATION_URI))).request().post(javax.ws.rs.client.Entity.entity(authenticationRequest, MediaType.APPLICATION_JSON)); validateResponse(respons...
private javax.ws.rs.core.Cookie authenticate() throws java.lang.Exception { javax.ws.rs.core.Response response = client.target(((serverUri) + (com.checkmarx.jenkins.web.client.RestClient.REST_AUTHENTICATION_URI))).request().post(javax.ws.rs.client.Entity.entity(authenticationRequest, MediaType.APPLICATION_JSON)); ...
public synchronized void update() { java.util.ArrayList<nl.tudelft.pixelperfect.event.Event> discardPile = new java.util.ArrayList<nl.tudelft.pixelperfect.event.Event>(); for (nl.tudelft.pixelperfect.event.Event event : events) { long now = java.lang.System.currentTimeMillis(); if (event.isExpir...
public synchronized void update() { java.util.ArrayList<nl.tudelft.pixelperfect.event.Event> discardPile = new java.util.ArrayList<nl.tudelft.pixelperfect.event.Event>(); for (nl.tudelft.pixelperfect.event.Event event : events) { long now = java.lang.System.currentTimeMillis(); if (event.isExpir...
public void update() throws java.io.IOException { this.newTasks.clear(); this.currentTasklist.update(); for (droplauncher.util.windows.Task currTask : this.currentTasklist.getTasks()) { if (!(this.previousTasklist.getTasks().contains(currTask))) { this.newTasks.add(currTask); } ...
public void update() throws java.io.IOException { this.newTasks.clear(); this.currentTasklist.update(); for (droplauncher.util.windows.Task currTask : this.currentTasklist.getTasks()) { if (!(this.previousTasklist.getTasks().contains(currTask))) { this.newTasks.add(currTask); } ...
private static net.minecraft.server.v1_11_R1.ItemStack book() { net.minecraft.server.v1_11_R1.NBTTagCompound bookNBT = new net.minecraft.server.v1_11_R1.NBTTagCompound(); bookNBT.set("Count", new net.minecraft.server.v1_11_R1.NBTTagInt(1)); bookNBT.set("id", new net.minecraft.server.v1_11_R1.NBTTagString("m...
private static net.minecraft.server.v1_11_R1.NBTTagCompound book() { net.minecraft.server.v1_11_R1.NBTTagCompound bookNBT = new net.minecraft.server.v1_11_R1.NBTTagCompound(); bookNBT.set("Count", new net.minecraft.server.v1_11_R1.NBTTagInt(1)); bookNBT.set("id", new net.minecraft.server.v1_11_R1.NBTTagStri...
private void setShortNameInternal(final java.lang.String iShortName) { getDatabase().checkSecurity(ORule.ResourceGeneric.SCHEMA, ORole.PERMISSION_UPDATE); acquireSchemaWriteLock(); try { checkEmbedded(); java.lang.String oldName = null; if ((this.shortName) != null) oldNa...
private void setShortNameInternal(final java.lang.String iShortName) { getDatabase().checkSecurity(ORule.ResourceGeneric.SCHEMA, ORole.PERMISSION_UPDATE); acquireSchemaWriteLock(); try { checkEmbedded(); java.lang.String oldName = null; if ((this.shortName) != null) oldNa...
public static void main(java.lang.String[] args) { try { edu.umass.ckc.wo.db.DbPedagogy p = new edu.umass.ckc.wo.db.DbPedagogy(); edu.umass.ckc.wo.db.DbPedagogy.buildMapOfOldIds = true; edu.umass.ckc.wo.db.DbPedagogy.conn = edu.umass.ckc.wo.db.DbUtil.getAConnection("localhost"); edu....
public static void main(java.lang.String[] args) { try { edu.umass.ckc.wo.db.DbPedagogy p = new edu.umass.ckc.wo.db.DbPedagogy(); edu.umass.ckc.wo.db.DbPedagogy.buildMapOfOldIds = true; edu.umass.ckc.wo.db.DbPedagogy.conn = edu.umass.ckc.wo.db.DbUtil.getAConnection("localhost"); edu....
protected boolean isInvokeInit() { if (((instruction) == null) || (!(instruction.getOpcode().canInitializeReference()))) { return false; } org.jf.dexlib2.analysis.ReferenceInstruction instruction = ((org.jf.dexlib2.analysis.ReferenceInstruction) (this.instruction)); org.jf.dexlib2.iface.referenc...
protected boolean isInvokeInit() { if (!(instruction.getOpcode().canInitializeReference())) { return false; } org.jf.dexlib2.analysis.ReferenceInstruction instruction = ((org.jf.dexlib2.analysis.ReferenceInstruction) (this.instruction)); org.jf.dexlib2.iface.reference.Reference reference = instr...
public void testExpression() throws java.lang.Exception { java.lang.String[] inputs = new java.lang.String[]{ "1+2" , "5+pi" , "2+x" , "x+2-2" , "-x+2" , "xx+2" , "2pi+3pi" , "2e+3pi" , "2x+3x" }; for (java.lang.String x : inputs) { Expression expression = new Expression(x); java.lang.System.out...
public void testExpression() throws java.lang.Exception { java.lang.String[] inputs = new java.lang.String[]{ "1+2" , "5+pi" , "2+x" , "x+2-2" , "-x+2" , "xx+2" , "2pi+3pi" , "2e+3pi" , "2x+3x" }; for (java.lang.String x : inputs) { Expression expression = new Expression(x); java.lang.System.out...
public void onDrag(org.rstudio.studio.client.workbench.views.source.editors.text.MouseDragEvent event) { double initialWidth = initialWidth_; double xDiff = event.getTotalDelta().getMouseX(); double newSize = initialWidth + xDiff; double maxSize = (editorPanel_.getOffsetWidth()) + 1; double clamped ...
public void onDrag(org.rstudio.studio.client.workbench.views.source.editors.text.MouseDragEvent event) { double initialWidth = initialWidth_; double xDiff = event.getTotalDelta().getMouseX(); double newSize = initialWidth - xDiff; double maxSize = (editorPanel_.getOffsetWidth()) + 1; double clamped ...
public void write(com.mindlin.jsast.tree.CompilationUnitTree tree, java.io.Writer output) throws java.io.IOException { try { tree.accept(this, new com.mindlin.jsast.impl.writer.JSWriterImpl.WriterHelper(output)); } catch (java.lang.RuntimeException e) { throw ((java.io.IOException) (e.getCause()...
public void write(com.mindlin.jsast.tree.CompilationUnitTree tree, java.io.Writer output) throws java.io.IOException { try { tree.accept(this, new com.mindlin.jsast.impl.writer.JSWriterImpl.WriterHelper(output)); } catch (java.lang.RuntimeException e) { if ((e.getCause()) != null) th...
protected void onSaveInstanceState(android.os.Bundle outState) { android.util.Log.d(edu.pdx.ece558_fall15.alex_elizabeth.businesscardcontact.ContactListActivity.TAG, "onSaveInstanceState"); removeDetailFragmentUI(); super.onSaveInstanceState(outState); if ((mCurrContactEntry) != null) { outState...
protected void onSaveInstanceState(android.os.Bundle outState) { android.util.Log.d(edu.pdx.ece558_fall15.alex_elizabeth.businesscardcontact.ContactListActivity.TAG, "onSaveInstanceState"); removeDetailFragmentUI(); super.onSaveInstanceState(outState); if ((mCurrContactEntry) != null) { outState...
public void onClick(android.view.View v) { if ((getSupportFragmentManager().getBackStackEntryCount()) > 1) { getSupportFragmentManager().popBackStack(); restoreTitle(); }else if (drawer != null) { if (!(drawer.isDrawerOpen(GravityCompat.START))) { drawer.openD...
public void onClick(android.view.View v) { if ((getSupportFragmentManager().getBackStackEntryCount()) > 1) { getSupportFragmentManager().popBackStack(); }else if (drawer != null) { if (!(drawer.isDrawerOpen(GravityCompat.START))) { drawer.openDrawer(GravityCompat.STAR...
public void confirmationResult(java.lang.Boolean confirmation) { confirmAnswer.dismiss(); if (currentQuestion.article.equals(answerSpinner.getSelectedItem().toString())) { android.widget.Toast.makeText(this, "Correct", Toast.LENGTH_SHORT).show(); (CURRENT_SCORE)++; bit.gardits1.languaget...
public void confirmationResult(java.lang.Boolean confirmation) { confirmAnswer.dismiss(); if (confirmation) { if (currentQuestion.article.equals(answerSpinner.getSelectedItem().toString())) { android.widget.Toast.makeText(this, "Correct", Toast.LENGTH_SHORT).show(); (CURRENT_SCOR...
public void setItemAmount(int amount, int index) { itemAmounts[index] = amount; if (amount == (-1)) { vendStackHandler.getStackInSlot(index).stackSize = 1; }else { vendStackHandler.getStackInSlot(index).stackSize = itemAmounts[index]; } }
public void setItemAmount(int amount, int index) { if ((vendStackHandler.getStackInSlot(index)) != null) { itemAmounts[index] = amount; if (amount == (-1)) { vendStackHandler.getStackInSlot(index).stackSize = 1; }else { vendStackHandler.getStackInSlot(index).stackSize...
public java.util.List<com.java4.des.entity.Exam> getAll(javax.servlet.http.HttpSession session, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) { java.util.List<com.java4.des.entity.Exam> list = new java.util.ArrayList<com.java4.des.entity.Exam>(); try { l...
public java.util.List<com.java4.des.entity.Exam> getAll(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) { java.util.List<com.java4.des.entity.Exam> list = new java.util.ArrayList<com.java4.des.entity.Exam>(); try { list = examService.getAllExams(); } c...
public void onConnected(android.os.Bundle bundle) { mLastLocation = LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient); if ((mLastLocation) != null) { if (!(android.location.Geocoder.isPresent())) { return ; } mapFragment.getMapAsync(this); } }
public void onConnected(android.os.Bundle bundle) { mLastLocation = LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient); if ((mLastLocation) != null) { if (!(android.location.Geocoder.isPresent())) { return ; } if ((mapFragment) != null) { mapFragm...
public void onActivityResult(int requestCode, int resultCode, android.content.Intent data) { super.onActivityResult(requestCode, resultCode, data); if ((requestCode == (com.thibaudperso.sonycamera.timelapse.fragments.CameraSettingsFragment.TAKE_PICTURE_ACTIVITY_RESULT)) && ((mCameraIO) != null)) { livev...
public void onActivityResult(int requestCode, int resultCode, android.content.Intent data) { super.onActivityResult(requestCode, resultCode, data); if ((requestCode == (com.thibaudperso.sonycamera.timelapse.fragments.CameraSettingsFragment.TAKE_PICTURE_ACTIVITY_RESULT)) && ((mCameraIO) != null)) { start...
public void returnFlagText(java.lang.String input) { java.lang.String[] flagTextSplitted = input.split(";"); setFlag(flagTextSplitted[0]); setText(flagTextSplitted[1]); for (int i = 2; i < (flagTextSplitted.length); i++) { setText(((getText()) + (flagTextSplitted[i]))); } }
public void returnFlagText(java.lang.String input) { java.lang.String[] flagTextSplitted = input.split(";"); setFlag(flagTextSplitted[0]); setText(flagTextSplitted[1]); for (int i = 1; i < (flagTextSplitted.length); i++) { setText(((getText()) + (flagTextSplitted[i]))); } }