idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,096,238
private Unit createUnit(Business business, PullResult result, Unit sup, Department org) throws Exception {<NEW_LINE>EntityManagerContainer emc = business.entityManagerContainer();<NEW_LINE>Unit unit = new Unit();<NEW_LINE><MASK><NEW_LINE>unit.setName(org.getDeptNameCn());<NEW_LINE>unit.setUnique(org.getDeptCode());<NEW...
emc.beginTransaction(Unit.class);
1,526,180
static Request postData(PostDataRequest postDataRequest) {<NEW_LINE>String endpoint = new EndpointBuilder().addPathPartAsIs("_xpack").addPathPartAsIs("ml").addPathPartAsIs("anomaly_detectors").addPathPart(postDataRequest.getJobId()).addPathPartAsIs("_data").build();<NEW_LINE>Request request = new Request(HttpPost.METHO...
), postDataRequest.getResetStart());
668,842
public Observable<ServiceResponseWithHeaders<Page<ComputeNode>, ComputeNodeListHeaders>> listWithServiceResponseAsync(final String poolId, final ComputeNodeListOptions computeNodeListOptions) {<NEW_LINE>return listSinglePageAsync(poolId, computeNodeListOptions).concatMap(new Func1<ServiceResponseWithHeaders<Page<Comput...
withOcpDate(computeNodeListOptions.ocpDate());
1,387,365
public FileSystemEndpoints unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>FileSystemEndpoints fileSystemEndpoints = new FileSystemEndpoints();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context...
String currentParentElement = context.getCurrentParentElement();
193,476
private Mono<Response<StreamingEndpointSkuInfoListResultInner>> skusWithResponseAsync(String resourceGroupName, String accountName, String streamingEndpointName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoin...
this.client.mergeContext(context);
439,077
Pair<Long, Long> charge(RestRequest restRequest, long usage) {<NEW_LINE>long quotaValue = -1L;<NEW_LINE>long usageAfterCharge = 0L;<NEW_LINE>try {<NEW_LINE>Account account = RestUtils.getAccountFromArgs(restRequest.getArgs());<NEW_LINE>Container container = RestUtils.getContainerFromArgs(restRequest.getArgs());<NEW_LIN...
error("Failed to charge for RestRequest {}", restRequest, e);
115,699
public static GetMonitorResultResponse unmarshall(GetMonitorResultResponse getMonitorResultResponse, UnmarshallerContext _ctx) {<NEW_LINE>getMonitorResultResponse.setRequestId(_ctx.stringValue("GetMonitorResultResponse.RequestId"));<NEW_LINE>getMonitorResultResponse.setCode(_ctx.stringValue("GetMonitorResultResponse.Co...
(_ctx.stringValue("GetMonitorResultResponse.Message"));
984,548
public void showSMSVerificationDialog() {<NEW_LINE>isSMSDialogShowing = true;<NEW_LINE>smsDialogTimeChecker.update();<NEW_LINE>MaterialAlertDialogBuilder dialogBuilder = new MaterialAlertDialogBuilder(this);<NEW_LINE>LayoutInflater inflater = getLayoutInflater();<NEW_LINE>final View dialogView = inflater.inflate(R.layo...
(), SMSVerificationActivity.class));
1,283,905
public void launch(GhidraApplicationLayout layout, String[] args) throws IOException {<NEW_LINE>Application.initializeApplication(layout, new HeadlessGhidraApplicationConfiguration());<NEW_LINE>if (args.length == 0) {<NEW_LINE>usage(args);<NEW_LINE>}<NEW_LINE>File outputFile = null;<NEW_LINE>File srczip = null;<NEW_LIN...
File(args[++i]);
865,363
public Function newInstance(int position, ObjList<Function> args, IntList argPositions, CairoConfiguration configuration, SqlExecutionContext sqlExecutionContext) {<NEW_LINE>Function <MASK><NEW_LINE>int type = function.getType();<NEW_LINE>// Reuse first implementation overriding computeNext() method inline<NEW_LINE>swi...
function = args.getQuick(0);
126,918
public void addHashAndDescendantCount() {<NEW_LINE>switch(hashType) {<NEW_LINE>case ROLLING:<NEW_LINE>// Setup.<NEW_LINE>final var startNode = getCurrentNode();<NEW_LINE>final long oldDescendantCount = getStructuralNode().getDescendantCount();<NEW_LINE>final long descendantCount = oldDescendantCount == 0 ? 1 : oldDesce...
moveTo(startNode.getParentKey());
171,138
protected Map<String, Object> transform(final Contentlet contentlet, final Map<String, Object> map, final Set<TransformOptions> options, final User user) {<NEW_LINE>final List<Field> binaries = contentlet.getContentType(<MASK><NEW_LINE>if (!binaries.isEmpty()) {<NEW_LINE>for (final Field field : binaries) {<NEW_LINE>tr...
).fields(BinaryField.class);
587,865
public void initTimeBar() {<NEW_LINE>if (mPlayerFragment.getPlayer() == null) {<NEW_LINE>Log.e(TAG, "Player is null");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int incrementMS;<NEW_LINE>final long durationMS = mPlayerFragment<MASK><NEW_LINE>if (durationMS < 10 * 60 * 1000) {<NEW_LINE>// 0 - 10 min<NEW_LINE>incrementMS = SE...
.getPlayer().getDuration();
264,643
final UpdateFunctionDefinitionResult executeUpdateFunctionDefinition(UpdateFunctionDefinitionRequest updateFunctionDefinitionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateFunctionDefinitionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
125,583
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...
Utils.getValueFromIdByName(id, "monitors");
44,495
private void translateStreamingImpulse(String id, RunnerApi.Pipeline pipeline, StreamingTranslationContext context) {<NEW_LINE>RunnerApi.PTransform pTransform = pipeline.getComponents().getTransformsOrThrow(id);<NEW_LINE>TypeInformation<WindowedValue<byte[]>> typeInfo = new CoderTypeInformation<>(WindowedValue.getFullC...
throw new RuntimeException("Failed to parse configuration for streaming impulse", e);
1,039,721
final DescribeFolderContentsResult executeDescribeFolderContents(DescribeFolderContentsRequest describeFolderContentsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeFolderContentsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
endClientExecution(awsRequestMetrics, request, response);
704,756
private OPFData peek(InputStream inputStream) throws InvalidVersionException {<NEW_LINE>OPFDataBuilder builder = new OPFDataBuilder();<NEW_LINE>SAXParserFactory factory = SAXParserFactory.newInstance();<NEW_LINE>factory.setNamespaceAware(true);<NEW_LINE>factory.setValidating(false);<NEW_LINE>try {<NEW_LINE>factory.setF...
getXMLReader().setContentHandler(handler);
1,633,794
protected void removeRemoteFileFromRemoteMachine(RemoteFile remoteFile) throws Exception {<NEW_LINE>String methodName = "removeRemoteFileFromRemoteMachine";<NEW_LINE>Log.info(thisClass, methodName, "Remote File: " + remoteFile.toString());<NEW_LINE>boolean result = true;<NEW_LINE>SshClient sshClient = getSshClient();<N...
thisClass, methodName, "Remove file from remote host result: " + result);
885,647
public void filter(ContainerRequestContext reqCtx, ContainerResponseContext respCtx) throws IOException {<NEW_LINE>final int responseCode = respCtx.getStatusInfo().getStatusCode();<NEW_LINE>final String responsePhrase = respCtx.getStatusInfo().getReasonPhrase();<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE...
entityClass, entityType, entityAnnotations, entityMediaType);
1,734,981
private static boolean processFunctionClause(@NotNull Project project, @NotNull Editor editor, int offset, @NotNull ErlangFunctionClause functionClause) {<NEW_LINE>TemplateManager templateManager = TemplateManager.getInstance(project);<NEW_LINE>ErlangQAtom qAtom = functionClause.getQAtom();<NEW_LINE>List<ErlangArgument...
i, foo, foo, true);
1,687,629
public void read(org.apache.thrift.protocol.TProtocol iprot, append_batch_args struct) throws org.apache.thrift.TException {<NEW_LINE>org.<MASK><NEW_LINE>iprot.readStructBegin();<NEW_LINE>while (true) {<NEW_LINE>schemeField = iprot.readFieldBegin();<NEW_LINE>if (schemeField.type == org.apache.thrift.protocol.TType.STOP...
apache.thrift.protocol.TField schemeField;
1,455,517
void prepareInjections() {<NEW_LINE>this.activities.clear();<NEW_LINE>try {<NEW_LINE>this.injectors.clear();<NEW_LINE>IActivity prepareActivity = this.activities.begin("?");<NEW_LINE>for (MethodNode method : this.mergedMethods) {<NEW_LINE>prepareActivity.next("%s%s", method.name, method.desc);<NEW_LINE>IActivity method...
this.injectors.add(injectInfo);
602,166
private void checkVerticals(Collection<StraightFilament> sticks) {<NEW_LINE>final GlyphIndex glyphIndex = sheet.getGlyphIndex();<NEW_LINE>final <MASK><NEW_LINE>int seedNb = 0;<NEW_LINE>logger.debug("S#{} searching verticals on {} sticks", system.getId(), sticks.size());<NEW_LINE>for (StraightFilament stick : sticks) {<...
double minThreshold = stemChecker.getMinThreshold();
1,050,603
public void initialize() {<NEW_LINE>IPreferenceStore preferenceStore = PreferenceConstants.getPreferenceStore();<NEW_LINE>bindColor(PreferenceConstants.GROOVY_EDITOR_HIGHLIGHT_GJDK_COLOR, PreferenceConverter.getColor(preferenceStore, PreferenceConstants.GROOVY_EDITOR_HIGHLIGHT_GJDK_COLOR));<NEW_LINE>bindColor(Preferenc...
(preferenceStore, PreferenceConstants.GROOVY_EDITOR_HIGHLIGHT_RETURN_COLOR));
5,393
public boolean remove(final K key) throws StoreAccessException {<NEW_LINE>checkKey(key);<NEW_LINE>removeObserver.begin();<NEW_LINE>final StoreEventSink<K, V> eventSink = eventDispatcher.eventSink();<NEW_LINE>final long now = timeSource.getTimeMillis();<NEW_LINE>final AtomicBoolean removed = new AtomicBoolean(false);<NE...
end(StoreOperationOutcomes.RemoveOutcome.REMOVED);
308,332
public final <R extends Record, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> InsertImpl insertInto(Table<R> into, Field<T1> field1, Field<T2> field2, Field<T3> field3, Field<T4> field4, Field<T5> field5, Field<T6> field6, Field<T7> field7, Field<T8> field8, Field<T9> field9, Field<T10> field10...
, field14, field15, field16));
1,712,106
public void execute(DelegateExecution execution) {<NEW_LINE><MASK><NEW_LINE>ExecutionEntity executionEntity = (ExecutionEntity) execution;<NEW_LINE>ProcessEngineConfigurationImpl processEngineConfiguration = CommandContextUtil.getProcessEngineConfiguration(commandContext);<NEW_LINE>String configuration = null;<NEW_LINE...
CommandContext commandContext = Context.getCommandContext();
424,809
public BaseLastAnalysisResultVO processBiz(ToolLastAnalysisResultVO arg, boolean isLast) {<NEW_LINE>long taskId = arg.getTaskId();<NEW_LINE>String toolName = arg.getToolName();<NEW_LINE>String buildId = arg.getBuildId();<NEW_LINE>LintStatisticEntity statisticEntity;<NEW_LINE>if (isLast) {<NEW_LINE>statisticEntity = lin...
(Collectors.toList()));
266,993
public Request<PublishRequest> marshall(PublishRequest publishRequest) {<NEW_LINE>if (publishRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(PublishRequest)");<NEW_LINE>}<NEW_LINE>Request<PublishRequest> request = new DefaultRequest<PublishRequest>(publishRequest, "AWSIo...
request.addHeader("Content-Type", "application/x-amz-json-1.0");
846,441
final ListBulkDeploymentDetailedReportsResult executeListBulkDeploymentDetailedReports(ListBulkDeploymentDetailedReportsRequest listBulkDeploymentDetailedReportsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listBulkDeploymentDetailedReportsRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMe...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
51,570
public Parent createContent() {<NEW_LINE>ImageView speedNeedle = new ImageView(needleImg);<NEW_LINE>Rotate speedRotate = new Rotate(0, SPEED_CENTER_X, SPEED_CENTER_Y);<NEW_LINE>speedNeedle.getTransforms().addAll(speedRotate, new Translate(SPEED_CENTER_X - NEEDLE_CENTER_X, SPEED_CENTER_Y - NEEDLE_CENTER_Y));<NEW_LINE>sp...
speed.getValue() + 1);
868,082
public Object intercept(final Invocation invocation) throws Throwable {<NEW_LINE>StatementHandler statementHandler = (StatementHandler) invocation.getTarget();<NEW_LINE>// Elegant access to object properties through MetaObject, here is access to the properties of statementHandler;<NEW_LINE>// MetaObject is an object pr...
, "\"").toLowerCase());
393,076
// TODO: Vespa 8: remove<NEW_LINE>@SuppressWarnings("removal")<NEW_LINE>protected DocumentReply doDecode(DocumentDeserializer buf) {<NEW_LINE>CreateVisitorReply reply = new CreateVisitorReply(DocumentProtocol.REPLY_CREATEVISITOR);<NEW_LINE>reply.setLastBucket(new BucketId(buf.getLong(null)));<NEW_LINE>VisitorStatistics...
(buf.getLong(null));
1,136,471
private void fetchRetryLoop(long entryId, int attempt, List<BookieId> ensemble, ImmutableList<Integer> writeSet, CompletableFuture<ByteBuf> promise, Optional<Throwable> firstException) {<NEW_LINE>if (attempt >= writeSet.size()) {<NEW_LINE>promise.completeExceptionally(firstException.orElse(<MASK><NEW_LINE>return;<NEW_L...
new BKException.BKReadException()));
294,789
public String invoice(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value) {<NEW_LINE>if (// assuming it is resetting value<NEW_LINE>isCalloutActive())<NEW_LINE>return "";<NEW_LINE>Integer C_Invoice_ID = (Integer) value;<NEW_LINE>if (C_Invoice_ID == null || C_Invoice_ID.intValue() == 0) {<NEW_LIN...
(rs.getString(4));
537,360
public void onMatch(RelOptRuleCall call) {<NEW_LINE>LogicalCorrelate correlate = call.rel(0);<NEW_LINE>RelNode <MASK><NEW_LINE>RelNode uncollect = call.rel(2);<NEW_LINE>if (correlate.getRequiredColumns().cardinality() != 1) {<NEW_LINE>// can only unnest a single column<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (correlate...
outer = call.rel(1);
1,308,015
final SetReceiptRulePositionResult executeSetReceiptRulePosition(SetReceiptRulePositionRequest setReceiptRulePositionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(setReceiptRulePositionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
760,465
final DescribeTransitGatewaysResult executeDescribeTransitGateways(DescribeTransitGatewaysRequest describeTransitGatewaysRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeTransitGatewaysRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
824,743
public Object calculate(Context ctx) {<NEW_LINE>if (param == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("ftp_dir" + mm.getMessage("function.missingParam"));<NEW_LINE>}<NEW_LINE>int size = 0;<NEW_LINE>FtpClientImpl client = null;<NEW_LINE>SFtpClientImpl sclient = null;<NEW_L...
s = sclient.deldir(patterns);
1,688,975
public void refreshTable(HiveMetaStoreTableInfo hmsTable) throws DdlException {<NEW_LINE>String dbName = hmsTable.getDb();<NEW_LINE>String tableName = hmsTable.getTable();<NEW_LINE>List<Column> partColumns = getPartitionColumns(hmsTable);<NEW_LINE>List<String> columnNames = getAllColumnNames(hmsTable);<NEW_LINE>HivePar...
dbName, tableName, partColumns, columnNames);
1,039,988
public void applyChangesInternal() {<NEW_LINE>getPhpOptions().setDebuggerPort(parseInteger(debuggerPanel.getPort()));<NEW_LINE>getPhpOptions().setDebuggerSessionId(debuggerPanel.getSessionId());<NEW_LINE>getPhpOptions().setDebuggerMaxDataLength(parseInteger(debuggerPanel.getMaxDataLength()));<NEW_LINE>getPhpOptions().s...
setDebuggerWatchesAndEval(debuggerPanel.isWatchesAndEval());
116,633
private DerivedFile derivedFile(ResultSet rs, CaseDbConnection connection, long parentId) throws SQLException {<NEW_LINE>// NON-NLS<NEW_LINE>boolean hasLocalPath = rs.getBoolean("has_path");<NEW_LINE>// NON-NLS<NEW_LINE>long objId = rs.getLong("obj_id");<NEW_LINE>String localPath = null;<NEW_LINE>TskData.EncodingType e...
parentPath = rs.getString("parent_path");
493,555
public GetCommitResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetCommitResult getCommitResult = new GetCommitResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = conte...
int originalDepth = context.getCurrentDepth();
1,197,198
public byte[] replaceRecord(int entryIndex, byte[] record, final int recordVersion) {<NEW_LINE>int entryIndexPosition = PAGE_INDEXES_OFFSET + entryIndex * INDEX_ITEM_SIZE;<NEW_LINE>int oldRecordVersion = getIntValue(entryIndexPosition + OIntegerSerializer.INT_SIZE);<NEW_LINE>if (recordVersion != -1) {<NEW_LINE>setIntVa...
3 * OIntegerSerializer.INT_SIZE, record);
1,467,182
RoutingPolicy toRouteMap() {<NEW_LINE>String routeMapName = _routeMap.getName();<NEW_LINE>String currentRoutingPolicyName = _routeMap.getName();<NEW_LINE>ImmutableList.Builder<Statement> currentRoutingPolicyStatements = ImmutableList.builder();<NEW_LINE>currentRoutingPolicyStatements.add(Statements.SetReadIntermediateB...
get(_routeMap.getName());
1,664,535
final ListKafkaVersionsResult executeListKafkaVersions(ListKafkaVersionsRequest listKafkaVersionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listKafkaVersionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
846,681
private void computeVolumes(KNNSearcher<DBIDRef> knnq, int dim, DBIDs ids, WritableDoubleDataStore vols) {<NEW_LINE>FiniteProgress prog = LOG.isVerbose() ? new FiniteProgress("Volume", ids.size(), LOG) : null;<NEW_LINE>double scaleconst = MathUtil.SQRTPI * FastMath.pow(GammaDistribution.gamma(1 + dim * .5), -1. / dim);...
iter, kplus).getKNNDistance();
10,443
private static boolean binaryOpen(@NonNull final FileObject toSearch, @NonNull final ElementHandle<? extends Element> toOpen, @NonNull final AtomicBoolean cancel) {<NEW_LINE>boolean res = false;<NEW_LINE>final BinaryElementOpen beo = Lookup.getDefault().lookup(BinaryElementOpen.class);<NEW_LINE>if (beo != null) {<NEW_L...
.getDefault().getBootstrapLibraries();
589,615
public final void save(final OutputStream os, final Object obj) {<NEW_LINE>final <MASK><NEW_LINE>final HiddenMarkovModel net = (HiddenMarkovModel) obj;<NEW_LINE>out.addSection("HMM");<NEW_LINE>out.addSubSection("PARAMS");<NEW_LINE>out.addProperties(net.getProperties());<NEW_LINE>out.addSubSection("CONFIG");<NEW_LINE>ou...
EncogWriteHelper out = new EncogWriteHelper(os);
1,007,957
public void updateLocalFeedCounts(FeedSet fs) {<NEW_LINE>// decompose the FeedSet into a list of single feeds that need to be recounted<NEW_LINE>List<String> feedIds = new ArrayList<String>();<NEW_LINE>List<String> socialFeedIds = new ArrayList<String>();<NEW_LINE>if (fs.isAllNormal()) {<NEW_LINE>feedIds.addAll(getAllF...
singleFs = FeedSet.singleFeed(feedId);
1,332,704
private static CompletionProvider<CompletionParameters> typeCompletionProvider() {<NEW_LINE>return new CompletionProvider<CompletionParameters>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected void addCompletions(@Nullable CompletionParameters completionParameters, ProcessingContext processingContext, @Nullable Comp...
getParentOfType(element, PsiMethod.class);
658,324
public Request<ListTablesRequest> marshall(ListTablesRequest listTablesRequest) {<NEW_LINE>if (listTablesRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(ListTablesRequest)");<NEW_LINE>}<NEW_LINE>Request<ListTablesRequest> request = new DefaultRequest<MASK><NEW_LINE>Strin...
<ListTablesRequest>(listTablesRequest, "AmazonDynamoDB");
1,657,639
static public Flag parse(Node item, String containingFile) {<NEW_LINE>Flag returnFlag = null;<NEW_LINE>if (item.getNodeName().equalsIgnoreCase("group")) {<NEW_LINE>NamedNodeMap nodeMap = item.getAttributes();<NEW_LINE>Node <MASK><NEW_LINE>String groupName = null;<NEW_LINE>if (groupNameNode != null) {<NEW_LINE>groupName...
groupNameNode = nodeMap.getNamedItem("name");
1,845,162
public void marshall(UpdateIndexRequest updateIndexRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (updateIndexRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(updateIndexRequest.getId(), ID...
updateIndexRequest.getDescription(), DESCRIPTION_BINDING);
1,817,925
public static void main(String[] args) {<NEW_LINE>Map<Integer, Instance> instanceMap = new HashMap<>();<NEW_LINE>var messageManager = new RingMessageManager(instanceMap);<NEW_LINE>var instance1 = new RingInstance(messageManager, 1, 1);<NEW_LINE>var instance2 = new RingInstance(messageManager, 2, 1);<NEW_LINE>var instan...
var thread2 = new Thread(instance2);
818,278
public boolean visit(SQLShowIndexesStatement x) {<NEW_LINE>final List<SQLCommentHint> headHints = x.getHeadHintsDirect();<NEW_LINE>if (headHints != null) {<NEW_LINE>for (SQLCommentHint hint : headHints) {<NEW_LINE>hint.accept(this);<NEW_LINE>println();<NEW_LINE>}<NEW_LINE>}<NEW_LINE>print0(ucase ? "SHOW " : "show ");<N...
print0(ucase ? " WHERE " : " where ");
1,521,178
protected final void initProcessorList(Project proj, RunConfig config) {<NEW_LINE>// get the registered processors.<NEW_LINE>Lookup.Result<OutputProcessorFactory> result = Lookup.getDefault().lookupResult(OutputProcessorFactory.class);<NEW_LINE>Iterator<? extends OutputProcessorFactory> it = result.allInstances().itera...
OutputProcessorFactory factory = it.next();
1,770,294
private List<ProjectionContext> processArguments(List<RowExpression> arguments, ImmutableList.Builder<RowExpression> newArguments, boolean local) {<NEW_LINE>// Break function arguments into local and remote projections first<NEW_LINE>ImmutableList.Builder<List<ProjectionContext>> argumentProjections = ImmutableList.bui...
mergeProjectionContexts(argumentProjections.build());
992,272
public void process(boolean validate, boolean documentsOnly) {<NEW_LINE>for (SDField field : schema.allConcreteFields()) {<NEW_LINE>if (field.doesIndexing() && field.getDataType().getPrimitiveType() instanceof NumericDataType) {<NEW_LINE>if (field.getIndex(field.getName()) != null && !(field.getIndex(field.getName()).g...
ScriptExpression script = field.getIndexingScript();
338,187
public static Validated build(String pattern, @Nullable String metadataPattern) {<NEW_LINE>Matcher matcher = TILDE_RANGE_PATTERN.matcher(pattern);<NEW_LINE>if (!matcher.matches()) {<NEW_LINE>return Validated.invalid("tildeRange", pattern, "not a tilde range");<NEW_LINE>}<NEW_LINE>String major = matcher.group(1);<NEW_LI...
(parseInt(major) + 1);
621,021
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see<NEW_LINE>* org.eclipse.paho.mqttv5.client.IMqttAsyncClient#subscribe(org.eclipse.paho.<NEW_LINE>* mqttv5.common.MqttSubscription[], java.lang.Object,<NEW_LINE>* org.eclipse.paho.mqttv5.client.MqttActionListener,<NEW_LINE>* org.eclipse.paho.mqttv5.client.IMqttMessag...
removeMessageListener(subscription.getTopic());
1,842,324
final GetMapTileResult executeGetMapTile(GetMapTileRequest getMapTileRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getMapTileRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<...
endClientExecution(awsRequestMetrics, request, response);
1,412,507
private boolean isSurefireRunningInParallel() {<NEW_LINE>// http://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html<NEW_LINE>// http://maven.apache.org/surefire/maven-surefire-plugin/examples/fork-options-and-parallel-execution.html<NEW_LINE>String parallel = // NOI18N<NEW_LINE>PluginPropertyUtils.// NOI1...
PLUGIN_SUREFIRE, "forkCount", "test", "forkCount");
47,955
private TreeMap<String, String> generateStylesMap(Context context) {<NEW_LINE>final Collator collator = OsmAndCollator.primaryCollator();<NEW_LINE>TreeMap<String, String> res = new TreeMap<>(new Comparator<String>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public int compare(String string1, String string2) {<NEW_LINE>if...
.getRendererRegistry().getRenderers();
1,642,670
public static void searchBack(final Project project, final Editor editor, @Nullable DataContext context) {<NEW_LINE>FindManager findManager = FindManager.getInstance(project);<NEW_LINE>if (!findManager.findWasPerformed() && !findManager.selectNextOccurrenceWasPerformed()) {<NEW_LINE>new IncrementalFindAction().getHandl...
project, editor, offset, model);
1,825,614
public org.bukkit.entity.Entity createEntity(Location location, BaseEntity state) {<NEW_LINE>checkNotNull(location);<NEW_LINE>checkNotNull(state);<NEW_LINE>CraftWorld craftWorld = ((CraftWorld) location.getWorld());<NEW_LINE>ServerLevel worldServer = craftWorld.getHandle();<NEW_LINE>Entity createdEntity = createEntityF...
), location.getPitch());
464,647
protected void nextIteration() {<NEW_LINE>if ((inner != null) && inner.hasNext()) {<NEW_LINE>next = inner.next();<NEW_LINE>hasNext = true;<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>while (iterator.hasNext()) {<NEW_LINE>if (inner == null || !inner.hasNext()) {<NEW_LINE>if (innerStream != null) {<NEW_LINE>innerStream.close();...
T arg = iterator.next();
1,774,246
private String buildCondition(String field, QueryCondition cond) {<NEW_LINE>if (QueryOp.IN.equals(cond.getOp()) || QueryOp.NOT_IN.equals(cond.getOp())) {<NEW_LINE>String[] values = cond.getValue().split(",");<NEW_LINE>List<String> vals = new ArrayList<String>();<NEW_LINE>for (String val : values) {<NEW_LINE>vals.add(St...
), cond.getValue());
1,660,826
public com.amazonaws.services.timestreamquery.model.QueryExecutionException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.timestreamquery.model.QueryExecutionException queryExecutionException = new com.amazonaws.services.timestreamquery.model.QueryExecutionExc...
String currentParentElement = context.getCurrentParentElement();
1,728,861
public void onClick(View widget) {<NEW_LINE>if (url.startsWith(PREFIX_CMD)) {<NEW_LINE>try {<NEW_LINE>String cmd = url.substring(PREFIX_CMD.length());<NEW_LINE>ConversationActivity activity = <MASK><NEW_LINE>activity.setDraftText(cmd + " ");<NEW_LINE>} catch (Exception e) {<NEW_LINE>e.printStackTrace();<NEW_LINE>}<NEW_...
(ConversationActivity) widget.getContext();
389,091
protected boolean[] doInBackground(Recipient... params) {<NEW_LINE>Recipient recipient = params[0].resolve();<NEW_LINE>Log.i(TAG, "Resolving registered state...");<NEW_LINE>RegisteredState registeredState;<NEW_LINE>if (recipient.isPushGroup()) {<NEW_LINE>Log.i(TAG, "Push group recipient...");<NEW_LINE>registeredState =...
Log.i(TAG, "Checking through resolved recipient");
478,852
public GetKeyspaceResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetKeyspaceResult getKeyspaceResult = new GetKeyspaceResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = ori...
class).unmarshall(context));
1,711,960
private static void handleOverlayPermissionsMissing(final Application application) {<NEW_LINE>// RN needs "OVERLAY_PERMISSION" in dev mode in order to render the menu and redbox and stuff.<NEW_LINE>// In dev we check if we have that permission (if we've made it here, we don't) and send the user<NEW_LINE>// to the setti...
Toast.LENGTH_LONG).show();
1,710,202
public static AxisAlignedBB rotateAABB(AxisAlignedBB aabb, EnumFacing facing) {<NEW_LINE>if (facing == EnumFacing.DOWN) {<NEW_LINE>return new AxisAlignedBB(aabb.minX, aabb.maxY, aabb.minZ, aabb.maxX, <MASK><NEW_LINE>} else if (facing == EnumFacing.UP) {<NEW_LINE>return new AxisAlignedBB(aabb.minX, 1 - aabb.maxY, aabb.m...
aabb.minY, aabb.maxZ);
1,786,295
public <T> TypeAdapter<T> create(Gson gson, TypeToken<T> type) {<NEW_LINE>if (!AdditionalPropertiesObject.class.isAssignableFrom(type.getRawType())) {<NEW_LINE>// this class only serializes 'AdditionalPropertiesObject' and its subtypes<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final TypeAdapter<JsonElement> elementAdap...
gson.getAdapter(JsonElement.class);
1,112,420
private void tokenizeData() {<NEW_LINE>this.logger.trace("Tokenizing Data");<NEW_LINE>// find the next start delimiter<NEW_LINE>Matcher matcher = this.syntax.getRegexStartDelimiters().matcher(this.source);<NEW_LINE>boolean match = matcher.find();<NEW_LINE>String text;<NEW_LINE>String startDelimiter = null;<NEW_LINE>// ...
this.logger.trace("Left Trimming text");
1,562,986
// --- Abstract interface --------------------------------------------------<NEW_LINE>protected void paint(XYItem item, List<ItemSelection> highlighted, List<ItemSelection> selected, Graphics2D g, Rectangle dirtyArea, SynchronousXYChartContext context) {<NEW_LINE>if (context.getViewWidth() == 0)<NEW_LINE>return;<NEW_LI...
= visibleBounds[0][1];
946,435
public Response listAssignments(@Parameter(description = "Limit by device token", required = false) @QueryParam("deviceToken") String deviceToken, @Parameter(description = "Limit by customer token", required = false) @QueryParam("customerToken") String customerToken, @Parameter(description = "Limit by area token", requ...
(Collections.singletonList(assetToken));
742,640
protected Set<String> selectAnnotatedTargets(String annotationClassName, int scanPolicies, AnnotationCategory category) {<NEW_LINE>// There is a direct line into this call from public APIs (e.g., from getMethodAnnotations).<NEW_LINE>// To this point, no steps have been taken to ensure that scans have been performed,<NE...
(i_annotationClassName, scanPolicies, category));
1,008,728
public static void main(String[] args) {<NEW_LINE>SparkConf conf = new SparkConf().setAppName("BaeldungPIApproximation").setMaster("local[2]");<NEW_LINE>JavaSparkContext context = new JavaSparkContext(conf);<NEW_LINE>int slices = args.length >= 1 ? Integer.valueOf(args[0]) : 2;<NEW_LINE>int n = (100000L * slices) > Int...
context.parallelize(xs, slices);
1,365,553
protected void onUpdateServer() {<NEW_LINE>super.onUpdateServer();<NEW_LINE>energySlot.drainContainer();<NEW_LINE>fuelSlot.fillOrBurn();<NEW_LINE>FloatingLong prev = getEnergyContainer().getEnergy().copyAsConst();<NEW_LINE>heatCapacitor.handleHeat(getBoost().doubleValue());<NEW_LINE>if (MekanismUtils.canFunction(this) ...
Action.EXECUTE, AutomationType.INTERNAL);
472,706
protected ValueTranslator<Ref<?>, com.google.cloud.datastore.Key> createValueTranslator(final TypeKey<Ref<?>> tk, final CreateContext ctx, final Path path) {<NEW_LINE>final LoadConditions loadConditions = new LoadConditions(tk.getAnnotation(Load.class), tk<MASK><NEW_LINE>return new ValueTranslator<Ref<?>, com.google.cl...
.getAnnotation(Parent.class));
172,085
private ResultStream aggregate(final LogState state) throws FrameworkException {<NEW_LINE>// sort entries before aggregation<NEW_LINE>state.sortEntries();<NEW_LINE>final long startTimestamp = state.beginTimestamp();<NEW_LINE>final long endTimestamp = state.endTimestamp();<NEW_LINE>final GraphObjectMap result = new Grap...
true, current + interval, false);
881,044
protected String buildHandle(final List<URIRegisterDTO> uriList, final SelectorDO selectorDO) {<NEW_LINE>String handleAdd;<NEW_LINE>List<WebSocketUpstream> addList = buildWebSocketUpstreamList(uriList);<NEW_LINE>List<WebSocketUpstream> canAddList = new CopyOnWriteArrayList<>();<NEW_LINE>List<WebSocketUpstream> existLis...
collect(Collectors.toList());
1,234,339
private void loadNode521() throws IOException, SAXException {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.ServerConfiguration_CertificateGroups_DefaultApplicationGroup_TrustList_CloseAndUpdate_InputArguments, new QualifiedName(0, "InputArguments"), new LocalizedText("en", "InputArgum...
(1), 0.0, false);
338,992
public void updateUserRole(UserRequest user) {<NEW_LINE>String userId = user.getId();<NEW_LINE>UserGroupExample userGroupExample = new UserGroupExample();<NEW_LINE>userGroupExample.<MASK><NEW_LINE>List<UserGroup> userGroups = userGroupMapper.selectByExample(userGroupExample);<NEW_LINE>List<String> list = userGroups.str...
createCriteria().andUserIdEqualTo(userId);
1,798,576
private void loadLocal(ArrayList<String> patterns) throws Exception {<NEW_LINE>_localFiles.clear();<NEW_LINE>_localIsDir.clear();<NEW_LINE>_localLevels.clear();<NEW_LINE>for (int i = 0; i < patterns.size(); i++) {<NEW_LINE>String pi = patterns.get(i);<NEW_LINE>// System.out.println(pi);<NEW_LINE>int <MASK><NEW_LINE>// ...
pos1 = pi.indexOf("*");
1,363,771
public Request<DescribeConfigurationSetRequest> marshall(DescribeConfigurationSetRequest describeConfigurationSetRequest) {<NEW_LINE>if (describeConfigurationSetRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(DescribeConfigurationSetRequest)");<NEW_LINE>}<NEW_LINE>Reques...
, StringUtils.fromString(configurationSetAttributeNamesItem));
1,692,046
public void promptForListCreation(@NonNull final Action1<Set<Integer>> runAfterwards, final Set<Integer> selectedLists, final String newListName) {<NEW_LINE>// We need to update the list cache by creating a new StoredList object here.<NEW_LINE>handleListNameInput(newListName, R.string.list_dialog_create_title, R.string...
Activity activity = activityRef.get();
37,449
final CreateJobResult executeCreateJob(CreateJobRequest createJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateJob");
1,341,551
JsonOLCandCreateBulkRequest createJsonOLCandCreateBulkRequest(@NonNull final RequestType xmlInvoice, @NonNull final HealthCareInvoiceDocSubType targetDocType, @NonNull final SyncAdvise billerSyncAdvise, @NonNull final SyncAdvise debitorSyncAdvise, @NonNull final SyncAdvise productsSyncAdvise) {<NEW_LINE>final JsonOLCan...
invoiceRecipientEAN(invoiceRecipientEAN).build();
524,098
public DockPopout popout(DockContent content, PopoutType type, Point location, Dimension size) {<NEW_LINE>if (type == PopoutType.NONE || !content.canPopout()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>// Remove content from previous location<NEW_LINE>main.removeContent(content);<NEW_LINE>applyToPopoutsSafe(p -> p.get...
().removeContent(content));
462,091
/*<NEW_LINE>protected void notify(URL refUrl, NotifyListener listener, List<URL> urls) {<NEW_LINE>if (listener == null || urls == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Map<String, List<URL>> nodeTypeUrlsInRs = new HashMap<>();<NEW_LINE>for (URL surl : urls) {<NEW_LINE>String nodeType = surl.getParameter(URLParam...
, nodeTypeUrlsInRs.get(nodeType));
640,881
private FST<Object> buildAutomaton(BytesRefSorter sorter) throws IOException {<NEW_LINE>// Build the automaton.<NEW_LINE>final Outputs<Object> outputs = NoOutputs.getSingleton();<NEW_LINE>final Object empty = outputs.getNoOutput();<NEW_LINE>final FSTCompiler<Object> fstCompiler = new FSTCompiler.Builder<>(FST.INPUT_TYP...
final IntsRefBuilder scratchIntsRef = new IntsRefBuilder();
1,722,144
protected void _uploadPixels(long ptr, Pixels pixels) {<NEW_LINE>Buffer data = pixels.getPixels();<NEW_LINE>if (data.isDirect() == true) {<NEW_LINE>_uploadPixelsDirect(ptr, data, pixels.getWidth(), pixels.getHeight());<NEW_LINE>} else if (data.hasArray() == true) {<NEW_LINE>if (pixels.getBytesPerComponent() == 1) {<NEW...
), pixels.getHeight());
1,343,607
public void mouseWheelMoved(MouseWheelEvent evt) {<NEW_LINE>Point current = evt.getPoint();<NEW_LINE>Rectangle bound = viewer.getViewportBounds();<NEW_LINE>double dx = current<MASK><NEW_LINE>double dy = current.y - bound.height / 2;<NEW_LINE>Dimension oldMapSize = viewer.getTileFactory().getMapSize(viewer.getZoom());<N...
.x - bound.width / 2;
465,686
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see javax.jms.JMSContext#createSharedDurableConsumer(javax.jms.Topic, java.lang.String)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public JMSConsumer createSharedDurableConsumer(Topic topic, String name) throws InvalidDestinationRuntimeException, JMSRuntimeException {<NEW...
new Object[] { jmsConsumer });
1,652,793
public void processMessage(final WebSocketMessage webSocketData) {<NEW_LINE>setDoTransactionNotifications(true);<NEW_LINE>String id = webSocketData.getId();<NEW_LINE>String newTemplateId = webSocketData.getNodeDataStringValue("newTemplateId");<NEW_LINE>// check node to append<NEW_LINE>if (id == null) {<NEW_LINE>getWebS...
).build(), true);
1,806,196
private void findDocuments(QueryBuilder query, ActionListener<Set<DocumentSupplier>> listener) {<NEW_LINE>logger.<MASK><NEW_LINE>final SearchRequest request = client.prepareSearch(ALIAS_NAME).setQuery(query).setSize(1000).setFetchSource(true).request();<NEW_LINE>client.search(request, ActionListener.wrap(response -> {<...
trace("Searching [{}] for [{}]", ALIAS_NAME, query);