idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,086,509
public void paint(BigInteger xOffset, BigInteger yOffset, GC gc) {<NEW_LINE>if (model == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>gc.setFont(font);<NEW_LINE>Rectangle clip = gc.getClipping();<NEW_LINE>BigInteger startY = yOffset.add(BigInteger.valueOf(top(clip)));<NEW_LINE>long startRow = startY.divide(lineHeightBi...
- 1)).longValueExact();
344,844
public static HashMap topMostPopularTags(HashMap tagHashMap, int maxNumberOfTags) {<NEW_LINE>List<String> tempList = new ArrayList<String>(30);<NEW_LINE>HashMap result = new HashMap();<NEW_LINE>int i;<NEW_LINE>Set<String> keySet = tagHashMap.keySet();<NEW_LINE>for (String stringKey : keySet) {<NEW_LINE>if (tempList.siz...
tempList.add(i, stringKey);
658,396
private static void generateIndexHtml(final PsiDirectory psiDirectory, final boolean recursive, final String outputDirectoryName) throws FileNotFoundException {<NEW_LINE>String indexHtmlName = constructOutputDirectory(psiDirectory, outputDirectoryName) + File.separator + "index.html";<NEW_LINE>OutputStreamWriter writer...
).getName() + "</a><br />");
1,851,264
public void deleteById(String id) {<NEW_LINE>String resourceGroupName = <MASK><NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw logger.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));<NEW_LINE>}<NEW_LINE>String pri...
Utils.getValueFromIdByName(id, "resourceGroups");
17,378
public static QueryMsConfigResourcesResponse unmarshall(QueryMsConfigResourcesResponse queryMsConfigResourcesResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryMsConfigResourcesResponse.setRequestId(_ctx.stringValue("QueryMsConfigResourcesResponse.RequestId"));<NEW_LINE>queryMsConfigResourcesResponse.setResultCode(_ct...
("QueryMsConfigResourcesResponse.Resources[" + i + "].AppName"));
594,668
public boolean execute(final String action, final JSONArray data, final CallbackContext callbackContext) {<NEW_LINE>if ("setListener".equals(action)) {<NEW_LINE>mListenerContext = callbackContext;<NEW_LINE>sendToListener("ready", new JSONObject());<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>this.mCallbackContext = callb...
getActivity().startActivity(browserIntent);
1,740,176
protected void configureCompileTask(AbstractNativeCompileTask task, final NativeBinarySpecInternal binary, final LanguageSourceSetInternal languageSourceSet) {<NEW_LINE>// Note that the sourceSet is the sourceSet this pre-compiled header will be used with - it's not an<NEW_LINE>// input sourceSet to the compile task.<N...
final DependentSourceSetInternal sourceSet = (DependentSourceSetInternal) languageSourceSet;
623,701
public void visitBinaryExpression(BinaryExpression expr) {<NEW_LINE>// order of convert calls is important or indexes and thus recorded values get confused<NEW_LINE>Expression convertedLeftExpression = // prevent lvalue from getting turned into record(lvalue), which can no longer be assigned to<NEW_LINE>Types.ofType(ex...
convert(expr.getLeftExpression());
1,580,991
private Object builtinReplace(Object searchValue, Object replParam, Object o) {<NEW_LINE>TruffleString input = toString(o);<NEW_LINE>TruffleString searchString = toString2Node.executeString(searchValue);<NEW_LINE>boolean functionalReplace = isCallableNode.executeBoolean(replParam);<NEW_LINE>TruffleString replaceString ...
{ searchString, pos, input });
1,424,972
private byte[] encrypt(byte[] in, int inOff, int inLen) throws InvalidCipherTextException {<NEW_LINE>byte[] c2 = new byte[inLen];<NEW_LINE>System.arraycopy(in, inOff, c2, 0, c2.length);<NEW_LINE>ECMultiplier multiplier = createBasePointMultiplier();<NEW_LINE>byte[] c1;<NEW_LINE>ECPoint kPB;<NEW_LINE>do {<NEW_LINE>BigIn...
kdf(digest, kPB, c2);
1,231,021
protected void paintAdditionalData(PaintTarget target) throws PaintException {<NEW_LINE>super.paintAdditionalData(target);<NEW_LINE>boolean hasAggregation = items instanceof AggregationContainer && isAggregatable() && !((AggregationContainer) items)<MASK><NEW_LINE>// first call, we shouldn't update aggregation group ro...
.getAggregationPropertyIds().isEmpty();
1,023,152
void use(Actor actor, World world, LocalSession session, @Arg(desc = "Snapshot to use") String name) throws IOException {<NEW_LINE>LocalConfiguration config = we.getConfiguration();<NEW_LINE>checkSnapshotsConfigured(config);<NEW_LINE>if (config.snapshotRepo != null) {<NEW_LINE>legacy.use(<MASK><NEW_LINE>return;<NEW_LIN...
actor, world, session, name);
359,803
public void updateCells() {<NEW_LINE>int rowIndex = getSkinnable().getIndex();<NEW_LINE>if (rowIndex >= 0) {<NEW_LINE>GridView<T> gridView = getSkinnable().getGridView();<NEW_LINE>int maxCellsInRow = ((GridViewSkin<?>) gridView.getSkin()).computeMaxCellsInRow();<NEW_LINE>int totalCellsInGrid = gridView.getItems().size(...
getChildren().size());
1,332,324
private LimitQueryDeterminismAnalysis analyzeLimitOrderBy(Query tieInspectorQuery, List<ColumnNameOrIndex> orderByKeys, long limit) {<NEW_LINE>QueryResult<List<Object>> result = callAndConsume(() -> prestoAction.execute(tieInspectorQuery, DETERMINISM_ANALYSIS_MAIN, new TieInspector(limit)), stats -> stats.getQueryStats...
getResults().get(0);
1,138,041
public static ListBaselineConfigsResponse unmarshall(ListBaselineConfigsResponse listBaselineConfigsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listBaselineConfigsResponse.setRequestId(_ctx.stringValue("ListBaselineConfigsResponse.RequestId"));<NEW_LINE>listBaselineConfigsResponse.setHttpStatusCode(_ctx.integerValue...
("ListBaselineConfigsResponse.Data.Baselines[" + i + "].Owner"));
957,079
public DescribeUserStackAssociationsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeUserStackAssociationsResult describeUserStackAssociationsResult = new DescribeUserStackAssociationsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentEle...
)).unmarshall(context));
1,513,273
final CreateGatewayResult executeCreateGateway(CreateGatewayRequest createGatewayRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createGatewayRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
responseHandler, executionContext, null, endpointTraitHost);
573,724
public static String generateThreadDump() {<NEW_LINE>StringBuilder threadDump = new StringBuilder(System.lineSeparator());<NEW_LINE>ThreadMXBean threadMXBean = ManagementFactory.getThreadMXBean();<NEW_LINE>ThreadInfo[] threadInfos = threadMXBean.getThreadInfo(threadMXBean.getAllThreadIds(), 100);<NEW_LINE>for (ThreadIn...
System.lineSeparator())));
206,313
private ClassTree addPostMethod(MimeType mime, String type, WorkingCopy copy, ClassTree tree) {<NEW_LINE>Modifier[] modifiers = Constants.PUBLIC;<NEW_LINE>String[] annotations = new String[] { RestConstants.POST_ANNOTATION, RestConstants.CONSUME_MIME_ANNOTATION, RestConstants.PRODUCE_MIME_ANNOTATION };<NEW_LINE>Express...
expressionTree(copy.getTreeMaker());
36,408
public void paint(Graphics2D g, double xStart, double xEnd, double y) {<NEW_LINE>Shape clip = g.getClip();<NEW_LINE>final Rectangle2D rectangle = new Rectangle2D.Double(xStart, y - 3, xEnd - xStart, 3);<NEW_LINE>final Rectangle2D waveClip = clip != null ? clip.getBounds2D().createIntersection(rectangle) : rectangle;<NE...
myImage, 0, 0, null);
1,663,046
public static void main(String[] args) throws Exception {<NEW_LINE>Options options = new Options();<NEW_LINE>options.addOption(option(0, "l", OPTION_LOCAL, "Run the topology in local mode."));<NEW_LINE>options.addOption(option(0, "r", OPTION_REMOTE, "Deploy the topology to a remote cluster."));<NEW_LINE>options.addOpti...
, "n", OPTION_NO_SPLASH, "Suppress the printing of the splash screen."));
353,859
public Void visitAnnotation(AnnotationMirror annotation, AnnotationValue unused) {<NEW_LINE>// By explicitly adding annotations rather than relying on AnnotationMirror.toString(),<NEW_LINE>// we can import the types and make the code (hopefully) more readable.<NEW_LINE>code.add("@%s", QualifiedName.of(asElement(annotat...
getElementValues().values());
44,002
public JsonElement serialize(Table table, Type type, JsonSerializationContext context) {<NEW_LINE>JsonObject json = new JsonObject();<NEW_LINE>JsonArray data = new JsonArray();<NEW_LINE>json.addProperty("extraction_method", table.getExtractionMethod());<NEW_LINE>json.addProperty("page_number", table.getPageNumber());<N...
"bottom", table.getBottom());
1,704,392
protected <T extends OperationResponse> void completeOperation(OperationResult result, OperationResponse.Builder<?, T> builder, Throwable error, CompletableFuture<T> future) {<NEW_LINE>if (result != null) {<NEW_LINE>builder.withIndex(result.index());<NEW_LINE>builder.<MASK><NEW_LINE>if (result.failed()) {<NEW_LINE>erro...
withEventIndex(result.eventIndex());
1,470,953
protected void masterOperation(GetSettingsRequest request, ClusterState state, ActionListener<GetSettingsResponse> listener) {<NEW_LINE>Index[] concreteIndices = indexNameExpressionResolver.concreteIndices(state, request);<NEW_LINE>ImmutableOpenMap.Builder<String, Settings> indexToSettingsBuilder = ImmutableOpenMap.bui...
, indexToDefaultSettingsBuilder.build()));
611,765
protected static void assertContextEnginePool(RegressionEnvironment env, EPStatement stmt, List<ConditionHandlerContext> contexts, int max, Map<String, Long> counts) {<NEW_LINE>assertEquals(1, contexts.size());<NEW_LINE>ConditionHandlerContext context = contexts.get(0);<NEW_LINE>assertEquals(env.runtimeURI(), context.g...
(expected.getKey()));
1,554,958
final DeleteResourcePolicyResult executeDeleteResourcePolicy(DeleteResourcePolicyRequest deleteResourcePolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteResourcePolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,155,816
protected List<E> createBulkLeafNodes(List<E> objects) {<NEW_LINE>int minEntries = leafMinimum;<NEW_LINE>int maxEntries = leafCapacity;<NEW_LINE>ArrayList<E> result = new ArrayList<>();<NEW_LINE>List<List<E>> partitions = settings.bulkSplitter.partition(objects, minEntries, maxEntries);<NEW_LINE>for (List<E> partition ...
"numDataPages = " + result.size());
1,753,244
public ProcessStatus processCheck(final PwmRequest pwmRequest) throws PwmUnrecoverableException, IOException {<NEW_LINE>final PwmSession pwmSession = pwmRequest.getPwmSession();<NEW_LINE>final long configuredSeconds = pwmRequest.getAppConfig().readSettingAsLong(PwmSetting.SECURITY_PAGE_LEAVE_NOTICE_TIMEOUT);<NEW_LINE>i...
.getSessionStateBean().getPageLeaveNoticeTime();
1,437,662
private static void validateUimap(final Map uimap) {<NEW_LINE>List<String> pages = asStringList(uimap.get("pages"));<NEW_LINE>if (pages == null) {<NEW_LINE>throw new IllegalArgumentException("in provider metadata: 'ui: pages:' not found, or not a String or String list");<NEW_LINE>}<NEW_LINE>List<String> styles = asStri...
requires = uimap.get("requires");
34,719
protected void startProcessDefinitionByKey(Job job, String configuration, DeploymentManager deploymentManager, CommandContext commandContext) {<NEW_LINE>// it says getActivityId, but < 5.21, this would have the process definition key stored<NEW_LINE>String processDefinitionKey = TimerEventHandler.getActivityIdFromConfi...
"Ignoring timer of suspended process definition {}", processDefinition.getId());
325,227
public void execute() throws BuildException {<NEW_LINE>try (FileOutputStream fos = new FileOutputStream(new File(getProject().getBaseDir(), exclusionFile));<NEW_LINE>OutputStreamWriter osw = new OutputStreamWriter(fos);<NEW_LINE>BufferedWriter bw = new BufferedWriter(osw)) {<NEW_LINE>Path nballPath = nball.toPath();<NE...
collect(Collectors.toList());
909,007
public <T> long bulkOperation(final SecurityContext securityContext, final Iterable<T> iterable, final int commitCount, String description, final BulkGraphOperation<T> operation) {<NEW_LINE>final Predicate<Long> condition = operation.getCondition();<NEW_LINE>final App app = StructrApp.getInstance(securityContext);<NEW_...
handleThrowable(securityContext, t, node);
1,016,702
static byte[] toBytes(Object object, SymbolTable symbolTable, JSONWriter.Feature... features) {<NEW_LINE>try (JSONWriter writer = new JSONWriterJSONB(new JSONWriter.Context(JSONFactory.defaultObjectWriterProvider, features), symbolTable)) {<NEW_LINE><MASK><NEW_LINE>ctx.config(features);<NEW_LINE>if (object == null) {<N...
JSONWriter.Context ctx = writer.context;
1,746,698
private List<NameValueCountPair> groupByCreatorPerson(Business business, Predicate predicate) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(Review.class);<NEW_LINE><MASK><NEW_LINE>CriteriaQuery<Tuple> cq = cb.createQuery(Tuple.class);<NEW_LINE>Root<Review> root = cq.from(Review.cl...
CriteriaBuilder cb = em.getCriteriaBuilder();
1,325,818
public void onTrainingEnd(Trainer trainer) {<NEW_LINE>Metrics metrics = trainer.getMetrics();<NEW_LINE>if (metrics == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>float p50;<NEW_LINE>float p90;<NEW_LINE>if (metrics.hasMetric("train")) {<NEW_LINE>// possible no train metrics if only one iteration is executed<NEW_LINE>p5...
().longValue() / 1_000_000f;
1,283,817
public OptionRestrictionRegex unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>OptionRestrictionRegex optionRestrictionRegex = new OptionRestrictionRegex();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument...
XMLEvent xmlEvent = context.nextEvent();
664,836
public MultipleObjectsBundle generate() {<NEW_LINE>// we actually need some clusters.<NEW_LINE>if (generators.isEmpty()) {<NEW_LINE>throw new AbortException("No clusters specified.");<NEW_LINE>}<NEW_LINE>// Assert that cluster dimensions agree.<NEW_LINE>final int dim = generators.<MASK><NEW_LINE>for (GeneratorInterface...
get(0).getDim();
1,538,323
void serializeV1(BucketState<BucketID> state, DataOutputView out) throws IOException {<NEW_LINE>SimpleVersionedSerialization.writeVersionAndSerialize(bucketIdSerializer, state.getBucketId(), out);<NEW_LINE>out.writeUTF(state.getBucketPath().toString());<NEW_LINE>out.writeLong(state.getInProgressFileCreationTime());<NEW...
> resumables = resumablesForCheckpoint.getValue();
113,042
public static ZemberekGrpcConfiguration loadFromFile(Path path) throws IOException {<NEW_LINE>KeyValueReader reader = new KeyValueReader("=", "#");<NEW_LINE>Map<String, String> keyValues = reader.loadFromFile(path.toFile());<NEW_LINE>String lmVal = keyValues.get("normalization.lm");<NEW_LINE>if (lmVal == null) {<NEW_LI...
IOUtil.checkFileArgument(normalizationPath, "Normalization root path");
1,103,339
public static void viewCurrentSite(Context context, SiteModel site, boolean openFromHeader) {<NEW_LINE>AnalyticsTracker.Stat stat = openFromHeader ? AnalyticsTracker.Stat.OPENED_VIEW_SITE_FROM_HEADER : AnalyticsTracker.Stat.OPENED_VIEW_SITE;<NEW_LINE>AnalyticsUtils.trackWithSiteDetails(stat, site);<NEW_LINE>if (site ==...
blog_not_found, ToastUtils.Duration.SHORT);
881,578
public FormatWalkResult format(String name, String type, String declaredType, int thisTypeCode, long address, PrintStream out, Context context, IStructureFormatter structureFormatter) throws CorruptDataException {<NEW_LINE>if (thisTypeCode == this.typeCode) {<NEW_LINE>Object o = null;<NEW_LINE>try {<NEW_LINE>o = <MASK>...
castMethod.invoke(null, address);
727,619
public final void handleReversalForInvoice(final org.compiere.model.I_C_Invoice invoice) {<NEW_LINE>final IInvoiceDAO invoiceDAO = Services.get(IInvoiceDAO.class);<NEW_LINE>final int reversalInvoiceId = invoice.getReversal_ID();<NEW_LINE>Check.assume(reversalInvoiceId > invoice.getC_Invoice_ID(), "Invoice {} shall be t...
invoiceDAO.retrieveReversalLine(il, reversalInvoiceId);
488,341
public byte[] serialize(PendingSplitsState state) throws IOException {<NEW_LINE>// optimization: the splits lazily cache their own serialized form<NEW_LINE>if (state.serializedFormCache != null) {<NEW_LINE>return state.serializedFormCache;<NEW_LINE>}<NEW_LINE>final DataOutputSerializer out = SERIALIZER_CACHE.get();<NEW...
((HybridPendingSplitsState) state, out);
537,231
private void init(Map<String, String> requestMap, CompiledQueryProfile queryProfile, Map<String, Embedder> embedders, ZoneInfo zoneInfo) {<NEW_LINE>startTime = httpRequest.getJDiscRequest().creationTime(TimeUnit.MILLISECONDS);<NEW_LINE>if (queryProfile != null) {<NEW_LINE>// Move all request parameters to the query pro...
requestMap, properties(), true);
1,277,861
public void initializeTypes(Method theMethod, Class<? extends Collection<?>> theOuterCollectionType, Class<? extends Collection<?>> theInnerCollectionType, Class<?> theParameterType) {<NEW_LINE>if (theOuterCollectionType != null) {<NEW_LINE>throw new ConfigurationException(Msg.code(459) + "Method '" + theMethod.getName...
class.getName() + " but can not be of collection type");
1,215,018
private static String collectFailureReasons(MatchOperation root) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append("match failed: ").append(root.type).append('\n');<NEW_LINE>Collections.reverse(root.failures);<NEW_LINE>Iterator<MatchOperation> iterator = root.failures.iterator();<NEW_LINE>Set previo...
()).append('\n');
193,825
private Stmt isIfNodeWithOneStatement(ASTNode secondLabelsBody) {<NEW_LINE>if (!(secondLabelsBody instanceof ASTIfNode)) {<NEW_LINE>// pattern broken as this should be a IfNode<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>// check that the body of ASTIfNode has a single ASTStatementSequence<NEW_LINE>ASTIfNode ifNode = (AS...
List) ifSubBodies.get(0);
1,528,743
public CategoryInfo saveBaseInfo(EntityManagerContainer emc, CategoryInfo categoryInfo) throws Exception {<NEW_LINE>AppInfo appInfo = null;<NEW_LINE>CategoryInfo categoryInfo_tmp = null;<NEW_LINE>if (categoryInfo.getId() == null) {<NEW_LINE>categoryInfo.setId(CategoryInfo.createId());<NEW_LINE>}<NEW_LINE>appInfo = emc....
add(categoryInfo.getId());
931,710
public void createAndSplitGetKeysMethod(ClassWriter cw, Map<String, BField> fields, String className) {<NEW_LINE>MethodVisitor mv = cw.visitMethod(ACC_PUBLIC, "getKeys", RECORD_GET_KEYS, "()[TK;", null);<NEW_LINE>mv.visitCode();<NEW_LINE>int selfIndex = 0;<NEW_LINE>int keysVarIndex = 1;<NEW_LINE>mv.visitTypeInsn(NEW, L...
mv.visitVarInsn(ALOAD, selfIndex);
1,512,251
public MemberFabricConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>MemberFabricConfiguration memberFabricConfiguration = new MemberFabricConfiguration();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement()...
class).unmarshall(context));
1,768,540
final DeleteListenerResult executeDeleteListener(DeleteListenerRequest deleteListenerRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteListenerRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<DeleteListenerRequest> request = nu...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
936,697
final UpdateVTLDeviceTypeResult executeUpdateVTLDeviceType(UpdateVTLDeviceTypeRequest updateVTLDeviceTypeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateVTLDeviceTypeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
endClientExecution(awsRequestMetrics, request, response);
1,320,651
public void drawTo(Graphic graphic, Style highLight) {<NEW_LINE>int yOffs = 0;<NEW_LINE>if (!relayIsClosed)<NEW_LINE>yOffs = SIZE2 / 2;<NEW_LINE>for (int p = 0; p < poles; p++) {<NEW_LINE>graphic.drawPolygon(new Polygon(false).add(SIZE * 2, p * SIZE * 2 + SIZE).add(SIZE * 2 - SIZE2 / 2, p * SIZE * 2 + SIZE).add(SIZE * ...
+ 2), Style.NORMAL);
644,806
private static List<Byte> flatten(final ConditionNode root, final Map<ConditionNode, Integer> nodeIds) {<NEW_LINE>final List<Byte> flattenedTree <MASK><NEW_LINE>addAll(flattenedTree, getType(root));<NEW_LINE>final List<Byte> payload = getPayload(root);<NEW_LINE>addAll(flattenedTree, ByteHelpers.toBigEndianDword(payload...
= new ArrayList<Byte>();
1,748,365
final SuspendGameServerGroupResult executeSuspendGameServerGroup(SuspendGameServerGroupRequest suspendGameServerGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(suspendGameServerGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "SuspendGameServerGroup");
413,445
public Delta delta(DiscoveryNodes other) {<NEW_LINE>List<DiscoveryNode> <MASK><NEW_LINE>List<DiscoveryNode> added = new ArrayList<>();<NEW_LINE>for (DiscoveryNode node : other) {<NEW_LINE>if (!this.nodeExists(node)) {<NEW_LINE>removed.add(node);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>for (DiscoveryNode node : this) {<NEW_LINE>...
removed = new ArrayList<>();
1,170,024
public BatchResult<Integer, ValidationDemo> batchGet(Set<Integer> ids) {<NEW_LINE>Map<Integer, ValidationDemo> resultMap = new HashMap<>();<NEW_LINE>Map<Integer, RestLiServiceException> errorMap = new HashMap<>();<NEW_LINE>// Generate entities that are missing a required field<NEW_LINE>for (Integer id : ids) {<NEW_LINE...
union = new ValidationDemo.UnionFieldWithInlineRecord();
1,587,454
private int putInCacheIfAbsent(final char[] key1, final char[] key2, final char[] key3, int value) {<NEW_LINE>int index;<NEW_LINE>HashtableOfObject key1Value = (HashtableOfObject) this.methodsAndFieldsCache.get(key1);<NEW_LINE>if (key1Value == null) {<NEW_LINE>key1Value = new HashtableOfObject();<NEW_LINE>this.methodsA...
charArrayCache.putIfAbsent(key3, value);
1,664,283
public void testEntityProviderPriorities(HttpServletRequest req, HttpServletResponse resp) throws Exception {<NEW_LINE>MyObject requestObject = new MyObject();<NEW_LINE>requestObject.setMyString("hello");<NEW_LINE>requestObject.setMyInt(5);<NEW_LINE>Response response = target(req, "providerPriorityApp/rest/test/myParam...
(Entity.text(requestObject));
1,825,654
// this method comes from<NEW_LINE>// https://github.com/jacoco/jacoco/blob/master/jacoco-maven-plugin/src/org/jacoco/maven/ReportAggregateMojo.java<NEW_LINE>@Override<NEW_LINE>List<MavenProject> findDependencies() {<NEW_LINE>final List<MavenProject> result = new ArrayList<>();<NEW_LINE>final List<String> scopeList = A...
final Dependency dependency = (Dependency) dependencyObject;
238,908
public void messageReceived(final RecoveryFileChunkRequest request, TransportChannel channel) throws Exception {<NEW_LINE>try (RecoveryRef recoveryRef = onGoingRecoveries.getRecoverySafe(request.recoveryId(), request.shardId())) {<NEW_LINE>final RecoveryTarget recoveryTarget = recoveryRef.target();<NEW_LINE>final Recov...
addSourceThrottling(request.sourceThrottleTimeInNanos());
601,620
private String substitute(String text) throws IOException {<NEW_LINE>int startPos;<NEW_LINE>if ((startPos = text.indexOf("${")) == -1) {<NEW_LINE>return text;<NEW_LINE>}<NEW_LINE>// Find matching "}".<NEW_LINE>int braceDepth = 1;<NEW_LINE>int endPos = startPos + 2;<NEW_LINE>while (endPos < text.length() && braceDepth >...
.substring(i + 2));
901,941
private static void start_deployment(JsonObject jsonObject) {<NEW_LINE>String user = jsonObject.get("user").getAsJsonObject().get("login").getAsString();<NEW_LINE>Map<String, String> map = new HashMap<>();<NEW_LINE>map.put("environment", "QA");<NEW_LINE>map.put("deploy_user", user);<NEW_LINE>Gson gson = new Gson();<NEW...
.fromEnvironment().build();
664,242
public void onClick(DialogInterface dialog, int which) {<NEW_LINE>// reset<NEW_LINE>mTotalLoopClosures = 0;<NEW_LINE>int index = STATUS_TEXTS_POSE_INDEX;<NEW_LINE>mMapNodes = 0;<NEW_LINE>mStatusTexts[index++] = getString(<MASK><NEW_LINE>mStatusTexts[index++] = getString(R.string.words) + 0;<NEW_LINE>mStatusTexts[index+...
R.string.nodes) + 0;
1,467,592
public WorkloadRecordStore create(PrivateKeyStore keyStore) {<NEW_LINE>final String tableName = System.getProperty(ZTSConsts.ZTS_PROP_WORKLOAD_DYNAMODB_TABLE_NAME);<NEW_LINE>if (StringUtil.isEmpty(tableName)) {<NEW_LINE>LOGGER.error("Workload Store DynamoDB table name not specified");<NEW_LINE>throw new ResourceExcepti...
System.getProperty(ZTSConsts.ZTS_PROP_WORKLOAD_DYNAMODB_INDEX_SERVICE_NAME);
215,775
public GetPendingJobExecutionsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetPendingJobExecutionsResult getPendingJobExecutionsResult = new GetPendingJobExecutionsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurren...
JsonToken token = context.getCurrentToken();
1,373,830
protected DataType readDataType(CachedRow columnMetadataResultSet, Column column, Database database) throws DatabaseException {<NEW_LINE>// For an explanation of the information encoded in the column length, please see<NEW_LINE>// https://www.ibm.com/support/knowledgecenter/SSGU8G_11.50.0/com.ibm.sqlr.doc/ids_sqr_027.h...
= (colLength % 256) % 16;
1,290,619
public static ItemUsage calculateUsage(final IndexNameExpressionResolver indexNameExpressionResolver, final ClusterState state, final String policyName) {<NEW_LINE>final List<String> indices = state.metadata().indices().values().stream().filter(indexMetadata -> policyName.equals(indexMetadata.getLifecyclePolicyName()))...
dataStreamNames(state, IndicesOptions.LENIENT_EXPAND_OPEN_CLOSED_HIDDEN);
1,373,818
final UpdateWorkloadResult executeUpdateWorkload(UpdateWorkloadRequest updateWorkloadRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateWorkloadRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,559,473
public boolean handleRequest(MessageContext context) {<NEW_LINE>WebComponentInvocation inv = null;<NEW_LINE>try {<NEW_LINE>WebServiceContractImpl wscImpl = WebServiceContractImpl.getInstance();<NEW_LINE>InvocationManager invManager = wscImpl.getInvocationManager();<NEW_LINE>inv = WebComponentInvocation.class.<MASK><NEW...
cast(invManager.getCurrentInvocation());
1,836,494
final DeleteBotVersionResult executeDeleteBotVersion(DeleteBotVersionRequest deleteBotVersionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteBotVersionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
578,565
private void updateItemState(String itemName, String tvCommand) {<NEW_LINE>if (tvCommand.contains("ambilight")) {<NEW_LINE>String[] layer = command2LayerString(tvCommand);<NEW_LINE>HSBType state = new HSBType(getAmbilightColor(ip + ":" + port, layer));<NEW_LINE>eventPublisher.postUpdate(itemName, state);<NEW_LINE>} els...
error("Could not parse item state\"" + tvCommand + "\" for polling");
32,470
public void readApis() throws Exception {<NEW_LINE>current = nextToken();<NEW_LINE>if (current == JsonToken.END_ARRAY) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>while (nextToken() != JsonToken.END_ARRAY) {<NEW_LINE>// Traverse each api definition<NEW_LINE>while (nextToken() != JsonToken.END_OBJECT) {<NEW_LINE>if (jp.getCu...
jp.readValueAs(ApiBean.class);
1,374,826
public Request<ListBotsRequest> marshall(ListBotsRequest listBotsRequest) {<NEW_LINE>if (listBotsRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(ListBotsRequest)");<NEW_LINE>}<NEW_LINE>Request<ListBotsRequest> request = new DefaultRequest<MASK><NEW_LINE>request.setHttpMe...
<ListBotsRequest>(listBotsRequest, "AmazonConnect");
1,760,083
private MigrateStruct buildMigrateStuct(final MigrateVmOnHypervisorMsg msg) {<NEW_LINE>MigrateStruct s = new MigrateStruct();<NEW_LINE>s.vmUuid = msg.getVmInventory().getUuid();<NEW_LINE>s.srcHostUuid = msg.getSrcHostUuid();<NEW_LINE>s.dstHostUuid = msg.getDestHostInventory().getUuid();<NEW_LINE>s.storageMigrationPolic...
? s.dstHostMnIp : migrateIpInfo.dstMigrationAddress;
570,034
final DescribeExportImageTasksResult executeDescribeExportImageTasks(DescribeExportImageTasksRequest describeExportImageTasksRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeExportImageTasksRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,761,649
public void render(RenderContext ctx, Repainter repainter) {<NEW_LINE>if (expanded) {<NEW_LINE>ctx.setBackgroundColor(colors().titleBackground);<NEW_LINE>ctx.fillRect(0, 0, width, TITLE_HEIGHT);<NEW_LINE>ctx.setForegroundColor(colors().textMain);<NEW_LINE>ctx.drawIcon(arrowDown(ctx.theme), 0, 0, TITLE_HEIGHT);<NEW_LINE...
LABEL_WIDTH - 1, height - 1);
392,232
@PUT<NEW_LINE>@Path("{name}/groups")<NEW_LINE>@Consumes(APPLICATION_JSON)<NEW_LINE>@Produces(APPLICATION_JSON)<NEW_LINE>public Iterable<String> modifySecretGroups(@Auth AutomationClient automationClient, @PathParam("name") String name, @Valid ModifyGroupsRequestV2 request) {<NEW_LINE>// TODO: Use latest version instead...
long secretId = secret.getId();
100,195
public <T> Mono<T> run(final Mono<T> run, final Function<Throwable, Mono<T>> fallback, final Resilience4JConf resilience4JConf) {<NEW_LINE>RateLimiter rateLimiter = Resilience4JRegistryFactory.rateLimiter(resilience4JConf.getId(), resilience4JConf.getRateLimiterConfig());<NEW_LINE>CircuitBreaker circuitBreaker = Resili...
to = to.onErrorResume(fallback);
1,471,519
protected Map verifyAndExtract(byte[] signed_stuff, byte[] public_key) throws BuddyPluginException {<NEW_LINE>int signature_length = ((int) signed_stuff[0]) & 0xff;<NEW_LINE>byte[] signature = new byte[signature_length];<NEW_LINE>byte[] data = new byte[signed_stuff.length - 1 - signature_length];<NEW_LINE>System.arrayc...
data, 0, data.length);
239,511
private void addDAMLOILVocabulary() {<NEW_LINE>synonymMap.put(daml("subClassOf"), RDFS_SUBCLASS_OF.getIRI());<NEW_LINE>synonymMap.put(daml("imports"), OWL_IMPORTS.getIRI());<NEW_LINE>synonymMap.put(daml("range"<MASK><NEW_LINE>synonymMap.put(daml("hasValue"), OWL_HAS_VALUE.getIRI());<NEW_LINE>synonymMap.put(daml("type")...
), RDFS_RANGE.getIRI());
10,519
public Result createAllClusters(UUID customerUUID) {<NEW_LINE>// TODO: add assertions that only expected params are set or bad_request<NEW_LINE>// Basically taskParams.clusters[]->userIntent and may be few more things<NEW_LINE>Customer customer = Customer.getOrBadRequest(customerUUID);<NEW_LINE>UniverseConfigureTaskPar...
request(), UniverseConfigureTaskParams.class);
834,288
public static NestedDeviceInformation calculateNestedDeviceInformation(IDevice target, SiteWhereTenant tenant) throws SiteWhereException {<NEW_LINE>NestedDeviceInformation nested = new NestedDeviceInformation();<NEW_LINE>// No parent set. Treat target device as gateway.<NEW_LINE>if (target.getParentDeviceId() == null) ...
setPath(mapping.getDeviceElementSchemaPath());
653,545
public static ListRpcServicesResponse unmarshall(ListRpcServicesResponse listRpcServicesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listRpcServicesResponse.setRequestId(_ctx.stringValue("ListRpcServicesResponse.RequestId"));<NEW_LINE>RpcServices rpcServices = new RpcServices();<NEW_LINE>Pagination pagination = new P...
(_ctx.integerValue("ListRpcServicesResponse.RpcServices.Pagination.PageSize"));
189,478
public com.squareup.okhttp.Call revokedjwtGetCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath...
localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
1,097,929
public static void updateMetadata(final File file, final PropertyMap map, final boolean calcChecksums) throws FrameworkException {<NEW_LINE>final java.io.File fileOnDisk = file.getFileOnDisk(false);<NEW_LINE>if (fileOnDisk != null && fileOnDisk.exists()) {<NEW_LINE>try {<NEW_LINE>final PropertyKey<Long> fileModificatio...
map.put(contentTypeKey, contentType);
189,428
private //<NEW_LINE>MethodSpec messageEquals(NameAllocator nameAllocator, MessageType type) {<NEW_LINE>NameAllocator localNameAllocator = nameAllocator.clone();<NEW_LINE>String otherName = localNameAllocator.newName("other");<NEW_LINE>String oName = localNameAllocator.newName("o");<NEW_LINE>TypeName javaType = typeName...
addCode("\n&& $1L.equals($2N.$1L)", fieldName, oName);
1,091,809
public FlowableEventListener createEventThrowingEventListener(EventListener eventListener) {<NEW_LINE>BaseDelegateEventListener result = null;<NEW_LINE>if (ImplementationType.IMPLEMENTATION_TYPE_THROW_SIGNAL_EVENT.equals(eventListener.getImplementationType())) {<NEW_LINE>result = new SignalThrowingEventListener();<NEW_...
setErrorCode(eventListener.getImplementation());
172,159
public static void main(String[] args) {<NEW_LINE>CommandSpec spec = CommandSpec.create();<NEW_LINE>spec.addOption(OptionSpec.builder("-V", "--verbose").build());<NEW_LINE>spec.addOption(// so, this option is of type List<File><NEW_LINE>OptionSpec.builder("-f", "--file").paramLabel("FILES").type(List.class).// so, this...
> originalArgs = pr.originalArgs();
1,500,830
public static <T extends Node & IPannablePane> PanningGestures<T> attachViewPortGestures(T pannableCanvas, boolean configurable) {<NEW_LINE>PanningGestures<T> panningGestures = new PanningGestures<>(pannableCanvas);<NEW_LINE>if (configurable) {<NEW_LINE>panningGestures.useViewportGestures = new SimpleBooleanProperty(tr...
MouseEvent.MOUSE_PRESSED, panningGestures.onMousePressedEventHandler);
1,676,829
public void authenticate() throws AlluxioStatusException {<NEW_LINE>LOG.debug("Authenticating channel: {}. AuthType: {}", mChannelKey.toStringShort(), mAuthType);<NEW_LINE>ChannelAuthenticationScheme authScheme = getChannelAuthScheme(mAuthType, mParentSubject, mChannelKey.<MASK><NEW_LINE>try {<NEW_LINE>// Create client...
getServerAddress().getSocketAddress());
1,062,403
public Dialog onCreateDialog(Bundle savedInstanceState) {<NEW_LINE>// noinspection unchecked<NEW_LINE>final List<PlaylistSong> songs = <MASK><NEW_LINE>int title;<NEW_LINE>CharSequence content;<NEW_LINE>if (songs.size() > 1) {<NEW_LINE>title = R.string.remove_songs_from_playlist_title;<NEW_LINE>content = Html.fromHtml(g...
getArguments().getParcelableArrayList("songs");
28,746
public void updatePet(Pet body) throws TimeoutException, ExecutionException, InterruptedException, ApiException {<NEW_LINE>Object postBody = body;<NEW_LINE>// verify the required parameter 'body' is set<NEW_LINE>if (body == null) {<NEW_LINE>VolleyError error = new VolleyError("Missing the required parameter 'body' when...
] contentTypes = { "application/json", "application/xml" };
1,687,661
public void onSetting(PluginSetting setting) {<NEW_LINE>Common.logger.add(new LogEntry(LogEntry.PB_LOG_DEBUG, "Start"));<NEW_LINE>if (mCommandArea == null) {<NEW_LINE>Common.logger.add(new LogEntry(LogEntry.PB_LOG_ERROR, "CommandArea is null"));<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (setting == null) {<NEW_LINE>Commo...
parseColor(setting.getValue());
836,957
int[] computeOffsets(Graphics gg, @Nonnull JComponent component) {<NEW_LINE>if (myPainters.isEmpty())<NEW_LINE>return ArrayUtil.EMPTY_INT_ARRAY;<NEW_LINE>int i = 0;<NEW_LINE>int[] offsets = new int[2 + myPainters.size() * 2];<NEW_LINE>// store current graphics transform<NEW_LINE>Graphics2D g = (Graphics2D) gg;<NEW_LINE...
(int) tx.getTranslateX();
132,781
private void validateSchedulingInfo(boolean schedulingInfoOptional) throws InvalidJobException {<NEW_LINE>if (schedulingInfoOptional && schedulingInfo == null)<NEW_LINE>return;<NEW_LINE>if (schedulingInfo == null)<NEW_LINE>throw new InvalidJobException("No scheduling info provided");<NEW_LINE>if (schedulingInfo.getStag...
"memory must be <0.0, not " + machineDefinition.getMemoryMB());
1,506,649
public void onMatch(RelOptRuleCall call) {<NEW_LINE>final HashGroupJoin hashGroupJoin = call.rel(0);<NEW_LINE>RelTraitSet emptyTraitSet = hashGroupJoin.getCluster().getPlanner().emptyTraitSet();<NEW_LINE>RelNode left = convert(hashGroupJoin.getLeft(), emptyTraitSet.replace(MppConvention.INSTANCE));<NEW_LINE>RelNode rig...
implementationList = new ArrayList<>();
479,423
private void mountComponentInternal(@Nullable Rect currentVisibleArea, boolean processVisibilityOutputs) {<NEW_LINE>final LayoutState layoutState = mMainThreadLayoutState;<NEW_LINE>if (layoutState == null) {<NEW_LINE>Log.w(TAG, "Main Thread Layout state is not found");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// We are inv...
mount(layoutState, currentVisibleArea, processVisibilityOutputs);
1,732,994
private void unprotectedRemoveJobReleatedMeta(LoadJob job) {<NEW_LINE>long dbId = job.getDbId();<NEW_LINE>String label = job.getLabel();<NEW_LINE>// 1. remove from idToLoadJob<NEW_LINE>idToLoadJob.<MASK><NEW_LINE>// 2. remove from dbIdToLabelToLoadJobs<NEW_LINE>Map<String, List<LoadJob>> labelToLoadJobs = dbIdToLabelTo...
remove(job.getId());