idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,825,431 | public static void validatePMMLVsSchema(PMML pmml, InputSchema schema) {<NEW_LINE>List<Model> models = pmml.getModels();<NEW_LINE>Preconditions.checkArgument(models.size() == 1, "Should have exactly one model, but had %s", models.size());<NEW_LINE>Model model = models.get(0);<NEW_LINE><MASK><NEW_LINE>if (schema.isClass... | MiningFunction function = model.getMiningFunction(); |
1,027,067 | private void eglSetup(int width, int height) throws TranscodingException {<NEW_LINE>mEGL = (EGL10) EGLContext.getEGL();<NEW_LINE>mEGLDisplay = mEGL.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY);<NEW_LINE>if (!mEGL.eglInitialize(mEGLDisplay, null)) {<NEW_LINE>throw new TranscodingException("unable to initialize EGL10");<NEW_... | ] configs = new EGLConfig[1]; |
700,577 | public void commitTx() {<NEW_LINE>this.checkOpened();<NEW_LINE>CassandraSessionPool.Session session = this.sessions.session();<NEW_LINE>if (session.txState() != TxState.BEGIN) {<NEW_LINE>LOG.warn("Store {} expect state BEGIN than {} when commit()", this.<MASK><NEW_LINE>}<NEW_LINE>if (!session.hasChanges()) {<NEW_LINE>s... | store, session.txState()); |
1,086,528 | public void testThreadContextThatPropagatesApplicationContextOnly() throws Exception {<NEW_LINE>// config: propagated = APPLICATION, unchanged = "State", cleared = ALL_REMAINING<NEW_LINE>assertNotNull(appContext);<NEW_LINE>ClassLoader originalClassLoader = Thread.currentThread().getContextClassLoader();<NEW_LINE>tx.beg... | currentThread().setContextClassLoader(originalClassLoader); |
208,537 | public void presentLocalNotificationWithChannel(final ReadableMap data, final ReadableMap legacyChannelData, final Promise promise) {<NEW_LINE>HashMap<String, java.io.Serializable> details = new HashMap<>();<NEW_LINE>HashMap<String, Object> hashMap = data.toHashMap();<NEW_LINE>if (data.hasKey("categoryId")) {<NEW_LINE>... | channelId = data.getString("channelId"); |
1,170,945 | public void emitCode(CompilationResultBuilder crb, AMD64MacroAssembler masm) {<NEW_LINE>Register resultReg = getResultRegister();<NEW_LINE>int referenceSize = ConfigurationValues.getObjectLayout().getReferenceSize();<NEW_LINE>Constant inputConstant = asConstantValue(<MASK><NEW_LINE>if (masm.inlineObjects()) {<NEW_LINE>... | getInput()).getConstant(); |
859,617 | public void translate(TranslateTo translation) {<NEW_LINE>switch(translation) {<NEW_LINE>case CENTER:<NEW_LINE>this.position.x = 50f - scale.x / 2f;<NEW_LINE>this.position.y <MASK><NEW_LINE>break;<NEW_LINE>case BOTTOM:<NEW_LINE>this.position.x = 50f - scale.x / 2f;<NEW_LINE>this.position.y = 100f - scale.y;<NEW_LINE>br... | = 50f - scale.x / 2f; |
612,916 | static boolean hasDocumentTreePermission(Context context, SettingsManager settingsManager, List<DocumentFile> documentFiles, List<String> paths) {<NEW_LINE>boolean hasDocumentTreePermission = false;<NEW_LINE>String treeUri = getDocumentTree(context, settingsManager);<NEW_LINE>if (treeUri == null) {<NEW_LINE>// We don't... | .parse(treeUri), file); |
1,638,534 | private boolean isSegmentWithinTimeStamps(SegmentZKMetadata segmentMetadata, long startTimestamp, long endTimestamp, boolean excludeOverlapping) {<NEW_LINE>if (segmentMetadata == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>long startTimeMsInSegment = segmentMetadata.getStartTimeMs();<NEW_LINE><MASK><NEW_LINE>if ... | long endTimeMsInSegment = segmentMetadata.getEndTimeMs(); |
1,587,659 | public boolean copyToWorkspace(Workspace workspace) {<NEW_LINE>ProjectController projectController = Lookup.getDefault().lookup(ProjectController.class);<NEW_LINE>GraphController graphController = Lookup.getDefault().lookup(GraphController.class);<NEW_LINE>Workspace currentWorkspace = projectController.getCurrentWorksp... | edgesToRemove = new ArrayList<>(); |
595,304 | private void storeAsBinary(MySQLTimeVal timeVal) {<NEW_LINE>int scale = fieldType.getScale();<NEW_LINE>byte[] bytes = packedBinary;<NEW_LINE>long sec = timeVal.getSeconds();<NEW_LINE>long nano = timeVal.getNano();<NEW_LINE>// to store seconds value<NEW_LINE>int i0 = (int) sec;<NEW_LINE>bytes[3] = (byte) (i0 & 0xFF);<NE... | (nano / 10_000_000) & 0xFF); |
1,173,023 | final public void processYUV(final int y, final int u, final int v) {<NEW_LINE>int Y = 1191 * (y - 16);<NEW_LINE>int CR = u - 128;<NEW_LINE>int CB = v - 128;<NEW_LINE>// if( y < 0 ) y = 0;<NEW_LINE>Y = ((Y >>> 31) ^ 1) * Y;<NEW_LINE>int r = (Y + 1836 * CR) >> 10;<NEW_LINE>int g = (Y - 547 * CR - 218 * CB) >> 10;<NEW_LI... | >>> 31) ^ 1); |
1,446,511 | final RemoveTagsFromResourceResult executeRemoveTagsFromResource(RemoveTagsFromResourceRequest removeTagsFromResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(removeTagsFromResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,257,412 | public OutputProcessView makeView(ResultSetProcessor resultSetProcessor, AgentInstanceContext agentInstanceContext) {<NEW_LINE>// determine after-stuff<NEW_LINE>boolean isAfterConditionSatisfied = true;<NEW_LINE>Long afterConditionTime = null;<NEW_LINE>if (afterConditionNumberOfEvents != null) {<NEW_LINE>isAfterConditi... | agentInstanceContext, postProcess, eventTypes, changeSetStateMgmtSettings); |
853,724 | public // In that case we need to reuse the object from the cache as opposed to wrapping the new buffer.<NEW_LINE>void relocate(int oldPosition, int newPosition, ByteBuffer oldBuffer, ByteBuffer newBuffer) {<NEW_LINE>UpdateDoublesSketch sketch = sketches.get(oldBuffer).get(oldPosition);<NEW_LINE>final WritableMemory ol... | ).writableRegion(oldPosition, maxIntermediateSize); |
1,220,848 | private static String resolveRelativePath(IContributor contributor, String libPathAsString) {<NEW_LINE>String bundleName = contributor.getName();<NEW_LINE>Bundle bundle = Platform.getBundle(bundleName);<NEW_LINE>if (bundle == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>File bundleFile;<NEW_LINE>try {<NEW_LINE><MA... | bundleFile = FileLocator.getBundleFile(bundle); |
475,996 | private Set<ClassDescriptor> computeKnownSupertypes(ClassDescriptor classDescriptor) throws ClassNotFoundException {<NEW_LINE>LinkedList<ClassVertex> workList = new LinkedList<ClassVertex>();<NEW_LINE>ClassVertex startVertex = resolveClassVertex(classDescriptor);<NEW_LINE>workList.addLast(startVertex);<NEW_LINE>Set<Cla... | addLast(edge.getTarget()); |
1,573,001 | public static void main(String[] args) {<NEW_LINE>Exercise41_OddLengthDirectedCycle oddLengthDirectedCycle = new Exercise41_OddLengthDirectedCycle();<NEW_LINE><MASK><NEW_LINE>digraph1.addEdge(0, 1);<NEW_LINE>digraph1.addEdge(1, 2);<NEW_LINE>digraph1.addEdge(2, 3);<NEW_LINE>digraph1.addEdge(3, 0);<NEW_LINE>StdOut.printl... | Digraph digraph1 = new Digraph(4); |
55,264 | public int findTaxCategoryId(@NonNull final TaxCategoryQuery query) {<NEW_LINE>final IQueryBL queryBL = this.queryBL;<NEW_LINE>final IQueryBuilder<I_C_TaxCategory> queryBuilder = <MASK><NEW_LINE>final IQuery<I_C_Tax> querytaxes = queryBL.createQueryBuilder(I_C_Tax.class).addInArrayFilter(I_C_Tax.COLUMNNAME_C_Country_ID... | queryBL.createQueryBuilder(I_C_TaxCategory.class); |
566,422 | private void ellipsizeEmojiTextForMaxLines() {<NEW_LINE>post(() -> {<NEW_LINE>if (getLayout() == null) {<NEW_LINE>ellipsizeEmojiTextForMaxLines();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int maxLines = TextViewCompat.getMaxLines(EmojiTextView.this);<NEW_LINE>if (maxLines <= 0 && maxLength < 0) {<NEW_LINE>return;<NEW_LINE>... | getText().length()); |
507,713 | public Unit readUnit(final ByteBuffer buffer) {<NEW_LINE>if (!consumerLogV2Enable) {<NEW_LINE>final MessageLogIndex index = new MessageLogIndex(buffer.getLong(), buffer.getLong(), buffer.getInt(), buffer.getShort());<NEW_LINE>return Unit.fromMessageLogIndex(index);<NEW_LINE>}<NEW_LINE>final short magic = buffer.getShor... | throw new RuntimeException("illegal consumer log magic code " + magic); |
1,004,729 | @JavaType(internalName = "[Ljava/lang/management/ThreadInfo;")<NEW_LINE>public StaticObject DumpThreads(@JavaType(long[].class) StaticObject ids, boolean lockedMonitors, boolean lockedSynchronizers, @Inject SubstitutionProfiler profiler) {<NEW_LINE>StaticObject threadIds = ids;<NEW_LINE>if (StaticObject.isNull(threadId... | .getThreadId(activeThreads[j]); |
839,844 | public EventLogEntryEntity generateEventLogEntry(CommandContext commandContext) {<NEW_LINE>FlowableSignalEvent signalEvent = (FlowableSignalEvent) event;<NEW_LINE>Map<String, Object> data = new HashMap<>();<NEW_LINE>putInMapIfNotNull(data, Fields.ACTIVITY_ID, signalEvent.getActivityId());<NEW_LINE>putInMapIfNotNull(dat... | PROCESS_DEFINITION_ID, signalEvent.getProcessDefinitionId()); |
159,936 | final GetNamespaceDeletionStatusResult executeGetNamespaceDeletionStatus(GetNamespaceDeletionStatusRequest getNamespaceDeletionStatusRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getNamespaceDeletionStatusRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetNamespaceDeletionStatus"); |
595,044 | private void createTextDrawInfo(final BinaryMapDataObject o, RenderingRuleSearchRequest render, RenderingContext rc, TagValuePair pair, final float xMid, float yMid, Path path, final PointF[] points, String name, String tagName) {<NEW_LINE>render.setInitialTagValueZoom(pair.tag, pair.value, rc.zoom, o);<NEW_LINE>render... | render.ALL.R_NAME_TAG, tagName); |
1,456,694 | public void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) {<NEW_LINE>super.onBindViewHolder(viewHolder, item);<NEW_LINE>Video video = (Video) item;<NEW_LINE>ComplexImageCardView cardView = (ComplexImageCardView) viewHolder.view;<NEW_LINE>Context context = cardView.getContext();<NEW_LINE><MASK><NEW_LINE... | cardView.setTitleText(video.title); |
1,388,952 | public URLNormalizer removeSessionIds() {<NEW_LINE>if (StringUtils.containsIgnoreCase(url, ";jsessionid=")) {<NEW_LINE>url = url.replaceFirst("(;jsessionid=([A-F0-9]+)((\\.\\w+)*))", "");<NEW_LINE>} else {<NEW_LINE>String u = StringUtils.substringBefore(url, "?");<NEW_LINE>String q = StringUtils.substringAfter(url, "?"... | q.replaceFirst("(&|^)(PHPSESSID=[0-9a-zA-Z]*)", ""); |
1,472,329 | public final TopLevelDefContext topLevelDef() throws RecognitionException {<NEW_LINE>TopLevelDefContext _localctx = new <MASK><NEW_LINE>enterRule(_localctx, 20, RULE_topLevelDef);<NEW_LINE>try {<NEW_LINE>setState(146);<NEW_LINE>_errHandler.sync(this);<NEW_LINE>switch(_input.LA(1)) {<NEW_LINE>case MESSAGE:<NEW_LINE>ente... | TopLevelDefContext(_ctx, getState()); |
873,819 | protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException, ServletException {<NEW_LINE>String userId = InputParser.getQueryParamOrThrowError(req, "userId", true);<NEW_LINE>String thirdPartyId = InputParser.getQueryParamOrThrowError(req, "thirdPartyId", true);<NEW_LINE>String thirdPartyUs... | result.add("user", userJson); |
488,668 | public static JasperReport loadReport(Object source, BaseReportFiller filler) throws JRException {<NEW_LINE>JasperReport report;<NEW_LINE>if (source instanceof net.sf.jasperreports.engine.JasperReport) {<NEW_LINE>report = (JasperReport) source;<NEW_LINE>} else if (source instanceof java.io.InputStream) {<NEW_LINE>repor... | (), (String) source); |
1,741,748 | protected void downloadArtifactTo(URL artifactUrl, File pluginFile, IAsyncResultHandler<File> handler) {<NEW_LINE>InputStream istream = null;<NEW_LINE>OutputStream ostream = null;<NEW_LINE>try {<NEW_LINE>URLConnection connection = artifactUrl.openConnection();<NEW_LINE>// add the basic authentication contained in the U... | IOUtils.copy(istream, ostream); |
1,313,558 | public static void main(String[] args) {<NEW_LINE>final String USAGE = "\n" + "Usage:\n" + " GetBucketPolicy <bucket>\n\n" + "Where:\n" + " bucket - the bucket to get the policy from.\n\n" + "Example:\n" + " GetBucketPolicy testbucket\n\n";<NEW_LINE>if (args.length < 1) {<NEW_LINE>System.out.println(USAGE);<NE... | Regions.DEFAULT_REGION).build(); |
1,831,138 | public SOAPMessage invoke(SOAPMessage request) {<NEW_LINE>SOAPMessage response = null;<NEW_LINE>try {<NEW_LINE>System.out.println("Incoming Client Request as a SOAPMessage:");<NEW_LINE>request.writeTo(System.out);<NEW_LINE>String hdrText = request.getSOAPHeader().getTextContent();<NEW_LINE>System.out.println("Incoming ... | getSOAPPart().setContent(src); |
451,855 | private static void jj_la1_init_4() {<NEW_LINE>jj_la1_4 = new int[] { 0x0, 0xdffe0000, 0x0, 0x0, 0x0, 0x0, 0x80000000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x80000000, 0x0, 0x100, 0x0, 0x80000000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x80000000, 0x0, 0x0, 0x20, 0x20, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0... | 0x50000000, 0x0, 0x0, 0x100 }; |
5,630 | public GeckoResult<PromptResponse> onButtonPrompt(@NonNull GeckoSession geckoSession, @NonNull ButtonPrompt buttonPrompt) {<NEW_LINE>final GeckoResult<PromptResponse> <MASK><NEW_LINE>mPrompt = new ConfirmPromptWidget(mContext);<NEW_LINE>mPrompt.getPlacement().parentHandle = mAttachedWindow.getHandle();<NEW_LINE>mPrompt... | result = new GeckoResult<>(); |
550,131 | public void onClick(DialogInterface dialog, int item) {<NEW_LINE>if (items.get(item).value.startsWith("KP2ASPECIAL")) {<NEW_LINE>// change entry<NEW_LINE>String packageName = getApplicationContext().getPackageName();<NEW_LINE>Intent startKp2aIntent = getPackageManager().getLaunchIntentForPackage(packageName);<NEW_LINE>... | startKp2aIntent.addCategory(Intent.CATEGORY_LAUNCHER); |
894,090 | private // }<NEW_LINE>void readEntry(Config config, ResSpec spec) {<NEW_LINE>int size = in.getShort();<NEW_LINE>// ENTRY_FLAG_PUBLIC<NEW_LINE>int flags = in.getShort();<NEW_LINE>int keyStr = in.getInt();<NEW_LINE>spec.updateName(keyNamesX[keyStr]);<NEW_LINE>ResEntry resEntry = new ResEntry(flags, spec);<NEW_LINE>if (0 ... | int parent = in.getInt(); |
17,992 | public boolean visit(IResourceProxy proxy) throws CoreException {<NEW_LINE>switch(proxy.getType()) {<NEW_LINE>case IResource.FILE:<NEW_LINE>// GROOVY edit<NEW_LINE>// if (org.eclipse.jdt.internal.core.util.Util.isJavaLikeFileName(proxy.getName())) {<NEW_LINE>// GRECLIPSE-404 must call 'isJavaLikeFile' directly in order... | .removeFirstSegments(segmentCount), outputFolder); |
1,591,542 | public static List<String> applyFromExistingBlockList(@NonNull List<String> packageNames, int userHandle) {<NEW_LINE>List<String> failedPkgList = new ArrayList<>();<NEW_LINE>HashMap<String, RuleType> components;<NEW_LINE>for (String packageName : packageNames) {<NEW_LINE>components = PackageUtils.getUserDisabledCompone... | , components.get(componentName)); |
1,309,743 | public Object visit(ASTPackageBody node, Object data) {<NEW_LINE>LOGGER.entering(CLASS_NAME, "visit(ASTPackageBody)");<NEW_LINE>entryStack.push(new Entry(node));<NEW_LINE><MASK><NEW_LINE>Entry classEntry = entryStack.pop();<NEW_LINE>if (LOGGER.isLoggable(Level.FINEST)) {<NEW_LINE>LOGGER.finest("ASTPackageBody: Complexi... | super.visit(node, data); |
858,596 | private Request appendOkHttpRequestSpanTags(Request request, SofaTracerSpan sofaTracerSpan) {<NEW_LINE>if (sofaTracerSpan == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>// appName<NEW_LINE>String appName = SofaTracerConfiguration.getProperty(SofaTracerConfiguration.TRACER_APPNAME_KEY, StringUtils.EMPTY_STRING);<N... | Headers headers = request.headers(); |
1,580,722 | public void mouseReleased(MouseEvent evt) {<NEW_LINE>if (LOG.isLoggable(Level.FINE)) {<NEW_LINE>// NOI18N<NEW_LINE>LOG.fine("mouseReleased: " + logMouseEvent(evt<MASK><NEW_LINE>}<NEW_LINE>int offset = mouse2Offset(evt);<NEW_LINE>switch(mouseState) {<NEW_LINE>case DRAG_SELECTION_POSSIBLE:<NEW_LINE>setDot(offset);<NEW_LI... | ) + ", state=" + mouseState + '\n'); |
515,732 | public List<TextRange> select(final PsiElement e, final CharSequence editorText, final int cursorOffset, final Editor editor) {<NEW_LINE>final VirtualFile file = e.getContainingFile().getVirtualFile();<NEW_LINE>final FileType fileType = file == null ? null : file.getFileType();<NEW_LINE>if (fileType == null)<NEW_LINE>r... | BraceMatchingUtil.getBraceMatcher(fileType, iterator); |
1,108,061 | public static void multiMapYamlGenerator(Map<String, Object> parent, Config config) {<NEW_LINE>if (config.getMultiMapConfigs().isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Map<String, Object> child = new LinkedHashMap<>();<NEW_LINE>for (MultiMapConfig subConfigAsObject : config.getMultiMapConfigs().values()) {<NEW... | "binary", subConfigAsObject.isBinary()); |
1,655,779 | public static String[] read(ByteBuffer in) throws IOException {<NEW_LINE>int trunkOffset = in.position() - 8;<NEW_LINE>int stringCount = in.getInt();<NEW_LINE>int styleOffsetCount = in.getInt();<NEW_LINE>int flags = in.getInt();<NEW_LINE>int stringDataOffset = in.getInt();<NEW_LINE>int stylesOffset = in.getInt();<NEW_L... | + Integer.toHexString(trunkOffset)); |
669,714 | public boolean onInterceptTouchEvent(MotionEvent ev) {<NEW_LINE>if (!mEnabled)<NEW_LINE>return false;<NEW_LINE>final int action = ev.getAction() & MotionEventCompat.ACTION_MASK;<NEW_LINE>if (action == MotionEvent.ACTION_DOWN && DEBUG)<NEW_LINE>Log.v(TAG, "Received ACTION_DOWN");<NEW_LINE>if (action == MotionEvent.ACTIO... | ", " + yDiff + "), mLastMotionX:" + mLastMotionX); |
1,196,189 | private void informProjectNotification(final ViewNotificationContainer projectNotificationContainer, final SQLProvider provider) throws CouldntLoadDataException {<NEW_LINE>if (projectNotificationContainer.getDatabaseOperation().equals("INSERT")) {<NEW_LINE>final INaviProject project = projectNotificationContainer.getNo... | Integer viewId = projectNotificationContainer.getViewId(); |
1,403,976 | public synchronized void close(boolean drain) throws IOException {<NEW_LINE>closed = true;<NEW_LINE>if (drain) {<NEW_LINE>LOGGER.log(Level.FINE, "Draining process stream");<NEW_LINE>boolean running = false;<NEW_LINE>try {<NEW_LINE>process.exitValue();<NEW_LINE>} catch (IllegalThreadStateException ex) {<NEW_LINE>running... | log(Level.FINE, "Process is still running"); |
971,432 | public void updateDiscountAndPayment(final I_C_Payment payment, final int c_Invoice_ID, final I_C_DocType c_DocType) {<NEW_LINE>final // 1..2<NEW_LINE>String // 1..2<NEW_LINE>sql = // 3 #1<NEW_LINE>"SELECT C_BPartner_ID,C_Currency_ID," + // 4..5 #2/3<NEW_LINE>" invoiceOpen(C_Invoice_ID, ?)," + // #4<NEW_LINE>" invoiceD... | pstmt.setInt(3, c_Invoice_ID); |
345,647 | public void init(Item item, String bindingConfig) throws BindingConfigParseException {<NEW_LINE>this.itemName = item.getName();<NEW_LINE>this.item = item;<NEW_LINE>// separator symbol<NEW_LINE>String[] elements = bindingConfig.trim().split("#");<NEW_LINE>for (int i = 0; i < elements.length; i++) {<NEW_LINE>// symbol to... | item.getName() + " configuration: key is NULL"); |
484,513 | public static void createAndRegister() {<NEW_LINE>SubstrateTargetDescription target = ConfigurationValues.getTarget();<NEW_LINE>SubstrateRegisterConfig registerConfig = new SubstrateAArch64RegisterConfig(SubstrateRegisterConfig.ConfigKind.NORMAL, null, target, SubstrateOptions.PreserveFramePointer.getValue());<NEW_LINE... | calleeSavedRegisterOffsets.put(register, offset); |
766,520 | protected byte[] messageToMqttBytes(Message<?> message) {<NEW_LINE>if (this.bytesMessageMapper != null) {<NEW_LINE>try {<NEW_LINE>return this.bytesMessageMapper.fromMessage(message);<NEW_LINE>} catch (Exception e) {<NEW_LINE>throw new IllegalStateException("Failed to map outbound message", e);<NEW_LINE>}<NEW_LINE>} els... | Object payload = message.getPayload(); |
651,755 | final ListIntegrationsResult executeListIntegrations(ListIntegrationsRequest listIntegrationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listIntegrationsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | addHandlerContext(HandlerContextKey.SERVICE_ID, "Customer Profiles"); |
1,804,161 | protected void paintIcon(Graphics2D g2) {<NEW_LINE>final int state = 0;<NEW_LINE><MASK><NEW_LINE>var x = scale(state);<NEW_LINE>var y = scale(11) + scale(state);<NEW_LINE>final int[] xpos = { x, x + wh, scale(14), scale(3) };<NEW_LINE>final int[] ypos = { y, y, scale(14), scale(14) };<NEW_LINE>g2.setColor(Color.LIGHT_G... | final var wh = scale(12); |
1,111,728 | private Link lookupLink(List<Inter> systemStems, SystemInfo system, int profile) {<NEW_LINE>final Scale scale = system.getSheet().getScale();<NEW_LINE>final int xMargin = scale.toPixels((Scale.Fraction) constants.getConstant(constants.xMargin, profile));<NEW_LINE>final int yMargin = scale.toPixels((Scale.Fraction) cons... | Link(bestStem, bestRel, true); |
237,306 | public void scatterUpdate(ScatterUpdate.UpdateOp op, @NonNull INDArray array, @NonNull INDArray indices, @NonNull INDArray updates, @NonNull int[] axis) {<NEW_LINE>val tadX = tadManager.getTADOnlyShapeInfo(array, axis);<NEW_LINE>val tadY = <MASK><NEW_LINE>if (tadY.getSecond().length() != indices.length())<NEW_LINE>thro... | tadManager.getTADOnlyShapeInfo(updates, axis); |
389,239 | private MethodSpec modelConstructor(ObjectResolvedType type) {<NEW_LINE>Builder constructor = MethodSpec.constructorBuilder();<NEW_LINE>if (type.getName().equals("CustomFacet") || server) {<NEW_LINE>constructor.addModifiers(PUBLIC);<NEW_LINE>} else {<NEW_LINE>constructor.addModifiers(PRIVATE);<NEW_LINE>}<NEW_LINE>const... | f.getName(), schemaURL); |
788,018 | public void cancel() {<NEW_LINE>if (CANCELLED.compareAndSet(this, 0, 1)) {<NEW_LINE>if (WINDOW_COUNT.decrementAndGet(this) == 0) {<NEW_LINE>s.cancel();<NEW_LINE>cleanup();<NEW_LINE>} else if (!outputFused) {<NEW_LINE>if (WIP.getAndIncrement(this) == 0) {<NEW_LINE>// remove queued up but unobservable groups from the map... | >) g).cancel(); |
572,251 | /*<NEW_LINE>* The entry of replacing partitions with temp partitions.<NEW_LINE>*/<NEW_LINE>public void replaceTempPartition(Database db, String tableName, ReplacePartitionClause clause) throws DdlException {<NEW_LINE>List<String<MASK><NEW_LINE>// duplicate temp partition will cause Incomplete transaction<NEW_LINE>List<... | > partitionNames = clause.getPartitionNames(); |
1,529,467 | private void updateFrameConfig(boolean updateResizable) {<NEW_LINE>if (frame == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Update window opacity if the frame is undecorated, translucency capable and not fullscreen<NEW_LINE>if (frame.isUndecorated() && frame.getGraphicsConfiguration().isTranslucencyCapable() && fra... | .windowOpacity()) / 100.0f); |
1,127,993 | public static int lumaPlanePredSAD(boolean leftAvailable, boolean topAvailable, byte[] leftRow, byte[] topLine, byte topLeft, int x, byte[] pred) {<NEW_LINE>if (!leftAvailable || !topAvailable)<NEW_LINE>return Integer.MAX_VALUE;<NEW_LINE>int H = 0;<NEW_LINE>for (int i = 0; i < 7; i++) {<NEW_LINE>H += (i + 1) * (topLine... | - leftRow[6 - j]); |
1,757,054 | private Predicate<String> compile() {<NEW_LINE>ArrayList<Predicate<String>> predicates = new ArrayList<>();<NEW_LINE>if (!exact.isEmpty()) {<NEW_LINE>predicates.add(toSet(exact.get())::contains);<NEW_LINE>}<NEW_LINE>if (!glob.isEmpty()) {<NEW_LINE>GlobDictionary glob = GlobDictionary.compilePatterns(toSet(this.glob.get... | predicates.add(glob::test); |
832,883 | public String deleteTranslation(HttpServletRequest request, HttpServletResponse response, Model model, @PathVariable Map<String, String> pathVars, @ModelAttribute(value = "form") final TranslationForm form, BindingResult result) throws Exception {<NEW_LINE>adminRemoteSecurityService.securityCheck(form.getCeilingEntity(... | Translation.class.getName()); |
506,681 | public ActionResult<Void> movePartitions(@PathKeysParam PathKeys pathKeys, @ActionParam("partitions") String partitions, @ActionParam("targetHost") String targetHost, @ActionParam("notify") @Optional("true") boolean notify) {<NEW_LINE>String datastreamName = pathKeys.getAsString(KEY_NAME);<NEW_LINE>Datastream datastrea... | (partitions.split(",")); |
179,025 | public static MapPack appendThreadDetail(long thread_id, MapPack m) {<NEW_LINE>if (thread_id == 0)<NEW_LINE>return m;<NEW_LINE>ThreadMXBean tmb = ManagementFactory.getThreadMXBean();<NEW_LINE>ThreadInfo f = tmb.getThreadInfo(thread_id, 500);<NEW_LINE>if (f == null)<NEW_LINE>return m;<NEW_LINE>m.put("Thread Id", new Dec... | (f.getBlockedCount())); |
984,667 | List<StackSample> sample(Env env, TruffleContext context, CPUSampler.MutableSamplerData mutableSamplerData, boolean useSyntheticFrames, long timeout, TimeUnit timeoutUnit) {<NEW_LINE>if (context.isClosed()) {<NEW_LINE>return Collections.emptyList();<NEW_LINE>}<NEW_LINE>SampleAction action = cachedAction.getAndSet(null)... | long submitTime = System.nanoTime(); |
65,435 | private static URI toURI(File f) {<NEW_LINE>if (fileToPath != null) {<NEW_LINE>try {<NEW_LINE>URI u = (URI) pathToUri.invoke(fileToPath.invoke(f));<NEW_LINE>if (u.toString().startsWith("file:///")) {<NEW_LINE>// #214131 workaround<NEW_LINE>u = new URI(/* "file" */<NEW_LINE>u.getScheme(), /* null */<NEW_LINE>u.getUserIn... | String path = f.getAbsolutePath(); |
627,969 | public static DatasetFieldUrn createFromUrn(Urn urn) throws URISyntaxException {<NEW_LINE>if (!"li".equals(urn.getNamespace())) {<NEW_LINE>throw new URISyntaxException(urn.toString(), "Urn namespace type should be 'li'.");<NEW_LINE>} else if (!ENTITY_TYPE.equals(urn.getEntityType())) {<NEW_LINE>throw new URISyntaxExcep... | (1, String.class)); |
1,403,991 | private void parseAllTypeClause(IoTDBSqlParser.OldTypeClauseContext ctx, Map<TSDataType, IFill> fillTypes) {<NEW_LINE>IFill fill;<NEW_LINE>int defaultFillInterval = IoTDBDescriptor.getInstance().getConfig().getDefaultFillInterval();<NEW_LINE>if (ctx.linearClause() != null) {<NEW_LINE>// linear<NEW_LINE>if (ctx.linearCl... | DURATION_LITERAL(1).getText(); |
1,177,832 | public static void copyFilesFromJarToDir(String folderInJar, File targetDir) {<NEW_LINE>try {<NEW_LINE>final File jarFile = new File(FileUtil.class.getProtectionDomain().getCodeSource().getLocation().getPath());<NEW_LINE>if (jarFile.isFile()) {<NEW_LINE>JarFile jar = new JarFile(jarFile);<NEW_LINE>Enumeration<JarEntry>... | logger.info("Wrote: {}", newFile); |
814,299 | public void finalize(QueryStmt queryStmt) {<NEW_LINE>if (sink != null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (destNode != null) {<NEW_LINE>Preconditions.checkState(sink == null);<NEW_LINE>// we're streaming to an exchange node<NEW_LINE>DataStreamSink streamSink = new DataStreamSink(destNode.getId());<NEW_LINE>strea... | ResultSink(planRoot.getId()); |
1,822,250 | public Info traverseInfo(Info info) {<NEW_LINE>if (isTraversed(info)) {<NEW_LINE>return info;<NEW_LINE>}<NEW_LINE>if (previsit) {<NEW_LINE>info = visitor.visitInfo(this, info);<NEW_LINE>if (info == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>ancestors.push(info);<NEW_LINE>final Contact contact = info.g... | > extensions = info.getExtensions(); |
1,785,488 | private <R> RestResponse<R> makeKsqlRequest(final String ksql, final BiFunction<String, Long, RestResponse<R>> requestIssuer) {<NEW_LINE>final Long commandSequenceNumberToWaitFor = remoteServerState.getRequestPipelining() ? null : remoteServerState.getLastCommandSequenceNumber();<NEW_LINE>int retries = 0;<NEW_LINE>whil... | throw new KsqlRestClientException("Failed to execute request " + ksql); |
127,857 | public void forEachRemaining(IntConsumer action) {<NEW_LINE>if (accRef == null) {<NEW_LINE>source.forEachRemaining((IntConsumer) next -> {<NEW_LINE>if (started) {<NEW_LINE>acc = localOp.applyAsInt(acc, next);<NEW_LINE>} else {<NEW_LINE>acc = next;<NEW_LINE>started = true;<NEW_LINE>}<NEW_LINE>action.accept(acc);<NEW_LIN... | localOp.applyAsInt(prev, next); |
578,534 | static Map<String, String> toTokenPayload(final PwmRequest pwmRequest, final NewUserBean newUserBean) throws PwmUnrecoverableException {<NEW_LINE><MASK><NEW_LINE>newUserTokenData.setProfileID(newUserBean.getProfileID());<NEW_LINE>newUserTokenData.setFormData(newUserBean.getNewUserForm());<NEW_LINE>newUserTokenData.setI... | final NewUserTokenData newUserTokenData = new NewUserTokenData(); |
354,654 | public void hasSetOfHttpMethodReturnType(ExecutableElement element, ElementValidation valid) {<NEW_LINE>TypeMirror returnType = element.getReturnType();<NEW_LINE><MASK><NEW_LINE>if (!"java.util.Set<org.springframework.http.HttpMethod>".equals(returnTypeString)) {<NEW_LINE>valid.addError("%s annotated methods can only r... | String returnTypeString = returnType.toString(); |
163,325 | final DeleteStageResult executeDeleteStage(DeleteStageRequest deleteStageRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteStageRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | false), new DeleteStageResultJsonUnmarshaller()); |
1,175,470 | private int fillWithPartOfRange(ByteBuffer dst, Range sourceRange, long overlapBytes, int maxCopyLength) throws IOException {<NEW_LINE>int dstInitialPosition = dst.position();<NEW_LINE>if (sourceRange.data instanceof ByteBuffer) {<NEW_LINE>ByteBuffer src = (ByteBuffer) sourceRange.data;<NEW_LINE>src.limit((int) (source... | ).read(dst, start); |
1,360,108 | private void uiStartup(Shell shell) {<NEW_LINE>models = Models.create(shell, settings, handler, server.getClient(), window.getStatusBar());<NEW_LINE>widgets = Widgets.create(shell.getDisplay(), theme, server.getClient(), models);<NEW_LINE>Runnable onStart = () -> {<NEW_LINE>if (args.length == 1) {<NEW_LINE>models.captu... | , models, widgets, onStart)); |
36,056 | static Image create(String path, String completePath) {<NEW_LINE>try {<NEW_LINE>if (isUrl(path)) {<NEW_LINE>final Path dir = tempDir("Images");<NEW_LINE>final File file = dir.resolve(replaceNonWordChars(path)).toFile();<NEW_LINE>try (final InputStream in = new URL(path).openStream();<NEW_LINE>final OutputStream out = n... | image = ImageIO.read(file); |
9,506 | private Optional<List<Object[]>> onJdbc(String statement) {<NEW_LINE>String datasourceDs = null;<NEW_LINE>if (MetaClusterCurrent.exist(ReplicaSelectorManager.class)) {<NEW_LINE>ReplicaSelectorManager replicaSelectorManager = MetaClusterCurrent.wrapper(ReplicaSelectorManager.class);<NEW_LINE>datasourceDs = replicaSelect... | Statement jdbcStatement1 = rawConnection.createStatement(); |
936,251 | protected void addCommonProcessInstanceFields(ExecutionEntity processInstance, ObjectNode data) {<NEW_LINE>putIfNotNull(data, HistoryJsonConstants.ID, processInstance.getId());<NEW_LINE>putIfNotNull(data, HistoryJsonConstants.REVISION, processInstance.getRevision());<NEW_LINE>putIfNotNull(data, HistoryJsonConstants.PRO... | ).getProcessInstanceId() : null); |
953,897 | private JPanel makeParameterPanel() {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>leftBoundaryField = new JLabeledTextField(JMeterUtils.getResString("boundaryextractor_leftboundary_field"));<NEW_LINE>// $NON-NLS-1$<NEW_LINE>rightBoundaryField = new JLabeledTextField(JMeterUtils.getResString("boundaryextractor_rightboundary_field"... | add(emptyDefaultValue, BorderLayout.CENTER); |
478,740 | public void beforeConnect(DatabaseConnection dbconn) {<NEW_LINE>if (!dbconn.getDriver().equals("org.apache.derby.jdbc.EmbeddedDriver")) {<NEW_LINE>// NOI18N<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// force the database lock -- useful on Linux, see issue 63957<NEW_LINE>if (System.getProperty(DERBY_DATABASE_FORCE_LOCK) == n... | .getProperty("netbeans.user"), "derby"); |
871,891 | public void onBecomeOnlineFromOffline(Message message, NotificationContext context) {<NEW_LINE>_logger.info("SegmentOnlineOfflineStateModel.onBecomeOnlineFromOffline() : " + message);<NEW_LINE>String tableNameWithType = message.getResourceName();<NEW_LINE>String segmentName = message.getPartitionName();<NEW_LINE>try {<... | getTableTypeFromTableName(message.getResourceName()); |
298,306 | private PlanFragment constructShuffleJoin(AbstractPhysicalJoin<PhysicalPlan, PhysicalPlan> physicalHashJoin, HashJoinNode hashJoinNode, PlanFragment leftFragment, PlanFragment rightFragment, PlanTranslatorContext context) {<NEW_LINE>hashJoinNode.setDistributionMode(HashJoinNode.DistributionMode.PARTITIONED);<NEW_LINE>/... | > rhsJoinExprs = Lists.newArrayList(); |
1,623,055 | private int compareByResolvers(IndexerInfo<T> o1, IndexerInfo<T> o2) {<NEW_LINE>Collection<? extends String> mimeTypes1 = o1.getMimeTypes();<NEW_LINE>Collection<? extends String> mimeTypes2 = o2.getMimeTypes();<NEW_LINE>// check the all mime types category<NEW_LINE>boolean <MASK><NEW_LINE>boolean all2 = mimeTypes2.cont... | all1 = mimeTypes1.contains(ALL_MIME_TYPES); |
916,485 | private static void validateBucketColumns(ConnectorTableMetadata tableMetadata) {<NEW_LINE>Optional<HiveBucketProperty> bucketProperty = getBucketProperty(tableMetadata.getProperties());<NEW_LINE>if (bucketProperty.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Set<String> allColumns = tableMetadata.getColumns().str... | (sortedBy), partitionColumns))); |
1,793,104 | public void Output(IFragment<Long, Long, Long, Double> frag) {<NEW_LINE>executor.shutdown();<NEW_LINE>logger.info("frag: " + frag.fid(<MASK><NEW_LINE>logger.info("frag: " + frag.fid() + " receiveMessageTime: " + receiveMessageTime / 1000000000);<NEW_LINE>logger.info("frag: " + frag.fid() + " execTime: " + execTime / 10... | ) + " sendMessageTime: " + sendMessageTime / 1000000000); |
434,342 | public static UpdateExperimentStatusResponse unmarshall(UpdateExperimentStatusResponse updateExperimentStatusResponse, UnmarshallerContext _ctx) {<NEW_LINE>updateExperimentStatusResponse.setRequestId(_ctx.stringValue("UpdateExperimentStatusResponse.requestId"));<NEW_LINE>Result result = new Result();<NEW_LINE>result.se... | (_ctx.stringValue("UpdateExperimentStatusResponse.result.name")); |
1,752,110 | public static void usage() {<NEW_LINE>System.out.println("Usage: run_synthea [options] [state [city]]");<NEW_LINE>System.out.println("Options: [-s seed] [-cs clinicianSeed] [-p populationSize]");<NEW_LINE>System.out.println(" [-r referenceDate as YYYYMMDD]");<NEW_LINE>System.out.println(" [-e endDate as... | System.out.println("Examples:"); |
1,135,925 | protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_drawer);<NEW_LINE>// set up an authentication handler to take credentials for access to arcgis.com<NEW_LINE>AuthenticationChallengeHandler handler = new DefaultAuthenticationChalle... | = new Basemap(BasemapStyle.ARCGIS_STREETS); |
1,716,672 | private void showCollaboratorOptions() {<NEW_LINE>finder.find(R.id.tv_milestone_label).setVisibility(View.VISIBLE);<NEW_LINE>finder.find(R.id.ll_milestone).setVisibility(View.VISIBLE);<NEW_LINE>finder.find(R.id.tv_labels_label).setVisibility(View.VISIBLE);<NEW_LINE>finder.find(R.id.ll_labels).setVisibility(View.VISIBLE... | this, ISSUE_LABELS_UPDATE, repository, labelService); |
1,653,747 | private PickingJob loadJob(final I_M_Picking_Job record) {<NEW_LINE>final OrderId salesOrderId = OrderId.<MASK><NEW_LINE>final BPartnerLocationId deliveryBPLocationId = BPartnerLocationId.ofRepoId(record.getC_BPartner_ID(), record.getC_BPartner_Location_ID());<NEW_LINE>final OrgId orgId = OrgId.ofRepoId(record.getAD_Or... | ofRepoId(record.getC_Order_ID()); |
365,111 | private void executeClasses(final OHttpRequest iRequest, final OHttpResponse iResponse, final ODatabaseDocument db, final String operation, final String rid, final String className, final Map<String, String> fields) throws IOException {<NEW_LINE>if ("add".equals(operation)) {<NEW_LINE>iRequest.getData().commandInfo = "... | superClassName = fields.get("superClass"); |
1,501,520 | private DerivedFile derivedFile(ResultSet rs, CaseDbConnection connection, long parentId) throws SQLException {<NEW_LINE>// NON-NLS<NEW_LINE>boolean hasLocalPath = rs.getBoolean("has_path");<NEW_LINE>// NON-NLS<NEW_LINE>long objId = rs.getLong("obj_id");<NEW_LINE>String localPath = null;<NEW_LINE>TskData.EncodingType e... | localPath = rsFilePath.getString("path"); |
1,599,088 | public static ImageServer<BufferedImage> pyramidalizeTiled(ImageServer<BufferedImage> server, int tileWidth, int tileHeight, double... downsamples) {<NEW_LINE>var oldMetadata = server.getMetadata();<NEW_LINE>if (downsamples.length == 0) {<NEW_LINE>List<Double> downsampleList = new ArrayList<>();<NEW_LINE>double downsam... | server, tileWidth, tileHeight, downsamples); |
921,772 | private DatabaseAccountCreateUpdateParameters createUpdateParametersInner(DatabaseAccountGetResultsInner inner) {<NEW_LINE>this.ensureFailoverIsInitialized();<NEW_LINE>DatabaseAccountCreateUpdateParameters createUpdateParametersInner = new DatabaseAccountCreateUpdateParameters();<NEW_LINE>createUpdateParametersInner.wi... | withEnableMultipleWriteLocations(inner.enableMultipleWriteLocations()); |
961,887 | private static boolean isLineCommented(Block block, final int line, final Commenter commenter) {<NEW_LINE>boolean commented;<NEW_LINE>int lineEndForBlockCommenting = -1;<NEW_LINE>Document document <MASK><NEW_LINE>int lineStart = document.getLineStartOffset(line);<NEW_LINE>CharSequence chars = document.getCharsSequence(... | = block.editor.getDocument(); |
802,840 | public static Ext4Xattributes readInodeXAttributes(BinaryReader reader, long endOfInode) throws IOException {<NEW_LINE>if (reader.getPointerIndex() + Ext4XattrIbodyHeader.SIZEOF >= endOfInode) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Ext4XattrIbodyHeader eaHeader = new Ext4XattrIbodyHeader(reader);<NEW_LINE>if (!eaH... | "Bad Ext4XattrEntry: " + reader.getPointerIndex()); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.