before
stringlengths
33
3.21M
after
stringlengths
63
3.21M
repo
stringlengths
1
56
type
stringclasses
1 value
__index_level_0__
int64
0
442k
@Override public void show() { super.show(); if (!isShowing()) { showInputMethod(); } else { hideInputMethod(); } }
@Override public void show() { super.show(); <DeepExtract> if (!isShowing()) { showInputMethod(); } else { hideInputMethod(); } </DeepExtract> }
EasyAndroid
positive
437,872
@Override public WebdavNsNode getNode(final String uri, final int existence, final int nodeType, final boolean addMember) throws WebdavException { if (debug()) { debug("About to get node for " + uri); } if (uri == null) { return null; } try { final GetEntityResponse<CaldavURI> ger = findURI(uri, existence, nodeType, nu...
@Override public WebdavNsNode getNode(final String uri, final int existence, final int nodeType, final boolean addMember) throws WebdavException { <DeepExtract> if (debug()) { debug("About to get node for " + uri); } if (uri == null) { return null; } try { final GetEntityResponse<CaldavURI> ger = findURI(uri, existence...
bw-caldav
positive
437,873
public void validate() { if (StringUtils.isBlank(keyspaceName)) { throw new RuntimeException("'keyspace_name' must not be empty"); } if (StringUtils.isBlank(tableName)) { throw new RuntimeException("'table_name' must not be empty"); } if (null == columns || columns.isEmpty()) { throw new RuntimeException("'columns' mus...
public void validate() { if (StringUtils.isBlank(keyspaceName)) { throw new RuntimeException("'keyspace_name' must not be empty"); } if (StringUtils.isBlank(tableName)) { throw new RuntimeException("'table_name' must not be empty"); } if (null == columns || columns.isEmpty()) { throw new RuntimeException("'columns' mus...
management-api-for-apache-cassandra
positive
437,874
private static boolean nodeType_13_0_0(PsiBuilder b, int l) { if (!recursion_guard_(b, l, "nodeType_13_0_0")) return false; Marker m = enter_section_(b); if (!recursion_guard_(b, l + 1, "nodeType_13_0_0_0")) r = false; boolean r; Marker m = enter_section_(b); r = consumeToken(b, CRLF); while (r) { int c = current_posit...
private static boolean nodeType_13_0_0(PsiBuilder b, int l) { if (!recursion_guard_(b, l, "nodeType_13_0_0")) return false; Marker m = enter_section_(b); <DeepExtract> if (!recursion_guard_(b, l + 1, "nodeType_13_0_0_0")) r = false; boolean r; Marker m = enter_section_(b); r = consumeToken(b, CRLF); while (r) { int c =...
IntelliJ_Jahia_plugin
positive
437,878
public List<Member> getGroupMemberList(long groupId) { List<Member> list = new ArrayList<Member>(); if (getGroupMemberList(authCode, groupId) == null || getGroupMemberList(authCode, groupId).length < 4) return list; Pack pack = new Pack(getGroupMemberList(authCode, groupId)); int count = pack.getInt(); for (int i = 0; ...
public List<Member> getGroupMemberList(long groupId) { <DeepExtract> List<Member> list = new ArrayList<Member>(); if (getGroupMemberList(authCode, groupId) == null || getGroupMemberList(authCode, groupId).length < 4) return list; Pack pack = new Pack(getGroupMemberList(authCode, groupId)); int count = pack.getInt(); fo...
jcq-coolq
positive
437,879
public static boolean isLogUnsafeMalloc() { return Boolean.valueOf(AccessController.doPrivileged((PrivilegedAction<String>) () -> { String value = System.getProperty("prism.marlin.logUnsafeMalloc"); return (value == null) ? "false" : value; })); }
public static boolean isLogUnsafeMalloc() { <DeepExtract> return Boolean.valueOf(AccessController.doPrivileged((PrivilegedAction<String>) () -> { String value = System.getProperty("prism.marlin.logUnsafeMalloc"); return (value == null) ? "false" : value; })); </DeepExtract> }
marlin-fx
positive
437,883
@Override public void onClick(View view) { finish(); Intent intent = getIntent(); intent.putExtra(Constants.INTENT_EXTRA_NAME_REFRESH, true); Util.startActivityWithoutTransition(this, intent); }
@Override public void onClick(View view) { <DeepExtract> finish(); Intent intent = getIntent(); intent.putExtra(Constants.INTENT_EXTRA_NAME_REFRESH, true); Util.startActivityWithoutTransition(this, intent); </DeepExtract> }
Subsonic-Android
positive
437,884
public void actionPerformed(java.awt.event.ActionEvent evt) { String strMedida = campo.getText(); double medida = Double.valueOf(strMedida); double conversao; String strConversao; conversao = ConversorDistancia.converteParaMilha(medida); strConversao = String.valueOf(conversao); resposta.setText(strConversao); }
public void actionPerformed(java.awt.event.ActionEvent evt) { <DeepExtract> String strMedida = campo.getText(); double medida = Double.valueOf(strMedida); double conversao; String strConversao; conversao = ConversorDistancia.converteParaMilha(medida); strConversao = String.valueOf(conversao); resposta.setText(strConver...
Estudos-Java
positive
437,885
@OnBeforeReveal public void getLayout() { StoreRegistry.INSTANCE.<IsLayout>consumeData(IsLayout.Store.LAYOUT, isLayout -> this.layout = isLayout); view.registerTheme("red"); view.registerTheme("pink"); view.registerTheme("purple"); view.registerTheme("deep_purple"); view.registerTheme("indigo"); view.registerTheme("blu...
@OnBeforeReveal public void getLayout() { StoreRegistry.INSTANCE.<IsLayout>consumeData(IsLayout.Store.LAYOUT, isLayout -> this.layout = isLayout); view.registerTheme("red"); view.registerTheme("pink"); view.registerTheme("purple"); view.registerTheme("deep_purple"); view.registerTheme("indigo"); view.registerTheme("blu...
domino-ui-demo
positive
437,886
@Override public boolean isInGroup(@NonNull Calendar left, @NonNull Calendar right) { return left.get(Calendar.YEAR) == right.get(Calendar.YEAR); }
@Override public boolean isInGroup(@NonNull Calendar left, @NonNull Calendar right) { <DeepExtract> return left.get(Calendar.YEAR) == right.get(Calendar.YEAR); </DeepExtract> }
leafpicrevived
positive
437,887
@Test public void shouldEvaluateInputsInParallelForChainedTask() throws Exception { Task<String> task = Task.named("WithInputs").ofType(String.class).input(() -> leaf("A")).input(() -> leaf("B")).input(() -> leaf("C")).process((a, b, c) -> { processed.set(true); return "done: " + a + b + c; }); ControlledBlockingContex...
@Test public void shouldEvaluateInputsInParallelForChainedTask() throws Exception { Task<String> task = Task.named("WithInputs").ofType(String.class).input(() -> leaf("A")).input(() -> leaf("B")).input(() -> leaf("C")).process((a, b, c) -> { processed.set(true); return "done: " + a + b + c; }); <DeepExtract> Controlled...
flo
positive
437,888
public List<Quiz> getAllQuizzesOrderedByXP() { Collections.sort(getAllQuizzes(null), new QuizComparator()); return getAllQuizzes(null); }
public List<Quiz> getAllQuizzesOrderedByXP() { <DeepExtract> Collections.sort(getAllQuizzes(null), new QuizComparator()); return getAllQuizzes(null); </DeepExtract> }
QuizApp_Android
positive
437,889
@Benchmark public void defaultRTreeSearchOf1000PointsMaxChildren128() { smallDefaultTreeM128.search(Geometries.box(500, 500, 0, 630, 630, 1)).subscribe(); }
@Benchmark public void defaultRTreeSearchOf1000PointsMaxChildren128() { <DeepExtract> smallDefaultTreeM128.search(Geometries.box(500, 500, 0, 630, 630, 1)).subscribe(); </DeepExtract> }
rtree-3d
positive
437,890
public int getKeySortType() { Object value = get("sortType"); if (valueIsNull(value)) { return 0; } return Integer.valueOf(String.valueOf(value)); }
public int getKeySortType() { <DeepExtract> Object value = get("sortType"); if (valueIsNull(value)) { return 0; } return Integer.valueOf(String.valueOf(value)); </DeepExtract> }
sa-plus
positive
437,891
public void digest(byte[] out, int off) { int idx = currentPos >> 2; w[idx] = ((w[idx] << 8) | (0x80)) << ((3 - (currentPos & 3)) << 3); currentPos = (currentPos & ~3) + 4; if (currentPos == 64) { currentPos = 0; perform(); } else if (currentPos == 60) { currentPos = 0; w[15] = 0; perform(); } for (int i = currentPos >...
public void digest(byte[] out, int off) { int idx = currentPos >> 2; w[idx] = ((w[idx] << 8) | (0x80)) << ((3 - (currentPos & 3)) << 3); currentPos = (currentPos & ~3) + 4; if (currentPos == 64) { currentPos = 0; perform(); } else if (currentPos == 60) { currentPos = 0; w[15] = 0; perform(); } for (int i = currentPos >...
Testingbot-Tunnel
positive
437,892
public CSVWriter write(final long value) { if (firstEntry == true) firstEntry = false; else out.print(csvSeparatorChar); out.print(value); return this; }
public CSVWriter write(final long value) { <DeepExtract> if (firstEntry == true) firstEntry = false; else out.print(csvSeparatorChar); </DeepExtract> out.print(value); return this; }
Merlin
positive
437,893
public void close() { if (bendingPlayers == null || bendingPlayersFile == null) { return; } try { bendingPlayers.save(bendingPlayersFile); } catch (IOException ex) { Logger.getLogger(JavaPlugin.class.getName()).log(Level.SEVERE, "Could not save config to " + bendingPlayersFile, ex); } bendingPlayers = null; bendingPlay...
public void close() { <DeepExtract> if (bendingPlayers == null || bendingPlayersFile == null) { return; } try { bendingPlayers.save(bendingPlayersFile); } catch (IOException ex) { Logger.getLogger(JavaPlugin.class.getName()).log(Level.SEVERE, "Could not save config to " + bendingPlayersFile, ex); } </DeepExtract> bendi...
MinecraftTLA
positive
437,894
public Map<String, Object> executeToMap(String sql, Object[] values) { PreparedStatement ps = null; ResultSet rs = null; try { Transaction transaction = ThreadLocalTransaction.get(); Connection connection = transaction.getConnection(); log.log(null, sql, values); ps = connection.prepareStatement(sql); if (values != nul...
public Map<String, Object> executeToMap(String sql, Object[] values) { <DeepExtract> PreparedStatement ps = null; ResultSet rs = null; try { Transaction transaction = ThreadLocalTransaction.get(); Connection connection = transaction.getConnection(); log.log(null, sql, values); ps = connection.prepareStatement(sql); if ...
muppet
positive
437,895
public void start() throws Exception { for (int i = 0; i < numSessions; i++) { Session session = connection.createSession(); session.setMessageListener(code); ServerSessionImpl serverSession = new ServerSessionImpl(session, code); sessions.add(serverSession); allSessions.add(serverSession); } this.connectionConsumer = ...
public void start() throws Exception { for (int i = 0; i < numSessions; i++) { Session session = connection.createSession(); session.setMessageListener(code); ServerSessionImpl serverSession = new ServerSessionImpl(session, code); sessions.add(serverSession); allSessions.add(serverSession); } <DeepExtract> this.connect...
pulsar-jms
positive
437,901
public static byte[] coupleMultipleTopLevelTlvValues(TlvBuilder tbTLV) { boolean localDebug = Boolean.FALSE; HexString hsTLV = new HexString(); for (byte[] bTLV : tbTLV.sortByTopLevelTlv()) { try { hsTLV.add(getTlvValue(bTLV)); } catch (TlvException e) { e.printStackTrace(); } } if (debug | localDebug) logger.debug("Tl...
public static byte[] coupleMultipleTopLevelTlvValues(TlvBuilder tbTLV) { boolean localDebug = Boolean.FALSE; HexString hsTLV = new HexString(); for (byte[] bTLV : tbTLV.sortByTopLevelTlv()) { try { hsTLV.add(getTlvValue(bTLV)); } catch (TlvException e) { e.printStackTrace(); } } if (debug | localDebug) logger.debug("Tl...
Oscar
positive
437,903
@Override public void setText(String text) { if (text == null) { text = ""; } if (isTextValid(text)) { validText = text; } else if (isTextValid(lastValidText)) { validText = lastValidText; } else { validText = getDefaultValidText(); } super.setText(validText); isValueForDisplayShown = false; if (isValueForDisplayShown)...
@Override public void setText(String text) { if (text == null) { text = ""; } if (isTextValid(text)) { validText = text; } else if (isTextValid(lastValidText)) { validText = lastValidText; } else { validText = getDefaultValidText(); } super.setText(validText); isValueForDisplayShown = false; if (isValueForDisplayShown)...
DJ-Swing-Suite
positive
437,906
public static void send(Context context, BolusProgrammed bolusProgrammed, boolean resync, List<String> packages) { Intent intent = new Intent(); intent.setAction(HistoryBroadcast.ACTION_BOLUS_PROGRAMMED); intent.putExtra(HistoryBroadcast.EXTRA_BOLUS_ID, bolusProgrammed.getBolusId()); intent.putExtra(HistoryBroadcast.EX...
public static void send(Context context, BolusProgrammed bolusProgrammed, boolean resync, List<String> packages) { Intent intent = new Intent(); intent.setAction(HistoryBroadcast.ACTION_BOLUS_PROGRAMMED); intent.putExtra(HistoryBroadcast.EXTRA_BOLUS_ID, bolusProgrammed.getBolusId()); intent.putExtra(HistoryBroadcast.EX...
SightRemote
positive
437,907
private void use(Attributes attributes) throws SAXException { debug("<use>"); if (currentElement == null) throw new SAXException("Invalid document. Root element must be <svg>"); SVG.Use obj = new SVG.Use(); obj.document = svgDocument; obj.parent = currentElement; for (int i = 0; i < attributes.getLength(); i++) { Strin...
private void use(Attributes attributes) throws SAXException { debug("<use>"); if (currentElement == null) throw new SAXException("Invalid document. Root element must be <svg>"); SVG.Use obj = new SVG.Use(); obj.document = svgDocument; obj.parent = currentElement; for (int i = 0; i < attributes.getLength(); i++) { Strin...
XDroidAnimation
positive
437,908
void copyArrayToGraphics(int bufferNumber, int x, int y, int w, int h, String action, int[] src, int srcx, int srcy, int scanWidth) { var image; if (bufferNumber == BUFFER_NUM_FRONT) { image = getFront(); } else if (bufferNumber == BUFFER_NUM_BACK1) { image = getBack1(); } else { throw new PuffinBasicInternalError("Bad...
void copyArrayToGraphics(int bufferNumber, int x, int y, int w, int h, String action, int[] src, int srcx, int srcy, int scanWidth) { <DeepExtract> var image; if (bufferNumber == BUFFER_NUM_FRONT) { image = getFront(); } else if (bufferNumber == BUFFER_NUM_BACK1) { image = getBack1(); } else { throw new PuffinBasicInte...
PuffinBASIC
positive
437,909
@Override public void consume(Inventory inventory2) { BetterEnderInventoryHolder holder1 = BetterEnderInventoryHolder.of(inventory1); BetterEnderInventoryHolder holder2 = BetterEnderInventoryHolder.of(inventory2); BetterEnderUtils.closeInventory(inventory1, ChatColor.YELLOW + "An admin just swapped this inventory with ...
@Override public void consume(Inventory inventory2) { <DeepExtract> BetterEnderInventoryHolder holder1 = BetterEnderInventoryHolder.of(inventory1); BetterEnderInventoryHolder holder2 = BetterEnderInventoryHolder.of(inventory2); BetterEnderUtils.closeInventory(inventory1, ChatColor.YELLOW + "An admin just swapped this i...
BetterEnderChest
positive
437,911
@Override public void close() throws IOException { final int bytesWeCanSafelyWrite = count - bytesToTruncate; if (count > bytesToTruncate) { os.write(buf, 0, bytesWeCanSafelyWrite); System.arraycopy(buf, bytesWeCanSafelyWrite, buf, 0, bytesToTruncate); count = bytesToTruncate; } os.close(); }
@Override public void close() throws IOException { <DeepExtract> final int bytesWeCanSafelyWrite = count - bytesToTruncate; if (count > bytesToTruncate) { os.write(buf, 0, bytesWeCanSafelyWrite); System.arraycopy(buf, bytesWeCanSafelyWrite, buf, 0, bytesToTruncate); count = bytesToTruncate; } </DeepExtract> os.close();...
dataflow-java
positive
437,912
public static void atomicMvFile(File srcFile, File destFile) throws IOException { Path srcPath = srcFile.toPath(); Path destPath = destFile.toPath(); try { Files.move(srcPath, destPath, StandardCopyOption.ATOMIC_MOVE); } catch (IOException mvFailed) { if (mvFailed instanceof AtomicMoveNotSupportedException) { LOGGER.wa...
public static void atomicMvFile(File srcFile, File destFile) throws IOException { Path srcPath = srcFile.toPath(); Path destPath = destFile.toPath(); try { Files.move(srcPath, destPath, StandardCopyOption.ATOMIC_MOVE); } catch (IOException mvFailed) { if (mvFailed instanceof AtomicMoveNotSupportedException) { LOGGER.wa...
dledger
positive
437,913
public void setScroll(int x, int y) { scroll = new Point(x, y); Rectangle r = PCARD.pc.stack.pcard.getBounds(); PCARD.pc.stack.pcard.setBounds(r.x, r.y, width + PCARD.pc.toolbar.getTWidth(), height + PCARD.pc.toolbar.getTHeight() + pcard.getInsets().top); }
public void setScroll(int x, int y) { scroll = new Point(x, y); <DeepExtract> Rectangle r = PCARD.pc.stack.pcard.getBounds(); PCARD.pc.stack.pcard.setBounds(r.x, r.y, width + PCARD.pc.toolbar.getTWidth(), height + PCARD.pc.toolbar.getTHeight() + pcard.getInsets().top); </DeepExtract> }
HyperZebra
positive
437,914
public static <S> ListConfigType<char[], S> makeCharArray(ConfigType<Character, S, ?> elementType) { @SuppressWarnings("unchecked") Class<E> componentType = (Class<E>) char[].class.getComponentType(); Class<E> boxedComponentType = TypeMagic.wrapPrimitive(componentType); assert boxedComponentType == TypeMagic.wrapPrimit...
public static <S> ListConfigType<char[], S> makeCharArray(ConfigType<Character, S, ?> elementType) { <DeepExtract> @SuppressWarnings("unchecked") Class<E> componentType = (Class<E>) char[].class.getComponentType(); Class<E> boxedComponentType = TypeMagic.wrapPrimitive(componentType); assert boxedComponentType == TypeMa...
fiber
positive
437,915
private void processAnchor(String indicator) throws IOException { NodeEvent ev = (NodeEvent) event; if (ev.getAnchor() == null) { preparedAnchor = null; return; } if (preparedAnchor == null) { preparedAnchor = prepareAnchor(ev.getAnchor()); } if (!this.whitespace && true) { this.column++; stream.write(SPACE); } this.wh...
private void processAnchor(String indicator) throws IOException { NodeEvent ev = (NodeEvent) event; if (ev.getAnchor() == null) { preparedAnchor = null; return; } if (preparedAnchor == null) { preparedAnchor = prepareAnchor(ev.getAnchor()); } <DeepExtract> if (!this.whitespace && true) { this.column++; stream.write(SPA...
antigen
positive
437,916
public void SetRestSsl(Boolean ssl) { editor.putBoolean("ssl_activate", ssl); editor.commit(); }
public void SetRestSsl(Boolean ssl) { editor.putBoolean("ssl_activate", ssl); <DeepExtract> editor.commit(); </DeepExtract> }
domodroid
positive
437,918
private T _runCreateCallbacks(T entity, Supplier<T> yield) { var result = yield.get(); return result; }
private T _runCreateCallbacks(T entity, Supplier<T> yield) { <DeepExtract> </DeepExtract> var result = yield.get(); <DeepExtract> </DeepExtract> return result; <DeepExtract> </DeepExtract> }
active-persistence
positive
437,919
@Override public void onClick(View v) { if (MAINLAYOUTVIEW != visibleView) { if (_activeLayout != null) _activeLayout.layoutDeactived(); toggleLayoutButtonChecked(visibleView, false); _parentLayout.removeAllViews(); showNewLayout(MAINLAYOUTVIEW); toggleLayoutButtonChecked(MAINLAYOUTVIEW, true); if (_activeLayout != nul...
@Override public void onClick(View v) { if (MAINLAYOUTVIEW != visibleView) { if (_activeLayout != null) _activeLayout.layoutDeactived(); toggleLayoutButtonChecked(visibleView, false); _parentLayout.removeAllViews(); showNewLayout(MAINLAYOUTVIEW); toggleLayoutButtonChecked(MAINLAYOUTVIEW, true); if (_activeLayout != nul...
DslrDashboard
positive
437,920
public void visit(ExplicitConstructorInvocationStmt n, LocalSymbolTable arg) { if (n.isThis()) { printTypeArgs(n.getTypeArgs(), arg); printer.print("this"); } else { if (n.getExpr() != null) { n.getExpr().accept(this, arg); printer.print("."); } printTypeArgs(n.getTypeArgs(), arg); printer.print("super"); } if (!indent...
public void visit(ExplicitConstructorInvocationStmt n, LocalSymbolTable arg) { if (n.isThis()) { printTypeArgs(n.getTypeArgs(), arg); printer.print("this"); } else { if (n.getExpr() != null) { n.getExpr().accept(this, arg); printer.print("."); } printTypeArgs(n.getTypeArgs(), arg); printer.print("super"); } if (!indent...
firefox
positive
437,921
public static ArrayList<ArrayList<String>> initAndGetCombinations(ArrayList<String> array, int num) { ArrayList<String> res = new ArrayList<String>(); for (int i = 0; i < num; i++) { res.add("Value" + String.valueOf(i)); } if (num == 0) { new ArrayList<ArrayList<String>>().add((ArrayList<String>) res.clone()); return n...
public static ArrayList<ArrayList<String>> initAndGetCombinations(ArrayList<String> array, int num) { ArrayList<String> res = new ArrayList<String>(); for (int i = 0; i < num; i++) { res.add("Value" + String.valueOf(i)); } <DeepExtract> if (num == 0) { new ArrayList<ArrayList<String>>().add((ArrayList<String>) res.clon...
QuizApp_Android
positive
437,923
public void onClick(View view) { searchflag = false; if (currentdir.equals(root)) { Toast.makeText(FilebrowserULTRAActivity.this, "press back to exit", Toast.LENGTH_SHORT).show(); } else { getFileList(parentfile); getListView().setSelectionFromTop(index_back, 0); myGrid = (GridView) findViewById(R.id.grid); myGrid.setS...
public void onClick(View view) { <DeepExtract> searchflag = false; if (currentdir.equals(root)) { Toast.makeText(FilebrowserULTRAActivity.this, "press back to exit", Toast.LENGTH_SHORT).show(); } else { getFileList(parentfile); getListView().setSelectionFromTop(index_back, 0); myGrid = (GridView) findViewById(R.id.grid...
UltraExplorer
positive
437,924
private boolean isClientContactEvent() { String entityType = event.getEntityName(); if (ClientContact.class.getSimpleName().equalsIgnoreCase(entityType)) { return true; } return false; }
private boolean isClientContactEvent() { <DeepExtract> String entityType = event.getEntityName(); if (ClientContact.class.getSimpleName().equalsIgnoreCase(entityType)) { return true; } return false; </DeepExtract> }
starter-kit-spring-maven
positive
437,925
final public void argument() throws ParseException { Token oldToken; if ((oldToken = token).next != null) token = token.next; else token = token.next = token_source.getNextToken(); jj_ntk = -1; if (token.kind == ARGUMENT) { jj_gen++; if (++jj_gc > 100) { jj_gc = 0; for (int i = 0; i < jj_2_rtns.length; i++) { JJCalls c...
final public void argument() throws ParseException { Token oldToken; if ((oldToken = token).next != null) token = token.next; else token = token.next = token_source.getNextToken(); jj_ntk = -1; if (token.kind == ARGUMENT) { jj_gen++; if (++jj_gc > 100) { jj_gc = 0; for (int i = 0; i < jj_2_rtns.length; i++) { JJCalls c...
DroidRA
positive
437,927
public final void setSelectLevel(Presenter.ViewHolder vh, float level) { ViewHolder rowViewHolder; if (vh instanceof ContainerViewHolder) { rowViewHolder = ((ContainerViewHolder) vh).mRowViewHolder; } else { rowViewHolder = (ViewHolder) vh; } rowViewHolder.mSelectLevel = level; if (getSelectEffectEnabled()) { rowViewHo...
public final void setSelectLevel(Presenter.ViewHolder vh, float level) { ViewHolder rowViewHolder; if (vh instanceof ContainerViewHolder) { rowViewHolder = ((ContainerViewHolder) vh).mRowViewHolder; } else { rowViewHolder = (ViewHolder) vh; } rowViewHolder.mSelectLevel = level; <DeepExtract> if (getSelectEffectEnabled(...
LeanbackSimpleDemo
positive
437,928
public MessageHandlerDecoratorChainBuilder andThen(MessageHandlerDecorator smh) { this.handlers.add(smh); return this; }
public MessageHandlerDecoratorChainBuilder andThen(MessageHandlerDecorator smh) { <DeepExtract> this.handlers.add(smh); </DeepExtract> return this; }
eventuate-tram-core
positive
437,929
private void createModulePoms(Properties pomReversedProperties, String rootArtifactId, String packageName, File basedir, File archetypeFilesDirectory, boolean preserveCData, boolean keepParent) throws FileNotFoundException, IOException, XmlPullParserException { Model pom = pomManager.readPom(FileUtils.resolveFile(based...
private void createModulePoms(Properties pomReversedProperties, String rootArtifactId, String packageName, File basedir, File archetypeFilesDirectory, boolean preserveCData, boolean keepParent) throws FileNotFoundException, IOException, XmlPullParserException { Model pom = pomManager.readPom(FileUtils.resolveFile(based...
maven-archetype
positive
437,930
protected int createHeaderAndTitle(ExportParams entity, Sheet sheet, Workbook workbook, List<ExcelExportEntity> excelParams) { int rows = 0, fieldLength = getFieldLength(excelParams); int rows = 0, fieldLength = getFieldLength(excelParams); if (entity.getTitle() != null) { rows += createTitle2Row(entity, sheet, workboo...
protected int createHeaderAndTitle(ExportParams entity, Sheet sheet, Workbook workbook, List<ExcelExportEntity> excelParams) { int rows = 0, fieldLength = getFieldLength(excelParams); int rows = 0, fieldLength = getFieldLength(excelParams); if (entity.getTitle() != null) { rows += createTitle2Row(entity, sheet, workboo...
easypoi
positive
437,931
public MediaRenderer acquireRenderer(int width, int height) { if (activeRenderer != null) { release(activeRenderer); } if (!isSupported()) { activeRenderer = null; } int textureIndex = textureCache.createTexture(width, height); MediaRenderer instance = new MediaRenderer(this, width, height, textureIndex); instance.init...
public MediaRenderer acquireRenderer(int width, int height) { if (activeRenderer != null) { release(activeRenderer); } <DeepExtract> if (!isSupported()) { activeRenderer = null; } int textureIndex = textureCache.createTexture(width, height); MediaRenderer instance = new MediaRenderer(this, width, height, textureIndex);...
playblock
positive
437,932
public <K> T sync(AjaxCallback<K> callback) { return invoke(callback); callback.block(); return (T) this; }
public <K> T sync(AjaxCallback<K> callback) { return invoke(callback); callback.block(); <DeepExtract> return (T) this; </DeepExtract> }
androidquery
positive
437,933
@Override public int popSingleWidth(SimpleType type) { if (head == 0) { throw new NoSuchElementException(); } int pos = --head; int ret = true ? stack.getCheckedValue(pos, type) : stack.getRawValue(pos); stack.clear(pos); return ret; }
@Override public int popSingleWidth(SimpleType type) { <DeepExtract> if (head == 0) { throw new NoSuchElementException(); } int pos = --head; int ret = true ? stack.getCheckedValue(pos, type) : stack.getRawValue(pos); stack.clear(pos); return ret; </DeepExtract> }
jvm
positive
437,937
public void dispose() { pan.saveProps(pm); pm.save("Browser properties"); super.dispose(); if (exit) System.exit(0); }
public void dispose() { <DeepExtract> pan.saveProps(pm); pm.save("Browser properties"); </DeepExtract> super.dispose(); if (exit) System.exit(0); }
SmallSimpleSafe
positive
437,938
public Builder addFloatData(float value) { if (!((bitField0_ & 0x00000020) == 0x00000020)) { floatData_ = new java.util.ArrayList<Float>(floatData_); bitField0_ |= 0x00000020; } floatData_.add(value); onChanged(); return this; }
public Builder addFloatData(float value) { <DeepExtract> if (!((bitField0_ & 0x00000020) == 0x00000020)) { floatData_ = new java.util.ArrayList<Float>(floatData_); bitField0_ |= 0x00000020; } </DeepExtract> floatData_.add(value); onChanged(); return this; }
deepdsl
positive
437,941
public Criteria andScopeOfApplicationNotLike(String value) { if (value == null) { throw new RuntimeException("Value for " + "scopeOfApplication" + " cannot be null"); } criteria.add(new Criterion("scope_of_application not like", value)); return (Criteria) this; }
public Criteria andScopeOfApplicationNotLike(String value) { <DeepExtract> if (value == null) { throw new RuntimeException("Value for " + "scopeOfApplication" + " cannot be null"); } criteria.add(new Criterion("scope_of_application not like", value)); </DeepExtract> return (Criteria) this; }
oauth2-resource
positive
437,942
public void onFilterTextSubmit(String query) { Log.d(TAG, "onFilterTextSubmit : '" + query + "'"); View searchView = searchMenuItem.getActionView(); InputMethodManager imm = (InputMethodManager) searchView.getContext().getSystemService(INPUT_METHOD_SERVICE); Log.d(TAG, "clearSearchViewOnSubmit : " + searchView + " " + ...
public void onFilterTextSubmit(String query) { Log.d(TAG, "onFilterTextSubmit : '" + query + "'"); <DeepExtract> View searchView = searchMenuItem.getActionView(); InputMethodManager imm = (InputMethodManager) searchView.getContext().getSystemService(INPUT_METHOD_SERVICE); Log.d(TAG, "clearSearchViewOnSubmit : " + searc...
agit
positive
437,943
@Override protected Boolean doInBackground(Void... params) { if (mBitmap == null) { return PostApi.newPost(mText.getText().toString()); } else { return PostApi.newPostWithPic(mText.getText().toString(), mBitmap); } }
@Override protected Boolean doInBackground(Void... params) { <DeepExtract> if (mBitmap == null) { return PostApi.newPost(mText.getText().toString()); } else { return PostApi.newPostWithPic(mText.getText().toString(), mBitmap); } </DeepExtract> }
BlackLight
positive
437,946
public void reset() { logger.info("loc.browser.javascript.reset"); engine.disable(); logger.info("loc.browser.javascript.initializationscripts.clear"); initializationScripts.forEach(this::removeInitializationScriptCore); logger.info("loc.browser.javascript.scriptcallbackbindings.clear"); bindings.forEach(scriptName -> ...
public void reset() { logger.info("loc.browser.javascript.reset"); engine.disable(); logger.info("loc.browser.javascript.initializationscripts.clear"); initializationScripts.forEach(this::removeInitializationScriptCore); <DeepExtract> logger.info("loc.browser.javascript.scriptcallbackbindings.clear"); bindings.forEach(...
aquality-selenium-java
positive
437,947
@Override public ApiResponse<ChannelList> searchChannels(String teamId, ChannelSearch search) { return doApiRequest(HttpMethod.POST, apiUrl + getChannelsForTeamRoute(teamId) + "/search", search, null, ChannelList.class); }
@Override public ApiResponse<ChannelList> searchChannels(String teamId, ChannelSearch search) { <DeepExtract> return doApiRequest(HttpMethod.POST, apiUrl + getChannelsForTeamRoute(teamId) + "/search", search, null, ChannelList.class); </DeepExtract> }
mattermost4j
positive
437,948
public SelectQuery where(String where) { query.append(" "); return this; return this; }
public SelectQuery where(String where) { <DeepExtract> query.append(" "); return this; </DeepExtract> return this; }
polyjdbc
positive
437,951
public void onClick(DialogInterface dialog, int id) { dialog.dismiss(); Intent i = new Intent(this, com.myopicmobile.textwarrior.android.FilePicker.class); i.setAction(TextWarriorIntents.ACTION_PICK_FILE); i.putExtra(TextWarriorIntents.EXTRA_TITLE, getString(R.string.file_picker_title_pick_file)); i.setData(getLastSele...
public void onClick(DialogInterface dialog, int id) { dialog.dismiss(); <DeepExtract> Intent i = new Intent(this, com.myopicmobile.textwarrior.android.FilePicker.class); i.setAction(TextWarriorIntents.ACTION_PICK_FILE); i.putExtra(TextWarriorIntents.EXTRA_TITLE, getString(R.string.file_picker_title_pick_file)); i.setDa...
TextWarriorLibrary
positive
437,953
@Override public Set<GraphQLDirective> getDirectiveSet() { if (graphqlDirectiveMap != null) { return; } graphqlDirectiveMap = Maps.newHashMap(); directiveSet = Sets.newHashSet(); if (CollectionUtils.isEmpty(graphqlDirectiveList)) { return; } graphqlDirectiveList.forEach(directiveFactory -> { GraphQLDirective directive ...
@Override public Set<GraphQLDirective> getDirectiveSet() { <DeepExtract> if (graphqlDirectiveMap != null) { return; } graphqlDirectiveMap = Maps.newHashMap(); directiveSet = Sets.newHashSet(); if (CollectionUtils.isEmpty(graphqlDirectiveList)) { return; } graphqlDirectiveList.forEach(directiveFactory -> { GraphQLDirect...
duo-graphql
positive
437,954
@Override public void onAnimationEnd(Animation animation) { Intent intent = new Intent(LoadingActivity.this, MainActivity.class); startActivity(intent); overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out); finish(); }
@Override public void onAnimationEnd(Animation animation) { <DeepExtract> Intent intent = new Intent(LoadingActivity.this, MainActivity.class); startActivity(intent); overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out); finish(); </DeepExtract> }
DoingDaily
positive
437,956
public User findUserInfo(final String screenName) throws TwitterClientException { User user = client.findUserInfo(screenName); if (null == user.getId() || null == user.getScreenName()) { throw new IllegalArgumentException("null id or screen name"); } if (null == usersByScreenName.get(user.getScreenName())) { usersByScr...
public User findUserInfo(final String screenName) throws TwitterClientException { User user = client.findUserInfo(screenName); <DeepExtract> if (null == user.getId() || null == user.getScreenName()) { throw new IllegalArgumentException("null id or screen name"); } if (null == usersByScreenName.get(user.getScreenName())...
twitlogic
positive
437,957
public IconicsDrawable contourWidthRes(int contourWidthRes) { mContourWidth = mContext.getResources().getDimensionPixelSize(contourWidthRes); mContourPaint.setStrokeWidth(mContourWidth); drawContour(true); invalidateSelf(); return this; }
public IconicsDrawable contourWidthRes(int contourWidthRes) { <DeepExtract> mContourWidth = mContext.getResources().getDimensionPixelSize(contourWidthRes); mContourPaint.setStrokeWidth(mContourWidth); drawContour(true); invalidateSelf(); return this; </DeepExtract> }
clear-todolist
positive
437,959
@Test public void testFIX() { org.junit.Assert.assertEquals(" 1 ", compileAndRun("10 PRINT FIX(1.7)")); org.junit.Assert.assertEquals(" 1 ", compileAndRun("10 PRINT FIX(1.5)")); org.junit.Assert.assertEquals(" 1 ", compileAndRun("10 PRINT FIX(1.2)")); org.junit.Assert.assertEquals(" 1 ", compileAndRun("10 PRINT FIX(1.0...
@Test public void testFIX() { org.junit.Assert.assertEquals(" 1 ", compileAndRun("10 PRINT FIX(1.7)")); org.junit.Assert.assertEquals(" 1 ", compileAndRun("10 PRINT FIX(1.5)")); org.junit.Assert.assertEquals(" 1 ", compileAndRun("10 PRINT FIX(1.2)")); org.junit.Assert.assertEquals(" 1 ", compileAndRun("10 PRINT FIX(1.0...
BASICCompiler
positive
437,960
@Override public <E extends Element> void property(PropertyQuery<E> uniQuery) { E element = uniQuery.getElement(); Set<? extends RestSchema<E>> schemas; if (Vertex.class.isAssignableFrom(element.getClass())) schemas = (Set<? extends RestSchema<E>>) vertexSchemas; else schemas = (Set<? extends RestSchema<E>>) edgeSchema...
@Override public <E extends Element> void property(PropertyQuery<E> uniQuery) { E element = uniQuery.getElement(); <DeepExtract> Set<? extends RestSchema<E>> schemas; if (Vertex.class.isAssignableFrom(element.getClass())) schemas = (Set<? extends RestSchema<E>>) vertexSchemas; else schemas = (Set<? extends RestSchema<E...
unipop
positive
437,962
public static void d(String tag, Object msg) { if (logDevice == LOG_NULL) { return; } if (null == msg) { Logger.showLog(DEBUG, tag, "empty msg", logDevice); return; } tag = null == tag ? DEFAULT_TAG : tag; if (TextUtils.ckIsEmpty(msg.toString())) { msg.toString() = "NULL MSG"; } if (tag.length() > 89) { Logger.showInCo...
public static void d(String tag, Object msg) { if (logDevice == LOG_NULL) { return; } if (null == msg) { Logger.showLog(DEBUG, tag, "empty msg", logDevice); return; } tag = null == tag ? DEFAULT_TAG : tag; <DeepExtract> if (TextUtils.ckIsEmpty(msg.toString())) { msg.toString() = "NULL MSG"; } if (tag.length() > 89) { L...
readhub-android
positive
437,963
@Override public OutputStream call() { ByteArrayOutputStream baos = new ByteArrayOutputStream(); PrintStream out = new PrintStream(baos); VariantPrinter variantPrinter = VariantPrinter.createPrinter(instance().printerTypeOut); variantPrinter.setOut(out); Scope<InitialData> initialScope1 = new Scope<>(instance().conf.ba...
@Override public OutputStream call() { ByteArrayOutputStream baos = new ByteArrayOutputStream(); PrintStream out = new PrintStream(baos); VariantPrinter variantPrinter = VariantPrinter.createPrinter(instance().printerTypeOut); variantPrinter.setOut(out); <DeepExtract> Scope<InitialData> initialScope1 = new Scope<>(inst...
VarDictJava
positive
437,965
@Override public String getParameterTypeName(int param) throws SQLException { if (param < 0 || param >= definitions.size()) { throw new SQLException("Parameter number " + param + " does not exist."); } return definitions.get(param).typeName; }
@Override public String getParameterTypeName(int param) throws SQLException { <DeepExtract> if (param < 0 || param >= definitions.size()) { throw new SQLException("Parameter number " + param + " does not exist."); } </DeepExtract> return definitions.get(param).typeName; }
orientdb-jdbc
positive
437,966
public Map<String, List<Axis>> getItemAxisMap(final JsonNode defs) { Map<String, List<Axis>> map = new HashMap<>(); Iterator<String> dataDefNames = defs.fieldNames(); while (dataDefNames.hasNext()) { String dataDefName = dataDefNames.next(); String path = jacksons.path(dataDefName, "items"); List<JsonNode> jItems = def...
public Map<String, List<Axis>> getItemAxisMap(final JsonNode defs) { <DeepExtract> Map<String, List<Axis>> map = new HashMap<>(); Iterator<String> dataDefNames = defs.fieldNames(); while (dataDefNames.hasNext()) { String dataDefName = dataDefNames.next(); String path = jacksons.path(dataDefName, "items"); List<JsonNode...
scoopi-scraper
positive
437,969
public List<Integer> inorderTraversal(TreeNode root) { List<Integer> result = new ArrayList<>(); if (root == null) return result; if (root == null) return; recursion(root.left, result); result.add(root.val); recursion(root.right, result); return result; }
public List<Integer> inorderTraversal(TreeNode root) { List<Integer> result = new ArrayList<>(); if (root == null) return result; <DeepExtract> if (root == null) return; recursion(root.left, result); result.add(root.val); recursion(root.right, result); </DeepExtract> return result; }
algorithm-playground
positive
437,970
public static BCCouponTemplate startQueryCouponTemplateById(String couponTemplateId) throws BCException { ValidationUtil.validateQueryById(couponTemplateId); Map<String, Object> param = new HashMap<String, Object>(); param.put("app_id", BCCache.getAppID()); param.put("timestamp", System.currentTimeMillis()); param.put(...
public static BCCouponTemplate startQueryCouponTemplateById(String couponTemplateId) throws BCException { ValidationUtil.validateQueryById(couponTemplateId); Map<String, Object> param = new HashMap<String, Object>(); param.put("app_id", BCCache.getAppID()); param.put("timestamp", System.currentTimeMillis()); param.put(...
beecloud-java
positive
437,971
private void init(Context context) { LayoutInflater.from(context).inflate(R.layout.widget_video_view, this); mRlMediaEdge = findViewById(R.id.rl_media_edge); mEvvMedia = findViewById(R.id.evv_media); }
private void init(Context context) { <DeepExtract> </DeepExtract> LayoutInflater.from(context).inflate(R.layout.widget_video_view, this); <DeepExtract> </DeepExtract> mRlMediaEdge = findViewById(R.id.rl_media_edge); <DeepExtract> </DeepExtract> mEvvMedia = findViewById(R.id.evv_media); <DeepExtract> </DeepExtract> }
Car-eye-Client-android
positive
437,972
@Override public void onPause() { super.onPause(); if (mMediaRecorder != null && mGravando) { mMediaRecorder.stop(); mMediaRecorder.release(); mMediaRecorder = null; mGravando = false; Util.salvarUltimaMidia(getActivity(), Util.MIDIA_AUDIO, mCaminhoAudio.getAbsolutePath()); } if (mMediaPlayer != null && mTocando) { mMe...
@Override public void onPause() { super.onPause(); if (mMediaRecorder != null && mGravando) { mMediaRecorder.stop(); mMediaRecorder.release(); mMediaRecorder = null; mGravando = false; Util.salvarUltimaMidia(getActivity(), Util.MIDIA_AUDIO, mCaminhoAudio.getAbsolutePath()); } <DeepExtract> if (mMediaPlayer != null && m...
dominando_android
positive
437,974
public static void main(String[] args) throws Exception { int[] decompressed = Lz77.decompressLZ77(ROM, 0); boolean broken = false; for (int i = 0; i < decompressed.length; i++) { if (decompressed[i] != uncompressed[i]) { broken = true; break; } if (broken) { System.out.println("Decompression failed!"); System.exit(0);...
public static void main(String[] args) throws Exception { <DeepExtract> int[] decompressed = Lz77.decompressLZ77(ROM, 0); boolean broken = false; for (int i = 0; i < decompressed.length; i++) { if (decompressed[i] != uncompressed[i]) { broken = true; break; } if (broken) { System.out.println("Decompression failed!"); S...
GBAUtils
positive
437,975
private int[] getReadContinuouslyBinaryData() { if (slaveRegister == null) throw new RuntimeException("slaveRegister is not specified and in required in ReadContinuously mode"); if (bytesToRead == null) throw new RuntimeException("bytesToRead field is not specified and is required"); return new int[] { slaveRegister, b...
private int[] getReadContinuouslyBinaryData() { if (slaveRegister == null) throw new RuntimeException("slaveRegister is not specified and in required in ReadContinuously mode"); <DeepExtract> if (bytesToRead == null) throw new RuntimeException("bytesToRead field is not specified and is required"); </DeepExtract> return...
Firmata
positive
437,976
private int azalt_cart(double JDNDaysUT, double[] dgeo, double[] datm, StringBuffer ObjectName, int helflag, double[] dret, int dret_offset, StringBuffer serr) { double x[] = new double[6], xin[] = new double[3], xaz[] = new double[3], tjd_tt; double x[] = new double[6], xin[] = new double[3], xaz[] = new double[3], tj...
private int azalt_cart(double JDNDaysUT, double[] dgeo, double[] datm, StringBuffer ObjectName, int helflag, double[] dret, int dret_offset, StringBuffer serr) { double x[] = new double[6], xin[] = new double[3], xaz[] = new double[3], tjd_tt; double x[] = new double[6], xin[] = new double[3], xaz[] = new double[3], tj...
AstroAPI
positive
437,977
public Interval estimatePixelInterval(RealTransform xfm, Interval interval) { final int nd = interval.numDimensions(); double step = Double.MIN_VALUE; for (int i = 0; i < nd; i++) { double ns = (interval.realMax(i) - interval.realMin(i)) / samplesPerDim; if (ns > step) step = ns; } double[] steps = new double[nd]; Arra...
public Interval estimatePixelInterval(RealTransform xfm, Interval interval) { <DeepExtract> final int nd = interval.numDimensions(); double step = Double.MIN_VALUE; for (int i = 0; i < nd; i++) { double ns = (interval.realMax(i) - interval.realMin(i)) / samplesPerDim; if (ns > step) step = ns; } double[] steps = new do...
bigwarp
positive
437,979
@Override public Path getDir(Plugin plugin) { return Paths.get(pluginDir.toString(), plugin.getName(), plugin.getVersion().toString()); }
@Override public Path getDir(Plugin plugin) { <DeepExtract> return Paths.get(pluginDir.toString(), plugin.getName(), plugin.getVersion().toString()); </DeepExtract> }
flow-platform-x
positive
437,980
@Override protected void renderMergedOutputModel(Map<String, Object> model, HttpServletRequest request, HttpServletResponse response) throws Exception { Html templateHtml = mixer2Engine.checkAndLoadHtmlTemplate(resourceLoader.getResource(getUrl()).getInputStream()); Html renderedHtml = renderHtml(templateHtml, model, r...
@Override protected void renderMergedOutputModel(Map<String, Object> model, HttpServletRequest request, HttpServletResponse response) throws Exception { Html templateHtml = mixer2Engine.checkAndLoadHtmlTemplate(resourceLoader.getResource(getUrl()).getInputStream()); Html renderedHtml = renderHtml(templateHtml, model, r...
mixer2
positive
437,982
public String readString(String charset) { if (position >= length) { return null; } String s; try { s = new String(b, position, length - position, charset); } catch (UnsupportedEncodingException e) { throw DbException.convert(e); } position = length; return s; }
public String readString(String charset) { if (position >= length) { return null; } <DeepExtract> String s; try { s = new String(b, position, length - position, charset); } catch (UnsupportedEncodingException e) { throw DbException.convert(e); } </DeepExtract> position = length; return s; }
Lealone-Plugins
positive
437,983
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN | WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); setContentView(R.layout.activity_main); fullScreen = true; ...
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN | WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); setContentView(R.layout.activity_main); fullScreen = true; ...
owt-client-android
positive
437,984
public void setSelectedOption(int selectedOptionId) { if (executionState != ExecutionState.WaitingOnOptionSelection) { throw new DialogueException(StringUtils.format("SelectedOption was called, but Dialogue wasn't waiting for a selection. This method should only be called after the Dialogue is waiting for the user to s...
public void setSelectedOption(int selectedOptionId) { if (executionState != ExecutionState.WaitingOnOptionSelection) { throw new DialogueException(StringUtils.format("SelectedOption was called, but Dialogue wasn't waiting for a selection. This method should only be called after the Dialogue is waiting for the user to s...
YarnGdx
positive
437,985
@Override public void disposeRuntimeEngine(RuntimeEngine runtime) { if (isClosed()) { throw new IllegalStateException("Runtime manager " + identifier + " is already closed"); } Map<Object, RuntimeEngine> map = local.get(); Object keyToRemove = ""; if (map != null) { for (Map.Entry<Object, RuntimeEngine> entry : map.ent...
@Override public void disposeRuntimeEngine(RuntimeEngine runtime) { if (isClosed()) { throw new IllegalStateException("Runtime manager " + identifier + " is already closed"); } <DeepExtract> Map<Object, RuntimeEngine> map = local.get(); Object keyToRemove = ""; if (map != null) { for (Map.Entry<Object, RuntimeEngine> e...
jBPM6-Developer-Guide
positive
437,987
@Test public void getSounds_emitsSearchResultsWrappedInDisplayableItems() { List<Sound> sounds = TestData.sounds(10); ofObj(sounds).ifSome(soundList -> mockedSearchResultsStream.onNext(SearchState.success(soundList))).ifNone(() -> mockedSearchResultsStream.onNext(SearchState.cleared())); return this; viewModel.getSound...
@Test public void getSounds_emitsSearchResultsWrappedInDisplayableItems() { List<Sound> sounds = TestData.sounds(10); <DeepExtract> ofObj(sounds).ifSome(soundList -> mockedSearchResultsStream.onNext(SearchState.success(soundList))).ifNone(() -> mockedSearchResultsStream.onNext(SearchState.cleared())); return this; </De...
freesound-android
positive
437,989
@PSTransformation() public PStream project(String... fieldsToInclude) { return this.transform(Mappers.mapEachItem(ItemOperators.includeFields(fieldsToInclude))); }
@PSTransformation() public PStream project(String... fieldsToInclude) { <DeepExtract> return this.transform(Mappers.mapEachItem(ItemOperators.includeFields(fieldsToInclude))); </DeepExtract> }
PrivacyStreams
positive
437,990
public static ServerInfoType getOrBedrock(String string) { if (string == null || string.isEmpty()) { return BEDROCK; } Preconditions.checkNotNull(string, "ServerInfoType name can not be null"); Preconditions.checkArgument(!string.isEmpty(), "ServerInfoType name can not be empty"); ServerInfoType serverInfoType = types....
public static ServerInfoType getOrBedrock(String string) { if (string == null || string.isEmpty()) { return BEDROCK; } <DeepExtract> Preconditions.checkNotNull(string, "ServerInfoType name can not be null"); Preconditions.checkArgument(!string.isEmpty(), "ServerInfoType name can not be empty"); ServerInfoType serverInf...
WaterdogPE
positive
437,992
public void astore_3() { if (this.count >= this.maxLength) { throw new CompileException("Write after end of stream."); } write(Bytecode.ASTORE_3.getBytecode() & 0xff); }
public void astore_3() { <DeepExtract> if (this.count >= this.maxLength) { throw new CompileException("Write after end of stream."); } write(Bytecode.ASTORE_3.getBytecode() & 0xff); </DeepExtract> }
BASICCompiler
positive
437,993
@Test public void updateList_publicListForUserId() { mockServer.expect(requestTo("https://api.twitter.com/1.1/lists/update.json")).andExpect(method(POST)).andExpect(content().string("name=forfun&description=Just+for+Fun&mode=public&list_id=40841803")).andRespond(withSuccess(jsonResource("single-list"), APPLICATION_JSON...
@Test public void updateList_publicListForUserId() { mockServer.expect(requestTo("https://api.twitter.com/1.1/lists/update.json")).andExpect(method(POST)).andExpect(content().string("name=forfun&description=Just+for+Fun&mode=public&list_id=40841803")).andRespond(withSuccess(jsonResource("single-list"), APPLICATION_JSON...
spring-social-twitter
positive
437,994
@Override public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { checkedLegalAge = isChecked; Button continueButton = (Button) findViewById(R.id.policy_agree_continue_button); continueButton.setEnabled(checkedAgree && checkedLegalAge); }
@Override public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { checkedLegalAge = isChecked; <DeepExtract> Button continueButton = (Button) findViewById(R.id.policy_agree_continue_button); continueButton.setEnabled(checkedAgree && checkedLegalAge); </DeepExtract> }
NoiseCapture
positive
437,996
public static String textToRawJSON(String text) { if (!_isPrepared) { Class<?> craftServerClass = Bukkit.getServer().getClass(); _craftBukkitPackage = new CachedPackage(craftServerClass.getPackage().getName()); try { Method getHandle = craftServerClass.getMethod("getHandle"); _minecraftPackage = new CachedPackage(getHa...
public static String textToRawJSON(String text) { <DeepExtract> if (!_isPrepared) { Class<?> craftServerClass = Bukkit.getServer().getClass(); _craftBukkitPackage = new CachedPackage(craftServerClass.getPackage().getName()); try { Method getHandle = craftServerClass.getMethod("getHandle"); _minecraftPackage = new Cache...
NBTEditor
positive
437,997
public void testDeletedFile() throws Exception { expect(fileSystem.exists(f("/codebase/foo"))).andReturn(false); expect(fileSystem.exists(f("/writer/foo"))).andReturn(true); expect(fileSystem.isExecutable(f("/codebase/foo"))).andReturn(false); expect(fileSystem.isExecutable(f("/writer/foo"))).andReturn(false); Immutabl...
public void testDeletedFile() throws Exception { expect(fileSystem.exists(f("/codebase/foo"))).andReturn(false); expect(fileSystem.exists(f("/writer/foo"))).andReturn(true); expect(fileSystem.isExecutable(f("/codebase/foo"))).andReturn(false); expect(fileSystem.isExecutable(f("/writer/foo"))).andReturn(false); <DeepExt...
MOE
positive
437,998
@Override public void onItemSelected(AdapterView<?> parent, View view, int position, long id) { if (!checkReady()) { return; } if ((String) parent.getItemAtPosition(position).equals(getString(R.string.normal))) { mMap.setMapType(MAP_TYPE_NORMAL); } else if ((String) parent.getItemAtPosition(position).equals(getString(R...
@Override public void onItemSelected(AdapterView<?> parent, View view, int position, long id) { <DeepExtract> if (!checkReady()) { return; } if ((String) parent.getItemAtPosition(position).equals(getString(R.string.normal))) { mMap.setMapType(MAP_TYPE_NORMAL); } else if ((String) parent.getItemAtPosition(position).equa...
Polaris2
positive
437,999
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_news, container, false); mTabLayout = (TabLayout) view.findViewById(R.id.tab_layout); mViewPager = (ViewPager) view.findViewById(R.id.viewpager); mViewPager.setOff...
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_news, container, false); mTabLayout = (TabLayout) view.findViewById(R.id.tab_layout); mViewPager = (ViewPager) view.findViewById(R.id.viewpager); mViewPager.setOff...
TasteNews
positive
438,002
@Override protected ServiceLocales createService(Retrofit retrofit) { return create(spaceId, environmentId, ServiceLocales.class); }
@Override protected ServiceLocales createService(Retrofit retrofit) { <DeepExtract> return create(spaceId, environmentId, ServiceLocales.class); </DeepExtract> }
contentful-management.java
positive
438,003
public void logMessage(String msg) { synchronized (m_mutex) { m_blocks.add(new MessageEntry(this, msg)); } boolean shuldFlush; synchronized (m_mutex) { shuldFlush = m_blocks.size() > ConfigProvider.getQueueHardLimit(); } if (shuldFlush) { flush(); } }
public void logMessage(String msg) { synchronized (m_mutex) { m_blocks.add(new MessageEntry(this, msg)); } <DeepExtract> boolean shuldFlush; synchronized (m_mutex) { shuldFlush = m_blocks.size() > ConfigProvider.getQueueHardLimit(); } if (shuldFlush) { flush(); } </DeepExtract> }
MCPainter
positive
438,009
void edit(View pieceView) { for (int i = 0; i < box.getChildCount(); i++) { View otherPiece = box.getChildAt(i); EditText editText = otherPiece.findViewById(R.id.fatto_edita); if (editText != null && editText.isShown()) { TextView textView = otherPiece.findViewById(R.id.fatto_testo); if (!editText.getText().toString()....
void edit(View pieceView) { <DeepExtract> for (int i = 0; i < box.getChildCount(); i++) { View otherPiece = box.getChildAt(i); EditText editText = otherPiece.findViewById(R.id.fatto_edita); if (editText != null && editText.isShown()) { TextView textView = otherPiece.findViewById(R.id.fatto_testo); if (!editText.getText...
FamilyGem
positive
438,010
static ExecutionEnvironment prepareEnvironment(final Project project, final RunnerAndConfigurationSettings configuration, final ProgramRunner runner, final ExecutionTarget target, final Executor executor) throws ExecutionException { if (ExecutorRegistry.getInstance().isStarting(project, executor.getId(), runner.getRunn...
static ExecutionEnvironment prepareEnvironment(final Project project, final RunnerAndConfigurationSettings configuration, final ProgramRunner runner, final ExecutionTarget target, final Executor executor) throws ExecutionException { if (ExecutorRegistry.getInstance().isStarting(project, executor.getId(), runner.getRunn...
intellivim
positive
438,011
public void setLocation(String location) { if (groupId != null || artifactId != null || version != null) { throw new IllegalStateException("Galleon 2.x location cannot be used: feature-pack Maven coordinates have already been initialized"); } if (path != null) { throw new IllegalStateException("Galleon 2.x location can...
public void setLocation(String location) { <DeepExtract> if (groupId != null || artifactId != null || version != null) { throw new IllegalStateException("Galleon 2.x location cannot be used: feature-pack Maven coordinates have already been initialized"); } if (path != null) { throw new IllegalStateException("Galleon 2....
wildfly-jar-maven-plugin
positive
438,014
@Override public void optimizeForReading() { int numOfFilesRewritten = fileBuckets.parallelStream().mapToInt(bucket -> rewriteBucket(bucket, true)).sum(); if (metaFileOutOfSync) { writeMetaFile(); } if (DBUtils.DEBUG && numOfFilesRewritten > 0) { Log.i("Rewritten " + numOfFilesRewritten + " files for " + getName()); } ...
@Override public void optimizeForReading() { <DeepExtract> int numOfFilesRewritten = fileBuckets.parallelStream().mapToInt(bucket -> rewriteBucket(bucket, true)).sum(); if (metaFileOutOfSync) { writeMetaFile(); } if (DBUtils.DEBUG && numOfFilesRewritten > 0) { Log.i("Rewritten " + numOfFilesRewritten + " files for " + ...
count-db
positive
438,015
@Override public Observable<T> call(List<Parameter> params) { return QuerySelectOnSubscribe.execute(this, params, function).subscribeOn(context.scheduler()); }
@Override public Observable<T> call(List<Parameter> params) { <DeepExtract> return QuerySelectOnSubscribe.execute(this, params, function).subscribeOn(context.scheduler()); </DeepExtract> }
rxjava-jdbc
positive
438,016
public void receiveConnectResponse(RdpPacket_Localised data) throws IOException, OmniDeskException, OrderException, CryptoException, RdesktopException, CryptoException { String[] connect_results = { "Successful", "Domain Merging", "Domain not Hierarchical", "No Such Channel", "No Such Domain", "No Such User", "Not Admi...
public void receiveConnectResponse(RdpPacket_Localised data) throws IOException, OmniDeskException, OrderException, CryptoException, RdesktopException, CryptoException { String[] connect_results = { "Successful", "Domain Merging", "Domain not Hierarchical", "No Such Channel", "No Such Domain", "No Such User", "Not Admi...
omnidesk
positive
438,017
@Override public int getHoldability() throws SQLException { if (isClosed) throw new SQLException("The connection is closed"); if (xaConnection == null) throw new SQLException("The connection is invalid"); return xaConnection.getConnection().getHoldability(); }
@Override public int getHoldability() throws SQLException { <DeepExtract> if (isClosed) throw new SQLException("The connection is closed"); if (xaConnection == null) throw new SQLException("The connection is invalid"); </DeepExtract> return xaConnection.getConnection().getHoldability(); }
kumuluzee
positive
438,018
@Test public void reusingSetValues() throws SQLException { PreparedStatement prep = conn.prepareStatement("select ?,?;"); prep.setInt(1, 9); for (int i = 0; i < 10; i++) { prep.setInt(2, i); ResultSet rs = prep.executeQuery(); assertTrue(rs.next()); assertEquals(rs.getInt(1), 9); assertEquals(rs.getInt(2), i); } for (i...
@Test public void reusingSetValues() throws SQLException { PreparedStatement prep = conn.prepareStatement("select ?,?;"); prep.setInt(1, 9); for (int i = 0; i < 10; i++) { prep.setInt(2, i); ResultSet rs = prep.executeQuery(); assertTrue(rs.next()); assertEquals(rs.getInt(1), 9); assertEquals(rs.getInt(2), i); } for (i...
sqlcipher-jdbc
positive
438,019
public static TileEntityManager tickTriggers(TileEntityManager manager) { if (delayedRegistry.get(manager) != null) { for (Iterator<FlowComponent> itr = delayedRegistry.get(manager).iterator(); itr.hasNext(); ) { ComponentMenuTriggered toTrigger = (ComponentMenuTriggered) itr.next().getMenus().get(6); if (toTrigger.isV...
public static TileEntityManager tickTriggers(TileEntityManager manager) { <DeepExtract> if (delayedRegistry.get(manager) != null) { for (Iterator<FlowComponent> itr = delayedRegistry.get(manager).iterator(); itr.hasNext(); ) { ComponentMenuTriggered toTrigger = (ComponentMenuTriggered) itr.next().getMenus().get(6); if ...
StevesAddons
positive
438,020
public static void gotoPage(CommandSender s, int page) { PageInfo pageInfo; if (playerPages.containsKey(s)) pageInfo = playerPages.get(s); else { s.sendMessage(ChatColor.RED + "There are no pages to view."); pageInfo = null; } if (pageInfo != null) { pageInfo.gotoPage(page); page(pageInfo); } }
public static void gotoPage(CommandSender s, int page) { <DeepExtract> PageInfo pageInfo; if (playerPages.containsKey(s)) pageInfo = playerPages.get(s); else { s.sendMessage(ChatColor.RED + "There are no pages to view."); pageInfo = null; } </DeepExtract> if (pageInfo != null) { pageInfo.gotoPage(page); page(pageInfo);...
RedstoneChips
positive
438,021