before
stringlengths
33
3.21M
after
stringlengths
63
3.21M
repo
stringlengths
1
56
type
stringclasses
1 value
__index_level_0__
int64
0
442k
public void setLoopStart(int loopStart) { this.loopStart = loopStart; this.loopLength = audioData.getLength() - loopStart; }
public void setLoopStart(int loopStart) { this.loopStart = loopStart; <DeepExtract> this.loopLength = audioData.getLength() - loopStart; </DeepExtract> }
micromod
positive
437,715
@Override public void visitWith(final With with) { if (with.returnItems instanceof ASTNode) { walkASTNode(this, (ASTNode) with.returnItems); } else { walkOtherObject(this, with.returnItems); } if (with.where instanceof ASTNode) { walkASTNode(this, (ASTNode) with.where); } else { walkOtherObject(this, with.where); } if ...
@Override public void visitWith(final With with) { if (with.returnItems instanceof ASTNode) { walkASTNode(this, (ASTNode) with.returnItems); } else { walkOtherObject(this, with.returnItems); } if (with.where instanceof ASTNode) { walkASTNode(this, (ASTNode) with.where); } else { walkOtherObject(this, with.where); } if ...
cytosm
positive
437,716
@Override public void doubleClick(DoubleClickEvent event) { final IStructuredSelection selection = (IStructuredSelection) tableViewer.getSelection(); if (selection.size() == 1) { Object cmakeDefine = selection.getFirstElement(); final Shell shell = tableViewer.getControl().getShell(); AddCmakeDefineDialog dlg = new Add...
@Override public void doubleClick(DoubleClickEvent event) { <DeepExtract> final IStructuredSelection selection = (IStructuredSelection) tableViewer.getSelection(); if (selection.size() == 1) { Object cmakeDefine = selection.getFirstElement(); final Shell shell = tableViewer.getControl().getShell(); AddCmakeDefineDialog...
cmake4eclipse
positive
437,717
@Override public void clickable() { throw new NoSuchElementException("Unable to find element with locator '" + element.getLocatable().getBy() + "'"); }
@Override public void clickable() { <DeepExtract> throw new NoSuchElementException("Unable to find element with locator '" + element.getLocatable().getBy() + "'"); </DeepExtract> }
teasy
positive
437,719
public String getPrefixedName() { if (previousElementContext != null) { String parentPrefix = previousElementContext.getPrefixedName(); if (parentPrefix != null) { return NameUtil.getPrefixedName(parentPrefix, getVisitableElementName()); } } if (visitableElement instanceof NamedElement) { return ((NamedElement) visitab...
public String getPrefixedName() { if (previousElementContext != null) { String parentPrefix = previousElementContext.getPrefixedName(); if (parentPrefix != null) { return NameUtil.getPrefixedName(parentPrefix, getVisitableElementName()); } } <DeepExtract> if (visitableElement instanceof NamedElement) { return ((NamedEl...
multiapps
positive
437,720
private static Bitmap getScreenshotPreP(View view) { view.buildDrawingCache(); Bitmap bitmap = view.getDrawingCache(); if (bitmap == null) { LogUtils.i(TAG, "PreP without drawing cache"); bitmap = Bitmap.createBitmap(view.getWidth(), view.getHeight(), Bitmap.Config.ARGB_8888); bitmap.setDensity(view.getResources().getD...
private static Bitmap getScreenshotPreP(View view) { view.buildDrawingCache(); Bitmap bitmap = view.getDrawingCache(); if (bitmap == null) { LogUtils.i(TAG, "PreP without drawing cache"); bitmap = Bitmap.createBitmap(view.getWidth(), view.getHeight(), Bitmap.Config.ARGB_8888); bitmap.setDensity(view.getResources().getD...
Accessibility-Test-Framework-for-Android
positive
437,721
public Criteria andConfDescIn(List<String> values) { if (values == null) { throw new RuntimeException("Value for " + "confDesc" + " cannot be null"); } criteria.add(new Criterion("conf_desc in", values)); return (Criteria) this; }
public Criteria andConfDescIn(List<String> values) { <DeepExtract> if (values == null) { throw new RuntimeException("Value for " + "confDesc" + " cannot be null"); } criteria.add(new Criterion("conf_desc in", values)); </DeepExtract> return (Criteria) this; }
lightconf
positive
437,723
@Test public void whenPassiveFinalThankYouIsSet_returnsLocalPassiveFinalThankYou() { doReturn("How likely").when(mockLocalizedTexts).getSurveyQuestion(); doReturn("likely").when(mockLocalizedTexts).getAnchorLikely(); doReturn("not likely").when(mockLocalizedTexts).getAnchorNotLikely(); doReturn("dismiss").when(mockLoca...
@Test public void whenPassiveFinalThankYouIsSet_returnsLocalPassiveFinalThankYou() { <DeepExtract> doReturn("How likely").when(mockLocalizedTexts).getSurveyQuestion(); doReturn("likely").when(mockLocalizedTexts).getAnchorLikely(); doReturn("not likely").when(mockLocalizedTexts).getAnchorNotLikely(); doReturn("dismiss")...
WootricSDK-Android
positive
437,725
public static void dateTimeConcept(String token, Concept concept, boolean required, Locale locale, FormField formField) { String bindName = token; Element controlNode = getParentNode(formField, locale).createElement(XformBuilder.NAMESPACE_XFORMS, null); controlNode.setName(XformBuilder.CONTROL_INPUT); controlNode.setAt...
public static void dateTimeConcept(String token, Concept concept, boolean required, Locale locale, FormField formField) { <DeepExtract> String bindName = token; Element controlNode = getParentNode(formField, locale).createElement(XformBuilder.NAMESPACE_XFORMS, null); controlNode.setName(XformBuilder.CONTROL_INPUT); con...
openmrs-module-xforms
positive
437,727
void set(DiffContext ctx) { count = 0l; sum = 0l; min = Integer.MAX_VALUE; max = Integer.MIN_VALUE; count++; sum += ctx; if (ctx < min) { min = ctx; } if (ctx > max) { max = ctx; } }
void set(DiffContext ctx) { count = 0l; sum = 0l; min = Integer.MAX_VALUE; max = Integer.MIN_VALUE; <DeepExtract> count++; sum += ctx; if (ctx < min) { min = ctx; } if (ctx > max) { max = ctx; } </DeepExtract> }
marlin-fx
positive
437,728
public Criteria andClickCountIn(List<Integer> values) { if (values == null) { throw new RuntimeException("Value for " + "clickCount" + " cannot be null"); } criteria.add(new Criterion("click_count in", values)); return (Criteria) this; }
public Criteria andClickCountIn(List<Integer> values) { <DeepExtract> if (values == null) { throw new RuntimeException("Value for " + "clickCount" + " cannot be null"); } criteria.add(new Criterion("click_count in", values)); </DeepExtract> return (Criteria) this; }
LightBlog
positive
437,729
public void fill(float gray, float alpha) { if (((gray & 0xff000000) == 0) && (gray <= colorModeX)) { colorCalc((float) gray, alpha); } else { colorCalcARGB(gray, alpha); } fill = true; fillR = calcR; fillG = calcG; fillB = calcB; fillA = calcA; fillColor = calcColor; }
public void fill(float gray, float alpha) { if (((gray & 0xff000000) == 0) && (gray <= colorModeX)) { colorCalc((float) gray, alpha); } else { colorCalcARGB(gray, alpha); } <DeepExtract> fill = true; fillR = calcR; fillG = calcG; fillB = calcB; fillA = calcA; fillColor = calcColor; </DeepExtract> }
rainbow
positive
437,730
@Override public void setRideMode(final boolean rideMode) { byte[] buffer = getBytes(); byte check = calcCheck(buffer); ByteArrayOutputStream out = new ByteArrayOutputStream(); out.write(0xAA); out.write(0xAA); try { out.write(escape(buffer)); } catch (IOException e) { e.printStackTrace(); } out.write(check); return ou...
@Override public void setRideMode(final boolean rideMode) { <DeepExtract> byte[] buffer = getBytes(); byte check = calcCheck(buffer); ByteArrayOutputStream out = new ByteArrayOutputStream(); out.write(0xAA); out.write(0xAA); try { out.write(escape(buffer)); } catch (IOException e) { e.printStackTrace(); } out.write(che...
Wheellog.Android
positive
437,731
@Nullable @Override public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { super.onCreateView(inflater, container, savedInstanceState); View view = inflater.inflate(layoutViewId(), container, false); return view; }
@Nullable @Override public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { super.onCreateView(inflater, container, savedInstanceState); <DeepExtract> View view = inflater.inflate(layoutViewId(), container, false); return view; </DeepExtract> }
ndileber
positive
437,732
@Test public void testAttributes() { int actual = context.keySet().size(); assertEquals("Correct attribute count", expectedAttributeCount() + 0, actual); if (0 == 0) { assertTrue("Context should be empty", context.isEmpty()); } else { assertFalse("Context should not be empty", context.isEmpty()); } context.put("foo", "...
@Test public void testAttributes() { <DeepExtract> int actual = context.keySet().size(); assertEquals("Correct attribute count", expectedAttributeCount() + 0, actual); if (0 == 0) { assertTrue("Context should be empty", context.isEmpty()); } else { assertFalse("Context should not be empty", context.isEmpty()); } </Deep...
commons-chain
positive
437,733
@Test public void testGetStyledTextFromHtmlWithInputWithBulletList() { assertThat(Utilities.getStyledTextFromHtml("<ul><li>First<li><li>Second</li><li>Third<li></ul>End").toString()).isEqualTo("\n\nFirst\nSecond\nThird\n\nEnd"); Spanned result = Utilities.getStyledTextFromHtml("Some items:<ul>\n<li>First<li><li>Second<...
@Test public void testGetStyledTextFromHtmlWithInputWithBulletList() { assertThat(Utilities.getStyledTextFromHtml("<ul><li>First<li><li>Second</li><li>Third<li></ul>End").toString()).isEqualTo("\n\nFirst\nSecond\nThird\n\nEnd"); Spanned result = Utilities.getStyledTextFromHtml("Some items:<ul>\n<li>First<li><li>Second<...
google-authenticator-android
positive
437,734
@Override public boolean onTouchEvent(MotionEvent event) { if (mSize == 1) { LogUtil.d(TAG, "onTouchEvent mSize == 1"); return true; } if (null == mVelocityTracker) { mVelocityTracker = VelocityTracker.obtain(); } mVelocityTracker.addMovement(event); Banner banner = looper.runningMan; View bannerView = banner.view; Log...
@Override public boolean onTouchEvent(MotionEvent event) { if (mSize == 1) { LogUtil.d(TAG, "onTouchEvent mSize == 1"); return true; } <DeepExtract> if (null == mVelocityTracker) { mVelocityTracker = VelocityTracker.obtain(); } mVelocityTracker.addMovement(event); </DeepExtract> Banner banner = looper.runningMan; View ...
SunmiUI
positive
437,736
public boolean putInt(String key, int value) { if (key == null || "".equals(key) || String.valueOf(value) == null) { return false; } ContentValues values = new ContentValues(); values.put(SETTING_KEY, key); values.put(SETTING_VALUE, String.valueOf(value)); boolean isNewRecord = (getString(key, null) == null); if (isNew...
public boolean putInt(String key, int value) { <DeepExtract> if (key == null || "".equals(key) || String.valueOf(value) == null) { return false; } ContentValues values = new ContentValues(); values.put(SETTING_KEY, key); values.put(SETTING_VALUE, String.valueOf(value)); boolean isNewRecord = (getString(key, null) == nu...
SmallMovie
positive
437,737
public void testOneLargeSource() throws IOException { int size = 1024 * 1024 * 100; byte[] sourceBytes = new byte[size]; List<byte[]> hashes = new ArrayList<byte[]>(); final int pieceSize = 128 * 1024; for (int i = 0; i < sourceBytes.length; i++) { sourceBytes[i] = (byte) (i * i); if (i % pieceSize == 0 && i > 0) { byt...
public void testOneLargeSource() throws IOException { int size = 1024 * 1024 * 100; byte[] sourceBytes = new byte[size]; List<byte[]> hashes = new ArrayList<byte[]>(); final int pieceSize = 128 * 1024; for (int i = 0; i < sourceBytes.length; i++) { sourceBytes[i] = (byte) (i * i); if (i % pieceSize == 0 && i > 0) { byt...
ttorrent
positive
437,738
public void setCircleInfo(float x, float y, float radius) { this.x = x; this.y = y; this.radius = radius; }
public void setCircleInfo(float x, float y, float radius) { this.x = x; this.y = y; <DeepExtract> this.radius = radius; </DeepExtract> }
OpenChina
positive
437,739
public Node createNode(final String groupName, final String name, final Object rawData) { if (this.isBuilt) { final String msg = String.format("The DAG (%s) is built already. Can't create new nodes.", this); throw new DagException(msg); } if (this.nameToNodeMap.get(name) != null) { throw new DagException(String.format(...
public Node createNode(final String groupName, final String name, final Object rawData) { <DeepExtract> if (this.isBuilt) { final String msg = String.format("The DAG (%s) is built already. Can't create new nodes.", this); throw new DagException(msg); } </DeepExtract> if (this.nameToNodeMap.get(name) != null) { throw ne...
hodor
positive
437,742
@Override public void openCodeSpan(SpannableStringBuilder out) { int len = out.length(); out.setSpan(new Code(), len, len, Spannable.SPAN_MARK_MARK); }
@Override public void openCodeSpan(SpannableStringBuilder out) { <DeepExtract> int len = out.length(); out.setSpan(new Code(), len, len, Spannable.SPAN_MARK_MARK); </DeepExtract> }
kaif-android
positive
437,743
public void mapPoints(@NotNull Matrix matrix, float[] pts, float xOffset, float yOffset) { matrix.mapPoints(pts); matrixTouch.mapPoints(pts); matrixOffset.mapPoints(pts); int index; int increase = 1; if (xOffset != 0) { index = 0; } else if (-yOffset != 0) { index = 1; increase += 1; } else { return; } for (int i = ind...
public void mapPoints(@NotNull Matrix matrix, float[] pts, float xOffset, float yOffset) { matrix.mapPoints(pts); matrixTouch.mapPoints(pts); matrixOffset.mapPoints(pts); <DeepExtract> int index; int increase = 1; if (xOffset != 0) { index = 0; } else if (-yOffset != 0) { index = 1; increase += 1; } else { return; } fo...
InteractiveChart
positive
437,744
public ScheduledExecutorService getScheduledExecutorService() { if (closed.get()) { throw new IllegalStateException("factory has been closed"); } return scheduledExecutorService; }
public ScheduledExecutorService getScheduledExecutorService() { <DeepExtract> if (closed.get()) { throw new IllegalStateException("factory has been closed"); } </DeepExtract> return scheduledExecutorService; }
tnm4j
positive
437,745
public void execute(APIChangeState changes, boolean reCreation) throws AppException { IAPI createdAPI = null; Transaction context = Transaction.getInstance(); RollbackHandler rollback = RollbackHandler.getInstance(); List<String> changedProps; List<String> allProps = new Vector<String>(); try { for (Field field : chang...
public void execute(APIChangeState changes, boolean reCreation) throws AppException { IAPI createdAPI = null; Transaction context = Transaction.getInstance(); RollbackHandler rollback = RollbackHandler.getInstance(); <DeepExtract> List<String> changedProps; List<String> allProps = new Vector<String>(); try { for (Field...
apimanager-swagger-promote
positive
437,746
public void scrollToTheCenter() { logElementAction("loc.scrolling.center.js"); return getActionRetrier().doWithRetry(() -> getBrowser().executeScript(JavaScript.SCROLL_TO_ELEMENT_CENTER, element.getElement())); }
public void scrollToTheCenter() { logElementAction("loc.scrolling.center.js"); <DeepExtract> return getActionRetrier().doWithRetry(() -> getBrowser().executeScript(JavaScript.SCROLL_TO_ELEMENT_CENTER, element.getElement())); </DeepExtract> }
aquality-selenium-java
positive
437,747
public String generatePKString(String objTable, String mainString, String sep, int ks) { String s = ""; for (int k = 1; k <= ks; k++) { if (k > 1) { s += sep; } s += String.format(mainString, k); } return s; }
public String generatePKString(String objTable, String mainString, String sep, int ks) { <DeepExtract> String s = ""; for (int k = 1; k <= ks; k++) { if (k > 1) { s += sep; } s += String.format(mainString, k); } return s; </DeepExtract> }
opendb
positive
437,748
@Override protected void onRender(long ellapsedRealtime, double deltaTime) { if (getRenderMode() == ISurface.RENDERMODE_CONTINUOUSLY) { onAsynWorkForNextRender(); } super.onRender(ellapsedRealtime, deltaTime); }
@Override <DeepExtract> </DeepExtract> protected void onRender(long ellapsedRealtime, double deltaTime) { <DeepExtract> </DeepExtract> if (getRenderMode() == ISurface.RENDERMODE_CONTINUOUSLY) { <DeepExtract> </DeepExtract> onAsynWorkForNextRender(); <DeepExtract> </DeepExtract> } <DeepExtract> </DeepExtract> super.onRe...
LuckyEcgDemo
positive
437,749
@Test void testTwoSampleDatasetThrows() { final double m = 0; final double v = 1; final long n = 5; TestUtils.assertThrowsWithMessage(IllegalArgumentException.class, () -> TTest.withDefaults()::statistic.accept(m, v, n, m, v, 1), "values", "size"); TestUtils.assertThrowsWithMessage(IllegalArgumentException.class, () ->...
@Test void testTwoSampleDatasetThrows() { final double m = 0; final double v = 1; final long n = 5; TestUtils.assertThrowsWithMessage(IllegalArgumentException.class, () -> TTest.withDefaults()::statistic.accept(m, v, n, m, v, 1), "values", "size"); TestUtils.assertThrowsWithMessage(IllegalArgumentException.class, () ->...
commons-statistics
positive
437,752
public void visit(Tree.TypedDeclaration that) { checking++; if (that.getErrors() != null && !that.getErrors().isEmpty()) { for (Message err : that.getErrors()) { if (!(err instanceof UsageWarning)) { flag = true; return; } } } super.visit(that); checking--; }
public void visit(Tree.TypedDeclaration that) { checking++; <DeepExtract> if (that.getErrors() != null && !that.getErrors().isEmpty()) { for (Message err : that.getErrors()) { if (!(err instanceof UsageWarning)) { flag = true; return; } } } </DeepExtract> super.visit(that); checking--; }
ceylon-js
positive
437,753
public void processUpdateBinary(APDU apdu) { byte[] buf = apdu.getBuffer(); byte p1 = buf[ISO7816.OFFSET_P1]; byte p2 = buf[ISO7816.OFFSET_P2]; if (buf[ISO7816.OFFSET_INS] == (byte) 0xD7) { ISOException.throwIt(ISO7816.SW_FUNC_NOT_SUPPORTED); } lc = apdu.setIncomingAndReceive(); if (lc != apdu.getIncomingLength()) { IS...
public void processUpdateBinary(APDU apdu) { byte[] buf = apdu.getBuffer(); byte p1 = buf[ISO7816.OFFSET_P1]; byte p2 = buf[ISO7816.OFFSET_P2]; if (buf[ISO7816.OFFSET_INS] == (byte) 0xD7) { ISOException.throwIt(ISO7816.SW_FUNC_NOT_SUPPORTED); } lc = apdu.setIncomingAndReceive(); if (lc != apdu.getIncomingLength()) { IS...
AppletPlayground
positive
437,755
public void requestSysCamera(Activity activity, int requestCode) { String photoName = DateUtil.convertDate(new Date(), "yyyyMMddHHmss") + "s.jpg"; File dir = new File(getDirPath()); if (!dir.exists()) { dir.mkdirs(); } return dirPath + photoName; Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); intent.putEx...
public void requestSysCamera(Activity activity, int requestCode) { <DeepExtract> String photoName = DateUtil.convertDate(new Date(), "yyyyMMddHHmss") + "s.jpg"; File dir = new File(getDirPath()); if (!dir.exists()) { dir.mkdirs(); } return dirPath + photoName; </DeepExtract> Intent intent = new Intent(MediaStore.ACTION...
quickhybrid-android
positive
437,756
public Upload toUpload(final Upload upload) { final Monetization monetization = upload.getMonetization(); monetization.setOverlay(monetizeOverlay.isSelected()); monetization.setTrueview(monetizeTrueView.isSelected()); monetization.setProduct(monetizeProduct.isSelected()); monetization.setSyndication(monetizeSyndication...
public Upload toUpload(final Upload upload) { final Monetization monetization = upload.getMonetization(); <DeepExtract> monetization.setOverlay(monetizeOverlay.isSelected()); monetization.setTrueview(monetizeTrueView.isSelected()); monetization.setProduct(monetizeProduct.isSelected()); monetization.setSyndication(monet...
simplejavayoutubeuploader
positive
437,757
public BeanSerializerBase withObjectIdWriter(ObjectIdWriter objectIdWriter) { this.ldContextFactory = this.ldContextFactory; return this; }
public BeanSerializerBase withObjectIdWriter(ObjectIdWriter objectIdWriter) { <DeepExtract> this.ldContextFactory = this.ldContextFactory; return this; </DeepExtract> }
hydra-java
positive
437,758
@Override public List<String> getAllSubjects() { try { READ_WRITE_LOCK.readLock().lock(); return super::getAllSubjects.get(); } finally { READ_WRITE_LOCK.readLock().unlock(); } }
@Override public List<String> getAllSubjects() { <DeepExtract> try { READ_WRITE_LOCK.readLock().lock(); return super::getAllSubjects.get(); } finally { READ_WRITE_LOCK.readLock().unlock(); } </DeepExtract> }
jcasbin
positive
437,762
@Override protected void afterHookedMethod(final MethodHookParam param) throws Throwable { prefs.reload(); mPhoneStatusBar = param.thisObject; Context context = (Context) XposedHelpers.getObjectField(param.thisObject, "mContext"); int tmMode = TransparencyManager.MODE_FULL; try { tmMode = Integer.valueOf(prefs.getStrin...
@Override protected void afterHookedMethod(final MethodHookParam param) throws Throwable { prefs.reload(); mPhoneStatusBar = param.thisObject; Context context = (Context) XposedHelpers.getObjectField(param.thisObject, "mContext"); int tmMode = TransparencyManager.MODE_FULL; try { tmMode = Integer.valueOf(prefs.getStrin...
GravityBox
positive
437,763
@Override public void run() { iv_change_arrow.setRotation(180); int arrowHeight = 0; if (iv_change_arrow != null) { arrowHeight = iv_change_arrow.getHeight(); } int ty = rl_change.getHeight() - arrowHeight - rl_change.getPaddingTop(); rl_change.animate().translationY(ty).setDuration(500).setStartDelay(540).setInterpola...
@Override public void run() { iv_change_arrow.setRotation(180); <DeepExtract> int arrowHeight = 0; if (iv_change_arrow != null) { arrowHeight = iv_change_arrow.getHeight(); } int ty = rl_change.getHeight() - arrowHeight - rl_change.getPaddingTop(); rl_change.animate().translationY(ty).setDuration(500).setStartDelay(540...
bamboy
positive
437,767
private void onOkBtnClicked() { RateAppUtils rateAppUtils = new RateAppUtils(); rateAppUtils.rate(getActivity()); onStopAskListener.onStopAsk(); dismiss(); }
private void onOkBtnClicked() { <DeepExtract> RateAppUtils rateAppUtils = new RateAppUtils(); rateAppUtils.rate(getActivity()); </DeepExtract> onStopAskListener.onStopAsk(); dismiss(); }
OCRme
positive
437,768
@Override public void forceEndState() { startAnimation(mDuration); if (mController != null) { mController.endController(); mController = null; } notifyAnimationEnd(); }
@Override public void forceEndState() { startAnimation(mDuration); <DeepExtract> if (mController != null) { mController.endController(); mController = null; } </DeepExtract> notifyAnimationEnd(); }
android-transition
positive
437,770
protected static String replaceMentions(String content) { StringBuffer enhancedContent = new StringBuffer(); Matcher m = PATTERN_MENTION.matcher(content); while (m.find()) { final String mentionName = m.group(1); final String mentionLink = String.format(FORMAT_USER_URL, mentionName); String mention = String.format(FORM...
protected static String replaceMentions(String content) { StringBuffer enhancedContent = new StringBuffer(); Matcher m = PATTERN_MENTION.matcher(content); while (m.find()) { final String mentionName = m.group(1); final String mentionLink = String.format(FORMAT_USER_URL, mentionName); String mention = String.format(FORM...
linkit
positive
437,771
@Override public void remove(Iterable<Long> keys) { lock.lock(); try { for (Long key : keys) { map.remove(key); } } finally { lock.unlock(); } }
@Override public void remove(Iterable<Long> keys) { <DeepExtract> lock.lock(); </DeepExtract> try { for (Long key : keys) { map.remove(key); } } finally { lock.unlock(); } }
GreenDao-SQLCipher
positive
437,772
@Override public void onAdd(CharSequence text, int cursorPosition, int addCount) { removeCallbacks(cursorAnimation); isCursorVisiable = true; isTextChanged = true; mCaretSpan.setFirst(mCaretSpan.getFirst() + addCount); int curr = cursorPosition; if (text.length() == 0) return; for (; curr >= 0; curr--) { char c = hDoc....
@Override public void onAdd(CharSequence text, int cursorPosition, int addCount) { removeCallbacks(cursorAnimation); isCursorVisiable = true; isTextChanged = true; mCaretSpan.setFirst(mCaretSpan.getFirst() + addCount); int curr = cursorPosition; if (text.length() == 0) return; for (; curr >= 0; curr--) { char c = hDoc....
Frida-Injector-for-Android
positive
437,776
public void writeTo(XMLStreamWriter writer) throws XMLStreamException { writer.setNamespaceContext(nsc); writer.writeStartElement("DAV:", "error"); for (String uri : nsc.getNamespaceURIs()) { writer.writeNamespace(nsc.getPrefix(uri), uri); } writer.writeStartElement(NS_COSMO, "internal-server-error"); if (getMessage() ...
public void writeTo(XMLStreamWriter writer) throws XMLStreamException { writer.setNamespaceContext(nsc); writer.writeStartElement("DAV:", "error"); for (String uri : nsc.getNamespaceURIs()) { writer.writeNamespace(nsc.getPrefix(uri), uri); } <DeepExtract> writer.writeStartElement(NS_COSMO, "internal-server-error"); if ...
carldav
positive
437,780
public Criteria andOpenidNotIn(List<String> values) { if (values == null) { throw new RuntimeException("Value for " + "openid" + " cannot be null"); } criteria.add(new Criterion("openid not in", values)); return (Criteria) this; }
public Criteria andOpenidNotIn(List<String> values) { <DeepExtract> if (values == null) { throw new RuntimeException("Value for " + "openid" + " cannot be null"); } criteria.add(new Criterion("openid not in", values)); </DeepExtract> return (Criteria) this; }
answerWeb
positive
437,781
@Test public void sameLociDifferentInsertSeq() throws IOException { universalTestMethod("src/test/resources/validationTest/sameLociDifferentInsertSeq", new String[0]); }
@Test public void sameLociDifferentInsertSeq() throws IOException { <DeepExtract> universalTestMethod("src/test/resources/validationTest/sameLociDifferentInsertSeq", new String[0]); </DeepExtract> }
varsim
positive
437,782
private void compatSharedElements() { getHandler().post(mNotifyEnterAnimEndRunnable); mSupport.getSupportDelegate().mFragmentClickable = true; }
private void compatSharedElements() { <DeepExtract> getHandler().post(mNotifyEnterAnimEndRunnable); mSupport.getSupportDelegate().mFragmentClickable = true; </DeepExtract> }
Fragmentation
positive
437,783
private Structure readStructureByReference(NSInvocation invocation, int index, Class<? extends Structure> type) { Memory buffer = new Memory(Native.POINTER_SIZE); invocation.getArgument_atIndex(buffer, index); Pointer pointerToResult = buffer.getPointer(0); Structure result; try { result = (T) type.newInstance(); } cat...
private Structure readStructureByReference(NSInvocation invocation, int index, Class<? extends Structure> type) { Memory buffer = new Memory(Native.POINTER_SIZE); invocation.getArgument_atIndex(buffer, index); Pointer pointerToResult = buffer.getPointer(0); Structure result; try { result = (T) type.newInstance(); } cat...
rococoa
positive
437,784
@Override public void skipActivity(Activity aty, Class<?> cls) { Intent intent = new Intent(); intent.setClass(aty, cls); aty.startActivity(intent); aty.finish(); }
@Override public void skipActivity(Activity aty, Class<?> cls) { <DeepExtract> Intent intent = new Intent(); intent.setClass(aty, cls); aty.startActivity(intent); </DeepExtract> aty.finish(); }
KJFrameForAndroid_Modify
positive
437,787
public void setBasicAuth(String username, String password) { String basicAuth = username + ":" + password; basicAuth = Base64.getEncoder().encodeToString(basicAuth.getBytes()); headers.put(HEADER_AUTHORIZATION, "Basic " + basicAuth); }
public void setBasicAuth(String username, String password) { String basicAuth = username + ":" + password; basicAuth = Base64.getEncoder().encodeToString(basicAuth.getBytes()); <DeepExtract> headers.put(HEADER_AUTHORIZATION, "Basic " + basicAuth); </DeepExtract> }
TestingApp
positive
437,791
private static long solveMemoization() { for (int i = 1; i <= N; i++) { for (int j = i; j <= N; j++) { M[i][j] = NotSolved; } } if (M[1][N] != NotSolved) { return M[1][N]; } if (1 == N) { M[1][N] = 0; } else { for (int k = 1; k <= N - 1; k++) { long q = solveMemo(1, k) + solveMemo(k + 1, N) + (R[1 - 1] * R[k] * R[N]); ...
private static long solveMemoization() { for (int i = 1; i <= N; i++) { for (int j = i; j <= N; j++) { M[i][j] = NotSolved; } } <DeepExtract> if (M[1][N] != NotSolved) { return M[1][N]; } if (1 == N) { M[1][N] = 0; } else { for (int k = 1; k <= N - 1; k++) { long q = solveMemo(1, k) + solveMemo(k + 1, N) + (R[1 - 1] * ...
Java-Translation-Sources
positive
437,792
@Override public boolean stop(int id) { if (status < 1) { try { if (manager == null) { manager = new DefaultTasksManager(maxSize).setPlayUrl(playurl).setRecordDir(dir); status = 1; } } catch (Exception e) { status = -1; } } RecordTask task = manager.getRcorderTask(id); CameraRecordInfo info = null; if (task != null) { ...
@Override public boolean stop(int id) { <DeepExtract> if (status < 1) { try { if (manager == null) { manager = new DefaultTasksManager(maxSize).setPlayUrl(playurl).setRecordDir(dir); status = 1; } } catch (Exception e) { status = -1; } } </DeepExtract> RecordTask task = manager.getRcorderTask(id); CameraRecordInfo info...
easyCV
positive
437,793
public static void main(String[] args) { QuickFind find = new QuickFind(10); int pID = find(9); int qID = find(0); if (pID == qID) return; for (int i = 0; i < id.length; i++) if (id[i] == pID) id[i] = qID; count--; int pID = find(3); int qID = find(4); if (pID == qID) return; for (int i = 0; i < id.length; i++) if (id[...
public static void main(String[] args) { QuickFind find = new QuickFind(10); int pID = find(9); int qID = find(0); if (pID == qID) return; for (int i = 0; i < id.length; i++) if (id[i] == pID) id[i] = qID; count--; int pID = find(3); int qID = find(4); if (pID == qID) return; for (int i = 0; i < id.length; i++) if (id[...
AlgorithmDemo4Demo
positive
437,794
public void setConfig(AppToolbarConfig config) { if (config.getLeftImg() > 0) { setLeft(config.getLeftImg(), null, config.getLeftAction()); } else if (config.getLeftText() != null) { setLeft(null, config.getLeftText(), config.getLeftAction()); } if (config.getCenterText() != null) { setCenter(null, config.getCenterText...
public void setConfig(AppToolbarConfig config) { if (config.getLeftImg() > 0) { setLeft(config.getLeftImg(), null, config.getLeftAction()); } else if (config.getLeftText() != null) { setLeft(null, config.getLeftText(), config.getLeftAction()); } if (config.getCenterText() != null) { setCenter(null, config.getCenterText...
android_mtcnn_insightface_face_recognize
positive
437,796
@Override public void onLocationChanged(Location location) { Log.d("Tag_locationDetial", "----------"); Log.d("Tag_latitude", "" + location.getLatitude()); Log.d("Tag_longitude", "" + location.getLongitude()); }
@Override public void onLocationChanged(Location location) { <DeepExtract> Log.d("Tag_locationDetial", "----------"); Log.d("Tag_latitude", "" + location.getLatitude()); Log.d("Tag_longitude", "" + location.getLongitude()); </DeepExtract> }
travelApp
positive
437,798
@Test public void testIsNegative() throws Exception { MockObject mockObject = new MockObject("someid", "hello", 10); mockObject.simpleList = Arrays.asList("a", "b", "c"); coll.insert(mockObject); return mockObject; DBCursor<MockObject> cursor = coll.find().is("integer", 9); assertThat(cursor.hasNext(), equalTo(false));...
@Test public void testIsNegative() throws Exception { <DeepExtract> MockObject mockObject = new MockObject("someid", "hello", 10); mockObject.simpleList = Arrays.asList("a", "b", "c"); coll.insert(mockObject); return mockObject; </DeepExtract> DBCursor<MockObject> cursor = coll.find().is("integer", 9); assertThat(curso...
mongo-jackson-mapper
positive
437,801
@Test public void testClearPrevious1SetBit() { bs.clearAll(); for (int i : INDICES) { bs.set(i); } long cardinality = bs.cardinality(); int order = INDICES.length; for (long i = bs.logicalSize(); (i = bs.clearPreviousNContinuousSetBits(i - 1, 1)) >= 0; ) { order--; cardinality--; assertEquals(INDICES[order], i); assert...
@Test public void testClearPrevious1SetBit() { <DeepExtract> bs.clearAll(); for (int i : INDICES) { bs.set(i); } </DeepExtract> long cardinality = bs.cardinality(); int order = INDICES.length; for (long i = bs.logicalSize(); (i = bs.clearPreviousNContinuousSetBits(i - 1, 1)) >= 0; ) { order--; cardinality--; assertEqua...
Chronicle-Algorithms
positive
437,803
@Test public void send_stream_custom_build() throws Exception { UserIdentity expectedUserIdentity = new UserIdentity("ptitfred@localhost", "ptitfred"); given(userService.find("ptitfred")).willReturn(expectedUserIdentity); StringBuilder stdin = new StringBuilder(); stdin.append("abcdef7890123456789012345678901234abcdef"...
@Test public void send_stream_custom_build() throws Exception { UserIdentity expectedUserIdentity = new UserIdentity("ptitfred@localhost", "ptitfred"); given(userService.find("ptitfred")).willReturn(expectedUserIdentity); StringBuilder stdin = new StringBuilder(); stdin.append("abcdef7890123456789012345678901234abcdef"...
magrit
positive
437,804
@Override public void onNoPermissionNeeded() { System.out.println("onPermissionGranted:" + Arrays.toString(null)); saveConfig(); }
@Override public void onNoPermissionNeeded() { <DeepExtract> System.out.println("onPermissionGranted:" + Arrays.toString(null)); saveConfig(); </DeepExtract> }
MobileGuard
positive
437,805
@Override public Boolean updateRoleStatusById(MicroServiceInfo microServiceInfo) { long deptId = microServiceInfo.getId(); MicroServiceInfo param = new MicroServiceInfo(); param.setId(deptId); int count = microServiceRepository.selectCount(param); if (count == 0) { throw new DmcBizException(ErrorCodeEnum.UAC10012011, d...
@Override public Boolean updateRoleStatusById(MicroServiceInfo microServiceInfo) { <DeepExtract> long deptId = microServiceInfo.getId(); MicroServiceInfo param = new MicroServiceInfo(); param.setId(deptId); int count = microServiceRepository.selectCount(param); if (count == 0) { throw new DmcBizException(ErrorCodeEnum....
tgcloud-master
positive
437,806
public static SearchBaseResult<?> asDataResult(Throwable throwable) { String errorDetails; if (throwable.getCause() != null) { Throwable throwable = throwable.getCause(); String msg = getDepthExceptionMsg(throwable); if (StringUtils.isNotBlank(msg)) { errorDetails = msg; } else { errorDetails = throwable.getMessage(); ...
public static SearchBaseResult<?> asDataResult(Throwable throwable) { <DeepExtract> String errorDetails; if (throwable.getCause() != null) { Throwable throwable = throwable.getCause(); String msg = getDepthExceptionMsg(throwable); if (StringUtils.isNotBlank(msg)) { errorDetails = msg; } else { errorDetails = throwable....
search-spring-boot-starter
positive
437,807
public void restore(Batch batch) { if (saved == null) { resetShader(batch); return; } ShaderProgram shader = shaders.get(saved); if (shader.isCompiled()) { batch.setShader(shader); current = saved; } else System.out.println("ShaderManager Could not apply shader: " + saved.name()); }
public void restore(Batch batch) { <DeepExtract> if (saved == null) { resetShader(batch); return; } ShaderProgram shader = shaders.get(saved); if (shader.isCompiled()) { batch.setShader(shader); current = saved; } else System.out.println("ShaderManager Could not apply shader: " + saved.name()); </DeepExtract> }
ArchipeloClient
positive
437,808
public static MessageComment destroy(Long id, HashMap<String, Object> parameters, HashMap<String, Object> options) throws IOException { parameters = parameters != null ? parameters : new HashMap<String, Object>(); options = options != null ? options : new HashMap<String, Object>(); if (id == null && parameters.contains...
public static MessageComment destroy(Long id, HashMap<String, Object> parameters, HashMap<String, Object> options) throws IOException { <DeepExtract> parameters = parameters != null ? parameters : new HashMap<String, Object>(); options = options != null ? options : new HashMap<String, Object>(); if (id == null && param...
files-sdk-java
positive
437,810
public SafeArray toSafeArray(boolean deepCopy) { if (m_pVariant != 0) { return getVariantType(); } else { throw new IllegalStateException("uninitialized Variant"); } return toVariantSafeArray(deepCopy); }
public SafeArray toSafeArray(boolean deepCopy) { <DeepExtract> if (m_pVariant != 0) { return getVariantType(); } else { throw new IllegalStateException("uninitialized Variant"); } </DeepExtract> return toVariantSafeArray(deepCopy); }
jacob
positive
437,812
@MainThread @Override public void onUserJoined(int uid) { mMsgList.add(new Message(new User(0, null), "用户 " + (uid & 0xFFFFFFFFL) + " 加入")); int MAX_MESSAGE_COUNT = 16; if (mMsgList.size() > MAX_MESSAGE_COUNT) { int toRemove = mMsgList.size() - MAX_MESSAGE_COUNT; for (int i = 0; i < toRemove; i++) { mMsgList.re...
@MainThread @Override public void onUserJoined(int uid) { <DeepExtract> mMsgList.add(new Message(new User(0, null), "用户 " + (uid & 0xFFFFFFFFL) + " 加入")); int MAX_MESSAGE_COUNT = 16; if (mMsgList.size() > MAX_MESSAGE_COUNT) { int toRemove = mMsgList.size() - MAX_MESSAGE_COUNT; for (int i = 0; i < toRemove; i++)...
CloudBlindDate
positive
437,813
protected String parsePostRequest(HttpServletRequest request, HttpServletResponse response) { try { String delay = request.getParameter(PARAM_DELAY); String maxFilesize = request.getParameter(PARAM_MAX_FILE_SIZE); maxSize = maxFilesize != null && maxFilesize.matches("[0-9]*") ? Long.parseLong(maxFilesize) : maxSize; up...
protected String parsePostRequest(HttpServletRequest request, HttpServletResponse response) { try { String delay = request.getParameter(PARAM_DELAY); String maxFilesize = request.getParameter(PARAM_MAX_FILE_SIZE); maxSize = maxFilesize != null && maxFilesize.matches("[0-9]*") ? Long.parseLong(maxFilesize) : maxSize; up...
gwtupload
positive
437,814
public static FunctionCall countAll() { _params.addObjects(Converter.COLUMN_VALUE_TO_OBJ, ALL_SYMBOL); return this; }
public static FunctionCall countAll() { <DeepExtract> _params.addObjects(Converter.COLUMN_VALUE_TO_OBJ, ALL_SYMBOL); return this; </DeepExtract> }
sqlbuilder
positive
437,815
public static byte[] encrypt(byte[] data, byte[] key) { if (data.length == 0) { return data; } int n = encrypt(toIntArray(data, true), toIntArray(key, false)).length << 2; if (false) { int m = encrypt(toIntArray(data, true), toIntArray(key, false))[encrypt(toIntArray(data, true), toIntArray(key, false)).length - 1]; if...
public static byte[] encrypt(byte[] data, byte[] key) { if (data.length == 0) { return data; } <DeepExtract> int n = encrypt(toIntArray(data, true), toIntArray(key, false)).length << 2; if (false) { int m = encrypt(toIntArray(data, true), toIntArray(key, false))[encrypt(toIntArray(data, true), toIntArray(key, false)).l...
Okra
positive
437,817
public static boolean writeInteger(final String filePath, final int value) { if (LOGGER.isTraceEnabled()) { LOGGER.trace("echo " + new StringBuilder().append(value).toString() + " > " + filePath); } try { final File file = new File(filePath); if (file.canWrite()) { PrintWriter out = new PrintWriter(file); out.println(n...
public static boolean writeInteger(final String filePath, final int value) { <DeepExtract> if (LOGGER.isTraceEnabled()) { LOGGER.trace("echo " + new StringBuilder().append(value).toString() + " > " + filePath); } try { final File file = new File(filePath); if (file.canWrite()) { PrintWriter out = new PrintWriter(file);...
ev3dev-lang-java
positive
437,818
public Criteria andPriceGreaterThanOrEqualTo(Long value) { if (value == null) { throw new RuntimeException("Value for " + "price" + " cannot be null"); } criteria.add(new Criterion("price >=", value)); return (Criteria) this; }
public Criteria andPriceGreaterThanOrEqualTo(Long value) { <DeepExtract> if (value == null) { throw new RuntimeException("Value for " + "price" + " cannot be null"); } criteria.add(new Criterion("price >=", value)); </DeepExtract> return (Criteria) this; }
BookLibrarySystem
positive
437,820
@Override public void execute() { addContentFragment(ActivitiesListFragment.inGroup(_item.getId())); }
@Override public void execute() { <DeepExtract> addContentFragment(ActivitiesListFragment.inGroup(_item.getId())); </DeepExtract> }
getsocial-android-sdk
positive
437,821
@Override public void onLeftSwipe(float absDist) { if (mChildLock) return; try { mActionMenu.dismissActionPopup(); if (getNextCategory(mCategory, -1) == null) return; if (mCategory != null && !mCategory.equals(getNextCategory(mCategory, -1))) { mStyle.animateHide(mIconsArea, AnimateDirection.Right, true, false); } mCat...
@Override public void onLeftSwipe(float absDist) { if (mChildLock) return; try { mActionMenu.dismissActionPopup(); if (getNextCategory(mCategory, -1) == null) return; if (mCategory != null && !mCategory.equals(getNextCategory(mCategory, -1))) { mStyle.animateHide(mIconsArea, AnimateDirection.Right, true, false); } mCat...
LaunchTime
positive
437,822
@Override public void visibleAreaChanged(final VisibleAreaEvent event) { FactoryImpl iFactory = (FactoryImpl) context.iFactory; Document document = event.getEditor().getDocument(); String path = iFactory.getPathForDoc(document); if (path == null) { return; } ArrayList<ArrayList<Integer>> rangesWithCaret = new ArrayList...
@Override public void visibleAreaChanged(final VisibleAreaEvent event) { <DeepExtract> FactoryImpl iFactory = (FactoryImpl) context.iFactory; Document document = event.getEditor().getDocument(); String path = iFactory.getPathForDoc(document); if (path == null) { return; } ArrayList<ArrayList<Integer>> rangesWithCaret =...
floobits-intellij
positive
437,823
public static void main(String[] args) { try { int maxExceptionsPerIteration = Integer.parseInt(GetArgValue(args, "MAX_EXCEPTIONS_PER_ITERATION", "25")); Singletons.Log = new Log(maxExceptionsPerIteration); } catch (Exception ex) { System.out.println("ML-Flex logging could not be configured."); System.out.println("Args...
public static void main(String[] args) { <DeepExtract> try { int maxExceptionsPerIteration = Integer.parseInt(GetArgValue(args, "MAX_EXCEPTIONS_PER_ITERATION", "25")); Singletons.Log = new Log(maxExceptionsPerIteration); } catch (Exception ex) { System.out.println("ML-Flex logging could not be configured."); System.out...
ML-Flex
positive
437,824
public void clearTrack(int trackIndex) { if (trackIndex >= tracks.size) return; TrackEntry current = tracks.get(trackIndex); if (current == null) return; if (current.listener != null) current.listener.end(trackIndex); for (int i = 0, n = listeners.size; i < n; i++) listeners.get(i).end(trackIndex); tracks.set(trackInde...
public void clearTrack(int trackIndex) { if (trackIndex >= tracks.size) return; TrackEntry current = tracks.get(trackIndex); if (current == null) return; if (current.listener != null) current.listener.end(trackIndex); for (int i = 0, n = listeners.size; i < n; i++) listeners.get(i).end(trackIndex); tracks.set(trackInde...
libgdxjam
positive
437,825
public GraphQLPagination<SupportTicketDTO> getClosedAdminTickets() { if (!user.getRank().equals(UserRank.TEAM)) { return null; } return new GraphQLPagination<>(() -> repository.countAll(false), (pg) -> repository.getAll(paginationAmount, pg, false).stream().map(SupportTicketDTO::new).collect(Collectors.toList())); }
public GraphQLPagination<SupportTicketDTO> getClosedAdminTickets() { <DeepExtract> if (!user.getRank().equals(UserRank.TEAM)) { return null; } return new GraphQLPagination<>(() -> repository.countAll(false), (pg) -> repository.getAll(paginationAmount, pg, false).stream().map(SupportTicketDTO::new).collect(Collectors.to...
twasi-core
positive
437,829
@Override public void mouseReleased(MouseEvent e) { dataStructureTable.clearSelection(); if (connection.mode == ConnectionTelemetry.Mode.DEMO) { dsdLabel.setText("Data Structure Definition: (Not Editable in Demo Mode)"); columnTextfield.setEnabled(false); nameTextfield.setEnabled(false); colorButton.setEnabled(false); ...
@Override public void mouseReleased(MouseEvent e) { dataStructureTable.clearSelection(); <DeepExtract> if (connection.mode == ConnectionTelemetry.Mode.DEMO) { dsdLabel.setText("Data Structure Definition: (Not Editable in Demo Mode)"); columnTextfield.setEnabled(false); nameTextfield.setEnabled(false); colorButton.setEn...
TelemetryViewer
positive
437,830
private void checkCollisions(float deltaTime) { Rectangle yoyoRect = rectPool.obtain(); yoyoRect.set(yoyo.position.x, yoyo.position.y, Yoyo.width, Yoyo.height); int startX, startY, endX, endY; if (yoyo.velocity.x > 0) { startX = endX = (int) (yoyo.position.x + Yoyo.width + yoyo.velocity.x); } else { startX = endX = (in...
private void checkCollisions(float deltaTime) { <DeepExtract> Rectangle yoyoRect = rectPool.obtain(); yoyoRect.set(yoyo.position.x, yoyo.position.y, Yoyo.width, Yoyo.height); int startX, startY, endX, endY; if (yoyo.velocity.x > 0) { startX = endX = (int) (yoyo.position.x + Yoyo.width + yoyo.velocity.x); } else { start...
LibGdx2DGameStarterTemplate
positive
437,832
public List<EnchantmentEntry> getEnchantments() { if (((int) System.currentTimeMillis() / 1000) > nextCycle) { if (!Screen.hasShiftDown()) this.set = this.set == lastSet ? 0 : this.set + 1; this.nextCycle = ((int) System.currentTimeMillis() / 1000) + CYCLE_TIME; } int last = set * ENTRIES_PER_PAGE + ENTRIES_PER_PAGE; i...
public List<EnchantmentEntry> getEnchantments() { <DeepExtract> if (((int) System.currentTimeMillis() / 1000) > nextCycle) { if (!Screen.hasShiftDown()) this.set = this.set == lastSet ? 0 : this.set + 1; this.nextCycle = ((int) System.currentTimeMillis() / 1000) + CYCLE_TIME; } </DeepExtract> int last = set * ENTRIES_P...
JustEnoughResources
positive
437,833
public void cleanupResource(HQApi api, Resource r) throws Exception { pauseTest(2500); ResourceApi rApi = api.getResourceApi(); StatusResponse response = rApi.deleteResource(r.getId()); String error = (response.getError() != null) ? response.getError().getReasonText() : ""; assertEquals(error, ResponseStatus.SUCCESS, r...
public void cleanupResource(HQApi api, Resource r) throws Exception { pauseTest(2500); ResourceApi rApi = api.getResourceApi(); StatusResponse response = rApi.deleteResource(r.getId()); <DeepExtract> String error = (response.getError() != null) ? response.getError().getReasonText() : ""; assertEquals(error, ResponseSta...
hqapi
positive
437,836
@Nullable @Override public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_search, container, false); unbinder = ButterKnife.bind(this, view); loadingDialog = new LoadingDialog(getActivity()); toolbar.setNavi...
@Nullable <DeepExtract> </DeepExtract> @Override <DeepExtract> </DeepExtract> public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { <DeepExtract> </DeepExtract> View view = inflater.inflate(R.layout.fragment_search, container, false); <DeepExtract> </Dee...
funk
positive
437,839
@Override public void actionPerformed(ActionEvent e) { masterDate.setTime(dateChooser.getDate()); if (e.getSource() == nextBtn) { masterDate.add(Calendar.DATE, 1); } else if (e.getSource() == previousBtn) { masterDate.add(Calendar.DATE, -1); } else if (e.getSource() == btnShowRes) { String customerCountry = ""; Payment...
@Override public void actionPerformed(ActionEvent e) { masterDate.setTime(dateChooser.getDate()); if (e.getSource() == nextBtn) { masterDate.add(Calendar.DATE, 1); } else if (e.getSource() == previousBtn) { masterDate.add(Calendar.DATE, -1); } else if (e.getSource() == btnShowRes) { String customerCountry = ""; Payment...
Hotel-Properties-Management-System
positive
437,841
public void request(@NonNull ID id) { if (fromListener == null) { throw new RuntimeException("'from' listener is not set"); } if (toListener == null) { throw new RuntimeException("'to' listener is not set"); } if (requestedId == null) { return; } if (GestureDebug.isDebugAnimator()) { Log.d(TAG, "Cleaning up request " +...
public void request(@NonNull ID id) { if (fromListener == null) { throw new RuntimeException("'from' listener is not set"); } if (toListener == null) { throw new RuntimeException("'to' listener is not set"); } <DeepExtract> if (requestedId == null) { return; } if (GestureDebug.isDebugAnimator()) { Log.d(TAG, "Cleaning ...
GestureViews
positive
437,843
public void shutdown() { this.crawlScope.finished(); this.handler = null; this.crawlScope = null; this.frontier.destory(); this.frontier = null; this.processorChainList = null; this.htmlParserWrapper = null; this.processorManager = null; this.filterFactory.clear(); this.filterFactory = null; this.hostCache = null; this...
public void shutdown() { <DeepExtract> this.crawlScope.finished(); this.handler = null; this.crawlScope = null; this.frontier.destory(); this.frontier = null; this.processorChainList = null; this.htmlParserWrapper = null; this.processorManager = null; this.filterFactory.clear(); this.filterFactory = null; this.hostCach...
Rk_Cms
positive
437,844
public static String fieldNameStripQuotes(SqlNode node) { if ((fieldName(node).startsWith("'") && fieldName(node).endsWith("'")) || (fieldName(node).startsWith("\"") && fieldName(node).endsWith("\""))) { return fieldName(node).substring(1, fieldName(node).length() - 1); } return fieldName(node); }
public static String fieldNameStripQuotes(SqlNode node) { <DeepExtract> if ((fieldName(node).startsWith("'") && fieldName(node).endsWith("'")) || (fieldName(node).startsWith("\"") && fieldName(node).endsWith("\""))) { return fieldName(node).substring(1, fieldName(node).length() - 1); } return fieldName(node); </DeepExt...
coral
positive
437,845
public static void main(String[] args) throws IOException, ClassNotFoundException { Scanner scan = new Scanner(System.in); Employee emp = new Employee(); System.out.print("Enter name: "); this.name = scan.nextLine(); System.out.print("Enter D.O.B.: "); this.dob = scan.nextLine(); System.out.print("Enter department: ");...
public static void main(String[] args) throws IOException, ClassNotFoundException { Scanner scan = new Scanner(System.in); Employee emp = new Employee(); System.out.print("Enter name: "); this.name = scan.nextLine(); System.out.print("Enter D.O.B.: "); this.dob = scan.nextLine(); System.out.print("Enter department: ");...
Wipro-PJP
positive
437,846
private static AlbumBuilder with(FragmentActivity activity, StartupType startupType) { Result.clear(); Setting.clear(); instance = null; instance = new AlbumBuilder(activity, startupType); return instance; }
private static AlbumBuilder with(FragmentActivity activity, StartupType startupType) { <DeepExtract> Result.clear(); Setting.clear(); instance = null; </DeepExtract> instance = new AlbumBuilder(activity, startupType); return instance; }
EasyPhotos
positive
437,847
public void execute() throws Pausable { doPause = false; switch(testCase) { case 0: normalCatch(); break; case 1: pausableCatch(); break; case 2: nestedPausableCatch(); break; case 3: tryCatchFinally(); break; default: throw new IllegalStateException("Unknown test case: " + testCase); } doPause = true; switch(testCase)...
public void execute() throws Pausable { doPause = false; <DeepExtract> switch(testCase) { case 0: normalCatch(); break; case 1: pausableCatch(); break; case 2: nestedPausableCatch(); break; case 3: tryCatchFinally(); break; default: throw new IllegalStateException("Unknown test case: " + testCase); } </DeepExtract> doP...
kilim-erjang
positive
437,850
public Builder clearData() { super.clear(); key_ = ""; code_ = ""; message_ = ""; timestamp_ = 0L; internalGetMutableData().clear(); return this; return this; }
public Builder clearData() { <DeepExtract> super.clear(); key_ = ""; code_ = ""; message_ = ""; timestamp_ = 0L; internalGetMutableData().clear(); return this; </DeepExtract> return this; }
cim
positive
437,852
public void write(org.apache.thrift.protocol.TProtocol oprot, getKnobs_result struct) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.T...
public void write(org.apache.thrift.protocol.TProtocol oprot, getKnobs_result struct) throws org.apache.thrift.TException { <DeepExtract> </DeepExtract> oprot.writeStructBegin(STRUCT_DESC); <DeepExtract> </DeepExtract> if (struct.success != null) { <DeepExtract> </DeepExtract> oprot.writeFieldBegin(SUCCESS_FIELD_DESC);...
android-wlan
positive
437,855
public void save() { checkNullity(); referenceStack.tag.setFloat("quality", quality); referenceStack.tag.setFloat("purity", purity); referenceStack.tag.setFloat("strength", strength); referenceStack.tag.setFloat("efficiency", efficiency); }
public void save() { <DeepExtract> checkNullity(); referenceStack.tag.setFloat("quality", quality); referenceStack.tag.setFloat("purity", purity); referenceStack.tag.setFloat("strength", strength); referenceStack.tag.setFloat("efficiency", efficiency); </DeepExtract> }
DeepResonance
positive
437,856
@Override protected void onResumeFragments() { super.onResumeFragments(); NavigationContext.Builder builder = new NavigationContext.Builder(this, SampleApplication.getNavigationFactory()); Fragment currentFlowFragment = getCurrentFlowFragment(); if (currentFlowFragment instanceof ContainerIdProvider) { builder.fragment...
@Override protected void onResumeFragments() { super.onResumeFragments(); NavigationContext.Builder builder = new NavigationContext.Builder(this, SampleApplication.getNavigationFactory()); Fragment currentFlowFragment = getCurrentFlowFragment(); if (currentFlowFragment instanceof ContainerIdProvider) { builder.fragment...
Alligator
positive
437,857
public static String forPackage(Package testPackage) { String[] elements = testPackage.getName().split("\\."); if (elements.length == 1) { return elements[0]; } elements = Arrays.copyOfRange(elements, 0, elements.length - 1); final StringBuilder builder = new StringBuilder(); for (String path : elements) { builder.appe...
public static String forPackage(Package testPackage) { String[] elements = testPackage.getName().split("\\."); if (elements.length == 1) { return elements[0]; } elements = Arrays.copyOfRange(elements, 0, elements.length - 1); <DeepExtract> final StringBuilder builder = new StringBuilder(); for (String path : elements) ...
serenity-jbehave
positive
437,858
public void propertyChange(final PropertyChangeEvent event) { PBounds bounds = canvas.getCamera().getBounds(); setBounds(bounds); DateRange fullRange = getFullRange(); if (fullRange == null || !fullRange.isValid()) { areaVisiblePNode.setVisible(false); fullRange = null; return; } double scale = getWidth() / (fullRange....
public void propertyChange(final PropertyChangeEvent event) { <DeepExtract> PBounds bounds = canvas.getCamera().getBounds(); setBounds(bounds); DateRange fullRange = getFullRange(); if (fullRange == null || !fullRange.isValid()) { areaVisiblePNode.setVisible(false); fullRange = null; return; } double scale = getWidth()...
geneaquilt
positive
437,859
@Override public void invalidateAll(long parallelismThreshold) { for (final SoftReference<Object> ref : values()) { ref.clear(); } totalWeight.set(0); cost.clear(); super.clear(); }
@Override public void invalidateAll(long parallelismThreshold) { <DeepExtract> for (final SoftReference<Object> ref : values()) { ref.clear(); } totalWeight.set(0); cost.clear(); super.clear(); </DeepExtract> }
bigdataviewer-playground
positive
437,860
public void bindDrawable(Drawable drawable) { boolean changed = false; if (drawable != null && drawable != mDrawable) { if (mDrawable != null) { mDrawable.setCallback(null); } mDrawable = drawable; mMinScale = 0f; mDrawable.setCallback(this); changed = true; } if (mDrawable == null || !mHaveLayout) { return; } final in...
public void bindDrawable(Drawable drawable) { boolean changed = false; if (drawable != null && drawable != mDrawable) { if (mDrawable != null) { mDrawable.setCallback(null); } mDrawable = drawable; mMinScale = 0f; mDrawable.setCallback(this); changed = true; } <DeepExtract> if (mDrawable == null || !mHaveLayout) { retu...
S1-Next
positive
437,862
private void doUncommentNode() { XmlNode node = null, parent; return contentAsXml(mSelection.getContent().getText()); if (node != null) { parent = (XmlNode) mSelection.getParent(); if (parent.canHaveChild(node)) { node.setExpanded(true, true); node.updateChildViewCount(true); index = parent.getChildPosition(mSelection)...
private void doUncommentNode() { XmlNode node = null, parent; <DeepExtract> return contentAsXml(mSelection.getContent().getText()); </DeepExtract> if (node != null) { parent = (XmlNode) mSelection.getParent(); if (parent.canHaveChild(node)) { node.setExpanded(true, true); node.updateChildViewCount(true); index = parent...
Axel
positive
437,864
@Override public void onStatePlaying() { Log.i(TAG, "onStatePlaying " + " [" + this.hashCode() + "] "); if (state == STATE_PREPARED) { if (seekToInAdvance != 0) { mediaInterface.seekTo(seekToInAdvance); seekToInAdvance = 0; } else { long position = JZUtils.getSavedProgress(getContext(), jzDataSource.getCurrentUrl()); i...
@Override public void onStatePlaying() { Log.i(TAG, "onStatePlaying " + " [" + this.hashCode() + "] "); if (state == STATE_PREPARED) { if (seekToInAdvance != 0) { mediaInterface.seekTo(seekToInAdvance); seekToInAdvance = 0; } else { long position = JZUtils.getSavedProgress(getContext(), jzDataSource.getCurrentUrl()); i...
JZVideo
positive
437,866
public void bezierCurveG5(float controlP1X, float controlP1Y, float controlP2X, float controlP2Y, float endX, float endY) { output.println("G5 I" + Utils.gcodeFloat(controlP1X - lastX) + " J" + Utils.gcodeFloat(controlP1Y - lastY) + " P" + Utils.gcodeFloat(controlP2X - endX) + " Q" + Utils.gcodeFloat(controlP2Y - endY)...
public void bezierCurveG5(float controlP1X, float controlP1Y, float controlP2X, float controlP2Y, float endX, float endY) { output.println("G5 I" + Utils.gcodeFloat(controlP1X - lastX) + " J" + Utils.gcodeFloat(controlP1Y - lastY) + " P" + Utils.gcodeFloat(controlP2X - endX) + " Q" + Utils.gcodeFloat(controlP2Y - endY)...
DrawingBotV3
positive
437,868
private void pushStationInavailability(String stationManufacturerId) { placeAvailabilityPushService.reportChange(stationManufacturerId); List<String> pedelecManufacturerIds = pedelecRepository.findManufacturerIdsByStation(stationManufacturerId); if (Utils.isEmpty(pedelecManufacturerIds)) { return; } TimePeriodType time...
private void pushStationInavailability(String stationManufacturerId) { placeAvailabilityPushService.reportChange(stationManufacturerId); List<String> pedelecManufacturerIds = pedelecRepository.findManufacturerIdsByStation(stationManufacturerId); <DeepExtract> if (Utils.isEmpty(pedelecManufacturerIds)) { return; } TimeP...
BikeMan
positive
437,869
private void addGlassPane() { TopControls gp = new TopControls(); setGlassPane(gp); gp.setOpaque(false); if (!isVisible()) { setFocusable(false); consolePanel.setFocusable(false); setFocusableWindowState(false); } DesktopConsolePanel.super.setVisible(true); if (true) { userClosed = false; setState(Frame.NORMAL); setSiz...
private void addGlassPane() { TopControls gp = new TopControls(); setGlassPane(gp); gp.setOpaque(false); <DeepExtract> if (!isVisible()) { setFocusable(false); consolePanel.setFocusable(false); setFocusableWindowState(false); } DesktopConsolePanel.super.setVisible(true); if (true) { userClosed = false; setState(Frame.N...
javatari
positive
437,870