buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
private static void testAssociationRegistry() { ch.liquidmind.inflection.association.AssociationRegistry registry = ch.liquidmind.inflection.association.AssociationRegistry.instance(); registry.scan(new java.lang.String[]{ (ch.liquidmind.inflection.test.association.model.Vehicle.class.getPackage().getName()) + ...
private static void testAssociationRegistry() { ch.liquidmind.inflection.association.AssociationRegistry registry = ch.liquidmind.inflection.association.AssociationRegistry.instance(); registry.scan(new java.lang.String[]{ (ch.liquidmind.inflection.test.association.model.Vehicle.class.getPackage().getName()) + ...
private void listenForHalfMode(boolean listen) { if ((!(mUseAccelerometer)) || (mDozeParameters.getFullMode())) return ; if (listen && (mDozeParameters.getHalfMode())) { mProximitySensorManager.enable(); }else { mProximitySensorManager.disable(true); } }
private void listenForHalfMode(boolean listen) { if ((!(mUseAccelerometer)) || (mDozeParameters.getFullMode())) return ; if (listen && (mDozeParameters.getHalfMode())) { if ((mProximitySensorManager) != null) mProximitySensorManager.enable(); }else { if ((mP...
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); final namtran.codejavagiaithuat.SortView sortView = ((namtran.codejavagiaithuat.SortView) (findViewById(R.id.sortView))); sortView.setListValue(new int[]{ 5 , 6 , 2...
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); final namtran.codejavagiaithuat.SortView sortView = ((namtran.codejavagiaithuat.SortView) (findViewById(R.id.sortView))); sortView.setListValue(new int[]{ 1 , 2 , 5...
public static final java.lang.String getCurrentDate() { long now = java.lang.System.currentTimeMillis(); if ((now - (utils.FastHttpDateFormat.currentDateGenerated)) > 1000) { synchronized(utils.FastHttpDateFormat.format) { if ((now - (utils.FastHttpDateFormat.currentDateGenerated)) > 1000) {...
public static final java.lang.String getCurrentDate() { long now = java.lang.System.currentTimeMillis(); if ((now - (utils.FastHttpDateFormat.currentDateGenerated)) > 1000) { synchronized(utils.FastHttpDateFormat.format) { if ((now - (utils.FastHttpDateFormat.currentDateGenerated)) > 1000) {...
public void validateSubscriberDetailsRequestParams(java.lang.String msisdn, java.lang.String operator, java.lang.String circle, java.lang.String callId) throws org.motechproject.nms.util.helper.DataValidationException { msisdn = org.motechproject.nms.util.helper.ParseDataHelper.validateAndTrimMsisdn(Constants.CALLI...
public void validateSubscriberDetailsRequestParams(java.lang.String msisdn, java.lang.String operator, java.lang.String circle, java.lang.String callId) throws org.motechproject.nms.util.helper.DataValidationException { org.motechproject.nms.util.helper.ParseDataHelper.validateAndParseString(Constants.CALLING_NUMBE...
public void init() throws java.lang.Exception { seedu.task.MainApp.logger.info("=============================[ Initializing MESS ]==========================="); super.init(); config = initConfig(getApplicationParameter("config")); storage = new seedu.task.storage.StorageManager(config.getTaskManagerFile...
public void init() throws java.lang.Exception { seedu.task.MainApp.logger.info("=============================[ Initializing MESS ]==========================="); super.init(); config = initConfig(getApplicationParameter("config")); storage = new seedu.task.storage.StorageManager(config); userPrefs = ...
public void pauseGame() { mIsPaused = true; com.shakeup.setofthree.practicegame.DialogFragment pauseFragment = new com.shakeup.setofthree.pausemenu.PauseFragment(); pauseFragment.setCancelable(false); pauseFragment.setTargetFragment(this, 1); pauseFragment.setStyle(com.shakeup.setofthree.practicegam...
public void pauseGame() { if (!(mIsPaused)) { mIsPaused = true; com.shakeup.setofthree.practicegame.DialogFragment pauseFragment = new com.shakeup.setofthree.pausemenu.PauseFragment(); pauseFragment.setCancelable(false); pauseFragment.setTargetFragment(this, 1); pauseFragment...
public void touchUp(com.badlogic.gdx.scenes.scene2d.InputEvent event, float x, float y, int pointer, int button) { currentLevel.clearLevel(); nextLevelImage.remove(); congratsImage.remove(); com.mygdx.magicappgame.Scenes.Hud.addLevel(); hud.resetTime(); hud.resetBox(); currentLevel = current...
public void touchUp(com.badlogic.gdx.scenes.scene2d.InputEvent event, float x, float y, int pointer, int button) { currentLevel.clearLevel(); nextLevelImage.remove(); congratsImage.remove(); hud.resetBox(); currentLevel = currentLevel.getNextLevel(); moveAllowed = true; refresh(); }
public void intercept(com.snaptech.emissiodemo2.WebService.Common.RequestFacade request) { android.content.SharedPreferences sharedpreferences = com.snaptech.emissiodemo2.custom.App.getAppContext().getSharedPreferences(Constants.LOGIN_PREFS_NAME, Context.MODE_PRIVATE); java.lang.String accessToken = sharedprefe...
public void intercept(com.snaptech.emissiodemo2.WebService.Common.RequestFacade request) { android.content.SharedPreferences sharedpreferences = com.snaptech.emissiodemo2.custom.App.getAppContext().getSharedPreferences(Constants.LOGIN_PREFS_NAME, Context.MODE_PRIVATE); java.lang.String accessToken = sharedprefe...
public void update(simulation.Simulator simulator) { if (simulator == null) this.simulator = simulator; preys = ((simulation.environment.CooperativeForagingEnvironment) (simulator.getEnvironment())).getNumberOfPreys(); teamSize = simulator.getRobots().size(); preysCaptured = ((simulation.en...
public void update(simulation.Simulator simulator) { preys = ((simulation.environment.CooperativeForagingEnvironment) (simulator.getEnvironment())).getNumberOfPreys(); teamSize = simulator.getRobots().size(); preysCaptured = ((simulation.environment.CooperativeForagingEnvironment) (simulator.getEnvironment(...
public static boolean canCreate(org.bukkit.event.inventory.InventoryClickEvent e) { org.bukkit.inventory.ItemStack item = e.getCursor(); if (0 == (e.getView().convertSlot(e.getRawSlot()))) { if (de.oninoni.OnionPower.Items.Batterod.check(item)) { return true; } } return false...
public static boolean canCreate(org.bukkit.event.inventory.InventoryClickEvent e) { org.bukkit.inventory.ItemStack item = e.getCursor(); return (1 == (e.getView().convertSlot(e.getRawSlot()))) && (de.oninoni.OnionPower.Items.Batterod.check(item)); }
private void processSave() { final java.lang.String imageFilename = cyclerService.saveCurrentImage(); if ((imageFilename == null) || (imageFilename.isEmpty())) { Log.error("Image NOT saved: null filename returned!"); }else { Log.info("Image saved: [{}]", cyclerService.saveCurrentImage()); ...
private void processSave() { final java.lang.String imageFilename = cyclerService.saveCurrentImage(); if ((imageFilename == null) || (imageFilename.isEmpty())) { Log.error("Image NOT saved: null filename returned!"); }else { Log.info("Image saved: [{}]", imageFilename); } }
public void update(nl.tudelft.semgroup4.GameContainer container, int delta) throws nl.tudelft.semgroup4.SlickException { for (nl.tudelft.semgroup4.GameObject collidesWithA : objectList) { for (nl.tudelft.semgroup4.GameObject collidesWithB : nl.tudelft.semgroup4.collision.CollisionHelper.collideObjectWithLis...
public void update(nl.tudelft.semgroup4.GameContainer container, int delta) throws nl.tudelft.semgroup4.SlickException { for (nl.tudelft.semgroup4.GameObject collidesWithA : objectList) { for (nl.tudelft.semgroup4.GameObject collidesWithB : nl.tudelft.semgroup4.collision.CollisionHelper.collideObjectWithLis...
private static void resetR(org.apache.kylin.common.persistence.ResourceStore store, java.lang.String path) throws java.io.IOException { java.util.ArrayList<java.lang.String> children = store.listResources(path); if (children == null) { if ((org.apache.kylin.common.persistence.ResourceTool.matchFilter(pa...
private static void resetR(org.apache.kylin.common.persistence.ResourceStore store, java.lang.String path) throws java.io.IOException { java.util.ArrayList<java.lang.String> children = store.listResources(path); if (children == null) { if (org.apache.kylin.common.persistence.ResourceTool.matchFilter(pat...
protected void onDraw(android.graphics.Canvas canvas) { if ((getCount()) != (oldCount)) { int height = (getChildAt(0).getHeight()) + 1; oldCount = getCount(); params = getLayoutParams(); params.height = (getChildAt(0).getHeight()) * 5; setLayoutParams(params); } super...
protected void onDraw(android.graphics.Canvas canvas) { if (((getCount()) != (oldCount)) && ((getCount()) > 0)) { int height = (getChildAt(0).getHeight()) + 1; oldCount = getCount(); params = getLayoutParams(); params.height = (getChildAt(0).getHeight()) * 5; setLayoutParams(...
public void setIteratorName(java.lang.String iteratorName) { if (!(this.iteratorName.equals(iteratorName))) { java.lang.String oldValue = this.iteratorName; this.iteratorName = iteratorName; getPropertyChangeSupport().firePropertyChange(org.openflexo.foundation.fml.controlgraph.IterationActi...
public void setIteratorName(java.lang.String iteratorName) { if (((this.iteratorName) == null) || (!(this.iteratorName.equals(iteratorName)))) { java.lang.String oldValue = this.iteratorName; this.iteratorName = iteratorName; getPropertyChangeSupport().firePropertyChange(org.openflexo.founda...
public void npcLoop(float time) { { lastThinkUpdateTime += time; lastTickUpdateTime += time; if ((lastTickUpdateTime) > 50.0F) { this.update(lastTickUpdateTime); lastTickUpdateTime = 0; } if ((lastThinkUpdateTime) > 500.0F) { chase = false;...
public void npcLoop(float time) { lastThinkUpdateTime += time; lastTickUpdateTime += time; if ((lastTickUpdateTime) > 50.0F) { this.update(lastTickUpdateTime); lastTickUpdateTime = 0; } if ((lastThinkUpdateTime) > 500.0F) { chase = false; bt.update(lastThinkUpdateTime...
protected void onPostExecute(java.lang.Void result) { if (result != null) { }else { mProgressDialog.dismiss(); java.io.File pdfFile = new java.io.File((((android.os.Environment.getExternalStorageDirectory()) + "/Sircle/") + (fileName))); if (pdfFile.exists()) { pdfView.fromFi...
protected void onPostExecute(java.lang.Void result) { if (result == null) { }else { mProgressDialog.dismiss(); java.io.File pdfFile = new java.io.File((((android.os.Environment.getExternalStorageDirectory()) + "/Sircle/") + (fileName))); if (pdfFile.exists()) { pdfView.fromFi...
private boolean verifyRSAToken(java.lang.String token, java.lang.String algorithmCode, java.lang.String[] pemKeys) { for (java.lang.String pemKey : pemKeys) { try { com.auth0.jwt.algorithms.Algorithm algorithm = pl.surreal.finance.transaction.auth.SignAlgorithm.getAlgorithm(algorithmCode, pemKey...
private boolean verifyRSAToken(java.lang.String token, java.lang.String algorithmCode, java.lang.String[] pemKeys) { for (java.lang.String pemKey : pemKeys) { try { com.auth0.jwt.algorithms.Algorithm algorithm = pl.surreal.finance.transaction.auth.SignAlgorithm.getAlgorithm(algorithmCode, pemKey...
public void addData(double eval, int newDepth, boolean isScore) { if (isScore) { (visits)++; sum_utility += eval; sum_sq += eval * eval; depth = java.lang.Math.max(depth, newDepth); }else (heuristicVisits)++; }
public void addData(double eval, int newDepth, boolean isScore) { if (isScore) { (visits)++; sum_utility += eval; sum_sq += eval * eval; depth = java.lang.Math.max(depth, newDepth); } (heuristicVisits)++; }
public void onEvent(final com.exacttarget.etpushsdk.event.ReadyAimFireInitCompletedEvent event) { android.util.Log.d(com.leadclic.MCPluginApplication.TAG, "onReadyAimFireInitCompletedEvent start"); com.exacttarget.etpushsdk.ETPush etPush = null; try { etPush = event.getEtPush(); etPush.addTa...
public void onEvent(final com.exacttarget.etpushsdk.event.ReadyAimFireInitCompletedEvent event) { android.util.Log.d(com.leadclic.MCPluginApplication.TAG, "onReadyAimFireInitCompletedEvent start"); com.exacttarget.etpushsdk.ETPush etPush = null; try { etPush = event.getEtPush(); etPush.addTa...
public void goPreviousPosition() { switch (positionManager.getCurrentLocatePositionType()) { case SUB_NODE : positionManager.setCurrentLocatePositionType(LocatePosition.NODE); screenFactory.show(com.mygdx.enums.ScreenEnum.findScreenEnum(positionManager.getCurrentNodeType().toString()...
public void goPreviousPosition() { switch (positionManager.getCurrentLocatePositionType()) { case SUB_NODE : positionManager.setCurrentLocatePositionType(LocatePosition.NODE); screenFactory.show(com.mygdx.enums.ScreenEnum.findScreenEnum(positionManager.getCurrentNodeType().toString()...
public void run() { if ((pref.getInt("hasMessage", 0)) == 1) { android.util.Log.d("MESSAGE", pref.getString("message", "")); com.oop.projectgroup10.studychatroom.ChatRooms.PlaceholderFragment.populateReceivedMsg(pref.getString("message", ""), pref.getString("userGroup", ""), getActivity(), java.lang...
public void run() { if ((pref.getInt("hasMessage", 0)) == 1) { android.util.Log.d("MESSAGE", pref.getString("message", "")); populateReceivedMsg(pref.getString("message", ""), pref.getString("userGroup", ""), getActivity(), java.lang.Integer.valueOf(pref.getString("groupUserIcon", ""))); edi...
public net.vicp.lylab.core.model.Message callRpcServer(net.vicp.lylab.core.model.RPCMessage message) { if (closed.get()) throw new net.vicp.lylab.core.exceptions.LYException("Client closed, did you initialize() Caller?"); net.vicp.lylab.utils.internet.SyncSession session = pool.accessOne(); byt...
public net.vicp.lylab.core.model.Message callRpcServer(net.vicp.lylab.core.model.RPCMessage message) { if (closed.get()) throw new net.vicp.lylab.core.exceptions.LYException("Client closed, did you initialize() Caller?"); net.vicp.lylab.utils.internet.SyncSession session = pool.accessOne(); byt...
public void editMessage(messages.BotTextMessage msg, java.lang.String channelTo, java.lang.String messageId) { org.telegram.telegrambots.api.methods.updatingmessages.EditMessageText text = new org.telegram.telegrambots.api.methods.updatingmessages.EditMessageText(); text.setChatId(channelTo); text.setMessag...
public void editMessage(messages.BotTextMessage msg, java.lang.String channelTo, java.lang.String messageId) { org.telegram.telegrambots.api.methods.updatingmessages.EditMessageText text = new org.telegram.telegrambots.api.methods.updatingmessages.EditMessageText(); text.setChatId(channelTo); text.setMessag...
public void write(java.util.List<com.srotya.sidewinder.core.storage.DataPoint> dps) throws java.io.IOException { write.lock(); for (java.util.Iterator<com.srotya.sidewinder.core.storage.DataPoint> itr = dps.iterator(); itr.hasNext();) { com.srotya.sidewinder.core.storage.DataPoint dp = itr.next(); ...
public void write(java.util.List<com.srotya.sidewinder.core.storage.DataPoint> dps) throws java.io.IOException { write.lock(); try { for (java.util.Iterator<com.srotya.sidewinder.core.storage.DataPoint> itr = dps.iterator(); itr.hasNext();) { com.srotya.sidewinder.core.storage.DataPoint dp =...
java.lang.String printDate(java.lang.String date) { if ((date.length()) != 8) return null; java.lang.String day; java.lang.String month; java.lang.String year; day = date.substring(6, 8); month = date.substring(4, 6); year = date.substring(0, 4); java.lang.String prettyDate ...
java.lang.String printDate(java.lang.String date) { if ((date.length()) != 8) return null; java.lang.String day; java.lang.String month; java.lang.String year; day = date.substring(6, 8); month = date.substring(4, 6); year = date.substring(0, 4); java.lang.String prettyDate ...
public int compareTo(org.globus.cog.abstraction.coaster.service.job.manager.Cpu o) { org.globus.cog.abstraction.coaster.service.job.manager.TimeInterval diff = timelast.subtract(o.timelast); if ((diff.getMilliseconds()) == 0) { long l = (java.lang.System.identityHashCode(this)) - (java.lang.System.ident...
public int compareTo(org.globus.cog.abstraction.coaster.service.job.manager.Cpu o) { org.globus.cog.abstraction.coaster.service.job.manager.TimeInterval diff = timelast.subtract(o.timelast); if ((diff.getMilliseconds()) == 0) { long l = (java.lang.System.identityHashCode(this)) - (java.lang.System.ident...
private void lockedCheckBoxActionPerformed(java.awt.event.ActionEvent evt) { boolean locked = lockedCheckBox.isSelected(); edu.oregonstate.carto.mapcomposer.Layer layer = getSelectedMapLayer(); if (layer != null) { this.updating = true; try { layer.setLocked(locked); ...
private void lockedCheckBoxActionPerformed(java.awt.event.ActionEvent evt) { boolean locked = lockedCheckBox.isSelected(); edu.oregonstate.carto.mapcomposer.Layer layer = getSelectedMapLayer(); if (layer != null) { this.updating = true; try { layer.setLocked(locked); ...
public void addLoan(loans.Loan loan) throws java.lang.Exception { if (((loans.size()) - 1) == (getMaxBorrowing())) { throw new error.SubscriberMaxLimitException(((name) + " has reached their borrowing limit.")); } loan.setSubscriber(this); loans.put(loan.getId(), loan); }
public void addLoan(loans.Loan loan) throws java.lang.Exception { if ((loans.size()) == (getMaxBorrowing())) { throw new error.SubscriberMaxLimitException(((name) + " has reached their borrowing limit.")); } loan.setSubscriber(this); loans.put(loan.getId(), loan); }
public void exportFiles() throws java.io.IOException { java.io.File fileExport = new java.io.File(exportFolder); java.lang.System.out.println(fileExport.getAbsolutePath()); java.lang.System.out.println(sourcePath); if (!(fileExport.exists())) { fileExport.mkdirs(); } java.io.File[] folde...
public void exportFiles() throws java.io.IOException { java.io.File fileExport = new java.io.File(exportFolder); java.lang.System.out.println(fileExport.getAbsolutePath()); java.lang.System.out.println(sourcePath); if (!(fileExport.exists())) { fileExport.mkdirs(); } java.io.File[] folde...
private int checkCards(int pValue1, int pValue2, int pSize) { int tmpSum = (fieldDeck[0][pValue1].getValue()) + (fieldDeck[0][pValue2].getValue()); for (int i = (Value2) + 1; i < pSize; i++) { if ((tmpSum + (fieldDeck[0][i].getValue)) == 21) { return i; } } return 0; }
private int checkCards(int pValue1, int pValue2, int pSize) { int tmpSum = (fieldDeck[0][pValue1].getValue()) + (fieldDeck[0][pValue2].getValue()); for (int i = pValue2 + 1; i < pSize; i++) { if ((tmpSum + (fieldDeck[0][i].getValue())) == 21) { return i; } } return 0; }
public java.lang.String dumpColor(int grid, int index) { de.htwg.sa.nmm.model.IToken t = gamefield.field(grid, index).getToken(); if (t == null) { return ""; }else if ((t.color()) == (java.awt.Color.WHITE)) { return "WHITE"; } return "BLACK"; }
public java.lang.String dumpColor(int grid, int index) { de.htwg.sa.nmm.model.IToken t = gamefield.field(grid, index).getToken(); if (t == null) { return ""; }else if (t.color().equals(java.awt.Color.WHITE)) { return "WHITE"; } return "BLACK"; }
public long saveUpgrade(int _id, int rank) { long id = 0; if (rank == 1) { android.database.sqlite.SQLiteDatabase db = dbHelper.getWritableDatabase(); android.content.ContentValues values = new android.content.ContentValues(); values.put("_id", _id); values.put("rank", rank); ...
public long saveUpgrade(int _id, int rank, android.database.sqlite.SQLiteDatabase db) { long id = 0; if (rank == 1) { android.content.ContentValues values = new android.content.ContentValues(); values.put("_id", _id); values.put("rank", rank); id = db.insert(hu.uniobuda.nik.bethe...
public static java.util.List<com.github.entityseeder.EntitySeed> run(final com.github.entityseeder.EntitySeeder<? extends com.github.entityseeder.EntitySeed> seeder, final int n) { java.util.List<com.github.entityseeder.EntitySeed> seeds = new java.util.ArrayList<com.github.entityseeder.EntitySeed>(); for (int ...
public static java.util.List<com.github.entityseeder.EntitySeed> run(final com.github.entityseeder.EntitySeeder<? extends com.github.entityseeder.EntitySeed> seeder, final int n) { java.util.List<com.github.entityseeder.EntitySeed> seeds = new java.util.ArrayList<com.github.entityseeder.EntitySeed>(); for (int ...
public void actionPerformed(java.awt.event.ActionEvent e) { if ((motorcycles_added) == false) addMotorcycles(); motorcycles_added = true; if ((cars_added) == false) addCars(); cars_added = true; velo = 100; score = 0; round = 100; y_frog = 510; x_frog = 380;...
public void actionPerformed(java.awt.event.ActionEvent e) { if ((motorcycles_added) == false) addMotorcycles(); motorcycles_added = true; velo = 100; score = 0; round = 100; y_frog = 510; x_frog = 380; points.setLabel(("Score: " + (score))); }
public void onClick(android.view.View v) { edu.uw.lbaker7.localtravelapp.PlaceItem placeToDelete = adapter.getItem(position); adapter.remove(placeToDelete); deleteButton.setVisibility(View.INVISIBLE); android.util.Log.v(edu.uw.lbaker7.localtravelapp.fragments.ItineraryDetailFragment.TAG, ("I'm deleting ...
public void onClick(android.view.View v) { edu.uw.lbaker7.localtravelapp.PlaceItem placeToDelete = adapter.getItem(position); adapter.remove(placeToDelete); deleteButton.setVisibility(View.INVISIBLE); edu.uw.lbaker7.localtravelapp.fragments.ItineraryDetailFragment.firebaseController.deletePlaceFromItine...
public boolean saveModel(org.eclipse.emf.ecore.EObject model, java.lang.String filename, java.lang.String cwd, org.franca.core.framework.IImportedModelProvider importedModels) { java.lang.System.out.println((((("Saving Franca model: root file is " + filename) + ", ") + (importedModels.getNModels())) + " imported mo...
public boolean saveModel(org.eclipse.emf.ecore.EObject model, java.lang.String filename, java.lang.String cwd, org.franca.core.framework.IImportedModelProvider importedModels) { java.lang.System.out.println((((("Saving Franca model: root file is " + filename) + ", ") + (importedModels != null ? importedModels.getNM...
public void onUpgradeViews(@javax.annotation.Nonnull org.dbtools.android.domain.AndroidDatabase androidDatabase, int oldVersion, int newVersion) { android.util.Log.i(org.dbtools.android.domain.AndroidDatabaseBaseManager.TAG, ((((("Upgrading database VIEWS [" + (androidDatabase.getName())) + "] from version ") + old...
public void onUpgradeViews(@javax.annotation.Nonnull org.dbtools.android.domain.AndroidDatabase androidDatabase, int oldVersion, int newVersion) { if (oldVersion != newVersion) { android.util.Log.i(org.dbtools.android.domain.AndroidDatabaseBaseManager.TAG, ((((("Upgrading database VIEWS [" + (androidDatabas...
protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { fr.pizzeria.model.Livreur livreur = new fr.pizzeria.model.Livreur(); livreur.setNom(request.getParameter("nom")); livreur.setPren...
protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { fr.pizzeria.model.Livreur livreur = new fr.pizzeria.model.Livreur(); livreur.setNom(request.getParameter("nom")); livreur.setPren...
public void createFrame() { weatherFrame = new javax.swing.JFrame(); weatherFrame.setSize(WIDTH, HEIGHT); weatherFrame.setDefaultCloseOperation(javax.swing.JFrame.DISPOSE_ON_CLOSE); weatherFrame.setLocationRelativeTo(null); weatherFrame.setResizable(false); weatherFrame.setUndecorated(true); ...
public void createFrame() { weatherFrame = new javax.swing.JFrame(); weatherFrame.setSize(WIDTH, HEIGHT); weatherFrame.setDefaultCloseOperation(javax.swing.JFrame.DISPOSE_ON_CLOSE); weatherFrame.setLocationRelativeTo(null); weatherFrame.setResizable(false); weatherFrame.setUndecorated(true); ...
public java.lang.String createToken(net.poulp.security.model.UserDto user) { return net.poulp.security.service.impl.Jwts.builder().signWith(SignatureAlgorithm.HS512, secret).setExpiration(getTokenExpirationDate(false)).setIssuedAt(new java.util.Date()).setClaims(buildUserClaims(user)).compact(); }
public java.lang.String createToken(net.poulp.security.model.UserDto user) { return net.poulp.security.service.impl.Jwts.builder().signWith(SignatureAlgorithm.HS512, secret).setClaims(buildUserClaims(user)).setExpiration(getTokenExpirationDate(false)).setIssuedAt(new java.util.Date()).compact(); }
public void moveCollection(@org.springframework.web.bind.annotation.PathVariable(value = COURSE_ID) final java.lang.String courseId, @org.springframework.web.bind.annotation.PathVariable(value = UNIT_ID) final java.lang.String unitId, @org.springframework.web.bind.annotation.PathVariable(value = LESSON_ID) final java.l...
public void moveCollection(@org.springframework.web.bind.annotation.RequestBody final java.lang.String data, @org.springframework.web.bind.annotation.PathVariable(value = COURSE_ID) final java.lang.String courseId, @org.springframework.web.bind.annotation.PathVariable(value = UNIT_ID) final java.lang.String unitId, @or...
public void handle(javafx.scene.input.MouseEvent event) { if (((gm) instanceof networking.GameManagerNetwork) && (((networking.GameManagerNetwork) (gm)).isYourRound())) { java.lang.System.err.println("PUOI TIRARE IL DADO"); int lancioCorrente = core.Dado.lanciaDadi(); animazione(lancioCorren...
public void handle(javafx.scene.input.MouseEvent event) { if (((gm) instanceof networking.GameManagerNetwork) && (((networking.GameManagerNetwork) (gm)).isYourRound())) { java.lang.System.err.println("PUOI TIRARE IL DADO"); int lancioCorrente = core.Dado.lanciaDadi(); animazione(lancioCorren...
public void insertHead(swingGUI.VideoTape tape) { swingGUI.DoubleNode node = new swingGUI.DoubleNode(tape); if ((head) == null) { head = node; tail = node; current = head; }else { head.setPrev(node); node.setNext(head); head = node; current = head; ...
public void insertHead(swingGUI.VideoTape tape) { swingGUI.DoubleNode node = new swingGUI.DoubleNode(tape); if ((head) == null) { head = node; tail = node; current = head; (count)++; }else { head.setPrev(node); node.setNext(head); head = node; ...
public int getGap(int from) { if (blocked) { return 0; } for (int i = from + 1; i < (cars.length); i++) { if ((cars[i]) != null) { return (i - from) - 1; } } return ((cars.length) - from) - 1; }
public int getGap(int from) { if ((blocked) && (from == (-1))) { return 0; } for (int i = from + 1; i < (cars.length); i++) { if ((cars[i]) != null) { return (i - from) - 1; } } return ((cars.length) - from) - 1; }
public int compare(org.apache.hadoop.io.WritableComparable w1, org.apache.hadoop.io.WritableComparable w2) { org.apache.hadoop.io.Text t1 = ((org.apache.hadoop.io.Text) (w1)); org.apache.hadoop.io.Text t2 = ((org.apache.hadoop.io.Text) (w2)); return t1.toString().split("_")[0].compareTo(t2.toString().split(...
public int compare(org.apache.hadoop.io.WritableComparable w1, org.apache.hadoop.io.WritableComparable w2) { org.apache.hadoop.io.Text t1 = ((org.apache.hadoop.io.Text) (w1)); org.apache.hadoop.io.Text t2 = ((org.apache.hadoop.io.Text) (w2)); return t1.toString().split("_")[0].compareTo(t2.toString().split(...
private long getDOBTimeInMillis(java.lang.String dob) { java.text.SimpleDateFormat formatter = new java.text.SimpleDateFormat("dd-MM-yyyy"); java.util.Date d = null; try { d = formatter.parse(dob); } catch (java.text.ParseException e) { return 0; } return d.getTime(); }
private long getDOBTimeInMillis(java.lang.String dob) { @android.annotation.SuppressLint(value = "SimpleDateFormat") java.text.SimpleDateFormat formatter = new java.text.SimpleDateFormat("dd-MM-yyyy"); java.util.Date d; try { d = formatter.parse(dob); } catch (java.text.ParseException e) { ...
public void setOauth(java.lang.String oauth) { if (((oauth = oauth.trim()).length()) < 30) throw new IllegalOauthKey(("OAUTH token is the wrong length. Need: 30 Received: " + (oauth.length()))); if (oauth.substring(0, 6).equals("oauth:")) oauth = oauth.substring(6); this.oauth = oa...
public void setOauth(java.lang.String oauth) { if (((oauth = oauth.trim()).length()) != 30) throw new IllegalOauthKey(("OAUTH token is the wrong length. Need: 30 Received: " + (oauth.length()))); this.oauth = oauth; }
public boolean checkPerfectNumber(int num) { if (num <= 1) return false; int ans = 0; for (long i = 1; (i * i) <= num; i++) if ((num % i) == 0) { if (i < num) ans += i; if ((num / i) < num) ans += num / i; ...
public boolean checkPerfectNumber(int num) { if (num <= 1) return false; int ans = 0; for (long i = 1; (i * i) <= num; i++) if ((num % i) == 0) { if (i < num) ans += i; if ((i != (num / i)) && ((num / i) < num)) ans +=...
private void unpinAll(org.vanilladb.core.storage.tx.Transaction tx) { java.util.Collection<org.vanilladb.core.storage.buffer.BufferMgr.PinnedBuffer> pinnedBuffs = pinnedBuffers.values(); if (pinnedBuffs != null) { for (org.vanilladb.core.storage.buffer.BufferMgr.PinnedBuffer pinnedBuff : pinnedBuffs) ...
private void unpinAll(org.vanilladb.core.storage.tx.Transaction tx) { java.util.Set<org.vanilladb.core.storage.buffer.BufferMgr.PinnedBuffer> pinnedBuffs = new java.util.HashSet<org.vanilladb.core.storage.buffer.BufferMgr.PinnedBuffer>(pinnedBuffers.values()); if (pinnedBuffs != null) { for (org.vanilla...
private void createHerbResultIntent(int result) { android.content.Intent resultIntent = new android.content.Intent(); switch (result) { case org.chromium.chrome.browser.customtabs.CustomTabActivity.RESULT_STOPPED : resultIntent.setAction(Intent.ACTION_VIEW); resultIntent.setData(...
private void createHerbResultIntent(int result) { if ((getActivityTab()) == null) return ; android.content.Intent resultIntent = new android.content.Intent(); switch (result) { case org.chromium.chrome.browser.customtabs.CustomTabActivity.RESULT_STOPPED : resultIntent.setAct...
public void setStiction(double f_stiction) { if ((tauDamping) == null) { tauDamping = new us.ihmc.robotics.dataStructures.variable.DoubleYoVariable(("tau_damp_" + (this.name)), "PinJoint damping torque", registry); } if ((this.f_stiction) == null) { this.f_stiction = new us.ihmc.robotics.dat...
public void setStiction(double f_stiction) { if ((tauDamping) == null) { tauDamping = new us.ihmc.robotics.dataStructures.variable.DoubleYoVariable(("tau_damp_" + (this.name)), "PinJoint damping torque", registry); } if ((this.f_stiction) == null) { this.f_stiction = new us.ihmc.robotics.dat...
public void visitMainTask_TwoGlobalDefinedVariable_CorrectPythonScript() throws java.lang.Exception { java.lang.String a = ((((((((((((("" + (de.fhg.iais.roberta.syntax.codegen.AstToEv3PythonVisitorTest.IMPORTS)) + (de.fhg.iais.roberta.syntax.codegen.AstToEv3PythonVisitorTest.GLOBALS)) + "\nElement = 0\n") + "Eleme...
public void visitMainTask_TwoGlobalDefinedVariable_CorrectPythonScript() throws java.lang.Exception { java.lang.String a = ((((((((((((((("" + (de.fhg.iais.roberta.syntax.codegen.AstToEv3PythonVisitorTest.IMPORTS)) + (de.fhg.iais.roberta.syntax.codegen.AstToEv3PythonVisitorTest.GLOBALS)) + "\nElement = 0\n") + "Ele...
public void onPageBreak(boolean isHorizontalPageBreak, boolean isFixedlayoutPageBreak) { if (!isHorizontalPageBreak) { pageRowCount = 0; if (addAfterBreak) { next(); addAfterBreak = false; }else if (isFixedlayoutPageBreak) { next(); ...
public void onPageBreak(boolean isHorizontalPageBreak, boolean isFixedlayoutPageBreak) { if (!isHorizontalPageBreak) { pageRowCount = 0; if (addAfterBreak) { next(); addAfterBreak = false; }else { if (isFixedlayoutPageBreak) { next(); ...
public void addString(java.lang.String str) { com.moddamage.parsing.IDataProvider<java.lang.String> msgDP = com.moddamage.parsing.DataProvider.parse(info, java.lang.String.class, str); if (msgDP != null) { messages.add(msgDP); com.moddamage.LogUtil.info(msgDP.toString().replaceAll("%", "%%")); ...
public void addString(java.lang.String str) { com.moddamage.parsing.IDataProvider<java.lang.String> msgDP = com.moddamage.parsing.DataProvider.parse(info, java.lang.String.class, str); if (msgDP != null) { messages.add(msgDP); com.moddamage.LogUtil.info(msgDP.toString()); } }
public static void findWeight() { java.lang.String openid = session.get("openid"); openid = "ob1R-uD5CgT-x-FEdtMIgAWYr4Vs"; java.lang.String sql = ("select new beans.PregwBean(w.wDate,w.wValue) from GestationalWeight w where w.userId = '" + openid) + "' order by w.wDate desc"; java.util.List<beans.Preg...
public static void findWeight() { java.lang.String openid = session.get("openid"); java.lang.String sql = ("select new beans.PregwBean(w.wDate,w.wValue) from GestationalWeight w where w.userId = '" + openid) + "' order by w.wDate desc"; java.util.List<beans.PregwBean> bean = play.db.jpa.JPA.em().createQuer...
public common.constants.GameStatus getState() { if (!(isGameOver())) { return common.constants.GameStatus.RUNNING; } if (isStalemate()) { return common.constants.GameStatus.STALEMATE; } utilties.models.Game.LOGGER.warning("Cannot determine which player has won easily from the getStat...
public common.constants.GameStatus getState() { if (!(isGameOver())) { return common.constants.GameStatus.RUNNING; } if (isStalemate()) { return common.constants.GameStatus.STALEMATE; } utilties.models.Game.LOGGER.warning("Cannot determine which player has won easily from the getStat...
public int getCount() { android.util.Log.d("** SearchAdapter **", (("getCount(count = " + ((mCursor) == null ? 0 : mCursor.getCount())) + ")")); if ((mCursor) == null) { return 0; } int maxVisible = getContext().getResources().getInteger(R.integer.max_visible_memorials); return (mCursor.getC...
public int getCount() { if ((mCursor) == null) { return 0; } int maxVisible = getContext().getResources().getInteger(R.integer.max_visible_memorials); return (mCursor.getCount()) <= maxVisible ? mCursor.getCount() : maxVisible; }
public void onSuccess(ro.pub.cs.vmchecker.client.model.ResultInfo[] result) { container.clear(); processResults(result); listenTableEvents(); widget.displayInfo(user, assignments, teamResultsInfo, studentResultsInfo); container.add(((ro.pub.cs.vmchecker.client.presenter.Widget) (widget))); event...
public void onSuccess(ro.pub.cs.vmchecker.client.model.ResultInfo[] result) { container.clear(); processResults(result); widget.displayInfo(user, assignments, teamResultsInfo, studentResultsInfo); container.add(((ro.pub.cs.vmchecker.client.presenter.Widget) (widget))); eventBus.fireEvent(new ro.pub....
public java.lang.Long getNextId() { java.lang.Long lastID = 0L; for (com.tech.models.entities.Message vLookUp : repository.findAll()) { java.lang.System.out.println(lastID); if (((vLookUp.getId()) - lastID) == 1) { lastID = vLookUp.getId(); }else { return lastID +...
public java.lang.Long getNextId() { java.lang.Long lastID = 0L; for (com.tech.models.entities.Message vLookUp : repository.findAll()) { if (((vLookUp.getId()) - lastID) == 1) { lastID = vLookUp.getId(); }else { return lastID + 1; } } return lastID + 1L; }
public void release(final com.orientechnologies.orient.client.binary.OChannelBinaryAsynchClient conn) { final com.orientechnologies.orient.client.remote.ORemoteConnectionPool pool = connections.get(conn.getServerURL()); if (pool != null) { if (!(conn.isConnected())) { com.orientechnologies.c...
public void release(final com.orientechnologies.orient.client.binary.OChannelBinaryAsynchClient conn) { if (conn == null) return ; final com.orientechnologies.orient.client.remote.ORemoteConnectionPool pool = connections.get(conn.getServerURL()); if (pool != null) { if (!(conn.isConnect...
private java.lang.String getTeamDeckXML(int teamId, int classId) { java.util.ArrayList<java.lang.Integer> teamIds = edu.virginia.bookmark.DatabaseManager.loadTeamStudentIds(teamId, classId); java.lang.String xml = "<team_deck>"; for (int studentId : teamIds) { java.lang.String deck = getStudentDeckX...
private java.lang.String getTeamDeckXML(int teamId, int classId) { java.util.ArrayList<java.lang.Integer> teamIds = edu.virginia.bookmark.DatabaseManager.loadTeamStudentIds(teamId); java.lang.String xml = "<team_deck>"; for (int studentId : teamIds) { java.lang.String deck = getStudentDeckXML(studen...
public void openDetachedPreview() { closeDetachedPreview(); detachedPreviewWindow = new org.jwildfire.create.tina.swing.DetachedPreviewWindow(); detachedPreviewController = new org.jwildfire.create.tina.swing.DetachedPreviewController(detachedPreviewWindow, data.toggleDetachedPreviewButton); detachedPre...
public void openDetachedPreview() { closeDetachedPreview(); detachedPreviewWindow = new org.jwildfire.create.tina.swing.DetachedPreviewWindow(); detachedPreviewController = new org.jwildfire.create.tina.swing.DetachedPreviewController(this, detachedPreviewWindow, data.toggleDetachedPreviewButton); detac...
protected java.lang.Void doInBackground(java.lang.Void... params) { try { if ((status) == "isExist") { doc_userinfo = org.jsoup.Jsoup.connect(url).get(); }else if ((status) == "crawl") { doc_status = org.jsoup.Jsoup.connect(url).get(); }else { ...
protected java.lang.Void doInBackground(java.lang.Void... params) { try { if (status.equals("isExist")) { doc_userinfo = org.jsoup.Jsoup.connect(url).get(); }else if (status.equals("crawl")) { doc_status = org.jsoup.Jsoup.connect(url).get(); }else ...
private void addTokenInCookie(java.lang.String token, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) { javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("token", token); cookie.setPath("/"); if ("https".equals(request.getScheme())) { co...
private void addTokenInCookie(java.lang.String token, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) { javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("token", token); cookie.setHttpOnly(true); cookie.setPath("/"); if ("https".equals(requ...
public void onDateSet(android.widget.DatePicker view, int year, int monthOfYear, int dayOfMonth) { ((android.widget.EditText) (alertView.findViewById(R.id.et_od))).setText(((((dayOfMonth + ".") + monthOfYear) + ".") + year)); }
public void onDateSet(android.widget.DatePicker view, int year, int monthOfYear, int dayOfMonth) { ((android.widget.EditText) (alertView.findViewById(R.id.et_od))).setText(((((dayOfMonth + ".") + (monthOfYear + 1)) + ".") + year)); }
public void onClick(android.view.View v) { android.util.Log.i(edu.umkc.burrise.gpsexample.MainActivity.TAG, "Starting onClick..."); if (((android.support.v4.content.ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION)) != (android.content.pm.PackageManager.PERMISSION_GRANTED)) || ...
public void onClick(android.view.View v) { android.util.Log.i(edu.umkc.burrise.gpsexample.MainActivity.TAG, "Starting onClick..."); if (((android.support.v4.content.ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION)) != (android.content.pm.PackageManager.PERMISSION_GRANTED)) || ...
public void insert(int element) { this.Heap[(++(this.size))] = element; int current = this.size; while ((this.Heap[current]) < (this.Heap[this.parent(current)])) { this.swap(current, this.parent(current)); current = this.parent(current); } }
public void insert(int element) { this.Heap[((this.size)++)] = element; int current = (this.size) - 1; while ((this.Heap[current]) < (this.Heap[this.parent(current)])) { this.swap(current, this.parent(current)); current = this.parent(current); } }
private void addChapters(java.util.List<org.gdg.frisbee.android.api.model.Chapter> chapterList) { java.util.Collections.sort(chapterList, mLocationComparator); mSpinnerAdapter.clear(); mSpinnerAdapter.addAll(chapterList); mChapterSpinner.setAdapter(mSpinnerAdapter); if ((mSelectedChapter) != null) {...
private void addChapters(java.util.List<org.gdg.frisbee.android.api.model.Chapter> chapterList) { if ((mChapterSpinner) == null) { return ; } java.util.Collections.sort(chapterList, mLocationComparator); mSpinnerAdapter.clear(); mSpinnerAdapter.addAll(chapterList); mChapterSpinner.setAda...
public java.util.List<com.softdesign.devintensive.data.storage.models.User> getUserListByName(java.lang.String query) { java.util.List<com.softdesign.devintensive.data.storage.models.User> userList = new java.util.ArrayList<>(); try { userList = mDaoSession.queryBuilder(com.softdesign.devintensive.data....
public java.util.List<com.softdesign.devintensive.data.storage.models.User> getUserListByName(java.lang.String query) { java.util.List<com.softdesign.devintensive.data.storage.models.User> userList = new java.util.ArrayList<>(); try { userList = mDaoSession.queryBuilder(com.softdesign.devintensive.data....
public void updateList() { newsAdapter.updateAllList(); newsAdapter.notifyDataSetChanged(); if ((((((lexpressDone) && (defiDone)) && (ionDone)) && (teleplusDone)) && (cinqplusDone)) && (mauricienDone)) { progressBar.setVisibility(View.GONE); swipeRefreshLayout.setRefreshing(false); l...
public void updateList() { if ((((((lexpressDone) && (defiDone)) && (ionDone)) && (teleplusDone)) && (cinqplusDone)) && (mauricienDone)) { newsAdapter.updateAllList(); newsAdapter.notifyDataSetChanged(); progressBar.setVisibility(View.GONE); swipeRefreshLayout.setRefreshing(false); ...
public java.lang.Double getLongitude() { if (((((this.longitude) == null) && ((this.latD) != null)) && ((this.latM) != null)) && ((this.latS) != null)) { longitude = this.longD; longitude += (this.longM) / 60; longitude += (this.longS) / 3600; } return longitude; }
public java.lang.Double getLongitude() { if (((((this.longitude) == null) && ((this.longD) != null)) && ((this.longM) != null)) && ((this.longS) != null)) { longitude = this.longD; longitude += (this.longM) / 60; longitude += (this.longS) / 3600; } return longitude; }
public java.lang.String loginForm(org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request) { model.addAttribute("user", new com.teamtreehouse.domain.User()); try { java.lang.Object flash = request.getSession().getAttribute("flash"); model.addAttribute("flash", flash); ...
public java.lang.String loginForm(org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request) { model.addAttribute("user", new com.teamtreehouse.domain.User()); java.lang.Object flash = request.getSession().getAttribute("flash"); if (flash == null) { return "login"; }else ...
public void onItemClick(android.widget.AdapterView<?> parent, android.view.View view, int position, long id) { mBtAdapter.cancelDiscovery(); final android.bluetooth.BluetoothDevice device = ((android.bluetooth.BluetoothDevice) (parent.getItemAtPosition(position))); final android.content.Context context = ge...
public void onItemClick(android.widget.AdapterView<?> parent, android.view.View view, int position, long id) { mBtAdapter.cancelDiscovery(); final android.bluetooth.BluetoothDevice device = ((android.bluetooth.BluetoothDevice) (parent.getItemAtPosition(position))); final android.content.Context context = ge...
public void onTextChanged(java.lang.CharSequence s, int start, int before, int count) { if ((!(com.jobviewer.util.Utils.isNullOrEmpty(top_man_edittext.getText().toString()))) && (!(com.jobviewer.util.Utils.isNullOrEmpty(bottom_man1_edittext.getText().toString())))) { enableNextButton(true); } }
public void onTextChanged(java.lang.CharSequence s, int start, int before, int count) { if ((!(com.jobviewer.util.Utils.isNullOrEmpty(top_man_edittext.getText().toString()))) && (!(com.jobviewer.util.Utils.isNullOrEmpty(bottom_man1_edittext.getText().toString())))) { enableNextButton(true); }else { ...
private void sendMessage(java.lang.String message, java.util.ArrayList<android.bluetooth.BluetoothDevice> mDevices) { if ((message != null) && ((message.length()) > 0)) { mCallback.sendText(message); mChatService.sendMessage(message, mDevices); mOutStringBuffer.setLength(0); mOutEdit...
private void sendMessage(java.lang.String message, java.util.ArrayList<android.bluetooth.BluetoothDevice> mDevices) { if ((message != null) && ((message.length()) > 0)) { mChatService.sendMessage(message, mDevices); mOutStringBuffer.setLength(0); mOutEditText.setText(mOutStringBuffer); }...
public java.lang.Object visitExprStmt(kalang.ast.ExprStmt node) { visitChildren(node); if (!((node.getExpr()) instanceof kalang.ast.AssignExpr)) { if (((node.getExpr().getType()) != null) && (!(Types.VOID_TYPE.equals(node.getExpr().getType())))) { pop(node.getExpr().getType()); } ...
public java.lang.Object visitExprStmt(kalang.ast.ExprStmt node) { visitChildren(node); if (((node.getExpr().getType()) != null) && (!(Types.VOID_TYPE.equals(node.getExpr().getType())))) { pop(node.getExpr().getType()); } return null; }
public static void visualizeListOfGraphs(java.util.List<edu.uci.ics.jung.graph.DirectedGraph<java.lang.Integer, main.jung.MyEdge>> graphList, java.lang.String prefix) { int num = 0; for (edu.uci.ics.jung.graph.DirectedGraph<java.lang.Integer, main.jung.MyEdge> temp : graphList) { main.jung.GraphQueriesA...
public void visualizeListOfGraphs(java.util.List<edu.uci.ics.jung.graph.DirectedGraph<java.lang.Integer, main.jung.MyEdge>> graphList, java.lang.String prefix) { int num = 0; for (edu.uci.ics.jung.graph.DirectedGraph<java.lang.Integer, main.jung.MyEdge> temp : graphList) { visualizeGraph(temp, (prefix +...
public void start(javafx.stage.Stage primaryStage) { nl.joshuaslik.tudelft.SEM.utility.GameLog.constructor(); nl.joshuaslik.tudelft.SEM.Launcher.loadView(getClass().getResource("/data/gui/pages/MainMenu.fxml")); javafx.scene.Scene scene = new javafx.scene.Scene(nl.joshuaslik.tudelft.SEM.Launcher.bp); pr...
public void start(javafx.stage.Stage primaryStage) { nl.joshuaslik.tudelft.SEM.utility.GameLog.constructor(); nl.joshuaslik.tudelft.SEM.Launcher.loadView(getClass().getResource("/data/gui/pages/MainMenu.fxml")); javafx.scene.Scene scene = new javafx.scene.Scene(nl.joshuaslik.tudelft.SEM.Launcher.bp); pr...
public void runInternal() throws org.apache.hive.service.cli.HiveSQLException { setState(OperationState.RUNNING); try { if (isAuthV2Enabled()) { authorizeMetaGets(HiveOperationType.GET_CATALOGS, null); setState(OperationState.FINISHED); } } catch (org.apache.hive.serv...
public void runInternal() throws org.apache.hive.service.cli.HiveSQLException { setState(OperationState.RUNNING); try { if (isAuthV2Enabled()) { authorizeMetaGets(HiveOperationType.GET_CATALOGS, null); } setState(OperationState.FINISHED); } catch (org.apache.hive.service....
public void onScroll(android.widget.AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) { if (((firstVisibleItem + visibleItemCount) >= totalItemCount) && (!(isLoading))) { android.util.Log.d("GridView scroll: ", ((((("" + firstVisibleItem) + " ") + visibleItemCount) + " ") + t...
public void onScroll(android.widget.AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) { if (((firstVisibleItem + visibleItemCount) >= totalItemCount) && (!(isLoading))) { android.util.Log.d("GridView scroll: ", ((((("" + firstVisibleItem) + " ") + visibleItemCount) + " ") + t...
public void onResult(com.mobvoi.android.wearable.DataApi.DataItemResult result) { if (result.getStatus().isSuccess()) { java.lang.String h = "" + (com.mobvoi.android.test.Utils.getHashCode(result.getDataItem().getData())); if (h.equals(fh)) { com.mobvoi.android.test.Utils.setText(this, "...
public void onResult(com.mobvoi.android.wearable.DataApi.DataItemResult result) { if (result.getStatus().isSuccess()) { java.lang.String h = "" + (com.mobvoi.android.test.Utils.getHashCode(result.getDataItem().getData())); if (h.equals(fh)) { com.mobvoi.android.test.Utils.setText(this, "...
protected uk.ac.rdg.resc.edal.dataset.GridDataSource openGridDataSource() throws java.io.IOException { ucar.nc2.dataset.NetcdfDataset nc; try { nc = uk.ac.rdg.resc.edal.dataset.cdm.CdmGridDatasetFactory.openAndAggregateDataset(location); } catch (uk.ac.rdg.resc.edal.exceptions.EdalException e) { ...
protected uk.ac.rdg.resc.edal.dataset.GridDataSource openGridDataSource() throws java.io.IOException { ucar.nc2.dataset.NetcdfDataset nc; try { nc = uk.ac.rdg.resc.edal.dataset.cdm.CdmGridDatasetFactory.openAndAggregateDataset(location); } catch (uk.ac.rdg.resc.edal.exceptions.EdalException e) { ...
private static org.apache.ignite.tests.pojos.ProductOrder generateRandomOrder(long productId, int saltedNumber) { java.util.Calendar cl = java.util.Calendar.getInstance(); cl.set(java.util.Calendar.YEAR, org.apache.ignite.tests.utils.TestsHelper.ORDERS_YEAR); cl.set(java.util.Calendar.MONTH, org.apache.igni...
private static org.apache.ignite.tests.pojos.ProductOrder generateRandomOrder(long productId, int saltedNumber) { java.util.Calendar cl = java.util.Calendar.getInstance(); cl.set(java.util.Calendar.YEAR, org.apache.ignite.tests.utils.TestsHelper.ORDERS_YEAR); cl.set(java.util.Calendar.MONTH, org.apache.igni...
boolean FeatureIsInBlock(caverunner.Sprite Troll, caverunner.BlockTypes feature) { caverunner.Block thisBlock; thisBlock = getBlockActorIsIn(Troll.Location); switch (feature) { case LADDER : if ((thisBlock.Type) == (BlockTypes.LADDER)) return true; ca...
boolean FeatureIsInBlock(caverunner.Sprite Troll, caverunner.BlockTypes feature) { caverunner.Block thisBlock; thisBlock = getBlockActorIsIn(Troll.Location); switch (feature) { case LADDER : if ((thisBlock.Type) == (BlockTypes.LADDER)) return true; ...
public static void main(java.lang.String[] args) { java.lang.Integer[] arr = new java.lang.Integer[]{ 12 , 34 , 56 , 78 , 98 , 23 }; java.util.List<java.lang.Integer> aList = new java.util.ArrayList<java.lang.Integer>(java.util.Arrays.asList(arr)); java.lang.System.out.println(arr[2]); aList.set(2, 22);...
public static void main(java.lang.String[] args) { java.lang.Integer[] arr = new java.lang.Integer[]{ 12 , 34 , 56 , 78 , 98 , 23 }; java.util.List<java.lang.Integer> aList = java.util.Arrays.asList(arr); java.lang.System.out.println(arr[2]); aList.set(2, 22); java.lang.System.out.println(arr[2]); }
public static boolean validateSSCMURL(java.lang.String URL) { java.util.regex.Matcher changeMatcher = hudson.scm.SSCMUtils.URI_PATTERN.matcher(URL); boolean result = false; if ((changeMatcher.find()) && ((changeMatcher.groupCount()) == 4)) { result = true; } return result; }
public static boolean validateSSCMURL(java.lang.String URL) { if (URL == null) return false; java.util.regex.Matcher changeMatcher = hudson.scm.SSCMUtils.URI_PATTERN.matcher(URL); boolean result = false; if ((changeMatcher.find()) && ((changeMatcher.groupCount()) == 4)) { result = t...
public static int getConsecutiveProfitCount(germes.backtest.BackTestResult backTestResult) throws germes.core.exceptions.TradingException { int result = 0; int index = 0; for (germes.core.entities.position.Order order : backTestResult.getOrders()) { if ((order.getResult()) > 0) index++; ...
public static int getConsecutiveProfitCount(germes.backtest.BackTestResult backTestResult) throws germes.core.exceptions.TradingException { int result = 0; int index = 0; for (germes.core.entities.position.Order order : backTestResult.getOrders()) { if ((order.getResult()) > 0) { index++...
public static void main(java.lang.String[] args) throws java.lang.Exception { java.lang.String outputPath = ""; try { com.parse.QueryParser.loadData(outputPath, args[0], args[1]); } catch (java.lang.Exception e) { java.lang.System.out.println(e.getMessage()); e.printStackTrace(); ...
public static void main(java.lang.String[] args) throws java.lang.Exception { java.lang.String outputPath = ""; try { com.parse.QueryParser.loadData(outputPath, args[0]); } catch (java.lang.Exception e) { java.lang.System.out.println(e.getMessage()); e.printStackTrace(); } }
public void findTracks() { java.io.File file = new java.io.File(com.tim10011001.untitled.data.workes.Worker.sdRoot, "Music"); for (java.io.File f : file.listFiles()) { if (f.getAbsolutePath().endsWith(".mp3")) com.tim10011001.untitled.data.workes.Worker.tracksUri.add(f.toURI()); ...
public void findTracks() { java.io.File file = new java.io.File(com.tim10011001.untitled.data.workes.Worker.sdRoot, "Music"); if ((file.listFiles().length) != 0) { for (java.io.File f : file.listFiles()) { if (f.getAbsolutePath().endsWith(".mp3")) com.tim10011001.untitled.dat...
public void mustParseCreatedPacket() { com.offbynull.portmapper.natpmp.messages.UdpMappingNatPmpRequest origReq = new com.offbynull.portmapper.natpmp.messages.UdpMappingNatPmpRequest(61938, 62452, 4294967295L); byte[] buffer = origReq.dump(); com.offbynull.portmapper.natpmp.messages.UdpMappingNatPmpRequest ...
public void mustParseCreatedPacket() { com.offbynull.portmapper.natpmp.messages.UdpMappingNatPmpRequest origReq = new com.offbynull.portmapper.natpmp.messages.UdpMappingNatPmpRequest(61938, 62452, 4294967295L); byte[] buffer = origReq.dump(); com.offbynull.portmapper.natpmp.messages.UdpMappingNatPmpRequest ...
public void postHandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.Object handler, org.springframework.web.servlet.ModelAndView view) { org.springframework.security.web.csrf.CsrfToken token = ((org.springframework.security.web.csrf.CsrfToken) (request.ge...
public void postHandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.Object handler, org.springframework.web.servlet.ModelAndView view) { org.springframework.security.web.csrf.CsrfToken token = ((org.springframework.security.web.csrf.CsrfToken) (request.ge...
public java.lang.String visitSubscriptlist(lessa.ExprParser.SubscriptlistContext ctx) { java.lang.System.out.println("subscriptlist -> subscript ( ',' subscript )* "); java.lang.String ret = visit(ctx.subscript(0)); int i = 1; while ((ctx.subscript(i)) != null) { ret += "," + (visit(ctx.subscrip...
public java.lang.String visitSubscriptlist(lessa.ExprParser.SubscriptlistContext ctx) { java.lang.System.out.println("subscriptlist -> subscript ( ',' subscript )* "); java.lang.String ret = visit(ctx.subscript(0)); int i = 1; while ((ctx.subscript(i)) != null) { ret += "," + (visit(ctx.subscrip...
public int getUserCount() { java.lang.String sql = (("SELECT COUNT(*) FROM " + (com.michael.database.CookieTable.TABLE)) + "GROUP BY ") + (com.michael.database.CookieTable.COLUMN_USER); open(); android.database.Cursor cursor = database.rawQuery(sql, null); cursor.moveToFirst(); int count = cursor.ge...
public int getUserCount() { java.lang.String sql = (("SELECT COUNT(*) FROM " + (com.michael.database.CookieTable.TABLE)) + "GROUP BY ") + (com.michael.database.CookieTable.COLUMN_USER); android.database.Cursor cursor = database.rawQuery(sql, null); cursor.moveToFirst(); int count = cursor.getInt(0); ...
public com.wang.michael.online_shop.model.User save(com.wang.michael.online_shop.model.User user) { if ((user.getId()) != null) { com.wang.michael.online_shop.model.User oldUser = userRepository.findOne(user.getId()); user.setCreatedDateTime(oldUser.getCreatedDateTime()); user.setUpdatedDate...
public com.wang.michael.online_shop.model.User save(com.wang.michael.online_shop.model.User user) { if ((user.getId()) != null) { com.wang.michael.online_shop.model.User oldUser = userRepository.findOne(user.getId()); user.setCreatedDateTime(oldUser.getCreatedDateTime()); user.setUpdatedDate...
public static <C extends org.forgerock.opendj.config.ConfigurationClient, S extends org.forgerock.opendj.config.Configuration> org.forgerock.opendj.config.dsconfig.CreateSubCommandHandler<C, S> create(com.forgerock.opendj.cli.SubCommandArgumentParser parser, org.forgerock.opendj.config.ManagedObjectPath<?, ?> p, org.fo...
public static <C extends org.forgerock.opendj.config.ConfigurationClient, S extends org.forgerock.opendj.config.Configuration> org.forgerock.opendj.config.dsconfig.CreateSubCommandHandler<C, S> create(com.forgerock.opendj.cli.SubCommandArgumentParser parser, org.forgerock.opendj.config.ManagedObjectPath<?, ?> p, org.fo...
protected com.arangodb.velocystream.Request getDocumentRequest(final java.lang.String key, final com.arangodb.model.DocumentReadOptions options) { final com.arangodb.velocystream.Request request = new com.arangodb.velocystream.Request(db, com.arangodb.velocystream.RequestType.GET, executor.createPath(ArangoDBConsta...
protected com.arangodb.velocystream.Request getDocumentRequest(final java.lang.String key, final com.arangodb.model.DocumentReadOptions options) { final com.arangodb.velocystream.Request request = new com.arangodb.velocystream.Request(db, com.arangodb.velocystream.RequestType.GET, executor.createPath(ArangoDBConsta...
public static net.sf.sahi.client.Browser getBrowser() { java.lang.String browserName = reservaCanchas.common.Config.init().getProperty("browser.name"); java.lang.String browserHost = reservaCanchas.common.Config.init().getProperty("browser.host"); java.lang.String browserPort = reservaCanchas.common.Config....
public static net.sf.sahi.client.Browser getBrowser() { java.lang.String browserName = reservaCanchas.common.Config.getConfig().getProperty("browser.name"); java.lang.String browserHost = reservaCanchas.common.Config.getConfig().getProperty("browser.host"); java.lang.String browserPort = reservaCanchas.comm...
public boolean onLongClick(android.view.View v) { android.content.SharedPreferences sharedPref = v.getContext().getSharedPreferences("Ride_id", Context.MODE_APPEND); android.content.SharedPreferences.Editor editor = sharedPref.edit(); android.widget.Toast.makeText(v.getContext(), "RIDES DELETED", Toast.LENG...
public boolean onLongClick(android.view.View v) { android.content.SharedPreferences sharedPref = v.getContext().getSharedPreferences("Ride_id", Context.MODE_APPEND); android.content.SharedPreferences.Editor editor = sharedPref.edit(); android.widget.Toast.makeText(v.getContext(), "RIDES DELETED", Toast.LENG...