idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
709,842 | public void propertyChange(PropertyChangeEvent event) {<NEW_LINE>CompoundCommand result = new CompoundCommand();<NEW_LINE>if (event.getProperty() == FontChooser.PROP_FONTCHANGE) {<NEW_LINE>FontData selectedFontData = fFontChooser.getFontData();<NEW_LINE>RGB rgb = fFontChooser.getFontRGB();<NEW_LINE>for (EObject fa : ge... | ((IFontAttribute) fa, null); |
300,170 | public void read(org.apache.thrift.protocol.TProtocol prot, FrontendRequest struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet incoming = iprot.readBitSet(4);<NEW_LINE>if (incoming.get(0)) {... | struct.announcementRequest.read(iprot); |
643,339 | public static ListWebhooksResponse unmarshall(ListWebhooksResponse listWebhooksResponse, UnmarshallerContext _ctx) {<NEW_LINE>listWebhooksResponse.setRequestId(_ctx.stringValue("ListWebhooksResponse.RequestId"));<NEW_LINE>listWebhooksResponse.setTotalCount(_ctx.integerValue("ListWebhooksResponse.TotalCount"));<NEW_LINE... | = new ArrayList<Webhook>(); |
182,046 | public UpdateRouteCalculatorResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UpdateRouteCalculatorResult updateRouteCalculatorResult = new UpdateRouteCalculatorResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentE... | class).unmarshall(context)); |
598,988 | public OEdge createGraphElement(final Object iObject) {<NEW_LINE>if (iObject instanceof OElement && ((OElement) iObject).isEdge())<NEW_LINE>return ((OElement) iObject).asEdge().get();<NEW_LINE>final OIdentifiable rec = (OIdentifiable) iObject;<NEW_LINE>if (rec == null) {<NEW_LINE>// SKIP IT<NEW_LINE>return null;<NEW_LI... | warn(this, "Record (%s) is null", rec); |
899,521 | public static GetQuotaAlarmResponse unmarshall(GetQuotaAlarmResponse getQuotaAlarmResponse, UnmarshallerContext _ctx) {<NEW_LINE>getQuotaAlarmResponse.setRequestId(_ctx.stringValue("GetQuotaAlarmResponse.RequestId"));<NEW_LINE>QuotaAlarm quotaAlarm = new QuotaAlarm();<NEW_LINE>quotaAlarm.setAlarmId(_ctx.stringValue("Ge... | (_ctx.stringValue("GetQuotaAlarmResponse.QuotaAlarm.CreateTime")); |
98,817 | public static void main(String[] args) {<NEW_LINE>final String USAGE = "\n" + "ImportSegment - Creates a segment by: \n" + "1.) Uploading the endpoint definitions that belong to the segment to an Amazon S3 bucket. \n" + "2.) Importing the endpoint definitions from the bucket to an Amazon Pinpoint application." + " A... | System.out.println(USAGE); |
547,203 | private void showPopupMenu(Component callingComponent, String actionCommand) {<NEW_LINE>// keep auto-answer for yes/no<NEW_LINE>// two modes:<NEW_LINE>// - remember text for all (example: commander zone change);<NEW_LINE>// - remember text + ability for source only (example: any optional ability)<NEW_LINE>// yes<NEW_LI... | popupItemNoAsTextAndAbility.setEnabled(originalId != null); |
622,963 | public static DescribePdnsThreatLogsResponse unmarshall(DescribePdnsThreatLogsResponse describePdnsThreatLogsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describePdnsThreatLogsResponse.setRequestId(_ctx.stringValue("DescribePdnsThreatLogsResponse.RequestId"));<NEW_LINE>describePdnsThreatLogsResponse.setTotalCount(_ct... | ("DescribePdnsThreatLogsResponse.Logs[" + i + "].SubDomain")); |
199,092 | public String encode() throws IOException {<NEW_LINE>try (FastStringWriter fsw = new FastStringWriter()) {<NEW_LINE>boolean hasComma = false;<NEW_LINE>String preString;<NEW_LINE>if (this.point != null) {<NEW_LINE>fsw.write("\"point\":{");<NEW_LINE>fsw.write(<MASK><NEW_LINE>fsw.write("}");<NEW_LINE>hasComma = true;<NEW_... | this.point.encode()); |
704,982 | public static List<Object> keys(Object obj) {<NEW_LINE>try {<NEW_LINE>Object keysObj = InteropLibrary.getUncached().getMembers(obj);<NEW_LINE>InteropLibrary keysInterop = InteropLibrary.getUncached(keysObj);<NEW_LINE>long size = keysInterop.getArraySize(keysObj);<NEW_LINE>if (size < 0 || size >= Integer.MAX_VALUE) {<NE... | obj, e, "readArrayElement", null); |
656,442 | boolean checkSaveChanges(ImageData<BufferedImage> imageData) {<NEW_LINE>if (!imageData.isChanged() || isReadOnly())<NEW_LINE>return true;<NEW_LINE>ProjectImageEntry<BufferedImage> entry = getProjectImageEntry(imageData);<NEW_LINE>String name = entry == null ? ServerTools.getDisplayableImageName(imageData.getServer()) :... | Dialogs.showErrorMessage("Save ImageData", e); |
654,171 | public static DmnExtensionElement parseExtensionElement(XMLStreamReader xtr) throws Exception {<NEW_LINE>DmnExtensionElement extensionElement = new DmnExtensionElement();<NEW_LINE>extensionElement.setName(xtr.getLocalName());<NEW_LINE>if (StringUtils.isNotEmpty(xtr.getNamespaceURI())) {<NEW_LINE>extensionElement.setNam... | getText().trim()); |
1,033,460 | public void testTemplate(TestExecutionContext testExecCtx, TestExecutionResources testExecResources, Object managedComponentObject) {<NEW_LINE>// Verify parameters<NEW_LINE>if (testExecCtx == null || testExecResources == null) {<NEW_LINE>Assert.fail("testTemplate: Missing context and/or resources. Cannot execute the t... | System.out.println("Ending test."); |
1,323,369 | public int warmUpConnections(List<DataNodeId> dataNodeIds, int connectionWarmUpPercentagePerDataNode, long timeForWarmUp, List<ResponseInfo> responseInfoList) {<NEW_LINE>logger.info("Connection warm up start.");<NEW_LINE>if (dataNodeIds.size() == 0) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>dataNodeIds.forEach(dataNodeI... | .disconnected().size(); |
254,313 | public void listContextJsps(Context context, Summary summary, boolean compile) {<NEW_LINE>ServletConfig servletConfig = (ServletConfig) context.findChild("jsp");<NEW_LINE>if (servletConfig != null) {<NEW_LINE>synchronized (servletConfig) {<NEW_LINE>ServletContext sctx = context.getServletContext();<NEW_LINE>Options opt... | NO_JSP_SERVLET, context.getName()); |
820,901 | public BatchLookupPolicy unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>BatchLookupPolicy batchLookupPolicy = new BatchLookupPolicy();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token... | int originalDepth = context.getCurrentDepth(); |
214,607 | public ListSigningProfilesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListSigningProfilesResult listSigningProfilesResult = new ListSigningProfilesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement()... | )).unmarshall(context)); |
1,637,045 | MethodTree generateSubresourceMethod(TreeMaker maker, WorkingCopy copy, ClassTree classTree, PathFormat pf) {<NEW_LINE>// NOI18N<NEW_LINE>String // NOI18N<NEW_LINE>body = // NOI18N<NEW_LINE>"{" + " String resourcePath = " + getPathExpression(pf) + // NOI18N<NEW_LINE>";" + // NOI18N<NEW_LINE>" webResource = client.r... | >singleton(Modifier.PUBLIC)); |
454,451 | public void parse() {<NEW_LINE>for (String nextResourceName : myResourceNames) {<NEW_LINE>RuntimeResourceDefinition def = getCtx().getResourceDefinition(nextResourceName);<NEW_LINE>Resource resource = new Resource();<NEW_LINE>resource.setName(def.getName());<NEW_LINE>resource.setElementName(def.getName());<NEW_LINE>add... | collect(Collectors.toList()); |
807,993 | LocalWireNetwork merge(LocalWireNetwork other, Supplier<LocalWireNetwork> createNewNet) {<NEW_LINE>LocalWireNetwork result = createNewNet.get();<NEW_LINE>for (LocalWireNetwork net : new LocalWireNetwork[] { this, other }) {<NEW_LINE>result.connectors.putAll(net.connectors);<NEW_LINE>result.connections.putAll(net.connec... | getValue(), LocalNetworkHandler::merge); |
419,940 | public void write(RTree<T, S> tree, OutputStream os) throws IOException {<NEW_LINE>FlatBufferBuilder builder = new FlatBufferBuilder();<NEW_LINE>final Rectangle mbb;<NEW_LINE>if (tree.root().isPresent()) {<NEW_LINE>mbb = tree.root().get().geometry().mbr();<NEW_LINE>} else {<NEW_LINE>mbb = Geometries.rectangle(0, 0, 0, ... | Tree_.addContext(builder, c); |
1,747,236 | public static StoredValueFactory factory() {<NEW_LINE>return new StoredValueFactory() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public StringArrayValue fromJson(final String input) {<NEW_LINE>if (StringUtil.isEmpty(input)) {<NEW_LINE>return new StringArrayValue(Collections.emptyList());<NEW_LINE>} else {<NEW_LINE>return ... | ().deserializeStringList(input)); |
618,038 | public void marshall(CreateExplainabilityRequest createExplainabilityRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createExplainabilityRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(cre... | createExplainabilityRequest.getResourceArn(), RESOURCEARN_BINDING); |
458,709 | private Mono<PagedResponse<String>> listAnomalyDimensionValuesNextPageAsync(String nextPageLink, String dimensionName, OffsetDateTime startTime, OffsetDateTime endTime, ListAnomalyDimensionValuesOptions options, Context context) {<NEW_LINE>if (CoreUtils.isNullOrEmpty(nextPageLink)) {<NEW_LINE>return Mono.empty();<NEW_L... | context.addData(AZ_TRACING_NAMESPACE_KEY, METRICS_ADVISOR_TRACING_NAMESPACE_VALUE); |
1,346,333 | public static void main(String[] args) {<NEW_LINE>OpenIMAJGrabber grabber = new OpenIMAJGrabber();<NEW_LINE>Device device = null;<NEW_LINE>Pointer<DeviceList> devices = grabber.getVideoDevices();<NEW_LINE>for (Device d : devices.get().asArrayList()) {<NEW_LINE>device = d;<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>boolean sta... | long t2 = System.currentTimeMillis(); |
148,090 | public RecommendationPreferences unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>RecommendationPreferences recommendationPreferences = new RecommendationPreferences();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement()... | )).unmarshall(context)); |
787,312 | public CreateAuthorizerResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateAuthorizerResult createAuthorizerResult = new CreateAuthorizerResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>i... | class).unmarshall(context)); |
1,039,723 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller != null) {<NEW_LINE>List<Permanent> toExile = new ArrayList<>();<NEW_LINE>for (UUID creatureId : this.getTargetPointer().getTargets(game, source)) {<NEW_LINE>Permanent creatur... | DelayedTriggeredAbility delayedAbility = new AtTheBeginOfNextEndStepDelayedTriggeredAbility(exileEffect); |
696,453 | private RequestBody createRequestBody(BaseRequest<?, ?> request) {<NEW_LINE>if (request.isMultipart()) {<NEW_LINE>MediaType contentType = MediaType.parse(request.getContentType());<NEW_LINE>MultipartBody.Builder builder = new MultipartBody.Builder().setType(MultipartBody.FORM);<NEW_LINE>for (Map.Entry<String, Object> p... | (byte[]) value)); |
298,633 | private static Collection<MendelianViolationMetrics> mergeMetrics(final Collection<Collection<MendelianViolationMetrics>> resultsToReduce) {<NEW_LINE>final Collection<MendelianViolationMetrics> allMetrics = new ArrayList<>();<NEW_LINE>resultsToReduce.forEach(allMetrics::addAll);<NEW_LINE>final Map<String, List<Mendelia... | ArrayList<MendelianViolationMetrics>::new)); |
1,615,284 | private List<Vrf> initVrfsIfAbsent(Set<String> names, ParserRuleContext ctx, @Nonnull CumulusStructureUsage usage) {<NEW_LINE>ImmutableList.Builder<Vrf<MASK><NEW_LINE>ImmutableList.Builder<String> newVrfs = ImmutableList.builder();<NEW_LINE>for (String name : names) {<NEW_LINE>Vrf vrf = _c.getVrfs().get(name);<NEW_LINE... | > vrfsBuilder = ImmutableList.builder(); |
1,711,065 | protected Component createFeedItemComponent(FeedItem item) {<NEW_LINE>JPanel panel = new JPanel(new GridBagLayout());<NEW_LINE>panel.setOpaque(false);<NEW_LINE>int row = 0;<NEW_LINE>if (item.dateTime != null) {<NEW_LINE>JLabel label = new JLabel();<NEW_LINE>label.setFont(RSS_DESCRIPTION_FONT);<NEW_LINE>label.setForegro... | Utils.getRssHeaderColor(), false); |
416,928 | public Attribute createAttribute(HttpClientResponse response, String name, String value) {<NEW_LINE>if (useDisk) {<NEW_LINE>Attribute attribute;<NEW_LINE>try {<NEW_LINE>attribute = new DiskAttribute(name, value, charset, baseDir, deleteOnExit);<NEW_LINE>attribute.setMaxSize(maxSize);<NEW_LINE>} catch (IOException e) {<... | minSize, charset, baseDir, deleteOnExit); |
1,053,992 | private void addContent() {<NEW_LINE>int rows = payload.usesIntermediaryBank() ? 22 : 16;<NEW_LINE>addTitledGroupBg(gridPane, ++rowIndex, rows, Res.get("payment.swift.headline"));<NEW_LINE>// spacer<NEW_LINE>gridPane.add(new Label(""), 0, ++rowIndex);<NEW_LINE>addLabelsAndCopy(Res.get("portfolio.pending.step2_buyer.amo... | ), payload.getBeneficiaryName()); |
1,746,848 | public <T> Flux<MultiGetItem<T>> multiGet(Query query, Class<T> clazz, IndexCoordinates index) {<NEW_LINE>Assert.notNull(index, "Index must not be null");<NEW_LINE>Assert.notNull(clazz, "Class must not be null");<NEW_LINE>Assert.notNull(query, "Query must not be null");<NEW_LINE>DocumentCallback<T> callback = new ReadD... | multiGetItem.getFailure()))); |
1,126,919 | public DatasetVersion addDatasetVersionTags(String datasetVersionId, List<String> tagsList) {<NEW_LINE>try (var session = modelDBHibernateUtil.getSessionFactory().openSession()) {<NEW_LINE>DatasetVersionEntity datasetVersionObj = session.get(DatasetVersionEntity.class, datasetVersionId, LockMode.PESSIMISTIC_WRITE);<NEW... | RdbmsUtils.convertTagListFromTagMappingList(datasetVersionObj, newTags); |
1,300,467 | private void replaceQuoteSpans(Spannable spannable) {<NEW_LINE>QuoteSpan[] quoteSpans = spannable.getSpans(0, spannable.length(), QuoteSpan.class);<NEW_LINE>for (QuoteSpan quoteSpan : quoteSpans) {<NEW_LINE>final int start = spannable.getSpanStart(quoteSpan);<NEW_LINE>final int end = spannable.getSpanEnd(quoteSpan);<NE... | ), start, end, flags); |
915,204 | /* (non-Javadoc)<NEW_LINE>* @see com.biglybt.ui.swt.maketorrent.IWizardPanel#show()<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void show() {<NEW_LINE>display = wizard.getDisplay();<NEW_LINE>wizard.setTitle(MessageText.getString("wizard.maketorrent.progresstitle"));<NEW_LINE>wizard.setCurrentInfo("");<NEW_LINE>wizar... | (display, SWT.COLOR_WHITE)); |
565,417 | public static void main(String[] args) {<NEW_LINE>if (args.length < 3 || args[0].equals("-h")) {<NEW_LINE>printUsageAndExit();<NEW_LINE>}<NEW_LINE>long duration = 0;<NEW_LINE>long rate = 16000;<NEW_LINE>// mono<NEW_LINE>int channels = 1;<NEW_LINE>int i = 0;<NEW_LINE>// Go through all arguments except the last one<NEW_L... | 2 * channels, rate, false); |
492,007 | public static DescribeTagsResponse unmarshall(DescribeTagsResponse describeTagsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeTagsResponse.setRequestId(_ctx.stringValue("DescribeTagsResponse.RequestId"));<NEW_LINE>describeTagsResponse.setPageSize(_ctx.integerValue("DescribeTagsResponse.PageSize"));<NEW_LINE>des... | ("DescribeTagsResponse.Tags[" + i + "].ResourceTypeCount.Snapshot")); |
673,557 | private int writeInternal(String path, Pointer buf, @size_t long size, @off_t long offset, FuseFileInfo fi) {<NEW_LINE>if (size > Integer.MAX_VALUE) {<NEW_LINE>LOG.error("Cannot write more than Integer.MAX_VALUE");<NEW_LINE>return ErrorCodes.EIO();<NEW_LINE>}<NEW_LINE>final int sz = (int) size;<NEW_LINE>final long fd =... | LOG.error("Cannot find fd for {} in table", path); |
511,758 | public static void deleteComplexField(P p) {<NEW_LINE>List<R> runsToDelete = new ArrayList<R>();<NEW_LINE>boolean inField = false;<NEW_LINE>for (Object o : p.getContent()) {<NEW_LINE>o = XmlUtils.unwrap(o);<NEW_LINE>// keep bookmark, proofErr etc in this sample code<NEW_LINE>if (!(o instanceof R))<NEW_LINE>continue;<NE... | R) o, STFldCharType.BEGIN); |
1,680,334 | @RequiresPermissions(SidecarRestPermissions.CONFIGURATIONS_UPDATE)<NEW_LINE>@Produces(MediaType.APPLICATION_JSON)<NEW_LINE>@ApiOperation(value = "Delete a configuration variable")<NEW_LINE>@AuditEvent(type = SidecarAuditEventTypes.CONFIGURATION_VARIABLE_DELETE)<NEW_LINE>public Response deleteConfigurationVariable(@ApiP... | final ConfigurationVariable configurationVariable = findVariableOrFail(id); |
1,484,984 | public static void execute(ManagerConnection c, String stmt) {<NEW_LINE>Map<String, String> paramster = parse(stmt);<NEW_LINE>int retryTime = 1;<NEW_LINE>long intervalTime = 200;<NEW_LINE>// "show @@CKECK_GLOBAL -SCHEMA=TESTDB -TABLE=E_ACCOUNT_SUBJECT -retrytime=2"<NEW_LINE>// + " -intervaltime=20"<NEW_LINE>String tabl... | writeErrMessage(ErrorCode.ER_UNKNOWN_ERROR, "schemaName is null, please add paramster -schema=schemaname "); |
1,784,288 | private void addChemicalInjectorConcreteRecipes(Consumer<FinishedRecipe> consumer, String basePath) {<NEW_LINE>addChemicalInjectorConcreteRecipe(consumer, basePath, Blocks.BLACK_CONCRETE_POWDER, Blocks.BLACK_CONCRETE, "black");<NEW_LINE>addChemicalInjectorConcreteRecipe(consumer, basePath, Blocks.BLUE_CONCRETE_POWDER, ... | WHITE_CONCRETE_POWDER, Blocks.WHITE_CONCRETE, "white"); |
663,094 | public int[] executeInstructions(int n, int[] startPos, String s) {<NEW_LINE><MASK><NEW_LINE>int[] ans = new int[m];<NEW_LINE>Map<Character, int[]> mp = new HashMap<>(4);<NEW_LINE>mp.put('L', new int[] { 0, -1 });<NEW_LINE>mp.put('R', new int[] { 0, 1 });<NEW_LINE>mp.put('U', new int[] { -1, 0 });<NEW_LINE>mp.put('D', ... | int m = s.length(); |
1,574,493 | public static FunctionArgumentDefinition fromXContent(XContentParser parser) throws IOException {<NEW_LINE>if (parser.currentToken() != XContentParser.Token.START_OBJECT) {<NEW_LINE>throw new IllegalArgumentException("Expected a START_OBJECT but got " + parser.currentToken());<NEW_LINE>}<NEW_LINE>String name = null;<NE... | "Expected \"name\" or \"data_type\", but got " + parser.currentName()); |
237,260 | public void run(RegressionEnvironment env) {<NEW_LINE>String joinStatement = "@name('s0') select id, p00, theString from " + "SupportBean#length(100) as s1, " + " method:SupportStaticMethodInvocations.fetchObjectLog(theString, intPrimitive)";<NEW_LINE>env.compileDeploy(joinStatement).addListener("s0");<NEW_LINE>// set ... | , SupportStaticMethodInvocations.getInvocationSizeReset())); |
1,585,121 | protected void encodeFilter(FacesContext context, Tree tree, String name) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>writer.startElement("div", null);<NEW_LINE>writer.writeAttribute("class", Tree.FILTER_CONTAINER, null);<NEW_LINE>writer.startElement("input", null);<NEW_L... | writeAttribute("autocomplete", "off", null); |
582,894 | public static ListCorpMetricsResponse unmarshall(ListCorpMetricsResponse listCorpMetricsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listCorpMetricsResponse.setRequestId(_ctx.stringValue("ListCorpMetricsResponse.RequestId"));<NEW_LINE>listCorpMetricsResponse.setTotalCount(_ctx.integerValue("ListCorpMetricsResponse.To... | (_ctx.integerValue("ListCorpMetricsResponse.PageSize")); |
1,075,479 | protected void createGrpcComponents() throws SiteWhereException {<NEW_LINE>this.userManagementGrpcServer = new UserManagementGrpcServer(this, getUserManagement());<NEW_LINE>this.tenantManagementGrpcServer = new <MASK><NEW_LINE>// Device management.<NEW_LINE>IDeviceManagementApiChannel<?> deviceManagement = new DeviceMa... | TenantManagementGrpcServer(this, getTenantManagement()); |
1,270,348 | private boolean handleRoute(boolean checkFirstRoute, SipServletRequestImpl request, String route, SipApplicationRouterInfo appInfo) {<NEW_LINE>if (c_logger.isTraceEntryExitEnabled()) {<NEW_LINE>c_logger.traceEntry(this, "handleRoute", new Object[] { checkFirstRoute, request, route, appInfo });<NEW_LINE>}<NEW_LINE>Addre... | this, "handleRoute", "Unable to construct URI from the route URI string " + sipRouteUri); |
760,753 | public void eval() {<NEW_LINE>String userAgentString = org.apache.drill.exec.expr.fn.impl.StringFunctionHelpers.getStringFromVarCharHolder(useragent);<NEW_LINE>String userAgentField = org.apache.drill.exec.expr.fn.impl.StringFunctionHelpers.getStringFromVarCharHolder(fieldName);<NEW_LINE>nl.basjes.parse.useragent.UserA... | agent = uaa.parse(userAgentString); |
1,428,419 | public void print() {<NEW_LINE>log.info(m_info.toString());<NEW_LINE>if (m_layout == null)<NEW_LINE>layout();<NEW_LINE>// Paper Attributes: media-printable-area, orientation-requested, media<NEW_LINE>PrintRequestAttributeSet prats = m_layout.getPaper().getPrintRequestAttributeSet();<NEW_LINE>// add: copies, job-nam... | m_info.isAsync() || printCopy); |
221,798 | private void registerMetrics() {<NEW_LINE>if (!isFaultToleranceMetricsEnabled()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (introspector.hasCircuitBreaker()) {<NEW_LINE>CircuitBreakerStateTotal.register(() -> methodState.breakerTimerOpen, introspector.getMethodNameTag(), CircuitBreakerState.OPEN.get());<NEW_LINE>Circui... | CircuitBreakerState.CLOSED.get()); |
1,288,457 | public com.amazonaws.services.iotwireless.model.ResourceNotFoundException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.iotwireless.model.ResourceNotFoundException resourceNotFoundException = new com.amazonaws.services.iotwireless.model.ResourceNotFoundExcepti... | JsonToken token = context.getCurrentToken(); |
1,724,607 | public Answer scaleVm(final ScaleVmCommand cmd) {<NEW_LINE>TransactionLegacy txn = TransactionLegacy.open(TransactionLegacy.SIMULATOR_DB);<NEW_LINE>try {<NEW_LINE>txn.start();<NEW_LINE>final String vmName = cmd.getVmName();<NEW_LINE>final MockVMVO <MASK><NEW_LINE>if (vm == null) {<NEW_LINE>return new ScaleVmAnswer(cmd,... | vm = _mockVmDao.findByVmName(vmName); |
1,168,374 | public double minDist(SpatialComparable mbr1, SpatialComparable mbr2) {<NEW_LINE>final int <MASK><NEW_LINE>double agg = 0., norm1 = 0, norm2 = 0.;<NEW_LINE>for (int i = 0; i < dim; i++) {<NEW_LINE>final double min1 = mbr1.getMin(i), max1 = mbr1.getMax(i);<NEW_LINE>final double min2 = mbr2.getMin(i), max2 = mbr2.getMax(... | dim = dimensionality(mbr1, mbr2); |
1,415,223 | public JobConfigIdentifier translateToActualCase(JobConfigIdentifier identifier) {<NEW_LINE>PipelineConfig pipelineConfig = getCurrentConfig().pipelineConfigByName(new CaseInsensitiveString(identifier.getPipelineName()));<NEW_LINE>String translatedPipelineName = CaseInsensitiveString.str(pipelineConfig.name());<NEW_LIN... | (identifier.getStageName())); |
1,024,176 | private Mono<Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String routeTableName, RouteTableInner parameters, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is requi... | error(new IllegalArgumentException("Parameter routeTableName is required and cannot be null.")); |
1,068,337 | public boolean convert(File presentationFile, File output, int page, UploadedPresentation pres) {<NEW_LINE>String COMMAND = SWFTOOLS_DIR + File.separatorChar + "png2swf -o " + output.getAbsolutePath() + " " + presentationFile.getAbsolutePath();<NEW_LINE>boolean done = new ExternalProcessExecutor().exec(COMMAND, 10000);... | "presId", pres.getId()); |
423,663 | public static String[] annotateTypeParameter(String originalSignature, String annotatedType, int rank, MergeStrategy mergeStrategy) {<NEW_LINE>// prefix, orig, replacement, postfix<NEW_LINE>String[] result = new String[4];<NEW_LINE>StringBuffer buf = new StringBuffer();<NEW_LINE>// may already contain annotations<NEW_L... | end, originalSignature.length()); |
1,095,758 | public void describe(StringBuilder msg, boolean verbose) {<NEW_LINE>msg.append(mKind);<NEW_LINE>if (mFinished) {<NEW_LINE>msg.append(" took ").append(mEndTime - mStartTime).append("ms");<NEW_LINE>} else {<NEW_LINE>msg.append(" started ").append(System.currentTimeMillis() - mStartWallTime).append("ms ago");<NEW_LINE>}<N... | arg = mBindArgs.get(i); |
1,751,823 | public Result preprocessEnter(@Nonnull final PsiFile file, @Nonnull final Editor editor, @Nonnull final Ref<Integer> caretOffset, @Nonnull final Ref<Integer> caretAdvance, @Nonnull final DataContext dataContext, final EditorActionHandler originalHandler) {<NEW_LINE>Result res = shouldSkipWithResult(file, editor, dataCo... | , linePrefix.length())); |
460,752 | final GetDeviceResult executeGetDevice(GetDeviceRequest getDeviceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getDeviceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<GetDeviceRequest> request = null;<NE... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,374,300 | private void propagatePersistedInternal(Supplier<JournalContext> journalContext, LockedInodePath inodePath) throws FileDoesNotExistException {<NEW_LINE>Inode inode = inodePath.getInode();<NEW_LINE>List<Inode> inodes = inodePath.getInodeList();<NEW_LINE>// Traverse the inodes from target inode to the root.<NEW_LINE>Coll... | path = mInodeTree.getPath(ancestor); |
1,621,870 | private static void printUsage() {<NEW_LINE>System.out.println();<NEW_LINE>System.out.println("SYNOPSIS");<NEW_LINE>System.out.println(" " + BenchmarkServer.class.getSimpleName() + " [-a ADDRESS] [-p PORT] [-t POOLSIZE] [-s SENDERS] [-r RECEIVERS]");<NEW_LINE>System.out.println("OPTIONS");<NEW_LINE>System.out.println("... | System.out.println(" Bind the server to a specific host IP address given by ADDRESS (default is wildcard address)."); |
841,734 | public com.amazonaws.services.codecommit.model.CannotDeleteApprovalRuleFromTemplateException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.codecommit.model.CannotDeleteApprovalRuleFromTemplateException cannotDeleteApprovalRuleFromTemplateException = new com.am... | JsonToken token = context.getCurrentToken(); |
845,260 | public void baseTick() {<NEW_LINE>super.baseTick();<NEW_LINE>float radius = 5F;<NEW_LINE>float renderRadius = (float) (radius - Math.random());<NEW_LINE>for (int i = 0; i < Math.min(90, tickCount); i++) {<NEW_LINE>float a = i;<NEW_LINE>if (a % 2 == 0) {<NEW_LINE>a = 45 + a;<NEW_LINE>}<NEW_LINE>if (level.random.nextInt(... | getEntitiesOfClass(LivingEntity.class, boundingBox); |
403,669 | private void addToDataSet(List<List<Map>> listbigPaths, ListDataSet dataSet) {<NEW_LINE>List<TSDataType> listType = new ArrayList<>();<NEW_LINE>int i = 0;<NEW_LINE>for (List<Map> listPaths : listbigPaths) {<NEW_LINE>RowRecord record = new RowRecord(0);<NEW_LINE>for (Map<String, Object> map : listPaths) {<NEW_LINE>TSDat... | (((float) val)); |
680,414 | public String export(boolean isWindows, GrpcRequestContainer request, Templater templater) {<NEW_LINE>String lineBreak = isWindows ? " ^\n " : " \\\n ";<NEW_LINE>String quote = isWindows ? "\"" : "'";<NEW_LINE>StringBuilder b = new StringBuilder();<NEW_LINE>b.append("grpcurl ");<NEW_LINE>request.getAspect(GrpcHeaderA... | (Collectors.joining(lineBreak)); |
72,952 | private void generatePackageHtml(Writer out, JCLPackage pkg) throws IOException {<NEW_LINE>String template;<NEW_LINE>try (Reader reader = new InputStreamReader(classLoader.getResourceAsStream("html/jcl-class.html"), StandardCharsets.UTF_8)) {<NEW_LINE>template = IOUtils.toString(reader);<NEW_LINE>}<NEW_LINE>template = ... | template.substring(0, placeholderIndex); |
253,212 | private RelNode handleProject(LogicalProject project, RelNode child) {<NEW_LINE>List<RexNode> pros = Lists.newLinkedList();<NEW_LINE>Map<Integer, Integer> shift = shiftMap.get(child);<NEW_LINE>List<Integer> childAdd = childAddMap.get(child);<NEW_LINE>Set<Integer> toAdd = addMap.get(project);<NEW_LINE>if (shift != null)... | childAddMap.put(r, addListForParent); |
658,959 | private void renderSubtree(int depth, Node node, Appendable out) throws IOException {<NEW_LINE>String eltName = node.getXPathNodeName();<NEW_LINE>checkValidName(eltName);<NEW_LINE>indent(depth, out).append('<').append(eltName);<NEW_LINE>Map<String, String> <MASK><NEW_LINE>for (String attrName : attributes.keySet()) {<N... | attributes = strategy.getXmlAttributes(node); |
1,352,392 | private void queryPreviouslyNotable(List<ResultDomain> domainsBatch, CentralRepository centralRepo, SearchContext context) throws DiscoveryException, SearchCancellationException {<NEW_LINE>if (domainsBatch.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>final CorrelationAttributeInstance.Type attribute... | centralRepo.getCorrelationTypeById(CorrelationAttributeInstance.DOMAIN_TYPE_ID); |
887,106 | public MutablePair<CoreV1Event, V1Patch> observe(CoreV1Event event, String key) {<NEW_LINE>OffsetDateTime now = OffsetDateTime.now();<NEW_LINE>EventLog lastObserved = this.eventCache.getIfPresent(key);<NEW_LINE>V1Patch patch = null;<NEW_LINE>if (lastObserved != null && lastObserved.count != null && lastObserved.count >... | MutablePair<>(event, patch); |
1,023,313 | private boolean fixBooleanUsage(MethodNode mth, ITypeBound bound) {<NEW_LINE>ArgType boundType = bound.getType();<NEW_LINE>if (boundType == ArgType.BOOLEAN || (boundType.isTypeKnown() && !boundType.isPrimitive())) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>RegisterArg boundArg = bound.getArg();<NEW_LINE>if (boundArg ... | secondArg = arithInsn.getArg(1); |
1,273,324 | public void layout(LayoutContext c, int contentStart) {<NEW_LINE>BlockFormattingContext bfc = new BlockFormattingContext(this, c);<NEW_LINE>c.pushBFC(bfc);<NEW_LINE>addBoxID(c);<NEW_LINE>this.calcDimensions(c);<NEW_LINE>int colCount = getStyle().columnCount();<NEW_LINE>int colGapCount = colCount - 1;<NEW_LINE>float col... | setAbsY(this.getAbsY()); |
24,469 | public Variable emitIntegerTestMove(Value left, Value right, Value trueValue, Value falseValue) {<NEW_LINE>assert left.getPlatformKind() == right.getPlatformKind() && ((AArch64Kind) left.getPlatformKind()).isInteger();<NEW_LINE>assert trueValue.getPlatformKind() == falseValue.getPlatformKind();<NEW_LINE>((AArch64Arithm... | (result, ConditionFlag.NE)); |
323,326 | public static void main(String[] args) {<NEW_LINE>long sentCount = 10;<NEW_LINE>String groupId = "test_group_id";<NEW_LINE>String streamId = "test_stream_id";<NEW_LINE>String busIp = "127.0.0.1";<NEW_LINE>int busPort = 46802;<NEW_LINE>String attr = "";<NEW_LINE>UdpClientExample demo = new UdpClientExample();<NEW_LINE>C... | long seqId = idGenerator.getNextInt(); |
657,532 | private synchronized void rewriteFile() throws FileNotFoundException, IOException {<NEW_LINE>JsonArrayBuilder jsonToStore = Json.createArrayBuilder();<NEW_LINE>// Iterate through the assets in id order<NEW_LINE>Map<String, JsonObject> assetMap = assets == null ? Collections.<String<MASK><NEW_LINE>for (int i = 1; i < id... | , JsonObject>emptyMap() : assets; |
617,227 | private void initializeMissingQueryFields(Query query) {<NEW_LINE>lazyTrace(query, 7, "Routing to storage cluster ", getStorageClusterRouteSpec());<NEW_LINE>if (route == null) {<NEW_LINE>route = Route.parse(getStorageClusterRouteSpec());<NEW_LINE>}<NEW_LINE>lazyTrace(query, 8, "Route is ", route);<NEW_LINE>lazyTrace(qu... | ), ", default docsum class=", getDefaultDocsumClass()); |
577,239 | public synchronized boolean replaceDraftPlayer(Player oldPlayer, String name, PlayerType playerType, int skill) {<NEW_LINE>Optional<Player> newPlayerOpt = createPlayer(name, playerType, skill);<NEW_LINE>if (!newPlayerOpt.isPresent() || table.getState() != TableState.DRAFTING) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LIN... | Player newPlayer = newPlayerOpt.get(); |
1,764,349 | public TypeBinding bind(MethodScope scope, TypeBinding typeBinding, boolean used) {<NEW_LINE>// basically a no-op if createBinding() was called before<NEW_LINE>TypeBinding <MASK><NEW_LINE>// record the resolved type into the type reference<NEW_LINE>Binding existingVariable = scope.getBinding(this.name, Binding.VARIABLE... | newTypeBinding = createBinding(scope, typeBinding); |
55,184 | private void maybeInitDecoder() throws ExoPlaybackException {<NEW_LINE>if (decoder != null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>setDecoderDrmSession(sourceDrmSession);<NEW_LINE>CryptoConfig cryptoConfig = null;<NEW_LINE>if (decoderDrmSession != null) {<NEW_LINE>cryptoConfig = decoderDrmSession.getCryptoConfig();<NEW... | ), decoderInitializedTimestamp, decoderInitializedTimestamp - decoderInitializingTimestamp); |
344,209 | public String toSrcPath(String packageName, String basePath) {<NEW_LINE>// FIXME: a parameter should not be assigned. Also declare the methods parameters as 'final'.<NEW_LINE>packageName = packageName.replace(invokerPackage, "");<NEW_LINE>if (basePath != null && basePath.length() > 0) {<NEW_LINE>// FIXME: a parameter s... | "[\\\\/]?$", "") + File.separator; |
610,634 | protected void initLayout() {<NEW_LINE>ThemeConstants theme = App.getInstance().getThemeConstants();<NEW_LINE>VerticalLayout root = new VerticalLayout();<NEW_LINE>root.setWidthUndefined();<NEW_LINE>root.setSpacing(true);<NEW_LINE>root.setMargin(false);<NEW_LINE>setContent(root);<NEW_LINE>messages = AppBeans.get(Message... | (presentation.getAutoSave())); |
414,951 | public RayTraceResult rayTraceBlocks(Location start, Vector direction, double maxDistance, FluidCollisionMode mode, boolean ignorePassableBlocks) {<NEW_LINE>Validate.notNull(start, "Start location equals null");<NEW_LINE>Validate.isTrue(this.equals(start.getWorld()), "Start location a different world");<NEW_LINE>start.... | Validate.notNull(direction, "Direction equals null"); |
1,664,375 | private static Certificate loadCertificate(File f) {<NEW_LINE>X509Certificate cert = null;<NEW_LINE>Common.logger.add(new LogEntry(LogEntry.PB_LOG_INFO, "Loading SSL certificate from PEM file: " + f.getAbsolutePath()));<NEW_LINE>try {<NEW_LINE>byte<MASK><NEW_LINE>byte[] certBytes = parseDERFromPEM(fileBuf, "-----BEGIN ... | [] fileBuf = fileToBytes(f); |
1,752,938 | public List<byte[]> convert(List<float[]> audioPackets) {<NEW_LINE>List<byte[]> converted = new ArrayList<>();<NEW_LINE>if (mResampler != null) {<NEW_LINE>audioPackets = mResampler.resample(audioPackets);<NEW_LINE>}<NEW_LINE>for (int x = 0; x < audioPackets.size(); x++) {<NEW_LINE>byte[] bytesToEncode = null;<NEW_LINE>... | finalChunkSize = mEncoder.encodeFinish(mOutputFramesBuffer); |
1,806,465 | public static void openEditorForReblog(Activity activity, @Nullable SiteModel site, @Nullable ReaderPost post, PagePostCreationSourcesDetail reblogSource) {<NEW_LINE>if (post == null) {<NEW_LINE>ToastUtils.showToast(activity, R.string.post_not_found, ToastUtils.Duration.SHORT);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (... | EXTRA_REBLOG_POST_TITLE, post.getTitle()); |
747,162 | final PutEmailIdentityDkimSigningAttributesResult executePutEmailIdentityDkimSigningAttributes(PutEmailIdentityDkimSigningAttributesRequest putEmailIdentityDkimSigningAttributesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putEmailIdentityDkimSigningAttributesRequest);<NEW_LINE>AWSReque... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "PutEmailIdentityDkimSigningAttributes"); |
1,223,854 | public Observable<ServiceResponse<TrendingImages>> trendingWithServiceResponseAsync(TrendingOptionalParameter trendingOptionalParameter) {<NEW_LINE>final String acceptLanguage = trendingOptionalParameter != null ? trendingOptionalParameter.acceptLanguage() : null;<NEW_LINE>final String userAgent = trendingOptionalParam... | ? trendingOptionalParameter.safeSearch() : null; |
32,935 | // @Consumes({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })<NEW_LINE>@Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })<NEW_LINE>public Response update(@HeaderParam(Constants.SESSION_TOKEN_HEADER_NAME) String sessionToken, @PathParam("entityClass") String entityClassName, String input, @Co... | sessionToken.replaceAll("^\"|\"$", ""); |
1,499,136 | public void valueChanged(ListSelectionEvent e) {<NEW_LINE>if (e.getValueIsAdjusting()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>boolean singleSelection = table.getSelectedRowCount() == 1;<NEW_LINE>boolean selected = table.getSelectedRow() > -1;<NEW_LINE>if (singleSelection) {<NEW_LINE>RepositoryModel repository = getSele... | modelRow = table.convertRowIndexToModel(viewRow); |
511,129 | private Comparator<DataSource> byPidComparator() {<NEW_LINE>return new Comparator<DataSource>() {<NEW_LINE><NEW_LINE>public int compare(DataSource d1, DataSource d2) {<NEW_LINE>if (isFinishedAtBottom()) {<NEW_LINE>int ret = checkUnavailable(d1, d2);<NEW_LINE>if (ret != 0)<NEW_LINE>return ret;<NEW_LINE>}<NEW_LINE>boolea... | BY_NAME_COMPARATOR.compare(d1, d2); |
1,223,228 | private File createLayoutMap() throws TOTorrentException {<NEW_LINE>// create a directory/file hierarchy that mirrors that prescribed by the descriptor<NEW_LINE>// along with a linkage map to be applied during construction<NEW_LINE>if (descriptor_dir != null) {<NEW_LINE>return (descriptor_dir);<NEW_LINE>}<NEW_LINE>try ... | + temp, TOTorrentException.RT_WRITE_FAILS)); |
339,802 | public INDArray doForward(boolean training, LayerWorkspaceMgr workspaceMgr) {<NEW_LINE>if (!canDoForward())<NEW_LINE>throw new IllegalStateException("Cannot do forward pass: inputs not set (L2NormalizeVertex " + vertexName + " idx " + vertexIndex + ")");<NEW_LINE>// L2 norm along all dimensions except 0, unless user-sp... | max(xNorm2, eps, false); |
1,238,052 | protected void markStreamsAsUsedInternal(Transaction t, final Map<Long, byte[]> streamIdsToReference) {<NEW_LINE>if (streamIdsToReference.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>UserPhotosStreamIdxTable index = tables.getUserPhotosStreamIdxTable(t);<NEW_LINE>Multimap<UserPhotosStreamIdxTable.UserPhotosStreamI... | ] reference = entry.getValue(); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.