idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
822,384
public com.amazonaws.services.kinesisvideo.model.InvalidResourceFormatException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.kinesisvideo.model.InvalidResourceFormatException invalidResourceFormatException = new com.amazonaws.services.kinesisvideo.model.Inval...
int originalDepth = context.getCurrentDepth();
127,183
public UserNotification save(@NonNull final UserNotificationRequest request) {<NEW_LINE>final I_AD_Note notificationPO = InterfaceWrapperHelper.newInstanceOutOfTrx(I_AD_Note.class);<NEW_LINE>notificationPO.setAD_User_ID(request.getRecipient().getUserId().getRepoId());<NEW_LINE>notificationPO.setIsImportant(request.isIm...
targetViewAction = TargetViewAction.cast(targetAction);
1,193,579
public void onReceive(Context c, Intent intent) {<NEW_LINE>String action = intent.getAction();<NEW_LINE>if (WifiManager.WIFI_STATE_CHANGED_ACTION.equals(action)) {<NEW_LINE>if (isScanEnabled()) {<NEW_LINE>activatePeriodicScan();<NEW_LINE>} else {<NEW_LINE>deactivatePeriodicScan();<NEW_LINE>}<NEW_LINE>} else if (WifiMan...
<ScanResult> scanResultList = getScanResults();
1,717,507
private WorkProcessor<Chunk> buildResult(IntIterator groupIds) {<NEW_LINE>List<DataType> types = new ArrayList(groupKeyType.length + aggValueType.length);<NEW_LINE>for (DataType dataType : groupKeyType) {<NEW_LINE>types.add(dataType);<NEW_LINE>}<NEW_LINE>for (DataType dataType : aggValueType) {<NEW_LINE>types.add(dataT...
).writeResultTo(groupId, output);
683,342
void doPrintNotification(final Notification notification) {<NEW_LINE>Editor editor = getConsoleEditor();<NEW_LINE>if (editor.isDisposed()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Document document = editor.getDocument();<NEW_LINE>boolean scroll = document.getTextLength() == editor.getCaretModel().getOffset() || !editor....
append(document, pair.message);
1,601,575
final DescribeFileSystemAliasesResult executeDescribeFileSystemAliases(DescribeFileSystemAliasesRequest describeFileSystemAliasesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeFileSystemAliasesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
423,549
private void loadPreferencesFromJson(Map<String, ZipFile.JsonFile> result) {<NEW_LINE>ZipFile.JsonFile <MASK><NEW_LINE>if (jsonFile != null) {<NEW_LINE>Map<String, Object> preferences = new Gson().fromJson(jsonFile.content, Map.class);<NEW_LINE>SharedPreferences allPreferences = SkyTubeApp.getPreferenceManager();<NEW_L...
jsonFile = result.get(PREFERENCES_JSON);
435,984
long appendSessionOpen(final ClusterSession session, final long leadershipTermId, final long timestamp) {<NEW_LINE>long result;<NEW_LINE>final byte[<MASK><NEW_LINE>final String channel = session.responseChannel();<NEW_LINE>sessionOpenEventEncoder.wrapAndApplyHeader(expandableArrayBuffer, 0, messageHeaderEncoder).leader...
] encodedPrincipal = session.encodedPrincipal();
1,562,053
private static String buildHTMLText(List<ValidatableLine> headerLines, TextLine displayName, List<ValidatableLine> bodyLines, TextLine infoLine, boolean trim) {<NEW_LINE>StringBuilder fullHtml = new StringBuilder();<NEW_LINE>StringBuilder truncatedHtml = new StringBuilder();<NEW_LINE>int lineCount = 0;<NEW_LINE>// head...
fullHtml, truncatedHtml, lineCount, lineString);
1,508,576
private static MimeMultipart createMultiPartEntity(final ByteString entity, final String entityContentType, String query) throws MessagingException {<NEW_LINE>MimeMultipart multi = new MimeMultipart(MIXED);<NEW_LINE>// Create current entity with the associated type<NEW_LINE>MimeBodyPart dataPart = new MimeBodyPart();<N...
), contentType.getBaseType());
318,075
public Matrix3d mul(Matrix3dc right, Matrix3d dest) {<NEW_LINE>double nm00 = Math.fma(m00, right.m00(), Math.fma(m10, right.m01(), m20 * right.m02()));<NEW_LINE>double nm01 = Math.fma(m01, right.m00(), Math.fma(m11, right.m01(), m21 * right.m02()));<NEW_LINE>double nm02 = Math.fma(m02, right.m00(), Math.fma(m12, right....
* right.m12()));
1,060,416
public void init() {<NEW_LINE>root.getChildren().remove(dialog);<NEW_LINE>centerButton.setOnAction(action -> {<NEW_LINE>dialog.setTransitionType(DialogTransition.CENTER);<NEW_LINE>dialog.show((StackPane) context.getRegisteredObject(CONTENT_PANE));<NEW_LINE>});<NEW_LINE>topButton.setOnAction(action -> {<NEW_LINE>dialog....
) context.getRegisteredObject(CONTENT_PANE));
1,043,758
protected void doExecute(Task task, GetRollupJobsAction.Request request, ActionListener<GetRollupJobsAction.Response> listener) {<NEW_LINE>final ClusterState state = clusterService.state();<NEW_LINE>final DiscoveryNodes nodes = state.nodes();<NEW_LINE>if (nodes.isLocalNodeElectedMaster()) {<NEW_LINE>if (stateHasRollupJ...
doExecute(task, request, listener);
723,041
public // [1 CMS-remark: 243393K(9378240K)] 310268K(10375040K), 0.2151395 secs] [Times: user=1.12 sys=0.09, real=0.21 secs]<NEW_LINE>void splitRemarkReference(GCLogTrace trace, String line) {<NEW_LINE>CMSRemark remark = new CMSRemark(getClock(), gcCauseForwardReference, trace.getPauseTime());<NEW_LINE>GCLogTrace remark...
.addReferenceGCSummary(extractPrintReferenceGC(line));
185,846
public static QueryGovernanceKubernetesClusterResponse unmarshall(QueryGovernanceKubernetesClusterResponse queryGovernanceKubernetesClusterResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryGovernanceKubernetesClusterResponse.setRequestId(_ctx.stringValue("QueryGovernanceKubernetesClusterResponse.RequestId"));<NEW_LIN...
(_ctx.integerValue("QueryGovernanceKubernetesClusterResponse.Code"));
182,731
private void processSettingAnnotation(Setting settingAnnotation, SettingsParameter settingsParameter) {<NEW_LINE>settingsParameter.useServerConfiguration = settingAnnotation.useServerConfiguration();<NEW_LINE>settingsParameter.settingPath = settingAnnotation.settingPath();<NEW_LINE>settingsParameter.shards = settingAnn...
.indexStoreType = settingAnnotation.indexStoreType();
228,949
// ----- package methods -----<NEW_LINE>void deserialize(final Map<String, Object> source) {<NEW_LINE>final Map<String, Object> definitions = (Map<String, Object>) source.get(JsonSchema.KEY_DEFINITIONS);<NEW_LINE>if (definitions != null) {<NEW_LINE>typeDefinitions.deserialize(definitions);<NEW_LINE>} else {<NEW_LINE>th...
deprecationBroadcastData.put("type", "WARNING");
1,293,688
private static void addSentiment(CoreMap sentence, Tree sentimentTree, Element sentElem, String namespaceUri) {<NEW_LINE>int sentiment = RNNCoreAnnotations.getPredictedClass(sentimentTree);<NEW_LINE>sentElem.addAttribute(new Attribute("sentimentValue", Integer.toString(sentiment)));<NEW_LINE>String sentimentClass = sen...
, Integer.toString(sentiment));
1,702,125
public static void searchSubreddits(@NonNull final CacheManager cm, @NonNull final RedditAccount user, @NonNull final String queryString, @NonNull final Context context, @NonNull final APIResponseHandler.ValueResponseHandler<SubredditListResponse> handler, @NonNull final Optional<String> after) {<NEW_LINE>// 60 seconds...
builder.appendQueryParameter("include_over_18", "on");
699,609
public void testSFLFutureGetBlocks() throws Exception {<NEW_LINE>long currentThreadId = 0;<NEW_LINE>ResultsStatefulLocal bean = lookupSFLBean();<NEW_LINE>assertNotNull("Async Stateful Bean created successfully", bean);<NEW_LINE>// call bean asynchronous method using Future<V> object to receive results<NEW_LINE>Future<B...
info("Bean threadId = " + ResultsStatefulLocalFutureBean.beanThreadId);
129,228
Map<String, Object> bindParameters(Neo4jParameterAccessor parameterAccessor) {<NEW_LINE>final Parameters<?, ?> formalParameters = parameterAccessor.getParameters();<NEW_LINE>Map<String, Object> resolvedParameters = new HashMap<>();<NEW_LINE>// Values from the parameter accessor can only get converted after evaluation<N...
value = parameterAccessor.getBindableValue(index);
196,347
public Paragraph<PS, SEG, S> subSequence(int start) {<NEW_LINE>if (start < 0) {<NEW_LINE>throw new IllegalArgumentException("start must not be negative (was: " + start + ")");<NEW_LINE>} else if (start == 0) {<NEW_LINE>return this;<NEW_LINE>} else if (start == length()) {<NEW_LINE>// in case one is using EitherOps<Segm...
, segments.size()));
756,609
boolean pendingChanges() {<NEW_LINE>if (ui != null) {<NEW_LINE>assert SwingUtilities.isEventDispatchThread();<NEW_LINE>// NOI18N<NEW_LINE>String // NOI18N<NEW_LINE>classes = // NOI18N<NEW_LINE>classesArea.showsHint() ? "" : classesArea.getText().trim();<NEW_LINE>// NOI18N<NEW_LINE>if (!classes.equals(readFlag(CLASSES_F...
boolean alloc = outgoingCheckbox.isSelected();
633,289
private void updateNavigatorSelection(CompilationInfo ci, TreePath tp) throws Exception {<NEW_LINE>final ClassMemberPanel cmp = ClassMemberPanel.getInstance();<NEW_LINE>if (cmp == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final ClassMemberPanelUI cmpUi = cmp.getClassMemberPanelUI();<NEW_LINE>if (!cmpUi.isAutomaticRe...
eh = ElementHandle.create(e);
1,513,237
public static void attachIcon(Window frame) {<NEW_LINE>if (allIcons == null) {<NEW_LINE>final var loadedIcons = new ArrayList<Image>();<NEW_LINE>final var loader = LFrame.class.getClassLoader();<NEW_LINE>for (final var size : sizes) {<NEW_LINE>final var url = loader.getResource(pathBasePart + size + ".png");<NEW_LINE>i...
var icon = new ImageIcon(url);
716,534
public void restore(final Path file, final LoginCallback prompt) throws BackgroundException {<NEW_LINE>final Path container = session.getFeature(PathContainerService.class).getContainer(file);<NEW_LINE>try {<NEW_LINE>try {<NEW_LINE>final AmazonS3 client = client(container);<NEW_LINE>// Standard - S3 Standard retrievals...
map("Failure to write attributes of {0}", e, file);
1,338,993
public SoftwareVersionData requestSoftwareVersion(String xSdsDateFormat) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/v4/public/software/version";<NEW_LINE>// query params<NEW_LINE>List<Pair> localVarQueryParams = new ArrayList...
final String[] localVarContentTypes = {};
1,159,717
public E poll() {<NEW_LINE>if (root == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>long winningTicket = ThreadLocalRandom.current().nextLong(root.getTotalTickets());<NEW_LINE>Node<E> candidate = root;<NEW_LINE>while (!candidate.isLeaf()) {<NEW_LINE>long leftTickets = candidate.getLeft().map(Node::getTotalTickets)...
.getRight().get();
177,823
public void paint(Graphics g) {<NEW_LINE>g.drawImage(<MASK><NEW_LINE>Transaction.runVoid(() -> {<NEW_LINE>drawSegments(g, 193, 140, presetLCD.sample(), larges, 5);<NEW_LINE>drawSegments(g, 517, 30, saleCostLCD.sample(), larges, 5);<NEW_LINE>drawSegments(g, 517, 120, saleQuantityLCD.sample(), larges, 5);<NEW_LINE>drawSe...
background, 0, 0, null);
1,091,126
final DescribeNodeAssociationStatusResult executeDescribeNodeAssociationStatus(DescribeNodeAssociationStatusRequest describeNodeAssociationStatusRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeNodeAssociationStatusRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
825,394
private void updateCurrentTarget(MouseEvent rootEvent, boolean isEnding) {<NEW_LINE>// event related to eventRootPane<NEW_LINE>Component mouseOver = SwingUtilities.getDeepestComponentAt(eventRootPane, rootEvent.getX(<MASK><NEW_LINE>while (mouseOver != null) {<NEW_LINE>if (mouseOver instanceof DragCardTarget) {<NEW_LINE...
), rootEvent.getY());
81,634
public com.amazonaws.services.route53recoveryreadiness.model.ConflictException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.route53recoveryreadiness.model.ConflictException conflictException = new com.amazonaws.services.route53recoveryreadiness.model.Conflict...
String currentParentElement = context.getCurrentParentElement();
1,345,274
public void writeTo(OutputStream os) throws IOException {<NEW_LINE>if (recordLocationsByOrdinal.size() == 0)<NEW_LINE>throw new IOException("No data to write!");<NEW_LINE>int locationOfTopRecord = recordLocationsByOrdinal.get(recordLocationsByOrdinal.size() - 1);<NEW_LINE>int schemaIdOfTopRecord = VarInt.readVInt(<MASK...
buf.getUnderlyingArray(), locationOfTopRecord);
836,335
private static <T> T valueAt(MappedObject root, JsonNode node, Lookup lookup, String expression, Class<T> type) {<NEW_LINE>JsonNode <MASK><NEW_LINE>if (result.isMissingNode() && expression.startsWith("/") && expression.length() > 1 && Character.isLowerCase(expression.charAt(1))) {<NEW_LINE>StringBuilder alternative = n...
result = node.at(expression);
780,467
protected void printName0(String text) {<NEW_LINE>if (appender == null || text.length() == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>if (printNameQuote) {<NEW_LINE>char c0 = text.charAt(0);<NEW_LINE>if (c0 == quote) {<NEW_LINE>this.appender.append(text);<NEW_LINE>} else if (c0 == '"' && text.charAt(text....
this.appender.append(quote);
95,706
private QueryResult docToQueryResult(Document doc) throws ParseException {<NEW_LINE>QueryResult result = new QueryResult();<NEW_LINE>result.project = unpackString(doc, Lucene.project);<NEW_LINE>result.repository = unpackString(doc, Lucene.repository);<NEW_LINE>result.number = unpackLong(doc, Lucene.number);<NEW_LINE>re...
unpackStrings(doc, Lucene.watchedby);
1,193,384
private void updatePorts(Instance instance) {<NEW_LINE>final var ps = new Port[5];<NEW_LINE>if (instance.getAttributeValue(StdAttr.APPEARANCE) == StdAttr.APPEAR_CLASSIC) {<NEW_LINE>ps[OUT] = new Port(0, 0, Port.OUTPUT, StdAttr.WIDTH);<NEW_LINE>ps[IN] = new Port(-30, 0, Port.INPUT, StdAttr.WIDTH);<NEW_LINE>ps[CK] = new ...
90, Port.INPUT, 1);
937,817
public Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {<NEW_LINE>com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields());<NEW_LINE>while (tru...
setUnknownFields(unknownFields.build());
1,306,732
protected MapillaryDataLoadResult doInBackground(Integer... radius) {<NEW_LINE>progressHandler.post(progressRunnable);<NEW_LINE>try {<NEW_LINE>// ensure loading visualisation<NEW_LINE>Thread.sleep(2500);<NEW_LINE>} catch (InterruptedException exception) {<NEW_LINE>exception.printStackTrace();<NEW_LINE>}<NEW_LINE>OkHttp...
body().string());
254,338
private Query toMultiPhrasePrefix(final Query query, int phraseSlop, int maxExpansions) {<NEW_LINE>float boost = 1;<NEW_LINE>Query innerQuery = query;<NEW_LINE>while (innerQuery instanceof BoostQuery) {<NEW_LINE>BoostQuery bq = (BoostQuery) innerQuery;<NEW_LINE>boost *= bq.getBoost();<NEW_LINE>innerQuery = bq.getQuery(...
final MultiPhrasePrefixQuery prefixQuery = new MultiPhrasePrefixQuery();
19,584
private Mono<PagedResponse<SqlServerInstanceInner>> listByResourceGroupSinglePageAsync(String resourceGroupName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>...
error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
472,529
public void paint(Graphics g) {<NEW_LINE>Label target = (Label) _target;<NEW_LINE>Dimension sz = target.getSize();<NEW_LINE>g.setColor(target.getBackground());<NEW_LINE>g.fillRect(0, 0, sz.width, sz.height);<NEW_LINE>String label = target.getText();<NEW_LINE>if (label == null)<NEW_LINE>return;<NEW_LINE>g.setFont(target...
drawString(label, x, y);
48,074
private static // F743-506<NEW_LINE>Class<?> loadCustomerProvidedBeanClass(BeanMetaData bmd) throws ContainerException, EJBConfigurationException {<NEW_LINE>final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();<NEW_LINE>if (isTraceOn && tc.isEntryEnabled())<NEW_LINE>Tr.entry(<MASK><NEW_LINE>// enterpriseBeanC...
tc, "loadCustomerProvidedBeanClass : " + bmd.enterpriseBeanClassName);
1,547,128
public static boolean hasBlocks(ItemStack stack, Player player, List<BlockPos> blocks) {<NEW_LINE>if (player.getAbilities().instabuild) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>Block block = getBlock(stack);<NEW_LINE>ItemStack reqStack = new ItemStack(block);<NEW_LINE><MASK><NEW_LINE>int current = 0;<NEW_LINE>List<I...
int required = blocks.size();
991,790
private Completable logToImpressionStore() {<NEW_LINE>String campaignId = inAppMessage.getCampaignMetadata().getCampaignId();<NEW_LINE><MASK><NEW_LINE>Completable storeCampaignImpression = impressionStorageClient.storeImpression(CampaignImpression.newBuilder().setImpressionTimestampMillis(clock.now()).setCampaignId(cam...
Logging.logd("Attempting to record message impression in impression store for id: " + campaignId);
1,277,252
public void connect() {<NEW_LINE>final <MASK><NEW_LINE>final ElasticSearchBuilder cb = ElasticSearch.builder().endpoints(clusterNodes.split(",")).protocol(protocol).connectTimeout(connectTimeout).responseTimeout(responseTimeout).socketTimeout(socketTimeout).numHttpClientThread(numHttpClientThread).healthyListener(healt...
ElasticSearch oldOne = es.get();
1,844,053
final ListArtifactsResult executeListArtifacts(ListArtifactsRequest listArtifactsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listArtifactsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
endClientExecution(awsRequestMetrics, request, response);
1,504,888
private boolean loadNextSkip(int level) throws IOException {<NEW_LINE>// we have to skip, the target document is greater than the current<NEW_LINE>// skip list entry<NEW_LINE>setLastSkipData(level);<NEW_LINE>numSkipped[level] += skipInterval[level];<NEW_LINE>// numSkipped may overflow a signed int, so compare as unsign...
(level, skipStream[level]);
665,468
protected void onLayout(final boolean changed, final int l, final int t, final int r, final int b) {<NEW_LINE>super.onLayout(changed, l, t, r, b);<NEW_LINE>if (this.config != null && this.config.getSignInUserPoolsEnabled()) {<NEW_LINE>if (userPoolsSignInView != null) {<NEW_LINE>View view = (View) userPoolsSignInView;<N...
() + (measuredHeight / 2);
935,226
public static ListQueryHistoryResponse unmarshall(ListQueryHistoryResponse listQueryHistoryResponse, UnmarshallerContext _ctx) {<NEW_LINE>listQueryHistoryResponse.setRequestId(_ctx.stringValue("ListQueryHistoryResponse.RequestId"));<NEW_LINE>listQueryHistoryResponse.setSuccess(_ctx.booleanValue("ListQueryHistoryRespons...
("ListQueryHistoryResponse.Data[" + i + "].ResultTmpDb"));
1,446,266
public void run() {<NEW_LINE>final JobExecutorContext jobExecutorContext = new JobExecutorContext();<NEW_LINE>final List<String> currentProcessorJobQueue = jobExecutorContext.getCurrentProcessorJobQueue();<NEW_LINE>ProcessEngineConfigurationImpl engineConfiguration = processEngine.getProcessEngineConfiguration();<NEW_L...
CommandExecutor commandExecutor = engineConfiguration.getCommandExecutorTxRequired();
371,586
public Map<String, Map<String, PropertyMapping>> mappingsForFunction() {<NEW_LINE>Map<String, Map<String, PropertyMapping>> <MASK><NEW_LINE>Map<String, PropertyMapping> map = new HashMap<>();<NEW_LINE>val broadcast = PropertyMapping.builder().onnxAttrName("indices").tfInputPosition(1).propertyNames(new String[] { "indi...
ret = new HashMap<>();
226,713
public void handle(GameSession session, byte[] header, byte[] payload) throws Exception {<NEW_LINE>// Info packets<NEW_LINE>session.send(new PacketServerTimeNotify());<NEW_LINE>session.send(new PacketWorldPlayerInfoNotify(session.getPlayer<MASK><NEW_LINE>session.send(new PacketWorldDataNotify(session.getPlayer().getWor...
().getWorld()));
564,244
public Map<String, Object> createParameterMap(NdbOpenJPADomainFieldHandlerImpl domainFieldHandler, QueryDomainType<?> queryDomainObject, Object oid) {<NEW_LINE>Map<String, Object> result = new HashMap<String, Object>();<NEW_LINE>Predicate predicate = null;<NEW_LINE>for (AbstractDomainFieldHandlerImpl localHandler : dom...
"Map.Entry key: " + name + ", value: " + value);
399,500
public static void convert(InterleavedF32 input, InterleavedS64 output) {<NEW_LINE>if (input.isSubimage() || output.isSubimage()) {<NEW_LINE>final int N = input.width * input.getNumBands();<NEW_LINE>// CONCURRENT_BELOW BoofConcurrency.loopFor(0, input.height, y -> {<NEW_LINE>for (int y = 0; y < input.height; y++) {<NEW...
int i0 = 0, i1 = N;
1,454,258
static // loads the curve settings CSV file<NEW_LINE>Map<CurveName, LoadedCurveSettings> parseCurveSettings(CharSource settingsResource) {<NEW_LINE>ImmutableMap.Builder<CurveName, LoadedCurveSettings> builder = ImmutableMap.builder();<NEW_LINE>CsvFile csv = CsvFile.of(settingsResource, true);<NEW_LINE>for (CsvRow row :...
rightExtrapolatorStr = row.getField(SETTINGS_RIGHT_EXTRAPOLATOR);
1,385,781
private static ValueMatcher makeDictionaryEncodedValueMatcherGeneric(final DimensionSelector selector, Predicate<String> predicate) {<NEW_LINE>final BitSet checkedIds = new BitSet(selector.getValueCardinality());<NEW_LINE>final BitSet matchingIds = new <MASK><NEW_LINE>final boolean matchNull = predicate.apply(null);<NE...
BitSet(selector.getValueCardinality());
102,215
public DescribeReservedDBInstancesResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeReservedDBInstancesResult describeReservedDBInstancesResult = new DescribeReservedDBInstancesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth...
XMLEvent xmlEvent = context.nextEvent();
50,707
public void endVisit(JMethodCall x, Context ctx) {<NEW_LINE>// Don't do anything if the method binding isn't statically known<NEW_LINE>if (!x.getTarget().isStatic()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>JMethod method = x.getTarget();<NEW_LINE>JMethod.Specialization specialization = method.getSpecialization();<NEW_LI...
> params = specialization.getParams();
859,350
private void append(int line, @Nonnull TextRange range) {<NEW_LINE>LOG.debug("DiffFragmentBuilder.append(" + line + "," + range + "), modified:");<NEW_LINE>DiffString text1 = null;<NEW_LINE>DiffString text2 = null;<NEW_LINE>int start = range.getStartOffset();<NEW_LINE>int end = range.getEndOffset();<NEW_LINE>if (myLast...
.unchanged(text1, text2));
1,635,647
public void performRecoverableFileDelete(String path) throws PlatformManagerException {<NEW_LINE>File file = new File(path);<NEW_LINE>if (!file.exists()) {<NEW_LINE>if (Logger.isEnabled())<NEW_LINE>Logger.log(new LogEvent(LOGID, LogEvent.LT_WARNING, "Cannot find " + file.getName()));<NEW_LINE>return;<NEW_LINE>}<NEW_LIN...
new Object[] { file });
404,473
private Mono<Response<PolicyCollectionInner>> listByProductWithResponseAsync(String resourceGroupName, String serviceName, String productId, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and c...
getSubscriptionId(), accept, context);
884,622
private static io.vertx.core.cli.Option createOption(Method method) {<NEW_LINE>TypedOption opt = new TypedOption();<NEW_LINE>// Option<NEW_LINE>Option option = method.getAnnotation(Option.class);<NEW_LINE>opt.setLongName(option.longName()).setShortName(option.shortName()).setMultiValued(option.acceptMultipleValues()).s...
method.getAnnotation(Description.class);
710,684
final GetMultiRegionAccessPointPolicyResult executeGetMultiRegionAccessPointPolicy(GetMultiRegionAccessPointPolicyRequest getMultiRegionAccessPointPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getMultiRegionAccessPointPolicyRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.star...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
243,317
/*<NEW_LINE>* This method will build the initial environment variable context as well as add the environment related variables.<NEW_LINE>* It will also resolve secrets, if any wrt environment config<NEW_LINE>*/<NEW_LINE>EnvironmentVariableContext buildEnvVarContext(String pipelineName) {<NEW_LINE>String pipelineGroupNa...
= new EnvironmentVariableContext(GO_PIPELINE_GROUP_NAME, pipelineGroupName);
1,060,989
public void run() {<NEW_LINE>// transform the reference container into a stream of parsed entries<NEW_LINE>final BlockingQueue<WordReferenceVars> vars = WordReferenceVars.transform(this.container, this.maxtime, this.local);<NEW_LINE>// start the transformation threads<NEW_LINE>final Semaphore termination = new Semaphor...
"NormalizeDistributor", "adding of decoded rows to workers ended with timeout = " + this.maxtime);
206,926
// LATER It's not ideal that currently the web response needs to be parsed twice, once for the search results and once for the completion of the indexer search result. Will need to check how much that impacts performance<NEW_LINE>@Override<NEW_LINE>protected void completeIndexerSearchResult(String response, IndexerSear...
= searchRequest.getOffset() + 100;
222,707
private Mono<Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String namespaceName, EHNamespaceInner parameters, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is requi...
this.client.mergeContext(context);
1,684,886
protected void doRunExample(final Engine engine) throws Exception {<NEW_LINE>final MockService<Integer> service = getService();<NEW_LINE>final SearchTask example = new SearchTask(service);<NEW_LINE>System.out.printf("This com.linkedin.asm.example will issue %d parallel requests\n", REQUEST_LATENCIES.length);<NEW_LINE>S...
long startMillis = System.currentTimeMillis();
1,410,654
public void addToolStats(ToolRebuildContext context, int level, ModifierStatsBuilder builder) {<NEW_LINE>Item item = context.getItem();<NEW_LINE>if (DURABILITY.contains(item)) {<NEW_LINE>ToolStats.DURABILITY.multiply(builder, <MASK><NEW_LINE>}<NEW_LINE>if (MELEE_OR_UNARMED.contains(item)) {<NEW_LINE>ToolStats.ATTACK_DA...
1 + (level * 0.20f));
558,341
public final TablespaceStorageContext tablespaceStorage() throws RecognitionException {<NEW_LINE>TablespaceStorageContext _localctx = new TablespaceStorageContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 94, RULE_tablespaceStorage);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE...
_errHandler.reportError(this, re);
1,260,321
public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = "c0,c1".split(",");<NEW_LINE>String epl = "@name('s0') select value in (select sum(intPrimitive) from SupportBean#keepall) as c0," + "value not in (select sum(intPrimitive) from SupportBean#keepall) as c1 " + "from SupportValueEvent";<NEW_LINE>env....
SupportBean("E3", -1));
843,174
public int add(@ParametricNullness E element, int occurrences) {<NEW_LINE>checkNonnegative(occurrences, "occurrences");<NEW_LINE>if (occurrences == 0) {<NEW_LINE>return count(element);<NEW_LINE>}<NEW_LINE>checkArgument(range.contains(element));<NEW_LINE>AvlNode<E> root = rootReference.get();<NEW_LINE>if (root == null) ...
), element, occurrences, result);
704,303
private ComponentAnimation replaceComponents(final Component current, final Component next, final Transition t, boolean wait, boolean dropEvents, Runnable onFinish, int growSpeed, int layoutAnimationSpeed, boolean addAnimtion) {<NEW_LINE>if (!contains(current)) {<NEW_LINE>throw new IllegalArgumentException("Component "...
setX(current.getX());
1,175,251
private AnnotationValuePb.Builder handleNewAnnotationFieldValueNode(AnnotationValuePb.Builder currentAnnotationValue, ArrayStatus currentArrayStatus) {<NEW_LINE>checkState("anno_field_value".equals(xmlStreamReader.getLocalName()), "not an " + "anno_field_value node %s", currentLocation);<NEW_LINE>checkState(null != cur...
pbType = XML_TO_PB_TYPE.get(fieldType);
1,812,916
private IXDocReport loadReport(InputStream sourceStream, String reportId, String templateEngineKind, ITemplateEngine templateEngine, boolean cacheReport) throws IOException, XDocReportException {<NEW_LINE>initializeIfNeeded();<NEW_LINE>// 2) zip was loaded, create an instance of report<NEW_LINE>IXDocReport report = cre...
String documentKind = report.getKind();
1,540,334
public void processButtonInput(KeyEvent event) {<NEW_LINE>switch(event.getKeyCode()) {<NEW_LINE>case KeyEvent.KEYCODE_BUTTON_A:<NEW_LINE>Toast.makeText(OpenBotApplication.getContext(), "A recognized", Toast.LENGTH_SHORT).show();<NEW_LINE>return;<NEW_LINE>case KeyEvent.KEYCODE_BUTTON_B:<NEW_LINE>Toast.makeText(OpenBotAp...
Toast.LENGTH_SHORT).show();
1,391,682
private void savePresentationSettings() {<NEW_LINE>if ((decorator.getDecoratorFeatures() & IResultSetDecorator.FEATURE_PANELS) != 0) {<NEW_LINE>IDialogSettings pSections = ResultSetUtils.getViewerSettings(SETTINGS_SECTION_PRESENTATIONS);<NEW_LINE>for (Map.Entry<ResultSetPresentationDescriptor, PresentationSettings> pEn...
(",", settings.enabledPanelIds));
1,063,097
private void action_treeAdd(ListItem item) {<NEW_LINE>log.info("Item=" + item);<NEW_LINE>if (item != null) {<NEW_LINE>SimpleTreeModel model = (SimpleTreeModel) centerTree.getModel();<NEW_LINE>SimpleTreeNode stn = model.find(model.getRoot(), item.id);<NEW_LINE>if (stn != null) {<NEW_LINE>MTreeNode tNode = <MASK><NEW_LIN...
(MTreeNode) stn.getData();
1,230,485
public void dump(DumperContext dumpContext) throws DumpException {<NEW_LINE>ensureInitialized();<NEW_LINE>List<String> args = dumpContext.getArgsAsList();<NEW_LINE>PrintStream writer = dumpContext.getStdout();<NEW_LINE>String cmd = args.isEmpty() ? <MASK><NEW_LINE>List<String> rest = args.isEmpty() ? new ArrayList<Stri...
null : args.get(0);
812,307
public static void check(String username, String password, List<String> hosts, List<Integer> ports, String connectionString, String url) {<NEW_LINE>if (Config.getConfig().getCloudSwitch() && Config.getConfig().getHookWhiteAll()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>HashMap<String, Object> params = new HashMap<String,...
params.put("ports", ports);
357,469
public Path run(final Session<?> session) throws BackgroundException {<NEW_LINE>final Touch feature = session.getFeature(Touch.class);<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug(String.format("Run with feature %s", feature));<NEW_LINE>}<NEW_LINE>final TransferStatus status = new TransferStatus().withTimest...
session.getFeature(UnixPermission.class);
269,573
final RegisterWorkspaceDirectoryResult executeRegisterWorkspaceDirectory(RegisterWorkspaceDirectoryRequest registerWorkspaceDirectoryRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(registerWorkspaceDirectoryRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
addHandlerContext(HandlerContextKey.SERVICE_ID, "WorkSpaces");
752,286
public void change(Event e, @Nullable Object[] delta, ChangeMode mode) {<NEW_LINE>ItemType[] source = items.getArray(e);<NEW_LINE>EnchantmentType[] enchants = new EnchantmentType[delta != null ? delta.length : 0];<NEW_LINE>if (delta != null && delta.length != 0) {<NEW_LINE>for (int i = 0; i < delta.length; i++) {<NEW_L...
= (EnchantmentType) delta[i];
878,552
private IQueryBuilder<I_AD_User_SortPref_Hdr> createSortPreferenceHdrQueryBuilder(final String action, final int recordId, final Object contextProvider) {<NEW_LINE><MASK><NEW_LINE>//<NEW_LINE>// Services<NEW_LINE>final IQueryBL queryBL = Services.get(IQueryBL.class);<NEW_LINE>final IQueryBuilder<I_AD_User_SortPref_Hdr>...
Check.assumeNotEmpty(action, "action not empty");
55,347
public static void main(String[] args) {<NEW_LINE>try {<NEW_LINE>File dataDir = new File("target/h2");<NEW_LINE>String url = "jdbc:h2:tcp://localhost:9092/apiman";<NEW_LINE>if (dataDir.exists()) {<NEW_LINE>FileUtils.deleteDirectory(dataDir);<NEW_LINE>}<NEW_LINE>dataDir.mkdirs();<NEW_LINE>Server.createTcpServer("-tcpPas...
System.out.println("======================================================");
1,562,941
void displayResults(NodeResults nodeResults) {<NEW_LINE>Document document = Jsoup.parse(EMPTY_HTML);<NEW_LINE>Element body = document.getElementsByTag("body").first();<NEW_LINE>Optional<Element> panelHeader = appendPanelHeader(body, nodeResults.getItemName(), nodeResults.getAggregateScore());<NEW_LINE>// for each analy...
"class", ContentViewerHtmlStyles.getSpacedSectionClassName());
70,103
final CancelServiceSoftwareUpdateResult executeCancelServiceSoftwareUpdate(CancelServiceSoftwareUpdateRequest cancelServiceSoftwareUpdateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(cancelServiceSoftwareUpdateRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
564,244
public Map<String, Object> createParameterMap(NdbOpenJPADomainFieldHandlerImpl domainFieldHandler, QueryDomainType<?> queryDomainObject, Object oid) {<NEW_LINE>Map<String, Object> result = new HashMap<String, Object>();<NEW_LINE>Predicate predicate = null;<NEW_LINE>for (AbstractDomainFieldHandlerImpl localHandler : dom...
value = domainFieldHandler.getKeyValue(oid);
490,316
public List<PlayerStat> readLeaderboard(@Nullable PrimarySkillType skill, int pageNumber, int statsPerPage) throws InvalidSkillException {<NEW_LINE>List<PlayerStat> stats = new ArrayList<>();<NEW_LINE>// Fix for a plugin that people are using that is throwing SQL errors<NEW_LINE>if (skill != null && SkillTools.isChildS...
getLogger().severe("A plugin hooking into mcMMO is being naughty with our database commands, update all plugins that hook into mcMMO and contact their devs!");
1,080,118
public void solveVelocityConstraints(final SolverData data) {<NEW_LINE>Vec2 vA = data.velocities[m_indexA].v;<NEW_LINE>float wA = data.velocities[m_indexA].w;<NEW_LINE>Vec2 vB = data.velocities[m_indexB].v;<NEW_LINE>float wB = data.velocities[m_indexB].w;<NEW_LINE>final Vec2 vpA = pool.popVec2();<NEW_LINE>final Vec2 vp...
.x += m_invMassB * PB.x;
751,484
public void testNonXAOptionBCommit() throws Exception {<NEW_LINE>prepareTRA();<NEW_LINE>resetData(keyCommit04);<NEW_LINE>String deliveryID = "TX_test1d";<NEW_LINE>// construct a FVTMessage<NEW_LINE>FVTMessage message = new FVTMessage();<NEW_LINE>message.addTestResult("CMTNonJMSRequired");<NEW_LINE>// Add a option A del...
"Delivery option B is used for this test.", results.optionBMessageDeliveryUsed());
1,773,084
private BinaryExpression convert(org.eclipse.jdt.core.dom.InfixExpression expression) {<NEW_LINE>Expression leftOperand = convert(expression.getLeftOperand());<NEW_LINE>Expression rightOperand = convert(expression.getRightOperand());<NEW_LINE>BinaryOperator operator = JdtUtils.getBinaryOperator(expression.getOperator()...
setRightOperand(rightOperand).build();
145,191
final CreateVpcResult executeCreateVpc(CreateVpcRequest createVpcRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createVpcRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,166,935
public static CurlOption parse(String cmdLine) {<NEW_LINE>List<String> args = ShellWords.parse(cmdLine);<NEW_LINE>URI url = null;<NEW_LINE>HttpMethod method = HttpMethod.PUT;<NEW_LINE>List<Entry<String, String>> headers = new ArrayList<>();<NEW_LINE>Proxy proxy = NO_PROXY;<NEW_LINE>while (!args.isEmpty()) {<NEW_LINE>St...
String> e = parseHeader(headerArg);
1,167,813
public Maintenance unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Maintenance maintenance = new Maintenance();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE...
class).unmarshall(context));
976,297
synchronized boolean doComplete(HashResponseHeaders headers) {<NEW_LINE>if (state != State.OPEN) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>state = State.COMPLETING;<NEW_LINE>try {<NEW_LINE>// Finish all registered before complete consumers<NEW_LINE>for (Consumer<ResponseHeaders> consumer : beforeCompleteConsumers) {...
.writeLock().lock();
1,361,869
private void addRemove(SourceBuilder code) {<NEW_LINE>code.addLine("").addLine("/**").addLine(" * Removes a single key-value pair with the key {@code key} and the value" + " {@code value}").addLine(" * from the multimap to be returned from %s.", datatype.getType().javadocNoArgMethodLink(property.getGetterName())).addLi...
addLine(" %s.checkNotNull(value);", Preconditions.class);
442,161
public byte[] format(ProfileEvent event, HdfsIdConfig idConfig) {<NEW_LINE>long msgTime = event.getRawLogTime();<NEW_LINE>String partitionFieldValue = idConfig.parsePartitionField(msgTime);<NEW_LINE>String <MASK><NEW_LINE>byte[] partitionFieldBytes = partitionFieldValue.getBytes();<NEW_LINE>byte[] msgTimeFieldBytes = m...
msgTimeFieldValue = idConfig.parseMsgTimeField(msgTime);
1,744,967
public static void showChangePathsDialog(final MainActivity mainActivity, final SharedPreferences prefs) {<NEW_LINE>final MainFragment mainFragment = mainActivity.getCurrentMainFragment();<NEW_LINE>Objects.requireNonNull(mainActivity);<NEW_LINE>final MaterialDialog.Builder a = new MaterialDialog.Builder(mainActivity);<...
charSequence.toString(), prefs);