buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public com.blackbirdai.client.SearchResponse map(com.blackbirdai.client.HttpResponse httpResponse) { int code = httpResponse.getStatus().getCode(); if ((code == 0) || (code == 200)) { return com.blackbirdai.client.SearchResponse.build(httpResponse.getContent().toString(com.google.common.base.Charsets.UT...
public com.blackbirdai.client.SearchResponse map(com.blackbirdai.client.HttpResponse httpResponse) { int code = httpResponse.getStatus().getCode(); java.lang.String content = httpResponse.getContent().toString(com.google.common.base.Charsets.UTF_8); if ((code == 0) || (code == 200)) { return com.bla...
public void write(final int b) throws java.io.IOException { requireNonClosed(); synchronized(bufferLock) { buffer.add(new byte[]{ ((byte) (b)) }); ++(availableBytes); assert !((availableBytes) < 0) : "More memory used as a long can count"; trim(); } signalModification(); ...
public void write(final int b) throws java.io.IOException { requireNonClosed(); synchronized(bufferLock) { buffer.add(new byte[]{ ((byte) (b)) }); ++(availableBytes); assert (availableBytes) > 0 : "More memory used as a long can count"; trim(); } signalModification(); }
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_devices_scan); com.example.linquas.myapplication.DevicesScanActivity.mDevicesScanActivity = this; manager = ((android.location.LocationManager) (getSystemService(com.examp...
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_devices_scan); com.example.linquas.myapplication.DevicesScanActivity.mDevicesScanActivity = this; manager = ((android.location.LocationManager) (getSystemService(com.examp...
public com.objectivetruth.uoitlibrarybooking.userinterface.calendar.View onCreateView(com.objectivetruth.uoitlibrarybooking.userinterface.calendar.LayoutInflater inflater, @android.support.annotation.Nullable final com.objectivetruth.uoitlibrarybooking.userinterface.calendar.ViewGroup container, @android.support.annota...
public com.objectivetruth.uoitlibrarybooking.userinterface.calendar.View onCreateView(com.objectivetruth.uoitlibrarybooking.userinterface.calendar.LayoutInflater inflater, @android.support.annotation.Nullable final com.objectivetruth.uoitlibrarybooking.userinterface.calendar.ViewGroup container, @android.support.annota...
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_project_info); android.support.v7.widget.Toolbar toolbar = ((android.support.v7.widget.Toolbar) (findViewById(R.id.toolbar))); setSupportActionBar(toolbar); getSupport...
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_project_info); android.support.v7.widget.Toolbar mToolbar = ((android.support.v7.widget.Toolbar) (findViewById(R.id.toolbar))); setSupportActionBar(mToolbar); getSuppo...
public void handleOnTrackerAdded(com.firebirdberlin.tinytimetracker.events.OnTrackerAdded event) { android.widget.ArrayAdapter<com.firebirdberlin.tinytimetracker.models.TrackerEntry> adapter = ((android.widget.ArrayAdapter<com.firebirdberlin.tinytimetracker.models.TrackerEntry>) (spinner.getAdapter())); tracker...
public void handleOnTrackerAdded(com.firebirdberlin.tinytimetracker.events.OnTrackerAdded event) { android.widget.ArrayAdapter<com.firebirdberlin.tinytimetracker.models.TrackerEntry> adapter = ((android.widget.ArrayAdapter<com.firebirdberlin.tinytimetracker.models.TrackerEntry>) (spinner.getAdapter())); adapter...
private void loadDefaultFragments() { loadFragment(null, com.vwo.sampleapp.fragments.FragmentOnBoardingMain.CONTROL_LOGIN_TYPE_NORMAL, null); java.lang.String value = ((java.lang.String) (com.vwo.mobile.VWO.getVariationForKey(Constants.VWOKeys.KEY_LOGIN, Constants.VWOKeys.VALUE_EMAIL))); switch (value) { ...
private void loadDefaultFragments() { loadFragment(null, com.vwo.sampleapp.fragments.FragmentOnBoardingMain.CONTROL_LOGIN_TYPE_NORMAL, null); java.lang.String value = ((java.lang.String) (com.vwo.mobile.VWO.getVariationForKey(Constants.VWOKeys.KEY_LOGIN, Constants.VWOKeys.VALUE_EMAIL))); switch (value) { ...
private ExamType.GUI.ExamType selectExamType() { cancelUpdate.setVisible(true); int index = examTypeList.getSelectedIndex(); if (index == (-1)) { updateStatus("Error: Select an Exam Type from the list"); addNewETButton.setEnabled(false); return nullExamType; } return ExamType...
private ExamType.GUI.ExamType selectExamType() { cancelUpdate.setVisible(true); int index = examTypeList.getSelectedIndex(); if (index == (-1)) { updateStatus("Error: Select an Exam Type from the list"); addNewETButton.setEnabled(false); return nullExamType; } addNewETButton....
private void startLoad() { if (!(mHasFrame)) { return ; } if ((!(mIsAttach)) || (!(mIsVisible))) { return ; } com.baidu.iknow.imageloader.request.ImageLoader.getInstance().load(mUrl, mDrawableWrapper.mViewWidth, mDrawableWrapper.mViewHeight, mBuilder.mDecodeInfo, this, isFastScroll()...
private void startLoad() { if (!(mHasFrame)) { return ; } if ((!(mIsAttach)) || (!(mIsVisible))) { return ; } com.baidu.iknow.imageloader.request.ImageLoader.getInstance().load(mUrl, mDrawableWrapper.mViewWidth, mDrawableWrapper.mViewHeight, this, isFastScroll()); requestLayout()...
public void getItemList() { java.lang.System.out.println("Item Number \t Title"); for (int i = 0; i < (NewItem.itemArray.length); i++) { if ((NewItem.itemArray[i][3]) == null) { break; } java.lang.System.out.println((((NewItem.itemArray[i][3]) + "\t\t\t") + (NewItem.itemArray...
public void getItemList() { java.lang.System.out.println("Item Number \t Title"); for (int i = 0; i < (NewItem.itemArray.length); i++) { if (!((NewItem.itemArray[i][3]) == null)) { java.lang.System.out.println((((NewItem.itemArray[i][3]) + "\t\t\t") + (NewItem.itemArray[i][1]))); } ...
public void drawCells() { for (int i = 0; i < (cols); i++) { java.lang.System.out.print(("i = " + i)); for (int j = 0; j < (rows); j++) { java.lang.System.out.println(("j = " + j)); cells[j][i] = new levelBuilder.Cell(j, i); add(cells[j][i]); } } }
public void drawCells() { for (int y = 0; y < (rows); y++) { for (int x = 0; x < (cols); x++) { cells[x][y] = new levelBuilder.Cell(); add(cells[x][y]); } } }
protected void enumerationCompleteSwing(java.util.Collection<T> proxies) { indices.clear(); for (T proxy : proxies) { if (check(proxy)) list.add(proxy); } int sz = (list.size()) - 1; if (sz >= 0) { us.mn.state.dot.tms.client.proxy.ProxyListModel.Filter<T> f = get...
protected void enumerationCompleteSwing(java.util.Collection<T> proxies) { for (T proxy : proxies) { if (check(proxy)) list.add(proxy); } int sz = (list.size()) - 1; if (sz >= 0) { fireIntervalAdded(this, 0, sz); } }
void setFreqAxisMode(github.bewantbe.audio_analyzer_for_android.ScreenPhysicalMapping.Type mapType, float freq_lower_bound_for_log) { axisFreq.setMappingType(mapType, freq_lower_bound_for_log); if (mapType == (ScreenPhysicalMapping.Type.LOG)) { fqGridLabel.setGridType(GridLabel.Type.FREQ_LOG); }else...
void setFreqAxisMode(github.bewantbe.audio_analyzer_for_android.ScreenPhysicalMapping.Type mapType, float freq_lower_bound_for_log) { axisFreq.setMappingType(mapType, freq_lower_bound_for_log); if (mapType == (ScreenPhysicalMapping.Type.LOG)) { fqGridLabel.setGridType(GridLabel.Type.FREQ_LOG); }else...
public void callback(fr.utt.adrien.helloworld.LoginActivity loginActivity) { fr.utt.adrien.helloworld.utils.RequestHandler.AuthentificationActivityWrapper wrapper = callbacks.remove(loginActivity.getIntent().getIntExtra("CALLBACK_ID", (-1))); if (wrapper != null) { if (isAuthentified()) { wr...
public void callback(fr.utt.adrien.helloworld.LoginActivity loginActivity) { fr.utt.adrien.helloworld.utils.RequestHandler.AuthentificationActivityWrapper wrapper = callbacks.remove(loginActivity.getIntent().getIntExtra("CALLBACK_ID", (-1))); if (wrapper != null) { wrapper.handler.onAuthentified(isAuthe...
private void removeSelectedContact() { if ((listview.getFocusModel().getFocusedItem()) == null) { return ; }else { contacts.remove(((model.Contact) (listview.getSelectionModel().getSelectedItem()))); selectedContact = null; emptyFields(); saved = false; } listview...
private void removeSelectedContact() { if ((selectedContact) != null) { contacts.remove(((model.Contact) (listview.getSelectionModel().getSelectedItem()))); selectedContact = null; emptyFields(); saved = false; listview.refresh(); } }
public void playFile(com.switchpool.model.SPFile file) { player.stop(); java.lang.String fileParh = (getString(R.string.SPAudioFilePrefix)) + (file.getFid()); for (int i = 0; i < (data.size()); i++) { java.lang.String pathString = data.get(i); if (getFileName(pathString).equals(fileParh)) { ...
public void playFile(com.switchpool.model.SPFile file) { java.lang.String fileParh = (getString(R.string.SPAudioFilePrefix)) + (file.getFid()); for (int i = 0; i < (data.size()); i++) { java.lang.String pathString = data.get(i); if (getFileName(pathString).equals(fileParh)) { curInde...
public void updateTitle() { com.bignerdranch.android.scrapbookapp.ItemLab itemLab = com.bignerdranch.android.scrapbookapp.ItemLab.get(getActivity()); int itemsCount = itemLab.getItems().size(); java.lang.String title = getString(R.string.title_format, itemsCount); android.support.v7.app.AppCompatActivit...
public void updateTitle(int itemsCount) { com.bignerdranch.android.scrapbookapp.ItemLab itemLab = com.bignerdranch.android.scrapbookapp.ItemLab.get(getActivity()); java.lang.String title = getString(R.string.title_format, itemsCount); android.support.v7.app.AppCompatActivity activity = ((android.support.v7....
public static void pushAssignment(Assignment assign) { TreeNode.solution.push(assign); assign.person.setRoom(assign.room); if (assign.room.isFull()) TreeNode.rooms.remove(assign.room); assign.room.assignPerson(assign.person); TreeNode.people.pop(); }
public static void pushAssignment(Assignment assign) { TreeNode.solution.push(assign); assign.person.setRoom(assign.room); assign.room.assignPerson(assign.person); if (assign.room.isFull()) TreeNode.rooms.remove(assign.room); TreeNode.people.pop(); }
public boolean isTrue(burlap.oomdp.core.State s, java.lang.String[] params) { burlap.oomdp.core.ObjectInstance block = s.getObject(params[0]); int blockType = block.getIntValForAttribute(HelperNameSpace.ATBTYPE); return (HelperActions.blockColorMap.get(blockType)) == (this.color); }
public boolean isTrue(burlap.oomdp.core.State s, java.lang.String[] params) { burlap.oomdp.core.ObjectInstance block = s.getObject(params[0]); int blockType = block.getIntValForAttribute(HelperNameSpace.ATBTYPE); return HelperActions.blockColorMap.get(blockType).equals(this.color); }
public void onReceive(android.content.Context context, android.content.Intent intent) { long[] pattern = new long[]{ 0 , 500 , 500 , 500 , 500 }; if (intent.getAction().equals("android.intent.action.BOOT_COMPLETED")) { android.widget.Toast.makeText(context, "Time to get up!", Toast.LENGTH_LONG).show(); ...
public void onReceive(android.content.Context context, android.content.Intent intent) { long[] pattern = new long[]{ 0 , 500 , 500 , 500 , 500 }; android.widget.Toast.makeText(context, "Time to get up!", Toast.LENGTH_LONG).show(); android.os.Vibrator vibrator = ((android.os.Vibrator) (context.getSystemServi...
public void enrollUser(@org.springframework.web.bind.annotation.RequestParam(value = "data") java.lang.String data, @org.springframework.web.bind.annotation.RequestBody com.ir.form.GenerateCourseCertificateForm generateCourseCertificateForm, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.H...
public void enrollUser(@org.springframework.web.bind.annotation.RequestParam(value = "data") java.lang.String data, @org.springframework.web.bind.annotation.RequestBody com.ir.form.GenerateCourseCertificateForm generateCourseCertificateForm, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.H...
public void onLoaded(java.util.List<com.anhhoang.picrust.data.models.RecipeModel> result) { if ((result != null) && ((result.size()) > 0)) { callback.onLoaded(result); recipesLocalDataSource.save(result.toArray(new com.anhhoang.picrust.data.models.RecipeModel[result.size()])); }else { ca...
public void onLoaded(java.util.List<com.anhhoang.picrust.data.models.RecipeModel> result) { if ((result != null) && ((result.size()) > 0)) { recipesLocalDataSource.save(result.toArray(new com.anhhoang.picrust.data.models.RecipeModel[result.size()])); callback.onLoaded(result); }else { ca...
public final com.iri.training.model.Post addPost(final com.iri.training.model.Post post) throws java.sql.SQLException { com.iri.training.web.service.PostServiceImpl.logger.debug(("ENTERED addPost for post: " + post)); final long postId = postRepository.addPostAndGetGeneratedId(post); com.iri.training.web.se...
public final com.iri.training.model.Post addPost(final com.iri.training.model.Post post) throws java.sql.SQLException { com.iri.training.web.service.PostServiceImpl.logger.debug(("ENTERED addPost for post: " + post)); final long postId = postRepository.addPostAndGetGeneratedId(post); com.iri.training.web.se...
protected void enforceMWVersion(java.lang.String introduced, java.lang.String removed) { WikiBot.MediawikiData.VersionNumber myVersion = getMWVersion(); if ((((myVersion.compareTo(introduced)) < 0) || (introduced == null)) && (((myVersion.compareTo(removed)) > 0) || (removed == null))) { throw new WikiB...
protected void enforceMWVersion(java.lang.String introduced, java.lang.String removed) { WikiBot.MediawikiData.VersionNumber myVersion = getMWVersion(); if (((introduced == null) || ((myVersion.compareTo(introduced)) < 0)) && ((removed == null) || ((myVersion.compareTo(removed)) > 0))) { throw new WikiB...
public static java.lang.String normaliseUri(java.lang.String context, java.lang.String partURI) { if ((null == partURI) || (partURI.contains("javascript:"))) { return null; } java.net.URI uri; try { uri = new java.net.URI(context); return uri.resolve(partURI).toString(); } ca...
public static java.lang.String normaliseUri(java.lang.String context, java.lang.String partURI) { if ((null == partURI) || (partURI.contains("javascript:"))) { return null; } java.net.URI uri; try { uri = new java.net.URI(context); return uri.resolve(partURI).toString(); } ca...
public void fieldNames(java.lang.String[] names) { if ((names.length) == 0) { fieldLookup = java.util.Collections.EMPTY_MAP; } java.util.Map<java.lang.String, java.lang.Integer> fieldLookup = new java.util.HashMap<>(); for (int i = 0; i < (names.length); i++) { fieldLookup.put(names[i], ...
public void fieldNames(java.lang.String[] names) { if ((names.length) == 0) { this.fieldLookup = java.util.Collections.EMPTY_MAP; }else { java.util.Map<java.lang.String, java.lang.Integer> fieldLookup = new java.util.HashMap<>(); for (int i = 0; i < (names.length); i++) { fie...
public void testInsertSelectUser() throws java.sql.SQLException { java.sql.Connection conn = startConnection(); com.company.Main.insertUser(conn, "Barry", "1234"); java.util.ArrayList<com.company.User> userArray = com.company.Main.selectUser(conn); conn.close(); org.junit.Assert.assertTrue((userArra...
public void testInsertSelectUser() throws java.sql.SQLException { java.sql.Connection conn = startConnection(); com.company.Main.insertUser(conn, "Barry", "1234"); java.util.ArrayList<com.company.User> userArray = com.company.Main.selectUser(conn); org.junit.Assert.assertTrue((userArray != null)); j...
public void onImageClick(java.lang.String url, int position, android.view.View imageView) { com.orhanobut.logger.Logger.d(("点击了=" + position)); android.content.Intent intent = new android.content.Intent(context, cn.bluemobi.dylan.photoview.ImagePagerActivity.class); java.lang.String[] arr = new java.lang.St...
public void onImageClick(java.lang.String url, int position, android.view.View imageView) { com.orhanobut.logger.Logger.d(("点击了=" + position)); android.content.Intent intent = new android.content.Intent(context, cn.bluemobi.dylan.photoview.ImagePagerActivity.class); java.lang.String[] arr = new java.lang.St...
private void onTaskInit(final org.apache.reef.runtime.common.driver.evaluator.pojos.TaskStatusPOJO taskStatusPOJO) { assert (org.apache.reef.runtime.common.driver.evaluator.pojos.State.INIT) == (taskStatusPOJO.getState()); if (this.isKnown()) { org.apache.reef.runtime.common.driver.task.TaskRepresenter....
private void onTaskInit(final org.apache.reef.runtime.common.driver.evaluator.pojos.TaskStatusPOJO taskStatusPOJO) { assert (org.apache.reef.runtime.common.driver.evaluator.pojos.State.INIT) == (taskStatusPOJO.getState()); if (this.isKnown()) { org.apache.reef.runtime.common.driver.task.TaskRepresenter....
public void showProgressDialog(com.techgrains.model.dialog.TGProgressDialog progressDialog) { dismissProgressDialog(); if (progressDialog == null) { return ; } mProgressDialog = android.app.ProgressDialog.show(this.getApplicationContext(), progressDialog.getTitle(), progressDialog.getMessage(), ...
public void showProgressDialog(com.techgrains.model.dialog.TGProgressDialog progressDialog) { dismissProgressDialog(); if (progressDialog == null) { return ; } mProgressDialog = android.app.ProgressDialog.show(this, progressDialog.getTitle(), progressDialog.getMessage(), progressDialog.isCancela...
private void setConnectionDate(java.lang.String beaconMac) { com.example.das.ufsc.beaconmonitor.ConnectionPerformanceInfo connPerformanceInfo = this.currentConnectedBeacons.get(beaconMac); if (connPerformanceInfo.isFirstConnection()) { connPerformanceInfo.setFirstConnAcceptanceTS(new java.util.Date()); ...
private void setConnectionDate(java.lang.String beaconMac) { com.example.das.ufsc.beaconmonitor.ConnectionPerformanceInfo connPerformanceInfo = this.currentConnectedBeacons.get(beaconMac); if (connPerformanceInfo == null) return ; if (connPerformanceInfo.isFirstConnection()) { connPerfo...
public static void initialize() { logic.TaskProcessor.listToDisplay = new java.util.ArrayList<java.lang.String>(); logic.ExecutedCommands.initialize(); logic.UndoneCommands.initialize(); logic.LogicLogger.initialize(); try { logic.LogicLogger.log(java.util.logging.Level.INFO, "Initializing S...
public static void initialize() { logic.TaskProcessor.listToDisplay = new java.util.ArrayList<java.lang.String>(); logic.ExecutedCommands.initialize(); logic.UndoneCommands.initialize(); logic.LogicLogger.initialize(); try { logic.LogicLogger.log(java.util.logging.Level.INFO, "Initializing S...
public void insertMemoryData(org.exbin.deltahex.delta.MemorySegment memorySegment, long position, byte[] insertedData, int insertedDataOffset, int insertedDataLength) { org.exbin.deltahex.delta.MemoryDataSource memorySource = memorySegment.getSource(); org.exbin.deltahex.delta.SegmentsRepository.DataSegmentsMap...
public void insertMemoryData(org.exbin.deltahex.delta.MemorySegment memorySegment, long position, byte[] insertedData, int insertedDataOffset, int insertedDataLength) { org.exbin.deltahex.delta.MemoryDataSource memorySource = memorySegment.getSource(); org.exbin.deltahex.delta.SegmentsRepository.DataSegmentsMap...
public void testImportSignatureVote() { org.mockito.Mockito.when(voteMap.put(moe.cdn.cweb.security.CwebImportServiceImplTest.CONTENT_HASH, moe.cdn.cweb.TorrentTrustProtos.SignedVote.newBuilder().setSignature(moe.cdn.cweb.security.CwebImportServiceImplTest.VOTE_1_SIGNATURE).setVote(moe.cdn.cweb.security.CwebImportSe...
public void testImportSignatureVote() { org.mockito.Mockito.when(voteMap.add(moe.cdn.cweb.security.CwebImportServiceImplTest.CONTENT_HASH, moe.cdn.cweb.TorrentTrustProtos.SignedVote.newBuilder().setSignature(moe.cdn.cweb.security.CwebImportServiceImplTest.VOTE_1_SIGNATURE).setVote(moe.cdn.cweb.security.CwebImportSe...
public void closedConnection(org.eclipse.dirigible.repository.datasource.WrappedConnection wrappedConnection) { org.eclipse.dirigible.repository.datasource.WrappedDataSource.logger.debug("entring - closeConnection()"); removeConnection(wrappedConnection); org.eclipse.dirigible.repository.datasource.WrappedD...
public void closedConnection(org.eclipse.dirigible.repository.datasource.WrappedConnection wrappedConnection) { removeConnection(wrappedConnection); org.eclipse.dirigible.repository.datasource.WrappedDataSource.logger.debug((((((("Connection released: " + (wrappedConnection.hashCode())) + " count: ") + (org.ecl...
public static void addFragmentOnSecondContainer(android.support.v4.app.Fragment fragment, boolean addToBackStack) { tw.gov.tycg.app.android.etransportation.ui.fragment.BaseFragment.initFragmentTransaction(); if (addToBackStack) tw.gov.tycg.app.android.etransportation.ui.fragment.BaseFragment.ft.add(R.id...
public void addFragmentOnSecondContainer(android.support.v4.app.Fragment fragment, boolean addToBackStack) { tw.gov.tycg.app.android.etransportation.ui.fragment.BaseFragment.initFragmentTransaction(); if (addToBackStack) tw.gov.tycg.app.android.etransportation.ui.fragment.BaseFragment.ft.add(R.id.second...
public java.util.Set<org.craftercms.studio.api.v1.to.ContentItemTO> getDependantItems(java.lang.String site, java.lang.String path) { java.util.Set<org.craftercms.studio.api.v1.to.ContentItemTO> dependents = new java.util.HashSet<>(); java.util.List<java.lang.String> rawDependentItems = getDependantPaths(site, ...
public java.util.Set<org.craftercms.studio.api.v1.to.ContentItemTO> getDependantItems(java.lang.String site, java.lang.String path) { java.util.Set<org.craftercms.studio.api.v1.to.ContentItemTO> dependents = new java.util.HashSet<>(); java.util.List<java.lang.String> rawDependentItems = getDependantPaths(site, ...
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_display_location_detailed); initTabControl(); context = this; android.app.Activity activity = ((android.app.Activity) (context)); activity.getActionBar().setTitle(...
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_display_location_detailed); initTabControl(); context = this; android.app.Activity activity = ((android.app.Activity) (context)); android.os.Bundle b = getIntent()...
public void error(java.lang.String error) { connecting = false; resetForms(); engine.GlobalData.resetNetwork(); GlobalData.formManager.getForm("error").isActive = true; ((engine.state.FormLabel) (GlobalData.formManager.getForm("error").getComp("text"))).setText(error, ((((GlobalData.formManager.getF...
public void error(java.lang.String error) { connecting = false; resetForms(); engine.GlobalData.resetNetwork(); GlobalData.formManager.getForm("error").isActive = true; ((engine.state.FormLabel) (GlobalData.formManager.getForm("error").getComp("text"))).setText(error, (((GlobalData.formManager.getFo...
public java.lang.String[] getNames(int category) { android.util.Log.d("getNames", "getting names"); int offset = category - 1; java.lang.String[] names = new java.lang.String[5]; for (int i = 0; i < 5; i++) { names[i] = scores[((offset * 5) + i)].getName(); } return names; }
public java.lang.String[] getNames(int category) { if ((category < 1) || (category > 5)) return null; int offset = category - 1; java.lang.String[] names = new java.lang.String[5]; for (int i = 0; i < 5; i++) { names[i] = scores[((offset * 5) + i)].getName(); } return names;...
public android.view.View onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState) { android.view.View view = inflater.inflate(R.layout.fragment_new_text_todo, container, false); etTextContent = ((android.widget.EditText) (view.findViewById(R.id.n...
public android.view.View onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState) { android.view.View view = inflater.inflate(R.layout.fragment_new_text_todo, container, false); etTextContent = ((android.widget.EditText) (view.findViewById(R.id.n...
public void swap() { java.util.LinkedList<race.Racer> startedRacers = getLane(0).getStartedRacers(); if ((startedRacers.size()) > 2) java.util.Collections.swap(startedRacers, 0, 1); else java.lang.System.out.println("Need at least 2 started racers to swap"); }
public void swap() { java.util.LinkedList<race.Racer> startedRacers = getLane(0).getStartedRacers(); if ((startedRacers.size()) >= 2) java.util.Collections.swap(startedRacers, 0, 1); else java.lang.System.out.println("Need at least 2 started racers to swap"); }
private static java.util.List<java.lang.String> getChildren(java.io.File dir, java.util.List<java.lang.String> filesInDir) throws java.io.IOException { java.io.File[] files = dir.listFiles(); if (files != null); for (java.io.File file : files) { if (file.isFile()) filesInDir.add(file.get...
static java.util.List<java.lang.String> getChildren(java.io.File dir, java.util.List<java.lang.String> filesInDir) throws java.io.IOException { java.io.File[] files = dir.listFiles(); if (files != null) for (java.io.File file : files) { if (file.isFile()) filesInDir.add(file....
public void onCreate(android.database.sqlite.SQLiteDatabase db) { db.execSQL(org.mercycorps.translationcards.DbManager.DbHelper.INIT_DECKS_SQL); db.execSQL(org.mercycorps.translationcards.DbManager.DbHelper.INIT_DICTIONARIES_SQL); db.execSQL(org.mercycorps.translationcards.DbManager.DbHelper.INIT_TRANSLATIO...
public void onCreate(android.database.sqlite.SQLiteDatabase db) { db.execSQL(org.mercycorps.translationcards.DbManager.DbHelper.INIT_DECKS_SQL); db.execSQL(org.mercycorps.translationcards.DbManager.DbHelper.INIT_DICTIONARIES_SQL); db.execSQL(org.mercycorps.translationcards.DbManager.DbHelper.INIT_TRANSLATIO...
public android.view.View onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState) { android.view.View view = inflater.inflate(R.layout.fragment_horizontal_cards, container, false); butterknife.ButterKnife.bind(this, view); locatablePager.setA...
public android.view.View onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState) { android.view.View view = inflater.inflate(R.layout.fragment_horizontal_cards, container, false); butterknife.ButterKnife.bind(this, view); locatablePager.setA...
private static int encodePushDataOperation(final int opcode, final byte[] bytes, final byte[] partBytes, int pointer) { switch (opcode) { case 76 : bytes[(pointer = pointer + 1)] = ((byte) (partBytes.length)); default : java.lang.System.arraycopy(partBytes, 0, bytes, pointer,...
private static int encodePushDataOperation(final int opcode, final byte[] bytes, final byte[] partBytes, int pointer) { switch (opcode) { case 76 : bytes[pointer] = ((byte) (partBytes.length)); pointer++; default : java.lang.System.arraycopy(partBytes, 0, bytes, p...
public void setData(java.util.Map<java.lang.String, java.lang.String> data) { getData().getRaw().clear(); for (java.util.Map.Entry<java.lang.String, java.lang.String> e : data.entrySet()) { getData().getRaw().put(e.getKey(), e.getValue()); } update(); }
public void setData(java.util.Map<java.lang.String, java.lang.String> data) { getData().getRaw().clear(); for (java.util.Map.Entry<java.lang.String, java.lang.String> e : data.entrySet()) { getData().getRaw().put(e.getKey(), e.getValue()); } }
public void actionPerformed(java.awt.event.ActionEvent e) { placexor(0, 1, whichmark()); if (debug) java.lang.System.out.println(("Paikka 0 1 " + (whichmark()))); ChangeButton(buttonab); buttonab.setEnabled(false); viimeisinSiirto[0][1] = whichmark(); (buttoncount)++; }
public void actionPerformed(java.awt.event.ActionEvent e) { if (debug) java.lang.System.out.println(("Paikka 0 1 " + (whichmark()))); ChangeButton(buttonab); buttonab.setEnabled(false); viimeisinSiirto[0][1] = whichmark(); (buttoncount)++; }
private static <T extends android.os.Parcelable> T awaitControllerInfo(@android.annotation.Nullable android.os.SynchronousResultReceiver receiver) throws java.util.concurrent.TimeoutException { if (receiver == null) { return null; } final android.os.SynchronousResultReceiver.Result result = receiver...
private static <T extends android.os.Parcelable> T awaitControllerInfo(@android.annotation.Nullable android.os.SynchronousResultReceiver receiver) throws java.util.concurrent.TimeoutException { if (receiver == null) { return null; } final android.os.SynchronousResultReceiver.Result result = receiver...
private boolean takeDamage(int i) { health -= i; if (((health) <= 0) && (!(invincible))) { alive = false; com.dig.www.character.GameCharacter.plusXP(4); } com.dig.www.character.GameCharacter.plusXP(i); return alive; }
private boolean takeDamage(int i) { health -= i; if (((health) <= 0) && (!(invincible))) { alive = false; com.dig.www.character.GameCharacter.plusXP(4); } if (!(invincible)) com.dig.www.character.GameCharacter.plusXP(i); return alive; }
public R map(T inTuple) throws java.lang.Exception { for (int i = 0; i < (fields.length); i++) { outTuple.setField(((org.apache.flink.api.java.tuple.Tuple) (inTuple)).getField(fields[i]), i); } return outTuple; }
public R map(org.apache.flink.api.java.tuple.Tuple inTuple) throws java.lang.Exception { for (int i = 0; i < (fields.length); i++) { outTuple.setField(inTuple.getField(fields[i]), i); } return ((R) (outTuple)); }
private long heartbeatPeriodMillis() { com.hazelcast.instance.GroupProperties props = nodeEngine.getGroupProperties(); int callTimeoutMs = props.getInteger(com.hazelcast.instance.GroupProperty.OPERATION_CALL_TIMEOUT_MILLIS); long periodMs = java.lang.Math.min(java.util.concurrent.TimeUnit.SECONDS.toMillis(1...
private long heartbeatPeriodMillis() { int callTimeoutMs = nodeEngine.getGroupProperties().getInteger(com.hazelcast.instance.GroupProperty.OPERATION_CALL_TIMEOUT_MILLIS); long periodMs = java.lang.Math.min(java.util.concurrent.TimeUnit.SECONDS.toMillis(1), (callTimeoutMs / (com.hazelcast.spi.impl.operationservi...
public void onClick(android.view.View v) { org.md2k.study.model_view.day_start_end.DayStartEndInfoManager dayStartEndInfoManager = ((org.md2k.study.model_view.day_start_end.DayStartEndInfoManager) (model)); org.md2k.study.Status status = dayStartEndInfoManager.getCurrentStatusDetails(); if ((status.getStatu...
public void onClick(android.view.View v) { org.md2k.study.model_view.day_start_end.DayStartEndInfoManager dayStartEndInfoManager = ((org.md2k.study.model_view.day_start_end.DayStartEndInfoManager) (model)); org.md2k.study.Status status = dayStartEndInfoManager.getCurrentStatusDetails(); if ((status.getStatu...
public void onItemClick(android.widget.AdapterView<?> parent, android.view.View view, int position, long id) { net.kenneho.runnow.database.DB_Travel t = db_ListAdapter.getItem(position); uniqueDepartureStation = java.lang.Integer.parseInt(t.departureID); departureName = t.departureName; destinationName ...
public void onItemClick(android.widget.AdapterView<?> parent, android.view.View view, int position, long id) { net.kenneho.runnow.database.DB_Travel t = db_ListAdapter.getItem(position); uniqueDepartureStation = java.lang.Integer.parseInt(t.departureID); departureName = t.departureName; destinationName ...
private jkind.lustre.values.Value convert(java.lang.String base, jkind.lustre.values.Value value) { jkind.lustre.Type type = spec.typeMap.get(base); if (type instanceof jkind.lustre.EnumType) { jkind.lustre.EnumType et = ((jkind.lustre.EnumType) (type)); jkind.lustre.values.IntegerValue iv = ((j...
private jkind.lustre.values.Value convert(java.lang.String base, jkind.lustre.values.Value value) { jkind.lustre.Type type = spec.typeMap.get(base); if ((type instanceof jkind.lustre.EnumType) && (value != null)) { jkind.lustre.EnumType et = ((jkind.lustre.EnumType) (type)); jkind.lustre.values....
public void setP(int x, int y) { eP = new EPosition(); xP = new PositionX(eP); xP.setPosition(x); yP = new PositionY(xP); yP.setPosition(y); iP = yP; java.lang.System.out.println(iP.getPosition()); }
public void setP(int x, int y) { eP = new EPosition(); xP = new PositionX(eP); xP.setPosition(x); yP = new PositionY(xP); yP.setPosition(y); iP = yP; }
public void onClick(android.view.View view) { if (correctradio.isChecked()) { (correctes[0])++; } android.content.Intent intent = new android.content.Intent(getApplicationContext(), com.salle.master.quiz.LastQuestion.class); intent.putExtra("correctes", correctes[0]); startActivity(intent); ...
public void onClick(android.view.View view) { java.lang.Integer correctes = 0; if (correctradio.isChecked()) { correctes++; } android.content.Intent intent = new android.content.Intent(getApplicationContext(), com.salle.master.quiz.LastQuestion.class); intent.putExtra("correctes", correctes)...
public boolean equals(java.lang.Object o) { if (o instanceof util.Vec2) { util.Vec2 v = ((util.Vec2) (o)); return (((x) - (v.x)) <= (util.Vec2.tol)) && (((y) - (v.y)) <= (util.Vec2.tol)); } return false; }
public boolean equals(java.lang.Object o) { if (o instanceof util.Vec2) { util.Vec2 v = ((util.Vec2) (o)); return ((java.lang.Math.abs(((x) - (v.x)))) <= (util.Vec2.tol)) && ((java.lang.Math.abs(((y) - (v.y)))) <= (util.Vec2.tol)); } return false; }
public void onClick(android.view.View v) { if (v == (prevMonth)) { if ((month) <= 1) { month = 12; (year)--; }else { (month)--; } setGridCellAdapterToDate(month, year); } if (v == (nextMonth)) { if ((month) > 11) { month...
public void onClick(android.view.View v) { if (v == (prevMonth)) { if ((month) <= 0) { month = 11; (year)--; }else { (month)--; } setGridCellAdapterToDate(month, year); } if (v == (nextMonth)) { if ((month) >= 11) { mont...
public int scroll(javax.swing.JComponent c, java.lang.String dir) { java.awt.Rectangle visible = c.getVisibleRect(); java.awt.Rectangle bounds = c.getBounds(); if ("up".equals(dir)) { visible.y = 0; }else { visible.y = (bounds.height) - (visible.height); } c.scrollRectToVisible(v...
public void scroll(javax.swing.JComponent c, java.lang.String dir) { java.awt.Rectangle visible = c.getVisibleRect(); java.awt.Rectangle bounds = c.getBounds(); if ("up".equals(dir)) { visible.y = 0; }else { visible.y = (bounds.height) - (visible.height); } c.scrollRectToVisible(...
public void opCode(gpvm.GPVM g) { int a = g.pop(); int b = g.pop(); long prod = a * b; if ((prod / a) != b) { java.lang.System.out.println("Overflow During Calculation Process Aborted"); java.lang.System.exit(0); }else g.push(((int) (prod))); }
public void opCode(gpvm.GPVM g) { int a = g.pop(); int b = g.pop(); long prod = a * b; if ((a != 0) && ((prod / a) != b)) { java.lang.System.out.println("Overflow During Calculation Process Aborted"); java.lang.System.exit(0); }else g.push(((int) (prod))); }
public static void main(java.lang.String[] args) { production.SimRandom rand = new production.SimRandom(); production.Floor F = new production.MockFloor(rand); production.RobotScheduler R = new production.RobotScheduler(F); production.OrderControl O = new production.OrderControl(); production.Belt B...
public static void main(java.lang.String[] args) { production.SimRandom rand = new production.SimRandom(); production.Floor F = new production.MockFloor(rand); production.RobotScheduler R = new production.RobotScheduler(F); production.Belt B = new production.Belt(F); production.Inventory I = new pro...
private java.lang.String bytesToHex(byte[] bytes) { java.util.ArrayList result = new java.util.ArrayList(); for (byte b : bytes) result.add(java.lang.Integer.toString(((b & 255) + 256), 16).substring(1)); return result.toString(); }
private java.lang.String bytesToHex(byte[] bytes) { java.lang.StringBuffer result = new java.lang.StringBuffer(); for (byte b : bytes) result.append(java.lang.Integer.toString(((b & 255) + 256), 16).substring(1)); return result.toString(); }
private boolean numberSetIsCovered(aeneas.models.ReleaseNumber.Color color) { for (aeneas.models.ReleaseNumber n : board.getNumbers()) { if (((n.color) == color) && ((board.getPieceAtLocation(n.row, n.col)) != null)) { return false; } } return true; }
private boolean numberSetIsCovered(aeneas.models.ReleaseNumber.Color color) { for (aeneas.models.ReleaseNumber n : board.getNumbers()) { if (((n.color) == color) && ((board.getPieceAtLocation(n.row, n.col)) == null)) { return false; } } return true; }
public static com.kieran.winnipegbusbackend.enums.CoverageTypes getEnum(java.lang.String coverageType) { if (coverageType.equals(com.kieran.winnipegbusbackend.enums.CoverageTypes.EXPRESS.typeName)) return com.kieran.winnipegbusbackend.enums.CoverageTypes.EXPRESS; else if (coverageType.equals(com...
public static com.kieran.winnipegbusbackend.enums.CoverageTypes getEnum(java.lang.String coverageType) { if (coverageType != null) { if (coverageType.equals(com.kieran.winnipegbusbackend.enums.CoverageTypes.EXPRESS.typeName)) return com.kieran.winnipegbusbackend.enums.CoverageTypes.EXPRESS; ...
public void update() { rectangle.setY(xyz.jamesnuge.slicktest.util.ConversionUtility.toViewportY(getCenterPos().y)); rectangle.setX(xyz.jamesnuge.slicktest.util.ConversionUtility.toViewportX(getCenterPos().x)); graphicalObject = rectangle.transform(org.newdawn.slick.geom.Transform.createRotateTransform(xyz....
public void update() { rectangle.setY(xyz.jamesnuge.slicktest.util.ConversionUtility.toViewportY(getCenterPos().y)); rectangle.setX(xyz.jamesnuge.slicktest.util.ConversionUtility.toViewportX(getCenterPos().x)); if ((body.getAngle()) != 0) { graphicalObject = rectangle.transform(org.newdawn.slick.geo...
public void startAction() { clearWall(); shape = xtq.game.tetris.BaseShape.randShape(); nextShape = xtq.game.tetris.BaseShape.randShape(); lines = 0; score = 0; pause = false; gameOver = false; timer = new java.util.Timer(); timer.schedule(new java.util.TimerTask() { public v...
public void startAction() { clearWall(); shape = xtq.game.tetris.BaseShape.randShape(); nextShape = xtq.game.tetris.BaseShape.randShape(); lines = 0; score = 0; pause = false; gameOver = false; timer = new java.util.Timer(); timer.schedule(new java.util.TimerTask() { public v...
public void addMessage(io.github.jason1114.lovenote.bean.MessageBean message) { long timestamp = message.getMills(); if ((mData.size()) == 0) { mData.add(message); } for (int i = 0; i < (mData.size()); i++) { if (timestamp >= (mData.get(i).getMills())) { mData.add(i, message)...
public void addMessage(io.github.jason1114.lovenote.bean.MessageBean message) { long timestamp = message.getMills(); if ((mData.size()) == 0) { mData.add(message); return ; } for (int i = 0; i < (mData.size()); i++) { if (timestamp >= (mData.get(i).getMills())) { mDat...
public static void mutateConnectionMultiplyGaussian(final org.eann.sim.simulation.neuronalnet.NeuronalNetwork brain) { final double[][] connectionWeights = brain.getConnectionWeights(); final int[] weightPos = org.eann.sim.simulation.neuronalnet.MutationUtils.pickRandomConnection(brain); final double weight...
public static void mutateConnectionMultiplyGaussian(final org.eann.sim.simulation.neuronalnet.NeuronalNetwork brain) { final double[][] connectionWeights = brain.getConnectionWeights(); final int[] weightPos = org.eann.sim.simulation.neuronalnet.MutationUtils.pickRandomConnection(connectionWeights); final d...
public void insertEvent(@org.springframework.web.bind.annotation.RequestBody tai.server.persistance.model.Event event) throws org.springframework.expression.ParseException { java.lang.System.out.println(event); org.springframework.security.core.Authentication auth = org.springframework.security.core.context.Sec...
public void insertEvent(@org.springframework.web.bind.annotation.RequestBody tai.server.persistance.model.Event event) throws org.springframework.expression.ParseException { org.springframework.security.core.Authentication auth = org.springframework.security.core.context.SecurityContextHolder.getContext().getAuthen...
public boolean takeControl() { int dist = robot.getUltrasonicSensor().getDistance(); boolean ret = ((!(isTurning)) && ((lastDistance) < ((robot.Robot.CLOSE_DISTANCE) * 3))) && (dist > ((robot.Robot.CLOSE_DISTANCE) * 5)); if (ret) { endOfWall = true; endOfWallDistance = lastDistance; } ...
public boolean takeControl() { int dist = robot.getUltrasonicSensor().getDistance(); boolean ret = ((!(isTurning)) && ((lastDistance) < (3 * (robot.Robot.CLOSE_DISTANCE)))) && ((dist - (lastDistance)) > (robot.Robot.CLOSE_DISTANCE)); if (ret) { endOfWall = true; endOfWallDistance = lastDista...
public dyvil.tools.compiler.ast.expression.IValue withType(dyvil.tools.compiler.ast.type.IType type, dyvil.tools.compiler.ast.generic.ITypeContext typeContext, dyvil.tools.parsing.marker.MarkerList markers, dyvil.tools.compiler.ast.context.IContext context) { final dyvil.tools.compiler.ast.field.IDataMember field =...
public dyvil.tools.compiler.ast.expression.IValue withType(dyvil.tools.compiler.ast.type.IType type, dyvil.tools.compiler.ast.generic.ITypeContext typeContext, dyvil.tools.parsing.marker.MarkerList markers, dyvil.tools.compiler.ast.context.IContext context) { if ((this.field) == null) { final dyvil.tools.co...
public void onEnable() { iConomyversion(); try { this.getConfig().options().copyDefaults(true); saveConfig(); reloadConfig(); java.lang.System.out.println("[xpShop] Config file found!"); } catch (java.lang.Exception e) { e.printStackTrace(); } java.lang.System...
public void onEnable() { if ((iConomyversion()) == 0) { return ; }else { try { this.getConfig().options().copyDefaults(true); saveConfig(); reloadConfig(); java.lang.System.out.println("[xpShop] Config file found!"); } catch (java.lang.Exce...
public org.mwg.struct.ENode root() { long addr = parent.addrByIndex(index); if ((org.mwg.memory.offheap.primary.OffHeapLongArray.get(addr, org.mwg.memory.offheap.OffHeapEGraph.NODES_INDEX)) > 0) { return new org.mwg.memory.offheap.OffHeapENode(parent, this, _graph, 0, org.mwg.memory.offheap.OffHeapEGrap...
public org.mwg.struct.ENode root() { long addr = parent.addrByIndex(index); if ((org.mwg.memory.offheap.primary.OffHeapLongArray.get(addr, org.mwg.memory.offheap.OffHeapEGraph.NODES_INDEX)) > 0) { return new org.mwg.memory.offheap.OffHeapENode(this, _graph, 0, org.mwg.memory.offheap.OffHeapEGraph.nodeAd...
private void ROL() { c = (a) >> 7; a <<= 1; a &= 255; a |= c; z = 0; if ((a) == 0) { z = 1; } n = (a) >> 7; }
private void ROL() { int t = (a) >> 7; a <<= 1; a &= 255; a |= c; c = t; z = 0; if ((a) == 0) { z = 1; } n = (a) >> 7; }
public static org.jruby.runtime.builtin.IRubyObject wrap19(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject recv, org.jruby.runtime.builtin.IRubyObject[] args, org.jruby.runtime.Block block) { org.jruby.Ruby runtime = recv.getRuntime(); org.jruby.ext.zlib.RubyGzipFile instance; ...
public static org.jruby.runtime.builtin.IRubyObject wrap19(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject recv, org.jruby.runtime.builtin.IRubyObject[] args, org.jruby.runtime.Block block) { org.jruby.Ruby runtime = recv.getRuntime(); org.jruby.ext.zlib.RubyGzipFile instance; ...
public java.lang.Void apply(org.jenkinsci.plugins.github.extension.GHEventsSubscriber subscriber) { org.apache.commons.lang3.Validate.notNull(subscriber); try { subscriber.onEvent(event, payload); } catch (java.lang.Throwable t) { org.jenkinsci.plugins.github.extension.GHEventsSubscriber.LOG...
public java.lang.Void apply(org.jenkinsci.plugins.github.extension.GHEventsSubscriber subscriber) { org.apache.commons.lang3.Validate.notNull(subscriber); try { subscriber.onEvent(event, payload); } catch (java.lang.Throwable t) { org.jenkinsci.plugins.github.extension.GHEventsSubscriber.LOG...
public void shouldLetWhiteCastleShort() { _game.movePiece(BoardPosition.E2, BoardPosition.E4); _game.movePiece(BoardPosition.G8, BoardPosition.H6); _game.movePiece(BoardPosition.F1, BoardPosition.C4); _game.movePiece(BoardPosition.H6, BoardPosition.G8); _game.movePiece(BoardPosition.G1, BoardPositio...
public void shouldLetWhiteCastleShort() { _game.movePiece(BoardPosition.E2, BoardPosition.E4); _game.movePiece(BoardPosition.G8, BoardPosition.H6); _game.movePiece(BoardPosition.F1, BoardPosition.C4); _game.movePiece(BoardPosition.H6, BoardPosition.G8); _game.movePiece(BoardPosition.G1, BoardPositio...
java.lang.String result = searchImageInLocalCache(); if (result == null) { result = getImageFromPrivateRepository(); if (result != null) { result = getImageFromDefaultLocation(); } } if (result != null) return result; throw new de.uniulm.omi.cloudiato...
java.lang.String result = searchImageInLocalCache(); if (result == null) { result = getImageFromPrivateRepository(); if (result == null) { result = getImageFromDefaultLocation(); } } if (result != null) return result; throw new de.uniulm.omi.cloudiato...
public CharProperty getCharProperties(java.awt.Graphics g, java.lang.String c) { CharProperty prop = new CharProperty(); if (c.isEmpty()) return prop; java.awt.Rectangle bound = getStringBounds(g, c); prop.width = (bound.width) + 2; prop.height = g.getFontMetrics().getHeight(); prop...
public CharProperty getCharProperties(java.awt.Graphics g, java.lang.String c) { CharProperty prop = new CharProperty(); if (c.isEmpty()) return prop; java.awt.Rectangle bound = getStringBounds(g, c); prop.width = bound.width; prop.height = g.getFontMetrics().getHeight(); prop.advan...
public void run() { if (stopTimers) { t.cancel(); }else { if ((board.getPacman().getLives()) < 1) { stopTimers = true; frame.remove(board); stopGameFunctionality(); frame.add(new infdpacman.view.EndGame(hScores, infdpacman.Game.player.getScore(), g...
public void run() { if (stopTimers) { t.cancel(); }else { if ((board.getPacman().getLives()) < 1) { frame.remove(board); stopGameFunctionality(); frame.add(new infdpacman.view.EndGame(hScores, infdpacman.Game.player.getScore(), gameWon), java.awt.BorderLayout....
private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOException { int expectedModCount = modCount; s.defaultWriteObject(); s.writeInt(size); cofh.lib.util.LinkedHashList.Entry n = head; for (int i = 0; i < (size); i++) { s.writeObject(n); n = n.next; } if ((...
private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOException { int expectedModCount = modCount; s.defaultWriteObject(); s.writeInt(size); cofh.lib.util.LinkedHashList.Entry n = head; for (int i = 0; i < (size); i++) { s.writeObject(n.key); n = n.next; } i...
public void loop() { float BucketMotorJoystick = gamepad2.right_stick_y; float Bucket_Motor_Power = java.lang.Math.pow(BucketMotorJoystick, 3); if (((gamepad2.right_stick_y) < 0.05) && ((gamepad2.right_stick_y) > (-0.05))) { com.qualcomm.ftcrobotcontroller.opmodes.Bucket_Motor.setPower(0); } ...
public void loop() { float BucketMotorJoystick = gamepad2.right_stick_y; double Bucket_Motor_Power = java.lang.Math.pow(BucketMotorJoystick, 3); if (((gamepad2.right_stick_y) < 0.05) && ((gamepad2.right_stick_y) > (-0.05))) { com.qualcomm.ftcrobotcontroller.opmodes.Bucket_Motor.setPower(0); } ...
public void createCinema(com.qa.student.model.Cinema cinema) { com.qa.student.model.Cinema checker = em.find(com.qa.student.model.Cinema.class, cinema); if (checker == null) { com.qa.student.rest.CinemaService.cinemaLogger.info("Cinema not added, already exists"); }else { em.persist(cinema);...
public void createCinema(com.qa.student.model.Cinema cinema) { com.qa.student.model.Cinema checker = em.find(com.qa.student.model.Cinema.class, cinema); if (checker != null) { com.qa.student.rest.CinemaService.cinemaLogger.info("Cinema not added, already exists"); }else { em.persist(cinema);...
public java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args) throws java.lang.Throwable { java.util.ArrayList<java.lang.Object> args2 = new java.util.ArrayList<java.lang.Object>(); args2.add(this); args2.addAll(java.util.Arrays.asList(args)); return ja...
public java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args) throws java.lang.Throwable { java.util.ArrayList<java.lang.Object> args2 = new java.util.ArrayList<java.lang.Object>(); args2.add(this); if (args != null) args2.addAll(java.util.Arrays.as...
private final java.util.List<java.lang.String> getRequiredFields() { java.lang.reflect.Field[] fs = this.getClass().getFields(); java.util.List<java.lang.String> requiredFields = new java.util.LinkedList<>(); for (java.lang.reflect.Field f : fs) { java.lang.annotation.Annotation a = f.getAnnotation(...
private final java.util.List<java.lang.reflect.Field> getRequiredFields() { java.lang.reflect.Field[] fs = this.getClass().getFields(); java.util.List<java.lang.reflect.Field> requiredFields = new java.util.LinkedList<>(); for (java.lang.reflect.Field f : fs) { java.lang.annotation.Annotation a = f....
public void onCreate(@android.support.annotation.Nullable android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); android.util.Log.e("ONCREATE", "CALLED"); for (int i = 0; i < 30; i++) { list.add(new com.appbusters.robinkamboj.standardappguidelines.ModelMain(("Text One " + i), ("...
public void onCreate(@android.support.annotation.Nullable android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); for (int i = 0; i < 30; i++) { list.add(new com.appbusters.robinkamboj.standardappguidelines.ModelMain(("Text One " + i), ("Text Two " + i))); } for (int i = 0; i...
public void actionPerformed(java.awt.event.ActionEvent e) { if ((e.getSource()) == (saveButton)) { new org.horrgs.texteditor.windows.TESave(textEditorArea, false, absoluteFilePath, true, jFrame); }else if ((e.getSource()) == (newButton)) { new org.horrgs.texteditor.windows.TENew(text...
public void actionPerformed(java.awt.event.ActionEvent e) { if ((e.getSource()) == (saveButton)) { new org.horrgs.texteditor.windows.TESave(textEditorArea, false, absoluteFilePath, false, jFrame); }else if ((e.getSource()) == (newButton)) { new org.horrgs.texteditor.windows.TENew(tex...
public void decorate(final com.intellij.ide.projectView.ProjectViewNode node, final com.intellij.ide.projectView.PresentationData data) { final com.intellij.openapi.vfs.VirtualFile file = node.getVirtualFile(); if (file == null) { return ; } final com.intellij.openapi.project.Project project = n...
public void decorate(final com.intellij.ide.projectView.ProjectViewNode node, final com.intellij.ide.projectView.PresentationData data) { final com.intellij.openapi.vfs.VirtualFile file = node.getVirtualFile(); final com.intellij.openapi.project.Project project = node.getProject(); if (file != null) { ...
public boolean update() { if (Gdx.input.justTouched()) { float x = Gdx.input.getX(); float y = Gdx.input.getY(); if (isActorTouched(returnButton, x, y)) { isReturnButtonTouched = true; return true; } if (isActorTouched(startWaveButton, x, y)) { ...
public boolean update(float x, float y) { if (isActorTouched(returnButton, x, y)) { isReturnButtonTouched = true; return true; } if (isActorTouched(startWaveButton, x, y)) { isStartWaveButtonTouched = true; return true; } return false; }
public model.MathElement turnColorBackTo(java.awt.Color color) { if (((mLastMathElementModified) != null) && (contains(mLastMathElementModified))) { if ((mLastMathElementModified.getColor()) != color) { mLastMathElementModified.setColor(color); mRedFlag = false; return mL...
public model.MathElement turnColorBackTo(java.awt.Color color) { if (((mLastMathElementModified) != null) && (contains(mLastMathElementModified))) { if ((mLastMathElementModified.getColor()) != color) { mLastMathElementModified.setColor(color); mRedFlag = false; return mL...
public int countDossierByKeywordDomainAndStatus(long groupId, java.lang.String keyword, java.lang.String domainCode, java.util.List<java.lang.String> govAgencyCodes, java.lang.String dossierStatus) { java.lang.String[] keywords = null; boolean andOperator = false; if (com.liferay.portal.kernel.util.Validato...
public int countDossierByKeywordDomainAndStatus(long groupId, java.lang.String keyword, java.lang.String domainCode, java.util.List<java.lang.String> govAgencyCodes, java.lang.String dossierStatus) { java.lang.String[] keywords = null; boolean andOperator = false; if (com.liferay.portal.kernel.util.Validato...
public static boolean isPalindrome(java.lang.String str) { if ((str.charAt(0)) != (str.charAt(((str.length()) - 1)))) return false; return ((str.length()) < 3) || (com.timvisee.hhsbigjava.c5.BigJavaP5_16.isPalindrome(str.substring(1, ((str.length()) - 2)))); }
public static boolean isPalindrome(java.lang.String str) { if ((str.charAt(0)) != (str.charAt(((str.length()) - 1)))) return false; return ((str.length()) < 3) || (com.timvisee.hhsbigjava.c5.BigJavaP5_16.isPalindrome(str.substring(1, ((str.length()) - 1)))); }
public org.springframework.http.ResponseEntity<?> getServiceInfo(@com.projectx.main.PathVariable long id) { com.projectx.model.Service service = serviceDAO.getServiceById(id); if (service == null) { com.projectx.main.ServiceController.logger.debug("Failed getting info about service with id={} - it doesn...
public org.springframework.http.ResponseEntity<?> getServiceInfo(@com.projectx.main.PathVariable long id) { com.projectx.model.Service service = serviceDAO.getServiceById(id); if (service == null) { com.projectx.main.ServiceController.logger.debug("Failed getting info about service with id={} - it doesn...
public net.sf.json.JSONObject fromIndexEntity(org.wilson.world.model.Entity entity) { if (entity == null) { return null; } net.sf.json.JSONObject obj = new net.sf.json.JSONObject(); obj.put("_id", entity.id); obj.put("name", entity.name); for (org.wilson.world.entity.EntityProperty prope...
public net.sf.json.JSONObject fromIndexEntity(org.wilson.world.model.Entity entity) { if (entity == null) { return null; } net.sf.json.JSONObject obj = new net.sf.json.JSONObject(); for (org.wilson.world.entity.EntityProperty property : this.getIndexedProperties()) { obj.put(property.nam...
public void modifyText(org.eclipse.swt.events.ModifyEvent arg0) { mazeNameToPlay = mazeNameTextBox.getText(); textFlag = true; if ((((((genFlag) && (solveFlag)) && (xFlag)) && (yFlag)) && (zFlag)) && (textFlag)) startGameButton.setEnabled(true); }
public void modifyText(org.eclipse.swt.events.ModifyEvent arg0) { mazeNameToPlay = mazeNameTextBox.getText(); if ((mazeNameToPlay) != null) textFlag = true; if ((((((genFlag) && (solveFlag)) && (xFlag)) && (yFlag)) && (zFlag)) && (textFlag)) startGameButton.setEnabled(true); }
public void initializeAsYarn(java.lang.Boolean autorestartContainer) throws java.lang.Exception { this.autorestartContainer = autorestartContainer; rmClient = org.apache.hadoop.yarn.client.api.async.AMRMClientAsync.createAMRMClientAsync(100, listener); rmClient.init(yarnConfig); nmClient = org.apache.ha...
public void initializeAsYarn(java.lang.Boolean autorestartContainer) throws java.lang.Exception { this.autorestartContainer = autorestartContainer; rmClient = org.apache.hadoop.yarn.client.api.async.AMRMClientAsync.createAMRMClientAsync(100, listener); rmClient.init(yarnConfig); nmClient = org.apache.ha...
public static final java.util.Date convertStringToDate(java.lang.String aMask, java.lang.String strDate) { if ((strDate != null) && ((strDate.trim().length()) != 0)) { com.google.gwt.i18n.client.DateTimeFormat df = com.google.gwt.i18n.client.DateTimeFormat.getFormat(aMask); return df.parse(strDate);...
public static final java.util.Date convertStringToDate(java.lang.String aMask, java.lang.String strDate) { if ((strDate != null) && ((strDate.trim().length()) != 0)) { com.google.gwt.i18n.client.DateTimeFormat df = com.google.gwt.i18n.client.DateTimeFormat.getFormat(aMask); return df.parse(strDate.t...
public com.datasift.client.FutureData<com.datasift.client.pylon.PylonTags> tags(com.datasift.client.pylon.PylonRecording.PylonRecordingId recordingId) { java.net.URI uri = newParams().put("id", recordingId).forURL(config.newAPIEndpointURI(TAGS)); com.datasift.client.FutureData<com.datasift.client.pylon.PylonTag...
public com.datasift.client.FutureData<com.datasift.client.pylon.PylonTags> tags(com.datasift.client.pylon.PylonRecording.PylonRecordingId recordingId) { java.net.URI uri = newParams().put("id", recordingId.id).forURL(config.newAPIEndpointURI(TAGS)); com.datasift.client.FutureData<com.datasift.client.pylon.Pylon...
public int getUserUnreadMessagesN(int userID) { int messagesN = 0; try { java.sql.Statement st = con.createStatement(); java.sql.ResultSet result = st.executeQuery((("select messageID from messages where isread = 0 and isdelete=0 and receiverID = " + userID) + ")")); while (result.next()...
public int getUserUnreadMessagesN(int userID) { int messagesN = 0; try { java.sql.Statement st = con.createStatement(); java.sql.ResultSet result = st.executeQuery(("select messageID from messages where isread = 0 and isdelete=0 and receiverID = " + userID)); while (result.next()) { ...