idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,133,697 | public static MethodBinding checkForContradictions(MethodBinding method, Object location, Scope scope) {<NEW_LINE>int start = 0, end = 0;<NEW_LINE>if (location instanceof InvocationSite) {<NEW_LINE>start = ((InvocationSite) location).sourceStart();<NEW_LINE>end = ((InvocationSite) location).sourceEnd();<NEW_LINE>} else... | (method, arguments[i]); |
1,273,444 | private Mono<Response<Void>> startWithResponseAsync(String resourceGroupName, String name, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<NEW_LINE>if (resourc... | getApiVersion(), accept, context); |
290,278 | public QueryIterator execute(OpQuadPattern opQuadPattern, QueryIterator input) {<NEW_LINE>Node gn = opQuadPattern.getGraphNode();<NEW_LINE>gn = decideGraphNode(gn, execCxt);<NEW_LINE>if (execCxt.getDataset() instanceof DatasetGraphTDB) {<NEW_LINE>DatasetGraphTDB ds = (DatasetGraphTDB) execCxt.getDataset();<NEW_LINE>Exp... | bgp, execCxt.getContext()); |
211,324 | public static void main(String[] args) {<NEW_LINE>Scanner sc = new Scanner(System.in);<NEW_LINE>Queue_LL q = new Queue_LL();<NEW_LINE>boolean flag = true;<NEW_LINE>int val = 0;<NEW_LINE>while (flag) {<NEW_LINE>System.out.println("1. Enqueue()");<NEW_LINE>System.out.println("2. Dequeue()");<NEW_LINE>System.out.println("... | System.out.println("5. View Queue"); |
860,217 | void addAll(String[] unmatched) {<NEW_LINE>if (setter != null) {<NEW_LINE>try {<NEW_LINE>setter.set(unmatched);<NEW_LINE>} catch (Exception ex) {<NEW_LINE>throw new PicocliException(String.format("Could not invoke setter (%s) with unmatched argument array '%s': %s", setter, Arrays.toString(unmatched), ex), ex);<NEW_LIN... | , getter, ex), ex); |
1,352,110 | final ListPlatformApplicationsResult executeListPlatformApplications(ListPlatformApplicationsRequest listPlatformApplicationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listPlatformApplicationsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
1,091,864 | void draw(Canvas canvas, GeometryWayContext context) {<NEW_LINE>if (style != null && style.getPointBitmap() != null) {<NEW_LINE>Bitmap bitmap = style.getPointBitmap();<NEW_LINE>Integer pointColor = style.getPointColor();<NEW_LINE>float paintH2 = bitmap.getHeight() / 2f;<NEW_LINE>float paintW2 = bitmap.getWidth() / 2f;<... | matrix, context.getPaintIcon()); |
1,323,567 | private void init(Context context, AttributeSet attrs) {<NEW_LINE>if (attrs != null) {<NEW_LINE>TypedArray a = context.obtainStyledAttributes(<MASK><NEW_LINE>final int count = a.getIndexCount();<NEW_LINE>for (int i = 0; i < count; i++) {<NEW_LINE>int attr = a.getIndex(i);<NEW_LINE>if (attr == R.styleable.MockView_mock_... | attrs, R.styleable.MockView); |
1,040,130 | private void fillParams(AcsRequest request) {<NEW_LINE><MASK><NEW_LINE>if (version != null) {<NEW_LINE>request.setSysVersion(version);<NEW_LINE>}<NEW_LINE>if (action != null) {<NEW_LINE>request.setSysActionName(action);<NEW_LINE>}<NEW_LINE>if (regionId != null) {<NEW_LINE>request.setSysRegionId(regionId);<NEW_LINE>}<NE... | request.putHeaderParameter("x-sdk-invoke-type", "common"); |
1,761,359 | private void showRewardedVideo() {<NEW_LINE>if (rewardedAd == null) {<NEW_LINE>Log.d("TAG", "The rewarded ad wasn't ready yet.");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>showVideoButton.setVisibility(View.INVISIBLE);<NEW_LINE>rewardedAd.setFullScreenContentCallback(new FullScreenContentCallback() {<NEW_LINE><NEW_LINE>@Ove... | Toast.LENGTH_SHORT).show(); |
257,301 | void decode(Decoder decoder, Instruction instruction) {<NEW_LINE>int gpr;<NEW_LINE>if ((decoder.state_zs_flags & StateFlags.W) != 0) {<NEW_LINE>instruction.setCode(code64);<NEW_LINE>gpr = Register.RAX;<NEW_LINE>} else {<NEW_LINE>instruction.setCode(code32);<NEW_LINE>gpr = Register.EAX;<NEW_LINE>}<NEW_LINE>instruction.s... | decoder.state_zs_extraRegisterBase + Register.XMM0); |
682,820 | //<NEW_LINE>@Override<NEW_LINE>public void log(TraceComponent logger) {<NEW_LINE>Tr.debug(logger, MessageFormat.format("Method [ {0} ]", getHashText()));<NEW_LINE>Tr.debug(logger, MessageFormat.format(" Name [ {0} ]", getName()));<NEW_LINE>for (ClassInfoImpl nextParameterType : getParameterTypes()) {<NEW_LINE>Tr.debug... | ().getHashText())); |
590,017 | public static SelectInContext createContext(AnActionEvent event) {<NEW_LINE><MASK><NEW_LINE>SelectInContext result = createEditorContext(dataContext);<NEW_LINE>if (result != null) {<NEW_LINE>return result;<NEW_LINE>}<NEW_LINE>JComponent sourceComponent = getEventComponent(event);<NEW_LINE>if (sourceComponent == null) {... | DataContext dataContext = event.getDataContext(); |
196,676 | private static // can't find a good import tool framework, may ref mysqlimport<NEW_LINE>void insertImportByRange(int X, List<CSVRecord> rows, SqlExecutor router, String dbName, String tableName) {<NEW_LINE>int quotient = rows.size() / X;<NEW_LINE>int remainder <MASK><NEW_LINE>// range is [left, right)<NEW_LINE>List<Pai... | = rows.size() % X; |
641,752 | public void readFields(Object object, JsonValue jsonMap) {<NEW_LINE>Class type = object.getClass();<NEW_LINE>OrderedMap<String, FieldMetadata> fields = getFields(type);<NEW_LINE>for (JsonValue child = jsonMap.child; child != null; child = child.next) {<NEW_LINE>FieldMetadata metadata = fields.get(child.name().replace("... | type.getName() + ")"); |
1,261,178 | public void store(DomRepresentation mailRep) throws IOException {<NEW_LINE>// Configure the XML Schema used for validation<NEW_LINE>Representation mailXsd = new ClientResource(LocalReference.createClapReference(getClass().getPackage()) + "/Mail.xsd").get();<NEW_LINE>mailRep.setSchema(mailXsd);<NEW_LINE>mailRep.setError... | accountRef = mailRep.getText("/:mail/rmep:accountRef"); |
726,650 | void uninstallFix(Collection<String> fixNames) throws InstallException {<NEW_LINE>fireProgressEvent(InstallProgressEvent.CHECK, 1, Messages.INSTALL_KERNEL_MESSAGES.getLogMessage("STATE_CHECKING_FIXES"));<NEW_LINE>Set<IFixInfo> fixInfoSet = FixAdaptor.getInstalledIFixes(product.getInstallDir());<NEW_LINE>uninstallAssets... | = new ArrayList<UninstallAsset>(); |
1,662,834 | public void clickDrawerItem(DrawerItem item) {<NEW_LINE>logDebug("Item: " + item);<NEW_LINE>Menu bNVMenu = bNV.getMenu();<NEW_LINE>if (item == null) {<NEW_LINE>drawerMenuItem = bNVMenu.findItem(R.id.bottom_navigation_item_cloud_drive);<NEW_LINE>onNavigationItemSelected(drawerMenuItem);<NEW_LINE>return;<NEW_LINE>}<NEW_L... | drawerLayout.closeDrawer(Gravity.LEFT); |
138,788 | public RxNormConcept unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>RxNormConcept rxNormConcept = new RxNormConcept();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<... | JsonToken token = context.getCurrentToken(); |
102,302 | public void handleLabelsFileUpload(FileUploadEvent event) {<NEW_LINE>logger.fine("entering handleUpload method.");<NEW_LINE>UploadedFile file = event.getFile();<NEW_LINE>if (file != null) {<NEW_LINE>InputStream uploadStream = null;<NEW_LINE>try {<NEW_LINE>uploadStream = file.getInputStream();<NEW_LINE>} catch (IOExcept... | ).addMessage(null, message); |
707,190 | public static DescribeSagHaResponse unmarshall(DescribeSagHaResponse describeSagHaResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeSagHaResponse.setRequestId(_ctx.stringValue("DescribeSagHaResponse.RequestId"));<NEW_LINE>describeSagHaResponse.setMode(_ctx.stringValue("DescribeSagHaResponse.Mode"));<NEW_LINE>List<... | ("DescribeSagHaResponse.TaskStates[" + i + "].CreateTime")); |
1,723,075 | private void loadNode0() {<NEW_LINE>UaMethodNode node = new UaMethodNode(this.context, Identifiers.TrustListType_OpenWithMasks, new QualifiedName(0, "OpenWithMasks"), new LocalizedText("en", "OpenWithMasks"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf<MASK><NEW_LINE>node.addReference(new Reference(... | (0), true, true); |
1,309,089 | public static String simpleTypeName(TypeMirror type) {<NEW_LINE>switch(type.getKind()) {<NEW_LINE>case ARRAY:<NEW_LINE>return simpleTypeName(((ArrayType) type).getComponentType()) + "[]";<NEW_LINE>case TYPEVAR:<NEW_LINE>return ((TypeVariable) type).asElement().getSimpleName().toString();<NEW_LINE>case DECLARED:<NEW_LIN... | type.getKind(), type); |
528,241 | public void nextError() {<NEW_LINE>SingleDocument document = getCurrentDocument();<NEW_LINE>if (document == null || docType != DocumentType.WRITER || !documents.isEnoughHeapSpace()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>XComponent xComponent = document.getXComponent();<NEW_LINE>DocumentCursorTools docCursor = new Docu... | ViewCursorTools viewCursor = new ViewCursorTools(xComponent); |
1,105,166 | public void updateWindow() throws Http2Exception {<NEW_LINE>if (!autoTuneFlowControlOn) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>pingReturn++;<NEW_LINE>long elapsedTime = (System.nanoTime() - lastPingTime);<NEW_LINE>if (elapsedTime == 0) {<NEW_LINE>elapsedTime = 1;<NEW_LINE>}<NEW_LINE>long bandwidth = (getDataSincePing()... | .toNanos(1)) / elapsedTime; |
962,375 | private void animate(double targetSeconds) {<NEW_LINE>if (!preDraw()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final List<CodeCacheEvent> events = codeCacheData.getEvents();<NEW_LINE>final int eventCount = events.size();<NEW_LINE>double framesPerSecond = 60;<NEW_LINE>double frameCount = targetSeconds * framesPerSecond;<N... | double) addressOffset / (double) addressRange; |
1,098,813 | final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | endClientExecution(awsRequestMetrics, request, response); |
298,028 | final public void shapeRef() throws ParseException {<NEW_LINE>Token t;<NEW_LINE>Node ref;<NEW_LINE>switch((jj_ntk == -1) ? jj_ntk_f() : jj_ntk) {<NEW_LINE>case ATPNAME_LN:<NEW_LINE>{<NEW_LINE>t = jj_consume_token(ATPNAME_LN);<NEW_LINE>ref = resolve_AT_PName(t.image, <MASK><NEW_LINE>break;<NEW_LINE>}<NEW_LINE>case ATPNA... | t.beginLine, t.beginColumn); |
986,285 | public DescribeSnapshotsResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeSnapshotsResult describeSnapshotsResult = new DescribeSnapshotsResult();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>targetDepth += 1;<NEW_L... | int originalDepth = context.getCurrentDepth(); |
1,346,492 | public void marshall(ListWirelessDevicesRequest listWirelessDevicesRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (listWirelessDevicesRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(listWi... | listWirelessDevicesRequest.getWirelessDeviceType(), WIRELESSDEVICETYPE_BINDING); |
215,080 | private void showErrorDialog(String errorMsg, String details) {<NEW_LINE>if (!isFinishing() && !isPaused) {<NEW_LINE>AlertDialog.Builder builder = new AlertDialog.Builder(this);<NEW_LINE>builder.setTitle(R.string.error_label);<NEW_LINE>if (errorMsg != null) {<NEW_LINE>String total = errorMsg + "\n\n" + details;<NEW_LIN... | SpannableString errorMessage = new SpannableString(total); |
203,183 | public void testCriteriaQuery_Short(TestExecutionContext testExecCtx, TestExecutionResources testExecResources, Object managedComponentObject) throws Throwable {<NEW_LINE>final String testName = getTestName();<NEW_LINE>// Verify parameters<NEW_LINE>if (testExecCtx == null || testExecResources == null) {<NEW_LINE>Assert... | , em.contains(findEntity)); |
1,015,102 | protected void translateAndSendBatch(ConsumerRecords<?, ?> records, Instant readTime) throws Exception {<NEW_LINE>// iterate through each topic partition one at a time, for better isolation<NEW_LINE>for (TopicPartition topicPartition : records.partitions()) {<NEW_LINE>for (ConsumerRecord<?, ?> record : records.records(... | (Collections.singleton(topicPartition)); |
1,612,152 | static String incorporateConstAnnotation(String annotations, int constValueIndex, boolean constValue) {<NEW_LINE>int start = annotations.indexOf("@Const");<NEW_LINE>int end = annotations.indexOf("@", start + 1);<NEW_LINE>if (end == -1) {<NEW_LINE>end = annotations.length();<NEW_LINE>}<NEW_LINE>String prefix = annotatio... | boolPattern = Pattern.compile(boolPatternStr); |
662,569 | protected void afterAttachNic(VmNicInventory nicInventory, boolean applyToBackend, Completion completion) {<NEW_LINE>VmNicVO vo = Q.New(VmNicVO.class).eq(VmNicVO_.uuid, nicInventory.getUuid()).find();<NEW_LINE>L3NetworkVO l3NetworkVO = Q.New(L3NetworkVO.class).eq(L3NetworkVO_.uuid, vo.getL3NetworkUuid()).find();<NEW_LI... | getUuid(), VirtualRouterVmVO.class); |
913,293 | private JPanel parallelTab(final ComponentAssembly boosters) {<NEW_LINE>JPanel motherPanel = new JPanel(new MigLayout("fill"));<NEW_LINE>// radial distance method<NEW_LINE>JLabel radiusMethodLabel = new JLabel(trans.get("RocketComponent.Position.Method.Radius.Label"));<NEW_LINE>motherPanel.add(radiusMethodLabel, "align... | (trans.get("StageConfig.parallel.radius")); |
633,418 | protected void checkChannelConstraints(final Element eChannel) throws FeedException {<NEW_LINE>checkNotNullAndLength(eChannel, "title", 1, 100);<NEW_LINE>checkNotNullAndLength(eChannel, "description", 1, 500);<NEW_LINE>checkNotNullAndLength(eChannel, "link", 1, 500);<NEW_LINE>checkNotNullAndLength(eChannel, "language",... | eChannel, "copyright", 1, 100); |
1,374,435 | final GetGroupResult executeGetGroup(GetGroupRequest getGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>R... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
498,122 | public static Pair<Boolean, Object> doInboundValueProcessing(String assetId, Attribute<?> attribute, AgentLink<?> agentLink, Object value) {<NEW_LINE>Pair<Boolean, Object> ignoreAndConvertedValue;<NEW_LINE>final AtomicReference<Object> valRef = new AtomicReference<>(value);<NEW_LINE>// value filtering<NEW_LINE>agentLin... | "Failed to convert value: " + fromType + " -> " + toType); |
1,152,891 | public static SuggestedEntityIdValue build(String id, String siteIRI, String label) {<NEW_LINE>String <MASK><NEW_LINE>if (DatatypeIdValue.DT_ITEM.equals(entityType)) {<NEW_LINE>return new SuggestedItemIdValue(id, siteIRI, label);<NEW_LINE>} else if (DatatypeIdValue.DT_PROPERTY.equals(entityType)) {<NEW_LINE>return new ... | entityType = EntityIdValueImpl.guessEntityTypeFromId(id); |
1,554,110 | public boolean matches() throws Exception {<NEW_LINE>Pattern p = Pattern.compile("\\s*_?\\s*(<|>|<=|>=)\\s*([-+]?[\\d]*\\.?[\\d]+)");<NEW_LINE>Matcher m = p.matcher(expression);<NEW_LINE>if (m.matches()) {<NEW_LINE>String op = m.group(1);<NEW_LINE>String <MASK><NEW_LINE>double operand = Double.parseDouble(operandString... | operandString = m.group(2); |
324,365 | @Path("backfill-memberships/{cursor_start}/{max_rows}")<NEW_LINE>@POST<NEW_LINE>@Consumes(APPLICATION_JSON)<NEW_LINE>@Produces(APPLICATION_JSON)<NEW_LINE>public void backfillMembershipsRowHmac(@PathParam("cursor_start") Long cursorStart, @PathParam("max_rows") Long maxRows) {<NEW_LINE>logger.info("backfill-memberships:... | 0).value1() - 1; |
1,604,151 | public StaticColumn unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>StaticColumn staticColumn = new StaticColumn();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_... | class).unmarshall(context)); |
620,509 | private static String updateSignature(String originalSignature, String annotatedSignature, int updatePosition, MergeStrategy mergeStrategy) {<NEW_LINE>StringBuffer buf = new StringBuffer();<NEW_LINE>String signatureToReplace;<NEW_LINE>String postfix = null;<NEW_LINE>if (updatePosition <= POSITION_TYPE_PARAMETER) {<NEW_... | wrapper.computeEnd()) + 1; |
1,507,473 | private String parseDN(String subject, String dNAttributeName) {<NEW_LINE>String temp = subject;<NEW_LINE>int begin = temp.toLowerCase().indexOf(dNAttributeName.toLowerCase() + "=");<NEW_LINE>if (begin == -1) {<NEW_LINE>return "";<NEW_LINE>}<NEW_LINE>temp = temp.substring(begin + dNAttributeName.length());<NEW_LINE>int... | temp.length() - 1); |
447,664 | private void showAlertDialog(final PreviewVideoError previewVideoError) {<NEW_LINE>new AlertDialog.Builder(requireActivity()).setMessage(previewVideoError.getErrorMessage()).setPositiveButton(android.R.string.VideoView_error_button, (dialog, whichButton) -> {<NEW_LINE>if (previewVideoError.isFileSyncNeeded() && mContai... | ).syncFile(getFile()); |
1,273,449 | private void pollingConsumer(MessageChannel channel) {<NEW_LINE>PollingConsumer pollingConsumer = new PollingConsumer((PollableChannel) channel, this.handler);<NEW_LINE>if (this.pollerMetadata == null) {<NEW_LINE>this.pollerMetadata = PollerMetadata.getDefaultPollerMetadata(this.beanFactory);<NEW_LINE>Assert.notNull(th... | this.pollerMetadata.getMaxMessagesPerPoll()); |
1,510,453 | public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "@name('create') create window MyWindow#keepall as SupportEventWithManyArray;\n" + "insert into MyWindow select * from SupportEventWithManyArray;\n" + "on SupportEventWithIntArray as sewia " + "update MyWindow as mw set value = sewia.value " + "where mw... | , { "ID3", 11 } }); |
1,689,214 | public ScheduledWindowExecution unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ScheduledWindowExecution scheduledWindowExecution = new ScheduledWindowExecution();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NE... | class).unmarshall(context)); |
1,415,422 | public void onRun() throws IOException {<NEW_LINE>if (!SignalStore.account().isRegistered()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int count = 0;<NEW_LINE>List<ReportSpamData> reportSpamData = SignalDatabase.mmsSms().getReportSpamMessageServerData(threadId, timestamp, MAX_MESSAGE_COUNT);<NEW_LINE>SignalServiceAccountM... | ) + " messages in thread " + threadId + " as spam"); |
472,490 | public IHarvestResult harvestBlock(@Nonnull final IFarmer farm, @Nonnull final BlockPos pos, @Nonnull IBlockState state) {<NEW_LINE>boolean hasHoe = farm.hasTool(FarmingTool.HOE);<NEW_LINE>if (!hasHoe || !farm.checkAction(FarmingAction.HARVEST, FarmingTool.HOE)) {<NEW_LINE>return new HarvestResult();<NEW_LINE>}<NEW_LIN... | farm.getLootingValue(FarmingTool.HOE); |
217,208 | public synchronized IndexLocation computeIndexLocation(IPath containerPath, final URL newIndexURL) {<NEW_LINE>IndexLocation indexLocation = (IndexLocation) this.indexLocations.get(containerPath);<NEW_LINE>if (indexLocation == null) {<NEW_LINE>if (newIndexURL != null) {<NEW_LINE>indexLocation = IndexLocation.createIndex... | getIndexStates().getKey(indexLocation); |
370,398 | public void run() {<NEW_LINE>while (running) {<NEW_LINE>Set<Integer> serverSet = ServerManager.getInstance().getOpenServerList();<NEW_LINE>for (final int serverId : serverSet) {<NEW_LINE>TcpProxy tcp = TcpProxy.getTcpProxy(serverId);<NEW_LINE>try {<NEW_LINE>MapPack param = paramMap.get(serverId);<NEW_LINE>if (param == ... | final AlertPack alert = (AlertPack) packet; |
857,797 | protected void freeEntryCheckGeneric(GCHeapLinkedFreeHeader freeListEntry) throws CorruptDataException, CorruptFreeEntryException {<NEW_LINE>MM_HeapLinkedFreeHeaderPointer freeListEntryAddress = freeListEntry.getHeader();<NEW_LINE>UDATA size = freeListEntry.getSize();<NEW_LINE>GCHeapRegionDescriptor region = getRegion(... | throw new CorruptFreeEntryException("freeEntryCorrupt", freeListEntryAddress); |
720,098 | private String generateCurlCommand(String url, CurlLoggedRequestParameters requestParameters) {<NEW_LINE>StringBuilder builder = new StringBuilder("curl ");<NEW_LINE>// HTTP method<NEW_LINE>builder.append("-X ").append(requestParameters.getHttpMethod()).append(" ");<NEW_LINE>// Request headers<NEW_LINE>for (Map.Entry<S... | append(header.getValue()); |
1,484,379 | public void defineStream(StreamDefinition streamDefinition) {<NEW_LINE>DefinitionParserHelper.validateDefinition(streamDefinition, streamDefinitionMap, tableDefinitionMap, windowDefinitionMap, aggregationDefinitionMap);<NEW_LINE>AbstractDefinition currentDefinition = streamDefinitionMap.putIfAbsent(streamDefinition.get... | addEventSource(streamDefinition, sourceMap, siddhiAppContext); |
1,385,171 | public String format(ValidationEvent event) {<NEW_LINE>StringWriter writer = new StringWriter();<NEW_LINE>Formatter formatter = new Formatter(writer);<NEW_LINE>formatter.format("%s: %s (%s)%n", event.getSeverity(), event.getShapeId().map(ShapeId::toString).orElse("-"), event.getId());<NEW_LINE>if (event.getSourceLocati... | getHumanReadableFilename(event.getSourceLocation()); |
480,120 | public void run(RegressionEnvironment env) {<NEW_LINE>EPCompiled base = env.compile("@name('basevar') @public create constant variable int basevar = 1");<NEW_LINE>EPCompiled child0 = env.compile("@name('s0') select basevar from SupportBean", new RegressionPath<MASK><NEW_LINE>EPCompiled child1 = env.compile("@name('chil... | ().add(base)); |
1,305,277 | public PartitionGroup[] coalesce(int maxPartitions, RDD<?> parent) {<NEW_LINE>if (maxPartitions != parent.getNumPartitions()) {<NEW_LINE>throw new IllegalArgumentException("Cannot use " + getClass().getSimpleName() + " with a different number of partitions to the parent RDD.");<NEW_LINE>}<NEW_LINE>List<Partition> parti... | (partitions.get(i)); |
109,648 | final GetGroupResult executeGetGroup(GetGroupRequest getGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>R... | endClientExecution(awsRequestMetrics, request, response); |
222,869 | private static void addDependenciesToMap(String referrer, InputStream data, Map<String, Set<String>> depsMap, Set<String> siblings, File jar) throws IOException {<NEW_LINE>int shell = referrer.indexOf('$', referrer<MASK><NEW_LINE>String referrerTopLevel = shell == -1 ? referrer : referrer.substring(0, shell);<NEW_LINE>... | .lastIndexOf('/') + 1); |
1,176,233 | public void handleFollowReturnsPastSeeds(Abstraction d1, Unit u, Abstraction d2) {<NEW_LINE>SootMethod sm = manager.getICFG().getMethodOf(u);<NEW_LINE>Set<AccessPathPropagator> <MASK><NEW_LINE>if (propagators != null) {<NEW_LINE>for (AccessPathPropagator propagator : propagators) {<NEW_LINE>// Propagate these taints up... | propagators = getUserCodeTaints(d1, sm); |
922,352 | public void marshall(Integration integration, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (integration == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(integration.getType(), TYPE_BINDING);<NEW_LINE>prot... | integration.getRequestParameters(), REQUESTPARAMETERS_BINDING); |
1,500,419 | public void onMerge(OnMergeContext c) throws Exception {<NEW_LINE>// NOTE that the ReduceFnRunner will delete all end-of-window timers for the<NEW_LINE>// merged-away windows.<NEW_LINE>ExecutableTriggerStateMachine earlySubtrigger = c.<MASK><NEW_LINE>// We check the early trigger to determine if we are still processing... | trigger().subTrigger(EARLY_INDEX); |
1,786,018 | public static short floatToHalf(float fVal) {<NEW_LINE>int bits = Float.floatToIntBits(fVal);<NEW_LINE>int sign = bits >>> 16 & 0x8000;<NEW_LINE>int val = (bits & 0x7fffffff) + 0x1000;<NEW_LINE>if (val >= 0x47800000) {<NEW_LINE>if ((bits & 0x7fffffff) >= 0x47800000) {<NEW_LINE>if (val < 0x7f800000) {<NEW_LINE>return (s... | & 0x007fffff) >>> 13); |
272,209 | private void cleanProjects(Session session) {<NEW_LINE>LOGGER.trace("Project cleaning");<NEW_LINE>var alias = "pr";<NEW_LINE>var deleteProjectsQueryString = new StringBuilder("FROM ").append(ProjectEntity.class.getSimpleName()).append(" ").append(alias).append(" WHERE ").append(alias).append(".").append(ModelDBConstant... | ().getTimeInMillis() - 300000; |
740,702 | private void findExpressionNames(Node nullCompareVariable, List<String> results) {<NEW_LINE>for (int i = 0; i < nullCompareVariable.getNumChildren(); i++) {<NEW_LINE>Node child = nullCompareVariable.getChild(i);<NEW_LINE>if (child instanceof ASTName) {<NEW_LINE>// Variable names and some method calls<NEW_LINE>results.a... | ) child).getImage()); |
1,586,815 | public List<VolumeVO> returnAttachableVolumes(VmInstanceInventory vm, List<VolumeVO> candidates) {<NEW_LINE>// find instantiated volumes<NEW_LINE>List<String> volUuids = CollectionUtils.transformToList(candidates, new Function<String, VolumeVO>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public String call(VolumeVO arg) ... | createQuery(sql, String.class); |
106,240 | protected void update() throws BuildException {<NEW_LINE>Collection<String> files = reportFilesMap.keySet();<NEW_LINE>if (files != null && files.size() > 0) {<NEW_LINE>boolean isError = false;<NEW_LINE>System.out.println("Updating " + <MASK><NEW_LINE>String srcFileName = null;<NEW_LINE>String destFileName = null;<NEW_L... | files.size() + " report design files."); |
900,902 | private void handleAJAXAction(final HttpServletRequest req, final HttpServletResponse resp, final Session session) throws ServletException, IOException {<NEW_LINE>final HashMap<String, Object> <MASK><NEW_LINE>final String ajaxName = getParam(req, "ajax");<NEW_LINE>if (API_FETCH_TRIGGER.equals(ajaxName)) {<NEW_LINE>if (... | ret = new HashMap<>(); |
786,620 | private void loadNode42() {<NEW_LINE>DataTypeEncodingTypeNode node = new DataTypeEncodingTypeNode(this.context, Identifiers.AddNodesItem_Encoding_DefaultBinary, new QualifiedName(0, "Default Binary"), new LocalizedText("en", "Default Binary"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), UByte.va... | .expanded(), false)); |
1,822,006 | public void onBindViewHolder(ViewHolderReferralBonuses holder, int position) {<NEW_LINE>logDebug("onBindViewHolderList");<NEW_LINE>((ViewHolderReferralBonusesList) holder).imageView.setImageBitmap(null);<NEW_LINE>ReferralBonus referralBonus = (ReferralBonus) getItem(position);<NEW_LINE>holder.contactMail = referralBonu... | ).getAbsolutePath(), listener); |
417,324 | public boolean nextFold() {<NEW_LINE>if (assignMatrixList == null) {<NEW_LINE>assignMatrixList = new LinkedList<>();<NEW_LINE>return true;<NEW_LINE>} else {<NEW_LINE>if (assignMatrixList.size() > 0) {<NEW_LINE>SequentialAccessSparseMatrix assign = assignMatrixList.poll();<NEW_LINE>trainMatrix = preferenceMatrix.clone()... | matrixEntry.columnPosition(), 0.0D); |
1,236,296 | public void onInitBaseChatPie(@NonNull ViewGroup aioRootView, @NonNull Parcelable session, @NonNull Context ctx, @NonNull AppRuntime rt) {<NEW_LINE>int inputTextId = ctx.getResources().getIdentifier("input", <MASK><NEW_LINE>EditText input = aioRootView.findViewById(inputTextId);<NEW_LINE>Objects.requireNonNull(input, "... | "id", ctx.getPackageName()); |
326,765 | public static void commitCriticalExceptionRT(@Nullable final String instanceId, @Nullable final WXErrorCode errCode, @Nullable final String function, @Nullable final String exception, @Nullable final Map<String, String> extParams) {<NEW_LINE>try {<NEW_LINE>WXLogUtils.e("weex", "commitCriticalExceptionRT :" + errCode + ... | checkNeedReportCauseRepeat(instanceId, errCode, exception); |
566,107 | public void eventOccurred(PeerManagerEvent event) {<NEW_LINE>final Peer peer = event.getPeer();<NEW_LINE>if (event.getType() == PeerManagerEvent.ET_PEER_ADDED) {<NEW_LINE>peer.addListener(new PeerListener2() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void eventOccurred(PeerEvent event) {<NEW_LINE>if (event.getType(... | (Integer) event.getData(); |
1,772,877 | public static DescribeParentPlatformsResponse unmarshall(DescribeParentPlatformsResponse describeParentPlatformsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeParentPlatformsResponse.setRequestId(_ctx.stringValue("DescribeParentPlatformsResponse.RequestId"));<NEW_LINE>describeParentPlatformsResponse.setPageSize... | ("DescribeParentPlatformsResponse.Platforms[" + i + "].Status")); |
389,779 | public DdlContext copy() {<NEW_LINE>DdlContext res = new DdlContext();<NEW_LINE>res.setJobId(getJobId());<NEW_LINE>res.setDdlType(getDdlType());<NEW_LINE>res.setSchemaName(getSchemaName());<NEW_LINE>res.setObjectName(getObjectName());<NEW_LINE>res.setTraceId(getTraceId());<NEW_LINE><MASK><NEW_LINE>GeneralUtil.addAllIfN... | res.setDdlStmt(getDdlStmt()); |
1,044,551 | public Mono<Void> disposeLater(Duration quietPeriod, Duration timeout) {<NEW_LINE>return Mono.defer(() -> {<NEW_LINE>long quietPeriodMillis = quietPeriod.toMillis();<NEW_LINE>long timeoutMillis = timeout.toMillis();<NEW_LINE>EventLoopGroup serverLoopsGroup = serverLoops.get();<NEW_LINE>EventLoopGroup clientLoopsGroup =... | EventLoopGroup cacheNativeServerGroup = cacheNativeServerLoops.get(); |
247,634 | public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = "symbol".split(",");<NEW_LINE>String text = "@name('s0') select irstream * from SupportMarketDataBean#length_batch(3)";<NEW_LINE>env.compileDeployAddListenerMileZero(text, "s0");<NEW_LINE>env<MASK><NEW_LINE>env.milestone(1);<NEW_LINE>env.sendEventB... | .sendEventBean(makeMarketDataEvent("E1")); |
674,571 | public com.amazonaws.services.dax.model.SubnetGroupNotFoundException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.dax.model.SubnetGroupNotFoundException subnetGroupNotFoundException = new com.amazonaws.services.dax.model.SubnetGroupNotFoundException(null);<NE... | String currentParentElement = context.getCurrentParentElement(); |
1,798,391 | // create publish version task for transaction<NEW_LINE>public List<PublishVersionTask> createPublishVersionTask() {<NEW_LINE>List<PublishVersionTask> <MASK><NEW_LINE>if (this.hasSendTask()) {<NEW_LINE>return tasks;<NEW_LINE>}<NEW_LINE>Set<Long> publishBackends = this.getPublishVersionTasks().keySet();<NEW_LINE>// publ... | tasks = new ArrayList<>(); |
1,055,479 | protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>// Mapbox access token is configured here. This needs to be called either in your application<NEW_LINE>// object or in the same activity which contains the mapview.<NEW_LINE>Mapbox.getInstance(this, getString(R.st... | findViewById(R.id.mapView); |
1,192,685 | private Mono<Response<Void>> breakPairingWithResponseAsync(String resourceGroupName, String namespaceName, String alias, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<N... | error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null.")); |
144,989 | public static RubyClass createThreadClass(Ruby runtime) {<NEW_LINE>// FIXME: In order for Thread to play well with the standard 'new' behavior,<NEW_LINE>// it must provide an allocator that can create empty object instances which<NEW_LINE>// initialize then fills with appropriate data.<NEW_LINE>RubyClass threadClass = ... | rubyThread, Thread.currentThread()); |
867,381 | public static GetProjectTaskInfoResponse unmarshall(GetProjectTaskInfoResponse getProjectTaskInfoResponse, UnmarshallerContext _ctx) {<NEW_LINE>getProjectTaskInfoResponse.setRequestId(_ctx.stringValue("GetProjectTaskInfoResponse.RequestId"));<NEW_LINE>getProjectTaskInfoResponse.setSuccessful(_ctx.booleanValue("GetProje... | (_ctx.stringValue("GetProjectTaskInfoResponse.Object.StartDate")); |
1,776,320 | private void analyzeCall(RexCall call, Constancy callConstancy) {<NEW_LINE>parentCallTypeStack.push(call.getOperator());<NEW_LINE>// visit operands, pushing their states onto stack<NEW_LINE>super.visitCall(call);<NEW_LINE>// look for NON_CONSTANT operands<NEW_LINE>int operandCount = call.getOperands().size();<NEW_LINE>... | Util.last(stack, operandCount); |
1,670,534 | public ApplicationStubs execute(EntityManagerContainer emc) throws Exception {<NEW_LINE>Business business = new Business(emc);<NEW_LINE><MASK><NEW_LINE>Set<String> ids = new HashSet<>();<NEW_LINE>ids.addAll(this.listApplicationFromTask(business, dateRange));<NEW_LINE>ids.addAll(this.listApplicationFromTaskCompleted(bus... | DateRange dateRange = this.getDateRange(); |
337,217 | public boolean addRunningEffects(BlockState state, Level world, BlockPos pos, Entity entity) {<NEW_LINE>if (state.getValue(FACING) == Direction.UP) {<NEW_LINE>Vec3 Vector3d = entity.getDeltaMovement();<NEW_LINE>world.addParticle(new BlockParticleOption(ParticleTypes.BLOCK, Blocks.SLIME_BLOCK.defaultBlockState()).setPos... | , Vector3d.z * -4.0D); |
416,824 | static int lastByteIndexOfString(AbstractTruffleString a, AbstractTruffleString b, int fromIndexB, int toIndexB, byte[] mask, Encoding expectedEncoding, @Cached ToIndexableNode toIndexableNodeA, @Cached ToIndexableNode toIndexableNodeB, @Cached TStringInternalNodes.GetCodeRangeNode getCodeRangeANode, @Cached TStringInt... | toIndex = rawIndex(toIndexB, expectedEncoding); |
204,554 | protected Job createJob() {<NEW_LINE>final Collection<BootDashElement> selecteds = getSelectedElements();<NEW_LINE>if (!selecteds.isEmpty()) {<NEW_LINE>boolean riskAccepted = ui().confirmWithToggle("ngrok.tunnel.warning.state", "Really Expose local service on public internet?", "The ngrok tunnel uses a third-party serv... | "Restarting: " + el.getName()); |
1,783,914 | private void deleteDestLocalizations(JsBus bus) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {<NEW_LINE>SibTr.entry(tc, "deleteDestLocalizations", this);<NEW_LINE>}<NEW_LINE>Iterator i = alterDestinations.iterator();<NEW_LINE>while (i.hasNext()) {<NEW_LINE>String key = (String) i.next();<... | CLASS_NAME + ".deleteDestLocalizations", "1", this); |
1,823,246 | public void handle(SimulationEvent event) {<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>Map<String, ResourceEntity> resources = (Map<String, ResourceEntity>) event.getProperty(resourcesKey);<NEW_LINE>List<InputStream> inputStreams = new ArrayList<>();<NEW_LINE>try {<NEW_LINE>DeploymentBuilder deploymentBuilder = S... | .getRepositoryService().createDeployment(); |
194,893 | final DeleteRegistrationCodeResult executeDeleteRegistrationCode(DeleteRegistrationCodeRequest deleteRegistrationCodeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteRegistrationCodeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_... | invoke(request, responseHandler, executionContext); |
1,407,874 | protected void updateProfileButton() {<NEW_LINE>View view = getView();<NEW_LINE>if (view == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>View profileButton = view.<MASK><NEW_LINE>if (profileButton != null && currentScreenType != null) {<NEW_LINE>int toolbarRes = currentScreenType.toolbarResId;<NEW_LINE>int iconColor = ... | findViewById(R.id.profile_button); |
1,422,438 | public void marshall(CreateProfileJobRequest createProfileJobRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createProfileJobRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createProfileJo... | createProfileJobRequest.getOutputLocation(), OUTPUTLOCATION_BINDING); |
438,620 | public List<PartitionUpdateParam> split() {<NEW_LINE>// split updates<NEW_LINE>Map<PartitionKey, List<RowUpdateSplit>> partToSplits = new HashMap<>(getPartsNum(matrixId));<NEW_LINE>for (int i = 0; i < updates.length; i++) {<NEW_LINE>if (updates[i] != null) {<NEW_LINE>mergeRowUpdateSplits(RowUpdateSplitUtils.split(updat... | ), partEntry.getValue()); |
1,163,616 | public static PageImpl<UKDataBean> dissearch(String orgi, FormFilter formFilter, List<FormFilterItem> itemList, MetadataTable metadataTable, int p, int ps) {<NEW_LINE>BoolQueryBuilder queryBuilder = new BoolQueryBuilder();<NEW_LINE>queryBuilder.must(termQuery("orgi", orgi));<NEW_LINE>queryBuilder.must(QueryBuilders.ter... | .NOT.toString())); |
764,701 | public Set<? extends TCReferable> update(TCReferable definition) {<NEW_LINE>if (definition instanceof TCDefReferable && ((TCDefReferable) definition).getTypechecked() == null) {<NEW_LINE>return Collections.emptySet();<NEW_LINE>}<NEW_LINE>Set<TCReferable> updated = new HashSet<>();<NEW_LINE>Stack<TCReferable> stack = ne... | add(field.getReferable()); |
601,471 | private void checkKafkaReplicationConfig(List<Condition> warnings) {<NEW_LINE>String defaultReplicationFactor = kafkaCluster.getConfiguration().getConfigOption(KafkaConfiguration.DEFAULT_REPLICATION_FACTOR);<NEW_LINE>String minInsyncReplicas = kafkaCluster.getConfiguration(<MASK><NEW_LINE>if (defaultReplicationFactor =... | ).getConfigOption(KafkaConfiguration.MIN_INSYNC_REPLICAS); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.