buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public void execute(org.quartz.JobExecutionContext arg0) throws org.quartz.JobExecutionException { com.yuhui.roboc.FetchUtil.printSto("SZ002340"); com.yuhui.roboc.FetchUtil.printSto("SH600660"); }
public void execute(org.quartz.JobExecutionContext arg0) throws org.quartz.JobExecutionException { com.yuhui.roboc.FetchUtil.printSto("SH600660"); }
private void populateToDoObject() { try { todoItem = getTodo(); displayDetail(); } catch (java.lang.AssertionError err) { todoItem = new com.nearsoft.androidschool.todoapp.models.ToDoContent(); buttonViewConfig(true); } }
private void populateToDoObject() { try { todoItem = getTodo(); displayDetail(); buttonViewConfig(false); } catch (java.lang.AssertionError err) { todoItem = new com.nearsoft.androidschool.todoapp.models.ToDoContent(); } }
private long timeStamp() { java.util.Date date = new java.util.Date(); long time = date.getTime(); return time / 1000; }
private long timeStamp() { java.util.Date date = new java.util.Date(); long time = date.getTime(); return time; }
public void onLoaderReset(android.content.Loader<java.util.List<com.bitsorific.findyourthings.models.Item>> loader) { android.util.Log.d("Loader", "Loader resetting after data change"); itemListAdapter.setData(null); }
public void onLoaderReset(android.content.Loader<java.util.List<com.bitsorific.findyourthings.models.Item>> loader) { android.util.Log.i("Loader", "Loader resetting after data change"); itemListAdapter.setData(null); }
public java.lang.String getAttribute(java.lang.String xpath, java.lang.String attribute) { org.openqa.selenium.WebElement el = getElement(xpath); java.lang.String value = el.getAttribute(attribute); return value; }
public java.lang.String getAttribute(java.lang.String xpath, java.lang.String attribute) { org.openqa.selenium.WebElement element = getElement(xpath); java.lang.String value = element.getAttribute(attribute); return value; }
public static android.net.Uri appendDistinct(@android.support.annotation.NonNull final android.net.Uri uri) { if (uri == null) { throw new java.lang.IllegalArgumentException("Uri can't be null"); } return uri.buildUpon().appendQueryParameter(AbstractContentProviderProcessor.QUERY_PARAMETER_DISTINCT,...
public static android.net.Uri appendDistinct(@android.support.annotation.NonNull final android.net.Uri uri) { return uri.buildUpon().appendQueryParameter(AbstractContentProviderProcessor.QUERY_PARAMETER_DISTINCT, "distinct").build(); }
public void destroy() { NavigationApplication.instance.getEventEmitter().sendScreenChangedEvent("didDisappear", params.navigationParams.navigatorEventId); dismiss(); }
public void destroy() { dismiss(); NavigationApplication.instance.getEventEmitter().sendScreenChangedEvent("didDisappear", params.navigationParams.navigatorEventId); }
public long peers(long self) { return org.zeromq.zyre.Zyre.__peers(self); }
public long peers() { return org.zeromq.zyre.Zyre.__peers(self); }
public java.lang.String[] sort(java.lang.String[] listToSort) { if ((listToSort.length) <= 1) return listToSort; return sort(listToSort, 0, ((listToSort.length) - 1)); }
public java.lang.String[] sort(java.lang.String[] listToSort) { sort(listToSort, 0, ((listToSort.length) - 1)); return listToSort; }
private void publishAudit(co.cask.cdap.proto.Id.DatasetInstance datasetInstanceId, co.cask.cdap.data2.metadata.lineage.AccessType accessType) { co.cask.cdap.proto.Id.Run programRunId = programContext.getRun(); co.cask.cdap.data2.audit.AuditPublishers.publishAccess(auditPublisher, datasetInstanceId, accessType, ...
private void publishAudit(co.cask.cdap.proto.Id.DatasetInstance datasetInstanceId, co.cask.cdap.data2.metadata.lineage.AccessType accessType) { co.cask.cdap.proto.Id.Run programRunId = programContext.getRun(); if (programRunId != null) { co.cask.cdap.data2.audit.AuditPublishers.publishAccess(auditPublis...
public static void destroy() { client.NettyClient.charServClient.destroy(); client.NettyClient.gameServClient.destroy(); }
public static void destroy() { client.NettyClient.charServClient.destroy(); if ((client.NettyClient.gameServClient) != null) { client.NettyClient.gameServClient.destroy(); } }
public boolean canBack() { return !((index) == 1); }
public boolean canBack() { return (!((index) == 1)) && ((index) > 0); }
public boolean touchDragged(int screenX, int screenY, int height, int width) { return false; }
public boolean touchDragged(int screenX, int screenY, int width, int height) { return false; }
public double pFa() { return ((double) (fn)) / ((fp) + (tn)); }
public double pFa() { return ((double) (fp)) / ((fp) + (tn)); }
public void onStart() { showHomeScreen(); changeScreenRotationMode(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); setupConnectivityState(true); turnScreenOn(); buildDialog(getResources().getString(R.string.service_connectivity_title), getResources().getString(R.string.service_connectivity_detail)); }
public void onStart() { buildDialog(getResources().getString(R.string.service_connectivity_title), getResources().getString(R.string.service_connectivity_detail)); }
public void teleopInit() { leds.activateTeleop(); arm.calibrate(false); shooter.stop(); arm.pickupAllStop(); driveAuto.setPIDstate(false); drive.setPIDstate(true); }
public void teleopInit() { leds.activateTeleop(); arm.calibrate(true); shooter.stop(); arm.pickupAllStop(); driveAuto.setPIDstate(false); drive.setPIDstate(true); }
private org.roda_project.commons_ip.model.RepresentationContentType.RepresentationContentTypeEnum getType() { return type; }
public org.roda_project.commons_ip.model.RepresentationContentType.RepresentationContentTypeEnum getType() { return type; }
public java.lang.String toString() { return (("if " + (condition)) + '\n') + (ifBlock.toString()); }
public java.lang.String toString() { return (("if " + (condition.toString())) + '\n') + (ifBlock.toString()); }
public java.io.File getYarnPath() { java.lang.String yarnExecutable = (getPlatform().isWindows()) ? com.github.eirslett.maven.plugins.frontend.lib.InstallYarnExecutorConfig.YARN_WINDOWS : com.github.eirslett.maven.plugins.frontend.lib.InstallYarnExecutorConfig.YARN_DEFAULT; return new java.io.File(((installConf...
public java.io.File getYarnPath() { return new java.io.File(((installConfig.getInstallDirectory()) + (com.github.eirslett.maven.plugins.frontend.lib.InstallYarnExecutorConfig.YARN_DEFAULT))); }
public java.lang.String get(java.lang.String url) { return httpGet(appendAccessToken(url)); }
public java.lang.String get(java.lang.String url) { return get(url, true); }
private int findMinimalNode(com.goit.g2popov.module05.task02.TreeNode root) { while ((root.left) == null) { root = root.left; } return root.value; }
private int findMinimalNode(com.goit.g2popov.module05.task02.TreeNode root) { while ((root.left) != null) { root = root.left; } return root.value; }
public void changePhysics() { this.physics = new logic.Physics(0, 0, 0); }
public void changePhysics() { this.physics = new logic.Physics(); }
public com.noname.server.cache.CredentialCache retrieve(java.lang.Long key) { return ((com.noname.server.cache.CredentialCache) (cache.get(key))); }
public com.noname.server.cache.CredentialCache retrieve(java.lang.Long key) { final java.lang.Object value = cache.get(key); return value != null ? ((com.noname.server.cache.CredentialCache) (value)) : null; }
public void setUserCoordinateSystem(int userCoordinateSystem) { if ((userCoordinateSystem < (com.example.damianmichalak.bluetooth_test.view.widget.JoystickView.COORDINATE_CARTESIAN)) || ((movementConstraint) > (com.example.damianmichalak.bluetooth_test.view.widget.JoystickView.COORDINATE_DIFFERENTIAL))) and...
public void setUserCoordinateSystem(int userCoordinateSystem) { if ((userCoordinateSystem >= (com.example.damianmichalak.bluetooth_test.view.widget.JoystickView.COORDINATE_CARTESIAN)) && ((movementConstraint) <= (com.example.damianmichalak.bluetooth_test.view.widget.JoystickView.COORDINATE_DIFFERENTIAL))) { ...
public com.sequenceiq.cloudbreak.model.TemplateResponse get(java.lang.Long id) { com.sequenceiq.cloudbreak.domain.CbUser user = authenticatedUserService.getCbUser(); com.sequenceiq.cloudbreak.logger.MDCBuilder.buildUserMdcContext(user); com.sequenceiq.cloudbreak.domain.Template template = templateService.ge...
public com.sequenceiq.cloudbreak.model.TemplateResponse get(java.lang.Long id) { com.sequenceiq.cloudbreak.domain.CbUser user = authenticatedUserService.getCbUser(); com.sequenceiq.cloudbreak.logger.MDCBuilder.buildUserMdcContext(user); com.sequenceiq.cloudbreak.domain.Template template = templateService.ge...
public java.net.URI resolveDocumentation(org.apache.nifi.nar.ext.AbstractExtensionSpec resourceSpec) { java.net.URI result = ""; return result; }
public java.net.URI resolveDocumentation(org.apache.nifi.nar.ext.AbstractExtensionSpec resourceSpec) { java.net.URI result = null; return result; }
if ((title != null) && ((title.length()) != 0)) { mTitle = title; }else { mTitle = generateGenericTitle(); } }
public void setTitle(java.lang.String title) { mTitle = title; }
public void setRightSpeed(double speed) { rightMotor1.set(((-speed) * (org.usfirst.frc.team5677.robot.subsystems.DriveTrain.RIGHT_SCALE))); rightMotor2.set(((-speed) * (org.usfirst.frc.team5677.robot.subsystems.DriveTrain.RIGHT_SCALE))); }
public void setRightSpeed(double speed) { rightMotor1.set((speed * (org.usfirst.frc.team5677.robot.subsystems.DriveTrain.RIGHT_SCALE))); rightMotor2.set((speed * (org.usfirst.frc.team5677.robot.subsystems.DriveTrain.RIGHT_SCALE))); }
public void CheckEat() { java.lang.System.out.println("CheckEat Initiate"); if (eat()) { snake_x[snake_length] = tail_buffer_X; snake_y[snake_length] = tail_buffer_Y; (snake_length)++; } }
public void CheckEat() { if (eat()) { snake_x[snake_length] = tail_buffer_X; snake_y[snake_length] = tail_buffer_Y; (snake_length)++; } }
public java.util.Date getDob() { return ((java.util.Date) (dob.clone())); }
public java.lang.String getDob() { return dob; }
private void showFavButton() { mFavButton.setOnFavoriteChangeListener(null); mFavButton.setFavorite(mAppUser.getFavouritesIds().contains(mChannel.getId()), false); mFavButton.setVisibility(View.VISIBLE); mFavButton.setOnFavoriteChangeListener(this); }
private void showFavButton() { mFavButton.setOnFavoriteChangeListener(null); mFavButton.setFavorite(mAppUser.getFavouritesIds().contains(mChannel.getId()), false); mFavButton.setVisibility(View.VISIBLE); }
public void arcadeDrive(double moveValue, double rotationValue) { drivetrain.drive(moveValue, rotationValue); }
public void arcadeDrive(double moveValue, double rotationValue) { drivetrain.arcadeDrive(moveValue, rotationValue); }
public void init(com.badlogic.gdx.assets.AssetManager mAssetManager) { com.badlogic.gdx.graphics.Texture mBulletTexture = mAssetManager.get("png/redBullet.png"); mSprite = new com.badlogic.gdx.graphics.g2d.Sprite(mBulletTexture); }
public void init(com.badlogic.gdx.assets.AssetManager mAssetManager) { }
protected void onStop() { super.onStop(); com.breadwallet.tools.manager.CurrencyManager.getInstance(this).stopTimerTask(); }
protected void onStop() { super.onStop(); }
private void processOrderMessage(final com.jforex.programming.order.OrderUpdateEventData orderUpdateEventData, final com.jforex.programming.order.OrderUpdateEvent orderUpdateEvent) { if (orderUpdateEventHandlers.containsKey(orderUpdateEvent)) { printOrderUpdate(orderUpdateEventData); orderUpdateEven...
private void processOrderMessage(final com.jforex.programming.order.OrderUpdateEventData orderUpdateEventData, final com.jforex.programming.order.OrderUpdateEvent orderUpdateEvent) { printOrderUpdate(orderUpdateEventData); if (orderUpdateEventHandlers.containsKey(orderUpdateEvent)) orderUpdateEventHandl...
public boolean schemeIdContainsAllOrNone(java.util.List<eu.europa.ec.fisheries.uvms.rules.service.business.fact.IdType> idTypes, java.lang.String... valuesToMatch) { return (schemeIdContainsAny(idTypes, valuesToMatch)) && (schemeIdContainsAll(idTypes, valuesToMatch)); }
public boolean schemeIdContainsAllOrNone(java.util.List<eu.europa.ec.fisheries.uvms.rules.service.business.fact.IdType> idTypes, java.lang.String... valuesToMatch) { return (!(schemeIdContainsAny(idTypes, valuesToMatch))) && (schemeIdContainsAll(idTypes, valuesToMatch)); }
public static gr.ntua.ivml.edmvalidation.xsd.ReportErrorHandler validateAgainstEdm(java.lang.String fname, boolean validateXsd, boolean validateSchematron) { return gr.ntua.ivml.edmvalidation.EdmSchemaValidator.validateAgainstEdm(gr.ntua.ivml.edmvalidation.util.StringUtils.resolveNameToInputStream(fname), validateX...
public gr.ntua.ivml.edmvalidation.xsd.ReportErrorHandler validateAgainstEdm(java.lang.String fname) { return validateAgainstEdm(gr.ntua.ivml.edmvalidation.util.StringUtils.resolveNameToInputStream(fname), true, true); }
public static void fatal(java.lang.String message) { com.fireball1725.firecore.common.util.LogHelper.log(Level.FATAL, message); }
public void fatal(java.lang.String message) { log(Level.FATAL, message); }
public java.util.List<org.onosproject.yang.model.KeyLeaf> keyLeafs() { return com.google.common.collect.ImmutableList.copyOf(keyLeafs); }
public java.util.List<org.onosproject.yang.model.KeyLeaf> keyLeafs() { return keyLeafs; }
public void deleteById(java.lang.Long id) { shelfDao.findAllByRoomId(id).forEach(this::delete); com.itechart.stockOnline.service.ShelfServiceImpl.logger.info("Room service: delete by id - {}. Deleted {} records", id, 1); }
public void deleteById(java.lang.Integer id) { shelfDao.findAllByRoomId(id).forEach(this::delete); com.itechart.stockOnline.service.ShelfServiceImpl.logger.info("Room service: delete by id - {}. Deleted {} records", id, 1); }
public boolean isOwnedBy(bo.gotthardt.model.Customer customer) { return customer.getName().equals("test"); }
public boolean isOwnedBy(bo.gotthardt.model.Customer customer) { return "test".equals(customer.getName()); }
public nl.hnogames.domoticz.Containers.ConfigInfo getConfig() { nl.hnogames.domoticz.Containers.ConfigInfo config = null; if (prefs.contains(nl.hnogames.domoticz.Utils.SharedPrefUtil.PREF_CONFIG)) { java.lang.String jsonConfig = prefs.getString(nl.hnogames.domoticz.Utils.SharedPrefUtil.PREF_CONFIG, null...
public nl.hnogames.domoticz.Containers.ConfigInfo getConfig() { nl.hnogames.domoticz.Containers.ConfigInfo config; if (prefs.contains(nl.hnogames.domoticz.Utils.SharedPrefUtil.PREF_CONFIG)) { java.lang.String jsonConfig = prefs.getString(nl.hnogames.domoticz.Utils.SharedPrefUtil.PREF_CONFIG, null); ...
public void setDescription(java.lang.String content) { if (((description) != null) && (description.equals(content))) return ; description = content; notifyPropertyChanged(); }
public void setDescription(java.lang.String content) { if (((description) != null) && (description.equals(content))) return ; description = content.trim(); notifyPropertyChanged(); }
public msi.gama.util.path.GamaSpatialPath pathBetween(final msi.gama.runtime.IScope scope, final msi.gama.metamodel.topology.grid.IShape source, final msi.gama.metamodel.topology.grid.IShape target) throws msi.gama.runtime.exceptions.GamaRuntimeException { return getPlaces().computeShortestPathBetween(scope, source...
public msi.gama.util.path.GamaSpatialPath pathBetween(final msi.gama.runtime.IScope scope, final msi.gama.metamodel.topology.grid.IShape source, final msi.gama.metamodel.topology.grid.IShape target) throws msi.gama.runtime.exceptions.GamaRuntimeException { return getPlaces().computeShortestPathBetween(scope, source...
protected double differentiateRespectingBranchSubstitutions(final beast.evolution.tree.NodeRef node) { double deriv = 0.0; if (!(treeModel.isRoot(node))) { deriv = calculateDifferentiatedLogLikelihood(node); } return deriv; }
protected double differentiateRespectingBranchSubstitutions(final beast.evolution.tree.NodeRef node) { if (treeModel.isRoot(node)) return 0.0; return calculateDifferentiatedLogLikelihood(node); }
public int getNumRecords() { if (((response) != null) && (!(response.isEmpty()))) { return response.getSearchHit().size(); }else { return -1; } }
int getNumRecords() { if ((response) != null) { return response.getSearchHit().size(); }else { return 0; } }
private org.springframework.amqp.core.TopicExchange exchange() { java.lang.System.out.println("Creating TopicExchange."); return new org.springframework.amqp.core.TopicExchange("spring-boot-exchange"); }
private org.springframework.amqp.core.TopicExchange exchange() { return new org.springframework.amqp.core.TopicExchange("spring-boot-exchange"); }
public void onStop() { super.onStop(); rtdc.core.event.Event.unsubscribe(FetchUnitsEvent.TYPE, this); rtdc.core.event.Event.unsubscribe(ActionCompleteEvent.TYPE, this); }
public void onStop() { super.onStop(); rtdc.core.event.Event.unsubscribe(ActionCompleteEvent.TYPE, this); }
public void catsch(java.util.List<java.lang.Character> characters) { java.util.List<java.lang.Character> charactersInRadius = getCharactersInRadius(characters); java.lang.Character closestCharacter = getClosestCharacter(charactersInRadius); closestCharacter.beenCaught(); }
public void catsch(java.util.List<java.lang.Character> characters) { java.util.List<java.lang.Character> charactersInRadius = getCharactersInRadius(characters); java.lang.Character closestCharacter = getClosestCharacter(charactersInRadius); if (closestCharacter != null) { closestCharacter.beenCaught...
protected boolean updateCurrentBar(long time, double price) { return m_tick.update(price); }
protected boolean updateCurrentBar(long time, double price) { if ((m_tick) != null) { return m_tick.update(price); } return false; }
public static void store(java.lang.Object o, java.io.File out, java.lang.String encoding) throws java.io.IOException { java.io.FileOutputStream fout = new java.io.FileOutputStream(out); try { aQute.lib.io.IO.store(o, fout, encoding); } finally { fout.close(); } }
public static void store(java.lang.Object o, java.io.File out, java.lang.String encoding) throws java.io.IOException { aQute.lib.io.IO.store(o, new java.io.FileOutputStream(out), encoding); }
public boolean interestedInPiece(java.lang.Integer piece) { lock.readLock().lock(); boolean interested = !(this.myBitField.get(piece)); lock.readLock().unlock(); return interested; }
public boolean interestedInPiece(java.lang.Integer piece) { return !(this.myBitField.get(piece)); }
private boolean isOutOfRange(float posDegrees) { return (posDegrees <= (de.lin_engel.controllib.VolumeKnob.MIN_ANGLE)) || (posDegrees >= (de.lin_engel.controllib.VolumeKnob.MAX_ANGLE)); }
private boolean isOutOfRange(float posDegrees) { return (posDegrees < (de.lin_engel.controllib.VolumeKnob.MIN_ANGLE)) || (posDegrees > (de.lin_engel.controllib.VolumeKnob.MAX_ANGLE)); }
public void backToHome(javafx.event.ActionEvent event) { appLibrarian.view.HomeWindow home = new appLibrarian.view.HomeWindow(appLibrarian.view.CreateReaderWindow.ctrl); try { home.show(); } catch (java.io.IOException e) { appLibrarian.Util.showError(Util.Err.UNKNOWN); return ; }...
public void backToHome(javafx.event.ActionEvent event) { try { new appLibrarian.view.HomeWindow(appLibrarian.view.CreateReaderWindow.ctrl).show(); } catch (java.io.IOException e) { appLibrarian.Util.showError(Util.Err.UNKNOWN); return ; } this.hide(); }
public void testCommandRecur() throws java.lang.Exception { com.done.command.Command command = new com.done.command.CommandRecur(1, "weekly"); assertEquals(command.getCommandType(), CommandType.RECUR); }
public void testCommandRecur() throws java.lang.Exception { com.done.command.Command command = new com.done.command.CommandRecur(1, "weekly", 1); assertEquals(command.getCommandType(), CommandType.RECUR); }
public void updateEntity() { if (canBeDouble) { findAdjacentTank(); markDirty(); } }
public void updateEntity() { if (canBeDouble) { findAdjacentTank(); } super.updateEntity(); }
public void resume() { if (((handler) != null) && (handler.isPrepared())) handler.resume(); else { restart(); } }
public void resume() { if (((handler) != null) && (handler.isPrepared())) handler.resume(); else if ((handler) == null) { restart(); } }
public com.samskivert.depot.impl.TableMetaData invoke(com.samskivert.depot.PersistenceContext ctx, java.sql.Connection conn, com.samskivert.depot.impl.jdbc.DatabaseLiaison dl) throws java.sql.SQLException { return new com.samskivert.depot.impl.TableMetaData(conn.getMetaData(), tableName); }
public com.samskivert.depot.impl.TableMetaData invoke(com.samskivert.depot.PersistenceContext ctx, java.sql.Connection conn, com.samskivert.depot.impl.jdbc.DatabaseLiaison dl) throws java.sql.SQLException { return new com.samskivert.depot.impl.TableMetaData(conn.getMetaData(), dl, tableName); }
public void passTime() { if ((shoppingTime) <= 0) { shop.sendToTill(this); java.lang.System.out.println(((name) + " goes to till")); } shoppingTime -= aston.resources.Config.secondsPerTick; }
public boolean passTime() { if ((shoppingTime) <= 0) { shop.sendToTill(this); java.lang.System.out.println(((name) + " goes to till")); return true; }else { shoppingTime -= aston.resources.Config.secondsPerTick; return false; } }
private void setAdapter(java.lang.String country) { android.content.Intent placesListIntent = new android.content.Intent(this, ru.belogurowdev.yourplaces.Activity.PlacesListActivity.class); placesListIntent.putExtra("COUNTRY", country); mAdapter = new ru.belogurowdev.yourplaces.Adapter.PlaceTypesAdapter(thi...
private void setAdapter(java.lang.String country) { mAdapter = new ru.belogurowdev.yourplaces.Adapter.PlaceTypesAdapter(this, country, mPlaceTypes); }
public void onCreate(android.database.sqlite.SQLiteDatabase db) { db.execSQL(("create table clipboard " + "(id integer primary key autoincrement not null, cliptext text,starred boolean default 0,timestamp default current_timestamp not null)")); db.close(); }
public void onCreate(android.database.sqlite.SQLiteDatabase db) { db.execSQL(("create table clipboard " + "(id integer primary key autoincrement not null, cliptext text,starred boolean default 0,timestamp default current_timestamp not null)")); }
public void onClick(android.view.View v) { if ((bottomSheetBuilding) != null) { setNavigationPOI(bottomSheetBuilding); showBuildingInfoFragment(false); } }
public void onClick(android.view.View v) { if ((bottomSheetBuilding) != null) { setNavigationPOI(bottomSheetBuilding); } }
public void onActivityCreated(@android.support.annotation.Nullable android.os.Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); this.tableLayout = ((android.widget.TableLayout) (this.getActivity().findViewById(R.id.budgetTable))); setDataOnTable(this.budgetEntities); }
public void onActivityCreated(@android.support.annotation.Nullable android.os.Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); this.tableLayout = ((android.widget.TableLayout) (this.getView().findViewById(R.id.budgetTable))); setDataOnTable(this.budgetEntities); }
public static void internalOnlyInvokeTestFailure(java.lang.String failureKey) { java.lang.String invokeArtificialFailure = com.emc.storageos.util.InvokeTestFailure._coordinator.getPropertyInfo().getProperty(com.emc.storageos.util.InvokeTestFailure.ARTIFICIAL_FAILURE); if ((invokeArtificialFailure != null) && (i...
public static void internalOnlyInvokeTestFailure(java.lang.String failureKey) { java.lang.String invokeArtificialFailure = com.emc.storageos.util.InvokeTestFailure._coordinator.getPropertyInfo().getProperty(com.emc.storageos.util.InvokeTestFailure.ARTIFICIAL_FAILURE); if ((invokeArtificialFailure != null) && (i...
public void visit(de.uni.bremen.monty.moco.ast.declaration.FunctionDeclaration node) { needsReturnStatement = true; super.visit(node); if (needsReturnStatement) { throw new de.uni.bremen.monty.moco.exception.InvalidControlFlowException(node, "ReturnStatement needed."); } }
public void visit(de.uni.bremen.monty.moco.ast.declaration.FunctionDeclaration node) { this.needsReturnStatement = true; super.visit(node); if (this.needsReturnStatement) { throw new de.uni.bremen.monty.moco.exception.InvalidControlFlowException(node, "ReturnStatement needed."); } }
public void closeShouldBeIdempotent() { org.apache.kafka.clients.consumer.KafkaConsumer<byte[], byte[]> consumer = newConsumer(); consumer.close(); consumer.close(); }
public void closeShouldBeIdempotent() { org.apache.kafka.clients.consumer.KafkaConsumer<byte[], byte[]> consumer = newConsumer(); consumer.close(); consumer.close(); consumer.close(); }
public void updateChat(java.lang.String msg) { jTextAreaChat.append(msg); }
public void updateChat(java.lang.String msg) { jTextAreaChat.append((msg + "\n")); }
protected java.nio.channels.ServerSocketChannel openChannel() throws java.io.IOException { java.nio.channels.ServerSocketChannel channel = org.globus.cog.abstraction.impl.execution.coaster.PortManager.getDefault().openServerSocketChannel(); org.globus.cog.abstraction.impl.execution.coaster.BootstrapService.logg...
public void start() throws java.io.IOException { super.start(); org.globus.cog.abstraction.impl.execution.coaster.BootstrapService.logger.info(("Socket bound. URL is " + (getURL()))); }
public final void stopThread() { stopped = true; queue.notify(); }
public final void stopThread() { stopped = true; synchronized(queue) { queue.notify(); } }
public void AtleastOneHTestOne() { assertTrue(edu.utep.cs5374.ltlgenerator.cp.CPUnitTests.TestCP(new edu.utep.cs5374.ltlgenerator.cp.AtleastOneH().compute(0), "")); }
public void AtleastOneHTestOne() { edu.utep.cs5374.ltlgenerator.cp.CPUnitTests.TestCP(new edu.utep.cs5374.ltlgenerator.cp.AtleastOneH().compute(0), ""); }
public void setFileName(java.lang.String name) { java.lang.System.err.println(("FILE NAME=" + name)); _fileName = name; }
public void setFileName(java.lang.String name) { _fileName = name; }
public static boolean getLocalizationFile() { return fuel.instance().getLocalizationFile(); }
public static boolean getLocalizationFile() { return fuel.getLocalizationFile(); }
public void remove(step.core.artefacts.reports.ReportNode node) { cache.remove(node.getId().toString()); }
public void remove(step.core.artefacts.reports.ReportNode node) { }
private static boolean isIntegerSqrt(int k) { int i = 1; while ((i * i) < k) i++; return (i * i) == k; }
private static boolean isIntegerSqrt(long k) { long i = 1; while ((i * i) < k) i++; return (i * i) == k; }
public void join(int timeout, java.util.concurrent.TimeUnit unit) throws net.schmizz.sshj.connection.ConnectionException { closeEvent.await(timeout, unit); }
public void join(long timeout, java.util.concurrent.TimeUnit unit) throws net.schmizz.sshj.connection.ConnectionException { closeEvent.await(timeout, unit); }
public java.io.Writer decorateWithFilters(java.io.Writer writer) { throw new java.lang.UnsupportedOperationException("The student has not implemented this method yet."); }
public java.io.Writer decorateWithFilters(java.io.Writer writer) { return writer; }
public float getProbability() { if ((demand) < (available)) return 1.0F; else return (available) / (demand); }
public float getProbability() { if ((demand) < (available)) return 1.0F; else return (available) / ((demand) + 1); }
public void addDroppedPacket(int numberOfPackets) { this.numberOfDroppedPackets += numberOfDroppedPackets; }
public void addDroppedPacket(int numberOfPackets) { this.numberOfDroppedPackets += numberOfPackets; }
public void setValue(java.lang.String value_) { value = value_; }
public void setValue(java.lang.String value) { this.value = value; }
private void closeSocketOutput(java.net.Socket socket) { try { if (socket.isOutputShutdown()) { socket.shutdownOutput(); } } catch (java.io.IOException e) { onError(new com.danikula.videocache.ProxyCacheException("Error closing socket output stream", e)); } }
private void closeSocketOutput(java.net.Socket socket) { try { if (!(socket.isOutputShutdown())) { socket.shutdownOutput(); } } catch (java.io.IOException e) { onError(new com.danikula.videocache.ProxyCacheException("Error closing socket output stream", e)); } }
public com.ontometrics.scraper.extraction.DefaultFieldExtractor field(java.lang.String label, java.lang.String element) { getCurrentHtmlExtractor().addManipulator(new com.ontometrics.scraper.extraction.ElementManipulator(new com.ontometrics.scraper.TagOccurrence(element, 0))); this.fieldsToGet.add(new com.ontom...
public com.ontometrics.scraper.extraction.DefaultFieldExtractor field(java.lang.String label, java.lang.String element) { this.fieldsToGet.add(new com.ontometrics.scraper.extraction.DesignatedField(label, element)); return this; }
public smile.classification.DecisionTree.Node call() { int[] falseCount = new int[k]; return findBestSplit(n, count, falseCount, impurity, j); }
public smile.classification.DecisionTree.Node call() { return findBestSplit(n, count, impurity, j); }
private void cancelSelection() { if (com.vaadin.testbench.parallel.BrowserUtil.isFirefox(getDesiredCapabilities())) { findElement(com.vaadin.testbench.By.className("v-app")).click(); }else { sendKeysToInput(Keys.ESCAPE); } }
private void cancelSelection() { sendKeysToInput(Keys.ESCAPE); }
public static de.psdev.licensesdialog.LicensesDialogFragment newInstance(final int rawNoticesResourceId, final boolean includeOwnLicense) { return de.psdev.licensesdialog.LicensesDialogFragment.newInstance(rawNoticesResourceId, false, includeOwnLicense); }
public static de.psdev.licensesdialog.LicensesDialogFragment newInstance(final int rawNoticesResourceId, final boolean includeOwnLicense) { return de.psdev.licensesdialog.LicensesDialogFragment.newInstance(rawNoticesResourceId, false, includeOwnLicense, 0, 0); }
public org.w3c.dom.NamedNodeMap getAttributes() { throw unsupported(); }
public org.w3c.dom.NamedNodeMap getAttributes() { return null; }
public void onDetach() { super.onDetach(); listener = null; com.btwiz.library.BTWiz.cleanup(getActivity()); }
public void onDetach() { listener = null; super.onDetach(); }
protected void onPause() { super.onPause(); getFragmentManager().popBackStack(); mIsRunning = false; }
protected void onPause() { super.onPause(); mIsRunning = false; }
public void closeGroupChannel(models.StudyResult studyResult, models.GroupModel group) throws publix.exceptions.InternalServerErrorPublixException { if (group == null) { return ; } sendMsg(studyResult, new publix.groupservices.akka.messages.GroupDispatcherProtocol.PoisonChannel(studyResult.getId()))...
public void closeGroupChannel(models.StudyResult studyResult, models.GroupModel group) throws publix.exceptions.InternalServerErrorPublixException { if (group == null) { return ; } sendMsg(studyResult, group, new publix.groupservices.akka.messages.GroupDispatcherProtocol.PoisonChannel(studyResult.ge...
public static void sendToRetryPage(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException { request.setAttribute(FrameworkConstants.RequestParams.FLOW_STATUS, AuthenticatorFlowStatus.INCOMPLETE); response.sendRedirect(org.wso2.carbon.identity.c...
public static void sendToRetryPage(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException { request.setAttribute(FrameworkConstants.RequestParams.FLOW_STATUS, AuthenticatorFlowStatus.INCOMPLETE); response.sendRedirect(org.wso2.carbon.identity.a...
public static data.Data getInstance() { java.lang.System.out.println("damn"); if ((data.Data.instance) == null) { data.Data.instance = new data.Data(); } return data.Data.instance; }
public static data.Data getInstance() { if ((data.Data.instance) == null) { data.Data.instance = new data.Data(); } return data.Data.instance; }
public void onFailure(java.lang.Throwable e) { result.setException(e); }
public void onFailure(@javax.annotation.Nonnull java.lang.Throwable t) { result.setException(t); }
public microtrafficsim.utils.strings.builder.LevelStringBuilder appendln(float f) { return append(f).append("\n"); }
public microtrafficsim.utils.strings.builder.LevelStringBuilder appendln(float f) { append(f); stringBuilder.append("\n"); return this; }
public ListItem pop() { if (!(this.list.isEmpty())) { return this.list.remove(0); } }
public ListItem pop() { if (!(this.list.isEmpty())) { return this.list.remove(0); } return null; }
public void setSpeed(int n) { if (n < 6) { super.setSpeed(n); } }
public void setSpeed(int n) { if (n < 6) { super.setSpeed(n); }else { super.setSpeed(6); } }
public dk.alexandra.fresco.framework.Computation<dk.alexandra.fresco.framework.value.SInt> input(java.math.BigInteger value, int inputParty) { dk.alexandra.fresco.suite.dummy.arithmetic.DummyArithmeticCloseProtocol c = new dk.alexandra.fresco.suite.dummy.arithmetic.DummyArithmeticCloseProtocol(inputParty, () -> val...
public dk.alexandra.fresco.framework.Computation<dk.alexandra.fresco.framework.value.SInt> input(java.math.BigInteger value, int inputParty) { dk.alexandra.fresco.suite.dummy.arithmetic.DummyArithmeticCloseProtocol c = new dk.alexandra.fresco.suite.dummy.arithmetic.DummyArithmeticCloseProtocol(inputParty, () -> val...
public void onHostDestroy() { this.doDestroy(); }
public void onHostDestroy() { }
for (com.sothree.slidinguppanel.SlidingUpPanelLayout.PanelSlideListener l : mPanelSlideListeners) { l.onPanelStateChanged(panel, previousState, newState); } sendAccessibilityEvent(AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED); }
synchronized(mPanelSlideListeners) { for (com.sothree.slidinguppanel.SlidingUpPanelLayout.PanelSlideListener l : mPanelSlideListeners) { l.onPanelStateChanged(panel, previousState, newState); } } sendAccessibilityEvent(AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED); }
public void commence(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException arg2) throws java.io.IOException, javax.servlet.ServletException { java.lang.System.out.println("--------------------------------------------...
public void commence(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException arg2) throws java.io.IOException, javax.servlet.ServletException { log.debug("Pre-authenticated entry point called. Rejecting access"); r...
protected org.opendaylight.yang.gen.v1.urn.opendaylight.genius.idmanager.rev160406.id.pools.id.pool.ReleasedIdsHolder createReleasedIdsHolder(long availableIdCount, long delayTime) { org.opendaylight.yang.gen.v1.urn.opendaylight.genius.idmanager.rev160406.id.pools.id.pool.ReleasedIdsHolder releasedIdsHolder = new o...
protected org.opendaylight.yang.gen.v1.urn.opendaylight.genius.idmanager.rev160406.id.pools.id.pool.ReleasedIdsHolder createReleasedIdsHolder(long availableIdCount, long delayTime) { return new org.opendaylight.yang.gen.v1.urn.opendaylight.genius.idmanager.rev160406.id.pools.id.pool.ReleasedIdsHolderBuilder().setAv...
public com.vaadin.ui.CssLayout getMainContent() { return content; }
public com.vaadin.ui.CssLayout getMainContent() { return this.content; }