before
stringlengths
12
3.21M
after
stringlengths
41
3.21M
repo
stringlengths
1
56
type
stringclasses
1 value
__index_level_0__
int64
0
442k
@Override public boolean ready() throws IOException { if (buf == null) throw new IOException("Stream closed"); return (count - pos) > 0; }
@Override public boolean ready() throws IOException { <DeepExtract> if (buf == null) throw new IOException("Stream closed"); </DeepExtract> return (count - pos) > 0; }
jetbrick-template-1x
positive
2,614
public int stoneGame(int[] A) { if (A.length == 0) { return 0; } int[][] dp = new int[A.length][A.length]; int[] sums = new int[A.length + 1]; sums[0] = 0; for (int i = 0; i < A.length; i++) { for (int j = i; j < A.length; j++) { dp[i][j] = Integer.MAX_VALUE; } } for (int i = 0; i < A.length; i++) { dp[i][i] = 0; sums[...
public int stoneGame(int[] A) { if (A.length == 0) { return 0; } int[][] dp = new int[A.length][A.length]; int[] sums = new int[A.length + 1]; sums[0] = 0; for (int i = 0; i < A.length; i++) { for (int j = i; j < A.length; j++) { dp[i][j] = Integer.MAX_VALUE; } } for (int i = 0; i < A.length; i++) { dp[i][i] = 0; sums[...
Leetcode-for-Fun
positive
2,615
@Override public void run() { ensureEnabled(); relay.set(convertValue(d)); }
@Override public void run() { <DeepExtract> ensureEnabled(); relay.set(convertValue(d)); </DeepExtract> }
atalibj
positive
2,616
public int get(int index) { if (index < 0 || index >= numElements) { throw new ArrayIndexOutOfBoundsException(index); } return backingArray[index]; }
public int get(int index) { if (index < 0 || index >= numElements) { throw new ArrayIndexOutOfBoundsException(index); } <DeepExtract> return backingArray[index]; </DeepExtract> }
fractal
positive
2,617
@Override public V get(Object key) { Node<K, V> node; try { node = key != null ? find((K) key, false) : null; } catch (ClassCastException e) { node = null; } return node != null ? node.value : null; }
@Override public V get(Object key) { <DeepExtract> Node<K, V> node; try { node = key != null ? find((K) key, false) : null; } catch (ClassCastException e) { node = null; } </DeepExtract> return node != null ? node.value : null; }
JJEvent
positive
2,618
@Override public void onResponse(JSONArray response) { Type listType = new TypeToken<List<Torrent>>() { }.getType(); torrents.addAll((List<Torrent>) new Gson().fromJson(response.toString(), listType)); List<Torrent> listTorrent = (List<Torrent>) new Gson().fromJson(response.toString(), listType); if (torrents != null &...
@Override public void onResponse(JSONArray response) { Type listType = new TypeToken<List<Torrent>>() { }.getType(); torrents.addAll((List<Torrent>) new Gson().fromJson(response.toString(), listType)); List<Torrent> listTorrent = (List<Torrent>) new Gson().fromJson(response.toString(), listType); <DeepExtract> if (torr...
qBittorrent-Controller
positive
2,620
public void humanTaskStarted(final NodeInstance nodeInstance) { try { final Transaction tx = tm.getTransaction(); tx.registerSynchronization(new UpdateNodeCounterSynchronization(XmlBPMNProcessDumper.getUniqueNodeId(nodeInstance.getNode()), 1)); } catch (final RollbackException re) { throw new IllegalStateException("Tra...
public void humanTaskStarted(final NodeInstance nodeInstance) { <DeepExtract> try { final Transaction tx = tm.getTransaction(); tx.registerSynchronization(new UpdateNodeCounterSynchronization(XmlBPMNProcessDumper.getUniqueNodeId(nodeInstance.getNode()), 1)); } catch (final RollbackException re) { throw new IllegalState...
jboss-keynote-2012
positive
2,621
public static DisplayImageOptions createSimple() { return new DisplayImageOptions(this); }
public static DisplayImageOptions createSimple() { <DeepExtract> return new DisplayImageOptions(this); </DeepExtract> }
Android-Universal-Image-Loader-Modify
positive
2,622
@Test public void signCallGetSignatureWithTransactionModified_thenFailWithDeserializeTransactionError() throws TransactionSignError { exceptionRule.expect(TransactionSignError.class); exceptionRule.expectMessage(ErrorConstants.TRANSACTION_PROCESSOR_GET_SIGN_DESERIALIZE_TRANS_ERROR); exceptionRule.expectCause(IsInstance...
@Test public void signCallGetSignatureWithTransactionModified_thenFailWithDeserializeTransactionError() throws TransactionSignError { exceptionRule.expect(TransactionSignError.class); exceptionRule.expectMessage(ErrorConstants.TRANSACTION_PROCESSOR_GET_SIGN_DESERIALIZE_TRANS_ERROR); exceptionRule.expectCause(IsInstance...
eosio-java
positive
2,623
public void setupSubmoduleUrls(String remote, TaskListener listener) throws GitException { launchCommand("submodule", "init"); launchCommand("submodule", "sync"); boolean is_bare = true; URI origin; try { String url = getRemoteUrl(remote); String gitEnd = pathJoin("", ".git"); if (url.endsWith(gitEnd)) { url = url.subs...
public void setupSubmoduleUrls(String remote, TaskListener listener) throws GitException { launchCommand("submodule", "init"); launchCommand("submodule", "sync"); <DeepExtract> boolean is_bare = true; URI origin; try { String url = getRemoteUrl(remote); String gitEnd = pathJoin("", ".git"); if (url.endsWith(gitEnd)) { ...
git-plugin
positive
2,624
public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { res.setContentType("text/html"); java.io.PrintWriter out = res.getWriter(); String userID = null; StringBuffer output = new StringBuffer(100); output.append("<html><head><title>Servlet2Session2CMROne20ne</title></...
public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { <DeepExtract> res.setContentType("text/html"); java.io.PrintWriter out = res.getWriter(); String userID = null; StringBuffer output = new StringBuffer(100); output.append("<html><head><title>Servlet2Session2CMROne...
jboss-daytrader
positive
2,625
public void manual() { switch(state) { case autoBatch: switch(Event.manual) { case manual: setState(State.gettingManualBatch); isBatchAvailable(); createSelector(); break; case select: setState(State.gettingAutoBatch); getNextAutoBatch(); createSelector(); break; case itemChanged: setState(State.autoBatch); setUserAuto...
public void manual() { <DeepExtract> switch(state) { case autoBatch: switch(Event.manual) { case manual: setState(State.gettingManualBatch); isBatchAvailable(); createSelector(); break; case select: setState(State.gettingAutoBatch); getNextAutoBatch(); createSelector(); break; case itemChanged: setState(State.autoBatch...
CC_SMC
positive
2,627
void enter(String text) { current().clearEdited(); if (mEntries.size() >= MAX_ENTRIES) { mEntries.remove(0); } if (mEntries.size() < 2 || !text.equals(mEntries.elementAt(mEntries.size() - 2).getBase())) { mEntries.insertElementAt(new HistoryEntry(text), mEntries.size() - 1); } mPos = mEntries.size() - 1; if (mObserver ...
void enter(String text) { current().clearEdited(); if (mEntries.size() >= MAX_ENTRIES) { mEntries.remove(0); } if (mEntries.size() < 2 || !text.equals(mEntries.elementAt(mEntries.size() - 2).getBase())) { mEntries.insertElementAt(new HistoryEntry(text), mEntries.size() - 1); } mPos = mEntries.size() - 1; <DeepExtract> ...
daily-money
positive
2,628
public void handleEvent(Event e) { stepname = null; input.setChanged(changed); dispose(); }
public void handleEvent(Event e) { <DeepExtract> stepname = null; input.setChanged(changed); dispose(); </DeepExtract> }
kettle-beam
positive
2,629
private void cmdSetCIPMUX0ActionPerformed(java.awt.event.ActionEvent evt) { send(addCRLF("AT+CIPMUX=0"), true); }
private void cmdSetCIPMUX0ActionPerformed(java.awt.event.ActionEvent evt) { <DeepExtract> send(addCRLF("AT+CIPMUX=0"), true); </DeepExtract> }
ESPlorer
positive
2,630
@Override public void setValue(K cacheKey, V cacheValue) { SoftReferenceEntry<K, V> entry; while (Objects.nonNull(entry = (SoftReferenceEntry<K, V>) garbageQueue.poll())) { cache.remove(entry.key); } if (Objects.isNull(cacheValue)) { removeValue(cacheKey); } else { cache.put(cacheKey, new SoftReferenceEntry<>(cacheKey,...
@Override public void setValue(K cacheKey, V cacheValue) { <DeepExtract> SoftReferenceEntry<K, V> entry; while (Objects.nonNull(entry = (SoftReferenceEntry<K, V>) garbageQueue.poll())) { cache.remove(entry.key); } </DeepExtract> if (Objects.isNull(cacheValue)) { removeValue(cacheKey); } else { cache.put(cacheKey, new S...
qiuyj-code
positive
2,631
@Override public void onDestroyView() { super.onDestroyView(); RefWatcher refWatcher = HawkularApplication.getRefWatcher(getActivity()); refWatcher.watch(this); }
@Override public void onDestroyView() { super.onDestroyView(); <DeepExtract> RefWatcher refWatcher = HawkularApplication.getRefWatcher(getActivity()); refWatcher.watch(this); </DeepExtract> }
hawkular-android-client
positive
2,632
private void setupBitGrid(int size) { int i, toggle = 1; for (i = 0; i < size; i++) { if (toggle == 1) { grid[i] = 0x21; grid[(i * size)] = 0x21; toggle = 0; } else { grid[i] = 0x20; grid[(i * size)] = 0x20; toggle = 1; } } int xp, yp; int[] finder = { 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 1, 0, 1, 1, 0...
private void setupBitGrid(int size) { int i, toggle = 1; for (i = 0; i < size; i++) { if (toggle == 1) { grid[i] = 0x21; grid[(i * size)] = 0x21; toggle = 0; } else { grid[i] = 0x20; grid[(i * size)] = 0x20; toggle = 1; } } <DeepExtract> int xp, yp; int[] finder = { 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1,...
OkapiBarcode
positive
2,633
protected void listTopics(Function<Consumer<String, String>, Map<String, List<PartitionInfo>>> partitionInfoFetcher) throws InterruptedException { Properties properties = new Properties(); properties.put("key.serializer", "org.apache.kafka.common.serialization.StringSerializer"); properties.put("value.serializer", "org...
protected void listTopics(Function<Consumer<String, String>, Map<String, List<PartitionInfo>>> partitionInfoFetcher) throws InterruptedException { <DeepExtract> Properties properties = new Properties(); properties.put("key.serializer", "org.apache.kafka.common.serialization.StringSerializer"); properties.put("value.ser...
kbear
positive
2,634
@java.lang.Deprecated public static Type valueOf(int value) { switch(value) { case 1: return P1A; case 2: return P1B; case 3: return P2A; case 4: return P2B; case 5: return REQUEST; case 6: return RESPONSE; case 7: return PROPOSE; case 8: return DECISION; case 9: return ADOPTED; case 10: return PREEMPTED; default: retu...
@java.lang.Deprecated public static Type valueOf(int value) { <DeepExtract> switch(value) { case 1: return P1A; case 2: return P1B; case 3: return P2A; case 4: return P2B; case 5: return REQUEST; case 6: return RESPONSE; case 7: return PROPOSE; case 8: return DECISION; case 9: return ADOPTED; case 10: return PREEMPTED;...
Paxos-log-replication-Java
positive
2,635
@Test public void numberOfWays5() throws Exception { expected = 70; n = 5; m = 5; assertEquals(expected, CountPossibleTraversals.numberOfWays(n, m)); }
@Test public void numberOfWays5() throws Exception { expected = 70; n = 5; m = 5; <DeepExtract> assertEquals(expected, CountPossibleTraversals.numberOfWays(n, m)); </DeepExtract> }
Elements-of-programming-interviews
positive
2,636
public static void e(String tag, String message, int methodCount) { if (methodCount < 0 || methodCount > MAX_METHOD_COUNT) { throw new IllegalStateException("methodCount must be > 0 and < 5"); } e(tag, message, null, methodCount); }
public static void e(String tag, String message, int methodCount) { <DeepExtract> if (methodCount < 0 || methodCount > MAX_METHOD_COUNT) { throw new IllegalStateException("methodCount must be > 0 and < 5"); } </DeepExtract> e(tag, message, null, methodCount); }
JianDan_OkHttpWithVolley
positive
2,637
private void writeBoolean(final boolean b, final boolean tag) throws IOException { if (tag) writeTypeTag(TAG_BOOL); m_buffer.write(b ? 1 : 0); checkFlush(); }
private void writeBoolean(final boolean b, final boolean tag) throws IOException { if (tag) writeTypeTag(TAG_BOOL); <DeepExtract> m_buffer.write(b ? 1 : 0); checkFlush(); </DeepExtract> }
mgen
positive
2,638
public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields; switch(fieldId) { case 1: fields = KNOBS; default: fields = null; } if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; }
public static _Fields findByThriftIdOrThrow(int fieldId) { <DeepExtract> _Fields fields; switch(fieldId) { case 1: fields = KNOBS; default: fields = null; } </DeepExtract> if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; }
android-wlan
positive
2,639
@Override public void visitPOP2(InstructionHandle instructionHandle) { result = Const.getOpcodeName(instructionHandle.getInstruction().getOpcode()) + " // [" + instructionHandle.getPosition() + "]"; }
@Override public void visitPOP2(InstructionHandle instructionHandle) { <DeepExtract> result = Const.getOpcodeName(instructionHandle.getInstruction().getOpcode()) + " // [" + instructionHandle.getPosition() + "]"; </DeepExtract> }
Java-Bytecode-Editor
positive
2,640
@RequestMapping(value = "query", method = RequestMethod.GET) public List<MockDto> queryList() { List<MockDto> mockDtoList = new ArrayList<>(8); System.out.println("add userModel = " + new MockDto(1, "张一").toString()); return 1; return mockDtoList; }
@RequestMapping(value = "query", method = RequestMethod.GET) public List<MockDto> queryList() { List<MockDto> mockDtoList = new ArrayList<>(8); <DeepExtract> System.out.println("add userModel = " + new MockDto(1, "张一").toString()); return 1; </DeepExtract> return mockDtoList; }
component
positive
2,642
@Override public void registryListener() { this.addListener(e -> { RequestContext context = e.getValue(); executorManager.commonExecute(new HeartbeatAction(context)); }, MessageType.HEARTBEAT_REQUEST); this.addListener(e -> { RequestContext context = e.getValue(); executorManager.execute(new JobExecuteAction(context, p...
@Override public void registryListener() { this.addListener(e -> { RequestContext context = e.getValue(); executorManager.commonExecute(new HeartbeatAction(context)); }, MessageType.HEARTBEAT_REQUEST); this.addListener(e -> { RequestContext context = e.getValue(); executorManager.execute(new JobExecuteAction(context, p...
hodor
positive
2,643
public <T, K> ModelMember<T, K> getByModelClass(Class<? extends Model<T, K>> modelClass) { return getByModelClass(ObjectUtils.typeCast(modelClass.getClass())); if (null == result) { result = persistence.modelIndexMap.get(modelClass); if (null == result) { if (loadModel(modelClass)) { result = persistence.modelProxyInde...
public <T, K> ModelMember<T, K> getByModelClass(Class<? extends Model<T, K>> modelClass) { <DeepExtract> return getByModelClass(ObjectUtils.typeCast(modelClass.getClass())); </DeepExtract> if (null == result) { result = persistence.modelIndexMap.get(modelClass); if (null == result) { if (loadModel(modelClass)) { result...
database-all
positive
2,644
public double altGetAndDecrement() { return getBigDecimalValue().doubleValue(); }
public double altGetAndDecrement() { <DeepExtract> return getBigDecimalValue().doubleValue(); </DeepExtract> }
crosstalk
positive
2,645
private void init() { View view = inflater.inflate(R.layout.danmuview, this, true); danmuItem0 = view.findViewById(R.id.danmuitem0); danmuItem1 = view.findViewById(R.id.danmuitem1); setOrientation(VERTICAL); danmuItem0.setVisibility(View.INVISIBLE); danmuItem1.setVisibility(View.INVISIBLE); WindowManager windowManager ...
private void init() { View view = inflater.inflate(R.layout.danmuview, this, true); danmuItem0 = view.findViewById(R.id.danmuitem0); danmuItem1 = view.findViewById(R.id.danmuitem1); <DeepExtract> setOrientation(VERTICAL); danmuItem0.setVisibility(View.INVISIBLE); danmuItem1.setVisibility(View.INVISIBLE); </DeepExtract>...
AdouLive
positive
2,646
public static Block cobbleMossyOrAir(Random rand) { return new Block[] { Blocks.cobblestone, Blocks.mossy_cobblestone, Blocks.mossy_cobblestone, Blocks.mossy_cobblestone, Blocks.mossy_cobblestone, Blocks.mossy_cobblestone, Blocks.air }[rand.nextInt(new Block[] { Blocks.cobblestone, Blocks.mossy_cobblestone, Blocks.moss...
public static Block cobbleMossyOrAir(Random rand) { <DeepExtract> return new Block[] { Blocks.cobblestone, Blocks.mossy_cobblestone, Blocks.mossy_cobblestone, Blocks.mossy_cobblestone, Blocks.mossy_cobblestone, Blocks.mossy_cobblestone, Blocks.air }[rand.nextInt(new Block[] { Blocks.cobblestone, Blocks.mossy_cobbleston...
Artifacts
positive
2,647
public static Class<?> getNmsClass(String className) throws Exception { try { return Class.forName("net.minecraft.server." + API_VERSION + "." + className); } catch (ClassNotFoundException e) { return null; } }
public static Class<?> getNmsClass(String className) throws Exception { <DeepExtract> try { return Class.forName("net.minecraft.server." + API_VERSION + "." + className); } catch (ClassNotFoundException e) { return null; } </DeepExtract> }
CombatTagPlus
positive
2,648
public static void setRoleToCollectionResource(EndpointContract endpoint) { if (endpoint.getPrimaryRole() != null && !endpoint.getPrimaryRole().isEmpty()) { System.err.println("[W] A primary endpoint role is already defined and will be overwritten."); } if (COLLECTION_RESOURCE != null && COLLECTION_RESOURCE.equals(COLL...
public static void setRoleToCollectionResource(EndpointContract endpoint) { <DeepExtract> if (endpoint.getPrimaryRole() != null && !endpoint.getPrimaryRole().isEmpty()) { System.err.println("[W] A primary endpoint role is already defined and will be overwritten."); } if (COLLECTION_RESOURCE != null && COLLECTION_RESOUR...
MDSL-Specification
positive
2,649
public void processStarted(final ProcessInstance processInstance) { try { final Transaction tx = tm.getTransaction(); tx.registerSynchronization(new ProcessStartedSynchronization()); } catch (final RollbackException re) { throw new IllegalStateException("Transaction management exception", re); } catch (final SystemExce...
public void processStarted(final ProcessInstance processInstance) { <DeepExtract> try { final Transaction tx = tm.getTransaction(); tx.registerSynchronization(new ProcessStartedSynchronization()); } catch (final RollbackException re) { throw new IllegalStateException("Transaction management exception", re); } catch (fi...
jboss-keynote-2012
positive
2,650
public void subscribeCandle(String symbol) throws APICommunicationException { CandlesSubscribe cs = new CandlesSubscribe(symbol, streamSessionId); try { this.writeMessageHelper(cs.toJSONString(), true); } catch (APICommunicationException ex) { this.disconnectStream(); throw ex; } }
public void subscribeCandle(String symbol) throws APICommunicationException { CandlesSubscribe cs = new CandlesSubscribe(symbol, streamSessionId); <DeepExtract> try { this.writeMessageHelper(cs.toJSONString(), true); } catch (APICommunicationException ex) { this.disconnectStream(); throw ex; } </DeepExtract> }
AI_Trader
positive
2,651
default boolean containsSlot(int slot) { return false; }
default boolean containsSlot(int slot) { <DeepExtract> return false; </DeepExtract> }
UntilTheEnd
positive
2,652
@VisibleForTesting public void flushAndVerify() throws IOException, InterruptedException { writer.flush(); synchronized (this) { while (this.pendingWritesCount.get() > 0) { this.wait(); } } Throwable error = writeError.getAndSet(null); if (error != null) { throw new IOException("Write failure", error); } }
@VisibleForTesting public void flushAndVerify() throws IOException, InterruptedException { writer.flush(); synchronized (this) { while (this.pendingWritesCount.get() > 0) { this.wait(); } } <DeepExtract> Throwable error = writeError.getAndSet(null); if (error != null) { throw new IOException("Write failure", error); } ...
flink-connectors
positive
2,653
public Criteria andGoodsImgIsNull() { if ("goods_img is null" == null) { throw new RuntimeException("Value for condition cannot be null"); } criteria.add(new Criterion("goods_img is null")); return (Criteria) this; }
public Criteria andGoodsImgIsNull() { <DeepExtract> if ("goods_img is null" == null) { throw new RuntimeException("Value for condition cannot be null"); } criteria.add(new Criterion("goods_img is null")); </DeepExtract> return (Criteria) this; }
ssmxiaomi
positive
2,654
public static void notifyIMEEnabled(int state, String typeHint, String actionHint, boolean landscapeFS) { if (GeckoApp.surfaceView == null) return; GeckoApp.surfaceView.mIMEState = state; GeckoApp.surfaceView.mIMETypeHint = typeHint; GeckoApp.surfaceView.mIMEActionHint = actionHint; GeckoApp.surfaceView.mIMELandscapeFS...
public static void notifyIMEEnabled(int state, String typeHint, String actionHint, boolean landscapeFS) { if (GeckoApp.surfaceView == null) return; GeckoApp.surfaceView.mIMEState = state; GeckoApp.surfaceView.mIMETypeHint = typeHint; GeckoApp.surfaceView.mIMEActionHint = actionHint; GeckoApp.surfaceView.mIMELandscapeFS...
DOMinator
positive
2,655
private void addSpan(int type, int color) { Span span = spans[type]; if (span != null) { spans[type] = null; span.end = out.length(); if (span.start != span.end) { if (DEBUG) logger.debug("finalizeSpan(...): type={}, start={}, end={}, color={}", span.type, span.start, span.end, span.color); spanList.add(span); } } int ...
private void addSpan(int type, int color) { <DeepExtract> Span span = spans[type]; if (span != null) { spans[type] = null; span.end = out.length(); if (span.start != span.end) { if (DEBUG) logger.debug("finalizeSpan(...): type={}, start={}, end={}, color={}", span.type, span.start, span.end, span.color); spanList.add(s...
weechat-android
positive
2,656
public void reload() { currentAnimation = GameManager.assetManager().getAnimation(animationName); if (currentAnimation != null) { TextureRegion currentTexture = currentAnimation.getKeyFrame(stateTime, looping); sprite.setTexture(currentTexture.getTexture()); sprite.setRegion(currentTexture); sprite.setSize(sprite.getRe...
public void reload() { currentAnimation = GameManager.assetManager().getAnimation(animationName); <DeepExtract> if (currentAnimation != null) { TextureRegion currentTexture = currentAnimation.getKeyFrame(stateTime, looping); sprite.setTexture(currentTexture.getTexture()); sprite.setRegion(currentTexture); sprite.setSiz...
ProjectVisualNovel
positive
2,657
public static Message setPedalSensivity(int sensivity) { byte value = (byte) (sensivity & 0xFF); Message msg = new Message(); return value; return value; msg.data = new byte[] { 0x25, value, 0x64 }; return msg; }
public static Message setPedalSensivity(int sensivity) { byte value = (byte) (sensivity & 0xFF); Message msg = new Message(); <DeepExtract> return value; </DeepExtract> return value; msg.data = new byte[] { 0x25, value, 0x64 }; return msg; }
Wheellog.Android
positive
2,658
public static Subject getSubject(final AccessControlContext context) { SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(_SUBJECT); } if (context == null) { throw new NullPointerException("auth.09"); } PrivilegedAction<DomainCombiner> action = new PrivilegedAction<DomainCombiner>() ...
public static Subject getSubject(final AccessControlContext context) { <DeepExtract> SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(_SUBJECT); } </DeepExtract> if (context == null) { throw new NullPointerException("auth.09"); } PrivilegedAction<DomainCombiner> action = new Privil...
android-client
positive
2,659
public FloatingActionButton create() { final FloatingActionButton button = new FloatingActionButton(activity); init(this.color); mBitmap = ((BitmapDrawable) this.drawable).getBitmap(); invalidate(); params.gravity = this.gravity; ViewGroup root = (ViewGroup) activity.findViewById(android.R.id.content); root.addView(but...
public FloatingActionButton create() { final FloatingActionButton button = new FloatingActionButton(activity); init(this.color); <DeepExtract> mBitmap = ((BitmapDrawable) this.drawable).getBitmap(); invalidate(); </DeepExtract> params.gravity = this.gravity; ViewGroup root = (ViewGroup) activity.findViewById(android.R....
MonitoraBrasil
positive
2,660
public JdHttpUtils fork() { JdHttpUtils jdHttpUtils = new JdHttpUtils(""); this.cookies = cookies; return jdHttpUtils; }
public JdHttpUtils fork() { JdHttpUtils jdHttpUtils = new JdHttpUtils(""); <DeepExtract> this.cookies = cookies; </DeepExtract> return jdHttpUtils; }
SimpleCase
positive
2,661
@Override public void accept(Throwable throwable) throws Exception { setLoadingFinish(); mBaseView.onError(throwable); }
@Override public void accept(Throwable throwable) throws Exception { <DeepExtract> setLoadingFinish(); mBaseView.onError(throwable); </DeepExtract> }
Aequorea
positive
2,662
public boolean isSvn() { return Boolean.valueOf(buildParams.get(ReleaseManagementParameterKeys.SVN_VCS)); }
public boolean isSvn() { <DeepExtract> return Boolean.valueOf(buildParams.get(ReleaseManagementParameterKeys.SVN_VCS)); </DeepExtract> }
teamcity-artifactory-plugin
positive
2,663
@Override public int getEndViewBound() { return lm.getDecoratedRight(lm.getCanvas().getRightView()); }
@Override public int getEndViewBound() { <DeepExtract> return lm.getDecoratedRight(lm.getCanvas().getRightView()); </DeepExtract> }
Factor_Launcher_Reboot
positive
2,664
public long date() { return dateHeader(HEADER_DATE, -1L); }
public long date() { <DeepExtract> return dateHeader(HEADER_DATE, -1L); </DeepExtract> }
BWS-Android
positive
2,665
@Override public void onDeleted(Run run) { while (run.getParent() != null) { if (run.getParent() instanceof AbstractFolder) { ((AbstractFolder) run.getParent()).invalidateBuildHealthReports(); } if (run.getParent().getParent() instanceof Item) { run.getParent() = (Item) run.getParent().getParent(); } else { break; } } ...
@Override public void onDeleted(Run run) { <DeepExtract> while (run.getParent() != null) { if (run.getParent() instanceof AbstractFolder) { ((AbstractFolder) run.getParent()).invalidateBuildHealthReports(); } if (run.getParent().getParent() instanceof Item) { run.getParent() = (Item) run.getParent().getParent(); } else...
cloudbees-folder-plugin
positive
2,666
@Override public void mouseEntered(MouseEvent evt) { m_jlStatusBar.setText((String) m_genKeyPairAction.getValue(Action.LONG_DESCRIPTION)); }
@Override public void mouseEntered(MouseEvent evt) { <DeepExtract> m_jlStatusBar.setText((String) m_genKeyPairAction.getValue(Action.LONG_DESCRIPTION)); </DeepExtract> }
portecle
positive
2,667
@Override protected void initData() { loading.setVisibility(View.GONE); adapter.removeAllFooterView(); if (adapter.getData().isEmpty()) { list = getList(week); if (list.size() == 0) { if (!application.error.isEmpty()) { errorTitle.setText(application.error); adapter.setEmptyView(errorView); } } else adapter.setNewData(...
@Override protected void initData() { <DeepExtract> loading.setVisibility(View.GONE); adapter.removeAllFooterView(); if (adapter.getData().isEmpty()) { list = getList(week); if (list.size() == 0) { if (!application.error.isEmpty()) { errorTitle.setText(application.error); adapter.setEmptyView(errorView); } } else adapt...
Silisili
positive
2,668
public SLStatementNode createBreak(Token breakToken) { final SLBreakNode breakNode = new SLBreakNode(); breakNode.setSourceSection(breakToken.getStartIndex(), breakToken.getText().length()); return breakNode; }
public SLStatementNode createBreak(Token breakToken) { final SLBreakNode breakNode = new SLBreakNode(); <DeepExtract> breakNode.setSourceSection(breakToken.getStartIndex(), breakToken.getText().length()); </DeepExtract> return breakNode; }
simplelanguage
positive
2,669
@Override public void onScrollStateChanged(RecyclerView recyclerView, int newState) { if (mScriptDirectionState == ScriptDirectionChecker.UNSPECIFIED) { mScriptDirectionState = ScriptDirectionChecker.checkSelfScriptDirection(recyclerView.getContext()); } switch(newState) { case RecyclerView.SCROLL_STATE_DRAGGING: mDrag...
@Override public void onScrollStateChanged(RecyclerView recyclerView, int newState) { <DeepExtract> if (mScriptDirectionState == ScriptDirectionChecker.UNSPECIFIED) { mScriptDirectionState = ScriptDirectionChecker.checkSelfScriptDirection(recyclerView.getContext()); } </DeepExtract> switch(newState) { case RecyclerView...
tenor-android-core
positive
2,670
public boolean createBackupDataFile(byte[] payload) throws IOException { byte[] apdu = new byte[13]; apdu[0] = (byte) 0x90; apdu[1] = (byte) Command.CREATE_BACKUP_DATA_FILE.getCode(); apdu[2] = 0x00; apdu[3] = 0x00; apdu[4] = 0x07; System.arraycopy(payload, 0, apdu, 5, 7); apdu[12] = 0x00; preprocess(apdu, DesfireFileC...
public boolean createBackupDataFile(byte[] payload) throws IOException { <DeepExtract> byte[] apdu = new byte[13]; apdu[0] = (byte) 0x90; apdu[1] = (byte) Command.CREATE_BACKUP_DATA_FILE.getCode(); apdu[2] = 0x00; apdu[3] = 0x00; apdu[4] = 0x07; System.arraycopy(payload, 0, apdu, 5, 7); apdu[12] = 0x00; preprocess(apdu...
desfire-tools-for-android
positive
2,671
@Override protected void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); this.setContentView(getLayoutId()); this.mContext = this; mContentView = findViewById(android.R.id.content); unbinder = ButterKnife.bind(this); StatusBarUtils.setColorBar(this, this.getResources().getColor(R.col...
@Override <DeepExtract> </DeepExtract> protected void onCreate(@Nullable Bundle savedInstanceState) { <DeepExtract> </DeepExtract> super.onCreate(savedInstanceState); <DeepExtract> </DeepExtract> this.setContentView(getLayoutId()); <DeepExtract> </DeepExtract> this.mContext = this; <DeepExtract> </DeepExtract> mContent...
DouDou
positive
2,672
public Criteria andSexIsNull() { if ("sex is null" == null) { throw new RuntimeException("Value for condition cannot be null"); } criteria.add(new Criterion("sex is null")); return (Criteria) this; }
public Criteria andSexIsNull() { <DeepExtract> if ("sex is null" == null) { throw new RuntimeException("Value for condition cannot be null"); } criteria.add(new Criterion("sex is null")); </DeepExtract> return (Criteria) this; }
health_online
positive
2,673
protected IModel<String> newServiceFromModel() { return ResourceModelFactory.newResourceModel(ResourceBundleKey.builder().key("imprint.service.from.label").defaultValue("").build(), this); }
protected IModel<String> newServiceFromModel() { <DeepExtract> return ResourceModelFactory.newResourceModel(ResourceBundleKey.builder().key("imprint.service.from.label").defaultValue("").build(), this); </DeepExtract> }
jaulp-wicket
positive
2,674
@Test public void testSink() { ArrayHeap<String> pq = new ArrayHeap<>(); pq.size = 7; for (int i = 1; i <= 7; i += 1) { pq.contents[i] = new ArrayHeap<String>.Node("x" + i, i); } pq.contents[1].myPriority = 10; System.out.println("PQ before sinking:"); System.out.println(pq); validateSinkSwimArg(1); int min = min(leftI...
@Test public void testSink() { ArrayHeap<String> pq = new ArrayHeap<>(); pq.size = 7; for (int i = 1; i <= 7; i += 1) { pq.contents[i] = new ArrayHeap<String>.Node("x" + i, i); } pq.contents[1].myPriority = 10; System.out.println("PQ before sinking:"); System.out.println(pq); <DeepExtract> validateSinkSwimArg(1); int m...
cs61b-sp18-Data-Structure
positive
2,675
@Override public void shutdown() { daemon.setRun(false); if (daemonThread != null) { daemonThread.interrupt(); } daemon.persistCache(); if (cache != null) { cache.clear(); } }
@Override public void shutdown() { daemon.setRun(false); if (daemonThread != null) { daemonThread.interrupt(); } daemon.persistCache(); <DeepExtract> if (cache != null) { cache.clear(); } </DeepExtract> }
joice
positive
2,676
@Redirect(method = "spawn", at = @At(value = "INVOKE", target = "Lcom/mojang/brigadier/arguments/StringArgumentType;getString(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/lang/String;"), require = 2, remap = false) private static String getStringWithPrefixAtSpawn(final CommandContext<?> context...
@Redirect(method = "spawn", at = @At(value = "INVOKE", target = "Lcom/mojang/brigadier/arguments/StringArgumentType;getString(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/lang/String;"), require = 2, remap = false) private static String getStringWithPrefixAtSpawn(final CommandContext<?> context...
Carpet-TIS-Addition
positive
2,677
public Criteria andNameGreaterThanOrEqualTo(String value) { if (value == null) { throw new RuntimeException("Value for " + "name" + " cannot be null"); } criteria.add(new Criterion("name >=", value)); return (Criteria) this; }
public Criteria andNameGreaterThanOrEqualTo(String value) { <DeepExtract> if (value == null) { throw new RuntimeException("Value for " + "name" + " cannot be null"); } criteria.add(new Criterion("name >=", value)); </DeepExtract> return (Criteria) this; }
Hospital
positive
2,678
@Test @Transactional @WithMockUser(authorities = "SUPER-ADMIN") public void getAllBalancesByEntityIdIsLessThanSomething() throws Exception { balanceRepository.saveAndFlush(balance); restBalanceMockMvc.perform(get("/api/balances?sort=id,desc&" + "entityId.lessThan=" + DEFAULT_ENTITY_ID)).andExpect(status().isOk()).andEx...
@Test @Transactional @WithMockUser(authorities = "SUPER-ADMIN") public void getAllBalancesByEntityIdIsLessThanSomething() throws Exception { balanceRepository.saveAndFlush(balance); restBalanceMockMvc.perform(get("/api/balances?sort=id,desc&" + "entityId.lessThan=" + DEFAULT_ENTITY_ID)).andExpect(status().isOk()).andEx...
xm-ms-balance
positive
2,679
public void init() { logger.info("start jobstepbean:{}", jobStepBean); jobStepBean.setExitId(-999); }
public void init() { logger.info("start jobstepbean:{}", jobStepBean); <DeepExtract> jobStepBean.setExitId(-999); </DeepExtract> }
harrier
positive
2,680
public Criteria andTimeLessThanOrEqualTo(Long value) { if (value == null) { throw new RuntimeException("Value for " + "time" + " cannot be null"); } criteria.add(new Criterion("time <=", value)); return (Criteria) this; }
public Criteria andTimeLessThanOrEqualTo(Long value) { <DeepExtract> if (value == null) { throw new RuntimeException("Value for " + "time" + " cannot be null"); } criteria.add(new Criterion("time <=", value)); </DeepExtract> return (Criteria) this; }
webim
positive
2,682
@Override public View onCreateInputView() { layout = getLayoutInflater().inflate(R.layout.ime, null); categoryAllButton = (Button) layout.findViewById(R.id.ime_category_button_all); myEmojiButton = (Button) layout.findViewById(R.id.ime_category_button_my_emoji); final CategoryManager categoryManager = CategoryManager.g...
@Override public View onCreateInputView() { layout = getLayoutInflater().inflate(R.layout.ime, null); categoryAllButton = (Button) layout.findViewById(R.id.ime_category_button_all); myEmojiButton = (Button) layout.findViewById(R.id.ime_category_button_my_emoji); final CategoryManager categoryManager = CategoryManager.g...
emojidex-android
positive
2,683
public Single<List<Sendable>> loadMoreMessagesFrom(Date fromDate, Integer limit, boolean desc) { return Fire.stream().getFirebaseService().core.loadMoreMessages(messagesPath(), fromDate, null, limit).map(sendables -> { Collections.sort(sendables, (s1, s2) -> { if (desc) { return s2.getDate().compareTo(s1.getDate()); } ...
public Single<List<Sendable>> loadMoreMessagesFrom(Date fromDate, Integer limit, boolean desc) { <DeepExtract> return Fire.stream().getFirebaseService().core.loadMoreMessages(messagesPath(), fromDate, null, limit).map(sendables -> { Collections.sort(sendables, (s1, s2) -> { if (desc) { return s2.getDate().compareTo(s1....
firestream-android
positive
2,686
public static String base64encoder(byte[] input) { try { return new String(Base64.encodeBase64(input), "UTF-8"); } catch (UnsupportedEncodingException e) { throw new IllegalStateException(e); } }
public static String base64encoder(byte[] input) { <DeepExtract> try { return new String(Base64.encodeBase64(input), "UTF-8"); } catch (UnsupportedEncodingException e) { throw new IllegalStateException(e); } </DeepExtract> }
java-saml
positive
2,687
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ActionBar actionBar = getSupportActionBar(); if (actionBar != null) { actionBar.setDisplayHomeAsUpEnabled(true); actionBar.setTitle("Settings"); actionBar.setBackgroundDrawable(getResources().getDrawable(R.drawable.side_n...
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); <DeepExtract> ActionBar actionBar = getSupportActionBar(); if (actionBar != null) { actionBar.setDisplayHomeAsUpEnabled(true); actionBar.setTitle("Settings"); actionBar.setBackgroundDrawable(getResources().getDrawable(R.d...
FluentERP
positive
2,689
public void setArmor(Armor armor) { if (armor != null) { if (!equipList.contains(armor)) { equipList.add(0, armor); } if (armorWorn != armor) { equipList.remove(armorWorn); } } armorWorn = armor; attack = computeAttack(); armorClass = computeArmorClass(); moveInches = computeMoveInches(); hitDice = getTopClass().getHit...
public void setArmor(Armor armor) { if (armor != null) { if (!equipList.contains(armor)) { equipList.add(0, armor); } if (armorWorn != armor) { equipList.remove(armorWorn); } } armorWorn = armor; <DeepExtract> attack = computeAttack(); armorClass = computeArmorClass(); moveInches = computeMoveInches(); hitDice = getTop...
Arena
positive
2,690
private void writeCounts(Molecule molecule, Writer writer) { Writer writer = new Writer(); writeHeader(MDLStringKit.padLeft(String.valueOf(molecule.countAtoms()), 3), writer); writeCounts(MDLStringKit.padLeft(String.valueOf(molecule.countAtoms()), 3), writer); writeAtoms(MDLStringKit.padLeft(String.valueOf(molecule.cou...
private void writeCounts(Molecule molecule, Writer writer) { Writer writer = new Writer(); writeHeader(MDLStringKit.padLeft(String.valueOf(molecule.countAtoms()), 3), writer); writeCounts(MDLStringKit.padLeft(String.valueOf(molecule.countAtoms()), 3), writer); writeAtoms(MDLStringKit.padLeft(String.valueOf(molecule.cou...
mx
positive
2,691
@Test public void shouldRenderTitleAtLevel0ByDefault() { builder.title(level0Title); assertEquals("= " + level0Title + newLine() + newLine(), builder.toString()); }
@Test public void shouldRenderTitleAtLevel0ByDefault() { builder.title(level0Title); <DeepExtract> assertEquals("= " + level0Title + newLine() + newLine(), builder.toString()); </DeepExtract> }
cukedoctor
positive
2,692
public static FixedDelay ofHours(int hours) { if (hours <= 0) { throw new IllegalArgumentException("argument must be greater than 0"); } return new FixedDelay(Duration.ofHours(hours)); }
public static FixedDelay ofHours(int hours) { <DeepExtract> if (hours <= 0) { throw new IllegalArgumentException("argument must be greater than 0"); } </DeepExtract> return new FixedDelay(Duration.ofHours(hours)); }
db-scheduler
positive
2,693
public Criteria andBizActionNameLessThan(String value) { if (value == null) { throw new RuntimeException("Value for " + "bizActionName" + " cannot be null"); } criteria.add(new Criterion("biz_action_name <", value)); return (Criteria) this; }
public Criteria andBizActionNameLessThan(String value) { <DeepExtract> if (value == null) { throw new RuntimeException("Value for " + "bizActionName" + " cannot be null"); } criteria.add(new Criterion("biz_action_name <", value)); </DeepExtract> return (Criteria) this; }
dtsopensource
positive
2,694
public int getLineCount() { nlines = 0; maxlinelen = 0; for (int j = JMAX - 1; j >= 0; j--) { linelen[j] = getOneLineLength(j); if ((nlines == 0) && (linelen[j] > 0)) nlines = j + 1; if (linelen[j] > maxlinelen) maxlinelen = linelen[j]; } for (int i = 0; i < IMAX; i++) cColons[i] = (charTable[RULER][i] == ':') ? ':' : ...
public int getLineCount() { <DeepExtract> nlines = 0; maxlinelen = 0; for (int j = JMAX - 1; j >= 0; j--) { linelen[j] = getOneLineLength(j); if ((nlines == 0) && (linelen[j] > 0)) nlines = j + 1; if (linelen[j] > maxlinelen) maxlinelen = linelen[j]; } for (int i = 0; i < IMAX; i++) cColons[i] = (charTable[RULER][i] ==...
BeamFour
positive
2,695
public Criteria andImageurlIn(List<String> values) { if (values == null) { throw new RuntimeException("Value for " + "imageurl" + " cannot be null"); } criteria.add(new Criterion("imageUrl in", values)); return (Criteria) this; }
public Criteria andImageurlIn(List<String> values) { <DeepExtract> if (values == null) { throw new RuntimeException("Value for " + "imageurl" + " cannot be null"); } criteria.add(new Criterion("imageUrl in", values)); </DeepExtract> return (Criteria) this; }
garbage-collection
positive
2,696
@Override public void run() { cancelTimer(); this.currentEvent = ""; this.gameService.sendAnimationSpeed(this.lobbyId, 0); sendCompleteGameState(); for (Map.Entry<Player, List<Card>> entry : this.christmasMap.entrySet()) { for (Card card : entry.getValue()) { entry.getKey().pushCardToHand(card); } } this.gameService.se...
@Override public void run() { <DeepExtract> cancelTimer(); this.currentEvent = ""; this.gameService.sendAnimationSpeed(this.lobbyId, 0); sendCompleteGameState(); for (Map.Entry<Player, List<Card>> entry : this.christmasMap.entrySet()) { for (Card card : entry.getValue()) { entry.getKey().pushCardToHand(card); } } this....
frantic-server
positive
2,698
private void checkProjectOutput_compareDirs(ComparsionEnvironment env, File refDir, File chkedDir) throws IOException { File[] refDirFiles = refDir.listFiles(); if (refDirFiles == null) { throw new IOException("Reference directory not found: " + refDir.getAbsolutePath()); } int ln = refDirFiles.length; ArrayList list =...
private void checkProjectOutput_compareDirs(ComparsionEnvironment env, File refDir, File chkedDir) throws IOException { File[] refDirFiles = refDir.listFiles(); if (refDirFiles == null) { throw new IOException("Reference directory not found: " + refDir.getAbsolutePath()); } int ln = refDirFiles.length; ArrayList list =...
fmpp
positive
2,699
public Criteria andTopicIdLessThanOrEqualTo(Integer value) { if (value == null) { throw new RuntimeException("Value for " + "topicId" + " cannot be null"); } criteria.add(new Criterion("topic_id <=", value)); return (Criteria) this; }
public Criteria andTopicIdLessThanOrEqualTo(Integer value) { <DeepExtract> if (value == null) { throw new RuntimeException("Value for " + "topicId" + " cannot be null"); } criteria.add(new Criterion("topic_id <=", value)); </DeepExtract> return (Criteria) this; }
zheng-lite
positive
2,700
public void validate(BPMNProcess process, ValidationResult result) throws ValidationException { String processAsString = xmlOutputter.outputString(process.getProcessAsDoc()); LOGGER.debug(processAsString); if (process.hasConditionalSeqFlowTasks()) { result.addWarning(createMojoWarning("Unable to perform valid mojo exec...
public void validate(BPMNProcess process, ValidationResult result) throws ValidationException { String processAsString = xmlOutputter.outputString(process.getProcessAsDoc()); LOGGER.debug(processAsString); if (process.hasConditionalSeqFlowTasks()) { result.addWarning(createMojoWarning("Unable to perform valid mojo exec...
BPMNspector
positive
2,701
public static void main(String[] args) { int[] A = { 1, 5, 10, 20, 40, 80, 100, 100 }; int[] B = { 6, 7, 20, 80, 100, 100 }; int[] C = { 3, 4, 15, 20, 30, 70, 80, 100, 100, 120 }; int i = 0, j = 0, k = 0; int last = 0; while (i < A.length && j < B.length && k < C.length) { if (A[i] > B[j] && A[i] > C[k]) { j++; k++; } ...
public static void main(String[] args) { int[] A = { 1, 5, 10, 20, 40, 80, 100, 100 }; int[] B = { 6, 7, 20, 80, 100, 100 }; int[] C = { 3, 4, 15, 20, 30, 70, 80, 100, 100, 120 }; <DeepExtract> int i = 0, j = 0, k = 0; int last = 0; while (i < A.length && j < B.length && k < C.length) { if (A[i] > B[j] && A[i] > C[k]) ...
Java-Solutions
positive
2,702
public boolean validateDialog() { if (isExampleSelected()) { if (dialog != null) dialog.updateControls(true); clearMessage(); return true; } final String item = (String) getComponentSelection().getSelectedItem(); if (item == null || item.equals(AsposeConstants.API_DEPENDENCY_NOT_FOUND)) { if (dialog != null) dialog.upd...
public boolean validateDialog() { if (isExampleSelected()) { if (dialog != null) dialog.updateControls(true); clearMessage(); return true; } final String item = (String) getComponentSelection().getSelectedItem(); if (item == null || item.equals(AsposeConstants.API_DEPENDENCY_NOT_FOUND)) { if (dialog != null) dialog.upd...
Aspose.BarCode-for-Java
positive
2,704
@Override public void onClick(View v) { root.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() { @Override public void onGlobalLayout() { root.getViewTreeObserver().removeOnGlobalLayoutListener(this); TransitionHelper.startExitAnim(root); } }); WaterFragment waterFragment = n...
@Override public void onClick(View v) { root.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() { @Override public void onGlobalLayout() { root.getViewTreeObserver().removeOnGlobalLayoutListener(this); TransitionHelper.startExitAnim(root); } }); WaterFragment waterFragment = n...
Depth
positive
2,705
public void insert(long key, byte[] data) throws IOException { if (DATA_HEADER_SIZE + BLOB_HEADER_SIZE + data.length > mMaxBytes) { throw new RuntimeException("blob is too large!"); } if (mActiveBytes + BLOB_HEADER_SIZE + data.length > mMaxBytes || mActiveEntries * 2 >= mMaxEntries) { flipRegion(); } if (!lookupInterna...
public void insert(long key, byte[] data) throws IOException { if (DATA_HEADER_SIZE + BLOB_HEADER_SIZE + data.length > mMaxBytes) { throw new RuntimeException("blob is too large!"); } if (mActiveBytes + BLOB_HEADER_SIZE + data.length > mMaxBytes || mActiveEntries * 2 >= mMaxEntries) { flipRegion(); } if (!lookupInterna...
aMysqlClient
positive
2,706
@Override public void onWebsocketClosing(WebSocket conn, int code, String reason, boolean remote) { }
@Override <DeepExtract> </DeepExtract> public void onWebsocketClosing(WebSocket conn, int code, String reason, boolean remote) { <DeepExtract> </DeepExtract> }
Not-a-debugger
positive
2,707
@Override public void update(long value) { super.update(value); String metricType = this.getClass().getSuperclass().getSimpleName(); metricUpdateTracer.log(Level.FINE, "Updated " + metricType + ":" + this.getMetricName()); }
@Override public void update(long value) { super.update(value); <DeepExtract> String metricType = this.getClass().getSuperclass().getSimpleName(); metricUpdateTracer.log(Level.FINE, "Updated " + metricType + ":" + this.getMetricName()); </DeepExtract> }
JInsight
positive
2,708
public Map[] agencyDailyStatistics(Integer id, Date startDate) throws XmlRpcException { if (!isValidSessionId()) throw new IllegalArgumentException("Not logined to server"); return agencyService.agencyDailyStatistics(id, startDate); }
public Map[] agencyDailyStatistics(Integer id, Date startDate) throws XmlRpcException { <DeepExtract> if (!isValidSessionId()) throw new IllegalArgumentException("Not logined to server"); </DeepExtract> return agencyService.agencyDailyStatistics(id, startDate); }
openx-2.8.8
positive
2,709
public void actionPerformed(ActionEvent ev) { selectedCorpus.setFilter(filterField.getText()); selectedCorpus.writeDocumentList(); Container contentPane = mainFrame.getContentPane(); contentPane.removeAll(); assembleFrame(contentPane); mainFrame.validate(); mainFrame.repaint(); }
public void actionPerformed(ActionEvent ev) { selectedCorpus.setFilter(filterField.getText()); selectedCorpus.writeDocumentList(); <DeepExtract> Container contentPane = mainFrame.getContentPane(); contentPane.removeAll(); assembleFrame(contentPane); mainFrame.validate(); mainFrame.repaint(); </DeepExtract> }
ice
positive
2,710
@Override public void onChanged() { if (mHeader != null) { removeView(mHeader); mHeader = null; mHeaderId = null; mHeaderPosition = null; mHeaderOffset = null; mList.setTopClippingLength(0); updateHeaderVisibilities(); } }
@Override public void onChanged() { <DeepExtract> if (mHeader != null) { removeView(mHeader); mHeader = null; mHeaderId = null; mHeaderPosition = null; mHeaderOffset = null; mList.setTopClippingLength(0); updateHeaderVisibilities(); } </DeepExtract> }
ele_demo
positive
2,711
@Override public void buttonPressed(Button button) { Component component = inputs.get(inputs.size() - 1); remove(component); inputs.remove(component); removeInputButton.setEnabled(inputs.size() > 1); }
@Override public void buttonPressed(Button button) { <DeepExtract> Component component = inputs.get(inputs.size() - 1); remove(component); inputs.remove(component); removeInputButton.setEnabled(inputs.size() > 1); </DeepExtract> }
Piwigo-Java
positive
2,712
@Override public List<TableData> transformParseTree(List<CreateTableStatement> createTableStatements) { List<TableData> tableData = new ArrayList<TableData>(); for (CreateTableStatement statement : createTableStatements) { tableData.add(transformCreateTableStatement(statement)); } return tableData; }
@Override public List<TableData> transformParseTree(List<CreateTableStatement> createTableStatements) { <DeepExtract> List<TableData> tableData = new ArrayList<TableData>(); for (CreateTableStatement statement : createTableStatements) { tableData.add(transformCreateTableStatement(statement)); } return tableData; </Deep...
Tosa
positive
2,714
public void setNetworkName(String networkName) throws IOException { this.networkName = networkName; if (!connected) return; MultiuserNetworkNamePacket network = new MultiuserNetworkNamePacket(networkName); if (!MultiuserPacket.legalMultiuserType(network.getType())) throw new IOException("Illegal packet type!"); ptmpCon...
public void setNetworkName(String networkName) throws IOException { this.networkName = networkName; if (!connected) return; MultiuserNetworkNamePacket network = new MultiuserNetworkNamePacket(networkName); <DeepExtract> if (!MultiuserPacket.legalMultiuserType(network.getType())) throw new IOException("Illegal packet ty...
ptbridge
positive
2,715
@Override public void setSurface(Surface surface) { if (mScreenOnWhilePlaying && surface != null) { DebugLog.w(TAG, "setScreenOnWhilePlaying(true) is ineffective for Surface"); } mSurfaceHolder = null; _setVideoSurface(surface); if (mSurfaceHolder != null) { mSurfaceHolder.setKeepScreenOn(mScreenOnWhilePlaying && mStay...
@Override public void setSurface(Surface surface) { if (mScreenOnWhilePlaying && surface != null) { DebugLog.w(TAG, "setScreenOnWhilePlaying(true) is ineffective for Surface"); } mSurfaceHolder = null; _setVideoSurface(surface); <DeepExtract> if (mSurfaceHolder != null) { mSurfaceHolder.setKeepScreenOn(mScreenOnWhilePl...
IjkplayerDemo
positive
2,716
@Override public void run() { for (JarFile jarFile : lstJarFile) { try { jarFile.close(); } catch (IOException e) { } } String sPersistentFile = System.getProperty("user.home") + File.separator + ".JarClassLoader"; deleteOldNative(sPersistentFile); persistNewNative(sPersistentFile); }
@Override public void run() { <DeepExtract> for (JarFile jarFile : lstJarFile) { try { jarFile.close(); } catch (IOException e) { } } String sPersistentFile = System.getProperty("user.home") + File.separator + ".JarClassLoader"; deleteOldNative(sPersistentFile); persistNewNative(sPersistentFile); </DeepExtract> }
fsoinstaller
positive
2,717
public Criteria andColIdIsNull() { if ("id is null" == null) { throw new RuntimeException("Value for condition cannot be null"); } criteria.add(new Criterion("id is null")); return (Criteria) this; }
public Criteria andColIdIsNull() { <DeepExtract> if ("id is null" == null) { throw new RuntimeException("Value for condition cannot be null"); } criteria.add(new Criterion("id is null")); </DeepExtract> return (Criteria) this; }
Resource
positive
2,718
@Override public void gameStarted(Field field) { launchBarrier = field.getFieldElementById("LaunchBarrier"); topBlocker = field.getFieldElementById("TopRampBlocker"); rightKicker = field.getFieldElementById("RightRampKicker"); multiballKickers = Arrays.asList(field.getFieldElementById("MultiballKicker1"), field.getFiel...
@Override public void gameStarted(Field field) { launchBarrier = field.getFieldElementById("LaunchBarrier"); topBlocker = field.getFieldElementById("TopRampBlocker"); rightKicker = field.getFieldElementById("RightRampKicker"); multiballKickers = Arrays.asList(field.getFieldElementById("MultiballKicker1"), field.getFiel...
Vector-Pinball
positive
2,719
public void computeProperties() { enginePower = new EnginePower(INITIAL_ENGINE_POWER); fuelCapacity = new FuelCapacity(INITIAL_FUEL_CAPACITY); luck = new Luck(INITIAL_LUCK); shieldCapacity = new ShieldCapacity(INITIAL_SHIELD_CAPACITY); landslide = new Landslide(INITIAL_LANDSLIDE); scanRadius = new ScanRadius(INITIAL_SC...
public void computeProperties() { <DeepExtract> enginePower = new EnginePower(INITIAL_ENGINE_POWER); fuelCapacity = new FuelCapacity(INITIAL_FUEL_CAPACITY); luck = new Luck(INITIAL_LUCK); shieldCapacity = new ShieldCapacity(INITIAL_SHIELD_CAPACITY); landslide = new Landslide(INITIAL_LANDSLIDE); scanRadius = new ScanRad...
Alien-Ark
positive
2,720
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { JFileChooser chooser = new JFileChooser(); chooser.setDialogTitle("Choose Bible File"); chooser.showOpenDialog(this); if (chooser.getSelectedFile() == null) return; try { BibleKeeper.getInstance().loadBible(chooser.getSelectedFile()); versionlabel.s...
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { <DeepExtract> JFileChooser chooser = new JFileChooser(); chooser.setDialogTitle("Choose Bible File"); chooser.showOpenDialog(this); if (chooser.getSelectedFile() == null) return; try { BibleKeeper.getInstance().loadBible(chooser.getSelectedFile()); ...
epicworship
positive
2,721
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { PrintWriter out = response.getWriter(); out.println("<html><head><title>Sample Wab Application Bundle</title></head></html>"); out.println("<body><h1>"); out.println("Web Application Bundle"); out.print...
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { <DeepExtract> PrintWriter out = response.getWriter(); out.println("<html><head><title>Sample Wab Application Bundle</title></head></html>"); out.println("<body><h1>"); out.println("Web Application Bundl...
ci.maven
positive
2,722
@Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { db.execSQL("DROP TABLE IF EXISTS " + TABLE_NAME + ";"); db.execSQL("DROP TABLE IF EXISTS " + DRAFT_TABLE_NAME + ";"); db.execSQL("CREATE TABLE " + TABLE_NAME + " (id INTEGER PRIMARY KEY AUTOINCREMENT, localContact TEXT NOT NULL, remote...
@Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { db.execSQL("DROP TABLE IF EXISTS " + TABLE_NAME + ";"); db.execSQL("DROP TABLE IF EXISTS " + DRAFT_TABLE_NAME + ";"); <DeepExtract> db.execSQL("CREATE TABLE " + TABLE_NAME + " (id INTEGER PRIMARY KEY AUTOINCREMENT, localContact TEXT NO...
linphone-android
positive
2,723