idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
525,558
public void split(Path destDir, String[] segs) throws IOException {<NEW_LINE>Files.createDirectories(destDir);<NEW_LINE>FSDirectory destFSDir = FSDirectory.open(destDir);<NEW_LINE>SegmentInfos destInfos = new SegmentInfos(infos.getIndexCreatedVersionMajor());<NEW_LINE>destInfos.counter = infos.counter;<NEW_LINE>for (St...
Collections.emptyMap(), null);
1,746,560
private static int dbInstanceUrlCheck(String stmt, int offset) throws SQLSyntaxErrorException {<NEW_LINE>if (stmt.length() > offset + 11) {<NEW_LINE>char c2 = stmt.charAt(++offset);<NEW_LINE>char c3 = stmt.charAt(++offset);<NEW_LINE>char c4 = stmt.charAt(++offset);<NEW_LINE>char c5 = stmt.charAt(++offset);<NEW_LINE>cha...
= stmt.charAt(++offset);
951,940
private void initDefaultHighlightings() {<NEW_LINE>m_defaultHighlightings = new ArrayList<ColoringWord>(20);<NEW_LINE>m_defaultHighlightings.add(new ColoringWord("<scouter>", SWT.COLOR_BLUE, true));<NEW_LINE>m_defaultHighlightings.add(new ColoringWord("</scouter>", SWT.COLOR_BLUE, true));<NEW_LINE>m_defaultHighlighting...
, SWT.COLOR_BLUE, true));
1,477,915
public void marshall(CreateTriggerRequest createTriggerRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createTriggerRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createTriggerRequest.get...
createTriggerRequest.getStartOnCreation(), STARTONCREATION_BINDING);
1,517,483
private void validateAllInsertsMatchTheirConditionalUrls(Map<IIdType, DaoMethodOutcome> theIdToPersistedOutcome, Map<String, IIdType> conditionalUrlToIdMap, RequestDetails theRequest) {<NEW_LINE>conditionalUrlToIdMap.entrySet().stream().filter(entry -> entry.getKey() != null).forEach(entry -> {<NEW_LINE>String matchUrl...
daoMethodOutcome.getResource(), theRequest);
1,572,680
void decode(Decoder decoder, Instruction instruction) {<NEW_LINE>instruction.setCode(code);<NEW_LINE>instruction.setOp0Register(<MASK><NEW_LINE>instruction.setOp1Register(decoder.state_vvvv + Register.ZMM0);<NEW_LINE>int sss = decoder.getSss();<NEW_LINE>if (decoder.state_mod == 3) {<NEW_LINE>instruction.setOp2Register(...
decoder.state_reg + Register.K0);
1,410,242
/*<NEW_LINE>* Serialize parameter Object. Need to take special care of {@link Number} and<NEW_LINE>* {@link Date} instances since they should be of the correct type for late binding.<NEW_LINE>*/<NEW_LINE>private static void writeParam(Object v, DataOutput writer) throws IOException {<NEW_LINE>if (v instanceof Byte) {<N...
) v).doubleValue());
909,316
protected void sortNode(TreeTable table, Map<String, SortMeta> sortBy, AtomicInteger comparisonResult, TreeNode<?> node, FacesContext context, String var, Locale locale, Collator collator) {<NEW_LINE>TreeNodeList<?> children = (TreeNodeList) node.getChildren();<NEW_LINE>if (children != null && !children.isEmpty()) {<NE...
context, var, locale, collator);
355,494
public void onUpdateValueAfterReadResponse(Registration registration, String path, ReadResponse response) {<NEW_LINE>LwM2mNode content = response.getContent();<NEW_LINE>if (content != null) {<NEW_LINE>LwM2mClient lwM2MClient = clientContext.getClientByEndpoint(registration.getEndpoint());<NEW_LINE>ObjectModel objectMod...
path, Mode.UPDATE, responseCode);
791,532
private GeneratorResult generateSnapshotFiles(String apiName, String outdir, Map<String, ResourceModel> rootResourceMap, DocsProvider docsProvider) throws IOException {<NEW_LINE>SnapshotResult result = new SnapshotResult();<NEW_LINE>final File outdirFile = new File(outdir);<NEW_LINE>if (!outdirFile.exists()) {<NEW_LINE...
RuntimeException("Output directory '" + outdir + "' must be writeable");
308,107
public DescribeInstallationMediaResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeInstallationMediaResult describeInstallationMediaResult = new DescribeInstallationMediaResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NE...
new ArrayList<InstallationMedia>());
1,489,666
public String createDestinationTable() throws Exception {<NEW_LINE>LOGGER.info("[Stream {}] Creating destination table if it does not exist: {}", streamName, destTableName);<NEW_LINE>final String createStatement = // "create or replace" is the recommended way to replace existing table<NEW_LINE>destinationSyncMode == De...
.DEFAULT_TBL_PROPERTIES), schemaName, tmpTableName);
1,524,508
final DBClusterSnapshotAttributesResult executeModifyDBClusterSnapshotAttribute(ModifyDBClusterSnapshotAttributeRequest modifyDBClusterSnapshotAttributeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(modifyDBClusterSnapshotAttributeRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.star...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,432,974
public void evaluateMinimal(GeoModelEstimatorN<DMatrixRMaj, AssociatedPair> estimatorN) {<NEW_LINE>DistanceEpipolarConstraint distance = new DistanceEpipolarConstraint();<NEW_LINE>Estimate1ofEpipolar estimator = new EstimateNto1ofEpipolar(estimatorN, distance, 1);<NEW_LINE>scores = new ArrayList<>();<NEW_LINE>int faile...
System.out.println("Score is NaN");
1,447,101
private void handleWebSocketFrame(ChannelHandlerContext ctx, WebSocketFrame frame) {<NEW_LINE>if (frame instanceof CloseWebSocketFrame) {<NEW_LINE>this.handshaker.close(ctx.channel(), (CloseWebSocketFrame) frame.retain());<NEW_LINE>CompletableFuture.completedFuture(new WebSocketContext(this.session, this.handler)).then...
getClass().getName());
1,808,901
public final RestResourceContext restResource() throws RecognitionException {<NEW_LINE>RestResourceContext _localctx = new RestResourceContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 6, RULE_restResource);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState(43);<...
_errHandler.recover(this, re);
313,347
public static ListStrategiesResponse unmarshall(ListStrategiesResponse listStrategiesResponse, UnmarshallerContext context) {<NEW_LINE>listStrategiesResponse.setRequestId(context.stringValue("ListStrategiesResponse.RequestId"));<NEW_LINE>listStrategiesResponse.setSuccess(context.booleanValue("ListStrategiesResponse.Suc...
(context.stringValue("ListStrategiesResponse.Code"));
1,662,926
private void buildCommonVitalityImages() {<NEW_LINE>boolean canBuildStandalone = canBuildStandAlone();<NEW_LINE>if (canBuildStandalone && viPopout == null) {<NEW_LINE>// clone-able/popout-able<NEW_LINE>viPopout = addVitalityImage("popout_window");<NEW_LINE>viPopout.setToolTip(MessageText.getString("label.pop.out"));<NE...
) skin.getSkinObject("content-area"));
1,512,256
public void change(Database database, DatabaseSession databaseSession) throws NotImplementedException, BimserverDatabaseException {<NEW_LINE>EClass eClass = eAttribute.getEContainingClass();<NEW_LINE>KeyValueStore keyValueStore = database.getKeyValueStore();<NEW_LINE>for (EClass subClass : schema.getSubClasses(eClass))...
packageMetaData.getUnsettedLength(subClass, eAttribute);
1,423,138
public void downloadJasmine(FileObject libs) {<NEW_LINE>try {<NEW_LINE>// NOI18N<NEW_LINE>File jasmine = <MASK><NEW_LINE>// NOI18N<NEW_LINE>File jasmineJSTD = File.createTempFile("jasmine-jstd", "zip");<NEW_LINE>// NOI18N<NEW_LINE>download("https://github.com/pivotal/jasmine/zipball/v1.2.0", jasmine);<NEW_LINE>// NOI18...
File.createTempFile("jasmine", "zip");
1,318,183
protected void style() {<NEW_LINE>final Group ctrl = mControlP5.addGroup("menu", 15, 25, 35);<NEW_LINE>ctrl.setColorLabel(mParent.color(255));<NEW_LINE>ctrl.setColorBackground(mParent.color(100));<NEW_LINE>ctrl.close();<NEW_LINE>mParent.colorMode(PConstants.RGB, 255, 255, 255);<NEW_LINE>final int backgroundColor = 0x99...
(mParent.color(0));
921,067
public com.amazonaws.services.wafv2.model.WAFTagOperationException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.wafv2.model.WAFTagOperationException wAFTagOperationException = new com.amazonaws.services.wafv2.model.WAFTagOperationException(null);<NEW_LINE>int...
JsonToken token = context.getCurrentToken();
846,257
protected List<Example<Label>> generate() {<NEW_LINE>List<Example<Label>> <MASK><NEW_LINE>for (int i = 0; i < numSamples / 2; i++) {<NEW_LINE>double[] values = new double[2];<NEW_LINE>values[0] = Math.cos(Math.PI * ((double) i) / ((numSamples / 2) - 1));<NEW_LINE>values[1] = Math.sin(Math.PI * ((double) i) / ((numSampl...
list = new ArrayList<>();
1,580,144
private QualityInvoiceLine createQualityInvoiceLineDetail_RegularOrder(final IQualityInspectionOrder productionOrder, final BigDecimal overallAvgProducedQtyPerTU, final String labelToUse) {<NEW_LINE>//<NEW_LINE>// Extract parameters from regular manufacturing order<NEW_LINE>final IQualityInspectionLinesCollection quali...
setDescription(description.toString());
568,525
final GetVpcLinksResult executeGetVpcLinks(GetVpcLinksRequest getVpcLinksRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getVpcLinksRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,193,717
public SidewalkSendDataToDevice unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SidewalkSendDataToDevice sidewalkSendDataToDevice = new SidewalkSendDataToDevice();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth +...
int originalDepth = context.getCurrentDepth();
839,713
private DensityThreshold generateDensityThreshold(DensityThresholdKey key) {<NEW_LINE>long start = System.nanoTime();<NEW_LINE>DensityThreshold densityThreshold = new DensityThreshold();<NEW_LINE>try (DatabaseSession session = bimServer.getDatabase().createSession(OperationType.READ_ONLY)) {<NEW_LINE>Set<Long> roids = ...
LOGGER.error("", e);
40,114
public String signScript(final String pScript) {<NEW_LINE>final <MASK><NEW_LINE>final EnterPasswordDialog pwdDialog = new EnterPasswordDialog(UITools.getCurrentFrame(), false);<NEW_LINE>pwdDialog.setModal(true);<NEW_LINE>pwdDialog.setVisible(true);<NEW_LINE>if (pwdDialog.getResult() == EnterPasswordDialog.CANCEL) {<NEW...
ScriptContents content = new ScriptContents(pScript);
614,987
protected void updateContent() {<NEW_LINE>view.getViewTreeObserver().addOnScrollChangedListener(() -> {<NEW_LINE>boolean bottomScrollAvailable = view.canScrollVertically(1);<NEW_LINE>if (bottomScrollAvailable) {<NEW_LINE>target.showShadowButton();<NEW_LINE>} else {<NEW_LINE>target.hideShadowButton();<NEW_LINE>}<NEW_LIN...
(importTrackCard.build(mapActivity));
126,962
private void ratingListener(Rating rating) {<NEW_LINE>final Long movieId = rating.getMovieId();<NEW_LINE>countAndSumStorage.compute(movieId, (aLong, prevCountAndSum) -> {<NEW_LINE>if (prevCountAndSum != null) {<NEW_LINE>return new CountAndSum(prevCountAndSum.getCount() + 1, prevCountAndSum.getSum() + rating.getRating()...
1L, rating.getRating());
1,174,910
final DescribeRootFoldersResult executeDescribeRootFolders(DescribeRootFoldersRequest describeRootFoldersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeRootFoldersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
invoke(request, responseHandler, executionContext);
1,702,440
public Void process(ContainerRequestContext requestContext, ContainerResponseContext responseContext) {<NEW_LINE>int responseCode = responseContext.getStatus();<NEW_LINE>String method = requestContext.getMethod();<NEW_LINE>if (responseContext.getEntity() != null) {<NEW_LINE>String path = requestContext.getUriInfo().get...
getEntityReference(responseContext.getEntity());
204,429
protected void encodeList(FacesContext context, OrderList ol) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>String <MASK><NEW_LINE>UIComponent caption = ol.getFacet("caption");<NEW_LINE>String listStyleClass = OrderList.LIST_CLASS;<NEW_LINE>String columnGridClass = ol.getCo...
clientId = ol.getClientId(context);
42,198
public final static Py4JClass buildClass(Class<?> clazz, boolean sort) {<NEW_LINE>List<Py4JClass> classes = new ArrayList<Py4JClass>();<NEW_LINE>List<Py4JMethod> methods = new ArrayList<Py4JMethod>();<NEW_LINE>List<Py4JField> fields = new ArrayList<Py4JField>();<NEW_LINE>for (Class<?> memberClass : clazz.getDeclaredCla...
TypeUtil.getNames(interfaces) : null;
1,193,538
private static void processResourceInOrder(Class<?> annotatedClass, Map<Class<?>, ResourceModel> resourceModels, Map<String, ResourceModel> rootResourceModels) {<NEW_LINE>if (resourceModels.containsKey(annotatedClass)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Class<?> parentClass = getParentResourceClass(annotatedClass);...
getResourceClass().getCanonicalName());
623,684
public JSParserOptions putOptions(OptionValues optionValues) {<NEW_LINE>JSParserOptions opts = this;<NEW_LINE>int ecmaScriptVersion = ECMASCRIPT_VERSION.getValue(optionValues);<NEW_LINE>opts = opts.putEcmaScriptVersion(ecmaScriptVersion);<NEW_LINE>opts = opts.putSyntaxExtensions(SYNTAX_EXTENSIONS.hasBeenSet(optionValue...
(ANNEX_B.getValue(optionValues));
1,476,717
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>generateDefault = new javax.swing.JCheckBox();<NEW_LINE>defaultTemplate = new javax.swing.JTextField();<NEW_LINE>jLabel1 = new javax.swing.JLabel();<NEW_LINE>// NOI18N<NEW_LINE>org...
javax.swing.GroupLayout(this);
587,963
private //<NEW_LINE>Iterator<String> parse(Class<?> service, URL u) throws ServiceConfigurationError {<NEW_LINE>InputStream in = null;<NEW_LINE>BufferedReader r = null;<NEW_LINE>ArrayList<String> names = new ArrayList<>();<NEW_LINE>try {<NEW_LINE>// The problem is that by default, streams opened with<NEW_LINE>// u.open...
fail(service, "Error closing configuration file", y);
999,893
private int formatResultAndCountRows(String[] columns, Iterator<Record> records, LinePrinter output) {<NEW_LINE>List<Record> <MASK><NEW_LINE>int[] columnSizes = calculateColumnSizes(columns, topRecords, records.hasNext());<NEW_LINE>int totalWidth = 1;<NEW_LINE>for (int columnSize : columnSizes) {<NEW_LINE>totalWidth +=...
topRecords = take(records, numSampleRows);
1,401,698
protected void fillImage(CellWriteHandlerContext cellWriteHandlerContext, List<ImageData> imageDataList) {<NEW_LINE>if (CollectionUtils.isEmpty(imageDataList)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Integer rowIndex = cellWriteHandlerContext.getRowIndex();<NEW_LINE>Integer columnIndex = cellWriteHandlerContext.getColum...
(imageData.getBottom()));
1,800,310
private static void fillCheckbox(Graphics g, int width, int height) {<NEW_LINE>int x1 = scaleCoordinate(2.0450495f, 16, width);<NEW_LINE>int y1 = scaleCoordinate(9.4227722f, 16, height);<NEW_LINE>int x2 = <MASK><NEW_LINE>int y2 = scaleCoordinate(13.921746f, 16, height);<NEW_LINE>int x3 = scaleCoordinate(5.8675725f, 16,...
scaleCoordinate(5.8675725f, 16, width);
1,389,957
public void generateMetaInfo(Map<String, SortedSet<String>> metaInfo) throws IOException {<NEW_LINE>String dirName = CLDRConverter.DESTINATION_DIR + File.separator + "sun" + File.separator + "util" + File.separator + "cldr" + File.separator;<NEW_LINE>File dir = new File(dirName);<NEW_LINE>if (!dir.exists()) {<NEW_LINE>...
CLDRConverter.info("Generating file " + file);
60,007
public void marshall(UpdateWorkspaceRequest updateWorkspaceRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (updateWorkspaceRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(updateWorkspaceReq...
updateWorkspaceRequest.getWorkspaceId(), WORKSPACEID_BINDING);
1,814,066
void init(Context context, AttributeSet attrs, int defStyleAttr) {<NEW_LINE>TypedArray array = getContext().obtainStyledAttributes(attrs, R.styleable.QMUITopBar, defStyleAttr, 0);<NEW_LINE>mLeftBackDrawableRes = array.getResourceId(R.styleable.QMUITopBar_qmui_topbar_left_back_drawable_id, R.drawable.qmui_icon_topbar_ba...
getColorStateList(R.styleable.QMUITopBar_qmui_topbar_text_btn_color_state_list);
1,819,205
public EsHadoopException extractError(Map jsonMap) {<NEW_LINE>Object <MASK><NEW_LINE>EsHadoopException error = null;<NEW_LINE>if (err != null) {<NEW_LINE>// part of ES 2.0<NEW_LINE>if (err instanceof Map) {<NEW_LINE>Map m = ((Map) err);<NEW_LINE>err = m.get("root_cause");<NEW_LINE>if (err == null) {<NEW_LINE>error = ex...
err = jsonMap.get("error");
1,424,371
private static ValueBigint bitCount(Value v1) {<NEW_LINE>long c;<NEW_LINE>switch(v1.getValueType()) {<NEW_LINE>case Value.BINARY:<NEW_LINE>case Value.VARBINARY:<NEW_LINE>{<NEW_LINE>byte[] bytes = v1.getBytesNoCopy();<NEW_LINE>int l = bytes.length;<NEW_LINE>c = 0L;<NEW_LINE>int blocks = l >>> 3;<NEW_LINE>for (int i = 0;...
v1.getByte() & 0xff);
919,027
public Stream<SimilaritySummaryResult> overlap(@Name(value = "data", defaultValue = "null") List<Map<String, Object>> data, @Name(value = "config", defaultValue = "{}") Map<String, Object> config) {<NEW_LINE>ProcedureConfiguration configuration = ProcedureConfiguration.create(config);<NEW_LINE>CategoricalInput[] inputs...
inputIds = SimilarityInput.extractInputIds(inputs);
14,412
public static P<Object> parsePredicate(String predicate) {<NEW_LINE>Pattern pattern = Pattern.compile("^P\\.([a-z]+)\\(([\\S ]*)\\)$");<NEW_LINE>Matcher matcher = pattern.matcher(predicate);<NEW_LINE>if (!matcher.find()) {<NEW_LINE>throw new HugeException("Invalid predicate: %s", predicate);<NEW_LINE>}<NEW_LINE>String ...
0], params[1]);
666,872
public void handle(PrimaryStorageInventory pinv, ChangeVolumeTypeOnPrimaryStorageMsg msg, ReturnValueCompletion<ChangeVolumeTypeOnPrimaryStorageReply> completion) {<NEW_LINE>ChangeVolumeTypeOnPrimaryStorageReply reply = new ChangeVolumeTypeOnPrimaryStorageReply();<NEW_LINE>String originType = msg.getVolume().getType();...
getVolume().setType(originType);
597,972
protected <RESULT extends FileConfig> RESULT createEntity(Map<String, Object> source, Class<? extends RESULT> entityType) {<NEW_LINE>try {<NEW_LINE>final RESULT result = entityType.newInstance();<NEW_LINE>result.setAvailable(DfTypeUtil.toBoolean(source.get("available")));<NEW_LINE>result.setBoost(DfTypeUtil.toFloat(sou...
source.get("updatedTime")));
1,173,790
private URL checkURL(URL url) {<NEW_LINE>String protocol = url.getProtocol();<NEW_LINE>if (protocol == null) {<NEW_LINE>throw new RepositoryException(getMetadata().name(), "unknown url protocol from URL [" + url + "]");<NEW_LINE>}<NEW_LINE>for (String supportedProtocol : supportedProtocols) {<NEW_LINE>if (supportedProt...
LOGGER.warn("cannot parse the specified url [{}]", url);
482,459
private int move(MStorage target) {<NEW_LINE>log.info(target.toString());<NEW_LINE>BigDecimal qty = target.getQtyOnHand().negate();<NEW_LINE>// Create Movement<NEW_LINE>MMovement mh = new MMovement(getCtx(), 0, get_TrxName());<NEW_LINE>mh.setAD_Org_ID(target.getAD_Org_ID());<NEW_LINE>mh.setC_DocType_ID(p_C_DocType_ID);...
.getAD_Language()) + ")");
1,206,947
public int codePointBefore(int index) {<NEW_LINE>int currentLength = lengthInternal();<NEW_LINE>if (index > 0 && index <= currentLength) {<NEW_LINE>// Check if the StringBuilder is compressed<NEW_LINE>if (String.COMPACT_STRINGS && count >= 0) {<NEW_LINE>return helpers.byteToCharUnsigned(helpers.getByteFromArrayByIndex<...
(value, index - 1));
36,732
private void checkHealthIcon() {<NEW_LINE>if (!config.changeHealthIcon()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final BufferedImage newHeart;<NEW_LINE>final int poison = client.getVar(VarPlayer.IS_POISONED);<NEW_LINE>if (poison >= VENOM_THRESHOLD) {<NEW_LINE>newHeart = HEART_VENOM;<NEW_LINE>} else if (poison > 0) {<NE...
.getWidgetSpriteCache().reset();
881,428
public final Lambdef_nocondContext lambdef_nocond() throws RecognitionException {<NEW_LINE>Lambdef_nocondContext _localctx = new Lambdef_nocondContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 108, RULE_lambdef_nocond);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>se...
_localctx), getLastIndex(_localctx));
302,685
public final void onNext(@Nullable O value) {<NEW_LINE>if (value == null) {<NEW_LINE>emitEmpty(EmitFailureHandler.FAIL_FAST);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>for (; ; ) {<NEW_LINE>EmitResult emitResult = tryEmitValue(value);<NEW_LINE>if (emitResult.isSuccess()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>boolean should...
throw new EmissionException(emitResult, "Unknown emitResult value");
1,658,675
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>View v = inflater.inflate(R.layout.layout_drawlines, null);<NEW_LINE>btnRotateLeft = v.findViewById(R.id.btnRotateLeft);<NEW_LINE>btnRotateRight = v.findViewById(R.id.btnRotateRight);<NEW_LINE>btnRotateRight.set...
getOverlayManager().add(mRotationGestureOverlay);
180,539
private Collection<PsiField> filterSetterFields(@NotNull PsiClass psiClass) {<NEW_LINE>final Collection<PsiMethod> classMethods = PsiClassUtil.collectClassMethodsIntern(psiClass);<NEW_LINE>filterToleratedElements(classMethods);<NEW_LINE>SetterFieldProcessor fieldProcessor = getSetterFieldProcessor();<NEW_LINE>final Col...
(psiField.getType()));
1,744,947
public Clustering<BiclusterWithInversionsModel> biclustering() {<NEW_LINE>double[][] mat = RelationUtil.relationAsMatrix(relation, rowIDs);<NEW_LINE>BiclusterCandidate cand = new BiclusterCandidate(getRowDim(), getColDim());<NEW_LINE>Clustering<BiclusterWithInversionsModel> result = new Clustering<>();<NEW_LINE>Metadat...
rowcard + "x" + cand.colcard);
800,110
public void exportFieldRadio(JRPrintElement element) throws IOException {<NEW_LINE>String fieldName = element.getPropertiesMap().getProperty(PDF_FIELD_NAME);<NEW_LINE>fieldName = fieldName == null || fieldName.trim().length() == 0 ? "FIELD_" + element.getUUID() : fieldName;<NEW_LINE>PdfRadioCheck radioField = pdfProduc...
setBorderColor(pen.getLineColor());
1,811,618
protected void paintFigure(Graphics graphics) {<NEW_LINE>// paint the gradient<NEW_LINE>graphics.pushState();<NEW_LINE>org.eclipse.draw2d.geometry.Rectangle r = org.eclipse.draw2d.geometry.Rectangle.SINGLETON;<NEW_LINE>r.setBounds(getBounds());<NEW_LINE>// Added by Phillipus<NEW_LINE>// graphics.setForegroundColor(Pale...
graphics.fillGradient(r, true);
1,275,170
public String build() {<NEW_LINE>final FessConfig fessConfig = ComponentUtil.getFessConfig();<NEW_LINE>final int maxQueryLength = fessConfig.getQueryMaxLengthAsInteger();<NEW_LINE>final StringBuilder queryBuf = new StringBuilder(255);<NEW_LINE>final String query = buildBaseQuery();<NEW_LINE>if (StringUtil.isNotBlank(qu...
] values = entry.getValue();
341,297
public void validateConverters(Element element, ElementValidation valid) {<NEW_LINE>TypeMirror httpMessageConverterType = annotationHelper.typeElementFromQualifiedName(HTTP_MESSAGE_CONVERTER).asType();<NEW_LINE>TypeMirror httpMessageConverterTypeErased = annotationHelper.getTypeUtils().erasure(httpMessageConverterType)...
getTypeUtils().erasure(converterType);
778,533
public void addEvent(ProfileEvent event) {<NEW_LINE>if (needOutputOvertimeData.get()) {<NEW_LINE>this.outputOvertimeData();<NEW_LINE>this.needOutputOvertimeData.set(false);<NEW_LINE>}<NEW_LINE>// parse<NEW_LINE>String eventUid = event.getUid();<NEW_LINE>long dispatchTime = event.getRawLogTime() - event.getRawLogTime() ...
this.dispatchQueue.offer(oldDispatchProfile);
556,479
final public void run() {<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>while (true) {<NEW_LINE>try {<NEW_LINE>// Run concrete polling graph updater's implementation method.<NEW_LINE>runPolling();<NEW_LINE>if (pollingPeriodSeconds <= 0) {<NEW_LINE>// Non-positive polling period values mean to run the updater only once.<NEW_L...
LOG.info("Polling updater started: {}", this);
1,652,102
void synchronizeGroups() {<NEW_LINE>favoriteGroups.clear();<NEW_LINE>groups.clear();<NEW_LINE>List<FavoriteGroup> <MASK><NEW_LINE>List<FavoriteGroup> gs = helper.getFavoriteGroups();<NEW_LINE>Set<?> flt = filter;<NEW_LINE>for (FavoriteGroup key : gs) {<NEW_LINE>boolean empty = true;<NEW_LINE>if (flt == null || flt.cont...
disablesGroups = new ArrayList<>();
955,314
private AppendEntriesRequest prepareRequest(List<ByteBuffer> logList, List<SendLogRequest> currBatch, int firstIndex) {<NEW_LINE>AppendEntriesRequest request = new AppendEntriesRequest();<NEW_LINE>if (member.getHeader() != null) {<NEW_LINE>request.setHeader(member.getHeader());<NEW_LINE>}<NEW_LINE>request.setLeader(mem...
logger.error("getTerm failed for newly append entries", e);
328,454
private void makeGetNativeValueMethod(CodegenMethod method, CodegenClassScope classScope) {<NEW_LINE>if (desc.getNumFieldsSupertype() > 0) {<NEW_LINE>method.getBlock().ifCondition(relational(ref("num"), LT, constant(desc.getNumFieldsSupertype()))).blockReturn(exprDotMethod(ref("super"), <MASK><NEW_LINE>}<NEW_LINE>Codeg...
"getNativeValue", ref("num")));
893,754
static DaemonExpirationStrategy all(DaemonExpirationStrategy... strategies) {<NEW_LINE>return daemon -> {<NEW_LINE>// If no expiration strategies exist, the daemon will not expire.<NEW_LINE>DaemonExpirationResult expirationResult = NOT_TRIGGERED;<NEW_LINE>DaemonExpirationStatus expirationStatus = DO_NOT_EXPIRE;<NEW_LIN...
reasons = new ArrayList<>();
61,831
public void stateChanged(final ChangeEvent e) {<NEW_LINE>SwingUtilities.invokeLater(new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>String config = getSelectedConfig();<NEW_LINE>boolean preloaderEnabled = JFXProjectProperties.isTrue(configs.getPropertyTransparent(config, JFXProjectPr...
boolean preloaderClassAvailable = (e != null);
170,693
public void onRequestFinish(MegaApiJava api, MegaRequest request, MegaError e) {<NEW_LINE>log("onRequestFinish: " + request.getRequestString());<NEW_LINE>if (request.getType() == MegaRequest.TYPE_LOGIN) {<NEW_LINE>if (e.getErrorCode() == MegaError.API_OK) {<NEW_LINE>megaApi.fetchNodes(this);<NEW_LINE>} else {<NEW_LINE>...
String errorMessage = e.getErrorString();
136,803
Connection start() {<NEW_LINE>log.info("Starting PubSub connection");<NEW_LINE>ProjectSubscriptionName subscriptionName = ProjectSubscriptionName.of(projectId, subscriptionId);<NEW_LINE>FlowControlSettings flowControlSettings = FlowControlSettings.newBuilder().setMaxOutstandingElementCount(maxOutstandingElementCount).s...
}, MoreExecutors.directExecutor());
570,458
final DescribeDatasetImportJobResult executeDescribeDatasetImportJob(DescribeDatasetImportJobRequest describeDatasetImportJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeDatasetImportJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri...
invoke(request, responseHandler, executionContext);
1,015,864
public OperationExt copy(String pattern) {<NEW_LINE>OperationExt copy = new OperationExt(node, method, pattern, getParameters(), defaultResponse);<NEW_LINE>copy.setTags(getTags());<NEW_LINE>copy.setResponses(getResponses());<NEW_LINE>List<String> keys = Router.pathKeys(pattern);<NEW_LINE>List<Parameter> newParameters =...
copy.setServers(getServers());
595,259
public static void partialReduceFloatAdd(float[] inputArray, float[] outputArray, int gidx) {<NEW_LINE>float[] localArray = (float[]) NewArrayNode.newUninitializedArray(float.class, LOCAL_WORK_GROUP_SIZE);<NEW_LINE>int localIdx = SPIRVOCLIntrinsics.get_local_id(0);<NEW_LINE>int localGroupSize = SPIRVOCLIntrinsics.get_l...
[localIdx] = inputArray[gidx];
11,538
public static void main(String[] args) throws Exception {<NEW_LINE>// Configure SSL.<NEW_LINE>final SslContext sslCtx = SslContextBuilder.forClient().trustManager(InsecureTrustManagerFactory.INSTANCE).applicationProtocolConfig(new // NO_ADVERTISE is currently the only mode supported by both OpenSsl and JDK providers.<N...
b.channel(NioSocketChannel.class);
373,574
public static void main(String[] args) {<NEW_LINE>double[] array1 = { -5.2, 9.4, 20, -10, 21.1, 40, 50, -20 };<NEW_LINE>double[] array2 = { -4, -3, 0, 10, 20 };<NEW_LINE>double[] array3 = { -10, -3, 0, 2, 4, 20 };<NEW_LINE>double[] farthestPair1 = farthestPair(array1);<NEW_LINE>double[] farthestPair2 = farthestPair(arr...
+ farthestPair2[1] + " Expected: -4.0 20.0");
1,068,726
public static void dispatchAsyncServlet(Object asyncContext, String url) {<NEW_LINE>if (http == null)<NEW_LINE>return;<NEW_LINE>TraceContext ctx = http.getTraceContextFromAsyncContext(asyncContext);<NEW_LINE>if (ctx == null)<NEW_LINE>return;<NEW_LINE>boolean self = http.isSelfDispatch(asyncContext);<NEW_LINE>if (self) ...
step.address + "://" + url);
93,508
private Future<JsonObject> execute(RoutingContext rc, GraphQLQuery query) {<NEW_LINE>ExecutionInput.Builder builder = ExecutionInput.newExecutionInput();<NEW_LINE>builder.query(query.getQuery());<NEW_LINE>String operationName = query.getOperationName();<NEW_LINE>if (operationName != null) {<NEW_LINE>builder.operationNa...
registry = dlr.apply(rc);
1,622,992
public double solve(Target t, FeatureDefinition feaDef, boolean log, boolean debug) {<NEW_LINE>solution = 0.0f;<NEW_LINE>double lastPosSolution = 0.0;<NEW_LINE>if (interceptTerm) {<NEW_LINE>// the first factor is empty filled with "_" so it should not be used<NEW_LINE>solution = coeffs[0];<NEW_LINE>if (debug)<NEW_LINE>...
(" solution = %.3f (coeff[0])\n", coeffs[0]);
1,825,184
final ListServerNeighborsResult executeListServerNeighbors(ListServerNeighborsRequest listServerNeighborsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listServerNeighborsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
33,081
// DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY<NEW_LINE>public static int hashCode0(com.sun.jdi.Location a) {<NEW_LINE>if (org.netbeans.modules.debugger.jpda.JDIExceptionReporter.isLoggable()) {<NEW_LINE>org.netbeans.modules.debugger.jpda.JDIExceptionReporter.logCallStart("com.sun.jdi.Location", "hashCode", "JDI C...
new Object[] { a });
239,766
public String toAnnotatedString(String wcparentCSetId) {<NEW_LINE>StringBuilder sb = new StringBuilder().append(getRevisionNumber());<NEW_LINE>if (wcparentCSetId.equals(getCSetShortID())) {<NEW_LINE>sb.append(MARK_ACTIVE_HEAD);<NEW_LINE>}<NEW_LINE>StringBuilder labels = new StringBuilder();<NEW_LINE>for (String branch ...
(branch).append(' ');
1,707,557
private void openContribBundle(String path) {<NEW_LINE>EventQueue.invokeLater(() -> {<NEW_LINE>Editor editor = getActiveEditor();<NEW_LINE>if (editor == null) {<NEW_LINE>// Shouldn't really happen, but if it's still null, it's a no-go<NEW_LINE>Messages.showWarning("Failure is the only option", "Please open an Editor wi...
File contribFile = new File(path);
1,441,845
protected void calculatePath(RouterOperation routerOperation, Locale locale, OpenAPI openAPI) {<NEW_LINE>String operationPath = routerOperation.getPath();<NEW_LINE>io.swagger.v3.oas.annotations.Operation apiOperation = routerOperation.getOperation();<NEW_LINE>String[] methodConsumes = routerOperation.getConsumes();<NEW...
pathItem = paths.get(operationPath);
1,594,939
private boolean checkForRepeatedAction(Game sim, SimulationNode2 node, Ability action, UUID playerId) {<NEW_LINE>// pass or casting two times a spell multiple times on hand is ok<NEW_LINE>if (action instanceof PassAbility || action instanceof SpellAbility || action.getAbilityType() == AbilityType.MANA) {<NEW_LINE>retur...
playerId, prevGame).getTotalScore();
1,824,334
public DeleteResponse deleteImageVersion(final String imageType, final int versionId, final Boolean forceDelete) throws ImageMgmtException {<NEW_LINE>final DeleteResponse deleteResponse = imageMgmtCommonDao.deleteImageVersion(imageType, versionId, forceDelete);<NEW_LINE>// Check if there are errors and data. If present...
= new ImageVersionUsageDataDTO(imageVersionDTO, imageRampupPlanResponseDTOs);
444,924
public static void main(String[] args) {<NEW_LINE>EventGridPublisherClient<EventGridEvent> publisherClient = // make sure it accepts EventGridEvent<NEW_LINE>new EventGridPublisherClientBuilder().// make sure it accepts EventGridEvent<NEW_LINE>endpoint(System.getenv("AZURE_EVENTGRID_EVENT_ENDPOINT")).credential(new Azur...
= new User("John2", "James");
812,320
public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>setHasOptionsMenu(true);<NEW_LINE>View view = super.onCreateView(inflater, container, savedInstanceState);<NEW_LINE>feedItems = new ArrayList<>();<NEW_LINE>facebookFeedFragmentViewModel = ViewModelProvi...
= new LinearLayoutManager(getContext());
1,339,034
public void fill(final Supplier<E> s, final WaitStrategy w, final ExitCondition e) {<NEW_LINE>if (null == w)<NEW_LINE>throw new IllegalArgumentException("waiter is null");<NEW_LINE>if (null == e)<NEW_LINE>throw new IllegalArgumentException("exit condition is null");<NEW_LINE>if (null == s)<NEW_LINE>throw new IllegalArg...
offset, s.get());
1,185,848
protected void doConnect(String operator, DataSource dataSource) throws ErrorException {<NEW_LINE>if (dataSource.getConnectParams().containsKey("envId")) {<NEW_LINE>try {<NEW_LINE>dataSourceInfoService.addEnvParamsToDataSource(Long.parseLong((String) dataSource.getConnectParams().get("envId")), dataSource);<NEW_LINE>} ...
parameterValidator.validate(keyDefinitionList, connectParams);
1,066,446
boolean saveLists(List<KeywordList> lists) {<NEW_LINE>List<KeywordList> <MASK><NEW_LINE>List<KeywordList> newLists = new ArrayList<>();<NEW_LINE>for (KeywordList list : lists) {<NEW_LINE>if (this.listExists(list.getName())) {<NEW_LINE>overwritten.add(list);<NEW_LINE>} else {<NEW_LINE>newLists.add(list);<NEW_LINE>}<NEW_...
overwritten = new ArrayList<>();
550,577
private boolean postRead(Buffer buf) {<NEW_LINE>if (_readState != ReadStatePayload) {<NEW_LINE>// Returns true if data was read.<NEW_LINE>return _readStart < _readBuffer.b.position();<NEW_LINE>}<NEW_LINE>if (_readStart == buf.b.position()) {<NEW_LINE>// Nothing was read or nothing to read.<NEW_LINE>return false;<NEW_LI...
= buf.b.array();
539,790
private ProjectConfig assignConfigValue(List<ProjectApplication> applications) {<NEW_LINE>ProjectConfig config = new ProjectConfig();<NEW_LINE>Class<? extends ProjectConfig> clazz = config.getClass();<NEW_LINE>Field[<MASK><NEW_LINE>HashMap<String, String> map = applications.stream().collect(HashMap::new, (k, v) -> k.pu...
] fields = clazz.getDeclaredFields();
399,884
final SearchSystemInstancesResult executeSearchSystemInstances(SearchSystemInstancesRequest searchSystemInstancesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(searchSystemInstancesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
858,246
public PointSensitivities presentValueSensitivityFromCleanPrice(ResolvedCapitalIndexedBondTrade trade, RatesProvider ratesProvider, LegalEntityDiscountingProvider discountingProvider, ReferenceData refData, double cleanRealPrice) {<NEW_LINE>validate(ratesProvider, discountingProvider);<NEW_LINE>LocalDate valuationDate ...
PointSensitivityBuilder pvSensiDiff = PointSensitivityBuilder.none();
559,521
public MongodConfig embeddedMongoConfiguration(EmbeddedMongoProperties embeddedProperties) throws IOException {<NEW_LINE>ImmutableMongodConfig.Builder builder = MongodConfig.builder().version(determineVersion(embeddedProperties));<NEW_LINE>EmbeddedMongoProperties.Storage storage = embeddedProperties.getStorage();<NEW_L...
= this.properties.getPort();
1,813,760
public void execute(@Param("pipelineId") Long pipelineId, Context context) throws Exception {<NEW_LINE>Channel channel = channelService.findByPipelineId(pipelineId);<NEW_LINE>RealtimeThroughputCondition condition1 = new RealtimeThroughputCondition();<NEW_LINE>RealtimeThroughputCondition condition2 = new RealtimeThrough...
context.put("throughputStat1", throughputStat1);
108,373
public static void main(String[] args) {<NEW_LINE>Scanner input = new Scanner(System.in);<NEW_LINE>int numberOfTestCases = input.nextInt();<NEW_LINE>while (numberOfTestCases != 0) {<NEW_LINE>int A = input.nextInt();<NEW_LINE>int B = input.nextInt();<NEW_LINE>int C = input.nextInt();<NEW_LINE>boolean hasSolution = false...
System.out.println("No solution.");
393,080
private RateLimitResult checkRateLimitForMail(SingularityRequest request, SingularityEmailType emailType) {<NEW_LINE>RateLimitStatus currentStatus = getCurrentRateLimitForMail(request, emailType);<NEW_LINE>switch(currentStatus) {<NEW_LINE>case RATE_LIMITED:<NEW_LINE>return RateLimitResult.DONT_SEND_MAIL_IN_COOLDOWN;<NE...
long now = System.currentTimeMillis();