buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_home); toolbar = ((android.support.v7.widget.Toolbar) (findViewById(R.id.toolbar))); homePresenter = new com.srijan.motosports.features.home.HomePresenter(this); setSu...
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_home); toolbar = ((android.support.v7.widget.Toolbar) (findViewById(R.id.toolbar))); homePresenter = new com.srijan.motosports.features.home.HomePresenter(this); setSu...
public static com.github.vincent_fuchs.comprehensive_testing.model.Risk getEnum(java.lang.String risk) { com.github.vincent_fuchs.comprehensive_testing.model.Risk[] values = com.github.vincent_fuchs.comprehensive_testing.model.Risk.values(); for (com.github.vincent_fuchs.comprehensive_testing.model.Risk value :...
public static com.github.vincent_fuchs.comprehensive_testing.model.Risk getEnum(java.lang.String risk) { com.github.vincent_fuchs.comprehensive_testing.model.Risk[] values = com.github.vincent_fuchs.comprehensive_testing.model.Risk.values(); for (com.github.vincent_fuchs.comprehensive_testing.model.Risk value :...
public static void main(java.lang.String[] args) throws java.net.UnknownHostException { for (int i = 0; i < 10; i++) { java.lang.System.out.println(("Free port: " + (voip.NetUtils.findFreePort()))); } java.net.InetAddress address = java.net.InetAddress.getByName("192.168.1.1"); java.lang.System....
public static void main(java.lang.String[] args) throws java.net.UnknownHostException { for (int i = 0; i < 10; i++) { java.lang.System.out.println(("Free port: " + (voip.NetUtils.findFreePort()))); } java.net.InetAddress address = java.net.InetAddress.getByName("192.168.1.1"); java.lang.System....
public byte[] readBytes() throws java.sql.SQLException { java.lang.Object val = getNextAttributeValue(); if (val == null) { return null; } com.impossibl.postgres.types.CompositeType.Attribute attr = type.getAttribute(currentAttrIdx); if (attr == null) { throw new java.sql.SQLExceptio...
public byte[] readBytes() throws java.sql.SQLException { java.lang.Object val = getNextAttributeValue(); if (val == null) { return null; } com.impossibl.postgres.types.CompositeType.Attribute attr = type.getAttribute(currentAttrIdx); if (attr == null) { throw new java.sql.SQLExceptio...
public void givenVideoInputWithSubtitlesWhenScanningShouldReturnVideoWithSubtitles() throws java.lang.Exception { for (net.cserny.videosMover.model.Video video : videosScanned) { if (video.getInput().toString().contains(service.DOWNLOADS_MOVIE_WITH_SUBTITLE)) { java.util.List<java.nio.file.Path>...
public void givenVideoInputWithSubtitlesWhenScanningShouldReturnVideoWithSubtitles() throws java.lang.Exception { for (net.cserny.videosMover.model.Video video : videosScanned) { if (video.getInput().toString().contains(service.DOWNLOADS_MOVIE_WITH_SUBTITLE)) { java.util.List<java.nio.file.Path>...
public int compare(java.lang.Object element1, java.lang.Object element2) { Brush.VerifyOverlap.VerifyOverlapReducer.OverlapInfo obj1 = ((Brush.VerifyOverlap.VerifyOverlapReducer.OverlapInfo) (element1)); Brush.VerifyOverlap.VerifyOverlapReducer.OverlapInfo obj2 = ((Brush.VerifyOverlap.VerifyOverlapReducer.Overl...
public int compare(java.lang.Object element1, java.lang.Object element2) { Brush.VerifyOverlap.VerifyOverlapReducer.OverlapInfo obj1 = ((Brush.VerifyOverlap.VerifyOverlapReducer.OverlapInfo) (element1)); Brush.VerifyOverlap.VerifyOverlapReducer.OverlapInfo obj2 = ((Brush.VerifyOverlap.VerifyOverlapReducer.Overl...
public void onClick(android.view.View v) { v.setActivated((!(v.isActivated()))); android.content.Intent intent = new android.content.Intent(getActivity(), org.akvo.akvoqr.CameraActivity.class); intent.putExtra(Constant.BRAND, brand); startActivity(intent); getActivity().finish(); }
public void onClick(android.view.View v) { v.setActivated((!(v.isActivated()))); android.content.Intent intent = new android.content.Intent(getActivity(), org.akvo.akvoqr.CameraActivity.class); intent.putExtra(Constant.BRAND, brand); startActivity(intent); }
public int NumSubMbPart(java.lang.String type) { java.lang.System.out.println("implemetation required line 645 NumSubMbPart"); if (type.equals("P_L0_8x8")) { return 1; }else if (type.equals("P_L0_8x4")) { return 2; }else if (type.equals("P_L0_4x8")) { ...
public int NumSubMbPart(java.lang.String type) { if (type.equals("P_L0_8x8")) { return 1; }else if (type.equals("P_L0_8x4")) { return 2; }else if (type.equals("P_L0_4x8")) { return 2; }else if (type.equals("P_L0_4x4")) {...
public void onCreate() { super.onCreate(); if (BuildConfig.DEBUG) com.facebook.stetho.Stetho.initializeWithDefaults(this); android.os.StrictMode.setThreadPolicy(new android.os.StrictMode.ThreadPolicy.Builder().detectDiskReads().detectDiskWrites().detectNetwork().penaltyLog().penaltyDialog().bui...
public void onCreate() { super.onCreate(); if (BuildConfig.DEBUG) com.facebook.stetho.Stetho.initializeWithDefaults(this); android.os.StrictMode.setThreadPolicy(new android.os.StrictMode.ThreadPolicy.Builder().detectDiskReads().detectDiskWrites().detectNetwork().penaltyLog().penaltyDialog().bui...
public int getInt() { try { int r = java.lang.Integer.parseInt(in.readLine()); return r; } catch (java.lang.NumberFormatException | java.io.IOException e) { java.lang.System.out.println(("No response from client with Snake ID of " + (snake.getId()))); java.lang.System.out.println...
public int getInt() { try { int r = java.lang.Integer.parseInt(in.readLine()); return r; } catch (java.lang.NumberFormatException | java.io.IOException e) { isLive = false; closeConnection(); snakeManager.getClients().remove(this); java.lang.System.out.println(("N...
private boolean urlInHashSet(java.net.URL url, java.util.HashSet<java.lang.String> set) { boolean returnBoolean = false; for (java.lang.String setItem : set) { if (com.wordpress.httpspandareaktor.scrapetest.NetworkUtils.urlHostPathMatch(com.wordpress.httpspandareaktor.scrapetest.NetworkUtils.makeURL(set...
private boolean urlInHashSet(java.net.URL url, java.util.HashSet<java.lang.String> set) { boolean returnBoolean = false; for (java.lang.String setItem : set) { if (com.wordpress.httpspandareaktor.scrapetest.NetworkUtils.urlHostPathMatch(com.wordpress.httpspandareaktor.scrapetest.NetworkUtils.makeURL(set...
protected java.util.List<com.facebook.react.ReactPackage> getPackages() { return java.util.Arrays.<com.facebook.react.ReactPackage>asList(new com.facebook.react.shell.MainReactPackage(), new com.microsoft.codepush.react.CodePush("Fa0Ug7tNp1xFH9EShk5GXlBEIXCE4JbRhcGg7", getApplicationContext(), BuildConfig.DEBUG), n...
protected java.util.List<com.facebook.react.ReactPackage> getPackages() { return java.util.Arrays.<com.facebook.react.ReactPackage>asList(new com.facebook.react.shell.MainReactPackage(), new co.apptailor.googlesignin.RNGoogleSigninPackage(), new com.microsoft.codepush.react.CodePush("Fa0Ug7tNp1xFH9EShk5GXlBEIXCE4Jb...
public void testAddInvoice_shouldAddInvoice() throws com.at.ac.tuwien.sepm.ss15.edulium.dao.DAOException, com.at.ac.tuwien.sepm.ss15.edulium.domain.validation.ValidationException, com.at.ac.tuwien.sepm.ss15.edulium.service.ServiceException { com.at.ac.tuwien.sepm.ss15.edulium.domain.Invoice invoice = new com.at.ac....
public void testAddInvoice_shouldAddInvoice() throws com.at.ac.tuwien.sepm.ss15.edulium.dao.DAOException, com.at.ac.tuwien.sepm.ss15.edulium.domain.validation.ValidationException, com.at.ac.tuwien.sepm.ss15.edulium.service.ServiceException { com.at.ac.tuwien.sepm.ss15.edulium.domain.Invoice invoice = new com.at.ac....
public void testAddInvoice_shouldFailWithNullGrossAmount() throws com.at.ac.tuwien.sepm.ss15.edulium.domain.validation.ValidationException, com.at.ac.tuwien.sepm.ss15.edulium.service.ServiceException { com.at.ac.tuwien.sepm.ss15.edulium.domain.Invoice invoice = new com.at.ac.tuwien.sepm.ss15.edulium.domain.Invoice(...
public void testAddInvoice_shouldFailWithNullGrossAmount() throws com.at.ac.tuwien.sepm.ss15.edulium.domain.validation.ValidationException, com.at.ac.tuwien.sepm.ss15.edulium.service.ServiceException { com.at.ac.tuwien.sepm.ss15.edulium.domain.Invoice invoice = new com.at.ac.tuwien.sepm.ss15.edulium.domain.Invoice(...
protected static org.olap4j.mdx.IdentifierNode getIdentifier(org.saiku.query.AbstractQuerySet... identifiers) { java.lang.String identifier = ""; for (int i = 0; i < (identifiers.length); i++) { if (i == 0) { identifier = "~" + (identifiers[0].getName()); }else { identifi...
protected static org.olap4j.mdx.IdentifierNode getIdentifier(java.lang.String... identifiers) { java.lang.String identifier = ""; for (int i = 0; i < (identifiers.length); i++) { if (i == 0) { identifier = "~" + (identifiers[0]); }else { identifier += "_" + (identifiers[i...
protected void onAttachedToWindow() { super.onAttachedToWindow(); android.content.Context context = getContext(); android.widget.FrameLayout headViewLayout = new android.widget.FrameLayout(context); com.cjj.LayoutParams layoutParams = new com.cjj.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, 0); ...
protected void onAttachedToWindow() { super.onAttachedToWindow(); android.content.Context context = getContext(); android.widget.FrameLayout headViewLayout = new android.widget.FrameLayout(context); com.cjj.LayoutParams layoutParams = new com.cjj.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, 0); ...
public void simpleInitApp() { setPauseOnLostFocus(false); this.gamePlayers = new java.util.LinkedList<messages.Player>(); this.gamePlayerCharacters = new java.util.ArrayList(); this.player = null; this.pac = null; createSkybg(); initLightandShadow(); initMaterial(); initKeys(); i...
public void simpleInitApp() { setPauseOnLostFocus(false); this.gamePlayers = new java.util.ArrayList(); this.gamePlayerCharacters = new java.util.ArrayList(); this.player = null; this.pac = null; createSkybg(); initLightandShadow(); initMaterial(); initKeys(); initGui(); init...
protected void readGraphicsFromLibrary(int templateID, double xCoor, double yCoor) { if ((com.nkoiv.mists.game.Mists.structureLibrary) != null) { com.nkoiv.mists.game.gameobject.Structure dummy = Mists.structureLibrary.create(templateID); if (dummy == null) return ; this...
protected void readGraphicsFromLibrary(int templateID, double xCoor, double yCoor) { if ((com.nkoiv.mists.game.Mists.structureLibrary) != null) { com.nkoiv.mists.game.gameobject.Structure dummy = Mists.structureLibrary.create(templateID); if (dummy == null) return ; this...
private static int findLeftPivot(int[] array, int k) { if ((array.length) > 0) { if (k == 0) return -1; else { int i = project2.NonInitiator.randRange(0, k); return array[i]; } }else return -1; }
private static int findLeftPivot(int[] array, int k) { if (k == (-1)) return -1; else if ((array.length) > 0) { if (k == 0) return -1; else { int i = project2.NonInitiator.randRange(0, k); return array[i]; } ...
public javax.naming.Reference getDataSourceFactoryReference() throws org.wso2.carbon.datasource.core.exception.DataSourceException { if ((dataSourceFactoryReference) == null) { dataSourceFactoryReference = new javax.naming.Reference(org.wso2.carbon.datasource.rdbms.hikari.HikariRDBMSDataSource.JAVAX_DATASOU...
public javax.naming.Reference getDataSourceFactoryReference() throws org.wso2.carbon.datasource.core.exception.DataSourceException { java.util.Map<java.lang.String, java.lang.String> poolConfigMap = org.wso2.carbon.datasource.utils.DataSourceUtils.extractPrimitiveFieldNameValuePairs(this.config); poolConfigMap....
private java.lang.String getSubCommandDescriptions(net.minecraft.command.ICommandSender sender) { final java.lang.StringBuilder builder = new java.lang.StringBuilder(net.minecraft.client.resources.I18n.format(this.getUsage(sender))); for (final net.minecraft.command.ICommand command : this.getSubCommands()) { ...
private java.lang.String getSubCommandDescriptions(net.minecraft.command.ICommandSender sender) { final java.lang.StringBuilder builder = new java.lang.StringBuilder(); for (final net.minecraft.command.ICommand command : this.getSubCommands()) { builder.append(("\n" + (command.getUsage(sender)))); }...
public void run() { while (!(application.Controller.getInstance(0).mutexLock)) { application.Controller.getInstance(0).mutexLock = true; application.Controller.getInstance(0).decode(); application.Controller.getInstance(0).mutexLock = false; } }
public void run() { while (true) { if ((application.Controller.getInstance(0).mutexLock) == (!true)) { application.Controller.getInstance(0).mutexLock = true; application.Controller.getInstance(0).decode(); application.Controller.getInstance(0).mutexLock = false; ...
public void onClick(android.view.View v) { if (((selectedDevelopment) != null) && (!(selectedDevelopment.isEmpty()))) { mSharedPrefEditor.putString(Constants.KEY_HOUSING_DEVELOPMENT, selectedDevelopment).apply(); android.content.Intent intent = new android.content.Intent(this, com.nychareport.backlo...
public void onClick(android.view.View v) { if (((selectedDevelopment) != null) && (!(selectedDevelopment.isEmpty()))) { mSharedPrefEditor.putString(Constants.KEY_HOUSING_DEVELOPMENT, selectedDevelopment).apply(); android.content.Intent intent = new android.content.Intent(this, com.nychareport.backlo...
public void testIsGCEResultValid() throws java.lang.InterruptedException { latch = new java.util.concurrent.CountDownLatch(com.elorri.android.builditbigger.ApplicationTest.COUNT_LATCH); com.elorri.android.builditbigger.GCEndpointsApiService task = new com.elorri.android.builditbigger.GCEndpointsApiService(null)...
public void testIsGCEResultValid() throws java.lang.InterruptedException { latch = new java.util.concurrent.CountDownLatch(com.elorri.android.builditbigger.ApplicationTest.COUNT_LATCH); com.elorri.android.builditbigger.GCEndpointsApiService task = new com.elorri.android.builditbigger.GCEndpointsApiService(null)...
public net.masterthought.dlanguage.highlighting.annotation.Problems checkFileSyntax(@org.jetbrains.annotations.NotNull com.intellij.psi.PsiFile file) { final java.lang.String dubPath = ToolKey.DUB_KEY.getPath(file.getProject()); if (dubPath == null) return new net.masterthought.dlanguage.highlighting.an...
public net.masterthought.dlanguage.highlighting.annotation.Problems checkFileSyntax(@org.jetbrains.annotations.NotNull com.intellij.psi.PsiFile file) { final java.lang.String dubPath = ToolKey.DUB_KEY.getPath(file.getProject()); if (dubPath == null) return new net.masterthought.dlanguage.highlighting.an...
public java.util.List<org.opennms.web.enlinkd.LldpLinkNode> getLldpLinks(int nodeId) { java.util.List<org.opennms.web.enlinkd.LldpLinkNode> nodelinks = new java.util.ArrayList<org.opennms.web.enlinkd.LldpLinkNode>(); for (org.opennms.netmgt.model.LldpLink link : m_lldpLinkDao.findByNodeId(java.lang.Integer.valu...
public java.util.List<org.opennms.web.enlinkd.LldpLinkNode> getLldpLinks(int nodeId) { java.util.List<org.opennms.web.enlinkd.LldpLinkNode> nodelinks = new java.util.ArrayList<org.opennms.web.enlinkd.LldpLinkNode>(); for (org.opennms.netmgt.model.LldpLink link : m_lldpLinkDao.findByNodeId(java.lang.Integer.valu...
private int getPlayerRank() { int rank = -1; int count = 0; for (int i = 0; i < (Game.HI_SCORES.size()); i++) { if ((player.getScore()) >= (Game.HI_SCORES.get(i).getScore())) rank = (Game.HI_SCORES.size()) - (++count); } return rank; }
public int getPlayerRank() { int rank = -1; int count = 0; for (int i = 0; i < (Game.HI_SCORES.size()); i++) { if ((player.getScore()) >= (Game.HI_SCORES.get(i).getScore())) rank = (Game.HI_SCORES.size()) - (++count); } return rank; }
private java.lang.String editCmd(java.lang.String s) { if (s.contains("CMD")) { java.lang.System.out.println(("OLD: " + s)); java.lang.String c = s.replaceAll(".*?CMD ", "").replaceAll("\\[", "").replaceAll("\\]", "").replaceAll("\"", ""); java.lang.System.out.println(("NEW: " + c)); ...
private java.lang.String editCmd(java.lang.String s) { if (s.contains("CMD")) { java.lang.String c = s.replaceAll(".*?CMD ", "").replaceAll("\\[", "").replaceAll("\\]", "").replaceAll("\"", ""); return c; }else return null; }
public void addUser(final java.lang.String iName, java.lang.String iPassword, final java.lang.String iPermissions) throws java.io.IOException { if (iPassword == null) iPassword = com.orientechnologies.orient.core.security.OSecurityManager.instance().digest2String(java.lang.String.valueOf(random.nextLong()),...
public void addUser(final java.lang.String iName, java.lang.String iPassword, final java.lang.String iPermissions) throws java.io.IOException { if (iPassword == null) iPassword = com.orientechnologies.orient.core.security.OSecurityManager.instance().digest2String(java.lang.String.valueOf(random.nextLong()),...
public void onClick(android.view.View view) { final int starDrawable = (!star) ? R.drawable.ic_star_selected : R.drawable.ic_star_unselected; starView.setImageDrawable(android.support.v4.content.ContextCompat.getDrawable(getActivity().getApplicationContext(), starDrawable)); bundle.putBoolean(Constants.STAR...
public void onClick(android.view.View view) { final boolean star = !(bundle.getBoolean(Constants.STAR)); final int starDrawable = (star) ? R.drawable.ic_star_selected : R.drawable.ic_star_unselected; starView.setImageDrawable(android.support.v4.content.ContextCompat.getDrawable(getActivity().getApplicationC...
protected java.util.List<java.lang.String> validateNoIntersectingInterval(com.jraska.vsb.or1.data.Output output) { java.util.List<com.jraska.vsb.or1.schedule.validation.NoWaitFlowShopValidator.IntervalWrapper>[] machineIntervals = getIntervalsForMachines(output); java.util.List<java.lang.String> validationError...
protected java.util.List<java.lang.String> validateNoIntersectingInterval(com.jraska.vsb.or1.data.Output output) { java.util.List<com.jraska.vsb.or1.schedule.validation.NoWaitFlowShopValidator.IntervalWrapper>[] machineIntervals = getIntervalsForMachines(output); java.util.List<java.lang.String> validationError...
private boolean hasTechnologyChanged(final com.qcadoo.model.api.Entity order, final com.qcadoo.model.api.Entity technology) { com.qcadoo.model.api.Entity existingOrder = getExistingOrder(order); if (existingOrder == null) { return false; } com.qcadoo.model.api.Entity existingOrderTechnology = ex...
private boolean hasTechnologyChanged(final com.qcadoo.model.api.Entity order, final com.qcadoo.model.api.Entity technology) { com.qcadoo.model.api.Entity existingOrder = getExistingOrder(order); if (existingOrder == null) { return false; } com.qcadoo.model.api.Entity existingOrderTechnology = ex...
public Protocol.Log toProtocol() { retroscope.net.protocol.Protocol.Log.Builder builder = super.toProtocol().toBuilder(); builder.setDataMap(retroscope.net.protocol.ProtocolHelpers.retroMapToProtocol(dataMap, this.name, head.getTime().toLong())); return builder.build(); }
public Protocol.Log toProtocol() { retroscope.net.protocol.Protocol.Log.Builder builder = super.toProtocol().toBuilder(); if ((head) != null) { builder.setDataMap(retroscope.net.protocol.ProtocolHelpers.retroMapToProtocol(dataMap, this.name, head.getTime().toLong())); } return builder.build(); }
private void incrementScore() { (com.syzible.irishnoungenders.fragments.MainFrag.currentScore)++; highScoreTV.setText(java.lang.String.valueOf(com.syzible.irishnoungenders.fragments.MainFrag.currentScore)); if ((com.syzible.irishnoungenders.fragments.MainFrag.currentScore) > (com.syzible.irishnoungenders.ut...
private void incrementScore() { (com.syzible.irishnoungenders.fragments.MainFrag.currentScore)++; highScoreTV.setText(java.lang.String.valueOf(com.syzible.irishnoungenders.fragments.MainFrag.currentScore)); if ((com.syzible.irishnoungenders.fragments.MainFrag.currentScore) > (com.syzible.irishnoungenders.ut...
public void createTransactionWindow() { transactionStage = new javafx.stage.Stage(); isTransactionWindowActive = true; javafx.scene.layout.BorderPane borderRoot = new javafx.scene.layout.BorderPane(); borderRoot.setTop(transactionsMenuBar()); updateTransactionLabel("1"); borderRoot.setCenter(tra...
public void createTransactionWindow() { transactionStage = new javafx.stage.Stage(); isTransactionWindowActive = true; javafx.scene.layout.BorderPane borderRoot = new javafx.scene.layout.BorderPane(); borderRoot.setTop(transactionsMenuBar()); updateTransactionLabel(); borderRoot.setCenter(transa...
public void handle(javafx.event.ActionEvent event) { java.lang.String point = cmdAnimator.Prompts.promptUserForPoint(); cmdAnimator.GUI.getInstance().buttonExecuteCalled = true; if (point.equalsIgnoreCase("background")) { cmdAnimator.GuiCommands.executeBackgroundImageAdditionCommand(cmdAnimator.GUI....
public void handle(javafx.event.ActionEvent event) { java.lang.String point = cmdAnimator.Prompts.promptUserForPoint(); cmdAnimator.GUI.getInstance().buttonExecuteCalled = true; if ((point != null) && (point.equalsIgnoreCase("background"))) { cmdAnimator.GuiCommands.executeBackgroundImageAdditionCom...
public void onError(com.androidnetworking.error.ANError anError) { try { postid = null; android.util.Log.d(in.reweyou.reweyou.UserChat.TAG, ("onError: " + (anError.getResponse()))); userChatAdapter.changestateofsendingmessage(false); } catch (java.lang.Exception e) { e.printStack...
public void onError(com.androidnetworking.error.ANError anError) { try { android.util.Log.d(in.reweyou.reweyou.UserChat.TAG, ("onError: " + (anError.getResponse()))); userChatAdapter.changestateofsendingmessage(false); } catch (java.lang.Exception e) { e.printStackTrace(); } }
private void removeInteractorLink(org.reactome.web.diagram.client.InteractorLink link) { org.reactome.web.diagram.data.InteractorsContent interactors = context.getInteractors(); if (link instanceof org.reactome.web.diagram.client.DynamicLink) { org.reactome.web.diagram.client.DynamicLink aux = ((org.rea...
private void removeInteractorLink(org.reactome.web.diagram.client.InteractorLink link) { org.reactome.web.diagram.data.InteractorsContent interactors = context.getInteractors(); if (link instanceof org.reactome.web.diagram.client.DynamicLink) { org.reactome.web.diagram.client.DynamicLink aux = ((org.rea...
private java.lang.String power(int slotNumber, int action) throws java.lang.Exception { byte[] response = new byte[0]; try { response = reader.power(slotNumber, action); } catch (com.acs.smartcard.ReaderException e) { throw new java.lang.Exception(e.getMessage()); } return toHexStrin...
private java.lang.String power(int slotNumber, int action) throws java.lang.Exception { byte[] response = new byte[0]; try { response = reader.power(slotNumber, action); } catch (com.acs.smartcard.ReaderException e) { throw new java.lang.Exception(e.getMessage()); } return toHexStrin...
public void onClick(android.view.View v) { java.util.Calendar date = java.util.Calendar.getInstance(); date.setTime(mDate); android.app.DatePickerDialog dialog = new android.app.DatePickerDialog(this, mDateListener, date.get(java.util.Calendar.YEAR), date.get(java.util.Calendar.MONTH), date.get(java.util.Ca...
public void onClick(android.view.View v) { java.util.Calendar date = java.util.Calendar.getInstance(); date.setTime(mDate); android.app.DatePickerDialog dialog = new android.app.DatePickerDialog(this, mDateListener, date.get(java.util.Calendar.YEAR), date.get(java.util.Calendar.MONTH), date.get(java.util.Ca...
public edu.hs.bremen.model.dto.OrderDto deleteBasketEntry(java.lang.String userUuid, edu.hs.bremen.model.dto.BasketEntryDto basketEntryDto) { final edu.hs.bremen.model.UserEntity userEntity = userManager.getUser(userUuid); final edu.hs.bremen.model.BasketEntryEntity basketEntryEntity = basketManager.getUpdatedB...
public edu.hs.bremen.model.dto.OrderDto deleteBasketEntry(java.lang.String userUuid, edu.hs.bremen.model.dto.BasketEntryDto basketEntryDto) { final edu.hs.bremen.model.UserEntity userEntity = userManager.getUser(userUuid); final edu.hs.bremen.model.BasketEntryEntity basketEntryEntity = basketManager.getUpdatedB...
public void test12_getRows() { try { deleteRows(); test01_addRowPass(); test01_addRowPass(); com.jayway.restassured.module.mockmvc.RestAssuredMockMvc.given().header(getHeader()).contentType("application/json").when().get("/api/restricted/session").then().statusCode(200).body("size()"...
public void test12_getRows() { deleteRows(); test01_addRowPass(); test01_addRowPass(); com.jayway.restassured.module.mockmvc.RestAssuredMockMvc.given().header(getHeader()).contentType("application/json").when().get("/api/restricted/session").then().statusCode(200).body("size()", org.hamcrest.core.IsEqua...
private void show() { currentTime.setVisibility(View.VISIBLE); finalTime.setVisibility(View.VISIBLE); pause.setVisibility(View.VISIBLE); seekBar.setVisibility(View.VISIBLE); title.setVisibility(View.VISIBLE); note.setVisibility(View.VISIBLE); add.setVisibility(View.VISIBLE); edit.setVisi...
private void show() { currentTime.setVisibility(View.VISIBLE); finalTime.setVisibility(View.VISIBLE); pause.setVisibility(View.VISIBLE); seekBar.setVisibility(View.VISIBLE); title.setVisibility(View.VISIBLE); note.setVisibility(View.VISIBLE); add.setVisibility(View.VISIBLE); edit.setVisi...
public static boolean isSerializedType(final java.lang.reflect.Field iField) { com.orientechnologies.orient.object.enhancement.OObjectEntitySerializer.OObjectEntitySerializedSchema serializedSchema = com.orientechnologies.orient.object.enhancement.OObjectEntitySerializer.getCurrentSerializedSchema(); if (!(seri...
public static boolean isSerializedType(final java.lang.reflect.Field iField) { final com.orientechnologies.orient.object.enhancement.OObjectEntitySerializer.OObjectEntitySerializedSchema serializedSchema = com.orientechnologies.orient.object.enhancement.OObjectEntitySerializer.getCurrentSerializedSchema(); if (...
public void SaveCourse() { java.util.UUID uuid = java.util.UUID.randomUUID(); OTS.Aig.KnowledgeMapDataServices.CourseElement courseElement = new OTS.Aig.KnowledgeMapDataServices.CourseElement(); courseElement.Id = uuid.toString(); courseElement.Number = "1266"; courseElement.Name = "Testing and Test...
public void SaveCourse() { java.util.UUID uuid = java.util.UUID.randomUUID(); OTS.Aig.KnowledgeMapDataServices.CourseElement courseElement = new OTS.Aig.KnowledgeMapDataServices.CourseElement(); courseElement.Id = uuid.toString(); courseElement.Name = "Testing and Test"; courseElement.Createdby = 2;...
public static java.sql.Date convertNewsApiDateStringToDate(java.lang.String date) { java.lang.String year = date.substring(0, 4); java.lang.String month = date.substring(5, 7); java.lang.String day = date.substring(8, 10); long timeInMilliSec = new java.util.GregorianCalendar(java.lang.Integer.parseInt(...
public static java.sql.Date convertNewsApiDateStringToDate(java.lang.String date) { if (date == null) return null; java.lang.String year = date.substring(0, 4); java.lang.String month = date.substring(5, 7); java.lang.String day = date.substring(8, 10); long timeInMilliSec = new java.ut...
public void onCheckedChanged(android.widget.CompoundButton compoundButton, boolean b) { switch (compoundButton.getId()) { case R.id.cod_client_fragment : break; case R.id.qr_client_fragment : if (b) _qrAmountll.setVisibility(View.VISIBLE); else ...
public void onCheckedChanged(android.widget.CompoundButton compoundButton, boolean b) { switch (compoundButton.getId()) { case R.id.cod_client_fragment : break; case R.id.qr_client_fragment : if (b) _qrAmountll.setVisibility(View.VISIBLE); else ...
public void registerMbean() { if (!(mbeanRegistered)) { java.security.AccessController.doPrivileged(new java.security.PrivilegedAction<java.lang.Object>() { @java.lang.Override public java.lang.Object run() { javax.management.ObjectName objectName = com.alibaba.druid....
public void registerMbean() { if (!(mbeanRegistered)) { java.security.AccessController.doPrivileged(new java.security.PrivilegedAction<java.lang.Object>() { @java.lang.Override public java.lang.Object run() { javax.management.ObjectName objectName = com.alibaba.druid....
public void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); android.os.Bundle b = getArguments(); java.lang.String fileName = b.getString(com.koroshiya.fragments.ReadFragment.ARG_FILE, ""); android.util.Log.i("FLA", ("Create: " + fileName)); int page = b.getInt(c...
public void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); android.os.Bundle b = getArguments(); java.lang.String fileName = b.getString(com.koroshiya.fragments.ReadFragment.ARG_FILE, ""); android.util.Log.i("FLA", ("Create: " + fileName)); int page = b.getInt(c...
private void load() { if ((realMap) == null) { realMap = WPI.CampusMap.Recording.Serialization.Serializer.realLoad(mapName); if ((realMap) == null) { realMap = new WPI.CampusMap.Backend.Core.Map.RealMap(mapName); realMap.validatePoints(); }else { realMap.v...
private void load() { if ((realMap) == null) { realMap = WPI.CampusMap.Recording.Serialization.Serializer.realLoad(mapName); if ((realMap) == null) { realMap = new WPI.CampusMap.Backend.Core.Map.RealMap(mapName); } realMap.validatePoints(); } }
public static java.util.UUID getSnomedDescriptionType(int type) { switch (type) { case 0 : return IsaacMetadataAuxiliaryBinding.DEFINITION_DESCRIPTION_TYPE.getPrimodialUuid(); case 1 : return IsaacMetadataAuxiliaryBinding.PREFERRED.getPrimodialUuid(); case 2 : ...
public static java.util.UUID getSnomedDescriptionType(int type) { switch (type) { case 0 : return IsaacMetadataAuxiliaryBinding.DEFINITION_DESCRIPTION_TYPE.getPrimodialUuid(); case 2 : return IsaacMetadataAuxiliaryBinding.SYNONYM.getPrimodialUuid(); case 3 : ...
public void run() { if (((this.getMappingsLocation()) != null) && ((this.getSrcLocation()) != null)) { this.sendToConsole((((("Preparing to apply mappings to '" + (this.getSrcLocation())) + "' from '") + (this.getMappingsLocation())) + "'")); (remapper = new com.arisux.mappingpatcher.Remapper(this, ...
public void run() { if (((this.getMappingsLocation()) != null) && ((this.getSrcLocation()) != null)) { this.sendToConsole((((("Preparing to apply mappings to '" + (this.getSrcLocation())) + "' from '") + (this.getMappingsLocation())) + "'")); (remapper = new com.arisux.mappingpatcher.Remapper(this))...
public void setMatrixMode(final org.anddev.andengine.opengl.util.GLMatrixStacks.MatrixMode pMatrixMode) { this.mMatrixMode = pMatrixMode; switch (this.mMatrixMode) { case PROJECTION : this.mCurrentGLMatrixStack = this.mProjectionGLMatrixStack; return ; case MODELVIEW : ...
public void setMatrixMode(final org.anddev.andengine.opengl.util.GLMatrixStacks.MatrixMode pMatrixMode) { if (pMatrixMode != (this.mMatrixMode)) { this.mMatrixMode = pMatrixMode; switch (this.mMatrixMode) { case PROJECTION : this.mCurrentGLMatrixStack = this.mProjectionGL...
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); closeAppIfRequired(); setContentView(R.layout.main_menu); findViewById(R.id.new_game_button).setOnClickListener(this); findViewById(R.id.records_button).setOnClickListener(this); findViewById(R.id...
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main_menu); findViewById(R.id.new_game_button).setOnClickListener(this); findViewById(R.id.records_button).setOnClickListener(this); findViewById(R.id.about_the_game_button).se...
private int getXLocation(int position, com.edulectronics.tinycircuit.Models.Components.Connectors.ConnectionPointOrientation orientation) { switch (orientation) { case Top : case Bottom : return (((getColumn(position)) - 1) * (cellSize)) + ((int) (0.5 * (cellSize))); case Left : ...
public int getXLocation(int position, com.edulectronics.tinycircuit.Models.Components.Connectors.ConnectionPointOrientation orientation) { switch (orientation) { case Top : case Bottom : return (((getColumn(position)) - 1) * (cellSize)) + ((int) (0.5 * (cellSize))); case Left : ...
private final java.lang.Float calculateRate(final java.lang.Long counterValue, final java.util.concurrent.TimeUnit timeUnit) { java.lang.Float result = null; if (counterValue != null) { final java.lang.Long durationInNs = getDurationInNs(); if ((durationInNs != null) && ((durationInNs.longValue(...
private final java.lang.Float calculateRate(final java.lang.Long counterValue, final java.lang.Long durationInNs, final java.util.concurrent.TimeUnit timeUnit) { java.lang.Float result = null; if (((counterValue != null) && (durationInNs != null)) && ((durationInNs.longValue()) > 0L)) { result = (counte...
public com.simpledb.result.Result call() throws java.lang.Exception { com.simpledb.memtable.Memtable<java.lang.String> memtable = processor.getMemTable(); java.lang.Object value = memtable.getMap().get(input.trim()); com.simpledb.result.Result result = null; if (value != null) { result = new com...
public com.simpledb.result.Result call() throws java.lang.Exception { com.simpledb.memtable.Memtable<java.lang.String, java.lang.String> memtable = processor.getMemTable(); java.lang.Object value = memtable.getValue(input.trim()); com.simpledb.result.Result result = null; if (value != null) { re...
public void onClick(android.view.View v) { java.lang.String movieId = ((java.lang.String) (v.getTag(R.id.poster_image_view))); android.content.Intent detailsActivityIntent = new android.content.Intent(this.getActivity(), br.com.dgimenes.popmovies.DetailsActivity.class); detailsActivityIntent.putExtra(Detail...
public void onClick(android.view.View v) { java.lang.String movieId = ((java.lang.String) (v.getTag(R.id.poster_image_view))); android.content.Intent detailsActivityIntent = new android.content.Intent(getActivity(), br.com.dgimenes.popmovies.DetailsActivity.class); detailsActivityIntent.putExtra(DetailsActi...
public void take(double amount) { double sum = (curSum) + ((decimals) / 100.0); sum -= amount; curSum = ((int) (sum)); decimals = ((int) ((sum - (curSum)) * 100)); }
public void take(double amount) { double sum = (curSum) + ((decimals) / 100.0); sum -= amount; curSum = ((int) (sum)); decimals = ((int) (java.lang.Math.round(((sum * 100) - ((curSum) * 100))))); }
public void updateResults() { if (com.testing.Cliniops.Cliniops_ReusableMethodsTest.browserName.equalsIgnoreCase("Firefox")) { if (com.testing.Cliniops.Cliniops_ReusableMethodsTest.isPass) com.testing.Cliniops.Cliniops_ReusableMethodsTest.firefoxRes = "Pass"; else com.testing...
public void updateResults() { if (com.testing.Cliniops.Cliniops_ReusableMethodsTest.browserName.equalsIgnoreCase("Firefox")) { if (com.testing.Cliniops.Cliniops_ReusableMethodsTest.isPass) com.testing.Cliniops.Cliniops_ReusableMethodsTest.firefoxRes = "Pass"; else com.testing...
public java.lang.String leftShift(java.lang.String input, int times) { java.lang.String temp = input; java.lang.StringBuilder strb = new java.lang.StringBuilder(); for (int i = 0; i < times; i++) { strb.append(temp.substring(1)); strb.append(temp.substring(0, 1)); temp = strb.toStrin...
public java.lang.String leftShift(java.lang.String input, int times) { java.lang.String temp = input; java.lang.StringBuilder strb = new java.lang.StringBuilder(); for (int i = 0; i < times; i++) { strb.append(temp.substring(1)); strb.append(temp.substring(0, 1)); temp = strb.toStrin...
private void initializeCorps() { earth = new itba.ss.TP4_MarsTravel.Particle(0, 6371000.0, 1.391734353396533E11, (-5.71059040560652E10), 10801.963811159256, 27565.215006898346, 5.972E24); sun = new itba.ss.TP4_MarsTravel.Particle(1, 6.957E8, 0, 0, 0, 0, 1.988E30); mars = new itba.ss.TP4_MarsTravel.Particle(...
private void initializeCorps() { earth = new itba.ss.TP4_MarsTravel.Particle(0, 6371000.0, 1.391734353396533E11, (-5.71059040560652E10), 10801.963811159256, 27565.215006898346, 5.972E24); sun = new itba.ss.TP4_MarsTravel.Particle(1, 6.957E8, 0, 0, 0, 0, 1.988E30); mars = new itba.ss.TP4_MarsTravel.Particle(...
protected void execLoadSession() throws org.eclipse.scout.commons.exception.ProcessingException { java.lang.Boolean createTunnelToServerBeans = org.eclipse.scout.rt.platform.config.CONFIG.getPropertyValue(org.eclipse.scout.rt.shared.SharedConfigProperties.CreateTunnelToServerBeansProperty.class); if (!createTun...
protected void execLoadSession() throws org.eclipse.scout.commons.exception.ProcessingException { java.lang.Boolean createTunnelToServerBeans = org.eclipse.scout.rt.platform.config.CONFIG.getPropertyValue(org.eclipse.scout.rt.shared.SharedConfigProperties.CreateTunnelToServerBeansProperty.class); createTunnelTo...
public void testPropertyDuplication() { org.apache.sis.feature.DefaultFeatureType city = org.apache.sis.feature.DefaultFeatureTypeTest.city(); city = new org.apache.sis.feature.DefaultFeatureType(java.util.Collections.singletonMap(DefaultFeatureType.NAME_KEY, "New-City"), false, new org.apache.sis.feature.Defau...
public void testPropertyDuplication() { org.apache.sis.feature.DefaultFeatureType city = org.apache.sis.feature.DefaultFeatureTypeTest.city(); city = new org.apache.sis.feature.DefaultFeatureType(org.apache.sis.feature.DefaultFeatureTypeTest.name("New-City"), false, new org.apache.sis.feature.DefaultFeatureType...
private void setupLogo() { android.app.FragmentManager fm = getFragmentManager(); android.app.Fragment fragmentLogo = fm.findFragmentById(R.id.fragmentContainer); if (fragmentLogo == null) { fragmentLogo = new testproject.halfmoonstudios.com.ponder.LogoFragment(); fm.beginTransaction().add(R...
private void setupLogo() { android.app.Fragment fragmentLogo = fm.findFragmentById(R.id.fragmentContainer); if (fragmentLogo == null) { fragmentLogo = new testproject.halfmoonstudios.com.ponder.LogoFragment(); fm.beginTransaction().add(R.id.fragmentContainer, fragmentLogo).commit(); cd =...
public void setHit(boolean isHit) { this.isHit = isHit; if (!(name.contains("water"))) { java.lang.System.out.println(name); try { component.setActiveAnimationIndex((isHit ? 1 : 0)); } catch (java.lang.IllegalArgumentException iae) { de.hsb.ismi.jbs.engine.utility...
public void setHit(boolean isHit) { this.isHit = isHit; if (!(name.contains("water"))) { try { component.setActiveAnimationIndex((isHit ? 1 : 0)); } catch (java.lang.IllegalArgumentException iae) { de.hsb.ismi.jbs.engine.utility.debug.DebugLog.logError(iae); } ...
public java.lang.String getMessage() { if ((e) instanceof cz.upol.vanusanik.paralang.runtime.PLClass) { cz.upol.vanusanik.paralang.runtime.PLClass c = ((cz.upol.vanusanik.paralang.runtime.PLClass) (e)); cz.upol.vanusanik.paralang.plang.PLangObject runnable = c.__getkey(BaseException.__messageGetter)...
public java.lang.String getMessage() { if ((e) instanceof cz.upol.vanusanik.paralang.runtime.PLClass) { cz.upol.vanusanik.paralang.runtime.PLClass c = ((cz.upol.vanusanik.paralang.runtime.PLClass) (e)); cz.upol.vanusanik.paralang.plang.PLangObject runnable = c.__getkey(BaseException.__messageGetter)...
public java.util.List<com.manev.quislisting.service.taxonomy.dto.DlCategoryDTO> dlCategoryToDlCategoryDtoFlat(org.springframework.data.domain.Page<com.manev.quislisting.domain.taxonomy.discriminator.DlCategory> page) { java.util.Set<java.lang.Long> ids = new java.util.HashSet<>(); java.util.List<com.manev.quisl...
public java.util.List<com.manev.quislisting.service.taxonomy.dto.DlCategoryDTO> dlCategoryToDlCategoryDtoFlat(org.springframework.data.domain.Page<com.manev.quislisting.domain.taxonomy.discriminator.DlCategory> page) { java.util.Set<java.lang.Long> ids = new java.util.HashSet<>(); java.util.List<com.manev.quisl...
public WPI.CampusMap.Backend.ConnectionPoint getConnectionPoint() { WPI.CampusMap.Backend.ConnectionPoint temp = new WPI.CampusMap.Backend.ConnectionPoint(this.getCoord(), this.getType(), this.getId(), this.getMap(), "", ""); for (WPI.CampusMap.Backend.Point point : this.getNeighborsP()) { temp.addNeigh...
public WPI.CampusMap.Backend.ConnectionPoint getConnectionPoint() { WPI.CampusMap.Backend.ConnectionPoint temp = new WPI.CampusMap.Backend.ConnectionPoint(this.getCoord(), this.getType(), this.getId(), this.getMap(), "", ""); for (WPI.CampusMap.Backend.Point point : this.getNeighborsP()) { java.lang.Sys...
public void onDestroyView() { super.onDestroyView(); org.dcxz.designdigger.app.App.getQueue().cancelAll(((org.dcxz.designdigger.fragment.MainFragment.TAG) + (subTag))); org.dcxz.designdigger.app.App.getQueue().cancelAll(ShotsAdapter.TAG); if ((receiver) != null) { getActivity().unregisterReceive...
public void onDestroyView() { super.onDestroyView(); org.dcxz.designdigger.app.App.getQueue().cancelAll(subTag); org.dcxz.designdigger.app.App.getQueue().cancelAll(ShotsAdapter.TAG); if ((receiver) != null) { getActivity().unregisterReceiver(receiver); } }
public boolean cancelSeats(int no) { if (no > (this.booked)) { return false; }else { this.booked = -no; this.availability += no; this.setChanged(); this.notifyObservers(this.availability); this.clearChanged(); return true; } }
public boolean cancelSeats(int no) { if ((no > (this.booked)) && (no > 0)) { return false; }else { this.booked = -no; this.availability += no; this.setChanged(); this.notifyObservers(this.availability); this.clearChanged(); return true; } }
public android.view.View onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState) { android.view.View loadedFragment = inflater.inflate(R.layout.fragment_manage_group_products, container, false); initializeWidgets(loadedFragment); setupToolba...
public android.view.View onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState) { android.view.View loadedFragment = inflater.inflate(R.layout.fragment_manage_group_products, container, false); initializeWidgets(loadedFragment); setupToolba...
public void validate(java.lang.Object target, org.springframework.validation.Errors errors) { com.pce.domain.dto.PukGroupForPukDto pukGroupDto = ((com.pce.domain.dto.PukGroupForPukDto) (target)); long pukGroupId = pukGroupDto.getPukGroupId(); java.util.Optional<com.pce.domain.PukGroup> pukGroupById = pukGro...
public void validate(java.lang.Object target, org.springframework.validation.Errors errors) { com.pce.domain.dto.PukGroupForPukDto pukGroupDto = ((com.pce.domain.dto.PukGroupForPukDto) (target)); if (pukGroupDto != null) { long pukGroupId = pukGroupDto.getPukGroupId(); java.util.Optional<com.pce...
private void populateBoard() { this.boardSquares = new location.Square[cluedo.Board.BOARD_WIDTH][cluedo.Board.BOARD_HEIGHT]; for (int y = 0; y < (cluedo.Board.BOARD_HEIGHT); y++) { for (int x = 0; x < (cluedo.Board.BOARD_WIDTH); x++) { char square = boardChar(x, y); if ((square =...
private void populateBoard() { this.boardSquares = new location.Square[cluedo.Board.BOARD_WIDTH][cluedo.Board.BOARD_HEIGHT]; for (int y = 0; y < (cluedo.Board.BOARD_HEIGHT); y++) { for (int x = 0; x < (cluedo.Board.BOARD_WIDTH); x++) { char square = boardChar(x, y); if (square ==...
public java.lang.String getDefinition() { java.lang.StringBuilder definition = new java.lang.StringBuilder(); if ((prefixName) != null) { definition.append((tickName ? com.raizlabs.android.dbflow.sql.QueryBuilder.quoteIfNeeded(prefixName) : prefixName)).append("."); } definition.append((tickName...
public java.lang.String getDefinition() { java.lang.StringBuilder definition = new java.lang.StringBuilder(); definition.append(getName()); if (hasAlias()) { definition.append(" AS ").append(getAliasName()); } return definition.toString(); }
public java.sql.Connection getConnection() { if (((connection) == null) || ((check()) > 0)) { try { connection = factory.create(); } catch (java.sql.SQLException e) { throw new java.lang.RuntimeException(e); } } return connection; }
public java.sql.Connection getConnection() { if (((connection) == null) || (!(check()))) { try { connection = factory.create(); } catch (java.sql.SQLException e) { throw new java.lang.RuntimeException(e); } } return connection; }
protected void onLayout(boolean changed, int l, int t, int r, int b) { updateBottomViews(); if ((mOnLayoutListeners) != null) for (int i = 0; i < (mOnLayoutListeners.size()); i++) { mOnLayoutListeners.get(i).onLayout(this); } }
protected void onLayout(boolean changed, int l, int t, int r, int b) { if (!changed) return ; updateBottomViews(); if ((mOnLayoutListeners) != null) for (int i = 0; i < (mOnLayoutListeners.size()); i++) { mOnLayoutListeners.get(i).onLayout(this); } }
public th.go.excise.edbarcode.ws.client.pcc.insert0112.oxm.InsertPOSO0112OperationResponse doService(th.go.excise.edbarcode.ws.client.pcc.insert0112.oxm.InsertPOSO0112Operation insertPOSO0112OperationRequest) { th.go.excise.edbarcode.ws.client.pcc.insert0112.oxm.InsertPOSO0112OperationResponse response = new th.go....
public th.go.excise.edbarcode.ws.client.pcc.insert0112.oxm.InsertPOSO0112OperationResponse doService(th.go.excise.edbarcode.ws.client.pcc.insert0112.oxm.InsertPOSO0112Operation insertPOSO0112OperationRequest) { th.go.excise.edbarcode.ws.client.pcc.insert0112.oxm.InsertPOSO0112OperationResponse response = new th.go....
private byte[] removeId(byte[] payload) { byte[] array = new byte[(payload.length) - 1]; for (int i = 0; i < (payload.length); i++) { array[i] = payload[(i + 1)]; } return array; }
private byte[] removeId(byte[] payload) { byte[] array = new byte[(payload.length) - 1]; for (int i = 0; i < (array.length); i++) { array[i] = payload[(i + 1)]; } return array; }
protected boolean isFinished() { switch (m_state) { case ON : if ((m_terminateWhenEmpty) && (m_launcher.isEmpty())) { return true; } return false; case OFF : return true; case SINGLE : if (m_launcher.isSingleShotDone...
protected boolean isFinished() { switch (m_state) { case ON : if ((m_terminateWhenEmpty) && (m_launcher.isEmpty())) return true; else return false; case OFF : return true; case SINGLE : if (m_launche...
public java.lang.String getValue(mage.game.Game game) { java.lang.StringBuilder sb = mage.cards.CardsImpl.threadLocalBuilder.get(); java.util.SortedSet<java.lang.String> cards = new java.util.TreeSet<>(); for (java.util.UUID cardId : this) { mage.cards.Card card = game.getCard(cardId); cards...
public java.lang.String getValue(mage.game.Game game) { java.lang.StringBuilder sb = mage.cards.CardsImpl.threadLocalBuilder.get(); java.util.List<java.lang.String> cards = new java.util.ArrayList<>(); for (java.util.UUID cardId : this) { mage.cards.Card card = game.getCard(cardId); cards.ad...
public void update(double timestep) { xVel += (timestep * (xForce)) / (mass); yVel += (timestep * (yForce)) / (mass); x += timestep * (xVel); y += timestep * (yVel); }
public void update(double timestep) { xVel += timestep * ((xForce) / (mass)); yVel += timestep * ((yForce) / (mass)); x += timestep * (xVel); y += timestep * (yVel); }
public void next() { final net.teamfruit.signpic.manager.scan.Scanner scanner = this.current.getScanner(null); if (scanner != null) { if ((scanner.getState()) == (net.teamfruit.signpic.manager.scan.Scanner.ScanState.DONE)) { final net.teamfruit.signpic.manager.scan.ScanManager.ScanTask task ...
public void next() { final net.teamfruit.signpic.manager.scan.Scanner scanner = this.current.getScanner(null); if (scanner != null) { if ((scanner.getState()) == (net.teamfruit.signpic.manager.scan.Scanner.ScanState.DONE)) { this.current = null; final net.teamfruit.signpic.manage...
public static java.util.Collection<hslu.bda.medimemory.entity.Eat> getAllEatValues(hslu.bda.medimemory.database.DbAdapter dbAdapter) { java.util.Collection<hslu.bda.medimemory.entity.Eat> allEatValues = null; try { java.util.Collection<android.content.ContentValues> allContentValues = dbAdapter.getAllBy...
public static java.util.Collection<hslu.bda.medimemory.entity.Eat> getAllEatValues(hslu.bda.medimemory.database.DbAdapter dbAdapter) { java.util.Collection<hslu.bda.medimemory.entity.Eat> allEatValues = new java.util.ArrayList<hslu.bda.medimemory.entity.Eat>(); try { java.util.Collection<android.content...
public void undoAdd() { seedu.taskell.testutil.TestTask[] currentList = td.getTypicalTasks(); seedu.taskell.testutil.TestTask taskToAdd = td.holdMeeting; commandBox.runCommand(taskToAdd.getAddCommand()); assertAddSuccess(taskToAdd, currentList); currentList = seedu.taskell.testutil.TestUtil.addTasks...
public void undoAdd() { seedu.taskell.logic.commands.UndoCommand.clearCommandHistory(); seedu.taskell.testutil.TestTask[] currentList = td.getTypicalTasks(); seedu.taskell.testutil.TestTask taskToAdd = td.holdMeeting; commandBox.runCommand(taskToAdd.getAddCommand()); assertAddSuccess(taskToAdd, curr...
private void removeReplacementSpan(java.lang.Class<?> clazz, int start) { java.lang.Object replacementSpan = getAssignSpan(replaceMap.get(clazz).clazz, start, start); getEditableText().removeSpan(replacementSpan); getEditableText().delete((start - 7), start); replaceMap.get(clazz).position = -1; }
private void removeReplacementSpan(java.lang.Class<?> clazz, int start) { java.lang.Object replacementSpan = getAssignSpan(replaceMap.get(clazz).clazz, start, start); getEditableText().removeSpan(replacementSpan); getEditableText().delete((start - 1), start); replaceMap.get(clazz).position = -1; }
public double[] getPhaseTable() { for (int i = 0; i < 1024; i++) re[i] = data[i]; sign = -1; cafe.analysis.cafe.analysis.FFT.fft(re, im, 10, sign); double[] temp1 = cafe.analysis.cafe.analysis.FFT.get_theta(); return temp1; }
public double[] getPhaseTable() { for (int i = 0; i < 1024; i++) re[i] = data[i]; cafe.analysis.cafe.analysis.FFT.fft(re, im, 10, (-1)); double[] temp1 = cafe.analysis.cafe.analysis.FFT.get_theta(); return temp1; }
public java.util.Map<java.lang.String, java.lang.Object> executeOperation(@org.springframework.web.bind.annotation.RequestHeader(value = org.ow2.proactive.scheduling.api.controllers.GraphQLController.REQUEST_HEADER_NAME_SESSION_ID) java.lang.String sessionId, @org.springframework.web.bind.annotation.RequestParam(value ...
public java.util.Map<java.lang.String, java.lang.Object> executeOperation(@org.springframework.web.bind.annotation.RequestHeader(value = org.ow2.proactive.scheduling.api.controllers.GraphQLController.REQUEST_HEADER_NAME_SESSION_ID) java.lang.String sessionId, @org.springframework.web.bind.annotation.RequestParam(value ...
protected byte[] getFromStore(long uid) throws java.io.IOException { int docid = mapDocId(uid); if (docid < 0) return null; org.apache.lucene.index.IndexReader reader = null; if ((_currentReaderData) != null) { reader = _currentReaderData.reader; } if ((docid > 0) && (reader...
protected byte[] getFromStore(long uid) throws java.io.IOException { int docid = mapDocId(uid); if (docid < 0) return null; org.apache.lucene.index.IndexReader reader = null; if ((_currentReaderData) != null) { reader = _currentReaderData.reader; } if ((docid >= 0) && (reade...
public void testKeySetToArray() throws java.io.IOException { try (net.openhft.chronicle.map.ChronicleMap map = map5(((net.openhft.chronicle.engine.map.StatelessChronicleMapTest.s_port)++))) { java.util.Set s = map.keySet(); java.lang.Object[] ar = s.toArray(); assertTrue(s.containsAll(java.u...
public void testKeySetToArray() throws java.io.IOException { try (net.openhft.chronicle.map.ChronicleMap map = map5()) { java.util.Set s = map.keySet(); java.lang.Object[] ar = s.toArray(); assertTrue(s.containsAll(java.util.Arrays.asList(ar))); assertEquals(5, ar.length); ar...
public boolean percolates() { for (int i = 0; i < (site[site[0].length].length); i++) { if (isFull(9, i)) return true; } return false; }
public boolean percolates() { for (int i = 0; i < (site[((site[0].length) - 1)].length); i++) { if (isFull(((site[0].length) - 1), i)) return true; } return false; }
public void uninstallClientDecorations(javax.swing.JRootPane root) { uninstallBorder(root); uninstallWindowListeners(root); setTitlePane(root, null); uninstallLayout(root); int style = com.jtattoo.plaf.DecorationHelper.getWindowDecorationStyle(root); if (style == (com.jtattoo.plaf.BaseRootPaneUI...
public void uninstallClientDecorations(javax.swing.JRootPane root) { uninstallBorder(root); uninstallWindowListeners(root); setTitlePane(root, null); uninstallLayout(root); int style = com.jtattoo.plaf.DecorationHelper.getWindowDecorationStyle(root); if (style == (com.jtattoo.plaf.BaseRootPaneUI...
public void testList() { java.util.List<java.net.Proxy> result = this.selector.select(TestUtil.HTTP_TEST_URI); org.junit.Assert.assertEquals(TestUtil.HTTP_TEST_PROXY, result.get(0)); org.junit.Assert.assertEquals(TestUtil.HTTPS_TEST_PROXY, result.get(1)); org.junit.Assert.assertEquals(java.net.Proxy.NO_...
public void testList() { java.util.List<java.net.Proxy> result = this.selector.select(TestUtil.HTTP_TEST_URI); org.junit.Assert.assertEquals(2, result.size()); org.junit.Assert.assertEquals(TestUtil.HTTP_TEST_PROXY, result.get(0)); org.junit.Assert.assertEquals(TestUtil.HTTPS_TEST_PROXY, result.get(1));...
public void handleMessage(android.os.Message msg) { if ((progress) != null) { progress.dismiss(); } if (!(com.fionera.cleaner.utils.DroidWallApi.hasRootAccess(mContext, true))) { return ; } if (com.fionera.cleaner.utils.DroidWallApi.applyIpTablesRules(mContext, true)) { com.f...
public void handleMessage(android.os.Message msg) { if (!(com.fionera.cleaner.utils.DroidWallApi.hasRootAccess(mContext, true))) { return ; } if (com.fionera.cleaner.utils.DroidWallApi.applyIpTablesRules(mContext, true)) { com.fionera.cleaner.utils.ShowToast.show("规则已应用"); } if ((pro...
public void onActivityCreated(@android.support.annotation.Nullable android.os.Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); ((com.example.daniel.todule_android.activities.MainActivity) (getActivity())).fabVisibility(false); setEmptyText("No entry found"); mAdapter = new com.e...
public void onActivityCreated(@android.support.annotation.Nullable android.os.Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); setEmptyText("No entry found"); mAdapter = new com.example.daniel.todule_android.adapter.HistoryAdapter(getActivity(), null, 0); setListAdapter(mAdapter...
private void startTestMenuItemAction() { if ((mainView.getCurrentlySelectedVocabList()) == null) { reportNoVocabListSelectedError(); }else { java.lang.Object[] options = new java.lang.Object[]{ com.tkomiya.models.Vocab.SUPPORTED_LANGUAGES[1] , com.tkomiya.models.Vocab.SUPPORTED_LANGUAGES[2] }; ...
public void startTestMenuItemAction() { if ((mainView.getCurrentlySelectedVocabList()) == null) { reportNoVocabListSelectedError(); }else { java.lang.Object[] options = new java.lang.Object[]{ com.tkomiya.models.Vocab.SUPPORTED_LANGUAGES[1] , com.tkomiya.models.Vocab.SUPPORTED_LANGUAGES[2] }; ...
public void onActivityResult(int requestCode, int resultCode, android.content.Intent intent) { android.util.Log.i("addpost", "back button clicked 1"); super.onActivityResult(requestCode, resultCode, intent); if (requestCode == 1) { if (resultCode == (android.app.Activity.RESULT_OK)) { an...
public void onActivityResult(int requestCode, int resultCode, android.content.Intent intent) { super.onActivityResult(requestCode, resultCode, intent); if (requestCode == 1) { if (resultCode == (android.app.Activity.RESULT_OK)) { android.util.Log.i("addpost", "back button clicked 2"); ...
private void setupSettingsFilters() { if ((Build.VERSION.SDK_INT) >= (Build.VERSION_CODES.LOLLIPOP)) { if ((mLEScanner) == null) { mLEScanner = mBluetoothAdapter.getBluetoothLeScanner(); settings = new android.bluetooth.le.ScanSettings.Builder().setScanMode(ScanSettings.SCAN_MODE_LOW...
private void setupSettingsFilters() { if ((mLEScanner) == null) { mLEScanner = mBluetoothAdapter.getBluetoothLeScanner(); settings = new android.bluetooth.le.ScanSettings.Builder().setScanMode(ScanSettings.SCAN_MODE_LOW_LATENCY).build(); filters = new java.util.ArrayList<>(); filters...
public void process(org.apache.uima.jcas.JCas aJCas) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException { try (java.io.OutputStream docOS = getOutputStream(aJCas, ".json")) { jcs.serialize(aJCas.getCas(), docOS); if ((!(typeSystemWritten)) || ((typeSystemFile) == null)) { ...
public void process(org.apache.uima.jcas.JCas aJCas) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException { try (java.io.OutputStream docOS = getOutputStream(aJCas, ".json")) { jcs.serialize(aJCas.getCas(), docOS); if (!(typeSystemWritten)) { writeTypeSystem(aJCas); ...
protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { java.io.PrintWriter out = response.getWriter(); response.setContentType(com.foodstore.serg.controller.CONTENT_TYPE); java.util.Li...
protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { java.io.PrintWriter out = response.getWriter(); response.setContentType(com.foodstore.serg.controller.CONTENT_TYPE); java.util.Li...