idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
706,514 | public void showIndex(final RequestContext context) {<NEW_LINE>final Request request = context.getRequest();<NEW_LINE>final AbstractFreeMarkerRenderer renderer = new SkinRenderer(context, "index.ftl");<NEW_LINE>final Map<String, Object> dataModel = renderer.getDataModel();<NEW_LINE>try {<NEW_LINE>final int currentPageN... | put(Common.PATH, ""); |
823,656 | public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {<NEW_LINE>try {<NEW_LINE>monitor.subTask(Messages.GithubForkWizard_ForkSubTaskName);<NEW_LINE>IGithubRepository repo = ghManager.fork(owner, repoName, organization);<NEW_LINE>// Now clone the repo!<NEW_LINE>CloneJob job = ... | IGithubRepository parentRepo = repo.getParent(); |
287,910 | public Account localCoinbaseAccount() {<NEW_LINE>if (!isMinerServerEnabled()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>// Regtest always has MINER_COINBASE_SECRET_CONFIG set in regtest.conf file. When MINER_REWARD_ADDRESS_CONFIG is set both values exist<NEW_LINE>// and that does not pass the checks below. If MINER_R... | MINER_REWARD_ADDRESS_CONFIG + " or " + MINER_COINBASE_SECRET_CONFIG + " to use the miner server"); |
1,175,286 | private void log(Object result, Throwable e) {<NEW_LINE>try {<NEW_LINE>long statementExecuteTime = System.currentTimeMillis() - start;<NEW_LINE>entry.setDuration(statementExecuteTime);<NEW_LINE>if (dalPropertiesLocator.getTableParseSwitch() == TableParseSwitch.OFF) {<NEW_LINE>Set<String> localTables = new HashSet<>();<... | ) dalTaskContext).setLogEntry(entry); |
517,358 | public static PartitionTupleRouteInfo generateTupleRoutingInfoFromPruneStepOp(PartitionPruneStepOp op) {<NEW_LINE>PartitionInfo partInfo = op.getPartInfo();<NEW_LINE>PartPredicateRouteFunction partPredRouteFunc = (PartPredicateRouteFunction) op.getPredRouteFunc();<NEW_LINE>ComparisonKind comparisonKind = partPredRouteF... | .getSearchExprInfo().getExprExecArr(); |
1,153,095 | private void readCommand(ASTNode commandNode, Set<String> skipTokenTypes) throws ParseException {<NEW_LINE>String keyword = commandNode.getTokenTypeIdentifier("keyword");<NEW_LINE>ASTNode command0Node = commandNode.getNode("command0");<NEW_LINE>ASTNode selectorNode = command0Node.getNode("selector");<NEW_LINE>if (selec... | valueNode = command0Node.getNode("value"); |
190,849 | protected SQLServerTableUniqueKey fetchObject(JDBCSession session, SQLServerSchema schema, SQLServerTableBase table, String childName, JDBCResultSet resultSet) throws SQLException, DBException {<NEW_LINE>String name = <MASK><NEW_LINE>String type = JDBCUtils.safeGetString(resultSet, "type");<NEW_LINE>long indexId = JDBC... | JDBCUtils.safeGetString(resultSet, "name"); |
1,798,579 | public int compareTo(FetchRuleKeyLogsRequest other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.getClass().getName());<NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = java.lang.Boolean.valueOf(isSetRuleKeys()).compareTo(other.isSetRul... | this.ruleKeys, other.ruleKeys); |
1,627,975 | private ProgressObject deploy(Target[] targetList, File moduleArchive, File deploymentPlan, Properties options) throws IllegalStateException {<NEW_LINE>ReadableArchive appArchive = null;<NEW_LINE>ReadableArchive planArchive = null;<NEW_LINE>ArchiveFactory archiveFactory = getArchiveFactory();<NEW_LINE>try {<NEW_LINE>ap... | targetList, appArchive, planArchive, options); |
1,040,200 | private static String equalHeadersIgnoreCOandPG(final Path actualSam, final Path expectedSam, final ValidationStringency validation, final Path reference) throws IOException {<NEW_LINE>try (final SamReader reader1 = getReader(actualSam, validation, reference);<NEW_LINE>final SamReader reader2 = getReader(expectedSam, v... | h2.getCreator(), "File creator"); |
419,767 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>MageObject sourceObject = game.getObject(source);<NEW_LINE>if (controller != null && sourceObject != null) {<NEW_LINE>Cards cards = new CardsImpl(controller.getLibrary().getTopCards(game, 4)... | getCard(target.getFirstTarget()); |
115,277 | public Object validate(Object value, String location) throws Column.ValidationException {<NEW_LINE>value = super.validate(value, location);<NEW_LINE>if (null != value) {<NEW_LINE>TupleValue tupleValue = (TupleValue) value;<NEW_LINE>for (int count = 0; count < parameters().size(); count++) {<NEW_LINE>Column.ColumnType t... | type.validate(o, fieldLocation); |
155,573 | final UpdateInstanceStorageConfigResult executeUpdateInstanceStorageConfig(UpdateInstanceStorageConfigRequest updateInstanceStorageConfigRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateInstanceStorageConfigRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get... | (super.beforeMarshalling(updateInstanceStorageConfigRequest)); |
148,071 | public Request<DeleteResourcePolicyRequest> marshall(DeleteResourcePolicyRequest deleteResourcePolicyRequest) {<NEW_LINE>if (deleteResourcePolicyRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(DeleteResourcePolicyRequest)");<NEW_LINE>}<NEW_LINE>Request<DeleteResourcePoli... | request.setHttpMethod(HttpMethodName.POST); |
1,644,480 | protected List<ST> rot_map_iterator(InstanceScope scope, Iterator<?> attr, List<ST> prototypes) {<NEW_LINE>List<ST> mapped = new ArrayList<ST>();<NEW_LINE>Iterator<?> iter = attr;<NEW_LINE>int i0 = 0;<NEW_LINE>int i = 1;<NEW_LINE>int ti = 0;<NEW_LINE>while (iter.hasNext()) {<NEW_LINE>Object iterValue = iter.next();<NEW... | st = group.createStringTemplateInternally(proto); |
736,466 | protected void postBusEventFromTransaction(final CustomFieldModelDao customField, final CustomFieldModelDao savedCustomField, final ChangeType changeType, final EntitySqlDaoWrapperFactory entitySqlDaoWrapperFactory, final InternalCallContext context) throws BillingExceptionBase {<NEW_LINE>BusInternalEvent customFieldEv... | getHandle().getConnection()); |
671,472 | public static DeleteSipAgentGroupResponse unmarshall(DeleteSipAgentGroupResponse deleteSipAgentGroupResponse, UnmarshallerContext context) {<NEW_LINE>deleteSipAgentGroupResponse.setRequestId(context.stringValue("DeleteSipAgentGroupResponse.RequestId"));<NEW_LINE>deleteSipAgentGroupResponse.setSuccess(context.booleanVal... | ("DeleteSipAgentGroupResponse.SipAgents[" + i + "].Port")); |
1,295,453 | public void marshall(CreateStudioRequest createStudioRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createStudioRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MASK><NEW_LINE>protocolMar... | createStudioRequest.getAdminRoleArn(), ADMINROLEARN_BINDING); |
264,818 | private JsonOLCand toJson(@NonNull final OLCand olCand, @NonNull final MasterdataProvider masterdataProvider) {<NEW_LINE>final OrgId orgId = OrgId.ofRepoId(olCand.getAD_Org_ID());<NEW_LINE>final ZoneId orgTimeZone = masterdataProvider.getOrgTimeZone(orgId);<NEW_LINE>final String orgCode = orgDAO.retrieveOrgValue(orgId)... | getLine()).build(); |
956,613 | protected void applyFix(@Nonnull final Project project, @Nonnull final GlobalInspectionContextImpl context, @Nonnull final CommonProblemDescriptor[] descriptors, @Nonnull final Set<PsiElement> ignoredElements) {<NEW_LINE>final PsiModificationTracker tracker = PsiManager.getInstance(project).getModificationTracker();<NE... | (collectedElementsToIgnore.get(i)); |
1,588,389 | public String assertContent(String assertableContent, SubmitContext context, String type) throws AssertionException {<NEW_LINE>try {<NEW_LINE>if (getPath() == null) {<NEW_LINE>return "Missing path for JsonPath assertion";<NEW_LINE>}<NEW_LINE>if (getExpectedContent() == null) {<NEW_LINE>return "Missing content for JsonP... | assertSimilar(expandedContent, expandedResult, '*'); |
1,655,619 | private RevolutPaymentExport toRevolutExport(@NonNull final I_Revolut_Payment_Export record) {<NEW_LINE>final CurrencyId currencyId = CurrencyId.ofRepoId(record.getC_Currency_ID());<NEW_LINE>final CurrencyCode <MASK><NEW_LINE>final Amount amount = Amount.of(record.getAmount(), currencyCode);<NEW_LINE>final TableRecordR... | currencyCode = currencyDAO.getCurrencyCodeById(currencyId); |
582,225 | public void deleteById(String id) {<NEW_LINE>String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroup... | accountName, streamingEndpointName, Context.NONE); |
1,431,553 | public void onPreLoadSuccess(List<Chapter> list, Comic comic) {<NEW_LINE>hideProgressBar();<NEW_LINE>if (isReverseOrder(comic)) {<NEW_LINE>mDetailAdapter.addAll(Lists.reverse(list));<NEW_LINE>} else {<NEW_LINE>mDetailAdapter.addAll(list);<NEW_LINE>}<NEW_LINE>mDetailAdapter.setInfo(comic.getCover(), comic.getTitle(), co... | mActionButton.setVisibility(View.VISIBLE); |
1,567,405 | public V1StatefulSet customizeStatefulSet(Function.FunctionDetails funcDetails, V1StatefulSet statefulSet) {<NEW_LINE>RuntimeOpts opts = mergeRuntimeOpts(runtimeOpts, getOptsFromDetails(funcDetails));<NEW_LINE>statefulSet.setMetadata(updateMeta(opts, statefulSet.getMetadata()));<NEW_LINE>V1PodTemplateSpec pt = stateful... | .getSpec().getTemplate(); |
1,532,733 | private static Map<String, DnsServerAddresses> retrieveCurrentMappings() {<NEW_LINE>DnsResolver[] resolvers = resolvers();<NEW_LINE>if (resolvers == null || resolvers.length == 0) {<NEW_LINE>return Collections.emptyMap();<NEW_LINE>}<NEW_LINE>Arrays.sort(resolvers, RESOLVER_COMPARATOR);<NEW_LINE>Map<String, DnsServerAdd... | ] nameservers = resolver.nameservers(); |
371,074 | public ServiceResponse serviceImpl(Query post, HttpServletResponse response, Authorization rights, JsonObjectWithDefault permissions) throws APIException {<NEW_LINE>post.setResponse(response, "application/javascript");<NEW_LINE>String jsonString = post.get("json", "{}").trim();<NEW_LINE>String url = post.get("url", "")... | JsonPath.parse(b, path); |
787,385 | protected JFreeChart createBubbleChart() throws JRException {<NEW_LINE>ChartFactory.setChartTheme(StandardChartTheme.createLegacyTheme());<NEW_LINE>JFreeChart jfreeChart = ChartFactory.createBubbleChart(evaluateTextExpression(getChart().getTitleExpression()), evaluateTextExpression(((JRBubblePlot) getPlot()).getXAxisLa... | bubblePlot = (JRBubblePlot) getPlot(); |
1,759,142 | private static HttpRequestDuplicator newReqDuplicator(HttpRequestDuplicator reqDuplicator, ResponseHeaders responseHeaders, RequestHeaders requestHeaders, String newUriString) {<NEW_LINE>final RequestHeadersBuilder builder = requestHeaders.toBuilder();<NEW_LINE>builder.path(newUriString);<NEW_LINE>final HttpMethod meth... | build()).toDuplicator(); |
527,132 | private List<ThreadModel> enumerateThreads(final Map<String, String> classLoaderMap) {<NEW_LINE>// get top ThreadGroup<NEW_LINE>ThreadGroup masterGroup = Thread.currentThread().getThreadGroup();<NEW_LINE>while (masterGroup.getParent() != null) {<NEW_LINE>masterGroup = masterGroup.getParent();<NEW_LINE>}<NEW_LINE>// enu... | numThreads = masterGroup.enumerate(threads); |
1,217,792 | public static Transition branch(BDD guard, Transition thn, Transition els) {<NEW_LINE>if (guard.isOne()) {<NEW_LINE>return thn;<NEW_LINE>}<NEW_LINE>if (guard.isZero()) {<NEW_LINE>return els;<NEW_LINE>}<NEW_LINE>if (els == ZERO) {<NEW_LINE>return compose(constraint(guard), thn);<NEW_LINE>}<NEW_LINE>if (thn == ZERO) {<NE... | Constraint) els).getConstraint(); |
1,288,853 | private Object splitDocument(Document document) throws ParserConfigurationException, TransformerException {<NEW_LINE>Object nodes = splitNode(document);<NEW_LINE>final Transformer transformer;<NEW_LINE>synchronized (this.transformerFactory) {<NEW_LINE>transformer = this.transformerFactory.newTransformer();<NEW_LINE>}<N... | new DOMSource(nodeFromList), result); |
56,409 | public SofaTracerSpan clientSend(String operationName) {<NEW_LINE>SofaTraceContext sofaTraceContext = SofaTraceContextHolder.getSofaTraceContext();<NEW_LINE><MASK><NEW_LINE>SofaTracerSpan clientSpan = null;<NEW_LINE>try {<NEW_LINE>clientSpan = (SofaTracerSpan) this.sofaTracer.buildSpan(operationName).asChildOf(serverSp... | SofaTracerSpan serverSpan = sofaTraceContext.pop(); |
1,619,289 | private MethodCallTargetNode invokeEnumLookup(GraphBuilderTool b, CallTargetFactory callTargetFactory, int bci, EnumInfo enumInfo, JavaKind parameterKind, ValueNode arg) {<NEW_LINE>ValueNode[] args = new ValueNode[2];<NEW_LINE>args[0] = ConstantNode.forConstant(snippetReflection.forObject(enumInfo.getRuntimeData()), b.... | getSignature().getReturnType(null); |
1,204,384 | private void verifyUpdateAllowed(Update command, DomainBase existingDomain, DateTime now) throws EppException {<NEW_LINE>verifyOptionalAuthInfo(authInfo, existingDomain);<NEW_LINE><MASK><NEW_LINE>AddRemove remove = command.getInnerRemove();<NEW_LINE>String tld = existingDomain.getTld();<NEW_LINE>if (!isSuperuser) {<NEW... | AddRemove add = command.getInnerAdd(); |
1,706,618 | protected final Object createInstance(InstanceCookie[] cookies) throws IOException, ClassNotFoundException {<NEW_LINE>FolderLookupData flData = new FolderLookupData();<NEW_LINE>// If we are root, preserve place for abstract lookup which collects items.<NEW_LINE>// see ProxyLkp.update method.<NEW_LINE>if (isRoot) {<NEW_... | .add((ICItem) obj); |
1,831,958 | public void run(IProgressMonitor mon) throws InvocationTargetException, InterruptedException {<NEW_LINE>mon.beginTask("Import Gradle Buildship project", 10);<NEW_LINE>try {<NEW_LINE>File loc = new File(conf.getLocation());<NEW_LINE>conf.getCodeSet().createAt(loc);<NEW_LINE>// Replace project name in the settings.gradle... | NullProgressMonitor(), SpringCoreUtils.NATURE_ID); |
556,681 | public Builder mergeEquip(emu.grasscutter.net.proto.EquipOuterClass.Equip value) {<NEW_LINE>if (equipBuilder_ == null) {<NEW_LINE>if (detailCase_ == 6 && detail_ != emu.grasscutter.net.proto.EquipOuterClass.Equip.getDefaultInstance()) {<NEW_LINE>detail_ = emu.grasscutter.net.proto.EquipOuterClass.Equip.newBuilder((emu.... | mergeFrom(value).buildPartial(); |
1,031,600 | public BlockDocIdIterator iterator() {<NEW_LINE>int numDocIdSets = _docIdSets.size();<NEW_LINE>BlockDocIdIterator[] allDocIdIterators = new BlockDocIdIterator[numDocIdSets];<NEW_LINE>List<SortedDocIdIterator> sortedDocIdIterators = new ArrayList<>();<NEW_LINE>List<BitmapBasedDocIdIterator> bitmapBasedDocIdIterators = n... | ] = remainingDocIdIterators.get(i); |
684,181 | public static ListOTAFirmwareResponse unmarshall(ListOTAFirmwareResponse listOTAFirmwareResponse, UnmarshallerContext _ctx) {<NEW_LINE>listOTAFirmwareResponse.setRequestId(_ctx.stringValue("ListOTAFirmwareResponse.RequestId"));<NEW_LINE>listOTAFirmwareResponse.setSuccess(_ctx.booleanValue("ListOTAFirmwareResponse.Succe... | (_ctx.stringValue("ListOTAFirmwareResponse.ErrorMessage")); |
1,427,611 | public void removeGaps() {<NEW_LINE>if (!info.hasGaps()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int gapXArrayLength = info.getGapXArrayLength();<NEW_LINE>int gapYArrayLength = info.getGapYArrayLength();<NEW_LINE>setLayoutProperty("columnWidths", null);<NEW_LINE>setLayoutProperty("rowHeights", null);<NEW_LINE>int maxX =... | height - 1) / 2 + 1; |
663,077 | public Object multi_unload(@PathVariable(value = DB_KEY) final String dbName, HttpServletRequest request, HttpServletResponse response) {<NEW_LINE>try {<NEW_LINE>executeCheckPassword(request, response);<NEW_LINE>execEnv = ExecuteEnv.getInstance();<NEW_LINE>String label = request.getParameter(LABEL_KEY);<NEW_LINE>if (St... | subLabel = request.getParameter(SUB_LABEL_KEY); |
252,540 | public static DescribeBusinessStatusResponse unmarshall(DescribeBusinessStatusResponse describeBusinessStatusResponse, UnmarshallerContext context) {<NEW_LINE>describeBusinessStatusResponse.setRequestId<MASK><NEW_LINE>describeBusinessStatusResponse.setSuccess(context.booleanValue("DescribeBusinessStatusResponse.Success... | (context.stringValue("DescribeBusinessStatusResponse.RequestId")); |
242,858 | public DistanceTable buildDistances() {<NEW_LINE>// Compute the distance-to-foreground transform image<NEW_LINE>Picture picture = sheet.getPicture();<NEW_LINE>ByteProcessor buffer = picture.getSource(Picture.SourceKey.BINARY);<NEW_LINE>table = new ChamferDistance.Short().computeToFore(buffer);<NEW_LINE>// "Erase" staff... | TemplateBoard(sheet, table, templateService); |
698,626 | public static void main(String[] args) throws IOException {<NEW_LINE>// set-up the client<NEW_LINE>AmazonS3 s3client = AmazonS3ClientBuilder.standard().withCredentials(new AWSStaticCredentialsProvider(credentials)).withRegion(Regions.US_EAST_2).build();<NEW_LINE>AWSS3Service awsService = new AWSS3Service(s3client);<NEW... | "baeldung-bucket", "picture/pic.png", "baeldung-bucket2", "Document/picture.png"); |
354,898 | public void showDetails(File file) {<NEW_LINE>String name = file.getName();<NEW_LINE>String path = file.getPath();<NEW_LINE>String size = FileInfoUtils.getFormattedSize(file);<NEW_LINE>String lastModDate = FileInfoUtils.getFormattedSize(file);<NEW_LINE>TextView message = new TextView(mContext);<NEW_LINE>TextView title ... | setText(R.string.details); |
1,369,509 | final UpdateApiKeyResult executeUpdateApiKey(UpdateApiKeyRequest updateApiKeyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateApiKeyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec... | false), new UpdateApiKeyResultJsonUnmarshaller()); |
1,604,848 | protected JMenu createToolsMenu() {<NEW_LINE>JMenu menu = I18N.createMenu("menu.tools");<NEW_LINE>menu.add(new JMenuItem(AppActions.CHAT_COMMAND));<NEW_LINE>menu.add(new JMenuItem(AppActions.ENTER_COMMAND));<NEW_LINE>menu.add(new JMenuItem(AppActions.ENFORCE_ZONE_VIEW));<NEW_LINE>menu.add(new JMenuItem(AppActions.ENFOR... | (AppActions.TOGGLE_LOG_CONSOLE, menu)); |
589,297 | private <T extends IntegrationNode> SendTimers retrieveTimers(T node, String type) {<NEW_LINE>Timer successTimer = null;<NEW_LINE>try {<NEW_LINE>successTimer = this.registry.get(IntegrationManagement.SEND_TIMER_NAME).tag(TAG_TYPE, type).tag(TAG_NAME, node.getName()).tag(TAG_RESULT, "success").timer();<NEW_LINE>} catch ... | .max(TimeUnit.MILLISECONDS)); |
418,197 | public Request<RetireGrantRequest> marshall(RetireGrantRequest retireGrantRequest) {<NEW_LINE>if (retireGrantRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(RetireGrantRequest)");<NEW_LINE>}<NEW_LINE>Request<RetireGrantRequest> request = new DefaultRequest<RetireGrantReq... | String grantId = retireGrantRequest.getGrantId(); |
1,745,179 | private void computeRemainingRows(int row0, int row1, WorkSpace ws) {<NEW_LINE>int disparityMax = Math.min(left.width, this.disparityMax);<NEW_LINE>for (int row = row0 + regionHeight; row < row1; row++) {<NEW_LINE>int oldRow = (row - row0) % regionHeight;<NEW_LINE>// subtract first row from vertical score<NEW_LINE>fina... | [i] += scores[i]; |
257,521 | private void defineFold(String bundle, String key, Tree expr) {<NEW_LINE>final ClassPath cp = ClassPath.getClassPath(anchor, ClassPath.SOURCE);<NEW_LINE>FileObject bundleFile = cp != null ? cp.findResource(bundle + ".properties") : null;<NEW_LINE>SourcePositions spos = info<MASK><NEW_LINE>int start = (int) spos.getStar... | .getTrees().getSourcePositions(); |
1,786,754 | public static DescribeLocationsResponse unmarshall(DescribeLocationsResponse describeLocationsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeLocationsResponse.setStoreId(_ctx.stringValue("DescribeLocationsResponse.StoreId"));<NEW_LINE>List<LocationMsgItem> locationMsgItems = new ArrayList<LocationMsgItem>();<NE... | ("DescribeLocationsResponse.LocationMsgItems[" + i + "].Name")); |
1,395,474 | public static GetJudicialReviewFreezingThreeResponse unmarshall(GetJudicialReviewFreezingThreeResponse getJudicialReviewFreezingThreeResponse, UnmarshallerContext _ctx) {<NEW_LINE>getJudicialReviewFreezingThreeResponse.setRequestId<MASK><NEW_LINE>getJudicialReviewFreezingThreeResponse.setCode(_ctx.integerValue("GetJudi... | (_ctx.stringValue("GetJudicialReviewFreezingThreeResponse.RequestId")); |
126,359 | static DnsNetworkAddress address(JSONObject jsonObject) {<NEW_LINE>String hostValue = null;<NEW_LINE>String ipValue = null;<NEW_LINE>Long ttlValue = null;<NEW_LINE>String sourceValue = null;<NEW_LINE>Long timestampValue = null;<NEW_LINE>try {<NEW_LINE>hostValue = jsonObject.getString("hostValue");<NEW_LINE>} catch (JSO... | sourceValue = jsonObject.getString("sourceValue"); |
1,134,681 | public ListSigningPlatformsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListSigningPlatformsResult listSigningPlatformsResult = new ListSigningPlatformsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LI... | String currentParentElement = context.getCurrentParentElement(); |
1,428,603 | protected String processKrb5Keytab(Map<String, Object> props) {<NEW_LINE>String spnegoKeytab = (String) props.get(KEY_KRB5_KEYTAB);<NEW_LINE>// from the <kerberos> element<NEW_LINE>Path kerberosKeytab = kerbSvc.getKeytab();<NEW_LINE>if (kerberosKeytab != null) {<NEW_LINE>if (spnegoKeytab == null) {<NEW_LINE>spnegoKeyta... | kt = locationAdmin.resolveResource(spnegoKeytab); |
1,092,602 | public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {<NEW_LINE>builder.startObject();<NEW_LINE>if (docAsUpsert) {<NEW_LINE>builder.field("doc_as_upsert", docAsUpsert);<NEW_LINE>}<NEW_LINE>if (doc != null) {<NEW_LINE>XContentType xContentType = doc.getContentType();<NEW_LINE>try ... | IF_SEQ_NO.getPreferredName(), ifSeqNo); |
584,793 | public com.alibaba.alink.operator.batch.dl.ctr.protos.Esmm.ESMM buildPartial() {<NEW_LINE>com.alibaba.alink.operator.batch.dl.ctr.protos.Esmm.ESMM result = new com.alibaba.alink.operator.batch.dl.ctr.<MASK><NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_LINE>if (groupsBuilder_ == null) {... | protos.Esmm.ESMM(this); |
1,623,711 | private boolean rebalanceByMovingLeadershipIn(Broker broker, ClusterModel clusterModel, Set<Goal> optimizedGoals, OptimizationOptions optimizationOptions) {<NEW_LINE>long moveStartTimeMs = System.currentTimeMillis();<NEW_LINE>if (!clusterModel.deadBrokers().isEmpty() || optimizationOptions.excludedBrokersForLeadership(... | .leaderReplicas().size(); |
918,886 | static ParserState doBufferRW(ParserState state, Object kwds, @SuppressWarnings("unused") char c, @SuppressWarnings("unused") char[] format, @SuppressWarnings("unused") int format_idx, Object kwdnames, Object varargs, @Shared("getArgNode") @Cached GetArgNode getArgNode, @Cached GetVaArgsNode getVaArgNode, @Cached PCall... | kwds, kwdnames, state.restKeywordsOnly); |
1,499,103 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>Permanent enchantment = game.getPermanent(source.getSourceId());<NEW_LINE>if (controller != null && enchantment != null && enchantment.getAttachedTo() != null) {<NEW_LINE>Player targetPlayer... | SubType.CURSE.getPredicate()); |
939,519 | public CodegenExpression evaluateGetTimePeriodCodegen(CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) {<NEW_LINE>CodegenMethod methodNode = codegenMethodScope.makeChild(TimePeriod.EPTYPE, ExprTimePeriodForge.class, codegenClassScope);<NEW_LINE>CodegenBlock ... | counter, methodNode, exprSymbol, codegenClassScope); |
824,697 | private void handlePlaybackInfoError(Exception exception) {<NEW_LINE>Timber.e(exception, "Error getting playback stream info");<NEW_LINE>if (mFragment == null)<NEW_LINE>return;<NEW_LINE>if (exception instanceof PlaybackException) {<NEW_LINE>PlaybackException ex = (PlaybackException) exception;<NEW_LINE>switch(ex.getErr... | (R.string.msg_playback_restricted)); |
1,353,170 | protected Pair<IUnaryExpression, String> transformToSingleQueryFilter(Map<PartialPath, TSDataType> pathTSDataTypeHashMap) throws LogicalOperatorException, MetadataException {<NEW_LINE>TSDataType <MASK><NEW_LINE>if (type == null) {<NEW_LINE>throw new MetadataException("given seriesPath:{" + singlePath.getFullPath() + "}... | type = pathTSDataTypeHashMap.get(singlePath); |
1,193,006 | public static String repeat(String string, int count) {<NEW_LINE>// eager for GWT.<NEW_LINE>checkNotNull(string);<NEW_LINE>if (count <= 1) {<NEW_LINE>checkArgument(count >= 0, "invalid count: %s", count);<NEW_LINE>return (count == 0) ? "" : string;<NEW_LINE>}<NEW_LINE>// IF YOU MODIFY THE CODE HERE, you must update Str... | throw new ArrayIndexOutOfBoundsException("Required array size too large: " + longSize); |
438,331 | public AssociationOverview unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AssociationOverview associationOverview = new AssociationOverview();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDep... | class).unmarshall(context)); |
823,611 | public void run(RegressionEnvironment env) {<NEW_LINE>// test scalar-collection only<NEW_LINE>String[] fieldsScalarColl = "c2,c3".split(",");<NEW_LINE>String eplScalarColl = "@name('s0') select " + "sc(theString) as c0, " + "sc(intPrimitive) as c1, " + "sc(theString).allOf(v => v = 'E1') as c2, " + "sc(intPrimitive).al... | ) event.get("c0")); |
1,636,234 | List<String> readJvmOptionsFiles(final Path config) throws IOException, JvmOptionsFileParserException {<NEW_LINE>final ArrayList<Path> jvmOptionsFiles = new ArrayList<>();<NEW_LINE>jvmOptionsFiles.add(config.resolve("jvm.options"));<NEW_LINE>final Path jvmOptionsDirectory = config.resolve("jvm.options.d");<NEW_LINE>if ... | InputStreamReader(is, StandardCharsets.UTF_8); |
1,148,768 | public void update(int[] x, int y) {<NEW_LINE>if (!isGoodInstance(x)) {<NEW_LINE>logger.info("Skip updating the model with a sample without any feature word");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (model == Model.TWCNB) {<NEW_LINE>throw new UnsupportedOperationException("TWCNB supports only batch learning");<NEW_LIN... | throw new IllegalStateException("Unknown model: " + model); |
305,057 | private JPanel initBuckCellSection() {<NEW_LINE>JPanel panel = new JPanel(new BorderLayout());<NEW_LINE>panel.setBorder(IdeBorderFactory.createTitledBorder("Cells", true));<NEW_LINE>cellTableModel = new ListTableModel<>(CELL_NAME_COLUMN, ROOT_COLUMN, BUILD_FILENAME_COLUMN);<NEW_LINE>cellTableModel.<MASK><NEW_LINE>Table... | setItems(buckCellSettingsProvider.getCells()); |
623,951 | private static boolean dontUseHostName(String nonProxyHosts, String host) {<NEW_LINE>if (host == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>boolean dontUseProxy = false;<NEW_LINE>StringTokenizer st = new StringTokenizer(nonProxyHosts, "|", false);<NEW_LINE>while (st.hasMoreTokens() && !dontUseProxy) {<NEW_LINE>... | 0 ? 0 : star - 1); |
194,874 | public void addResourceHandlers(ResourceHandlerRegistry registry) {<NEW_LINE>if (Strings.isNullOrEmpty(configPath)) {<NEW_LINE>throw new ConfigurationException("conf-path is empty.");<NEW_LINE>}<NEW_LINE>File file = new File(configPath);<NEW_LINE>if (!file.exists()) {<NEW_LINE>File clusterConfPath = new File(configPath... | ).addResourceLocations("file:" + configPath); |
1,514,735 | public JdbcCursorItemReader<T> build() {<NEW_LINE>if (this.saveState) {<NEW_LINE>Assert.hasText(this.name, "A name is required when saveState is set to true");<NEW_LINE>}<NEW_LINE>Assert.hasText(this.sql, "A query is required");<NEW_LINE>Assert.notNull(this.dataSource, "A datasource is required");<NEW_LINE>Assert.notNu... | reader.setCurrentItemCount(this.currentItemCount); |
580,761 | public void transformJson(HistoryJobEntity job, ObjectNode historicalData, CommandContext commandContext) {<NEW_LINE>HistoricCaseInstanceEntityManager historicCaseInstanceEntityManager = cmmnEngineConfiguration.getHistoricCaseInstanceEntityManager();<NEW_LINE>HistoricCaseInstanceEntity historicCaseInstanceEntity = getH... | (historicalData, CmmnAsyncHistoryConstants.FIELD_CASE_DEFINITION_ID)); |
70,091 | public static QueryNumberPriceLevelResponse unmarshall(QueryNumberPriceLevelResponse queryNumberPriceLevelResponse, UnmarshallerContext context) {<NEW_LINE>queryNumberPriceLevelResponse.setRequestId(context.stringValue("QueryNumberPriceLevelResponse.RequestId"));<NEW_LINE>queryNumberPriceLevelResponse.setSuccess(contex... | (context.stringValue("QueryNumberPriceLevelResponse.Message")); |
1,364,102 | public void exposeFoW(ZonePoint p) {<NEW_LINE>// if has fog(required)<NEW_LINE>// and ((isGM with pref set) OR serverPolicy allows auto reveal by players)<NEW_LINE>String name = MapTool.getPlayer().getName();<NEW_LINE>boolean isGM = MapTool.getPlayer().isGM();<NEW_LINE>// if true, reveal FoW if current player owns the ... | .getServerPolicy().isAutoRevealOnMovement(); |
396,253 | public int delete(Uri uri, String selection, String[] selectionArgs) {<NEW_LINE>final SQLiteDatabase db = mOpenHelper.getWritableDatabase();<NEW_LINE>final int match = sUriMatcher.match(uri);<NEW_LINE>int rowsDeleted;<NEW_LINE>switch(match) {<NEW_LINE>case STORY:<NEW_LINE>rowsDeleted = db.delete(HNewsContract.TABLE_ITE... | throw new UnsupportedOperationException("Unknown uri: " + uri); |
523,489 | public void onMatch(RelOptRuleCall call) {<NEW_LINE>final Project project = call.rel(0);<NEW_LINE>final Join join = call.rel(1);<NEW_LINE>final boolean isLeftJoin = join.getJoinType() == JoinRelType.LEFT;<NEW_LINE>int lower = isLeftJoin ? join.getLeft().getRowType().getFieldCount() - 1 : 0;<NEW_LINE>int upper = isLeftJ... | RelMetadataQuery mq = call.getMetadataQuery(); |
736,162 | final DeleteMemberResult executeDeleteMember(DeleteMemberRequest deleteMemberRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteMemberRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
1,181,515 | private void initViews() {<NEW_LINE>Spinner spinnerAnimationType = findViewById(R.id.spinnerAnimationType);<NEW_LINE>setSpinnerAdapter(spinnerAnimationType, R.array.animation_type);<NEW_LINE>spinnerAnimationType.setOnItemSelectedListener(this);<NEW_LINE>spinnerAnimationType.setSelection(customization.getAnimationType()... | spinnerRtl, R.array.rtl); |
1,380,374 | public void onCompletion(client_operator clientOP) {<NEW_LINE>batch_get_operator gop = (batch_get_operator) clientOP;<NEW_LINE>if (gop.rpc_error.errno != error_code.error_types.ERR_OK) {<NEW_LINE>handleReplicaException(new Request(request.keys.get(0).hash_key.data), <MASK><NEW_LINE>} else if (gop.get_response().error !... | promise, op, table, timeout); |
240,353 | public static void checkOwnerAndSecurity(final Map<String, Object> entry, final boolean removeNullOwner) throws FrameworkException {<NEW_LINE>if (entry.containsKey("owner")) {<NEW_LINE>final Map ownerData = ((Map) entry.get("owner"));<NEW_LINE>if (ownerData != null) {<NEW_LINE>final String ownerName = (String) ((Map) e... | entry.put("grantees", cleanedGrantees); |
1,269,125 | public void addArgs(List<String> args) throws Exception {<NEW_LINE>ArgumentWriter writer = new ArgumentWriter(instance);<NEW_LINE>writer.writeIfSet("-a", BIT_LISTEN_ADDRESS);<NEW_LINE>writer.writeIfSet("-o", IOR_FILE);<NEW_LINE>writer.writeIfSet("-NOBITS", NOBITS);<NEW_LINE>writer.writeIfSet("-z", VERBOSE_TRANSPORT_LOG... | writer.writeIfSet("-FederatorConfig", FEDERATOR_CONFIG); |
1,055,041 | public void onAcceptMediationResult(Trade trade, ResultHandler resultHandler, ErrorMessageHandler errorMessageHandler) {<NEW_LINE><MASK><NEW_LINE>Optional<Dispute> optionalDispute = findDispute(tradeId);<NEW_LINE>checkArgument(optionalDispute.isPresent(), "dispute must be present");<NEW_LINE>DisputeResult disputeResult... | String tradeId = trade.getId(); |
1,676,373 | /* NxN board - prioritizes code reuse */<NEW_LINE>public static Piece hasWon2(Piece[][] board) {<NEW_LINE>int N = board.length;<NEW_LINE>Piece winner = Piece.Empty;<NEW_LINE>// Check rows and columns<NEW_LINE>for (int i = 0; i < N; i++) {<NEW_LINE>winner = getWinner(<MASK><NEW_LINE>if (winner != Piece.Empty) {<NEW_LINE... | board, i, Check.Row); |
122,250 | private void trackFeatures(Image input, RectangleRotate_F64 region) {<NEW_LINE>pairs.reset();<NEW_LINE>currentImage.process(input);<NEW_LINE>for (int i = 0; i < currentImage.getNumLayers(); i++) {<NEW_LINE>Image layer = currentImage.getLayer(i);<NEW_LINE>gradient.process(layer, currentDerivX[i], currentDerivY[i]);<NEW_... | fault = klt.track(track); |
362,785 | private TraceNamespaceSymbol createNamespaceIfAbsent(String path) {<NEW_LINE>TraceSymbolManager symbolManager = trace.getSymbolManager();<NEW_LINE>try {<NEW_LINE>return symbolManager.namespaces().add(path, symbolManager.getGlobalNamespace(), SourceType.IMPORTED);<NEW_LINE>} catch (DuplicateNameException e) {<NEW_LINE>M... | "Could not create namespace for new module: " + path + ". Using global namespace.", e); |
1,060,928 | // operationName<NEW_LINE>@SuppressWarnings("deprecation")<NEW_LINE>@Override<NEW_LINE>public void onStart(AttributesBuilder attributes, Context parentContext, REQUEST request) {<NEW_LINE>set(attributes, SemanticAttributes.MESSAGING_SYSTEM, getter.system(request));<NEW_LINE>set(attributes, SemanticAttributes.MESSAGING_... | , getter.destinationKind(request)); |
1,227,648 | private boolean added(Provider<E> provider, E element, Collection<E> providerElements) {<NEW_LINE>final K uid = element.getUID();<NEW_LINE>if (identifierToElement.containsKey(uid)) {<NEW_LINE>logger.debug("Cannot add \"{}\" with key \"{}\". It exists already from provider \"{}\"! Failed to add a second with the same UI... | element.getUID(), element); |
567,563 | public void addMappingForUrlPatterns(EnumSet<DispatcherType> dispatcherTypes, boolean isMatchAfter, String... urlPatterns) {<NEW_LINE>if (ctx.isContextInitializedCalled()) {<NEW_LINE>String msg = MessageFormat.format(rb.getString(LogFacade.FILTER_REGISTRATION_ALREADY_INIT), new Object[] { "url-pattern mapping", filterD... | , ctx.getName() }); |
831,715 | public void store(String ruleName, boolean editable) {<NEW_LINE>final ArrayList<CSSProperty> properties = new ArrayList<>();<NEW_LINE>final RuleMatch match = new RuleMatch();<NEW_LINE>match.matchingSelectors = ListUtil.newImmutableList(0);<NEW_LINE>final Selector selector = new Selector();<NEW_LINE>selector.value = rul... | result.matchedCSSRules.add(match); |
248,461 | protected void parseRoutingCodeHeader() {<NEW_LINE>String rtCode = this.request.getHeader(RestMessageHeaders.X_VOLD_ROUTING_TYPE_CODE);<NEW_LINE>if (rtCode != null) {<NEW_LINE>try {<NEW_LINE>int routingTypeCode = Integer.parseInt(rtCode);<NEW_LINE>this.parsedRoutingType = RequestRoutingType.getRequestRoutingType(routin... | error("Exception when validating request. Incorrect routing type parameter. Cannot parse this to long: " + rtCode, nfe); |
1,361,525 | private void addCircleLayer(@NonNull Style loadedMapStyle) {<NEW_LINE>CircleLayer circleLayer = new CircleLayer(CIRCLE_LAYER_ID, EARTHQUAKE_SOURCE_ID);<NEW_LINE>// Size circle radius by earthquake magnitude and zoom level<NEW_LINE>circleLayer.// Size circle radius by earthquake magnitude and zoom level<NEW_LINE>setProp... | loadedMapStyle.addLayerBelow(circleLayer, HEATMAP_LAYER_ID); |
790,255 | final ListControlInsightsByControlDomainResult executeListControlInsightsByControlDomain(ListControlInsightsByControlDomainRequest listControlInsightsByControlDomainRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listControlInsightsByControlDomainRequest);<NEW_LINE>AWSRequestMetrics awsRe... | false), new ListControlInsightsByControlDomainResultJsonUnmarshaller()); |
1,835,158 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>controller.drawCards(1, source, game);<NEW_LINE>if (!controller.getHand().isEmpty()) {<NEW_LINE>TargetCardInHand target =... | getCard(target.getFirstTarget()); |
1,788,290 | public void read(org.apache.thrift.protocol.TProtocol prot, setNamespaceProperty_result 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(3);<NEW_LINE>if (incomi... | struct.tope.read(iprot); |
1,466,170 | public Expression expression(TableSchema<?> tableSchema, String indexName) {<NEW_LINE>QueryConditionalKeyValues queryConditionalKeyValues1 = QueryConditionalKeyValues.from(key1, tableSchema, indexName);<NEW_LINE>QueryConditionalKeyValues queryConditionalKeyValues2 = QueryConditionalKeyValues.from(key2, tableSchema, ind... | expressionNames(expressionAttributeNames).build(); |
953,423 | public ActivityTypeInfos unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ActivityTypeInfos activityTypeInfos = new ActivityTypeInfos();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token... | int originalDepth = context.getCurrentDepth(); |
1,331,772 | public List<String> processCommand(String command, GcodeState state) throws GcodeParserException {<NEW_LINE>Position c = state.currentPoint;<NEW_LINE>if (c != null) {<NEW_LINE>Position p = new Position(c.x, c.y, c.z, state.isMetric ? Units.MM : Units.INCH).getPositionIn(defaultUnits);<NEW_LINE>// Update min<NEW_LINE>mi... | max.x, p.x); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.