idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,086,336 | public Flux<ReactiveRedisConnection.CommandResponse<XInfoCommand, StreamInfo.XInfoStream>> xInfo(Publisher<XInfoCommand> publisher) {<NEW_LINE>return execute(publisher, command -> {<NEW_LINE>Assert.notNull(command.getKey(), "Key must not be null!");<NEW_LINE>byte[] k = toByteArray(command.getKey());<NEW_LINE>Mono<org.r... | getLastGeneratedId().toString()); |
1,071,281 | public void initiateOpenIdLogin(String issuer, String redirectUri, String language, Boolean test) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'issuer' is set<NEW_LINE>if (issuer == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter '... | localVarAuthNames = new String[] {}; |
625,590 | protected boolean validateRecaptcha(ValidationContext context, boolean success, String captcha, String secret) {<NEW_LINE>CloseableHttpClient httpClient = context.getSession().getProvider(HttpClientProvider.class).getHttpClient();<NEW_LINE>HttpPost post = new HttpPost("https://www." + getRecaptchaDomain(context.getAuth... | = new UrlEncodedFormEntity(formparams, "UTF-8"); |
269,140 | public static ArrayValue convertJSONToBArray(Object json, BArrayType targetArrayType) {<NEW_LINE>if (!(json instanceof ArrayValue)) {<NEW_LINE>throw BLangExceptionHelper.getRuntimeException(RuntimeErrors.INCOMPATIBLE_TYPE, getComplexObjectTypeName(ARRAY), getTypeName(json));<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>ArrayVal... | Type targetElementType = targetArrayType.getElementType(); |
1,287,908 | private void syncFill() {<NEW_LINE>int partitionCount = nodeEngine.getPartitionService().getPartitionCount();<NEW_LINE>BitSet nonLoadedStores = new BitSet(partitionCount);<NEW_LINE>int[<MASK><NEW_LINE>for (int i = 0; i < partitionCount; i++) {<NEW_LINE>nonLoadedStores.set(i);<NEW_LINE>}<NEW_LINE>while (true) {<NEW_LINE... | ] retryCount = new int[partitionCount]; |
478,484 | Box createSlideContentBox() {<NEW_LINE>Box content = Box.createVerticalBox();<NEW_LINE>content.setName("!!!!");<NEW_LINE>Box selectionBox = Box.createHorizontalBox();<NEW_LINE>selectionBox.add(btnSetSelectedNodes);<NEW_LINE>selectionBox.add(btnAddSelectedNodes);<NEW_LINE>selectionBox.add(btnRemoveSelectedNodes);<NEW_LI... | TranslatedElementFactory.createTitledBorder(filterConditionComponentBox, "slide.filter"); |
1,392,987 | public List<Expectation> buildExpectations(String specUrlOrPayload, Map<String, String> operationsAndResponses) {<NEW_LINE>OpenAPI openAPI = buildOpenAPI(specUrlOrPayload, mockServerLogger);<NEW_LINE>AtomicInteger expectationCounter = new AtomicInteger(0);<NEW_LINE>return openAPI.getPaths().values().stream().flatMap(pa... | * index).toString()); |
18,651 | public void marshall(Command command, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (command == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(command.getCommandId(), COMMANDID_BINDING);<NEW_LINE>protocolMa... | command.getCloudWatchOutputConfig(), CLOUDWATCHOUTPUTCONFIG_BINDING); |
573,224 | private void onWebLinkHighlight(AceEditor editor, String line, int row) {<NEW_LINE>// use a regex that captures all non-space characters within<NEW_LINE>// a web link, and then fix up the captured link by removing<NEW_LINE>// trailing punctuation, etc. as required<NEW_LINE>Pattern reWebLink = createWebLinkPattern();<NE... | int startIdx = match.getIndex(); |
1,486,799 | public static void populatePremiumSpinner(Context context, Spinner spinner, double premiumToSelect) {<NEW_LINE>// Make list of choices and see if the premium we already have is in the<NEW_LINE>// list<NEW_LINE>List<PremiumChoice> choices = new ArrayList<>();<NEW_LINE>boolean foundSelection = false;<NEW_LINE>for (double... | add(new PremiumChoice(premiumToSelect)); |
149,215 | public UpdateApiResponse readJson(JsonReader reader) throws Exception {<NEW_LINE>reader.beginObject();<NEW_LINE>UpdateApiResponse response = new UpdateApiResponse();<NEW_LINE>int apiVersion;<NEW_LINE>out: while (reader.hasNext()) {<NEW_LINE>switch(reader.nextName()) {<NEW_LINE>case "api_version":<NEW_LINE>apiVersion = ... | .checkIntervalMs = reader.nextLong(); |
867,741 | public static Token from(JSONObject token) throws JSONException {<NEW_LINE>String value = token.getString(KEY_TOKEN);<NEW_LINE>JSONObject tokenData = token.getJSONObject(KEY_TOKEN_DATA);<NEW_LINE>String identity = tokenData.getString(KEY_IDENTITY);<NEW_LINE>String path = tokenData.optString(KEY_PATH);<NEW_LINE>long exp... | access = tokenData.getJSONArray(KEY_ACCESS); |
1,424,320 | private void takeLeadershipIfNeeded(GroupLeadershipSessionZkClientImpl groupLeadershipSession) {<NEW_LINE>String baseZkPath = groupLeadershipSession.getBasePathName();<NEW_LINE>String groupName = groupLeadershipSession.getGroupName();<NEW_LINE>String memberName = groupLeadershipSession.getMemberName();<NEW_LINE>// debu... | _zkClient.readData(leaderZkPath, true); |
243,593 | public void marshall(ExplainabilitySummary explainabilitySummary, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (explainabilitySummary == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(explainabilitySummary... | explainabilitySummary.getExplainabilityName(), EXPLAINABILITYNAME_BINDING); |
1,126,418 | private void updateOpenAPIServer(VirtualHost vhost, Map<String, Object> props) {<NEW_LINE>Object value = props.get("httpsAlias");<NEW_LINE>if (value == null) {<NEW_LINE>String[] aliases = (String[]) props.get("aliases");<NEW_LINE>if (OpenAPIUtils.isDebugEnabled(tc)) {<NEW_LINE>Tr.debug(this, tc, "httpsAlias is null. al... | alias = String.valueOf(value); |
1,189,856 | // Based on the explanation at https://algs4.cs.princeton.edu/61event/<NEW_LINE>public void bounceOff(Particle3D otherParticle) {<NEW_LINE>double deltaPositionX = otherParticle.positionX - positionX;<NEW_LINE>double deltaPositionY = otherParticle.positionY - positionY;<NEW_LINE>double deltaPositionZ = otherParticle.pos... | double normalForceInXDirection = magnitudeOfNormalForce * deltaPositionX / distanceBetweenCenters; |
1,764,947 | private WebuiHUTransformCommandResult action_SplitCU_To_ExistingTU(final HUEditorRow cuRow, final I_M_HU tuHU, final Quantity qtyCU) {<NEW_LINE>final IHandlingUnitsBL handlingUnitsBL = Services.get(IHandlingUnitsBL.class);<NEW_LINE>final List<I_M_HU> createdCUs = newHUTransformation().cuToExistingTU(cuRow.getM_HU(), qt... | (tuHU).getM_HU_ID()); |
601,355 | public synchronized void addServant(com.zeroc.Ice.Object servant, com.zeroc.Ice.Identity ident, String facet) {<NEW_LINE>// Must not be called after destruction.<NEW_LINE>assert (_instance != null);<NEW_LINE>if (facet == null) {<NEW_LINE>facet = "";<NEW_LINE>}<NEW_LINE>java.util.Map<String, com.zeroc.Ice.Object> m = _s... | _servantMapMap.put(ident, m); |
1,127,088 | public static void main(String[] args) {<NEW_LINE>try {<NEW_LINE>// NetworkAdminASNLookupImpl lookup = new NetworkAdminASNLookupImpl( InetAddress.getByName( "86.165.8.129" ));<NEW_LINE>NetworkAdminASNLookupImpl lookup = new NetworkAdminASNLookupImpl(InetAddress.getByName("2a00:23c4:aeac:400:8d1d:ec9d:6107:5520"));<NEW_... | NetworkAdminASNImpl asn = lookup.lookup(); |
1,754,029 | void addAutocompleteValues(long indexTimestamp, Span span) {<NEW_LINE>String idx = consumer.formatTypeAndTimestampForInsert(TYPE_AUTOCOMPLETE, indexTimestamp);<NEW_LINE>for (Map.Entry<String, String> tag : span.tags().entrySet()) {<NEW_LINE>int length = tag.getKey().length() + tag.getValue<MASK><NEW_LINE>if (length > S... | ().length() + 1; |
1,448,295 | private void requestMemberListUpdateIfUnknownMembersFound(Address sender, InternalPartition[] partitions) {<NEW_LINE>ClusterServiceImpl clusterService = node.clusterService;<NEW_LINE>ClusterState clusterState = clusterService.getClusterState();<NEW_LINE>Set<PartitionReplica> unknownReplicas = new HashSet<>();<NEW_LINE>... | (new TriggerMemberListPublishOp(), masterAddress); |
1,331,698 | private DefaultHttpRequest createRequest(HttpRequest request) throws IOException {<NEW_LINE>HttpMethod method = HttpMethod.valueOf(request.getMethod().name());<NEW_LINE>URI uri = request.getURI();<NEW_LINE>String url = StringUtil.isBlank(uri.getRawPath()) <MASK><NEW_LINE>if (StringUtil.isNotBlank(uri.getRawQuery())) {<... | ? "/" : uri.getRawPath(); |
874,864 | final DescribeAvailabilityMonitorTestResult executeDescribeAvailabilityMonitorTest(DescribeAvailabilityMonitorTestRequest describeAvailabilityMonitorTestRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeAvailabilityMonitorTestRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = ... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
1,057,162 | public SimpleTreeNode parent(MPPProductBOM bom) {<NEW_LINE>SimpleTreeNode parent = new SimpleTreeNode(productSummary(bom), new ArrayList());<NEW_LINE>for (MPPProductBOMLine bomline : bom.getLines()) {<NEW_LINE>MProduct component = MProduct.get(getCtx(), bomline.getM_Product_ID());<NEW_LINE>Vector<Object> line = new Vec... | getC_UOM().getUOMSymbol()); |
628,892 | protected PublicKey engineGeneratePublic(KeySpec keySpec) throws InvalidKeySpecException {<NEW_LINE>try {<NEW_LINE>if (keySpec instanceof ECPublicKeySpec) {<NEW_LINE>return new BCECPublicKey(algorithm, (ECPublicKeySpec) keySpec, configuration);<NEW_LINE>} else if (keySpec instanceof java.security.spec.ECPublicKeySpec) ... | e.getMessage(), e); |
389,557 | /*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see<NEW_LINE>* erjang.beam.BlockVisitor2#visitBitStringPut(erjang.beam.BeamOpcode<NEW_LINE>* , erjang.EObject)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void visitBitStringPut(BeamOpcode opcode, Arg arg, Arg size, int unit, int flags) {<NEW_LINE>switch(opcode) {<N... | mv.visitVarInsn(ALOAD, bit_string_builder); |
180,986 | private List<KeyExtent> assignMapFiles(ClientContext context, HostAndPort location, Map<KeyExtent, List<PathSize>> assignmentsPerTablet) throws AccumuloException, AccumuloSecurityException {<NEW_LINE>try {<NEW_LINE>long timeInMillis = context.getConfiguration().getTimeInMillis(Property.TSERV_BULK_TIMEOUT);<NEW_LINE>Tab... | files = new HashMap<>(); |
1,429,929 | protected void createAllImplementersMap() {<NEW_LINE>Util_InternMap useClassNameMap = getClassInternMap();<NEW_LINE>Util_Factory useUtilFactory = useClassNameMap.getFactory();<NEW_LINE>// Map direction is: implementer to implemented<NEW_LINE>this.i_allImplementersMap = new IdentityHashMap<String<MASK><NEW_LINE>// Do NO... | , Set<String>>(); |
926,994 | public Size apply(MethodVisitor methodVisitor, Context implementationContext) {<NEW_LINE>methodVisitor.visitJumpInsn(Opcodes.GOTO, endOfBlock);<NEW_LINE>methodVisitor.visitLabel(secondValueNull);<NEW_LINE>if (implementationContext.getClassFileVersion().isAtLeast(ClassFileVersion.JAVA_V6)) {<NEW_LINE>methodVisitor.visit... | EMPTY, EMPTY.length, EMPTY); |
1,147,975 | // -------------------------------------------------------------------------<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>public MarketDataRequirements requirements(ReferenceData refData) {<NEW_LINE>// determine market data requirements of the function<NEW_LINE>FunctionRequirements functionRequirements = function.r... | ).collect(toImmutableList()); |
1,514,976 | public static void processAnnotation(LoggingFramework framework, AnnotationValues<? extends java.lang.annotation.Annotation> annotation, Annotation source, EclipseNode annotationNode) {<NEW_LINE>EclipseNode owner = annotationNode.up();<NEW_LINE>switch(owner.getKind()) {<NEW_LINE>case TYPE:<NEW_LINE>IdentifierName logFi... | Expression) annotation.getActualExpression("topic"); |
9,055 | public void animateTick(BlockState state, Level level, BlockPos pos, Random r) {<NEW_LINE>if (!AEConfig.instance().isEnableEffects()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final VibrationChamberBlockEntity tc = this.getBlockEntity(level, pos);<NEW_LINE>if (tc != null && tc.isOn) {<NEW_LINE>double f1 = pos.getX() + 0.5... | f3, 0.0D, 0.0D, 0.0D); |
220,858 | public RegularMethodNode decompileRegular(MethodHolder method) {<NEW_LINE>RegularMethodNode methodNode = new RegularMethodNode(method.getReference());<NEW_LINE>Program program = method.getProgram();<NEW_LINE>int[] targetBlocks = new <MASK><NEW_LINE>Arrays.fill(targetBlocks, -1);<NEW_LINE>try {<NEW_LINE>methodNode.setBo... | int[program.basicBlockCount()]; |
953 | final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(tagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
1,040,883 | public static QueryHotlineSessionResponse unmarshall(QueryHotlineSessionResponse queryHotlineSessionResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryHotlineSessionResponse.setRequestId(_ctx.stringValue("QueryHotlineSessionResponse.RequestId"));<NEW_LINE>queryHotlineSessionResponse.setMessage(_ctx.stringValue("QueryH... | ("QueryHotlineSessionResponse.Data.CallDetailRecord[" + i + "].QueueUpContinueTime")); |
1,220,824 | public Object apply(final ActionContext ctx, final Object caller, final Object[] sources) throws FrameworkException {<NEW_LINE>try {<NEW_LINE>assertArrayHasMinLengthAndMaxLengthAndAllElementsNotNull(sources, 2, 3);<NEW_LINE>final Object source = sources[0];<NEW_LINE>final Object target = sources[1];<NEW_LINE>AbstractNo... | NodeInterface s = rel.getSourceNode(); |
903,722 | final ActivityTask executePollForActivityTask(PollForActivityTaskRequest pollForActivityTaskRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(pollForActivityTaskRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,533,446 | private void readGenValue(GeneratedValue gen, Id id, DeployBeanProperty prop) {<NEW_LINE>if (id == null) {<NEW_LINE>if (UUID.class.equals(prop.getPropertyType())) {<NEW_LINE>generatedPropFactory.setUuid(prop);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>descriptor.setIdGeneratedValue();<NEW_LINE>SequenceGenerator s... | String seqName = seq.sequenceName(); |
714,910 | final DescribeServiceIntegrationResult executeDescribeServiceIntegration(DescribeServiceIntegrationRequest describeServiceIntegrationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeServiceIntegrationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
74,440 | public void collect(int doc) throws IOException {<NEW_LINE>if (docValues.advanceExact(doc)) {<NEW_LINE>long ord;<NEW_LINE>while ((ord = docValues.nextOrd()) != SortedSetDocValues.NO_MORE_ORDS) {<NEW_LINE>int termID = collectedTerms.add(docValues.lookupOrd(ord));<NEW_LINE>if (termID < 0) {<NEW_LINE>termID = -termID - 1;... | scoreSums.length, Float.NEGATIVE_INFINITY); |
133,482 | protected void onCreate(@Nullable Bundle savedInstanceState) {<NEW_LINE>setTheme(UserPreferences.getTranslucentTheme());<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>viewBinding = SubscriptionSelectionActivityBinding.inflate(getLayoutInflater());<NEW_LINE>setContentView(viewBinding.getRoot());<NEW_LINE>setSupp... | viewBinding.card.setOnClickListener(null); |
84,246 | private void createSegmentsTabs(ViewGroup viewGroup) {<NEW_LINE>View segmentView = SegmentGPXAdapter.createGpxTabsView(viewGroup, nightMode);<NEW_LINE>AndroidUiHelper.setVisibility(View.GONE, segmentView.findViewById(R.id.list_item_divider));<NEW_LINE>WrapContentHeightViewPager pager = segmentView.findViewById(R.id.pag... | findViewById(R.id.sliding_tabs); |
97,217 | private void runMultiChoiceDialog(List<ApplicationItem> applicationItems, List<CharSequence> applicationLabels) {<NEW_LINE>if (isDetached())<NEW_LINE>return;<NEW_LINE>activity.mProgressIndicator.hide();<NEW_LINE>new SearchableMultiChoiceDialogBuilder<>(activity, applicationItems, applicationLabels).addSelections(applic... | getParentFragmentManager(), BackupDialogFragment.TAG); |
945,344 | /*<NEW_LINE>* This contract has been changed to return a HashList of Stringpair, our<NEW_LINE>* own data structure in which finding the index of an object in the list is<NEW_LINE>* very fast<NEW_LINE>*/<NEW_LINE>@Nonnull<NEW_LINE>private List<SortableValue> enumsThatExist(BugAspects a) {<NEW_LINE>List<Sortables> orderB... | (bugSet.query(a)); |
1,408,431 | public Object invokeServer(IRestfulServer<?> theServer, RequestDetails theRequest) throws BaseServerResponseException, IOException {<NEW_LINE>Object<MASK><NEW_LINE>if (myIdParamIndex != null) {<NEW_LINE>methodParams[myIdParamIndex] = theRequest.getId();<NEW_LINE>}<NEW_LINE>String responseString = (String) invokeServerM... | [] methodParams = createMethodParams(theRequest); |
689,280 | public void computeTimeSpent(Timesheet timesheet) {<NEW_LINE>List<TimesheetLine> timesheetLineList = timesheet.getTimesheetLineList();<NEW_LINE>if (timesheetLineList != null) {<NEW_LINE>Map<Project, BigDecimal> projectTimeSpentMap = timesheetLineService.getProjectTimeSpentMap(timesheetLineList);<NEW_LINE>Iterator<Proje... | timesheet.getTimesheetLineList(), true); |
545,011 | protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {<NEW_LINE>// Reference the data source.<NEW_LINE>final DataSource source = mysqlDataSource;<NEW_LINE>final int count = Common.normalise(req.getParameter(PARAMETER_QUERIES));<NEW_LINE>final World[] worlds = new Wo... | Common.HEADER_CONTENT_TYPE, Common.CONTENT_TYPE_JSON); |
1,043,499 | public ConsoleRegistration register(RequestParams requestParams, ConsoleRegistration consoleRegistration) {<NEW_LINE>if (getRequestTenant() == null) {<NEW_LINE>throw new BadRequestException("Invalid realm");<NEW_LINE>}<NEW_LINE>ConsoleAsset consoleAsset = null;<NEW_LINE>// If console registration has an id and asset ex... | setId(consoleAsset.getId()); |
1,027,945 | protected final boolean retrieveAttributes(long xmlParserToken, int[] attrs, int[] outValues, int[] outIndices) {<NEW_LINE>if (xmlParserToken == 0) {<NEW_LINE>throw new NullPointerException("xmlParserToken");<NEW_LINE>// return JNI_FALSE;<NEW_LINE>}<NEW_LINE>if (attrs == null) {<NEW_LINE>throw new NullPointerException(... | Registries.NATIVE_RES_XML_PARSERS.getNativeObject(xmlParserToken); |
123,063 | public boolean fire() {<NEW_LINE>Optional<ZonedDateTime> optionalNewNextExecutionTime = getNextFireTime();<NEW_LINE>long epochSeconds = optionalNewNextExecutionTime.isPresent() ? optionalNewNextExecutionTime.get().toEpochSecond() : 0L;<NEW_LINE>scheduledJobsAccessor.fire(epochSeconds, record.getScheduleId());<NEW_LINE>... | FiredScheduledJobState.QUEUED.name()); |
20,965 | public synchronized void open(HugeConfig config) {<NEW_LINE>LOG.debug("Store open: {}", this.store);<NEW_LINE>E.checkNotNull(config, "config");<NEW_LINE>if (this.sessions != null && !this.sessions.closed()) {<NEW_LINE>LOG.debug("Store {} has been opened before", this.store);<NEW_LINE>this.sessions.useSession();<NEW_LIN... | debug("Store connect with database: {}", this.database); |
748,596 | public static BatchBindTemplatesResponse unmarshall(BatchBindTemplatesResponse batchBindTemplatesResponse, UnmarshallerContext _ctx) {<NEW_LINE>batchBindTemplatesResponse.setRequestId(_ctx.stringValue("BatchBindTemplatesResponse.RequestId"));<NEW_LINE>List<Result> results <MASK><NEW_LINE>for (int i = 0; i < _ctx.length... | = new ArrayList<Result>(); |
1,138,845 | // SSS FIXME: Needs an update to reflect instr. change<NEW_LINE>@Override<NEW_LINE>public void DefineInstanceMethodInstr(DefineInstanceMethodInstr defineinstancemethodinstr) {<NEW_LINE>IRMethod method = defineinstancemethodinstr.getMethod();<NEW_LINE>JVMVisitorMethodContext context = new JVMVisitorMethodContext();<NEW_... | ldc(method.maybeUsingRefinements()); |
355,434 | private static Receiver.AckEntry udpPush(Receiver.AckEntry ackEntry) {<NEW_LINE>if (ackEntry == null) {<NEW_LINE>Loggers.PUSH.error("[NACOS-PUSH] ackEntry is null.");<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (ackEntry.getRetryTimes() > MAX_RETRY_TIMES) {<NEW_LINE>Loggers.PUSH.warn("max re-push times reached, retry ... | (ACK_TIMEOUT_NANOS), TimeUnit.MILLISECONDS); |
333,803 | public static boolean createSharedProject(FrontEndTool frontEndTool, final String projectName) throws Exception {<NEW_LINE>// create shared project against existing repository<NEW_LINE>System.err.println("SharedProjectUtil.createSharedProject(): " + projectName);<NEW_LINE>UtilProjectListener projectListener = new UtilP... | findComponent(wm, RepositoryPanel.class); |
354,338 | public boolean isConvertible(MAcctSchema acctSchema) {<NEW_LINE>// No Currency in document<NEW_LINE>if (getC_Currency_ID() == NO_CURRENCY) {<NEW_LINE>log.fine("(none) - " + toString());<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>// Journal from a different acct schema<NEW_LINE>if (this instanceof Doc_GLJournal) {<NEW_LI... | new Integer(getC_Currency_ID())); |
454,158 | public Point2Transform2_F64 undistort_F64(boolean pixelIn, boolean pixelOut) {<NEW_LINE>if (pixelIn) {<NEW_LINE>Point2Transform2_F64 p_to_n = new RemoveBrownPtoN_F64().setK(p.fx, p.fy, p.skew, p.cx, p.cy).setDistortion(p.radial, p.t1, p.t2);<NEW_LINE>if (pixelOut) {<NEW_LINE>return new Transform2ThenPixel_F64(p_to_n).s... | p.cx, p.cy); |
1,294,114 | private static void addPatchesForDelegate(ScriptManager sm) {<NEW_LINE>final String CLASSSCOPE_SIG = "org.eclipse.jdt.internal.compiler.lookup.ClassScope";<NEW_LINE>sm.addScript(ScriptBuilder.exitEarly().target(new MethodTarget(CLASSSCOPE_SIG, "buildFieldsAndMethods", "void")).request(StackRequest.THIS).decisionMethod(... | "java.lang.Object")).build()); |
1,165,444 | public void addOverlays() {<NEW_LINE>super.addOverlays();<NEW_LINE>mOverlay = new GroundOverlay();<NEW_LINE>mOverlay.setTransparency(0.5f);<NEW_LINE>mOverlay.setPosition(mNorthEast, mSouthWest);<NEW_LINE>mMapView.getOverlayManager().add(mOverlay);<NEW_LINE>cm = (ConnectivityManager) getActivity(<MASK><NEW_LINE>mMapView... | ).getSystemService(Context.CONNECTIVITY_SERVICE); |
19,628 | private void modelArguments(Location location) throws DataflowAnalysisException {<NEW_LINE>// Model arguments to called method<NEW_LINE>InvokeInstruction inv = (InvokeInstruction) location.getHandle().getInstruction();<NEW_LINE>XMethod calledMethod = XFactory.createXMethod(inv, cpg);<NEW_LINE>SignatureParser sigParser ... | getMethodDescriptor(), param, typeQualifierValue); |
387,567 | public void paint(UGraphic ug) {<NEW_LINE><MASK><NEW_LINE>for (int i = 0; i < n; i++) {<NEW_LINE>final HColor color = colors.get(i);<NEW_LINE>final Rectangle2D.Double r = lines.get(i);<NEW_LINE>final ULine line = new ULine(r.width - r.x, -r.height + r.y);<NEW_LINE>ug.apply(color).apply(new UTranslate(r.x, -r.y)).draw(l... | int n = lines.size(); |
277,754 | private CompletionStage<String> testCompletionStage(CompletionStage<String> stage, UriInfo uriInfo) throws SystemException {<NEW_LINE>// Transaction<NEW_LINE>Transaction t1 = transactionManager.getTransaction();<NEW_LINE>Assert.assertTrue(t1 != null);<NEW_LINE>Assert.assertTrue(t1.getStatus() == Status.STATUS_ACTIVE);<... | RequestBean.class).get(); |
486,887 | public void addFacetValues(Context context, final DiscoverResult searchResult, final SearchResultsRest resultsRest, final DiscoveryConfiguration configuration, final Projection projection) {<NEW_LINE>List<DiscoverySearchFilterFacet> facets = configuration.getSidebarFacets();<NEW_LINE>for (DiscoverySearchFilterFacet fie... | setExposeMinMax(field.exposeMinAndMaxValue()); |
1,265,170 | final DescribeAuditSuppressionResult executeDescribeAuditSuppression(DescribeAuditSuppressionRequest describeAuditSuppressionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeAuditSuppressionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
180,371 | final CreateFleetLocationsResult executeCreateFleetLocations(CreateFleetLocationsRequest createFleetLocationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createFleetLocationsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
1,149,260 | private void addQueryToXml(MethodModel methodModel, String ejbql) throws IOException {<NEW_LINE>// EJB 2.1<NEW_LINE>EjbJar ejbJar = DDProvider.getDefault().getDDRoot(ejbModule.getDeploymentDescriptor());<NEW_LINE>EnterpriseBeans enterpriseBeans = ejbJar.getEnterpriseBeans();<NEW_LINE>Entity entity = (Entity) enterprise... | MethodParams methodParams = queryMethod.newMethodParams(); |
1,602,173 | public static void print(WebSiteBase resource) {<NEW_LINE>StringBuilder builder = new StringBuilder().append("Web app: ").append(resource.id()).append("\n\tName: ").append(resource.name()).append("\n\tState: ").append(resource.state()).append("\n\tResource group: ").append(resource.resourceGroupName()).append("\n\tRegi... | builder = builder.append("\n\tSSL bindings: "); |
1,818,287 | public void initFromTensorFlow(NodeDef nodeDef, SameDiff initWith, Map<String, AttrValue> attributesForNode, GraphDef graph) {<NEW_LINE>val aStrides = nodeDef.getAttrOrThrow("strides");<NEW_LINE>val tfStrides = aStrides.getList().getIList();<NEW_LINE>val sH = tfStrides.get(1);<NEW_LINE>val sW = tfStrides.get(2);<NEW_LI... | intValue()).build(); |
1,009,005 | static CompletableFuture<byte[]> sendrecv(InetSocketAddress local, InetSocketAddress remote, Message query, byte[] data, Duration timeout) {<NEW_LINE>CompletableFuture<byte[]> f = new CompletableFuture<>();<NEW_LINE>try {<NEW_LINE>final Selector selector = selector();<NEW_LINE>long endTime = System.nanoTime() + timeout... | ().getType())); |
457,683 | public List<ValidateError> validate() {<NEW_LINE>List<ValidateError> errors = new ArrayList<>();<NEW_LINE>Validator validator;<NEW_LINE>ValidateError error;<NEW_LINE>validator = ValidatorFactory.getInstance(Validator.REQUIRED);<NEW_LINE>error = validator.validate(this.stockName, convLabelName("Stock Name"));<NEW_LINE>i... | ValidatorFactory.getInstance(Validator.INTEGER); |
1,518,834 | private List<Pack> loadData(String tagGroup, long stime, long etime, boolean reverse, MapPack extra, MapValue filterMv) {<NEW_LINE>List<Pack> list = null;<NEW_LINE>TcpProxy tcp = TcpProxy.getTcpProxy(serverId);<NEW_LINE>try {<NEW_LINE>MapPack param = new MapPack();<NEW_LINE>param.put("objType", objType);<NEW_LINE>param... | param.put("etime", etime); |
1,484,658 | private void processHeadOrGetSingleClient(String clientId, OidcOAuth20ClientProvider clientProvider, HttpServletRequest request, HttpServletResponse response) throws IOException, OidcServerException {<NEW_LINE>OidcBaseClient client = clientProvider.get(clientId);<NEW_LINE>if (client == null) {<NEW_LINE>// CWWKS1424E<NE... | true, true, eTag, null); |
1,142,159 | private void createQuitDrawDialog() {<NEW_LINE>ListView listView = DialogUtils.createActionListView(this);<NEW_LINE>List<IconMenuItem> items;<NEW_LINE>items = ImmutableList.of(new IconMenuItem(R.drawable.ic_save, R.string.keep_changes), new IconMenuItem(R.drawable.ic_delete, R.string.do_not_save));<NEW_LINE>final IconM... | setView(listView).create(); |
5,060 | private Node visit(AstNode astNode, Node parent, @Nullable Node sourceFileTemplate) {<NEW_LINE>if (sourceFileTemplate == null || astNode.getSourceFile() != 0) {<NEW_LINE>// 0 == 'not set'<NEW_LINE>sourceFileTemplate = this.owner().createSourceInfoTemplate(this.owner().filePool.get(astNode.getSourceFile() - 1));<NEW_LIN... | .previousLine + astNode.getRelativeLine(); |
768,849 | public void addElement(String value) {<NEW_LINE>$("[coral-multifield-add]").click();<NEW_LINE>$$("coral-multifield-item").last().$(elementNameSelectButton).click();<NEW_LINE>CoralSelectList coralSelectList = new CoralSelectList($$("coral-multifield-item").last().$("coral-select[name='./elementNames']"));<NEW_LINE>if (!... | WebDriver webDriver = WebDriverRunner.getWebDriver(); |
1,654,035 | public // ------------------------------------------------------------------------<NEW_LINE>void childAdded(NodeChangeEvent evt) {<NEW_LINE>NodeChangeListener[] listeners;<NEW_LINE>Preferences childNode;<NEW_LINE>synchronized (tree.treeLock()) {<NEW_LINE>String childName = evt.getChild().name();<NEW_LINE>if (removed ||... | = new NodeChangeEvent(this, childNode); |
644,871 | protected void debug() {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {<NEW_LINE>Tr.debug(tc, "" + this);<NEW_LINE>Tr.debug(tc, KEY_clientId + " = " + clientId);<NEW_LINE>Tr.debug(tc, KEY_clientSecret + " is null = " + (clientSecret == null));<NEW_LINE>Tr.debug(tc, KEY_displayName + " = " +... | tc, KEY_userApiNeedsSpecialHeader + " = " + userApiNeedsSpecialHeader); |
328,523 | protected void encodeButton(FacesContext context, MenuButton button, String buttonId, boolean disabled) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>boolean isIconLeft = button.getIconPos().equals("left");<NEW_LINE>String value = button.getValue();<NEW_LINE>String buttonCl... | button.getAriaLabel(), "ariaLabel"); |
1,571,740 | private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>java.awt.GridBagConstraints gridBagConstraints;<NEW_LINE>icon = new javax.swing.JLabel();<NEW_LINE>problemDescription = new javax.swing.JTextPane();<NEW_LINE>showDetails = new java... | = java.awt.GridBagConstraints.WEST; |
464,917 | public void testPurchaseValueOfSecurityPositionWithTransfers() throws IOException, TradeCollectorException {<NEW_LINE>Client client = ClientFactory.load(// $NON-NLS-1$<NEW_LINE>Issue1898TradeIRRwithPortfolioTransfers.class.// $NON-NLS-1$<NEW_LINE>getResourceAsStream("Issue1898TradeIRRwithPortfolioTransfers.xml"));<NEW_... | .closeTo(0.0963, 0.0001)); |
710,384 | private static void tryGroupByAssertions(RegressionEnvironment env) {<NEW_LINE>env.assertStatement("s0", ViewTimeWin::assertSelectResultType);<NEW_LINE>env.advanceTime(0);<NEW_LINE>sendEvent(env, SYMBOL_DELL, 10000, 51);<NEW_LINE>env.assertListener("s0", listener -> assertEvents(listener, SYMBOL_DELL, 10000, 51, false)... | , 20000, 103, false)); |
229,089 | public static void main(String[] args) throws Exception {<NEW_LINE>File crawlStorageBase = new File("src/test/resources/crawler4j");<NEW_LINE>CrawlConfig htmlConfig = new CrawlConfig();<NEW_LINE>CrawlConfig imageConfig = new CrawlConfig();<NEW_LINE>htmlConfig.setCrawlStorageFolder(new File(crawlStorageBase, "html").get... | imageController.startNonBlocking(imageFactory, 7); |
664,001 | public BrokeredIdentityContext deserialize(KeycloakSession session, AuthenticationSessionModel authSession) {<NEW_LINE>BrokeredIdentityContext ctx = new BrokeredIdentityContext(getId());<NEW_LINE>ctx.setUsername(getBrokerUsername());<NEW_LINE>ctx.setModelUsername(getModelUsername());<NEW_LINE>ctx.setEmail(getEmail());<... | ContextDataEntry value = entry.getValue(); |
1,148,088 | private static List<Map<String, Object>> changeRows(String table, List<Map<String, String>> rows, Map<String, Integer> sqlTypes, Map<String, String> mysqlTypes) {<NEW_LINE>List<Map<String, Object>> result = new ArrayList<>();<NEW_LINE>for (Map<String, String> row : rows) {<NEW_LINE>Map<String, Object> resultRow = new L... | mysqlType = mysqlTypes.get(columnName); |
1,391,584 | public void closeElement(String element, HashMap<String, String> attributes, String content, WarningSet warnings) throws SAXException {<NEW_LINE>super.closeElement(element, attributes, content, warnings);<NEW_LINE>try {<NEW_LINE>if (RocksimCommonConstants.OD.equals(element)) {<NEW_LINE>lug.setOuterRadius(Math.max(0, Do... | content) / RocksimCommonConstants.ROCKSIM_TO_OPENROCKET_RADIUS)); |
1,094,191 | private Map<String, NewPartitions> checkPartitions(Map<String, NewTopic> topicNameToTopic, DescribeTopicsResult topicInfo, List<NewTopic> topicsToAdd) {<NEW_LINE>Map<String, NewPartitions> topicsToModify = new HashMap<>();<NEW_LINE>topicInfo.topicNameValues().forEach((n, f) -> {<NEW_LINE>NewTopic topic = topicNameToTop... | throw new KafkaException("Timed out waiting to get existing topics", e); |
1,616,468 | private ExtendedDeploymentContext subContext(final Application application, final DeploymentContext context, final String moduleUri) {<NEW_LINE>ExtendedDeploymentContext moduleContext = ((ExtendedDeploymentContext) context).getModuleDeploymentContexts().get(moduleUri);<NEW_LINE>if (moduleContext != null) {<NEW_LINE>ret... | Level.WARNING, ERROR_OCCURRED, ioe); |
1,122,063 | private void stopProcess(ProcessHandle processHandle, boolean forcibly) {<NEW_LINE>// No-op if the process has already exited by itself.<NEW_LINE>if (processHandle.isAlive() == false) {<NEW_LINE>LOGGER.info("Process was not running when we tried to terminate it.");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Stop all child... | info("process did not terminate after {} {}, stopping it forcefully", OPENSEARCH_DESTROY_TIMEOUT, OPENSEARCH_DESTROY_TIMEOUT_UNIT); |
1,497,826 | private static AgentBuilder addDriverConductorInstrumentation(final AgentBuilder agentBuilder) {<NEW_LINE>final boolean hasImageHook = <MASK><NEW_LINE>final boolean hasPublicationHook = DRIVER_EVENT_CODES.contains(DriverEventCode.REMOVE_PUBLICATION_CLEANUP);<NEW_LINE>final boolean hasSubscriptionHook = DRIVER_EVENT_COD... | DRIVER_EVENT_CODES.contains(DriverEventCode.REMOVE_IMAGE_CLEANUP); |
1,180,279 | public void build(String name, ISchematic schematic, Vec3i origin) {<NEW_LINE>this.name = name;<NEW_LINE>this.schematic = schematic;<NEW_LINE>this.realSchematic = null;<NEW_LINE>if (!Baritone.settings().buildSubstitutes.value.isEmpty()) {<NEW_LINE>this.schematic = new SubstituteSchematic(this.schematic, Baritone.settin... | this.observedCompleted = new LongOpenHashSet(); |
71,300 | public void onDispatch(ClientCallStreamObserver<PStatMessage> stream, MetricType data) {<NEW_LINE>final GeneratedMessageV3 message = messageConverter.toMessage(data);<NEW_LINE>if (isDebug) {<NEW_LINE>logger.debug("Send message={}", debugLog(message));<NEW_LINE>}<NEW_LINE>if (message instanceof PAgentStatBatch) {<NEW_LI... | final PAgentStatBatch agentStatBatch = (PAgentStatBatch) message; |
1,160,689 | public void processPlanning(@NonNull final PPOrderPlanningStatus targetPlanningStatus, @NonNull final PPOrderId ppOrderId) {<NEW_LINE>trxManager.assertThreadInheritedTrxExists();<NEW_LINE>final I_PP_Order ppOrder = getById(ppOrderId);<NEW_LINE>final PPOrderPlanningStatus planningStatus = PPOrderPlanningStatus.ofCode(pp... | throw new IllegalStateException("Already " + targetPlanningStatus); |
982,265 | public RulesFacts putAssetState(AssetState<?> assetState) {<NEW_LINE>if (LOG.isLoggable(Level.FINEST)) {<NEW_LINE>LOG.finest("Fact change (UPDATE): " + assetState + " - on: " + loggingContext);<NEW_LINE>}<NEW_LINE>getAssetStates().remove(assetState);<NEW_LINE>getAssetStates().add(assetState);<NEW_LINE>// Maintain index... | ()).remove(assetState); |
1,137,947 | void updateClientInfo(final AccountJid account, final Jid jid) {<NEW_LINE>DiscoverInfo discoverInfo = EntityCapsManager.getDiscoverInfoByUser(jid);<NEW_LINE>if (discoverInfo != null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>AccountItem accountItem = AccountManager.getInstance().getAccount(account);<NEW_LINE>if (accountIt... | discoverInfoCache.put(jid, discoverInfo); |
628,082 | public DeleteFileSystemOpenZFSConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DeleteFileSystemOpenZFSConfiguration deleteFileSystemOpenZFSConfiguration = new DeleteFileSystemOpenZFSConfiguration();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParen... | )).unmarshall(context)); |
1,809,231 | public Comparator<ExecutionTask> taskComparator(StrategyOptions strategyOptions) {<NEW_LINE>Comparator<PartitionInfo> comparator = Comparator.comparing(PartitionInfo::topic).thenComparingInt(PartitionInfo::partition);<NEW_LINE>Set<PartitionInfo> atMinIsr = new TreeSet<>(comparator);<NEW_LINE>Set<PartitionInfo> underMin... | task1IsUnderMinISR = isTaskInSet(task1, underMinIsr); |
1,729,205 | public InlongStream init() {<NEW_LINE>InlongStreamInfo streamInfo = streamContext.getStreamInfo();<NEW_LINE>String streamIndex = managerClient.createStreamInfo(streamInfo);<NEW_LINE>streamInfo.setId(Double.valueOf<MASK><NEW_LINE>// Create source and update index<NEW_LINE>List<SourceRequest> sourceRequests = Lists.newAr... | (streamIndex).intValue()); |
612,234 | public Frame decorrelateRel(Project rel) {<NEW_LINE>//<NEW_LINE>// Rewrite logic:<NEW_LINE>//<NEW_LINE>// 1. Pass along any correlated variables coming from the input.<NEW_LINE>//<NEW_LINE>final RelNode oldInput = rel.getInput();<NEW_LINE>Frame frame = getInvoke(oldInput, rel);<NEW_LINE>if (frame == null) {<NEW_LINE>//... | projects = new ArrayList<>(); |
292,166 | // GEN-LAST:event_saveButtonActionPerformed<NEW_LINE>private void saveGUISize() {<NEW_LINE>Preferences prefs = MageFrame.getPreferences();<NEW_LINE>// GUI Size<NEW_LINE>save(prefs, dialog.sliderFontSize, KEY_GUI_TABLE_FONT_SIZE, "true", "false", UPDATE_CACHE_POLICY);<NEW_LINE>save(prefs, dialog.sliderChatFontSize, KEY_... | KEY_GUI_CARD_BATTLEFIELD_MIN_SIZE, "true", "false", UPDATE_CACHE_POLICY); |
90,584 | public void turnOn(String dsn, Map<String, String> tags, String environment) {<NEW_LINE>log.info("Turning on sentry");<NEW_LINE>SentryClient sentryClient = Sentry.init(dsn);<NEW_LINE>if (!environment.isBlank())<NEW_LINE>sentryClient.setEnvironment(environment);<NEW_LINE>if (tags != null) {<NEW_LINE>tags.forEach(sentryC... | commitHash = gitProps.getProperty("git.commit.id"); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.