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 changed(ChangeEvent event, Actor actor) { if (startMenu.hasActions()) return; shadeBackground.addAction(Actions.alpha(.8f, DURATION_TRANSITION)); startMenu.addAction(Actions.moveTo(0, stage.getHeight(), DURATION_TRANSITION, Interpolation.circle)); choseLevelView.setPosition(0, -choseLevelView.getH...
@Override public void changed(ChangeEvent event, Actor actor) { <DeepExtract> if (startMenu.hasActions()) return; shadeBackground.addAction(Actions.alpha(.8f, DURATION_TRANSITION)); startMenu.addAction(Actions.moveTo(0, stage.getHeight(), DURATION_TRANSITION, Interpolation.circle)); choseLevelView.setPosition(0, -chose...
SMC-Android
positive
435,473
@Override public void afterRegionCreate(RegionEvent<Object, Object> event) { TEST_OPERATION_LOG.add(String.format("REGION [%s] CREATE", event.getRegion().getName())); }
@Override public void afterRegionCreate(RegionEvent<Object, Object> event) { <DeepExtract> TEST_OPERATION_LOG.add(String.format("REGION [%s] CREATE", event.getRegion().getName())); </DeepExtract> }
contacts-application
positive
435,474
@Test public void testIsValid() { testIsValid(testUrlParts, UrlValidator.ALLOW_ALL_SCHEMES); for (int index = 0; index < testPartsIndex.length - 1; index++) { testPartsIndex[index] = 0; } final long options = UrlValidator.ALLOW_2_SLASHES + UrlValidator.ALLOW_ALL_SCHEMES + UrlValidator.NO_FRAGMENTS; testIsValid(testUrlP...
@Test public void testIsValid() { testIsValid(testUrlParts, UrlValidator.ALLOW_ALL_SCHEMES); <DeepExtract> for (int index = 0; index < testPartsIndex.length - 1; index++) { testPartsIndex[index] = 0; } </DeepExtract> final long options = UrlValidator.ALLOW_2_SLASHES + UrlValidator.ALLOW_ALL_SCHEMES + UrlValidator.NO_FR...
commons-validator
positive
435,475
private void formWindowClosing(java.awt.event.WindowEvent evt) { stop(); app.mf.setVisible(true); this.dispose(); }
private void formWindowClosing(java.awt.event.WindowEvent evt) { <DeepExtract> stop(); app.mf.setVisible(true); this.dispose(); </DeepExtract> }
GFChipCalc
positive
435,476
public Vector3 normal() { if (released) throw new IllegalStateException("plane released do not use it."); return zAxis; }
public Vector3 normal() { <DeepExtract> if (released) throw new IllegalStateException("plane released do not use it."); </DeepExtract> return zAxis; }
Tanks
positive
435,478
@Test public void testXmlMapInteger() { Integer key1 = 1; String value1 = "value1"; Integer key2 = 2; String value2 = "value2"; Integer key3 = null; String value3 = "value3"; Map<Integer, String> map = new HashMap<Integer, String>(); map.put(key1, value1); map.put(key2, value2); map.put(key3, value3); String xml = Obje...
@Test public void testXmlMapInteger() { Integer key1 = 1; String value1 = "value1"; Integer key2 = 2; String value2 = "value2"; Integer key3 = null; String value3 = "value3"; Map<Integer, String> map = new HashMap<Integer, String>(); map.put(key1, value1); map.put(key2, value2); map.put(key3, value3); String xml = Obje...
piriti
positive
435,479
public static Object get(JsonArray self, long index) { if (index > Integer.MAX_VALUE || index < 0L) { throw new ArrayIndexOutOfBoundsException("invalid index."); } if (self.getList().get((int) index) == null) { return null; } if (self.getList().get((int) index) instanceof Map) { self.getList().get((int) index) = new Js...
public static Object get(JsonArray self, long index) { if (index > Integer.MAX_VALUE || index < 0L) { throw new ArrayIndexOutOfBoundsException("invalid index."); } <DeepExtract> if (self.getList().get((int) index) == null) { return null; } if (self.getList().get((int) index) instanceof Map) { self.getList().get((int) i...
es4x
positive
435,480
@Test public void testMd5Signature() throws Exception { applicationContext = new ClassPathXmlApplicationContext("classpath:md5-signature-context.xml"); SignatureCodec sc = applicationContext.getBean("zk-default-signature-codec", SignatureCodec.class); String sign = sc.encode("hello world"); assertThat(sc.verify("hello ...
@Test public void testMd5Signature() throws Exception { applicationContext = new ClassPathXmlApplicationContext("classpath:md5-signature-context.xml"); <DeepExtract> SignatureCodec sc = applicationContext.getBean("zk-default-signature-codec", SignatureCodec.class); String sign = sc.encode("hello world"); assertThat(sc....
cloud-config
positive
435,483
public void setupControls() { final GuiSettings guiSettings = appSettings.guiSettings(); appStage.setWidth(guiSettings.mainWindowWidthProperty().getValue()); guiSettings.mainWindowWidthProperty().bind(appStage.widthProperty()); appStage.setHeight(guiSettings.mainWindowHeightProperty().getValue()); guiSettings.mainWindo...
public void setupControls() { final GuiSettings guiSettings = appSettings.guiSettings(); appStage.setWidth(guiSettings.mainWindowWidthProperty().getValue()); guiSettings.mainWindowWidthProperty().bind(appStage.widthProperty()); appStage.setHeight(guiSettings.mainWindowHeightProperty().getValue()); guiSettings.mainWindo...
kafka-message-tool
positive
435,485
private void applyBlur() { mImageJava.setImageBitmap(null); mImageJniPixels.setImageBitmap(null); mImageJniBitmap.setImageBitmap(null); Thread thread = new Thread(new Runnable() { @Override public void run() { try { final StringBuilder sb = new StringBuilder(); sb.append("Blur Time: "); for (int i = 1; i < 4; i++) { sb...
private void applyBlur() { <DeepExtract> mImageJava.setImageBitmap(null); mImageJniPixels.setImageBitmap(null); mImageJniBitmap.setImageBitmap(null); </DeepExtract> Thread thread = new Thread(new Runnable() { @Override public void run() { try { final StringBuilder sb = new StringBuilder(); sb.append("Blur Time: "); for...
Genius-Android
positive
435,486
public void delete() { if (downloadTask != null) { downloadTask.cancel(); } Util.delete(partialFile); Util.delete(completeFile); Util.delete(saveFile); mediaStoreService.deleteFromMediaStore(this); }
public void delete() { <DeepExtract> if (downloadTask != null) { downloadTask.cancel(); } </DeepExtract> Util.delete(partialFile); Util.delete(completeFile); Util.delete(saveFile); mediaStoreService.deleteFromMediaStore(this); }
Subsonic-Android
positive
435,487
@Override public LinkAsset map(Link source, Config config, Provider converterProvider) throws OpenRtbConverterException { if (source == null) { return null; } LinkAsset linkAsset = new LinkAsset(); if (source == null || linkAsset == null) { return; } linkAsset.setUrl(source.getUrl()); linkAsset.setUrlfb(source.getFallb...
@Override public LinkAsset map(Link source, Config config, Provider converterProvider) throws OpenRtbConverterException { if (source == null) { return null; } LinkAsset linkAsset = new LinkAsset(); <DeepExtract> if (source == null || linkAsset == null) { return; } linkAsset.setUrl(source.getUrl()); linkAsset.setUrlfb(s...
openrtb3-converter
positive
435,489
@NonNull @Override public View getView(int position, @Nullable View convertView, @NonNull ViewGroup parent) { if (convertView == null) { convertView = LayoutInflater.from(getContext()).inflate(R.layout.account_type_item, parent, false); } Account account = getItem(position); ImageView accountIcon = convertView.findView...
@NonNull @Override public View getView(int position, @Nullable View convertView, @NonNull ViewGroup parent) { <DeepExtract> if (convertView == null) { convertView = LayoutInflater.from(getContext()).inflate(R.layout.account_type_item, parent, false); } Account account = getItem(position); ImageView accountIcon = conver...
Readrops
positive
435,493
public short doChainingOrExtAPDUFlash(APDU apdu) throws ISOException { if (flash_buf == null) { try { flash_buf = new byte[FLASH_BUF_SIZE]; } catch (SystemException e) { if (e.getReason() == SystemException.NO_RESOURCE) { ISOException.throwIt(ISO7816.SW_FILE_FULL); } ISOException.throwIt(ISO7816.SW_UNKNOWN); } } short ...
public short doChainingOrExtAPDUFlash(APDU apdu) throws ISOException { if (flash_buf == null) { try { flash_buf = new byte[FLASH_BUF_SIZE]; } catch (SystemException e) { if (e.getReason() == SystemException.NO_RESOURCE) { ISOException.throwIt(ISO7816.SW_FILE_FULL); } ISOException.throwIt(ISO7816.SW_UNKNOWN); } } <DeepE...
AppletPlayground
positive
435,495
@Override public int getScore() { return getInt(map, "score", 0); }
@Override public int getScore() { <DeepExtract> return getInt(map, "score", 0); </DeepExtract> }
SkyWars
positive
435,496
private void connectionLost() { mState = STATE_LISTEN; mHandler.obtainMessage(BluetoothChat.MESSAGE_STATE_CHANGE, STATE_LISTEN, -1).sendToTarget(); Message msg = mHandler.obtainMessage(BluetoothChat.MESSAGE_TOAST); Bundle bundle = new Bundle(); bundle.putInt(BluetoothChat.TOAST, STATE_LOST); msg.setData(bundle); mHandl...
private void connectionLost() { <DeepExtract> mState = STATE_LISTEN; mHandler.obtainMessage(BluetoothChat.MESSAGE_STATE_CHANGE, STATE_LISTEN, -1).sendToTarget(); </DeepExtract> Message msg = mHandler.obtainMessage(BluetoothChat.MESSAGE_TOAST); Bundle bundle = new Bundle(); bundle.putInt(BluetoothChat.TOAST, STATE_LOST)...
TaxiLbs
positive
435,497
public void onDestroy() { mIsComplete = false; if (mBatInfoReceiver != null) { try { mContext.unregisterReceiver(mBatInfoReceiver); } catch (Exception e) { Log.e(Constants.LOG_TAG, "unregisterReceiver mBatInfoReceiver failure :" + e.getCause()); } } mLiveMediaPlayerVideoView.release(true); mLiveMediaPlayerControllerVie...
public void onDestroy() { mIsComplete = false; <DeepExtract> if (mBatInfoReceiver != null) { try { mContext.unregisterReceiver(mBatInfoReceiver); } catch (Exception e) { Log.e(Constants.LOG_TAG, "unregisterReceiver mBatInfoReceiver failure :" + e.getCause()); } } </DeepExtract> mLiveMediaPlayerVideoView.release(true); ...
KSYMediaPlayerKit_Android
positive
435,498
public static Point getBitmapSize(Uri uri, Activity activity) { ContentResolver resolver = activity.getContentResolver(); Point imageSize; InputStream is = null; try { BitmapFactory.Options options = new BitmapFactory.Options(); options.inJustDecodeBounds = true; is = resolver.openInputStream(uri); BitmapFactory.decode...
public static Point getBitmapSize(Uri uri, Activity activity) { ContentResolver resolver = activity.getContentResolver(); <DeepExtract> Point imageSize; InputStream is = null; try { BitmapFactory.Options options = new BitmapFactory.Options(); options.inJustDecodeBounds = true; is = resolver.openInputStream(uri); Bitmap...
Box
positive
435,499
protected void rgbSplitPassUniform(PGraphics pg) { String rgbSplit = "rgbSplitUniform.glsl"; uniform(rgbSplit).set("delta", slider("RGB split", 2)); hotShader(rgbSplit, null, true, pg); }
protected void rgbSplitPassUniform(PGraphics pg) { String rgbSplit = "rgbSplitUniform.glsl"; uniform(rgbSplit).set("delta", slider("RGB split", 2)); <DeepExtract> hotShader(rgbSplit, null, true, pg); </DeepExtract> }
ProcessingSketches
positive
435,501
@Test public void shouldFindGenericDialect() { final Map<String, String> props = new HashMap<>(); props.put(JdbcConfig.CONNECTION_URL_CONFIG, "jdbc:someting:"); props.put(JdbcSourceConnectorConfig.TOPIC_PREFIX_CONFIG, "prefix"); props.put(JdbcSourceConnectorConfig.MODE_CONFIG, JdbcSourceConnectorConfig.MODE_BULK); fina...
@Test public void shouldFindGenericDialect() { <DeepExtract> final Map<String, String> props = new HashMap<>(); props.put(JdbcConfig.CONNECTION_URL_CONFIG, "jdbc:someting:"); props.put(JdbcSourceConnectorConfig.TOPIC_PREFIX_CONFIG, "prefix"); props.put(JdbcSourceConnectorConfig.MODE_CONFIG, JdbcSourceConnectorConfig.MO...
aiven-kafka-connect-jdbc
positive
435,502
private void runSynchronizer() { if (this.alarmScheduled) { this.alarmManager.cancel(this.alarmIntent); this.alarmScheduled = false; } final Synchronizer synchronizer = Synchronizer.getInstance(); Thread syncThread = new Thread() { public void run() { synchronizer.runSynchronizer(); Synchronizer.getInstance().postSynch...
private void runSynchronizer() { <DeepExtract> if (this.alarmScheduled) { this.alarmManager.cancel(this.alarmIntent); this.alarmScheduled = false; } </DeepExtract> final Synchronizer synchronizer = Synchronizer.getInstance(); Thread syncThread = new Thread() { public void run() { synchronizer.runSynchronizer(); Synchro...
mobileorg-android
positive
435,503
public void init() { this.ria = ctx.getRia(); this.i18n = ctx.getI18n(); this.service = ctx.getService(); setStyleName("mf-leftMenu"); employeesButton = new Button(ctx.getI18n().employees(), new ClickHandler() { public void onClick(ClickEvent event) { if (ctx.getState().getEmployees() != null && ctx.getState().getEmplo...
public void init() { this.ria = ctx.getRia(); this.i18n = ctx.getI18n(); this.service = ctx.getService(); setStyleName("mf-leftMenu"); employeesButton = new Button(ctx.getI18n().employees(), new ClickHandler() { public void onClick(ClickEvent event) { if (ctx.getState().getEmployees() != null && ctx.getState().getEmplo...
shifts-solver
positive
435,504
public HttpClientResponse GET() { return newReq(url.build()).GET(); return this; }
public HttpClientResponse GET() { <DeepExtract> return newReq(url.build()).GET(); </DeepExtract> return this; }
avaje-http
positive
435,506
@FunctionSpec(name = "addyear", returnType = "time", formalParameters = { "time", "int" }) public static long addYear(final long t, final long n) { final Calendar calendar = Calendar.getInstance(TimeZone.getTimeZone("PST8PDT")); calendar.setTimeInMillis(t / 1000); calendar.add(Calendar.YEAR, (int) n); return calendar.g...
@FunctionSpec(name = "addyear", returnType = "time", formalParameters = { "time", "int" }) public static long addYear(final long t, final long n) { <DeepExtract> final Calendar calendar = Calendar.getInstance(TimeZone.getTimeZone("PST8PDT")); calendar.setTimeInMillis(t / 1000); calendar.add(Calendar.YEAR, (int) n); ret...
Sizzle
positive
435,507
@Override protected void setListener(FAlertDialog dialog) { this.onLeftClickListener = onLeftClickListener; return this; this.onRightClickListener = onRightClickListener; return this; }
@Override protected void setListener(FAlertDialog dialog) { this.onLeftClickListener = onLeftClickListener; return this; <DeepExtract> this.onRightClickListener = onRightClickListener; return this; </DeepExtract> }
FastAndrUtils
positive
435,509
@Test public void testDate() throws Exception { final GregorianCalendar expected = new GregorianCalendar(1977, Calendar.FEBRUARY, 13, 0, 0, 0); expected.setTimeZone(TimeZone.getTimeZone("UTC")); String sqlColumnSpec = "DATE"; if (!false) { sqlColumnSpec += " NOT NULL"; } db.createTable(SINGLE_TABLE_NAME, "id", sqlColum...
@Test public void testDate() throws Exception { final GregorianCalendar expected = new GregorianCalendar(1977, Calendar.FEBRUARY, 13, 0, 0, 0); expected.setTimeZone(TimeZone.getTimeZone("UTC")); <DeepExtract> String sqlColumnSpec = "DATE"; if (!false) { sqlColumnSpec += " NOT NULL"; } db.createTable(SINGLE_TABLE_NAME, ...
aiven-kafka-connect-jdbc
positive
435,510
public synchronized boolean add(E elem) { final long localLeftRight = leftRight.get(); if (localLeftRight == READS_ON_LEFT) { retValue = rightTree.add(elem); } else { retValue = leftTree.add(elem); } if (!retValue) return false; leftRight.set(-localLeftRight); final long localVI = startEpoch.get(); if (localVI < 0) { p...
public synchronized boolean add(E elem) { final long localLeftRight = leftRight.get(); if (localLeftRight == READS_ON_LEFT) { retValue = rightTree.add(elem); } else { retValue = leftTree.add(elem); } if (!retValue) return false; leftRight.set(-localLeftRight); <DeepExtract> final long localVI = startEpoch.get(); if (lo...
ConcurrencyFreaks
positive
435,511
private void clipPath(Attributes attributes) throws SVGParseException { debug("<clipPath>"); if (currentElement == null) throw new SVGParseException("Invalid document. Root element must be <svg>"); SVG.ClipPath obj = new SVG.ClipPath(); obj.document = svgDocument; obj.parent = currentElement; for (int i = 0; i < attrib...
private void clipPath(Attributes attributes) throws SVGParseException { debug("<clipPath>"); if (currentElement == null) throw new SVGParseException("Invalid document. Root element must be <svg>"); SVG.ClipPath obj = new SVG.ClipPath(); obj.document = svgDocument; obj.parent = currentElement; for (int i = 0; i < attrib...
android-svg-code-render
positive
435,512
@Override protected void onAttachedToWindow() { super.onAttachedToWindow(); mSpinHandler = new SpeedHandler(this); mBackgroundCenter = this.getLayoutParams().width / 2; mBackgroundRadius = mBackgroundCenter - this.getPaddingTop(); mOneBounds = new RectF(this.getPaddingTop() + mOneWidth / 2, this.getPaddingLeft() + mOne...
@Override protected void onAttachedToWindow() { super.onAttachedToWindow(); mSpinHandler = new SpeedHandler(this); mBackgroundCenter = this.getLayoutParams().width / 2; mBackgroundRadius = mBackgroundCenter - this.getPaddingTop(); mOneBounds = new RectF(this.getPaddingTop() + mOneWidth / 2, this.getPaddingLeft() + mOne...
QuizApp_Android
positive
435,514
public void actionPerformed(ActionEvent e) { String filename = scanReportFileField.getText(); if (!new File(filename).exists()) { String message = "File " + filename + " not found"; JOptionPane.showMessageDialog(frame, StringUtilities.wordWrap(message, 80), "File not found", JOptionPane.ERROR_MESSAGE); } else { FakeDat...
public void actionPerformed(ActionEvent e) { <DeepExtract> String filename = scanReportFileField.getText(); if (!new File(filename).exists()) { String message = "File " + filename + " not found"; JOptionPane.showMessageDialog(frame, StringUtilities.wordWrap(message, 80), "File not found", JOptionPane.ERROR_MESSAGE); } ...
WhiteRabbit
positive
435,515
public static List<List<Integer>> sortInt(int i) { ArrayList<Integer> integers = new ArrayList<Integer>(); for (int t = 0; t < i; t++) { integers.add(t); } ArrayList<List<Integer>> ll = new ArrayList<List<Integer>>(); if (integers.size() == 1) { ll.add(integers); return ll; } for (Integer i : integers) { ArrayList clon...
public static List<List<Integer>> sortInt(int i) { ArrayList<Integer> integers = new ArrayList<Integer>(); for (int t = 0; t < i; t++) { integers.add(t); } <DeepExtract> ArrayList<List<Integer>> ll = new ArrayList<List<Integer>>(); if (integers.size() == 1) { ll.add(integers); return ll; } for (Integer i : integers) { ...
EHBDroid
positive
435,517
public void visitIF_ICMPGE(IF_ICMPGE instruction) { Expression right = context.getExpressions().pop(); Expression left = context.getExpressions().pop(); processMultiConditionalStatement(OperationType.GREATER_EQUAL, left, right); }
public void visitIF_ICMPGE(IF_ICMPGE instruction) { <DeepExtract> Expression right = context.getExpressions().pop(); Expression left = context.getExpressions().pop(); processMultiConditionalStatement(OperationType.GREATER_EQUAL, left, right); </DeepExtract> }
candle-decompiler
positive
435,520
@Override public JsonGenerator write(boolean value) { if ((!currentContext.first && currentContext.scope != Scope.IN_ARRAY && currentContext.scope != Scope.IN_FIELD) || (currentContext.first && currentContext.scope == Scope.IN_OBJECT)) { throw new JsonGenerationException(JsonMessages.GENERATOR_ILLEGAL_METHOD(currentCon...
@Override public JsonGenerator write(boolean value) { if ((!currentContext.first && currentContext.scope != Scope.IN_ARRAY && currentContext.scope != Scope.IN_FIELD) || (currentContext.first && currentContext.scope == Scope.IN_OBJECT)) { throw new JsonGenerationException(JsonMessages.GENERATOR_ILLEGAL_METHOD(currentCon...
jsonp
positive
435,526
private void writeObject(ObjectOutputStream out) throws IOException { out.writeObject(getDocumentFactory()); long startTime = System.currentTimeMillis(); ObjectOutputStream oos; if (out instanceof ObjectOutputStream) { oos = (ObjectOutputStream) out; } else { oos = new ObjectOutputStream(out); } oos.writeObject(startRe...
private void writeObject(ObjectOutputStream out) throws IOException { out.writeObject(getDocumentFactory()); <DeepExtract> long startTime = System.currentTimeMillis(); ObjectOutputStream oos; if (out instanceof ObjectOutputStream) { oos = (ObjectOutputStream) out; } else { oos = new ObjectOutputStream(out); } oos.write...
protege-server
positive
435,527
private void init(Context context) { mFlipAnimation = new RotateAnimation(0, -180, RotateAnimation.RELATIVE_TO_SELF, 0.5f, RotateAnimation.RELATIVE_TO_SELF, 0.5f); mFlipAnimation.setInterpolator(new LinearInterpolator()); mFlipAnimation.setDuration(250); mFlipAnimation.setFillAfter(true); mReverseFlipAnimation = new Ro...
private void init(Context context) { mFlipAnimation = new RotateAnimation(0, -180, RotateAnimation.RELATIVE_TO_SELF, 0.5f, RotateAnimation.RELATIVE_TO_SELF, 0.5f); mFlipAnimation.setInterpolator(new LinearInterpolator()); mFlipAnimation.setDuration(250); mFlipAnimation.setFillAfter(true); mReverseFlipAnimation = new Ro...
Electrocar-master
positive
435,529
@Override public List<String> getKeyspaces() { logger.finest(" getKeyspaces()"); return client.getListStrValue("/storage_service/keyspaces"); }
@Override public List<String> getKeyspaces() { <DeepExtract> logger.finest(" getKeyspaces()"); </DeepExtract> return client.getListStrValue("/storage_service/keyspaces"); }
scylla-jmx
positive
435,530
@Override public Vertex removeProperty(String key) { E.checkNotNull(key, "The property name can not be null"); if (!this.properties.containsKey(key)) { throw new InvalidOperationException("The vertex '%s' doesn't have the property '%s'", this.id, key); } Vertex vertex = new Vertex(this.label); this.id = this.id; Object...
@Override public Vertex removeProperty(String key) { E.checkNotNull(key, "The property name can not be null"); if (!this.properties.containsKey(key)) { throw new InvalidOperationException("The vertex '%s' doesn't have the property '%s'", this.id, key); } Vertex vertex = new Vertex(this.label); this.id = this.id; Object...
hugegraph-loader
positive
435,531
void foo() { for (Object o : new ArrayList<String>()) { } }
void foo() { <DeepExtract> for (Object o : new ArrayList<String>()) { } </DeepExtract> }
learningjava
positive
435,533
@Test @Ignore("Operation not yet implemented.") public void queryTest1() throws Exception { final DatabaseStatistics statistics = new DatabaseStatistics("queryTestArithmeticOperation1_db"); spark().sql("DROP DATABASE IF EXISTS queryTestArithmeticOperation1_db CASCADE"); spark().sql("CREATE DATABASE IF NOT EXISTS query...
@Test @Ignore("Operation not yet implemented.") public void queryTest1() throws Exception { final DatabaseStatistics statistics = new DatabaseStatistics("queryTestArithmeticOperation1_db"); spark().sql("DROP DATABASE IF EXISTS queryTestArithmeticOperation1_db CASCADE"); spark().sql("CREATE DATABASE IF NOT EXISTS query...
PRoST
positive
435,535
@Override protected void handleReaction(GuildMessageReactionAddEvent event) { switch(event.getReaction().getReactionEmote().getName()) { case "âž¡": currentPage++; break; case "⬅": currentPage--; break; default: break; } if (!false && currentPage == 1) getChannel().removeReactionById(getInfoMessage().getIdLong(), "â¬...
@Override protected void handleReaction(GuildMessageReactionAddEvent event) { switch(event.getReaction().getReactionEmote().getName()) { case "âž¡": currentPage++; break; case "⬅": currentPage--; break; default: break; } if (!false && currentPage == 1) getChannel().removeReactionById(getInfoMessage().getIdLong(), "â¬...
groovy-bot-v2
positive
435,536
private void ReceiveHead(byte[] buffer) { mSurplusLen = 0; mSurplusInfoLen = 0; mProgress = 0; byte type = buffer[0]; long len = BitConverter.toLong(buffer, 1); short info = BitConverter.toShort(buffer, HeadSize - 2); if (len > 0) { mSurplusLen = len; mSurplusInfoLen = info; ReceivePacket packet = mParser.parseReceive(...
private void ReceiveHead(byte[] buffer) { mSurplusLen = 0; mSurplusInfoLen = 0; mProgress = 0; byte type = buffer[0]; long len = BitConverter.toLong(buffer, 1); short info = BitConverter.toShort(buffer, HeadSize - 2); if (len > 0) { mSurplusLen = len; mSurplusInfoLen = info; ReceivePacket packet = mParser.parseReceive(...
Blink
positive
435,539
public void send(ConnectedServer... servers) throws IllegalAccessException { if (!isBungeecord()) throw new IllegalAccessException("A BungeePacket may only be sent on a Bungeecord implementation, try SkungeePacket."); return BungeeSockets.send(build(), servers); }
public void send(ConnectedServer... servers) throws IllegalAccessException { <DeepExtract> if (!isBungeecord()) throw new IllegalAccessException("A BungeePacket may only be sent on a Bungeecord implementation, try SkungeePacket."); return BungeeSockets.send(build(), servers); </DeepExtract> }
Skungee
positive
435,540
private void checkIfEmpty() { final boolean listIsEmpty = filterPlaylistListInput.getText().length() == 0 && (playlistList.getAdapter() == null || playlistList.getAdapter().getItemCount() == 0); if (listIsEmpty) { emptyView.setVisibility(View.VISIBLE); actionsView.setVisibility(View.GONE); playlistList.setVisibility(Vi...
private void checkIfEmpty() { <DeepExtract> final boolean listIsEmpty = filterPlaylistListInput.getText().length() == 0 && (playlistList.getAdapter() == null || playlistList.getAdapter().getItemCount() == 0); if (listIsEmpty) { emptyView.setVisibility(View.VISIBLE); actionsView.setVisibility(View.GONE); playlistList.se...
yashlang
positive
435,543
@Deprecated public MSStringBuilder getUri_Utf(String sender, String addr, MSStringBuilder seite, String meldung) { return getUri(sender, addr, StandardCharsets.UTF_8, 1, seite, meldung, ""); }
@Deprecated public MSStringBuilder getUri_Utf(String sender, String addr, MSStringBuilder seite, String meldung) { <DeepExtract> return getUri(sender, addr, StandardCharsets.UTF_8, 1, seite, meldung, ""); </DeepExtract> }
MServer
positive
435,544
@Override public AxisAlignedBB getSelectedBoundingBoxFromPool(World world, int x, int y, int z) { TileEntity tileEntity = world.getTileEntity(x, y, z); if (tileEntity != null) { float length = 0.5f; switch(tileEntity.getBlockMetadata()) { case 0: this.setBlockBounds(.3125f, 0, .3125f, .6875f, length, .6875f); break; ca...
@Override public AxisAlignedBB getSelectedBoundingBoxFromPool(World world, int x, int y, int z) { <DeepExtract> TileEntity tileEntity = world.getTileEntity(x, y, z); if (tileEntity != null) { float length = 0.5f; switch(tileEntity.getBlockMetadata()) { case 0: this.setBlockBounds(.3125f, 0, .3125f, .6875f, length, .687...
ImmersiveIntegration
positive
435,545
public Symbol debug_parse() throws java.lang.Exception { Symbol lhs_sym = null; production_tab = production_table(); action_tab = action_table(); reduce_tab = reduce_table(); System.err.println("# Initializing parser"); init_actions(); Symbol sym = getScanner().next_token(); return (sym != null) ? sym : new Symbol(EOF_...
public Symbol debug_parse() throws java.lang.Exception { Symbol lhs_sym = null; production_tab = production_table(); action_tab = action_table(); reduce_tab = reduce_table(); System.err.println("# Initializing parser"); init_actions(); Symbol sym = getScanner().next_token(); return (sym != null) ? sym : new Symbol(EOF_...
oncrpc4j
positive
435,546
public static Fragment popAddFragment(@NonNull final FragmentManager fragmentManager, @NonNull final Fragment fragment, @IdRes final int containerId, final boolean isAddStack, final SharedElement... sharedElements) { Bundle bundle = fragment.getArguments(); if (bundle == null) { bundle = new Bundle(); fragment.setArgum...
public static Fragment popAddFragment(@NonNull final FragmentManager fragmentManager, @NonNull final Fragment fragment, @IdRes final int containerId, final boolean isAddStack, final SharedElement... sharedElements) { Bundle bundle = fragment.getArguments(); if (bundle == null) { bundle = new Bundle(); fragment.setArgum...
Weiyue
positive
435,547
@Override public void setNativeTransportMaxConcurrentConnections(Long nativeTransportMaxConcurrentConnections) { logger.finest(" setNativeTransportMaxConcurrentConnections()"); }
@Override public void setNativeTransportMaxConcurrentConnections(Long nativeTransportMaxConcurrentConnections) { <DeepExtract> logger.finest(" setNativeTransportMaxConcurrentConnections()"); </DeepExtract> }
scylla-jmx
positive
435,548
@Override public void actionPerformed(ActionEvent e) { String windowName = "JavaFX-" + UUID.randomUUID().toString(); FxLayoutFrame frame = new FxLayoutFrame(this.desktopConnection, appUuid, windowName); this.childFxFrames.put(windowName, frame); }
@Override public void actionPerformed(ActionEvent e) { <DeepExtract> String windowName = "JavaFX-" + UUID.randomUUID().toString(); FxLayoutFrame frame = new FxLayoutFrame(this.desktopConnection, appUuid, windowName); this.childFxFrames.put(windowName, frame); </DeepExtract> }
java-example
positive
435,549
public final synchronized void setCooperativeLevel(int flags) throws IOException { if (released) throw new IOException("Device is released"); int res = nSetCooperativeLevel(address, window.getHwnd(), flags); if (res != DI_OK) throw new IOException("Failed to set cooperative level (" + Integer.toHexString(res) + ")"); }
public final synchronized void setCooperativeLevel(int flags) throws IOException { <DeepExtract> if (released) throw new IOException("Device is released"); </DeepExtract> int res = nSetCooperativeLevel(address, window.getHwnd(), flags); if (res != DI_OK) throw new IOException("Failed to set cooperative level (" + Integ...
jinput
positive
435,550
@Test public void testUnsignedShiftRightOffEdge() { final byte[] result = OPERAND1.clone(); Byte16ArrayArithmetic.unsignedShiftRight(result, 128); final String message = String.format("Expected %016X%016X, got %s", 0, 0, BinaryUtils.convertBytesToHexString(result)); assertEquals(BinaryUtils.convertBytesToLong(result, 0...
@Test public void testUnsignedShiftRightOffEdge() { final byte[] result = OPERAND1.clone(); Byte16ArrayArithmetic.unsignedShiftRight(result, 128); <DeepExtract> final String message = String.format("Expected %016X%016X, got %s", 0, 0, BinaryUtils.convertBytesToHexString(result)); assertEquals(BinaryUtils.convertBytesTo...
BetterRandom
positive
435,552
public IamRolesOutputs getCmsIamRoleOutputs() { if (!cloudFormationService.isStackPresent(getPrimaryRegion(), getCloudFormationStackName(Stack.IAM_ROLES))) { throw new IllegalStateException("Failed to get CloudFormation output for stack: '" + getCloudFormationStackName(Stack.IAM_ROLES) + "'. Stack does not exist."); } ...
public IamRolesOutputs getCmsIamRoleOutputs() { <DeepExtract> if (!cloudFormationService.isStackPresent(getPrimaryRegion(), getCloudFormationStackName(Stack.IAM_ROLES))) { throw new IllegalStateException("Failed to get CloudFormation output for stack: '" + getCloudFormationStackName(Stack.IAM_ROLES) + "'. Stack does no...
cerberus-lifecycle-cli
positive
435,553
@Override public void onClick(DialogInterface dialog, int which) { dialog.dismiss(); SharedPreManager.getInstance().setLanguage(mContext, which); App.changeLanguage(mContext); Intent intent = new Intent(mContext, MainActivity.class); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK); Inte...
@Override public void onClick(DialogInterface dialog, int which) { dialog.dismiss(); SharedPreManager.getInstance().setLanguage(mContext, which); App.changeLanguage(mContext); Intent intent = new Intent(mContext, MainActivity.class); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK); <Dee...
HLOLI
positive
435,555
@Override public void plantOneOff(JobRequest request) { long startMs = Common.getStartMs(request); long endMs = Common.getEndMs(request, true); JobInfo jobInfo = createBuilderOneOff(createBaseBuilder(request, true), startMs, endMs).build(); int scheduleResult; JobScheduler jobScheduler = getJobScheduler(); if (jobSched...
@Override public void plantOneOff(JobRequest request) { long startMs = Common.getStartMs(request); long endMs = Common.getEndMs(request, true); JobInfo jobInfo = createBuilderOneOff(createBaseBuilder(request, true), startMs, endMs).build(); <DeepExtract> int scheduleResult; JobScheduler jobScheduler = getJobScheduler()...
android-job
positive
435,557
public String getIncludes() { final String value = options.get(INCLUDES); return value == null ? "*" : value; }
public String getIncludes() { <DeepExtract> final String value = options.get(INCLUDES); return value == null ? "*" : value; </DeepExtract> }
mangosteen
positive
435,559
@Benchmark @BenchmarkMode(Mode.Throughput) public long operation(ThreadState threadState, RequestRecorder rec) { if (--threadState.bulkCountDown > 0) { rec.requests++; return cache.get(threadState.keyPattern.next()); } threadState.bulkCountDown = BULK_STEP; int bulkCount = threadState.bulkSizeRandom.nextInt(BULK_RANGE)...
@Benchmark @BenchmarkMode(Mode.Throughput) public long operation(ThreadState threadState, RequestRecorder rec) { if (--threadState.bulkCountDown > 0) { rec.requests++; return cache.get(threadState.keyPattern.next()); } threadState.bulkCountDown = BULK_STEP; int bulkCount = threadState.bulkSizeRandom.nextInt(BULK_RANGE)...
cache2k-benchmark
positive
435,560
public Money sum(Money anotherMoney) { if (value == 0.0 || anotherMoney.value == 0.0) return; if (anotherMoney.unit.equals(unit)) return; throw new RuntimeException(this + " and " + anotherMoney + " are not compatible"); unit = value == 0.0 ? anotherMoney.unit : unit; value += anotherMoney.value; return new Money(unit,...
public Money sum(Money anotherMoney) { if (value == 0.0 || anotherMoney.value == 0.0) return; if (anotherMoney.unit.equals(unit)) return; throw new RuntimeException(this + " and " + anotherMoney + " are not compatible"); unit = value == 0.0 ? anotherMoney.unit : unit; value += anotherMoney.value; <DeepExtract> return n...
lambdaj
positive
435,561
public boolean setActionButton(@NonNull Bitmap icon, @NonNull String description) { Bundle bundle = new Bundle(); bundle.putParcelable(CustomTabsIntent.KEY_ICON, icon); bundle.putString(CustomTabsIntent.KEY_DESCRIPTION, description); Bundle metaBundle = new Bundle(); metaBundle.putBundle(CustomTabsIntent.EXTRA_ACTION_B...
public boolean setActionButton(@NonNull Bitmap icon, @NonNull String description) { Bundle bundle = new Bundle(); bundle.putParcelable(CustomTabsIntent.KEY_ICON, icon); bundle.putString(CustomTabsIntent.KEY_DESCRIPTION, description); Bundle metaBundle = new Bundle(); metaBundle.putBundle(CustomTabsIntent.EXTRA_ACTION_B...
custom-tabs-client
positive
435,564
@POST @Path("/spin/{action}") @Detail("Spin compile") @Name("Spin") @Produces("application/json") public Response compileSpin(@PathParam("action") CompileActionTypeWrapper actionWrapper, @QueryParam("id") Long idProject, @FormParam("code") String code) { LOG.info("REST:/rest/compile/spin/ Post request received"); Respo...
@POST @Path("/spin/{action}") @Detail("Spin compile") @Name("Spin") @Produces("application/json") public Response compileSpin(@PathParam("action") CompileActionTypeWrapper actionWrapper, @QueryParam("id") Long idProject, @FormParam("code") String code) { LOG.info("REST:/rest/compile/spin/ Post request received"); <Deep...
BlocklyProp
positive
435,565
@Override public void run() { synchronized (statusHolderMap) { if (statusHolderMap.size() != 0) { Iterator<StatusHolder> iterator = statusHolderMap.values().iterator(); long now = SystemClock.uptimeMillis(); currentStatus = null; while (iterator.hasNext()) { StatusHolder holder = iterator.next(); if (holder.clearTime <...
@Override public void run() { <DeepExtract> synchronized (statusHolderMap) { if (statusHolderMap.size() != 0) { Iterator<StatusHolder> iterator = statusHolderMap.values().iterator(); long now = SystemClock.uptimeMillis(); currentStatus = null; while (iterator.hasNext()) { StatusHolder holder = iterator.next(); if (hold...
geoar-app
positive
435,566
@Test public void bigContains() { ByteArraySet set = new ByteArraySet(); final List<ByteArray> vals = getRandomByteArrays(SIZE_BIG); if (SIZE_BIG > 0) { assertTrue(set.addAll(vals)); } else { assertFalse(set.addAll(vals)); } Collections.shuffle(vals); for (ByteArray val : vals) { assertTrue(set.contains(val)); } final ...
@Test public void bigContains() { <DeepExtract> ByteArraySet set = new ByteArraySet(); final List<ByteArray> vals = getRandomByteArrays(SIZE_BIG); if (SIZE_BIG > 0) { assertTrue(set.addAll(vals)); } else { assertFalse(set.addAll(vals)); } Collections.shuffle(vals); for (ByteArray val : vals) { assertTrue(set.contains(v...
southpaw
positive
435,567
public static void main(final String[] args) throws Exception { LOG.info("Hotel Train - started"); boolean runOnce = false; Scanner myInput = new Scanner(System.in); while (true) { System.out.println("What do you want to do next?"); System.out.println("0 Run entire sample."); System.out.println("1 Deploy all contract...
public static void main(final String[] args) throws Exception { LOG.info("Hotel Train - started"); <DeepExtract> boolean runOnce = false; Scanner myInput = new Scanner(System.in); while (true) { System.out.println("What do you want to do next?"); System.out.println("0 Run entire sample."); System.out.println("1 Deplo...
sidechains-samples
positive
435,568
public synchronized void start(ProgressReport progressReport) { if (progressReport == null) { throw new IllegalArgumentException("ProgressReport must not be null."); } progressReportDelay = progressReport.getProgressReportDelayInMilliseconds(); progressReportInterval = progressReport.getProgressReportIntervalInMillisec...
public synchronized void start(ProgressReport progressReport) { if (progressReport == null) { throw new IllegalArgumentException("ProgressReport must not be null."); } progressReportDelay = progressReport.getProgressReportDelayInMilliseconds(); progressReportInterval = progressReport.getProgressReportIntervalInMillisec...
magic-mirror-voice
positive
435,569
public void write(ByteBuf out) { out.writeByte((getReliability().code() << 5) | (hasSplit ? SPLIT_FLAG : 0)); out.writeShort(frameData.getDataSize() * Byte.SIZE); assert !(hasSplit && !getReliability().isReliable); if (getReliability().isReliable) { out.writeMediumLE(reliableIndex); } if (getReliability().isSequenced) ...
public void write(ByteBuf out) { <DeepExtract> out.writeByte((getReliability().code() << 5) | (hasSplit ? SPLIT_FLAG : 0)); out.writeShort(frameData.getDataSize() * Byte.SIZE); assert !(hasSplit && !getReliability().isReliable); if (getReliability().isReliable) { out.writeMediumLE(reliableIndex); } if (getReliability()...
netty-raknet
positive
435,570
@Override public void takeView(GetMoreRequestsContract.View getMoreRequestsActivity) { view = getMoreRequestsActivity; LogHelper.d(TAG, "billing privider's init called"); if (view != null) { checkConnection(); billingViewModelImpl.getInAppSkuDetailsListLiveData().observe((AppCompatActivity) view, productDetails -> { if...
@Override public void takeView(GetMoreRequestsContract.View getMoreRequestsActivity) { view = getMoreRequestsActivity; <DeepExtract> LogHelper.d(TAG, "billing privider's init called"); if (view != null) { checkConnection(); billingViewModelImpl.getInAppSkuDetailsListLiveData().observe((AppCompatActivity) view, productD...
OCRme
positive
435,572
protected Response getInternalErrorResponse(String s) { Response response = Response.newFixedLengthResponse(Status.INTERNAL_ERROR, NanoHTTPD.MIME_PLAINTEXT, "INTERNAL ERROR: " + s); response.addHeader("Accept-Ranges", "bytes"); return response; }
protected Response getInternalErrorResponse(String s) { <DeepExtract> Response response = Response.newFixedLengthResponse(Status.INTERNAL_ERROR, NanoHTTPD.MIME_PLAINTEXT, "INTERNAL ERROR: " + s); response.addHeader("Accept-Ranges", "bytes"); return response; </DeepExtract> }
simpledlna
positive
435,576
public final void setOrientation(int orientation) { if (!VALID_ORIENTATIONS.contains(orientation)) { throw new IllegalArgumentException("Invalid orientation: " + orientation); } this.orientation = orientation; debug("reset newImage=" + false); scale = 0f; scaleStart = 0f; vTranslate = null; vTranslateStart = null; vTra...
public final void setOrientation(int orientation) { if (!VALID_ORIENTATIONS.contains(orientation)) { throw new IllegalArgumentException("Invalid orientation: " + orientation); } this.orientation = orientation; <DeepExtract> debug("reset newImage=" + false); scale = 0f; scaleStart = 0f; vTranslate = null; vTranslateStar...
Matisse-Kotlin
positive
435,578
public static String formatDay() { String formatDate = null; if ("dd" != null) { formatDate = DateFormatUtils.format(new Date(), "dd"); } else { formatDate = DateFormatUtils.format(new Date(), "yyyy-MM-dd"); } return formatDate; }
public static String formatDay() { <DeepExtract> String formatDate = null; if ("dd" != null) { formatDate = DateFormatUtils.format(new Date(), "dd"); } else { formatDate = DateFormatUtils.format(new Date(), "yyyy-MM-dd"); } return formatDate; </DeepExtract> }
robert
positive
435,579
private void keyboardSetKeysDefaults() { Parameters.setDefaultKeysPreferences(); keyboardEditField = null; if (refreshInProgress) return; refreshInProgress = true; keyP0Up.setText(KeyNames.get(Parameters.KEY_P0_UP)); keyP0Down.setText(KeyNames.get(Parameters.KEY_P0_DOWN)); keyP0Left.setText(KeyNames.get(Parameters.KEY_...
private void keyboardSetKeysDefaults() { Parameters.setDefaultKeysPreferences(); keyboardEditField = null; <DeepExtract> if (refreshInProgress) return; refreshInProgress = true; keyP0Up.setText(KeyNames.get(Parameters.KEY_P0_UP)); keyP0Down.setText(KeyNames.get(Parameters.KEY_P0_DOWN)); keyP0Left.setText(KeyNames.get(P...
javatari
positive
435,581
@Override public boolean update(Image item) { if (item.filter._id < 1) { filterEntityManager.setIdOrCreateForName(item.filter); } return super.update(item); }
@Override public boolean update(Image item) { <DeepExtract> if (item.filter._id < 1) { filterEntityManager.setIdOrCreateForName(item.filter); } </DeepExtract> return super.update(item); }
droidparts
positive
435,582
public Criteria andVisitorIpLessThan(String value) { if (value == null) { throw new RuntimeException("Value for " + "visitorIp" + " cannot be null"); } criteria.add(new Criterion("visitor_ip <", value)); return (Criteria) this; }
public Criteria andVisitorIpLessThan(String value) { <DeepExtract> if (value == null) { throw new RuntimeException("Value for " + "visitorIp" + " cannot be null"); } criteria.add(new Criterion("visitor_ip <", value)); </DeepExtract> return (Criteria) this; }
LightBlog
positive
435,584
private void createGroup(String groupname) { openAdministrationPage(); administrationMenu.expandCategoryWithName("Users & Rights").getSectionByName("Users & Rights", "Groups").click(); waitForLiveTable("groupstable"); clickLinkWithText("Add group", false); waitForBodyContains("Create new group".toUpperCase()); setField...
private void createGroup(String groupname) { openAdministrationPage(); administrationMenu.expandCategoryWithName("Users & Rights").getSectionByName("Users & Rights", "Groups").click(); waitForLiveTable("groupstable"); clickLinkWithText("Add group", false); <DeepExtract> waitForBodyContains("Create new group".toUpperCas...
xwiki-enterprise
positive
435,587
public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); N = Integer.parseInt(br.readLine()); StringTokenizer st = new StringTokenizer(br.readLine()); for (int i = 0; i < N; i++) { A[i] = Integer.parseInt(st.nextToken()); } st = new StringToke...
public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); N = Integer.parseInt(br.readLine()); StringTokenizer st = new StringTokenizer(br.readLine()); for (int i = 0; i < N; i++) { A[i] = Integer.parseInt(st.nextToken()); } st = new StringToke...
BOJ
positive
435,588
@ModelAttribute("cstipi") public List<CstIPI> cstIpi() { ModelAndView mv = new ModelAndView("tributacao/list"); mv.addObject("tributacoes", tributacoes.lista()); return mv; }
@ModelAttribute("cstipi") public List<CstIPI> cstIpi() { <DeepExtract> ModelAndView mv = new ModelAndView("tributacao/list"); mv.addObject("tributacoes", tributacoes.lista()); return mv; </DeepExtract> }
pdv
positive
435,589
public static String toStringAsV40ParamValue(String value) { if (TextUtils.isEmpty(value)) { value = ""; } final int asciiFirst = 0x20; final int asciiLast = 0x7E; final StringBuilder builder = new StringBuilder(); final int length = value.length(); boolean needQuote = false; for (int i = 0; i < length; i = value.offse...
public static String toStringAsV40ParamValue(String value) { <DeepExtract> if (TextUtils.isEmpty(value)) { value = ""; } final int asciiFirst = 0x20; final int asciiLast = 0x7E; final StringBuilder builder = new StringBuilder(); final int length = value.length(); boolean needQuote = false; for (int i = 0; i < length; i...
MyBluetoothDemo
positive
435,592
@Test(dependsOnMethods = "keywordExists") public final void KoThenKoWorks() throws ProcessingException { processor = spy(new DummyProcessor(WantedState.KO, WantedState.KO, ptr1, ptr2)); validator.validate(processor, report, BUNDLE, data); final JsonNode schema = any(FullData.class).getSchema().getNode(); final JsonPoin...
@Test(dependsOnMethods = "keywordExists") public final void KoThenKoWorks() throws ProcessingException { processor = spy(new DummyProcessor(WantedState.KO, WantedState.KO, ptr1, ptr2)); validator.validate(processor, report, BUNDLE, data); <DeepExtract> final JsonNode schema = any(FullData.class).getSchema().getNode(); ...
json-schema-validator
positive
435,594
@Test public void testBufferPackUnpack() throws Exception { super.testInteger(); }
@Test public void testBufferPackUnpack() throws Exception { <DeepExtract> super.testInteger(); </DeepExtract> }
msgpack-java
positive
435,596
@Override public Select select(long id) { selectString = ((SelectImpl) table.select(id)).selectString; columnString = ((SelectImpl) table.select(id)).columnString; fromString = ((SelectImpl) table.select(id)).fromString; orderByString = ((SelectImpl) table.select(id)).orderByString; limitString = ((SelectImpl) table.se...
@Override public Select select(long id) { <DeepExtract> selectString = ((SelectImpl) table.select(id)).selectString; columnString = ((SelectImpl) table.select(id)).columnString; fromString = ((SelectImpl) table.select(id)).fromString; orderByString = ((SelectImpl) table.select(id)).orderByString; limitString = ((Select...
DbQuery
positive
435,599
public void switchToPreviousTab() { String currentTab = webDriver.getWindowHandle(); List<String> openedTabs = new ArrayList<>(webDriver.getWindowHandles()); if (openedTabs.size() > 1) { int currentTabIndex = openedTabs.indexOf(currentTab); int tabToOpenIndex = (openedTabs.size() + currentTabIndex + -1) % openedTabs.si...
public void switchToPreviousTab() { <DeepExtract> String currentTab = webDriver.getWindowHandle(); List<String> openedTabs = new ArrayList<>(webDriver.getWindowHandles()); if (openedTabs.size() > 1) { int currentTabIndex = openedTabs.indexOf(currentTab); int tabToOpenIndex = (openedTabs.size() + currentTabIndex + -1) %...
bobcat
positive
435,600
public Builder clearJarServerUrl() { bitField0_ = (bitField0_ & ~0x00000080); java.lang.Object ref = jarServerUrl_; if (ref instanceof java.lang.String) { jarServerUrl_ = (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if...
public Builder clearJarServerUrl() { bitField0_ = (bitField0_ & ~0x00000080); <DeepExtract> java.lang.Object ref = jarServerUrl_; if (ref instanceof java.lang.String) { jarServerUrl_ = (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toSt...
Pistachio
positive
435,601
@Test public void testSearchByResourceChain() { Bundle resources; do { IQuery<Bundle> forResource = ourClient.search().forResource("Organization"); if (Organization.SP_NAME != null) { forResource = forResource.where(new StringClientParam(Organization.SP_NAME).matches().value("testSearchByResourceChainName01")); } resou...
@Test public void testSearchByResourceChain() { Bundle resources; do { IQuery<Bundle> forResource = ourClient.search().forResource("Organization"); if (Organization.SP_NAME != null) { forResource = forResource.where(new StringClientParam(Organization.SP_NAME).matches().value("testSearchByResourceChainName01")); } resou...
GT-FHIR
positive
435,602
protected void commitSync(java.util.function.BiConsumer<Consumer<String, String>, Map<TopicPartition, OffsetAndMetadata>> committer) throws InterruptedException { Properties properties = new Properties(); properties.put("key.serializer", "org.apache.kafka.common.serialization.StringSerializer"); properties.put("value.s...
protected void commitSync(java.util.function.BiConsumer<Consumer<String, String>, Map<TopicPartition, OffsetAndMetadata>> committer) throws InterruptedException { <DeepExtract> Properties properties = new Properties(); properties.put("key.serializer", "org.apache.kafka.common.serialization.StringSerializer"); propertie...
kbear
positive
435,603
public void creatOuCert(KeyStoreParam keyStoreParam, KeyStore rootkeyStore) { try { KeyPair keyPair = generateKeyPair(); X509Certificate rootCert = (X509Certificate) rootkeyStore.getCertificate(systemConfig.getAlias()); X500Principal x500Principal = rootCert.getIssuerX500Principal(); X500Name issuerDn = new X500Name(x5...
public void creatOuCert(KeyStoreParam keyStoreParam, KeyStore rootkeyStore) { <DeepExtract> try { KeyPair keyPair = generateKeyPair(); X509Certificate rootCert = (X509Certificate) rootkeyStore.getCertificate(systemConfig.getAlias()); X500Principal x500Principal = rootCert.getIssuerX500Principal(); X500Name issuerDn = n...
jbcc
positive
435,604
@SuppressWarnings("unchecked") public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { byte version = in.readByte(); if (version != 0) { super.readExternal(in); } int size = in.readInt(); int capacity; capacity = super.setUp(size); _values = (V[]) new Object[capacity]; return capacity; whi...
@SuppressWarnings("unchecked") public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { byte version = in.readByte(); if (version != 0) { super.readExternal(in); } int size = in.readInt(); <DeepExtract> int capacity; capacity = super.setUp(size); _values = (V[]) new Object[capacity]; return...
MachinaCraft
positive
435,608
@Override public void deactivate() { if (hasSelection()) { if (isDirty()) { commitSelection(); } abortSelection(); } if (isActive()) { getCanvas().removeCanvasCommitObserver(this); } MarchingAnts.getInstance().removeObserver(this); super.deactivate(); }
@Override public void deactivate() { <DeepExtract> if (hasSelection()) { if (isDirty()) { commitSelection(); } abortSelection(); } </DeepExtract> if (isActive()) { getCanvas().removeCanvasCommitObserver(this); } MarchingAnts.getInstance().removeObserver(this); super.deactivate(); }
jmonet
positive
435,610
public List<String> wordBreak(String s, List<String> dict) { if (s == null || s.length() == 0 || dict == null) { return null; } List<String> ret = new ArrayList<String>(); List<String> path = new ArrayList<String>(); int len = s.length(); if (0 == len) { StringBuilder sb = new StringBuilder(); for (String str : path) {...
public List<String> wordBreak(String s, List<String> dict) { if (s == null || s.length() == 0 || dict == null) { return null; } List<String> ret = new ArrayList<String>(); List<String> path = new ArrayList<String>(); <DeepExtract> int len = s.length(); if (0 == len) { StringBuilder sb = new StringBuilder(); for (String...
JavaInterview
positive
435,612
@Override public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) { super.render(entity, f, f1, f2, f3, f4, f5); gong1.rotateAngleY = entity.rotationYaw; gong2.rotateAngleY = entity.rotationYaw; gong3.rotateAngleY = entity.rotationYaw; gong4.rotateAngleY = entity.rotationYaw; gong5....
@Override public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) { super.render(entity, f, f1, f2, f3, f4, f5); <DeepExtract> gong1.rotateAngleY = entity.rotationYaw; gong2.rotateAngleY = entity.rotationYaw; gong3.rotateAngleY = entity.rotationYaw; gong4.rotateAngleY = entity.rotat...
YeGamolChattels
positive
435,614
@Override public void resetHard(String commitId) { return runCommand(Arrays.asList("reset --hard " + commitId.split(" "))); }
@Override public void resetHard(String commitId) { <DeepExtract> return runCommand(Arrays.asList("reset --hard " + commitId.split(" "))); </DeepExtract> }
startup-os
positive
435,615
@Override public void actionPerformed(ActionEvent actionEvent) { executor.getMachine().memory.reset(); executor.getMachine().clearLastExecReadWrite(); disassemblyView.clearLabelMap(); watchView.clearLabelMap(); cpuView.updateView(); disassemblyView.updateView(!executor.isRunning(), !executor.isRunning()); memoryView.up...
@Override public void actionPerformed(ActionEvent actionEvent) { executor.getMachine().memory.reset(); executor.getMachine().clearLastExecReadWrite(); disassemblyView.clearLabelMap(); watchView.clearLabelMap(); <DeepExtract> cpuView.updateView(); disassemblyView.updateView(!executor.isRunning(), !executor.isRunning());...
SicTools
positive
435,617
@Override public T getValue() { return (T) nvPairs.get((index << 1) + 1); }
@Override public T getValue() { <DeepExtract> return (T) nvPairs.get((index << 1) + 1); </DeepExtract> }
weibo-service
positive
435,620
public void removeFavorite(final List<Job> selectedJobs) { jenkinsSettings.removeFavorite(selectedJobs); jobTree.updateSelection(); if (jenkinsSettings.isFavoriteViewEmpty() && currentSelectedView instanceof FavoriteView) { favoriteView = null; loadView(jenkins.getPrimaryView()); } else { if (currentSelectedView instan...
public void removeFavorite(final List<Job> selectedJobs) { jenkinsSettings.removeFavorite(selectedJobs); <DeepExtract> jobTree.updateSelection(); </DeepExtract> if (jenkinsSettings.isFavoriteViewEmpty() && currentSelectedView instanceof FavoriteView) { favoriteView = null; loadView(jenkins.getPrimaryView()); } else { i...
jenkins-control-plugin
positive
435,624
@Test void readPosixPermissionOwnerExecuteAttributes() throws IOException { S3MockFactory.getS3ClientMock().bucket("bucketA").file("file", "content".getBytes(), build("posix:permissions", Sets.newHashSet(PosixFilePermission.OWNER_READ, PosixFilePermission.OWNER_EXECUTE))); FileSystem fs; try { fs = s3fsProvider.getFile...
@Test void readPosixPermissionOwnerExecuteAttributes() throws IOException { S3MockFactory.getS3ClientMock().bucket("bucketA").file("file", "content".getBytes(), build("posix:permissions", Sets.newHashSet(PosixFilePermission.OWNER_READ, PosixFilePermission.OWNER_EXECUTE))); <DeepExtract> FileSystem fs; try { fs = s3fsPr...
s3fs-nio
positive
435,625
public String sync() { Command<K, V, T> cmd = (Command<K, V, T>) c.sync(); if (c.multi != null && cmd.type != MULTI) return null; return c.await(cmd, timeout, unit); }
public String sync() { <DeepExtract> Command<K, V, T> cmd = (Command<K, V, T>) c.sync(); if (c.multi != null && cmd.type != MULTI) return null; return c.await(cmd, timeout, unit); </DeepExtract> }
lettuce
positive
435,626
private void sendAddresses() { List<NetworkAddress> addresses = ctx.getNodeRegistry().getKnownAddresses(1000, streams); sendingQueue.offer(new Inv.Builder().addInventoryVector(new Addr.Builder().addresses(addresses).build()).build()); updateIvCache(Collections.singletonList(new Addr.Builder().addresses(addresses).build...
private void sendAddresses() { List<NetworkAddress> addresses = ctx.getNodeRegistry().getKnownAddresses(1000, streams); <DeepExtract> sendingQueue.offer(new Inv.Builder().addInventoryVector(new Addr.Builder().addresses(addresses).build()).build()); updateIvCache(Collections.singletonList(new Addr.Builder().addresses(ad...
Jabit
positive
435,627
public ArrayList<Cluster> executeKmeansDTW(int k, int minNumElems) { ArrayList<Trajectory> workingTrajectories = trajectories; long startTime = System.nanoTime(); ArrayList<Cluster> kmeansDTWClusters = new ArrayList<Cluster>(); kmeansDTWClusters = KmeansDTW.execute(workingTrajectories, k); return kmeansDTWClusters; lon...
public ArrayList<Cluster> executeKmeansDTW(int k, int minNumElems) { ArrayList<Trajectory> workingTrajectories = trajectories; long startTime = System.nanoTime(); <DeepExtract> ArrayList<Cluster> kmeansDTWClusters = new ArrayList<Cluster>(); kmeansDTWClusters = KmeansDTW.execute(workingTrajectories, k); return kmeansDT...
TrajectoryClustering
positive
435,628
private void stopLocalMsgService() { Log.d(TAG, "disconnect server: " + mServiceAddress); this.isGoingStop = true; stopSelf(); }
private void stopLocalMsgService() { Log.d(TAG, "disconnect server: " + mServiceAddress); <DeepExtract> this.isGoingStop = true; </DeepExtract> stopSelf(); }
LEHomeMobile_android
positive
435,630
@Deprecated public float getBelowSum(int stackIndex) { if (mYVals == null) return 0; float remainder = 0f; int index = mYVals.length - 1; while (index > stackIndex && index >= 0) { remainder += mYVals[index]; index--; } return remainder; }
@Deprecated public float getBelowSum(int stackIndex) { <DeepExtract> if (mYVals == null) return 0; float remainder = 0f; int index = mYVals.length - 1; while (index > stackIndex && index >= 0) { remainder += mYVals[index]; index--; } return remainder; </DeepExtract> }
cgm-scanner
positive
435,631
public void setContentSize(int width, int height) { contentWidth = width; contentHeight = height; int w = getWidth(); int h = getHeight(); if (w == 0 || h == 0) { return; } MIN_ZOOM = Math.max(w / contentWidth, h / contentHeight); }
public void setContentSize(int width, int height) { contentWidth = width; contentHeight = height; <DeepExtract> int w = getWidth(); int h = getHeight(); if (w == 0 || h == 0) { return; } MIN_ZOOM = Math.max(w / contentWidth, h / contentHeight); </DeepExtract> }
redpin
positive
435,632
@Override public void addBone(FabrikBone3D bone) { mChain.add(bone); if (mChain.size() == 1) { mFixedBaseLocation.set(bone.getStartLocation()); mBaseboneConstraintUV = bone.getDirectionUV(); } mChainLength = 0.0f; for (FabrikBone3D aBone : this.mChain) { mChainLength += aBone.length(); } }
@Override public void addBone(FabrikBone3D bone) { mChain.add(bone); if (mChain.size() == 1) { mFixedBaseLocation.set(bone.getStartLocation()); mBaseboneConstraintUV = bone.getDirectionUV(); } <DeepExtract> mChainLength = 0.0f; for (FabrikBone3D aBone : this.mChain) { mChainLength += aBone.length(); } </DeepExtract> }
caliko
positive
435,633
public void actionPerformed(ActionEvent arg0) { host = tfHost.getText(); user = tfName.getText(); pass = tfPass.getText(); port = Integer.parseInt(tfPort.getText()); root.remove(connectionDlg); connectionDlg = null; session = new AwtSshSession(); session.connect(host, port, user, pass); term = new KindleTerminal(sessio...
public void actionPerformed(ActionEvent arg0) { host = tfHost.getText(); user = tfName.getText(); pass = tfPass.getText(); port = Integer.parseInt(tfPort.getText()); root.remove(connectionDlg); connectionDlg = null; session = new AwtSshSession(); session.connect(host, port, user, pass); term = new KindleTerminal(sessio...
KindleTERM
positive
435,636