buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public void onItemSelected(android.widget.AdapterView<?> parent, android.view.View view, int position, long id) { selectedCategory = parent.getItemAtPosition(position).toString(); android.widget.Toast.makeText(parent.getContext(), ("Selected: " + (selectedCategory)), Toast.LENGTH_LONG).show(); }
public void onItemSelected(android.widget.AdapterView<?> parent, android.view.View view, int position, long id) { if (position != 0) { selectedCategory = parent.getItemAtPosition(position).toString(); android.widget.Toast.makeText(parent.getContext(), ("Selected: " + (selectedCategory)), Toast.LENGT...
public org.json.JSONObject listSubmissions(uk.ac.ebi.biostudy.submission.rest.user.UserSession userSession) throws java.io.IOException, uk.ac.ebi.biostudy.submission.bsclient.BioStudiesClientException { org.json.JSONArray submitted = bsclient.getSubmissions(userSession.getSessid()); org.json.JSONArray temporary...
public org.json.JSONObject listSubmissions(uk.ac.ebi.biostudy.submission.rest.user.UserSession userSession) throws java.io.IOException, uk.ac.ebi.biostudy.submission.bsclient.BioStudiesClientException { org.json.JSONArray submitted = bsclient.getSubmissions(userSession.getSessid()); org.json.JSONArray temporary...
public void setNoContent(boolean toggleNoContent) { if (!toggleNoContent) { noContent.setText(outOfNames); }else if (dataSource.getAllNamesInList(listName).isEmpty()) { noContent.setText(noNames); } int viewVisibility = (content.isEmpty()) ? android.view.View.VISIBLE...
public void setNoContent() { if (dataSource.getAllNamesInList(listName).isEmpty()) { noContent.setText(noNames); }else { noContent.setText(outOfNames); } int viewVisibility = (content.isEmpty()) ? android.view.View.VISIBLE : android.view.View.GONE; noContent.setVisibility(viewVisibil...
public void onConnected(@android.support.annotation.Nullable android.os.Bundle bundle) { android.util.Log.i(((de.ifgi.sc.smartcitiesapp.main.MainActivity.TAG) + " P2P"), "P2PManager onConnected"); this.isConnected = true; if (!(subscribed)) { subscribe(); } for (com.google.android.gms.nearby...
public void onConnected(@android.support.annotation.Nullable android.os.Bundle bundle) { android.util.Log.i(((de.ifgi.sc.smartcitiesapp.main.MainActivity.TAG) + " P2P"), "P2PManager onConnected"); this.isConnected = true; subscribe(); init(); for (com.google.android.gms.nearby.messages.Message mPubM...
private void showFullScreen(int selection) { android.content.Intent i; i = new android.content.Intent("net.cloudapp.chooser.chooser.ImageFullscreen"); if (selection == 1) i.putExtra("image", post.image1); else i.putExtra("image", post.image2); com.facebook.FacebookSdk.getApplica...
private void showFullScreen(int selection) { android.content.Intent i; i = new android.content.Intent("net.cloudapp.chooser.chooser.ImageFullscreen"); if (selection == 1) i.putExtra("image", post.image1); else i.putExtra("image", post.image2); view.getContext().startActivity(i);...
public void editText(final java.lang.String clips) { android.content.Intent i = new android.content.Intent(this, com.catchingnow.tinyclipboardmanager.ActivityEditor.class).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK).putExtra(com.catchingnow.tinyclipboardmanager.ClipObjectActionBridge.STATUE_IS_STARRED, intent.getBoolea...
private void editText(final java.lang.String clips) { android.content.Intent i = new android.content.Intent(this, com.catchingnow.tinyclipboardmanager.ActivityEditor.class).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK).putExtra(com.catchingnow.tinyclipboardmanager.ClipObjectActionBridge.STATUE_IS_STARRED, intent.getBoole...
public void testAssertWithInvalidUser() throws java.lang.Exception { expectedMessages.add(HubProxyInfoBuilder.ERROR_MSG_CREDENTIALS_INVALID); final com.blackducksoftware.integration.hub.builder.HubProxyInfoBuilder builder = new com.blackducksoftware.integration.hub.builder.HubProxyInfoBuilder(); builder.set...
public void testAssertWithInvalidUser() throws java.lang.Exception { expectedMessages.add(HubProxyInfoBuilder.ERROR_MSG_CREDENTIALS_INVALID); expectedMessages.add(HubProxyInfoBuilder.ERROR_MSG_CREDENTIALS_INVALID); final com.blackducksoftware.integration.hub.builder.HubProxyInfoBuilder builder = new com.bla...
public double getRequestScore(java.lang.String documentNumber) { double score = 0; int dl = index.getDl(documentNumber, "/article"); int N = index.getN().get("/article"); double avdl = index.getAvdl("/article"); for (java.lang.String word : this.request.split("\\W")) { score += getDocumentWo...
public double getRequestScore(java.lang.String documentNumber) { double score = 0; int dl = index.getDl(documentNumber, "/article"); for (java.lang.String word : this.request.split("\\W")) { score += getDocumentWordScore(word, getTermFrequency(index, word, documentNumber), dl, N, avdl); } re...
public void edit(java.lang.String songName, java.lang.String newSongName, java.lang.String newSongURL) throws java.lang.Exception { if (!(this.playlistMap.containsKey(songName))) { throw new java.lang.Exception((("The song name being editted: " + songName) + " was not in the playlist.")); } this.pla...
public void edit(java.lang.String songName, java.lang.String newSongName, java.lang.String newSongURL) throws java.lang.Exception { if (!(this.playlistMap.containsKey(songName))) { throw new java.lang.Exception((("The song name being editted: " + songName) + " was not in the playlist.")); } this.pla...
public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) { if (!(engine.getStatusModel().getServerControllerRunning())) { eu.netide.workbenchconfigurationeditor.controller.ControllerManager.getStarter().stopServerController(); engine.getStatusModel().setServerControllerRunning(false); ...
public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) { if (engine.getStatusModel().getServerControllerRunning()) { eu.netide.workbenchconfigurationeditor.controller.ControllerManager.getStarter().stopServerController(); engine.getStatusModel().setServerControllerRunning(false); ...
public void putNewMappingShouldSucceed() { io.netty.util.collection.IntObjectHashMapTest.Value v = new io.netty.util.collection.IntObjectHashMapTest.Value("v"); org.junit.Assert.assertNull(map.put(1, v)); org.junit.Assert.assertEquals(1, map.size()); org.junit.Assert.assertTrue(map.containsKey(1)); ...
public void putNewMappingShouldSucceed() { io.netty.util.collection.IntObjectHashMapTest.Value v = new io.netty.util.collection.IntObjectHashMapTest.Value("v"); assertNull(map.put(1, v)); assertEquals(1, map.size()); assertTrue(map.containsKey(1)); assertTrue(map.containsValue(v)); assertEquals(...
protected void onNewIntent(android.content.Intent intent) { super.onNewIntent(intent); java.lang.String action = intent.getAction(); if ((action.equals(Intent.ACTION_SEARCH)) || (action.equals(com.udacity.moviediary.activity.SearchableActivity.GMS_SEARCH_ACTION))) { mQuery = intent.getStringExtra(Se...
protected void onNewIntent(android.content.Intent intent) { java.lang.String action = intent.getAction(); if ((action.equals(Intent.ACTION_SEARCH)) || (action.equals(com.udacity.moviediary.activity.SearchableActivity.GMS_SEARCH_ACTION))) { mQuery = intent.getStringExtra(SearchManager.QUERY); if ...
private java.lang.String getRecordAsJson(java.lang.String recordId) { org.bson.conversions.Bson condition = com.mongodb.client.model.Filters.eq("about", recordId); org.bson.Document record = mongoDb.getCollection("record").find(condition).first(); logger.info(("record: " + (record.toJson(codec)))); tran...
private java.lang.String getRecordAsJson(java.lang.String recordId) { org.bson.conversions.Bson condition = com.mongodb.client.model.Filters.eq("about", recordId); org.bson.Document record = mongoDb.getCollection("record").find(condition).first(); transformer.transform(record); java.lang.String json = r...
public void sendDeviceFound(java.lang.String address, java.lang.String name) { android.content.Intent i = new android.content.Intent("p2pservice"); i.putExtra("message", com.example.arch.mobell.P2pService.Broadcasts.onDeviceFound); i.putExtra("name", name); i.putExtra("mac", address); sendBroadcast(...
public void sendDeviceFound(java.lang.String name, java.lang.String address) { android.content.Intent i = new android.content.Intent("p2pservice"); i.putExtra("message", com.example.arch.mobell.P2pService.Broadcasts.onDeviceFound); i.putExtra("name", name); i.putExtra("mac", address); sendBroadcast(...
public ua.romenskyi.webapp.shopping.domain.list.List toDomain() { ua.romenskyi.webapp.shopping.domain.list.List domainList = new ua.romenskyi.webapp.shopping.domain.list.List(); domainList.setKey(getKey()); domainList.setContent(getStringContent()); domainList.setBought(isBought()); domainList.setPu...
public ua.romenskyi.webapp.shopping.domain.list.List toDomain() { ua.romenskyi.webapp.shopping.domain.list.List domainList = new ua.romenskyi.webapp.shopping.domain.list.List(); domainList.setKey(getKey()); domainList.setContent(getStringContent()); domainList.setBought(isBought()); domainList.setPu...
public byte[] download(java.lang.String filePath) throws com.dropbox.core.DbxException, java.io.IOException { byte[] out; java.io.ByteArrayOutputStream outputStream = new java.io.ByteArrayOutputStream(); try { com.dropbox.core.v1.DbxEntry.File downloadedFile = client.getFile(filePath, null, outputSt...
public byte[] download(java.lang.String filePath) throws com.dropbox.core.DbxException, java.io.IOException { byte[] out = null; java.io.ByteArrayOutputStream outputStream = new java.io.ByteArrayOutputStream(); try { com.dropbox.core.v1.DbxEntry.File downloadedFile = client.getFile(filePath, null, o...
public static int getNextPotionId(int start) { if (((((net.minecraft.potion.Potion.potionTypes) != null) && (start > 0)) && (start < (Potion.potionTypes.length))) && ((net.minecraft.potion.Potion.potionTypes[start]) == null)) return start; start++; if (start < 256) start = blusunrize.im...
public static int getNextPotionId(int start) { do start++; while (((((start < 256) && ((net.minecraft.potion.Potion.potionTypes) != null)) && (start > 0)) && (start < (Potion.potionTypes.length))) && ((net.minecraft.potion.Potion.potionTypes[start]) == null) ); if (start >= 256) return -1; ...
public void getBoatIndexFromUser() { if ((registry.lookUpMember(memberID).getNumberOfBoats()) == 0) { displayError("THIS MEMBER HAVE NO BOAT CURRENTLY!!"); displaySelectedMember(registry.lookUpMember(memberID)); displayUpdateMemberInstructions(); return ; } java.lang.System.o...
private void getBoatIndexFromUser() { if ((registry.lookUpMember(memberID).getNumberOfBoats()) == 0) { displayError("THIS MEMBER HAVE NO BOAT CURRENTLY!!"); displaySelectedMember(registry.lookUpMember(memberID)); displayUpdateMemberInstructions(); return ; } java.lang.System....
void registerMSU(java.util.Set<org.deidentifier.arx.risk.msu.SUDA2Item> set) { (this.numMSUs)++; (this.sizeDistribution[set.size()])++; for (org.deidentifier.arx.risk.msu.SUDA2Item item : set) { (this.columnContributions[item.getColumn()])++; } }
void registerMSU(java.util.Set<org.deidentifier.arx.risk.msu.SUDA2Item> set) { (this.numMSUs)++; (this.sizeDistribution[((set.size()) - 1)])++; for (org.deidentifier.arx.risk.msu.SUDA2Item item : set) { (this.columnContributions[item.getColumn()])++; } }
public void removeConnection(net.md_5.bungee.UserConnection con) { connectionLock.writeLock().lock(); try { connections.remove(con.getName()); connectionsByOfflineUUID.remove(con.getPendingConnection().getOfflineId()); } finally { connectionLock.writeLock().unlock(); } }
public void removeConnection(net.md_5.bungee.UserConnection con) { connectionLock.writeLock().lock(); try { if ((connections.get(con.getName())) == con) { connections.remove(con.getName()); connectionsByOfflineUUID.remove(con.getPendingConnection().getOfflineId()); } ...
public android.view.View onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState) { android.view.View rootView = inflater.inflate(R.layout.fragment_location_edit1, container, false); checkForGooglePlayServicesAndExitIfNone(); getCurrentlyEdit...
public android.view.View onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState) { android.view.View rootView = inflater.inflate(R.layout.fragment_location_edit1, container, false); checkForGooglePlayServicesAndExitIfNone(); getCurrentlyEdit...
public void onGetHtmlResponse(final java.util.Map<java.lang.String, java.lang.String> inputArgs) { java.lang.String fieldId = inputArgs.get("id"); java.lang.String fieldContents = inputArgs.get("contents"); if ((!(fieldId.isEmpty())) && (!(fieldContents.isEmpty()))) { switch (fieldId) { ...
public void onGetHtmlResponse(java.util.Map<java.lang.String, java.lang.String> inputArgs) { java.lang.String fieldId = inputArgs.get("id"); java.lang.String fieldContents = inputArgs.get("contents"); if (!(fieldId.isEmpty())) { switch (fieldId) { case "zss_field_title" : ...
public void updateMaps() { com.badlogic.gdx.files.FileHandle[] available_maps = com.toyknight.aeii.utils.MapFactory.getAvailableMaps(); com.badlogic.gdx.utils.Array<java.lang.Object> maps = new com.badlogic.gdx.utils.Array<java.lang.Object>(); for (com.badlogic.gdx.files.FileHandle map_file : available_maps...
public void updateMaps() { com.badlogic.gdx.files.FileHandle[] available_maps = com.toyknight.aeii.utils.MapFactory.getAvailableMaps(); com.badlogic.gdx.utils.Array<java.lang.Object> maps = new com.badlogic.gdx.utils.Array<java.lang.Object>(); for (com.badlogic.gdx.files.FileHandle map_file : available_maps...
public void testGetCharBoardReadsACharacter() { org.group17.bubblebobble.MapReader mp = new org.group17.bubblebobble.MapReader(); java.util.ArrayList<java.lang.String> alList = new java.util.ArrayList<java.lang.String>(); alList.add("1"); alList.add("1"); alList.add("a"); char[][] cMap = mp.getC...
public void testGetCharBoardReadsACharacter() { java.util.ArrayList<java.lang.String> alList = new java.util.ArrayList<java.lang.String>(); alList.add("1"); alList.add("1"); alList.add("a"); char[][] cMap = org.group17.bubblebobble.MapReader.getCharBoard(alList); org.junit.Assert.assertEquals('a...
public static java.lang.Object getParent(java.lang.Object treeOrTreeItem) { if (!(treeOrTreeItem instanceof org.eclipse.swt.widgets.TreeItem)) { return null; } org.eclipse.swt.widgets.TreeItem item = ((org.eclipse.swt.widgets.TreeItem) (treeOrTreeItem)); org.eclipse.swt.widgets.TreeItem parentIt...
public static java.lang.Object getParent(java.lang.Object treeOrTreeItem) { if (!(treeOrTreeItem instanceof org.eclipse.swt.widgets.TreeItem)) { return null; } org.eclipse.swt.widgets.TreeItem item = ((org.eclipse.swt.widgets.TreeItem) (treeOrTreeItem)); org.eclipse.swt.widgets.TreeItem parentIt...
private void endElementProperty() throws org.xml.sax.SAXException { io.inkstand.scribble.rules.jcr.util.XMLContentHandler.LOG.debug("Closing property"); final io.inkstand.schemas.jcr_import.PropertyDescriptor pd = propertyStack.pop(); try { pd.setValue(parseValue(pd.getJcrType(), textStack.pop())); ...
private void endElementProperty() throws org.xml.sax.SAXException { io.inkstand.scribble.rules.jcr.util.XMLContentHandler.LOG.debug("Closing property"); final io.inkstand.schemas.jcr_import.PropertyDescriptor pd = this.propertyStack.pop(); try { pd.setValue(this.parseValue(pd.getJcrType(), this.text...
public void proceed(int size) { int toughness = 1; java.lang.Object[] options = new java.lang.Object[]{ "Easy" , "Moderate" , "Hard" }; toughness = javax.swing.JOptionPane.showOptionDialog(minesweeper.Minesweeper.newGame, "What's your difficulty level ?", "Difficulty", javax.swing.JOptionPane.YES_NO_CANCEL_...
public void proceed(int size) { int toughness = 1; java.lang.Object[] options = new java.lang.Object[]{ "Easy" , "Moderate" , "Hard" }; toughness = javax.swing.JOptionPane.showOptionDialog(null, "What's your difficulty level ?", "Difficulty", javax.swing.JOptionPane.YES_NO_CANCEL_OPTION, javax.swing.JOption...
public int getCurrentPosition() { if ((exoPlayer) != null) { return (exoPlayer.getDuration()) == (-1L) ? 0 : ((int) (exoPlayer.getCurrentPosition())); }else { return (mediaPlayer.getDuration()) == (-1L) ? 0 : mediaPlayer.getCurrentPosition(); } }
public int getCurrentPosition() { if ((exoPlayer) != null) { return (exoPlayer.getDuration()) == (-1L) ? 0 : ((int) (exoPlayer.getCurrentPosition())); }else if ((mediaPlayer) != null) { return (mediaPlayer.getDuration()) == (-1L) ? 0 : mediaPlayer.getCurrentPosition(); } ...
public im.actor.runtime.promise.Promise<im.actor.core.entity.encryption.PeerSession> apply(im.actor.core.modules.encryption.KeyManagerActor.OwnIdentity ownIdentity, im.actor.core.modules.encryption.entity.PrivateKey ownPreKey, im.actor.core.modules.encryption.entity.UserKeys userKeys, im.actor.core.modules.encryption.e...
public im.actor.core.entity.encryption.PeerSession apply(im.actor.core.modules.encryption.KeyManagerActor.OwnIdentity ownIdentity, im.actor.core.modules.encryption.entity.PrivateKey ownPreKey, im.actor.core.modules.encryption.entity.UserKeys userKeys, im.actor.core.modules.encryption.entity.PublicKey theirPreKey) { ...
public void onActivityResult(int requestCode, int resultCode, android.content.Intent data) { super.onActivityResult(requestCode, resultCode, data); if ((requestCode == (edu.ucsb.cs.cs185.npoon.mydog.PetPostFragment.REQ_CODE_CHOOSE_PICTURE)) || ((requestCode == (edu.ucsb.cs.cs185.npoon.mydog.PetPostFragment.CAME...
public void onActivityResult(int requestCode, int resultCode, android.content.Intent data) { super.onActivityResult(requestCode, resultCode, data); if ((requestCode == (edu.ucsb.cs.cs185.npoon.mydog.PetPostFragment.REQ_CODE_CHOOSE_PICTURE)) || ((requestCode == (edu.ucsb.cs.cs185.npoon.mydog.PetPostFragment.CAME...
public boolean load(java.io.File file) { try (java.util.Scanner in = new java.util.Scanner(file)) { while (in.hasNextLine()) { cards.Card card = parseCard(in.nextLine()); if (card != null) library.putIfAbsent(card.getName(), card); } } catch ...
public boolean load(java.io.File file) { try (java.util.Scanner in = new java.util.Scanner(file)) { while (in.hasNextLine()) { java.lang.String str = in.nextLine(); cards.Card card = parseCard(str); if (card != null) library.putIfAbsent(card.getName(), str...
protected void delete(java.lang.String table, java.lang.String whereClause, java.lang.String[] whereArgs) throws java.lang.Exception { if (table == null) throw new java.lang.Exception("El nombre de la tabla no puede estar vacío"); whereClause = putWhereArgs(whereClause, whereArgs); int r = ((in...
protected void delete(java.lang.String table, java.lang.String whereClause, java.lang.String[] whereArgs) throws java.lang.Exception { if (table == null) throw new java.lang.Exception("El nombre de la tabla no puede estar vacío"); whereClause = putWhereArgs(whereClause, whereArgs); int r = ((in...
public void onFinishedLoading(java.lang.Object obj) { entryPoint.onPageLoaded(); if ((contentModel.getMetadataValue("staticHeader").compareTo("true")) == 0) { makeHeaderStatic(); } if ((contentModel.getMetadataValue("staticFooter").compareTo("true")) == 0) { makeFooterStatic(); } }
public void onFinishedLoading(java.lang.Object obj) { if ((contentModel.getMetadataValue("staticHeader").compareTo("true")) == 0) { makeHeaderStatic(); } if ((contentModel.getMetadataValue("staticFooter").compareTo("true")) == 0) { makeFooterStatic(); } entryPoint.onPageLoaded(); }
public void onWeatherUpdate(java.lang.String[] weatherDetails) { try { tempValue.setText(((((weatherDetails[1]) + "�C | ") + (weatherDetails[2])) + "�C")); curTempValue.setText(((weatherDetails[3]) + "�C")); weatherImg.setImageResource(GetResourceID(weatherDetails[0])); } catch (java.lan...
public void onWeatherUpdate(java.lang.String[] weatherDetails) { try { tempValue.setText(((((weatherDetails[1]) + "�C | ") + (weatherDetails[2])) + "�C")); curTempValue.setText(((weatherDetails[3]) + "�C")); weatherImg.setImageResource(GetResourceID(weatherDetails[0])); } catch (java.lan...
public void testGetConfiguration() throws java.lang.Exception { org.wso2.mdm.integration.configuration.MDMResponse response = client.get(Constants.ConfigurationManagement.CONFIGURATION_ENDPOINT); junit.framework.Assert.assertEquals(HttpStatus.SC_OK, response.getStatus()); org.wso2.mdm.integration.configurat...
public void testGetConfiguration() throws java.lang.Exception { org.wso2.mdm.integration.configuration.MDMResponse response = client.get(Constants.ConfigurationManagement.CONFIGURATION_ENDPOINT); junit.framework.Assert.assertEquals(HttpStatus.SC_OK, response.getStatus()); org.wso2.mdm.integration.configurat...
public void resetButtons() { for (int i = 0; i < (theBoard.boardSize); ++i) { for (int j = 0; j < (theBoard.boardSize); ++j) { java.lang.String boardValue = java.lang.Integer.toString(theBoard.getSquare(i, j).getValue()); if (boardValue == "0") { boardValue = ""; ...
public void resetButtons() { for (int i = 0; i < (theBoard.boardSize); ++i) { for (int j = 0; j < (theBoard.boardSize); ++j) { java.lang.String boardValue = java.lang.Integer.toString(theBoard.getSquare(i, j).getValue()); if (boardValue.equals("0")) { boardValue = "";...
public T removeAndReturn(long index) { if ((serializer) == null) throw new java.lang.NullPointerException("No serializer is set!"); if (!(hasObject(index))) return null; buffer.setAtPosition(index, false); (size)--; return serializer.deserialize(buffer, null, objectSize, in...
public T removeAndReturn(long index) { if ((serializer) == null) throw new java.lang.NullPointerException("No serializer is set!"); if (!(hasObject(index))) return null; buffer.setAtPosition((index * (objectSize)), false); (size)--; return serializer.deserialize(buffer, nul...
public com.sedmelluq.discord.lavaplayer.track.AudioTrack skipTrack() { replacePlayingSong(); if ((_activePlaylist.indexOf(_playingSong)) < (_activePlaylist.size())) { return _activePlaylist.get(((_activePlaylist.indexOf(_playingSong)) + 1)); }else { return _activePlaylist.get(0); } }
public com.sedmelluq.discord.lavaplayer.track.AudioTrack skipTrack() { replacePlayingSong(); if ((_activePlaylist.indexOf(_playingSong)) < (_activePlaylist.size())) { _playingSong = _activePlaylist.get(((_activePlaylist.indexOf(_playingSong)) + 1)); return _playingSong; }else { _play...
public void testQuantifiedPredicateNode() { de.bmoth.parser.ast.nodes.QuantifiedPredicateNode existsNode = ((de.bmoth.parser.ast.nodes.QuantifiedPredicateNode) (parseFormula("#x.(x > 0)").getFormula())); de.bmoth.parser.ast.nodes.QuantifiedPredicateNode forAllNode = ((de.bmoth.parser.ast.nodes.QuantifiedPredica...
public void testQuantifiedPredicateNode() { de.bmoth.parser.ast.nodes.QuantifiedPredicateNode existsNode = ((de.bmoth.parser.ast.nodes.QuantifiedPredicateNode) (parseFormula("#x.(x > 0)").getFormula())); de.bmoth.parser.ast.nodes.QuantifiedPredicateNode forAllNode = ((de.bmoth.parser.ast.nodes.QuantifiedPredica...
public void testInputUriNotEmptyAndMatchesCatalogUri() throws ddf.catalog.plugin.StopProcessingException, java.net.URISyntaxException { ddf.catalog.plugin.PolicyPlugin policyPlugin = getPolicyPlugin("sampleURI", new java.lang.String[]{ "role=admin" , "fizzle=bang" }, new java.lang.String[]{ "role=admin" , "fizzle=b...
public void testInputUriNotEmptyAndMatchesCatalogUri() throws ddf.catalog.plugin.StopProcessingException, java.net.URISyntaxException { ddf.catalog.plugin.PolicyPlugin policyPlugin = getPolicyPlugin("sampleURI", new java.lang.String[]{ "role=admin" , "fizzle=bang" }, new java.lang.String[]{ "role=admin" , "fizzle=b...
public java.util.Map<java.lang.String, java.lang.String> validate(java.lang.String[] args) { java.util.Map<java.lang.String, java.lang.String> errorMap = new java.util.HashMap(); validateLengthArgs(args, errorMap); if (errorMap.isEmpty()) { com.kamazz.validator.ParameterValidatorImpl.log.info("Lengt...
public java.util.Map<java.lang.String, java.lang.String> validate(java.lang.String[] arg) { java.util.Map<java.lang.String, java.lang.String> errorMap = new java.util.HashMap(); validateLengthArgs(arg, errorMap); if (errorMap.isEmpty()) { com.kamazz.validator.ParameterValidatorImpl.log.info("Length ...
public boolean areNotesImported(@android.support.annotation.NonNull java.lang.String password, @android.support.annotation.NonNull android.content.Context context) { mBackupStorageHandler = new nl.yoerinijs.notebuddy.files.backup.BackupStorageHandler(); if (!(mBackupStorageHandler.isExternalStorageWritable())) ...
public boolean areNotesImported(@android.support.annotation.NonNull java.lang.String password, @android.support.annotation.NonNull android.content.Context context) { mBackupStorageHandler = new nl.yoerinijs.notebuddy.files.backup.BackupStorageHandler(); if (!(mBackupStorageHandler.isExternalStorageWritable())) ...
public void onCreate() { super.onCreate(); org.md2k.utilities.Report.Log.d(org.md2k.datakit.ServiceDataKit.TAG, "onCreate()..."); dataSourceManager = new org.md2k.datakit.manager.DataSourceManager(); dataManager = new org.md2k.datakit.manager.DataManager(); databaseLogger = org.md2k.datakit.logger.D...
public void onCreate() { super.onCreate(); org.md2k.utilities.Report.Log.d(org.md2k.datakit.ServiceDataKit.TAG, "onCreate()..."); databaseLogger = org.md2k.datakit.logger.DatabaseLogger.getInstance(this); dataSourceManager = new org.md2k.datakit.manager.DataSourceManager(); dataManager = new org.md2...
public java.util.List<domain.Invitation> findInvitationsByTeam(domain.Team team) { java.util.List<domain.Invitation> invites = null; javax.persistence.Query q = em.createNamedQuery("Invitation.findByTeam"); q.setParameter("teamid", team.getId()); for (domain.Invitation inv : ((java.util.List<domain.Invi...
public java.util.List<domain.Invitation> findInvitationsByTeam(domain.Team team) { java.util.List<domain.Invitation> invites = new java.util.ArrayList<>(); javax.persistence.Query q = em.createNamedQuery("Invitation.findByTeam"); q.setParameter("teamid", team); for (domain.Invitation inv : ((java.util.L...
public void stepInit() throws weka.core.WekaException { if (((((m_encodedForecaster) == null) || (m_encodedForecaster.equals("-NONE-"))) && ((m_fileName) == null)) || (weka.knowledgeflow.steps.TimeSeriesForecasting.isEmpty(m_fileName.toString()))) { throw new weka.core.WekaException("No forecaster specified...
public void stepInit() throws weka.core.WekaException { if ((((m_encodedForecaster) == null) || (m_encodedForecaster.equals("-NONE-"))) && (((m_fileName) == null) || (weka.knowledgeflow.steps.TimeSeriesForecasting.isEmpty(m_fileName.toString())))) { throw new weka.core.WekaException("No forecaster specified...
public android.os.Handler getHandler() { if ((com.kit10.csci448.catastrophe.GameFragment.mHandler) == null) { com.kit10.csci448.catastrophe.GameFragment.mHandler = new android.os.Handler() { public void handleMessage(android.os.Message msg) { mTime.setText(getTime()); ...
public void getHandler() { com.kit10.csci448.catastrophe.GameFragment.mHandler = new android.os.Handler() { public void handleMessage(android.os.Message msg) { mTime.setText(getTime()); mScore.setText(getActivity().getString(R.string.score, mScoreValue)); mGameView.update...
private double Distance(Generator.DataPoint p1, Generator.DataPoint p2) { double temp = 0; for (int i = 0; i < (Dimension); i++) { double temp0 = p1.getData()[i]; double temp1 = p2.getData()[i]; temp += java.lang.Math.pow((temp0 - temp1), 2.0); } if (temp == (java.lang.Double.NaN...
private double Distance(Generator.DataPoint p1, Generator.DataPoint p2) { double temp = 0; double temp0 = 0; double temp1 = 0; for (int i = 0; i < (Dimension); i++) { temp0 = p1.getData()[i]; temp1 = p2.getData()[i]; temp += java.lang.Math.pow((temp0 - temp1), 2.0); } ret...
public int getRealPosition(int position) { int hElements = getHiddenCountUpTo(position); int diff = 0; for (int i = 0; i < hElements; i++) { diff++; if (hidden.contains(currentComments.get((position + diff)).getName())) { i--; } } return position + diff; }
public int getRealPosition(int position) { int hElements = getHiddenCountUpTo(position); int diff = 0; for (int i = 0; i < hElements; i++) { diff++; if (((currentComments.size()) > (position + diff)) && (hidden.contains(currentComments.get((position + diff)).getName()))) { i--; ...
public void Act(Field field, java.util.ArrayList<Actor> newActors) { int age = IncrementAge(); if (age == (ModelConstants.Weed_Maximum_Age)) { setDead(true); }else if (thresholdAgeReached()) { spread(field); } }
public void Act(Field field, java.util.ArrayList<Actor> newActors) { int age = IncrementAge(); if (age == (ModelConstants.Weed_Maximum_Age)) { setDead(true); }else if (thresholdAgeReached()) { spread(field, newActors); } }
public java.lang.Boolean isMatching(java.lang.Object element) { if (!(element instanceof de.jcup.egradle.core.model.Item)) { return java.lang.Boolean.FALSE; } de.jcup.egradle.core.model.Item item = ((de.jcup.egradle.core.model.Item) (element)); java.lang.String matchName = item.getName(); ma...
public java.lang.Boolean isMatching(java.lang.Object element) { if (!(element instanceof de.jcup.egradle.core.model.Item)) { return java.lang.Boolean.FALSE; } de.jcup.egradle.core.model.Item item = ((de.jcup.egradle.core.model.Item) (element)); if (matcher.matches(item)) { return java.la...
protected void checkGoFilesInSourceRoot() throws org.eclipse.core.runtime.CoreException { com.googlecode.goclipse.core.operations.CheckSrcFolderRootFilesWithNoPackage srcCheck = new com.googlecode.goclipse.core.operations.CheckSrcFolderRootFilesWithNoPackage(); srcCheck.checkDir(sourceRootDir); if ((srcChec...
protected void checkGoFilesInSourceRoot() throws org.eclipse.core.runtime.CoreException { com.googlecode.goclipse.core.operations.CheckSrcFolderRootFilesWithNoPackage srcCheck = new com.googlecode.goclipse.core.operations.CheckSrcFolderRootFilesWithNoPackage(); srcCheck.checkDir(sourceRootDir); if (srcCheck...
public com.studylist.model.Question buildQuestion(com.studylist.model.StudyList originalList) { if ((originalList.getList().size()) < 1) { final int randomIndex = randomGenerator.nextInt(((originalList.getList().size()) - 1)); return new com.studylist.model.Question(originalList, originalList.getLis...
public com.studylist.model.Question buildQuestion(com.studylist.model.StudyList originalList) { if ((originalList.getList().size()) > 1) { final int randomIndex = randomGenerator.nextInt(((originalList.getList().size()) - 1)); return new com.studylist.model.Question(originalList, originalList.getLis...
public void testUpdate() { de.mbrero.see.persistance.dto.TestRun run = new de.mbrero.see.persistance.dto.TestRun(); run.setInputPath("foo/test.xml"); run.setDate(new java.util.Date()); run.setResult(TestRunResults.SUCCESS.toString()); repo.save(run); de.mbrero.see.persistance.dto.TestRun item = ...
public void testUpdate() { de.mbrero.see.persistance.dto.TestRun run = new de.mbrero.see.persistance.dto.TestRun(); run.setInputPath("foo/test.xml"); run.setDate(new java.util.Date()); run.setResult(TestRunResults.SUCCESS.toString()); repo.save(run); de.mbrero.see.persistance.dto.TestRun item = ...
public void buttonClick(com.vaadin.ui.Button.ClickEvent clickEvent) { int count = ((int) (com.google.gwt.thirdparty.guava.common.base.Objects.firstNonNull(getSession().getAttribute("count"), 0))); getSession().setAttribute("count", (++count)); layout.addComponent(new com.vaadin.ui.Label(("clicked: " + count...
public void buttonClick(com.vaadin.ui.Button.ClickEvent clickEvent) { int count = ((java.lang.Integer) (com.google.gwt.thirdparty.guava.common.base.Objects.firstNonNull(getSession().getAttribute("count"), 0))); getSession().setAttribute("count", (++count)); layout.addComponent(new com.vaadin.ui.Label(("clic...
public void testKmpFailureFunction3() { char[] pattern = "PARTICIPATE IN PARACHUTE".toCharArray(); int[] borderTable = matcher.kmpFailureFunction(pattern, 0); org.hamcrest.MatcherAssert.assertThat(box(borderTable), org.hamcrest.Matchers.arrayContaining(0, 0, 0, 0, 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, 0, 1, 2, 3, 0...
public void testKmpFailureFunction3() { char[] pattern = "PARTICIPATE IN PARACHUTE".toCharArray(); int[] borderTable = matcher.kmpFailureFunction(pattern, 0); org.hamcrest.MatcherAssert.assertThat(box(borderTable, 0), org.hamcrest.Matchers.arrayContaining(0, 0, 0, 0, 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, 0, 1, 2, 3...
public void onResult(com.google.android.gms.location.places.PlaceBuffer places) { if ((places.getStatus().isSuccess()) && ((places.getCount()) > 0)) { final com.google.android.gms.location.places.Place place = places.get(0); pub.name = java.lang.String.valueOf(place.getName()); pub.address =...
public void onResult(com.google.android.gms.location.places.PlaceBuffer places) { if ((places.getStatus().isSuccess()) && ((places.getCount()) > 0)) { final com.google.android.gms.location.places.Place place = places.get(0); pub.name = java.lang.String.valueOf(place.getName()); pub.address =...
public void finish(org.support.project.common.bat.JobResult result) { org.support.project.web.bean.MessageResult message = new org.support.project.web.bean.MessageResult(); message.setMessage(("Reindexing is ended. [status]" + (result.getResultCode()))); try { session.getBasicRemote().sendText(net.a...
public void finish(org.support.project.common.bat.JobResult result) { org.support.project.web.bean.MessageResult message = new org.support.project.web.bean.MessageResult(); message.setMessage(("Reindexing is ended. [status]" + (result.getResultCode()))); try { session.getBasicRemote().sendText(net.a...
private synchronized org.restlet.ext.apispark.internal.model.Definition getDefinition() { if ((definition) == null) { synchronized(org.restlet.ext.swagger.JaxRsApplicationSwagger2SpecificationRestlet.class) { definition = org.restlet.ext.apispark.internal.introspection.jaxrs.JaxRsIntrospector.ge...
private synchronized org.restlet.ext.apispark.internal.model.Definition getDefinition() { if ((definition) == null) { synchronized(org.restlet.ext.swagger.JaxRsApplicationSwagger2SpecificationRestlet.class) { definition = org.restlet.ext.apispark.internal.introspection.jaxrs.JaxRsIntrospector.ge...
public void onSwipeTop() { if ((select_index) == 0) { m_launcher.play(Launcher.BOUNCE_33); android.content.Intent intent = new android.content.Intent(getApplicationContext(), ac.actestapp.Activity2.class); startActivity(intent); }else if ((select_index) == 1) { m_laun...
public void onSwipeTop() { if ((select_index) == 0) { m_launcher.play(Launcher.BOUNCE_33); android.content.Intent intent = new android.content.Intent(getApplicationContext(), ac.actestapp.Activity2.class); startActivity(intent); }else if ((select_index) == 1) { m_laun...
public void touchUp(com.badlogic.gdx.scenes.scene2d.InputEvent event, float x, float y, int pointer, int button) { pauseTouched = false; refresh(); hud.resetBox(); hud.resetLevel(); hud.resetTime(); resumeImage.remove(); BackToMenuImage.remove(); game.setScreen(game.newMainMenu); }
public void touchUp(com.badlogic.gdx.scenes.scene2d.InputEvent event, float x, float y, int pointer, int button) { pauseTouched = false; refresh(); hud.resetBox(); hud.resetLevel(); resumeImage.remove(); BackToMenuImage.remove(); game.setScreen(game.newMainMenu); }
public java.lang.String createProfile(java.lang.String data) { try { com.google.gson.Gson gson = new com.google.gson.Gson(); edu.calvin.cs262.PlayerProfile player = gson.fromJson(data, edu.calvin.cs262.PlayerProfile.class); player.insertIntoDataBase(); return getProfile(player.ID); ...
public java.lang.String createProfile(java.lang.String data) throws java.lang.Exception { try { com.google.gson.Gson gson = new com.google.gson.Gson(); edu.calvin.cs262.PlayerProfile player = gson.fromJson(data, edu.calvin.cs262.PlayerProfile.class); player.insertIntoDataBase(); retu...
protected void testTools() { testZoomTool(); testMoveTool(); testCropTool(); testSelectionTool(); testCloneTool(); testEraserTool(); testBrushTool(); testGradientTool(); testPaintBucketTool(); testColorPickerTool(); testShapesTool(); testHandTool(); }
protected void testTools() { testSelectionTool(); testCloneTool(); testZoomTool(); testMoveTool(); testCropTool(); testEraserTool(); testBrushTool(); testGradientTool(); testPaintBucketTool(); testColorPickerTool(); testShapesTool(); testHandTool(); }
public static int pointToEllipse(int ex, int ey, int w, int h, int px, int py) { return ((int) (net.sourceforge.fidocadj.geom.GeometricDistances.pointToEllipse(((double) (ex)), ((double) (ey)), ((double) (w)), ((double) (h)), ((double) (px)), ((double) (py))))); }
public static int pointToEllipse(int ex, int ey, int w, int h, int px, int py) { return ((int) (java.lang.Math.round(net.sourceforge.fidocadj.geom.GeometricDistances.pointToEllipse(((double) (ex)), ((double) (ey)), ((double) (w)), ((double) (h)), ((double) (px)), ((double) (py)))))); }
public static boolean isEmpty(final java.lang.String strValue) { if (strValue == null) { return true; } for (int i = 0; i < (strValue.length()); i++) { if (java.lang.Character.isWhitespace(strValue.charAt(i))) { return false; } } return true; }
public static boolean isEmpty(final java.lang.String strValue) { if (strValue == null) { return true; } for (int i = 0; i < (strValue.length()); i++) { if (!(java.lang.Character.isWhitespace(strValue.charAt(i)))) { return false; } } return true; }
public boolean upload(java.lang.String localPath, java.lang.String remotePath) throws java.io.IOException { java.io.File file = new java.io.File(localPath); boolean isDir = file.isDirectory(); boolean uploaded = true; makeDirectories((isDir ? remotePath : getPathParent(remotePath))); if (isDir) ...
public void upload(java.lang.String localPath, java.lang.String remotePath) throws java.io.IOException { java.io.File file = new java.io.File(localPath); boolean isDir = file.isDirectory(); makeDirectories((isDir ? remotePath : getPathParent(remotePath))); if (isDir) uploadDirectory(localPath, r...
public java.lang.String toString() { java.lang.String formatted = ""; for (int i = 0; i < (size); i++) { formatted += (entries[i]) + ","; } return formatted.substring(0, ((formatted.length()) - 1)); }
public java.lang.String toString() { java.lang.String formatted = super.toString(); for (int i = 0; i < (entries.length); i++) { formatted += (entries[i]) + ","; } return formatted.substring(0, ((formatted.length()) - 1)); }
public android.view.View onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState) { new iso.piotrowski.marek.nyndro.statistics.StatsPresenter(this, iso.piotrowski.marek.nyndro.DataSource.DataSource.getInstance()); statsRecyclerView = ((android.su...
public android.view.View onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState) { new iso.piotrowski.marek.nyndro.statistics.StatsPresenter(this, iso.piotrowski.marek.nyndro.DataSource.DataSource.getInstance()); statsRecyclerView = ((android.su...
public static java.util.List<org.reactome.web.pwp.model.client.classes.Event> getEvents(java.lang.String[] identifiers, java.util.Map<java.lang.String, org.reactome.web.pwp.model.client.classes.DatabaseObject> map) { java.util.List<org.reactome.web.pwp.model.client.classes.Event> rtn = new java.util.LinkedList<>();...
public static java.util.List<org.reactome.web.pwp.model.client.classes.Event> getEvents(java.lang.String[] identifiers, java.util.Map<java.lang.String, ? extends org.reactome.web.pwp.model.client.classes.DatabaseObject> map) { java.util.List<org.reactome.web.pwp.model.client.classes.Event> rtn = new java.util.Linke...
public void onSwiped(android.support.v7.widget.RecyclerView.ViewHolder viewHolder, int direction) { int pos = viewHolder.getAdapterPosition(); adapter.deleteAddress(pos); ((com.ck.taxoteam.taxoclient.adapter.AddressLineAdapter.EditTypeViewHolder) (viewHolder)).editText.setText(""); if ((activity.markers...
public void onSwiped(android.support.v7.widget.RecyclerView.ViewHolder viewHolder, int direction) { int pos = viewHolder.getAdapterPosition(); adapter.deleteAddress(pos); ((com.ck.taxoteam.taxoclient.adapter.AddressLineAdapter.EditTypeViewHolder) (viewHolder)).editText.setText(""); if ((activity.markers...
public java.lang.String toString() { return ((((((((ownerId) + " ") + (myId)) + " ") + (p.r)) + " ") + (p.c)) + " ") + (strength); }
public java.lang.String toString() { return (((((((((ownerId) + 1) + " ") + (myId)) + " ") + (p.r)) + " ") + (p.c)) + " ") + (strength); }
private static void borrowMenu() { java.lang.String title; java.lang.System.out.print("Book title: "); Main.scan.nextLine(); title = Main.scan.nextLine(); java.lang.System.out.println(Main.user); Main.user.borrowBook(Main.lib, title); java.lang.System.out.println((("You borrowed " + title) +...
private static void borrowMenu() { java.lang.String title; java.lang.System.out.print("Book title: "); Main.scan.nextLine(); title = Main.scan.nextLine(); java.lang.System.out.println(Main.user); if (Main.user.borrowBook(Main.lib, title)) java.lang.System.out.println((("You borrowed " + ...
public long write(java.io.RandomAccessFile file) { try { int padLen = getPadLen(file); file.write(new byte[]{ 0 }); if (padLen > 0) { byte[] zeroPadding = new byte[padLen]; file.write(zeroPadding); } return ((long) (padLen)) + 1; } catch (java.io.I...
public long write(java.io.RandomAccessFile file) { try { file.write(new byte[]{ 0 }); int padLen = getPadLen(file); if (padLen > 0) { byte[] zeroPadding = new byte[padLen]; file.write(zeroPadding); } return ((long) (padLen)) + 1; } catch (java.io.I...
public void onBitmapFailed(android.graphics.drawable.Drawable errorDrawable) { android.graphics.BitmapFactory.Options options = new android.graphics.BitmapFactory.Options(); options.inPreferredConfig = Bitmap.Config.RGB_565; android.graphics.Bitmap bitmap = android.graphics.BitmapFactory.decodeResource(getR...
public void onBitmapFailed(android.graphics.drawable.Drawable errorDrawable) { android.graphics.BitmapFactory.Options options = new android.graphics.BitmapFactory.Options(); options.inPreferredConfig = Bitmap.Config.RGB_565; android.graphics.Bitmap bitmap = android.graphics.BitmapFactory.decodeResource(getR...
public org.springframework.web.servlet.ModelAndView userListPage(org.springframework.web.servlet.ModelAndView model) throws com.fasterxml.jackson.core.JsonProcessingException { model.addObject("grouplist", objectMapper.writeValueAsString(groupService.findAll())); model.addObject("rolesList", objectMapper.writeV...
public org.springframework.web.servlet.ModelAndView userListPage(org.springframework.web.servlet.ModelAndView model) throws com.fasterxml.jackson.core.JsonProcessingException { model.addObject("grouplist", objectMapper.writeValueAsString(groupService.findAll())); model.addObject("rolesList", objectMapper.writeV...
public void testTlvElementChildrenTooLarge_ThrowsTLVParserException() throws java.lang.Exception { byte[] content = new byte[(TLVElement.MAX_TLV16_CONTENT_LENGTH) - 1024]; com.guardtime.ksi.tlv.TLVHeader header = new com.guardtime.ksi.tlv.TLVHeader(true, false, false, 1, TLVElement.MAX_TLV16_CONTENT_LENGTH); ...
public void testTlvElementChildrenTooLarge_ThrowsTLVParserException() throws java.lang.Exception { byte[] content = new byte[(TLVElement.MAX_TLV16_CONTENT_LENGTH) - 1024]; com.guardtime.ksi.tlv.TLVHeader header = new com.guardtime.ksi.tlv.TLVHeader(true, false, false, 1, TLVElement.MAX_TLV16_CONTENT_LENGTH); ...
public void teardownTest(org.apache.jmeter.protocol.java.sampler.JavaSamplerContext context) { end = java.lang.System.currentTimeMillis(); getNewLogger().info((("cost time: " + ((end) - (start))) + "ms")); if (null != context) { appcontext.destroy(); } }
public void teardownTest(org.apache.jmeter.protocol.java.sampler.JavaSamplerContext context) { end = java.lang.System.currentTimeMillis(); getNewLogger().info((("cost time: " + ((end) - (start))) + "ms")); if (null != (appcontext)) { appcontext.destroy(); } }
private java.util.Map<java.lang.Integer, java.lang.Double> getCosts(javax.json.JsonArray jsonArray) { java.util.Map<java.lang.Integer, java.lang.Double> map = new java.util.HashMap<>(); for (int i = 0; i < (jsonArray.size()); i++) { map.put(i, jsonArray.getJsonNumber(i).doubleValue()); } return ...
private java.util.Map<java.lang.Integer, java.lang.Double> getCosts(javax.json.JsonArray jsonArray) { java.util.Map<java.lang.Integer, java.lang.Double> map = new java.util.HashMap<>(); for (int i = 0; i < (jsonArray.size()); i++) { map.put((i + 1), jsonArray.getJsonNumber(i).doubleValue()); } r...
private static java.lang.String[] listExistingProfiles() { java.util.ArrayList<java.lang.String> names = new java.util.ArrayList<java.lang.String>(); int count = 0; for (int i = 0; i < (dk.bjop.wirecuddler.config.CuddleProfile.allowedProfileFilenames.length); i++) { java.io.File f = new java.io.File...
public static java.lang.String[] listExistingProfiles() { java.util.ArrayList<java.lang.String> names = new java.util.ArrayList<java.lang.String>(); int count = 0; for (int i = 0; i < (dk.bjop.wirecuddler.config.CuddleProfile.allowedProfileFilenames.length); i++) { java.io.File f = new java.io.File(...
public static void matchPatternGen() { org.apache.hadoop.hive.cli.VerifyQueryDriver.patterns.clear(); java.lang.String[] keywords = new java.lang.String[]{ "Verify" , "Correlation" , "(\\w+[,( \\w+)]*)" , "nextLine" , "Piggybacking" , "(None|Map-only|MapReduce)" , "nextLine" , "MapOnly" , "mapOutputPercentage" ...
public static void matchPatternGen() { org.apache.hadoop.hive.cli.VerifyQueryDriver.patterns.clear(); java.lang.String[] keywords = new java.lang.String[]{ "Verify" , "Correlation" , "(\\w+[,( \\w+)]*)" , "nextLine" , "Piggybacking" , "(None|Map-only|MapReduce)" , "nextLine" , "[;]{0,1}" }; org.apache.hadoo...
public void exitLen(wich.parser.WichParser.LenContext ctx) { org.antlr.symtab.Type type = ctx.expr().exprType; if ((type != (SymbolTable._vector)) && (type != (SymbolTable._string))) { error(ctx.start, wich.errors.ErrorType.TYPE_ERROR_FOR_LEN, ctx.expr().exprType.getName()); } }
public void exitLen(wich.parser.WichParser.LenContext ctx) { if ((ctx.expr().exprType) != null) { org.antlr.symtab.Type type = ctx.expr().exprType; if ((type != (SymbolTable._vector)) && (type != (SymbolTable._string))) { error(ctx.start, wich.errors.ErrorType.TYPE_ERROR_FOR_LEN, ctx.exp...
private void cancelAlarm() { android.content.Intent intent = new android.content.Intent(this.context, edu.asu.fitbitgarden.services.AlarmBroadcastReceiver.class); final android.app.PendingIntent pIntent = android.app.PendingIntent.getBroadcast(this.context, AlarmBroadcastReceiver.REQUEST_CODE, intent, PendingIn...
public void cancelAlarm() { android.content.Intent intent = new android.content.Intent(this.context, edu.asu.fitbitgarden.services.AlarmBroadcastReceiver.class); final android.app.PendingIntent pIntent = android.app.PendingIntent.getBroadcast(this.context, AlarmBroadcastReceiver.REQUEST_CODE, intent, PendingInt...
private java.lang.String getClosestFromSource(java.util.Map<java.lang.String, java.lang.Double> distanceFromSource, java.util.List<java.lang.String> unVisited) { java.util.Set<java.lang.String> keys = distanceFromSource.keySet(); java.lang.Double lowest = java.lang.Double.POSITIVE_INFINITY; java.lang.String...
private java.lang.String getClosestFromSource(java.util.Map<java.lang.String, java.lang.Double> distanceFromSource, java.util.List<java.lang.String> unVisited) { java.util.Set<java.lang.String> keys = distanceFromSource.keySet(); java.lang.Double lowest = java.lang.Double.POSITIVE_INFINITY; java.lang.String...
public void onActivityResumed(android.app.Activity activity) { if (((org.sil.lcir_offline.utils.GlobalData.sAppInvisible) != (-1)) && (((org.sil.lcir_offline.utils.GlobalData.getTimestamp()) - (org.sil.lcir_offline.utils.GlobalData.sAppInvisible)) > 60)) { org.sil.lcir_offline.utils.GlobalData.logout(); ...
public void onActivityResumed(android.app.Activity activity) { if (((org.sil.lcir_offline.utils.GlobalData.sAppInvisible) != (-1)) && (((org.sil.lcir_offline.utils.GlobalData.getTimestamp()) - (org.sil.lcir_offline.utils.GlobalData.sAppInvisible)) > 60)) { org.sil.lcir_offline.utils.GlobalData.sAppInvisible...
private void initFileLoader() { if ((mFileName) != null) { java.io.File currentFile = new java.io.File(mFileName); mFileArray = currentFile.getParentFile().listFiles(new be.ac.ulb.lisa.idot.dicom.file.DICOMFileFilter()); mDICOMFileLoader = new be.ac.ulb.lisa.idot.android.dicomviewer.DICOMFra...
private void initFileLoader() { if ((mFileName) != null) { java.io.File currentFile = new java.io.File(mFileName); mFileArray = currentFile.getParentFile().listFiles(new be.ac.ulb.lisa.idot.dicom.file.DICOMFileFilter()); mDICOMFileLoader = new be.ac.ulb.lisa.idot.android.dicomviewer.DICOMFra...
public void onClick(android.view.View view) { try { presenter.calculateSum(java.lang.Integer.valueOf(input1.getText().toString()), java.lang.Integer.valueOf(input2.getText().toString())); } catch (java.lang.NumberFormatException e) { e.printStackTrace(); android.widget.Toast.makeText(thi...
public void onClick(android.view.View view) { try { presenter.calculateSum(java.lang.Integer.parseInt(input1.getText().toString()), java.lang.Integer.parseInt(input2.getText().toString())); } catch (java.lang.NumberFormatException e) { e.printStackTrace(); android.widget.Toast.makeText(t...
public void run() { short ret = MsgClusterCmnDef.RET_SUCCESS; synchronized(runtime_ret) { try { wait(); com.price.msg_cluster.MsgClusterCmnDef.debug("Notify the parent it's time to leave......"); ret = deinitialize(); } catch (java.lang.InterruptedException e)...
public void run() { short ret = MsgClusterCmnDef.RET_SUCCESS; synchronized(runtime_ret) { try { runtime_ret.wait(); com.price.msg_cluster.MsgClusterCmnDef.debug("Notify the parent it's time to leave......"); ret = deinitialize(); } catch (java.lang.Interrupted...
protected void onPause() { super.onPause(); com.example.black.pmk.data.ProgressStore progressStore = new com.example.black.pmk.data.ProgressStore(store.getProgressStore()); android.content.SharedPreferences.Editor prefsEditor = mPrefs.edit(); com.google.gson.Gson gson = new com.google.gson.Gson(); j...
protected void onPause() { super.onPause(); com.example.black.pmk.data.ProgressStore progressStore = new com.example.black.pmk.data.ProgressStore(store.getProgressStore()); android.content.SharedPreferences.Editor prefsEditor = mPrefs.edit(); com.google.gson.Gson gson = new com.google.gson.Gson(); j...
public void newGame() { this.cluedo = new cluedo.GameOfCluedo(this); this.canvas.addBoard(this.cluedo.getBoard()); this.cluedo.setupPlayers(); this.mouse.addGame(this.cluedo); this.cluedo.startGame(); }
public void newGame() { this.cluedo = new cluedo.GameOfCluedo(this); this.canvas.addBoard(this.cluedo.getBoard()); this.cluedo.setupPlayers(); if ((this.cluedo) == null) { return ; } this.mouse.addGame(this.cluedo); this.cluedo.startGame(); }
public void execute(cz.cvut.fit.brabepa1.run.interpret.VirtualMachine vm) { java.lang.Integer val1 = ((java.lang.Integer) (vm.stackPop())); java.lang.Integer val2 = ((java.lang.Integer) (vm.stackPop())); if (val1 >= val2) { vm.incrementPc(); }else { vm.addOffsetToPc(branchOffset); } ...
public void execute(cz.cvut.fit.brabepa1.run.interpret.VirtualMachine vm) { java.lang.Integer val1 = ((java.lang.Integer) (vm.stackPop())); java.lang.Integer val2 = ((java.lang.Integer) (vm.stackPop())); if (val2 >= val1) { vm.incrementPc(); }else { vm.addOffsetToPc(branchOffset); } ...
public static double calculateUserProbability(int total_attempts, int strategy_prob, int attempt, int user_attempts, double user_prob) { double StrategyProbability = user_prob; java.lang.System.out.println(StrategyProbability); int s = total_attempts + strategy_prob; double pi = 1.0 - StrategyProbabilit...
public static double calculateUserProbability(int total_attempts, int strategy_prob, int attempt, int user_attempts, double user_prob) { double StrategyProbability = user_prob; java.lang.System.out.println(StrategyProbability); double pi = 1.0 - StrategyProbability; return imu.recommender.jobs.UpdateStr...
private void redBlackTransplant(RedBlackTree.RedBlackTreeNode nodeToReplace, RedBlackTree.RedBlackTreeNode nodeToReplaceWith) { if ((nodeToReplace.parent) == null) { rootNode = nodeToReplaceWith; }else if (nodeToReplace == (nodeToReplace.parent.leftChild)) { nodeToReplace.parent.left...
private void redBlackTransplant(RedBlackTree.RedBlackTreeNode nodeToReplace, RedBlackTree.RedBlackTreeNode nodeToReplaceWith) { if ((nodeToReplace.parent) == null) { rootNode = nodeToReplaceWith; }else if (nodeToReplace == (nodeToReplace.parent.leftChild)) { nodeToReplace.parent.left...
public void deleteApprovers(com.maaz.lms.entity.Approvers approver) { org.hibernate.Session session = null; try { session = com.maaz.lms.util.HibernateUtil.getSessionFactory().openSession(); session.delete(approver); } catch (java.lang.Exception e) { com.maaz.lms.dao.EmployeeDaoImpl....
public void deleteApprovers(com.maaz.lms.entity.Approvers approver) { org.hibernate.Session session = null; try { session = com.maaz.lms.util.HibernateUtil.getSessionFactory().openSession(); session.delete(approver); } catch (java.lang.Exception e) { com.maaz.lms.dao.EmployeeDaoImpl....
public void deleteexpense(int id, com.expensetracker.Interfaces.AsyncResponse asyncResponse) { java.lang.String stringurl = com.expensetracker.Constants.DELETE_EXPENSE; java.net.URL url = null; org.json.JSONObject jsonObject = null; try { url = new java.net.URL(stringurl); jsonObject = n...
public void deleteexpense(int id, com.expensetracker.Interfaces.AsyncResponse asyncResponse) { com.expensetracker.NetworkUtils networkUtils = new com.expensetracker.NetworkUtils(asyncResponse); java.lang.String stringurl = com.expensetracker.Constants.DELETE_EXPENSE; java.net.URL url = null; org.json.JS...
private org.apache.cordova.PluginResult convertToPluginResult(com.google.firebase.database.DatabaseError error, boolean reusable) { org.json.JSONObject data = null; try { data.put("code", error.getCode()); data.put("message", error.getMessage()); data.put("details", error.getDetails()); ...
private org.apache.cordova.PluginResult convertToPluginResult(com.google.firebase.database.DatabaseError error, boolean reusable) { org.json.JSONObject data = new org.json.JSONObject(); try { data.put("code", error.getCode()); data.put("message", error.getMessage()); data.put("details", ...
private de.panzercraft.objects.Message rollOut() { de.panzercraft.objects.Message message = new de.panzercraft.objects.Message(); boolean isHostX = (java.lang.Math.random()) >= 0.5; if (isHostX) { message.host = de.panzercraft.objects.Field.X; message.slave = de.panzercraft.objects.Field.O; ...
private de.panzercraft.objects.Message rollOut() { de.panzercraft.objects.Message message = new de.panzercraft.objects.Message(); boolean isHostX = (java.lang.Math.random()) >= 0.5; if (isHostX) { message.host = de.panzercraft.objects.Field.X; message.slave = de.panzercraft.objects.Field.O; ...
public void played(ejs.base.sound.ISoundView view) { try { if ((soundWritingThread) == null) { if ((!(block)) && ((soundQueue.remainingCapacity()) == 0)) soundQueue.remove(); } ejs.base.sound.AudioChunk o = new ejs.base.sound.AudioChunk(view, volume);...
public void played(ejs.base.sound.ISoundView view) { if ((soundQueue) == null) return ; try { if ((soundWritingThread) == null) { if ((!(block)) && ((soundQueue.remainingCapacity()) == 0)) soundQueue.remove(); } ejs.base.sound.AudioCh...
public void applyAddComposition(org.eclipse.uml2.uml.Model inBaseModel, org.eclipse.uml2.uml.Element jointpointBaseModelElement, org.eclipse.uml2.uml.Model usingVariantModel, org.eclipse.uml2.uml.Element jointpointVariantModelElement) { org.eclipse.uml2.uml.internal.impl.ClassImpl classBase = ((org.eclipse.uml2.uml...
public void applyAddComposition(org.eclipse.uml2.uml.Model inBaseModel, org.eclipse.uml2.uml.Element jointpointBaseModelElement, org.eclipse.uml2.uml.Model usingVariantModel, org.eclipse.uml2.uml.Element jointpointVariantModelElement) { org.eclipse.uml2.uml.internal.impl.ClassImpl classBase = ((org.eclipse.uml2.uml...
public int getColumnNumber(jlang.basic.FileID fid, int filePos) { char[] buf = getBuffer(fid).getBuffer(); int lineStart = filePos; while (((lineStart != 0) && ((buf[lineStart]) != '\n')) && ((buf[lineStart]) != '\r')) --lineStart; return (filePos - lineStart) + 1; }
public int getColumnNumber(jlang.basic.FileID fid, int filePos) { char[] buf = getBuffer(fid).getBuffer(); int lineStart = filePos; while (((lineStart != 0) && ((buf[(lineStart - 1)]) != '\n')) && ((buf[(lineStart - 1)]) != '\r')) --lineStart; return (filePos - lineStart) + 1; }
public void init() { emailGenerator = new com.kinancity.core.generator.email.PlusTrickEmailGenerator(baseEmail); com.kinancity.core.generator.username.SequenceUsernameGenerator seqUsernameGenerator = new com.kinancity.core.generator.username.SequenceUsernameGenerator(usernamePattern, startFrom); if (((start...
public void init() { emailGenerator = new com.kinancity.core.generator.email.PlusTrickEmailGenerator(baseEmail); com.kinancity.core.generator.username.SequenceUsernameGenerator seqUsernameGenerator = new com.kinancity.core.generator.username.SequenceUsernameGenerator(usernamePattern, startFrom); if (((start...
public void testSimpleMultipleNewPrivate_ok() throws java.lang.Exception { samples.expectnew.ExpectNewDemo tested = new samples.expectnew.ExpectNewDemo(); samples.newmocking.MyClass myClassMock1 = org.powermock.api.mockito.PowerMockito.mock(samples.newmocking.MyClass.class); org.powermock.api.mockito.PowerM...
public void testSimpleMultipleNewPrivate_ok() throws java.lang.Exception { samples.expectnew.ExpectNewDemo tested = new samples.expectnew.ExpectNewDemo(); samples.newmocking.MyClass myClassMock1 = mock(samples.newmocking.MyClass.class); whenNew(samples.newmocking.MyClass.class).withNoArguments().thenReturn(...