buggy_function stringlengths 1 391k | fixed_function stringlengths 0 392k |
|---|---|
private void processEventQueue() {
if (mEventQueueInProgress) {
}else {
mEventQueueInProgress = true;
while ((mEventQueue.peek()) != null) {
de.artcom.hsm.Event event = mEventQueue.poll();
if (!(mCurrentState.handleWithOverride(event))) {
de.artcom.hsm.Sta... | private void processEventQueue() {
if (mEventQueueInProgress) {
return ;
}
mEventQueueInProgress = true;
while ((mEventQueue.peek()) != null) {
de.artcom.hsm.Event event = mEventQueue.poll();
if (!(mCurrentState.handleWithOverride(event))) {
de.artcom.hsm.StateMachine... |
public void shouldReturnNextNodeWhenLeftLeafIsGiven() {
int[] values = new int[]{ 1 , 2 , 3 , 4 , 5 , 6 , 7 };
cracking.answers.trees_graphs.ParentedBinaryTreeGenerator generator = new cracking.answers.trees_graphs.ParentedBinaryTreeGenerator();
cracking.answer_key.trees_graphs.IntTreeNode node = generator.... | public void shouldReturnNextNodeWhenLeftLeafIsGiven() {
int[] values = new int[]{ 1 , 2 , 3 , 4 , 5 , 6 , 7 };
cracking.answers.trees_graphs.ParentedBinaryTreeGenerator generator = new cracking.answers.trees_graphs.ParentedBinaryTreeGenerator();
cracking.answer_key.trees_graphs.IntTreeNode node = generator.... |
public java.lang.String toString() {
return (((((((("id: " + (getId())) + " target: ") + (getTarget())) + " type_of_receiver: ") + (getTypeOfReceiver())) + " template id: ") + (getTemplateId())) + " locale: ") + (getLocale().getLanguage());
} | public java.lang.String toString() {
return (((((((("id: " + (getId())) + " target: ") + (getTarget())) + " type_of_receiver: ") + (getTypeOfReceiver())) + " template id: ") + (getTemplateId())) + " locale: ") + (getLocale());
} |
protected void updateMesh() {
spatial.detachAllChildren();
org.shaman.rpg.engine.core.level.Map map = level.getMap();
org.shaman.rpg.engine.core.level.Chunk[][] chunks = map.getRawChunks();
for (int x = 0; x < (chunks.length); ++x) {
for (int y = 0; y < (chunks[x].length); ++y) {
pro... | protected void updateMesh() {
spatial.detachAllChildren();
org.shaman.rpg.engine.core.level.Map map = level.getMap();
if (map == null) {
return ;
}
org.shaman.rpg.engine.core.level.Chunk[][] chunks = map.getRawChunks();
for (int x = 0; x < (chunks.length); ++x) {
for (int y = 0; ... |
protected void notifyProgListenerEnd(int value, int status) {
if (jmri.jmrix.sprog.SprogProgrammer.log.isDebugEnabled()) {
jmri.jmrix.sprog.SprogProgrammer.log.debug(((("notifyProgListenerEnd value " + value) + " status ") + status));
}
if ((_usingProgrammer) == null) {
jmri.jmrix.sprog.Spro... | protected void notifyProgListenerEnd(int value, int status) {
jmri.jmrix.sprog.SprogProgrammer.log.debug(((("notifyProgListenerEnd value " + value) + " status ") + status));
if ((_usingProgrammer) == null) {
jmri.jmrix.sprog.SprogProgrammer.log.error("No listener to notify");
}else {
jmri.jm... |
public void parseVariableOperand_noFreeAdd() {
java.util.List<net.torocraft.minecoprocessors.util.Label> labels = new java.util.ArrayList<>();
byte[] instruction;
net.torocraft.minecoprocessors.util.ParseException e = null;
try {
net.torocraft.minecoprocessors.util.InstructionUtil.parseVariableO... | public void parseVariableOperand_noFreeAdd() {
java.util.List<net.torocraft.minecoprocessors.util.Label> labels = new java.util.ArrayList<>();
net.torocraft.minecoprocessors.util.ParseException e = null;
try {
net.torocraft.minecoprocessors.util.InstructionUtil.parseVariableOperand("", net.torocraft... |
private void setInterviewsParticipantIdAndIndex(final java.util.List<org.hmx.scitos.ais.domain.model.Interview> previousInterviews, final java.util.List<org.hmx.scitos.ais.domain.model.Interview> interviewsToAdd, final java.lang.String participantId) {
int index;
if (previousInterviews == null) {
index ... | private void setInterviewsParticipantIdAndIndex(final java.util.List<org.hmx.scitos.ais.domain.model.Interview> previousInterviews, final java.util.List<org.hmx.scitos.ais.domain.model.Interview> interviewsToAdd, final java.lang.String participantId) {
int index = 1;
if (previousInterviews != null) {
in... |
public mindmelt.maps.TileType getTile(int x, int y, int level) {
if ((x < 0) || (y < 0))
return TileType.space;
if ((x >= (mindmelt.maps.World.MAP_SIZE)) || (y >= (mindmelt.maps.World.MAP_SIZE)))
return TileType.space;
return map[level][y][x];
} | public mindmelt.maps.TileType getTile(int x, int y, int level) {
if ((x < 0) || (y < 0))
return TileType.space;
if ((x >= (mindmelt.maps.World.MAP_SIZE)) || (y >= (mindmelt.maps.World.MAP_SIZE)))
return TileType.space;
if ((map[level][y][x]) == null)
return TileType.space;
... |
public void start(final org.osgi.framework.BundleContext bundleContext) {
this.bundleContext = bundleContext;
java.util.Dictionary<java.lang.String, java.lang.Object> props = new java.util.Hashtable<java.lang.String, java.lang.Object>();
props.put(Constants.SERVICE_PID, org.apache.felix.scr.impl.config.ScrC... | public void start(final org.osgi.framework.BundleContext bundleContext) {
this.bundleContext = bundleContext;
java.util.Dictionary<java.lang.String, java.lang.Object> props = new java.util.Hashtable<java.lang.String, java.lang.Object>();
props.put(Constants.SERVICE_PID, org.apache.felix.scr.impl.config.ScrC... |
android.util.Log.v("BOYFRIEND", "Hey baby, as you are working just know you are beautiful. Love you :)");
android.net.Uri myUri = android.net.Uri.parse((((java.lang.String.valueOf(lives)) + " ") + (java.lang.String.valueOf(time))));
android.content.Intent X = new android.content.Intent(this, com.example.du... | android.net.Uri myUri = android.net.Uri.parse((((java.lang.String.valueOf(lives)) + " ") + (java.lang.String.valueOf(time))));
android.content.Intent X = new android.content.Intent(this, com.example.dupriest.comp580_bam.difficulty.class);
X.setData(myUri);
startActivity(X);
} |
private soot.jimple.InvokeExpr getSpecialInvoke(soot.jimple.InstanceInvokeExpr expr, edu.rpi.SootMethod senMethod) {
java.util.List<edu.rpi.Value> args = new java.util.ArrayList(expr.getArgs());
args.add(soot.jimple.NullConstant.v());
return soot.jimple.Jimple.v().newSpecialInvokeExpr(((edu.rpi.Local) (expr... | private soot.jimple.InvokeExpr getSpecialInvoke(soot.jimple.InstanceInvokeExpr expr, edu.rpi.SootMethod senMethod) {
java.util.List<edu.rpi.Value> args = new java.util.ArrayList(expr.getArgs());
args.add(0, soot.jimple.NullConstant.v());
return soot.jimple.Jimple.v().newSpecialInvokeExpr(((edu.rpi.Local) (e... |
public double getSumOfSalaries() throws java.sql.SQLException {
org.camunda.wf.hiring.dbAccess.DBAccess.getConnection();
java.sql.Statement state = org.camunda.wf.hiring.dbAccess.DBAccess.connection.createStatement();
java.lang.String query = "SELECT SUM(potentialSalary) as sum FROM Interview WHERE status =... | public double getSumOfSalaries() throws java.sql.SQLException {
org.camunda.wf.hiring.dbAccess.DBAccess.getConnection();
java.sql.Statement state = org.camunda.wf.hiring.dbAccess.DBAccess.connection.createStatement();
java.lang.String query = "SELECT SUM(potentialSalary) as sum FROM Interview WHERE status =... |
private void showFavoriteStops() {
android.util.Log.v(TAG, "showFavoriteStops - start");
if ((mFavoriteStopsFragment) == null) {
android.util.Log.v(TAG, "showFavoriteStops - adding new mFavoriteStopsFragment");
mFavoriteStopsFragment = new au.com.kbrsolutions.melbournepublictransport.fragments.F... | private void showFavoriteStops() {
android.util.Log.v(TAG, "showFavoriteStops - start");
if ((mFavoriteStopsFragment) == null) {
android.util.Log.v(TAG, "showFavoriteStops - adding new mFavoriteStopsFragment");
mFavoriteStopsFragment = new au.com.kbrsolutions.melbournepublictransport.fragments.F... |
protected edu.up.cs301.game.actionMsg.GameAction trickTaking() {
if ((state.getPlayerCards().get(playerNum).size()) == 0)
return null;
java.util.ArrayList<edu.up.cs301.card.Card> cards = state.getLegalCards();
edu.up.cs301.card.Card card = cards.get(cards.size());
android.util.Log.i(allPlay... | protected edu.up.cs301.game.actionMsg.GameAction trickTaking() {
if ((state.getPlayerCards().get(playerNum).size()) == 0)
return null;
java.util.ArrayList<edu.up.cs301.card.Card> cards = state.getLegalCards();
edu.up.cs301.card.Card card = cards.get(((cards.size()) - 1));
android.util.Log.i... |
protected boolean perform(java.lang.String[] args) {
try {
tokens.add(new assembler.arc8051.DirectiveTokens.OriginChangeToken(java.lang.Long.parseLong(args[0]), line));
} catch (java.lang.NumberFormatException e) {
problems.add(new assembler.util.problems.TokenizingProblem("Illegal number format... | protected boolean perform(java.lang.String[] args) {
try {
tokens.add(new assembler.arc8051.DirectiveTokens.OriginChangeToken(java.lang.Long.parseLong(args[0]), line));
} catch (java.lang.NumberFormatException e) {
problems.add(new assembler.util.problems.TokenizingProblem("Illegal number format... |
public void dropDownAndReverse() {
if ((shipMoving) == (LEFT)) {
shipMoving = RIGHT;
}else
if ((shipMoving) == (RIGHT)) {
shipMoving = LEFT;
}
y = (y) + (height);
shipSpeed = (shipSpeed) * 0.5F;
} | public void dropDownAndReverse() {
if ((shipMoving) == (LEFT)) {
shipMoving = RIGHT;
}else
if ((shipMoving) == (RIGHT)) {
shipMoving = LEFT;
}
y = (y) + (height);
} |
public void initializeFields() {
installmentsFrequency.setRawValue(InstallmentsFrequency.periodical);
if (salesForm) {
installmentsType.setVisible(false);
if (org.iabako.shared.tools.GenericTools.isEmpty(installmentsDefinedNumber.getValue())) {
installmentsNumber = 1;
ins... | public void initializeFields() {
installmentsFrequency.setRawValue(InstallmentsFrequency.periodical);
if (salesForm) {
installmentsType.setVisible(false);
installmentsType.setRawValue(false);
installmentsDefinedNumber.setVisible(true);
if (org.iabako.shared.tools.GenericTools.isE... |
private void presentRequested() {
mRequestedWebVR = true;
switch (enterVRIfNecessary()) {
case org.chromium.chrome.browser.vr_shell.VrShellDelegate.ENTER_VR_NOT_NECESSARY :
mVrShell.setWebVrModeEnabled(true);
nativeSetPresentResult(mNativeVrShellDelegate, true);
mRequ... | private void presentRequested() {
mRequestedWebVR = true;
switch (enterVRIfNecessary()) {
case org.chromium.chrome.browser.vr_shell.VrShellDelegate.ENTER_VR_NOT_NECESSARY :
mVrShell.setWebVrModeEnabled(true);
nativeSetPresentResult(mNativeVrShellDelegate, true);
mRequ... |
public void deleteGame(int idGioco) throws concrete.SQLException {
java.sql.Connection connection = database.DB.openConnection();
java.sql.PreparedStatement ps = con.prepareStatement(concrete.GiocoDao.DELETE);
ps.setString(1, idGioco);
java.sql.ResultSet rset = ps.executeUpdate();
rset.close();
... | public void deleteGame(int idGioco) throws concrete.SQLException {
java.sql.Connection connection = database.DB.openConnection();
java.sql.PreparedStatement ps = connection.prepareStatement(concrete.GiocoDao.DELETE);
ps.setString(1, idGioco);
java.sql.ResultSet rset = ps.executeUpdate();
rset.close(... |
private void visualizeViews(boolean isConnected) {
if (isConnected) {
getActivity().findViewById(R.id.main_noConnection_text).setVisibility(View.INVISIBLE);
getActivity().findViewById(R.id.main_retry_button).setVisibility(View.INVISIBLE);
mGridView.setVisibility(View.VISIBLE);
}else {
... | private void visualizeViews(boolean isConnected) {
if (isConnected) {
getActivity().findViewById(R.id.main_noConnection_text).setVisibility(View.INVISIBLE);
getActivity().findViewById(R.id.main_retry_button).setVisibility(View.INVISIBLE);
mGridView.setVisibility(View.VISIBLE);
}else {
... |
public void updateProbablesList(java.lang.String currentWord, int numOfCharsInCommon) {
java.util.Set<java.lang.String> temp = new java.util.TreeSet<>();
java.util.Iterator<java.lang.String> iter = probablesList.iterator();
while (iter.hasNext()) {
java.lang.String s = iter.next();
if ((getN... | public void updateProbablesList(java.lang.String currentWord, int numOfCharsInCommon) {
java.util.Iterator<java.lang.String> iter = probablesList.iterator();
while (iter.hasNext()) {
java.lang.String s = iter.next();
if ((getNumberOfCharactersInCommon(s, currentWord)) != numOfCharsInCommon) {
... |
public org.osgl.util.S.Buffer prepend(org.osgl.util.S.Buffer asb) {
if (asb == null)
return prependNull();
int len = asb.length();
ensureCapacityInternal(((count) + len));
java.lang.System.arraycopy(value, 0, value, count, count);
asb.getChars(0, len, value, 0);
count += len;
re... | public org.osgl.util.S.Buffer prepend(org.osgl.util.S.Buffer asb) {
if (asb == null)
return prependNull();
int len = asb.length();
ensureCapacityInternal(((count) + len));
java.lang.System.arraycopy(value, 0, value, len, count);
asb.getChars(0, len, value, 0);
count += len;
retu... |
public void onAnimationEnd(android.animation.Animator animation) {
if (!(canceled)) {
currentAnimator = null;
setState(com.flipboard.bottomsheet.BottomSheetLayout.State.HIDDEN);
setSheetLayerTypeIfEnabled(com.flipboard.bottomsheet.LAYER_TYPE_NONE);
removeView(sheetView);
for ... | public void onAnimationEnd(android.animation.Animator animation) {
if (!(canceled)) {
currentAnimator = null;
setState(com.flipboard.bottomsheet.BottomSheetLayout.State.HIDDEN);
setSheetLayerTypeIfEnabled(com.flipboard.bottomsheet.LAYER_TYPE_NONE);
removeView(sheetView);
for ... |
public double course(edu.stevens.nav.LatLon p2) {
double dLon = (p2.lon) - (lon);
double tana = (((java.lang.Math.sin(dLon)) / (java.lang.Math.cos(lat))) * (java.lang.Math.tan(p2.lat))) - ((java.lang.Math.sin(lat)) * (java.lang.Math.cos(dLon)));
return java.lang.Math.atan(tana);
} | public double course(edu.stevens.nav.LatLon p2) {
double dLon = (p2.lon) - (lon);
double tana = (java.lang.Math.sin(dLon)) / (((java.lang.Math.cos(lat)) * (java.lang.Math.tan(p2.lat))) - ((java.lang.Math.sin(lat)) * (java.lang.Math.cos(dLon))));
return java.lang.Math.atan(tana);
} |
public closestPair.XyList right() {
java.util.ArrayList<closestPair.Node> newXLx = new java.util.ArrayList<closestPair.Node>();
java.util.ArrayList<closestPair.Node> newXLy = new java.util.ArrayList<closestPair.Node>();
newXLx.addAll(xList.subList((((xList.size()) - 1) / 2), ((xList.size()) - 1)));
newX... | public closestPair.XyList right() {
java.util.ArrayList<closestPair.Node> newXLx = new java.util.ArrayList<closestPair.Node>();
java.util.ArrayList<closestPair.Node> newXLy = new java.util.ArrayList<closestPair.Node>();
newXLx.addAll(xList.subList(((xList.size()) / 2), xList.size()));
newXLy.addAll(newX... |
public void jump() {
if ((this.velocity.y) == 0) {
this.velocity = new Vector(((this.velocity.x) + (SPEED)), ((this.velocity.y) - (JUMP_HEIGHT)));
if (colliding) {
this.velocity.x = 0;
}
}
} | public void jump() {
if ((this.velocity.y) == 0) {
this.velocity = new Vector(((this.velocity.x) + (SPEED)), ((this.velocity.y) - (JUMP_HEIGHT)));
}
} |
public boolean onCreateOptionsMenu(android.view.Menu menu) {
getMenuInflater().inflate(R.menu.menu_main, menu);
menu.findItem(R.id.action_search).setIcon(new com.mikepenz.iconics.IconicsDrawable(getApplicationContext(), GoogleMaterial.Icon.gmd_search).color(android.support.v4.content.ContextCompat.getColor(this... | public boolean onCreateOptionsMenu(android.view.Menu menu) {
getMenuInflater().inflate(R.menu.menu_main, menu);
menu.findItem(R.id.action_search).setIcon(new com.mikepenz.iconics.IconicsDrawable(getApplicationContext(), GoogleMaterial.Icon.gmd_search).actionBar().paddingDp(2));
return true;
} |
protected void fuehreBerechnungAus() {
try {
com.example.patsc.fallstudie.Covered.Preissimulation preissim = new com.example.patsc.fallstudie.Covered.Preissimulation(this);
getDaten().ASDsetPreisSim(preissim);
rundeHochladen(this);
com.example.patsc.fallstudie.Network.RundenErgebnisW... | public void fuehreBerechnungAus() {
try {
com.example.patsc.fallstudie.Covered.Preissimulation preissim = new com.example.patsc.fallstudie.Covered.Preissimulation(this);
getDaten().ASDsetPreisSim(preissim);
rundeHochladen(this);
com.example.patsc.fallstudie.Network.RundenErgebnisWrap... |
private java.lang.String getText(java.lang.String url) {
java.lang.String text = "";
try {
org.jsoup.nodes.Document doc = org.jsoup.Jsoup.connect(url).userAgent("Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.152 Safari/537.36").get();
doc.... | private java.lang.String getText(java.lang.String url) {
java.lang.String text = "";
try {
org.jsoup.nodes.Document doc = org.jsoup.Jsoup.connect(url).userAgent("Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.152 Safari/537.36").get();
doc.... |
public void action() {
jade.lang.acl.ACLMessage message = myAgent.receive();
int performative = message.getPerformative();
if ((message != null) && (performative == (jade.lang.acl.ACLMessage.REQUEST))) {
reply(message);
}else {
block();
}
} | public void action() {
jade.lang.acl.ACLMessage message = null;
if ((message = myAgent.receive()) != null) {
int performative = message.getPerformative();
switch (performative) {
case jade.lang.acl.ACLMessage.REQUEST :
reply(message);
}
}else {
blo... |
private void revealBoard() {
for (int y = 0; y < (boardHeight); y++) {
for (int x = 0; x < (boardWidth); x++) {
getCell(x, y).setRevealed(true);
}
}
} | private void revealBoard() {
for (int y = 0; y < (boardHeight); y++) {
for (int x = 0; x < (boardWidth); x++) {
getCell(y, x).setRevealed(true);
}
}
} |
public void toolExecutor() {
switch (optionText) {
case "calc" :
new GradeCalculator.Initialinput().foundationMaker();
break;
case "txt" :
if (new Validation.PasswordValidation().verify()) {
IntroScreen.MainScreen.getCurrentStage().setScene(new Not... | public void toolExecutor() {
switch (optionText) {
case "calc" :
new GradeCalculator.Initialinput().foundationMaker();
break;
case "txt" :
IntroScreen.MainScreen.getCurrentStage().setScene(new Notepad.Writer().getNotepadScene());
break;
case "p... |
public void addNewAccount() {
org.ethereum.core.Account account = new org.ethereum.core.Account();
java.lang.String address = org.spongycastle.util.encoders.Hex.toHexString(account.getEcKey().getAddress());
rows.put(address, account);
for (org.ethereum.core.Wallet.WalletListener listener : listeners)
... | public void addNewAccount() {
org.ethereum.core.Account account = new org.ethereum.core.Account();
account.init();
java.lang.String address = org.spongycastle.util.encoders.Hex.toHexString(account.getEcKey().getAddress());
rows.put(address, account);
for (org.ethereum.core.Wallet.WalletListener list... |
public com.itextpdf.kernel.geom.Rectangle getCropBox() {
initParentPages();
com.itextpdf.kernel.pdf.PdfArray cropBox = getPdfObject().getAsArray(PdfName.CropBox);
if (cropBox == null) {
cropBox = ((com.itextpdf.kernel.pdf.PdfArray) (getParentValue(parentPages, PdfName.CropBox)));
if (cropBox... | public com.itextpdf.kernel.geom.Rectangle getCropBox() {
initParentPages();
com.itextpdf.kernel.pdf.PdfArray cropBox = getPdfObject().getAsArray(PdfName.CropBox);
if (cropBox == null) {
cropBox = ((com.itextpdf.kernel.pdf.PdfArray) (getParentValue(parentPages, PdfName.CropBox)));
if (cropBox... |
public void onUpdateRecipientSuccess(com.silverpop.engage.UpdateRecipientResponse updateCurrentRecipientResponse) {
final java.lang.String oldRecipientId = com.silverpop.engage.config.EngageConfig.recipientId(getContext());
final java.lang.String newRecipientId = updateCurrentRecipientResponse.getRecipientId();... | public void onUpdateRecipientSuccess(com.silverpop.engage.UpdateRecipientResponse updateCurrentRecipientResponse) {
final java.lang.String oldRecipientId = com.silverpop.engage.config.EngageConfig.recipientId(getContext());
final java.lang.String newRecipientId = updateCurrentRecipientResponse.getRecipientId();... |
public de.marsetex.lab2.task3.RationalNumber subtract(de.marsetex.lab2.task3.RationalNumber other) {
int zaehlerTemp = ((zaehler) * (other.nenner)) - ((other.zaehler) * (nenner));
int nennerTemp = (nenner) * (other.nenner);
return new de.marsetex.lab2.task3.RationalNumber(zaehlerTemp, nennerTemp);
} | public de.marsetex.lab2.task3.RationalNumber subtract(de.marsetex.lab2.task3.RationalNumber other) {
if (other == null) {
return null;
}
int zaehlerTemp = ((zaehler) * (other.nenner)) - ((other.zaehler) * (nenner));
int nennerTemp = (nenner) * (other.nenner);
return new de.marsetex.lab2.task... |
public void initialize(org.eclipse.ui.application.IWorkbenchConfigurer configurer) {
java.lang.System.setProperty("pydev.funding.hide", "true");
org.eclipse.ui.ide.IDE.registerAdapters();
super.initialize(configurer);
if ((java.lang.System.getProperty("gda.ignore.SWT.AWT.workaround")) == null) {
... | public void initialize(org.eclipse.ui.application.IWorkbenchConfigurer configurer) {
java.lang.System.setProperty("pydev.funding.hide", "true");
org.eclipse.ui.ide.IDE.registerAdapters();
super.initialize(configurer);
java.lang.System.setProperty("sun.awt.noerasebackground", "true");
boolean doSaveR... |
public void showResult(de.prob2.ui.verifications.CheckingResultItem resultItem, de.prob2.ui.verifications.AbstractCheckableItem item, java.util.ArrayList<de.prob.statespace.Trace> traces) {
super.showResult(resultItem, item);
if (!(traces.isEmpty())) {
((de.prob2.ui.verifications.ltl.formula.LTLFormulaI... | public void showResult(de.prob2.ui.verifications.CheckingResultItem resultItem, de.prob2.ui.verifications.AbstractCheckableItem item, java.util.List<de.prob.statespace.Trace> traces) {
super.showResult(resultItem, item);
if (!(traces.isEmpty())) {
((de.prob2.ui.verifications.ltl.formula.LTLFormulaItem) ... |
public fm.ensemble.soundcloud.SoundCloud build() {
com.soundcloud.api.Token token = null;
if (((accessToken) != null) && ((refreshToken) != null)) {
token = new com.soundcloud.api.Token(accessToken, refreshToken, scope);
}
com.soundcloud.api.ApiWrapper api = new com.soundcloud.api.ApiWrapper(cli... | public fm.ensemble.soundcloud.SoundCloud build() {
com.soundcloud.api.Token token = null;
if ((accessToken) != null) {
token = new com.soundcloud.api.Token(accessToken, refreshToken, scope);
}
com.soundcloud.api.ApiWrapper api = new com.soundcloud.api.ApiWrapper(clientId, clientSecret, redirectU... |
public void setWordLength(int length) {
int check = this.words.get(0).length();
for (java.lang.String word : this.words) {
if ((word.length()) == length) {
check = length;
break;
}
}
this.length = check;
} | public void setWordLength(int length) {
int check = this.words.get(0).length();
for (java.lang.String word : this.words) {
if ((word.length()) == length) {
check = length;
break;
}else
if (check > (word.length())) {
check = word.length();
... |
public java.util.List<java.lang.String> fileToList(java.io.File file) throws java.io.IOException {
java.util.List<java.lang.String> result = new java.util.ArrayList<>();
try (java.io.BufferedReader fileReader = new java.io.BufferedReader(new java.io.FileReader(file.getAbsolutePath()))) {
java.lang.Strin... | private java.util.List<java.lang.String> fileToList(java.io.File file) throws java.io.IOException {
java.util.List<java.lang.String> result = new java.util.ArrayList<>();
try (java.io.BufferedReader fileReader = new java.io.BufferedReader(new java.io.FileReader(file.getAbsolutePath()))) {
java.lang.Stri... |
protected void addChildren(int index, org.jsoup.nodes.Node... children) {
org.jsoup.helper.Validate.noNullElements(children);
for (int i = (children.length) - 1; i >= 0; i--) {
org.jsoup.nodes.Node in = children[i];
reparentChild(in);
ensureChildNodes();
childNodes.add(index, in)... | protected void addChildren(int index, org.jsoup.nodes.Node... children) {
org.jsoup.helper.Validate.noNullElements(children);
ensureChildNodes();
for (int i = (children.length) - 1; i >= 0; i--) {
org.jsoup.nodes.Node in = children[i];
reparentChild(in);
childNodes.add(index, in);
... |
protected void onDestroy() {
if ((mChronometer) != null)
mChronometer.stop();
com.lwk.familycontact.im.helper.HxCallHelper.getInstance().removeCallStateChangeListener(mStateChangeListener);
com.lwk.familycontact.project.chat.utils.HeadSetReceiver.unregistFromActivity(this, mHeadSetReceiver);
... | protected void onDestroy() {
if ((mChronometer) != null)
mChronometer.stop();
com.lwk.familycontact.im.helper.HxCallHelper.getInstance().removeCallStateChangeListener(mStateChangeListener);
com.lwk.familycontact.project.chat.utils.HeadSetReceiver.unregistFromActivity(this, mHeadSetReceiver);
... |
public com.google.android.gms.maps.model.LatLng latlng() {
if (coordinates.isEmpty()) {
return null;
}
java.util.StringTokenizer tok = new java.util.StringTokenizer(coordinates, ",");
return new com.google.android.gms.maps.model.LatLng(java.lang.Double.parseDouble(tok.nextToken()), java.lang.Dou... | public com.google.android.gms.maps.model.LatLng latlng() {
if ((coordinates.isEmpty()) || ((coordinates) == null)) {
return null;
}
java.util.StringTokenizer tok = new java.util.StringTokenizer(coordinates, ",");
return new com.google.android.gms.maps.model.LatLng(java.lang.Double.parseDouble(to... |
private void validateSeat(pl.com.bottega.cinemac.model.commands.ValidationErrors errors, pl.com.bottega.cinemac.model.showing.Seat seat) {
if ((seat.getSeat()) == null)
errors.add("seat", "Field cant be blank");
if (((seat.getSeat()) > (pl.com.bottega.cinemac.model.commands.CreateReservationCommand... | private void validateSeat(pl.com.bottega.cinemac.model.commands.ValidationErrors errors, pl.com.bottega.cinemac.model.showing.Seat seat) {
if ((seat.getSeat()) == null)
errors.add("seat", "Field cant be blank");
if (((seat.getSeat()) > (pl.com.bottega.cinemac.model.commands.CreateReservationCommand... |
public boolean onOptionsItemSelected(android.view.MenuItem item) {
switch (item.getItemId()) {
case android.R.id.home :
java.lang.String message = null;
android.content.Intent intent = new android.content.Intent(this, com.personal.learn_android.HomeActivity.class);
intent... | public boolean onOptionsItemSelected(android.view.MenuItem item) {
int id = item.getItemId();
if (id == (android.R.id.home)) {
java.lang.String message = null;
android.content.Intent intent = new android.content.Intent(this, com.personal.learn_android.HomeActivity.class);
intent.putExtra... |
private void refresModifiedMetadataInDatabase(java.util.HashMap<java.lang.String, java.util.ArrayList<fr.ac_versailles.crdp.apiscol.meta.hierarchy.Modification>> modifications) throws fr.ac_versailles.crdp.apiscol.database.DBAccessException, fr.ac_versailles.crdp.apiscol.meta.fileSystemAccess.MetadataNotFoundException ... | private void refresModifiedMetadataInDatabase(java.util.HashMap<java.lang.String, java.util.ArrayList<fr.ac_versailles.crdp.apiscol.meta.hierarchy.Modification>> modifications) throws fr.ac_versailles.crdp.apiscol.database.DBAccessException, fr.ac_versailles.crdp.apiscol.meta.fileSystemAccess.MetadataNotFoundException ... |
public java.lang.String addPet() {
com.konstpan.jee.vetcalendar.entity.Customer cust = customerService.findCustomerById(customer.getId());
cust.getPets().add(pet);
customerService.update(cust);
pet = null;
javax.faces.application.FacesMessage facesMsg = new javax.faces.application.FacesMessage(javax... | public java.lang.String addPet() {
customer = customerService.findCustomerById(customer.getId());
customer.getPets().add(pet);
customerService.update(customer);
customer = null;
pet = null;
javax.faces.application.FacesMessage facesMsg = new javax.faces.application.FacesMessage(javax.faces.appli... |
public static boolean hasStatus(byte[] receivedApdu, byte[] statusCode) throws java.io.IOException {
byte[] receivedStatus = nordpol.Apdu.statusBytes(receivedApdu);
return ((receivedStatus[0]) == (statusCode[0])) && ((receivedStatus[0]) == (statusCode[0]));
} | public static boolean hasStatus(byte[] receivedApdu, byte[] statusCode) throws java.io.IOException {
byte[] receivedStatus = nordpol.Apdu.statusBytes(receivedApdu);
return ((receivedStatus[0]) == (statusCode[0])) && ((receivedStatus[1]) == (statusCode[1]));
} |
public static void main(java.lang.String[] args) {
int[] A = new int[]{ 4 , 6 , 7 , 2 , 4 , 9 , 1 , 3 };
interview.QuickSort.quickSort(A, 0, ((A.length) - 1));
for (int i = 0; i < ((A.length) - 1); i++) {
java.lang.System.out.print(((A[i]) + "\t"));
}
} | public static void main(java.lang.String[] args) {
int[] A = new int[]{ 4 , 6 , 7 , 2 , 4 , 9 , 1 , 3 };
interview.QuickSort.quickSort(A, 0, ((A.length) - 1));
for (int i = 0; i < (A.length); i++) {
java.lang.System.out.print(((A[i]) + "\t"));
}
} |
public <T extends net.unaussprechlich.managedgui.lib.event.util.Event> boolean doEventBus(T event) {
if ((event.getID()) == (EnumDefaultEvents.SCALE_CHANGED.get())) {
frameBuffer = new net.unaussprechlich.managedgui.lib.util.FrameBufferObj(((getWidth()) * (net.unaussprechlich.managedgui.lib.util.DisplayUtil... | public <T extends net.unaussprechlich.managedgui.lib.event.util.Event> boolean doEventBus(T event) {
if ((event.getID()) == (EnumDefaultEvents.SCALE_CHANGED.get())) {
frameBuffer = new net.unaussprechlich.managedgui.lib.util.FrameBufferObj(((getWidth()) * (net.unaussprechlich.managedgui.lib.util.DisplayUtil... |
private void sortLanguages() {
if ((mLanguagePref) == null)
return ;
android.util.Pair<java.lang.String[], java.lang.String[]> pair = org.wordpress.android.util.WPPrefUtils.createSortedLanguageDisplayStrings(mLanguagePref.getEntryValues(), org.wordpress.android.util.WPPrefUtils.languageLocale(null)... | private void sortLanguages() {
if ((mLanguagePref) == null)
return ;
android.util.Pair<java.lang.String[], java.lang.String[]> pair = org.wordpress.android.util.WPPrefUtils.createSortedLanguageDisplayStrings(mLanguagePref.getEntryValues(), org.wordpress.android.util.WPPrefUtils.languageLocale(null)... |
public void addTimeKeyword(java.lang.String key, java.lang.String value) {
java.lang.System.out.println((key + value));
if (!(com.github.TimeComponent.timeExpressionString.contains(value))) {
com.github.TimeComponent.timeExpressionString = ((com.github.TimeComponent.timeExpressionString) + value) + " ";... | public void addTimeKeyword(java.lang.String key, java.lang.String value) {
if (!(com.github.TimeComponent.timeExpressionString.contains(value))) {
com.github.TimeComponent.timeExpressionString = ((com.github.TimeComponent.timeExpressionString) + value) + " ";
}
com.github.TimeComponent.timeKeywords.... |
public java.lang.String save(com.kk.model.User admin, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, @org.springframework.web.bind.annotation.RequestParam(value = "id")
int id) {
com.kk.model.User user = userService.getUser(id);
if (user == null) {
return... | public java.lang.String delete(com.kk.model.User admin, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, @org.springframework.web.bind.annotation.RequestParam(value = "id")
int id) {
com.kk.model.User user = userService.getUser(id);
if (user == null) {
retu... |
private static java.lang.String getProjectBaseDirectory() {
java.lang.String path = java.nio.file.Paths.get("").toAbsolutePath().normalize().toString();
path = path.substring(0, path.lastIndexOf(ee.sk.pdfvalidatortest.PdfValidatorSoapTests.PROJECT_SUBMODULE_NAME));
return path + (java.io.File.separator);
} | private static java.lang.String getProjectBaseDirectory() {
java.lang.String path = java.nio.file.Paths.get("").toAbsolutePath().normalize().toString();
path = path.substring(0, path.lastIndexOf(ee.sk.pdfvalidatortest.PdfValidatorSoapTests.PROJECT_SUBMODULE_NAME));
return (path + (ee.sk.pdfvalidatortest.Pdf... |
public void onClick(android.view.View v) {
java.lang.String status = ca.ualberta.cs.travelapp.ClaimListController.getClaimList().getClaims().get(index).getStatus();
if ((status.equals("In Progress")) || (status.equals("Returned"))) {
try {
editClaimAction(v);
} catch (java.text.Parse... | public void onClick(android.view.View v) {
java.lang.String status = ca.ualberta.cs.travelapp.ClaimListController.getClaimList().getClaims().get(index).getStatus().trim();
if ((status.equals("In Progress")) || (status.equals("Returned"))) {
try {
editClaimAction(v);
} catch (java.tex... |
public void saveToLastPoem(at.alextornoreanu.thegesichtgedicht.model.Poem poem) {
android.content.SharedPreferences sharedPref = android.preference.PreferenceManager.getDefaultSharedPreferences(mContext);
android.content.SharedPreferences.Editor editor = sharedPref.edit();
editor.putString(poem.getTitle(), ... | public void saveToLastPoem(at.alextornoreanu.thegesichtgedicht.model.Poem poem) {
android.content.SharedPreferences sharedPref = android.preference.PreferenceManager.getDefaultSharedPreferences(mContext);
android.content.SharedPreferences.Editor editor = sharedPref.edit();
editor.putString(at.alextornoreanu... |
public java.lang.String checkDefaultDocumentCollection(com.bagri.core.model.Document doc) {
com.bagri.core.system.Collection cln = getTypedCollection(repo.getSchema(), doc.getTypeRoot());
logger.trace("checkDefaultDocumentCollection; got collection: {} for typePath: {}", cln, doc.getTypeRoot());
if (cln != ... | public java.lang.String checkDefaultDocumentCollection(com.bagri.core.model.Document doc) {
java.util.Collection cln = getTypedCollection(repo.getSchema(), doc.getTypeRoot());
logger.trace("checkDefaultDocumentCollection; got collection: {} for typePath: {}", cln, doc.getTypeRoot());
if (cln != null) {
... |
private void FillCombo() {
try {
MainSystem.DB_Connect.DB_ResultSet = MainSystem.AutoSQLQuery.db_con.executeQuery("SELECT * FROM garmentsystem.Machine_Table");
while (DB_Connect.DB_ResultSet.next()) {
java.lang.String id = DB_Connect.DB_ResultSet.getString("Machine_id");
mach... | private void FillCombo() {
try {
MainSystem.DB_Connect.DB_ResultSet = MainSystem.AutoSQLQuery.db_con.executeQuery("SELECT * FROM garmentsystem.Machine_Table");
while (DB_Connect.DB_ResultSet.next()) {
java.lang.String id = DB_Connect.DB_ResultSet.getString("Machine_id");
}
}... |
public static void updateImmersiveMode() {
if ((android.os.Build.VERSION.SDK_INT) >= 19) {
try {
instance.getWindow().getDecorView().setSystemUiVisibility((com.watabou.pixeldungeon.PixelDungeon.immersed() ? (((((android.view.View.SYSTEM_UI_FLAG_LAYOUT_STABLE) | (android.view.View.SYSTEM_UI_FLAG_... | public static void updateImmersiveMode() {
if ((android.os.Build.VERSION.SDK_INT) >= 19) {
try {
instance.getWindow().getDecorView().setSystemUiVisibility(0);
} catch (java.lang.Exception e) {
com.watabou.pixeldungeon.PixelDungeon.reportException(e);
}
}
} |
private void addArista(int i, int j) {
java.util.List<util.Grafo.AristaDirigida> set;
if (!(verticesConAristas.containsKey(i)))
set = new java.util.ArrayList<util.Grafo.AristaDirigida>();
else
set = verticesConAristas.get(i);
set.add(new util.Grafo.AristaDirigida(i, j));
} | private void addArista(int i, int j) {
java.util.List<util.Grafo.AristaDirigida> set;
if (!(verticesConAristas.containsKey(i)))
verticesConAristas.put(i, new java.util.ArrayList<util.Grafo.AristaDirigida>());
set = verticesConAristas.get(i);
set.add(new util.Grafo.AristaDirigida(i, j));
} |
public void shouldParseIntFromOneByteWithBiggerArray() {
byte[] bytes = new byte[]{ 1 , 2 , 3 , ((byte) (5)) , 0 , 0 , 0 , 5 , 6 , 7 , 8 };
final int parseInt = pl.grzeslowski.jsupla.protocol.decoders.PrimitiveParser.parseUnsignedInt(bytes, 3);
org.assertj.core.api.Assertions.assertThat(parseInt).isEqualTo(... | public void shouldParseIntFromOneByteWithBiggerArray() {
byte[] bytes = new byte[]{ 1 , 2 , 3 , ((byte) (5)) , 0 , 0 , 0 , 5 , 6 , 7 , 8 };
final long parseInt = pl.grzeslowski.jsupla.protocol.decoders.PrimitiveParser.parseUnsignedInt(bytes, 3);
org.assertj.core.api.Assertions.assertThat(parseInt).isEqualTo... |
public boolean isNeighbour(org.nschmidt.ldparteditor.data.Vertex v1, org.nschmidt.ldparteditor.data.Vertex v2) {
java.util.Set<org.nschmidt.ldparteditor.data.VertexManifestation> m1 = vertexLinkedToPositionInFile.get(v1);
java.util.Set<org.nschmidt.ldparteditor.data.VertexManifestation> m2 = vertexLinkedToPosit... | public boolean isNeighbour(org.nschmidt.ldparteditor.data.Vertex v1, org.nschmidt.ldparteditor.data.Vertex v2) {
java.util.Set<org.nschmidt.ldparteditor.data.VertexManifestation> m1 = vertexLinkedToPositionInFile.get(v1);
java.util.Set<org.nschmidt.ldparteditor.data.VertexManifestation> m2 = vertexLinkedToPosit... |
public void RemoveWindow(int MDI_CLASS_INDEX) {
java.lang.String removedWindow = MDIClasses.get(MDI_CLASS_INDEX).filename;
for (int jm = 0; jm < (jMenuView.getItemCount()); jm++) {
java.lang.String thisFileItemString = jMenuView.getItem(jm).getText();
if (thisFileItemString.equals(removedWindow)... | public void RemoveWindow(int MDI_CLASS_INDEX) {
if (MDI_CLASS_INDEX >= 0) {
java.lang.String removedWindow = MDIClasses.get(MDI_CLASS_INDEX).filename;
for (int jm = 0; jm < (jMenuView.getItemCount()); jm++) {
java.lang.String thisFileItemString = jMenuView.getItem(jm).getText();
... |
public android.view.View onCreateView(android.view.LayoutInflater inflater, @android.support.annotation.Nullable
android.view.ViewGroup container, android.os.Bundle savedInstanceState) {
setTitleActivity();
android.view.View view = inflater.inflate(R.layout.fragment_riepilogo, container, false);
final java.... | public android.view.View onCreateView(android.view.LayoutInflater inflater, @android.support.annotation.Nullable
android.view.ViewGroup container, android.os.Bundle savedInstanceState) {
setTitleActivity();
android.view.View view = inflater.inflate(R.layout.fragment_riepilogo, container, false);
riempiTable... |
public boolean onOptionsItemSelected(android.view.MenuItem item) {
int id = item.getItemId();
if (id == (R.id.action_settings)) {
return true;
}
switch (item.getItemId()) {
case R.id.discarded :
markDiscarded();
case R.id.eaten :
markEaten();
case ... | public boolean onOptionsItemSelected(android.view.MenuItem item) {
int id = item.getItemId();
if (id == (R.id.action_settings)) {
return true;
}
switch (item.getItemId()) {
case R.id.discarded :
markDiscarded();
return true;
case R.id.eaten :
m... |
private static void filenameList(game.Block[][] Maze, java.lang.String[] filenames) {
for (int block_row = 0; block_row < (game.App.size); block_row++) {
for (int block_col = 0; block_col < (game.App.size); block_col++) {
filenames[((block_row * 10) + block_col)] = Maze[block_row][block_col].get... | private static void filenameList(game.Block[][] Maze, java.lang.String[] filenames) {
for (int block_row = 0; block_row < (game.App.size); block_row++) {
for (int block_col = 0; block_col < (game.App.size); block_col++) {
filenames[((block_row * (game.App.size)) + block_col)] = Maze[block_row][b... |
private java.lang.String trimInput(java.lang.String input) {
while ((input.charAt(0)) == '(')
input = input.substring(1);
while ((input.charAt(((input.length()) - 1))) == ')')
input = input.substring(((input.length()) - 1));
return input;
} | private java.lang.String trimInput(java.lang.String input) {
if ((input.length()) > 0) {
while ((input.charAt(0)) == '(')
input = input.substring(1);
while ((input.charAt(((input.length()) - 1))) == ')')
input = input.substring(((input.length()) - 1));
}... |
protected com.nordman.big.myfellowcompass.backend.geoBeanApi.model.GeoBean doInBackground(java.lang.String... params) {
java.lang.Long id = java.lang.Long.parseLong(params[0]);
try {
return com.nordman.big.myfellowcompass.GeoEndpointManager.geoApiService.get(id).execute();
} catch (java.io.IOExcepti... | protected com.nordman.big.myfellowcompass.backend.geoBeanApi.model.GeoBean doInBackground(java.lang.String... params) {
if ((params[0]) == null)
return null;
java.lang.Long id = java.lang.Long.parseLong(params[0]);
try {
return com.nordman.big.myfellowcompass.GeoEndpointManager.geoApiSe... |
private void defaultTargetTestsToGroupNameIfNoValueSet() {
if ((this.getTargetTests()) == null) {
this.targetTests = org.pitest.maven.ScmMojo.makeConcreteList(java.util.Collections.singletonList(((this.getProject().getGroupId()) + "*")));
}
} | private void defaultTargetTestsToGroupNameIfNoValueSet() {
if (((this.getTargetTests()) == null) || (this.getTargetTests().isEmpty())) {
this.targetTests = org.pitest.maven.ScmMojo.makeConcreteList(java.util.Collections.singletonList(((this.getProject().getGroupId()) + "*")));
}
} |
public void testAddNodeToEmptyList() {
java.lang.System.out.println("addNodeToEmptyList");
int index = 0;
java.lang.String element = "Added Element";
linkedlistdiscussion.LinkedList<java.lang.String> instance = new linkedlistdiscussion.LinkedList();
boolean expResult = true;
boolean result = ins... | public void testAddNodeToEmptyList() {
java.lang.System.out.println("addNodeToEmptyList");
int index = 0;
java.lang.String element = "Added Element";
linkedlistdiscussion.LinkedList<java.lang.String> instance = new linkedlistdiscussion.LinkedList();
boolean result = instance.add(index, element);
... |
public void onComplete(@android.support.annotation.NonNull
com.google.android.gms.tasks.Task<java.lang.Void> task) {
android.widget.Toast.makeText(this, "RIGHT after the bug", Toast.LENGTH_SHORT).show();
if (task.isSuccessful()) {
finish();
}else {
android.widget.Toast.makeText(this, task.ge... | public void onComplete(@android.support.annotation.NonNull
com.google.android.gms.tasks.Task<java.lang.Void> task) {
if (task.isSuccessful()) {
finish();
}else {
android.widget.Toast.makeText(this, task.getException().getMessage(), Toast.LENGTH_LONG).show();
}
} |
private static boolean isEmptyFile() {
java.io.FileReader fr = null;
boolean isNothingRead = true;
try {
fr = new java.io.FileReader(storage.Storage.FILENAME);
} catch (java.io.FileNotFoundException e) {
e.printStackTrace();
}
try {
if ((fr.read()) == (-1)) {
... | private static boolean isEmptyFile() {
java.io.FileReader fr = null;
try {
fr = new java.io.FileReader(storage.Storage.FILENAME);
} catch (java.io.FileNotFoundException e) {
e.printStackTrace();
}
try {
if ((fr.read()) == (-1)) {
return true;
}
} catch... |
public static int setHours(boolean isMilitary) {
int maxHours = (isMilitary) ? 23 : 12;
java.lang.System.out.print("Set the hours: ");
java.util.Scanner hoursInput = new java.util.Scanner(java.lang.System.in);
int hours = hoursInput.nextInt();
while (((hours < 0) || (hours > maxHours)) || ((hours ==... | public static int setHours(boolean isMilitary) {
int maxHours = (isMilitary) ? 23 : 12;
java.lang.System.out.print("Set the hours: ");
java.util.Scanner hoursInput = new java.util.Scanner(java.lang.System.in);
int hours = hoursInput.nextInt();
while (((hours < 0) || (hours > maxHours)) || (((hours <... |
public void onClick(android.view.View v) {
if (mDrawerLayout.isDrawerOpen(((android.view.Gravity.START) | (android.view.Gravity.LEFT)))) {
mDrawerLayout.closeDrawers();
}
android.widget.Toast.makeText(v.getContext(), "Itemclick + Drawer close", Toast.LENGTH_SHORT).show();
mViewPager.getAdapter()... | public void onClick(android.view.View v) {
if (mDrawerLayout.isDrawerOpen(((android.view.Gravity.START) | (android.view.Gravity.LEFT)))) {
mDrawerLayout.closeDrawers();
}
android.widget.Toast.makeText(v.getContext(), "Itemclick + Drawer close", Toast.LENGTH_SHORT).show();
} |
public java.util.List<org.yarnandtail.andhow.compile.SimpleType> getInnerPath() {
java.util.List<org.yarnandtail.andhow.compile.SimpleType> innerPath = null;
if (((innerPathStack) != null) && ((innerPathStack.size()) > 0)) {
innerPath = new java.util.ArrayList(innerPathStack);
}
return java.util... | public java.util.List<org.yarnandtail.andhow.compile.SimpleType> getInnerPath() {
java.util.List<org.yarnandtail.andhow.compile.SimpleType> innerPath = null;
if (((innerPathStack) != null) && ((innerPathStack.size()) > 0)) {
innerPath = new java.util.ArrayList(innerPathStack);
}else {
innerP... |
public void addNewAppointment(jfxtras.scene.control.agenda.Agenda.AppointmentImplLocal newAppointment) {
AppointmentEntity appointmentEntity = new AppointmentEntity();
appointmentEntity.setStartTime(java.sql.Timestamp.valueOf(newAppointment.getStartLocalDateTime()));
appointmentEntity.setEndTime(java.sql.Ti... | public int addNewAppointment(jfxtras.scene.control.agenda.Agenda.AppointmentImplLocal newAppointment) {
AppointmentEntity appointmentEntity = new AppointmentEntity();
appointmentEntity.setStartTime(java.sql.Timestamp.valueOf(newAppointment.getStartLocalDateTime()));
appointmentEntity.setEndTime(java.sql.Tim... |
public boolean checaTipo(loo1.plp.orientadaObjetos1.memoria.AmbienteCompilacaoOO1 ambiente) throws loo1.plp.expressions2.memory.VariavelJaDeclaradaException, loo1.plp.expressions2.memory.VariavelNaoDeclaradaException, loo1.plp.orientadaObjetos1.excecao.declaracao.ClasseJaDeclaradaException, loo1.plp.orientadaObjetos1.e... | public boolean checaTipo(loo1.plp.orientadaObjetos1.memoria.AmbienteCompilacaoOO1 ambiente) throws loo1.plp.expressions2.memory.VariavelJaDeclaradaException, loo1.plp.expressions2.memory.VariavelNaoDeclaradaException, loo1.plp.orientadaObjetos1.excecao.declaracao.ClasseJaDeclaradaException, loo1.plp.orientadaObjetos1.e... |
public short clickDot(Location loc) {
this.ChessStatus[loc.getX()][loc.getY()] = factory.makeChess(this.nowPlayer, loc, this.step);
short winner = this.checkFinish();
if (winner == (Const.NO_WIN)) {
this.changePlayer();
(step)++;
}
return winner;
} | public short clickDot(Location loc) {
this.ChessStatus[loc.getX()][loc.getY()] = factory.makeChess(this.nowPlayer, loc, this.step);
short winner = this.checkFinish();
if (winner == (Const.NO_WIN)) {
(step)++;
}
return winner;
} |
public void testChild() throws java.lang.InterruptedException, java.util.concurrent.ExecutionException {
com.palantir.common.concurrent.ExecutorInheritableThreadLocalTest.localInt.set(10);
java.util.concurrent.Future<?> future = exec.submit(new java.util.concurrent.Callable<java.lang.Void>() {
@java.lan... | public void testChild() throws java.lang.InterruptedException, java.util.concurrent.ExecutionException {
com.palantir.common.concurrent.ExecutorInheritableThreadLocalTest.localInt.set(10);
java.util.concurrent.Future<?> future = exec.submit(new java.util.concurrent.Callable<java.lang.Void>() {
@java.lan... |
public void onBindViewHolder(com.dangerducks.cookit.utils.StepAdapter.StepHolder holder, int position) {
android.util.Log.v("Adapter", ((("Step " + position) + " descrip: ") + (steps.elementAt(position).getDescription())));
holder.stepDescription.setText(steps.elementAt(position).getDescription());
holder.s... | public void onBindViewHolder(com.dangerducks.cookit.utils.StepAdapter.StepHolder holder, int position) {
holder.stepDescription.setText(steps.elementAt(position).getDescription());
holder.stepDuration.setText(((steps.elementAt(position).getTime()) + " minutes"));
holder.stepNumber.setText(("Step " + (positi... |
public java.lang.String getAddressValidationMessageIfCheckPayment(java.lang.String employeeId) {
java.lang.String validationMessage = org.apache.commons.lang.StringUtils.EMPTY;
if (isPayeeSignedUpForACH(employeeId)) {
edu.cornell.kfs.concur.batch.service.impl.ConcurEmployeeInfoValidationServiceImpl.LOG.... | public java.lang.String getAddressValidationMessageIfCheckPayment(java.lang.String employeeId) {
java.lang.String validationMessage = org.apache.commons.lang.StringUtils.EMPTY;
if (isPayeeSignedUpForACH(employeeId)) {
edu.cornell.kfs.concur.batch.service.impl.ConcurEmployeeInfoValidationServiceImpl.LOG.... |
public void setBaseCurveProgressView(com.vlad1m1r.lemniscate.BaseCurveProgressView baseCurveProgressView) {
mBaseCurveProgressView = baseCurveProgressView;
if (((mBaseCurveProgressView) instanceof com.vlad1m1r.lemniscate.BernoullisProgressView) || ((mBaseCurveProgressView) instanceof com.vlad1m1r.lemniscate.Ger... | public void setBaseCurveProgressView(com.vlad1m1r.lemniscate.BaseCurveProgressView baseCurveProgressView) {
mBaseCurveProgressView = baseCurveProgressView;
if (((mBaseCurveProgressView) instanceof com.vlad1m1r.lemniscate.BernoullisProgressView) || ((mBaseCurveProgressView) instanceof com.vlad1m1r.lemniscate.Ger... |
public java.lang.String runApplescript(java.lang.String script) {
try {
java.lang.System.out.println(moe.tristan.Lyrical.model.integration.system.macOS.appleScriptEngine);
java.lang.String returnedData;
if ((returnedData = ((java.lang.String) (moe.tristan.Lyrical.model.integration.system.mac... | public java.lang.String runApplescript(java.lang.String script) {
try {
java.lang.String returnedData;
if ((returnedData = ((java.lang.String) (moe.tristan.Lyrical.model.integration.system.macOS.appleScriptEngine.eval(script)))) != null) {
return returnedData;
}
} catch (java... |
public void onViewCreated(android.view.View view, @android.support.annotation.Nullable
android.os.Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
prcInitRecyclerView();
prcSetSwipeRefresh();
if (com.gerus.themovie.utils.UNetwork.isOnline(mContext)) {
prcWebGetGeners()... | public void onViewCreated(android.view.View view, @android.support.annotation.Nullable
android.os.Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
prcInitRecyclerView();
prcSetSwipeRefresh();
if (mListMiniatures.isEmpty()) {
if (com.gerus.themovie.utils.UNetwork.isOnli... |
public void testCustomInput() throws java.io.IOException, java.lang.InterruptedException, java.sql.SQLException {
testName = java.lang.Thread.currentThread().getStackTrace()[1].getMethodName();
com.kfplc.ci.datafeed.TestHelper.logWhatToTest(testName, " Test the job with custom input data");
com.kfplc.ci.da... | public void testCustomInput() throws java.io.IOException, java.lang.InterruptedException, java.sql.SQLException {
testName = java.lang.Thread.currentThread().getStackTrace()[1].getMethodName();
com.kfplc.ci.datafeed.TestHelper.logWhatToTest(testName, " Test the job with custom input data");
com.kfplc.ci.da... |
private void evaluate(java.util.Stack<java.lang.Long> operands, java.util.Stack<java.lang.Character> operators) {
char op = operators.pop();
long a = operands.pop();
long b = operands.pop();
long val = evaluate(b, a, op);
java.lang.System.out.println((((((" - evaluating " + b) + op) + a) + "=") + va... | private void evaluate(java.util.Stack<java.lang.Long> operands, java.util.Stack<java.lang.Character> operators) {
char op = operators.pop();
long a = operands.pop();
long b = operands.pop();
long val = evaluate(b, a, op);
operands.add(val);
} |
public void startService() {
data.GankDataHanlder hanlder = new data.GankDataHanlder();
try {
java.util.List<model.GankItem> items = hanlder.loadGankItems();
buildSearchIndex(items);
logger.info("gankhub start service");
} catch (java.lang.Exception e) {
e.printStackTrace();
... | public void startService() {
data.GankDataHanlder hanlder = new data.GankDataHanlder();
try {
java.util.List<model.GankItem> items = hanlder.loadGankItems(false);
buildSearchIndex(items);
logger.info("gankhub start service");
} catch (java.lang.Exception e) {
e.printStackTrac... |
public void updateDescription(io.realm.Realm realm) {
com.ivart.makedecision.Model.DecisionDescription toEdit = realm.where(com.ivart.makedecision.Model.DecisionDescription.class).equalTo("id", descriptionId).findFirst();
realm.beginTransaction();
toEdit.setDescriptionText(editTextDescription.getText().toSt... | public void updateDescription(io.realm.Realm realm) {
com.ivart.makedecision.Model.DecisionDescription toEdit = realm.where(com.ivart.makedecision.Model.DecisionDescription.class).equalTo("id", descriptionId).findFirst();
realm.beginTransaction();
toEdit.setDescriptionText(editTextDescription.getText().toSt... |
public void addDOB(com.babyandi.stephnoutsa.babyandi.DOB dob) {
android.content.ContentValues values = new android.content.ContentValues();
values.put(com.babyandi.stephnoutsa.babyandi.MyDBHandler.D_COLUMN_DAY, java.lang.String.valueOf(dob.getDday()));
values.put(com.babyandi.stephnoutsa.babyandi.MyDBHandle... | public void addDOB(com.babyandi.stephnoutsa.babyandi.DOB dob) {
android.content.ContentValues values = new android.content.ContentValues();
values.put(com.babyandi.stephnoutsa.babyandi.MyDBHandler.D_COLUMN_DAY, java.lang.String.valueOf(dob.getDday()));
if ((db) == null) {
db = getWritableDatabase();... |
public java.lang.Object visitLocalScope(nez.lang.Nez.LocalScope e, java.lang.Object a) {
BeginScope();
saveSymbol();
Statement(ParserFunc("maskSymbolTable", _symbol(e.tableName)));
visit(e, a);
backSymbol();
EndScope();
return null;
} | public java.lang.Object visitLocalScope(nez.lang.Nez.LocalScope e, java.lang.Object a) {
BeginScope();
saveSymbol();
Statement(ParserFunc("maskSymbolTable", _symbol(e.tableName)));
visit(e.get(0), a);
backSymbol();
EndScope();
return null;
} |
public boolean verifyPreorder(int[] preorder) {
if (preorder == null) {
throw new java.lang.IllegalArgumentException("");
}
if ((preorder.length) == 0) {
return true;
}
return verifyPreorderRecurse(preorder, 0, ((preorder.length) - 1));
} | public boolean verifyPreorder(int[] preorder) {
if (preorder == null) {
throw new java.lang.IllegalArgumentException("");
}
if ((preorder.length) == 0) {
return true;
}
return verifyPreorder(preorder, 0, ((preorder.length) - 1));
} |
private void setMap() {
java.lang.String configPath = scanner.nextLine();
engine.ValidationState validationState = world.setMap(configPath);
if (validationState.equals(ValidationState.VALID)) {
out.println("Map set successfully!");
}else {
out.println(validationState);
}
} | private void setMap() {
java.lang.String configPath = nextLine();
engine.ValidationState validationState = world.setMap(configPath);
if (validationState.equals(ValidationState.VALID)) {
out.println("Map set successfully!");
}else {
out.println(validationState);
}
} |
public java.util.List<com.example.pr_idi.movierecord.Film> getAllFilmstitol() {
java.util.List<com.example.pr_idi.movierecord.Film> comments = new java.util.ArrayList<>();
android.database.Cursor cursor = database.query(MySQLiteHelper.TABLE_FILMS, allColumns, null, null, null, null, ((MySQLiteHelper.COLUMN_TITL... | public java.util.List<com.example.pr_idi.movierecord.Film> getAllFilmstitol() {
java.util.List<com.example.pr_idi.movierecord.Film> comments = new java.util.ArrayList<>();
android.database.Cursor cursor = database.query(MySQLiteHelper.TABLE_FILMS, allColumns, null, null, null, null, MySQLiteHelper.COLUMN_TITLE)... |
protected void onResume() {
super.onResume();
paused = false;
boolean notificationLaunched = sharedPreferences.getBoolean("NOTIFICATION_LAUNCHED", true);
if (notificationLaunched) {
int progress = sharedPreferences.getInt(getString(R.string.preferences_locations_found_key), 0);
updatePro... | protected void onResume() {
super.onResume();
paused = false;
boolean notificationLaunched = sharedPreferences.getBoolean("NOTIFICATION_LAUNCHED", false);
if (notificationLaunched) {
int progress = sharedPreferences.getInt(getString(R.string.preferences_locations_found_key), 0);
updatePr... |
protected void onCreate(android.os.Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_monster_choose);
android.content.Intent intent = getIntent();
java.lang.String theName = intent.getStringExtra("pName");
theName = "LIA";
android.widget.TextView n... | protected void onCreate(android.os.Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_monster_choose);
android.content.Intent intent = getIntent();
java.lang.String theName = intent.getStringExtra("pName");
android.widget.TextView nametextView = ((andro... |
public void testValidStudentRG() {
try {
student = new model.Student("Jacó Mario Souza", cpf, rg, date, email, address, phone1, phone2, "Milene Souza Medeiros", "Mário Souza Filho");
assertEquals(rg, student.getStudentRg());
} catch (exception.StudentException e) {
fail(("Should not thro... | public void testValidStudentRG() {
try {
student = new model.Student("Jacó Mario Souza", cpf, rg, date, email, address, phone1, phone2, "Milene Souza Medeiros", "Mário Souza Filho", 1);
assertEquals(rg, student.getStudentRg());
} catch (exception.StudentException e) {
fail(("Should not t... |
if (((!(namespaceBinding.getNamespaceURI().endsWith("#"))) && (!(namespaceBinding.getNamespaceURI().endsWith(":")))) && (!(namespaceBinding.getNamespaceURI().endsWith("/")))) {
throw new org.sbolstandard.core2.SBOLValidationException("sbol-10105");
}
nameSpaces.put(namespaceBinding.getPrefix(), name... | if (((!(namespaceBinding.getNamespaceURI().endsWith("#"))) && (!(namespaceBinding.getNamespaceURI().endsWith(":")))) && (!(namespaceBinding.getNamespaceURI().endsWith("/")))) {
throw new org.sbolstandard.core2.SBOLValidationException("sbol-10105");
}
nameSpaces.put(namespaceBinding.getNamespaceURI()... |
public void test_135_ACLMaybeAddAllFieldsForMaster(edu.umass.cs.gnsclient.client.util.GuidEntry westyEntry) {
try {
if (!(edu.umass.cs.gnsclient.client.util.JSONUtils.JSONArrayToArrayList(edu.umass.cs.gnsclient.client.integrationtests.ServerIntegrationTest.client.aclGet(AclAccessType.READ_WHITELIST, westyEn... | public void test_135_ACLMaybeAddAllFieldsForMaster(edu.umass.cs.gnsclient.client.util.GuidEntry westyEntry) {
try {
if (!(edu.umass.cs.gnsclient.client.util.JSONUtils.JSONArrayToArrayList(edu.umass.cs.gnsclient.client.integrationtests.ServerIntegrationTest.client.aclGet(AclAccessType.READ_WHITELIST, westyEn... |
private exter.eveindustry.item.ItemStack getEffectiveProduct(exter.eveindustry.item.ItemStack product, long item_amount) {
double efficiency = getEfficiency();
long batches = item_amount / (refinable.getRequiredItem().amount);
return product.scaledRounded(exter.eveindustry.util.Utils.clamp(((batches * effic... | private exter.eveindustry.item.ItemStack getEffectiveProduct(exter.eveindustry.item.ItemStack product, long item_amount) {
double efficiency = getEfficiency();
long batches = item_amount / (refinable.getRequiredItem().amount);
return product.scaledRounded(exter.eveindustry.util.Utils.clamp(((((double) (batc... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.