idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,275,423
public ActionRequestValidationException validate(ActionRequestValidationException validationException) {<NEW_LINE>if (uniqueKey.isEmpty()) {<NEW_LINE>validationException = addValidationError("latest.unique_key must be non-empty", validationException);<NEW_LINE>} else {<NEW_LINE>Set<String> uniqueKeyElements = new HashS...
(uniqueKey.get(i));
477,027
public void decorateContainerConfig(Job job, ImageInfo imageInfo, Optional<String> dockerVersion, ContainerConfig.Builder containerConfigBuilder) {<NEW_LINE>if (!useSyslogRedirector(dockerVersion)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final ContainerConfig imageConfig = imageInfo.config();<NEW_LINE>// Inject syslog-r...
> volumesBuilder = ImmutableSet.builder();
637,423
public static void init() {<NEW_LINE>BlockManager blockManager = MinecraftServer.getBlockManager();<NEW_LINE>blockManager.registerBlockPlacementRule(new RedstonePlacementRule());<NEW_LINE>blockManager.registerBlockPlacementRule(new AxisPlacementRule(Block.BONE_BLOCK));<NEW_LINE>blockManager.registerBlockPlacementRule(n...
new AxisPlacementRule(Block.STRIPPED_DARK_OAK_WOOD));
202,953
public static void configure(Connection conn, CommandLine cl) throws ParseException, IOException {<NEW_LINE>conn.setReceivePDULength(getIntOption(cl, "max-pdulen-rcv", Connection.DEF_MAX_PDU_LENGTH));<NEW_LINE>conn.setSendPDULength(getIntOption(cl<MASK><NEW_LINE>if (cl.hasOption("not-async")) {<NEW_LINE>conn.setMaxOpsI...
, "max-pdulen-snd", Connection.DEF_MAX_PDU_LENGTH));
843,457
private boolean closeTomcatDataSource() {<NEW_LINE>boolean success = true;<NEW_LINE>LOGGER.info(String.format("Error retry times for datasource %s:%s", name, retryTimes));<NEW_LINE>int abandonedTimeout = getAbandonedTimeout();<NEW_LINE>LOGGER.info(String.format("Abandoned timeout for datasource %s:%s", name, abandonedT...
ConnectionPool pool = ds.getPool();
465,421
public static void addSessionTimeoutToSipXml(Document sipXmlDocument, int sessionTimeout) {<NEW_LINE>Element sessionConfigE = sipXmlDocument.createElement("session-config");<NEW_LINE>Element sessionTimeoutE = sipXmlDocument.createElement("javaee:session-timeout");<NEW_LINE>sessionConfigE.appendChild<MASK><NEW_LINE>sess...
(sipXmlDocument.createTextNode("\n "));
1,567,667
public void uploadPanelDidEnd_returnCode_contextInfo(final NSOpenPanel sheet, final int returncode, final ID contextInfo) {<NEW_LINE>sheet.orderOut(contextInfo);<NEW_LINE>if (returncode == SheetCallback.DEFAULT_OPTION) {<NEW_LINE>final Path destination = new UploadTargetFinder(workdir).find(this.getSelectedPath());<NEW...
.file)), local));
809,943
public static ErrorDescription sizeEqualsZeroHint(HintContext ctx, String keyPostfix, String to) {<NEW_LINE>TreePath subj = ctx.getVariables().get("$subj");<NEW_LINE>if (subj == null) {<NEW_LINE>// assume implicit this<NEW_LINE>subj = TreeUtils.findClass(ctx.getPath());<NEW_LINE>}<NEW_LINE>TypeMirror subjType = ctx.get...
getTrees().getElement(enclMethod);
900,976
public static IClassFileReader createDefaultClassFileReader(String zipFileName, String zipEntryName, int decodingFlag) {<NEW_LINE>ZipFile zipFile = null;<NEW_LINE>try {<NEW_LINE>if (JavaModelManager.ZIP_ACCESS_VERBOSE) {<NEW_LINE>// $NON-NLS-1$ //$NON-NLS-2$<NEW_LINE>System.out.println("(" + Thread.currentThread() + ")...
Util.getZipEntryByteContent(zipEntry, zipFile);
710,798
// static final JsonFactory JSON_FACTORY = new GsonFactory();<NEW_LINE>private static void run() throws Exception {<NEW_LINE>HttpRequestFactory requestFactory = HTTP_TRANSPORT.createRequestFactory((HttpRequest request) -> {<NEW_LINE>request.setParser(new JsonObjectParser(JSON_FACTORY));<NEW_LINE>});<NEW_LINE>GitHubUrl ...
request = requestFactory.buildGetRequest(url);
963,902
public static void main(String[] args) {<NEW_LINE>InputReader in = new InputReader(System.in);<NEW_LINE>PrintWriter pw = new PrintWriter(System.out);<NEW_LINE>// Code starts..<NEW_LINE>int n = in.nextInt();<NEW_LINE>int[] a = in.nextIntArray(n);<NEW_LINE>query[] qr1 = new query[n];<NEW_LINE>pair[] p = new pair[n];<NEW_...
[i] * ans2[i];
603,373
public GetRecommendationPreferencesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetRecommendationPreferencesResult getRecommendationPreferencesResult = new GetRecommendationPreferencesResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NE...
int originalDepth = context.getCurrentDepth();
512,019
public Set<String> feedSynchronizersSet(Context ctx) {<NEW_LINE>Set<String> <MASK><NEW_LINE>String[] from = new String[] { "_id", DB.ACCOUNT.NAME, DB.ACCOUNT.AUTH_CONFIG, DB.ACCOUNT.FORMAT, DB.ACCOUNT.FLAGS };<NEW_LINE>try {<NEW_LINE>SQLiteDatabase db = DBHelper.getReadableDatabase(ctx);<NEW_LINE>Cursor c = db.query(DB...
set = new HashSet<>();
1,825,168
public static void main(String[] args) {<NEW_LINE><MASK><NEW_LINE>// There are multiple ways to create the initial variables in your graph<NEW_LINE>// First, you can create them directly, with the specified array:<NEW_LINE>INDArray arr = Nd4j.arange(10);<NEW_LINE>SDVariable var1 = sd.var("var1", arr);<NEW_LINE>long[] s...
SameDiff sd = SameDiff.create();
1,046,092
protected SearchResultItem createSearchResultItem(NewznabXmlItem item) throws NzbHydraException {<NEW_LINE>SearchResultItem searchResultItem = new SearchResultItem();<NEW_LINE>String link = getEnclosureUrl(item);<NEW_LINE>searchResultItem.setLink(link);<NEW_LINE>if (item.getRssGuid().isPermaLink()) {<NEW_LINE>searchRes...
getRssGuid().getGuid());
618,827
public Object apply(final ActionContext ctx, final Object caller, final Object[] sources) throws FrameworkException {<NEW_LINE>final SecurityContext securityContext = ctx.getSecurityContext();<NEW_LINE>try {<NEW_LINE>if (sources == null) {<NEW_LINE>throw new IllegalArgumentException();<NEW_LINE>}<NEW_LINE>final Configu...
sources, ctx.isJavaScriptContext());
1,551,550
private long processPending() {<NEW_LINE>if (LOG.isDebugEnabled())<NEW_LINE>LOG.debug("processPending> {}", pending.values());<NEW_LINE>long now = TimeUnit.NANOSECONDS.<MASK><NEW_LINE>long wait = Long.MAX_VALUE;<NEW_LINE>// pending map is maintained in LRU order<NEW_LINE>for (PathWatchEvent event : new ArrayList<>(pend...
toMillis(System.nanoTime());
1,083,854
public ResourceTag unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ResourceTag resourceTag = new ResourceTag();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE...
class).unmarshall(context));
637,850
private String serializeMetrics(MetricQueryResults metricQueryResults) throws Exception {<NEW_LINE>SimpleModule module = new JodaModule();<NEW_LINE>module.addSerializer(new MetricNameSerializer(MetricName.class));<NEW_LINE>module.addSerializer(new MetricKeySerializer(MetricKey.class));<NEW_LINE>module.addSerializer(new...
filterProvider.addFilter("committedMetrics", filter);
1,639,325
public Stream<ORawPair<Object, ORID>> executeIndexQuery(OCommandContext iContext, OIndex index, List<Object> keyParams, boolean ascSortOrder) {<NEW_LINE>final OIndexDefinition indexDefinition = index.getDefinition();<NEW_LINE>Stream<ORawPair<Object, ORID>> stream;<NEW_LINE>final <MASK><NEW_LINE>if (!internalIndex.canBe...
OIndexInternal internalIndex = index.getInternal();
1,724,204
public FinalBuilder fromTemporaryExposureKeyAndMetadata(TemporaryExposureKey protoBufObject, SubmissionType submissionType, Collection<String> visitedCountries, String originCountry, boolean consentToFederation) {<NEW_LINE>return this.withKeyDataAndSubmissionType(protoBufObject.getKeyData().toByteArray(), submissionTyp...
(originCountry).withConsentToFederation(consentToFederation);
758,815
public static void convolve(Kernel2D_S32 kernel, InterleavedS32 src, InterleavedS32 dst) {<NEW_LINE>final int[] dataKernel = kernel.data;<NEW_LINE>final int[] dataSrc = src.data;<NEW_LINE>final int[] dataDst = dst.data;<NEW_LINE>final int width = src.getWidth();<NEW_LINE>final <MASK><NEW_LINE>final int numBands = src.g...
int height = src.getHeight();
92,171
public Result isConditionMet(Index index, ClusterState clusterState) {<NEW_LINE>IndexMetadata idxMeta = clusterState.getMetadata().index(index);<NEW_LINE>if (idxMeta == null) {<NEW_LINE>logger.debug("[{}] lifecycle action for index [{}] executed but index no longer exists", getKey().getAction(), index.getName());<NEW_L...
return new Result(true, null);
759,958
public void createMethodVariances(MPPCostCollector costCollector) {<NEW_LINE>if (!costCollector.isCostCollectorType(MPPCostCollector.COSTCOLLECTORTYPE_ActivityControl))<NEW_LINE>return;<NEW_LINE>//<NEW_LINE>final int std_resource_id = costCollector.getPP_Order_Node().getAD_WF_Node().getS_Resource_ID();<NEW_LINE>final i...
costCollector.getS_Resource_ID(), costCollector);
384,152
public boolean consume(CodeReader code, Lexer lexer) {<NEW_LINE>if (code.popTo(matcher, tmpBuilder) > 0) {<NEW_LINE>var word = tmpBuilder.toString();<NEW_LINE>tmpBuilder.delete(<MASK><NEW_LINE>// do this work to strip potential whitespace between the hash and the directive<NEW_LINE>var identifier = word.substring(1, wo...
0, tmpBuilder.length());
40,574
private static GenericsType applyGenericsContext(Map<GenericsTypeName, GenericsType> spec, GenericsType gt) {<NEW_LINE>if (gt.isPlaceholder()) {<NEW_LINE>GenericsTypeName name = new GenericsTypeName(gt.getName());<NEW_LINE>GenericsType specType = spec.get(name);<NEW_LINE>if (specType != null)<NEW_LINE>return specType;<...
, gt.getLowerBound()));
133,164
protected Control createDialogArea(Composite parent) {<NEW_LINE>final Composite composite = (Composite) super.createDialogArea(parent);<NEW_LINE>Composite nameComposite = new Composite(composite, SWT.NONE);<NEW_LINE>nameComposite.setLayoutData(new GridData(SWT.FILL, SWT<MASK><NEW_LINE>nameComposite.setLayout(new GridLa...
.FILL, true, false));
1,558,452
private void handleAsyncNonVirtual(LambdaDetails lambdaDetails, MethodVisitor mv, List<BType> paramBTypes) {<NEW_LINE>boolean isBuiltinModule = JvmCodeGenUtil.isBallerinaBuiltinModule(lambdaDetails.packageID.orgName.getValue(), lambdaDetails.packageID.name.getValue());<NEW_LINE>List<BType> paramTypes = getFpParamTypes(...
mv.visitVarInsn(ALOAD, 0);
81,886
public Parent createContent() {<NEW_LINE>HBox outerHbox = new HBox();<NEW_LINE>outerHbox.setAlignment(Pos.CENTER);<NEW_LINE>VBox vbox = new VBox(10);<NEW_LINE>vbox.setPrefWidth(200);<NEW_LINE>// create rectangle<NEW_LINE>final Rectangle rect = new Rectangle(150, 0, 60, 60);<NEW_LINE>rect.setFill(Color.DODGERBLUE);<NEW_...
hoverProperty().addListener(hoverListener);
1,216,742
public AtmosphereResponse write(byte[] data, boolean writeUsingOriginalResponse) {<NEW_LINE>if (data == null) {<NEW_LINE>logger.error("Cannot write null value for {}", resource());<NEW_LINE>return this;<NEW_LINE>}<NEW_LINE>if (Proxy.class.isAssignableFrom(response.getClass())) {<NEW_LINE>writeUsingOriginalResponse = fa...
logger.trace("", ex);
1,178,406
protected EVCacheFuture[] deleteInternal(String key, boolean isOriginalKeyHashed) throws EVCacheException {<NEW_LINE>final EVCacheLatch latch = this.deleteInternal(key, null, isOriginalKeyHashed);<NEW_LINE>if (latch == null)<NEW_LINE>return new EVCacheFuture[0];<NEW_LINE>final List<Future<Boolean>> futures = latch.getA...
= (EVCacheOperationFuture<Boolean>) future;
4,555
private void init(StringBounder stringBounder) {<NEW_LINE>if (first != null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>for (Participant p : reference.getParticipant()) {<NEW_LINE>final LivingSpace livingSpace = tileArguments.getLivingSpace(p);<NEW_LINE>final Real <MASK><NEW_LINE>if (first == null || pos.getCurrentValue() ...
pos = livingSpace.getPosC(stringBounder);
1,625,530
private ClusterState adaptAutoExpandReplicas(ClusterState clusterState) {<NEW_LINE>final Map<Integer, List<String>> autoExpandReplicaChanges = AutoExpandReplicas.getAutoExpandReplicaChanges(clusterState.metaData(), clusterState.nodes());<NEW_LINE>if (autoExpandReplicaChanges.isEmpty()) {<NEW_LINE>return clusterState;<N...
metaDataBuilder.updateNumberOfReplicas(numberOfReplicas, indices);
1,152,104
private void sortMethods() {<NEW_LINE>List<Method> methodList = new ArrayList<>(methods);<NEW_LINE>Collections.sort(methodList, new Comparator<Method>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public int compare(Method m1, Method m2) {<NEW_LINE>int o1 = Integer.MAX_VALUE;<NEW_LINE>if (m1.isAnnotationPresent(Order.class...
= new LinkedHashSet<>(methodList);
1,588,149
public void checkErrors() throws IncompatibleModelException {<NEW_LINE>// Log errors and warnings first before throwing an exception<NEW_LINE>if (doLog) {<NEW_LINE>for (Diagnostic diagnostic : fResource.getErrors()) {<NEW_LINE>if (isCatastrophicException(diagnostic)) {<NEW_LINE>Logger.logError(diagnostic.getMessage());...
IncompatibleModelException(diagnostic.getMessage());
583,657
Mono<Response<String>> changeLeaseWithResponse(BlobChangeLeaseOptions options, Context context) {<NEW_LINE><MASK><NEW_LINE>BlobLeaseRequestConditions requestConditions = (options.getRequestConditions() == null) ? new BlobLeaseRequestConditions() : options.getRequestConditions();<NEW_LINE>context = context == null ? Con...
StorageImplUtils.assertNotNull("options", options);
559,122
public boolean isInInterval(IssueScheduleInfo schedule, IssueScheduleInfo restrictionInterval) {<NEW_LINE>if (restrictionInterval == null) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>Calendar scheduleStart = Calendar.getInstance();<NEW_LINE>scheduleStart.setTime(schedule.getDate());<NEW_LINE>Calendar scheduleEnd = Cale...
setTime(schedule.getDate());
1,741,664
private void updateInstanceConfigAndBrokerResourceIfNeeded() {<NEW_LINE>InstanceConfig instanceConfig = HelixHelper.getInstanceConfig(_participantHelixManager, _instanceId);<NEW_LINE>boolean instanceConfigUpdated = HelixHelper.updateHostnamePort(instanceConfig, _hostname, _port);<NEW_LINE>if (_tlsPort > 0) {<NEW_LINE>H...
brokerTag = TagNameUtils.getBrokerTagForTenant(null);
483,234
protected void completeConnectionPreface() throws Http2Exception {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {<NEW_LINE>Tr.debug(tc, "completeConnectionPreface entry: about to send preface SETTINGS frame");<NEW_LINE>}<NEW_LINE>FrameSettings settings;<NEW_LINE>// send out a settings frame...
processNextFrame(settings, Direction.WRITING_OUT);
1,832,090
public RelWriter explainTermsForDisplay(RelWriter pw) {<NEW_LINE>pw.<MASK><NEW_LINE>assert fieldExps.size() == collation.getFieldCollations().size();<NEW_LINE>if (pw.nest()) {<NEW_LINE>pw.item("collation", collation);<NEW_LINE>} else {<NEW_LINE>List<String> sortList = new ArrayList<String>(fieldExps.size());<NEW_LINE>f...
item(RelDrdsWriter.REL_NAME, "MysqlTopN");
1,839,803
public void testPublisherInboundSseEvent(HttpServletRequest req, HttpServletResponse resp) throws Exception {<NEW_LINE>try (SseClient client = builder.build(SseClient.class)) {<NEW_LINE>GenericSubscriber<InboundSseEvent> subscriber = new GenericSubscriber<>(3);<NEW_LINE>client.anySse("send3strings").subscribe(subscribe...
assertTrue("onComplete not called", subscriber.onCompleteCalled);
847,612
public Object execute(Evaluator evaluator, Argument[] arguments) {<NEW_LINE>if (resultDateMember != null) {<NEW_LINE>return resultDateMember;<NEW_LINE>}<NEW_LINE>// determine the current date<NEW_LINE>Object formatArg = arguments[1].evaluateScalar(evaluator);<NEW_LINE>final Locale locale = Locale.getDefault();<NEW_LINE...
.getHierarchy().getNullMember();
123,222
public MethodVisitor visitMethod(int access, String name, String descriptor, String signature, String[] exceptions) {<NEW_LINE>MethodVisitor mv = super.visitMethod(access, <MASK><NEW_LINE>if ("getInterfaces".equals(name) && ("()[Ljava/lang/Class;".equals(descriptor) || "(Z)[Ljava/lang/Class;".equals(descriptor))) {<NEW...
name, descriptor, signature, exceptions);
1,011,788
public void render() {<NEW_LINE>// Update the animation time.<NEW_LINE>state.update(<MASK><NEW_LINE>ScreenUtils.clear(0, 0, 0, 0);<NEW_LINE>// Poses skeleton using current animations. This sets the bones' local SRT.<NEW_LINE>state.apply(skeleton);<NEW_LINE>// Uses the bones' local SRT to compute their world SRT.<NEW_LI...
Gdx.graphics.getDeltaTime());
655,328
final GetCardinalityResult executeGetCardinality(GetCardinalityRequest getCardinalityRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getCardinalityRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
HandlerContextKey.SIGNING_REGION, getSigningRegion());
859,703
public static VelocityContext prepareContext(long userId, Event event, Position position) {<NEW_LINE>User user = Context.getPermissionsManager().getUser(userId);<NEW_LINE>Device device = Context.getIdentityManager().getById(event.getDeviceId());<NEW_LINE>VelocityContext velocityContext = TextTemplateFormatter.prepareCo...
(event.getMaintenanceId()));
431,191
public ReplicationRule unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ReplicationRule replicationRule = new ReplicationRule();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDep...
)).unmarshall(context));
494,643
public <T> T createFastEvaluator(Scanner scanner, Class<?> interfaceToImplement, String[] parameterNames) throws CompileException, IOException {<NEW_LINE>if (!interfaceToImplement.isInterface()) {<NEW_LINE>throw new InternalCompilerException("\"" + interfaceToImplement + "\" is not an interface");<NEW_LINE>}<NEW_LINE>M...
parameterNames, methodToImplement.getParameterTypes());
49,575
public static void vertical(GrayF32 src, GrayI16 dst) {<NEW_LINE>if (src.height < dst.height)<NEW_LINE>throw new IllegalArgumentException("src height must be >= dst height");<NEW_LINE>if (src.width != dst.width)<NEW_LINE>throw new IllegalArgumentException("src width must equal dst width");<NEW_LINE>float scale = src.he...
start = src.data[index];
1,034,715
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>Player opponent = game.getPlayer(this.getTargetPointer().getFirst(game, source));<NEW_LINE>Permanent sourcePermanent = game.getPermanentOrLKIBattlefield(source.getSourceId());<NEW_LINE>if (c...
TargetCard(Zone.HAND, filter);
375,629
public void bindDatasourceReferenceForEjb(String ejbName, String ejbType, String referenceName, String jndiName) throws ConfigurationException {<NEW_LINE>// NOI18N<NEW_LINE>Parameters.notNull("ejbName", ejbName);<NEW_LINE>// NOI18N<NEW_LINE>Parameters.notNull("ejbType", ejbType);<NEW_LINE>// NOI18N<NEW_LINE>Parameters....
ejbName, ejbType, referenceName, jndiName);
715,696
protected TensorFunction<Reference> lazyGetFunction() {<NEW_LINE>if (!allInputFunctionsPresent(3)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>IntermediateOperation conditionOperation = inputs().get(0);<NEW_LINE>TensorFunction<Reference> a = inputs().get(1).function().get();<NEW_LINE>TensorFunction<Reference> b = input...
.function().get();
1,514,591
public void postProcessEnvironment(ConfigurableEnvironment environment, SpringApplication application) {<NEW_LINE>Map<String, Object> streamPollerProperties = new HashMap<>();<NEW_LINE>String[] pollerPropertySuffixes = { <MASK><NEW_LINE>PropertyMapper map = PropertyMapper.get().alwaysApplying(PropertyMapper.Source::whe...
"fixed-delay", "max-messages-per-poll", "cron", "initial-delay" };
1,795,803
final GetUploadResult executeGetUpload(GetUploadRequest getUploadRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getUploadRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
198,025
public DescribeClusterSnapshotsResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeClusterSnapshotsResult describeClusterSnapshotsResult = new DescribeClusterSnapshotsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LI...
().unmarshall(context));
1,658,687
private static Set<UpdateElement> handleBackwardCompatability(Set<ModuleInfo> forInstall, Set<Dependency> brokenDependencies, boolean aggressive) {<NEW_LINE>if (cachedInfosReference != null) {<NEW_LINE>Set<ModuleInfo> cir = cachedInfosReference.get();<NEW_LINE>if (cir != null && cir.equals(forInstall)) {<NEW_LINE>if (c...
forInstall.size() + ")");
1,665,077
static String formatGroupBy(List<GroupingElement> groupingElements) {<NEW_LINE>ImmutableList.Builder<String> resultStrings = ImmutableList.builder();<NEW_LINE>for (GroupingElement groupingElement : groupingElements) {<NEW_LINE>String result = "";<NEW_LINE>if (groupingElement instanceof SimpleGroupBy) {<NEW_LINE>List<Ex...
join(resultStrings.build());
1,462,262
public static SpannableStringBuilder applyBoldTags(String input, int baseTypefaceValue) {<NEW_LINE>SpannableStringBuilder ssb = new SpannableStringBuilder();<NEW_LINE>int pos = 0;<NEW_LINE>while (pos >= 0) {<NEW_LINE>int start = input.indexOf("[b]", pos);<NEW_LINE>int end = input.indexOf("[/b]", pos);<NEW_LINE>if (star...
.substring(pos, start));
477,056
ActionResult<Wo> execute(EffectivePerson effectivePerson, String id, JsonElement jsonElement) throws Exception {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Wi wi = this.convertToWrapIn(jsonElement, Wi.class);<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().crea...
Business business = new Business(emc);
676,947
void insert(GpxDataItem item, SQLiteConnection db) {<NEW_LINE>String fileName = getFileName(item.file);<NEW_LINE>String fileDir = getFileDir(item.file);<NEW_LINE>GPXTrackAnalysis trackAnalysis = item.getAnalysis();<NEW_LINE>String color;<NEW_LINE>if (item.color == 0) {<NEW_LINE>color = "";<NEW_LINE>} else {<NEW_LINE>co...
put(GPX_COL_SMOOTHING_THRESHOLD, item.smoothingThreshold);
179,346
private void filterExpiredKeys(KeyStore store) throws KeyStoreException {<NEW_LINE>logger.log(Level.INFO, "Removing expired keys.");<NEW_LINE>int removedKeys = 0;<NEW_LINE>// Count through all aliases<NEW_LINE>Enumeration<String> aliases = store.aliases();<NEW_LINE>while (aliases.hasMoreElements()) {<NEW_LINE>// Get th...
[] { alias, expiryDate });
176,776
final CreateImageBuilderResult executeCreateImageBuilder(CreateImageBuilderRequest createImageBuilderRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createImageBuilderRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,340,921
protected Container createContentPane() {<NEW_LINE>MigLayout layout <MASK><NEW_LINE>JPanel panel = new JPanel(layout);<NEW_LINE>JTextFieldCapsLockSubscriber capsLockSubscriber = new JTextFieldCapsLockSubscriber();<NEW_LINE>CapsLockIndicator capsLock = componentsFactory.createComponent(CapsLockIndicator.class);<NEW_LINE...
= new MigLayout("fillx, insets dialog", "[right][]");
1,283,848
// Show transaction statement.<NEW_LINE>private void handleShowTransaction() throws AnalysisException {<NEW_LINE>ShowTransactionStmt showStmt = (ShowTransactionStmt) stmt;<NEW_LINE>Database db = ctx.getCatalog().<MASK><NEW_LINE>TransactionStatus status = showStmt.getStatus();<NEW_LINE>GlobalTransactionMgr transactionMg...
getDbOrAnalysisException(showStmt.getDbName());
466,722
public static IntegerLookupValue integerLookupValueFromJsonMap(@NonNull final Map<String, Object> map) {<NEW_LINE>final Object keyObj = map.get(PROPERTY_Key);<NEW_LINE>if (keyObj == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final String keyStr = keyObj.toString().trim();<NEW_LINE>if (keyStr.isEmpty()) {<NEW_LIN...
final Boolean active = extractActive(map);
633,830
public static void test1() {<NEW_LINE>try {<NEW_LINE>System.out.println("--------------- TEST 1 -------------------");<NEW_LINE>VirtModel vdata = VirtModel.openDatabaseModel("test:inf1", URL, uid, pwd);<NEW_LINE>vdata.removeAll();<NEW_LINE>String NS = PrintUtil.egNS;<NEW_LINE>Resource c1 = vdata.createResource(NS + "C1...
.subClassOf, null, premise));
446,062
public static Object doAround(ProceedingJoinPoint joinPoint, OperationLog operationLog) throws Throwable {<NEW_LINE>RequestAttributes requestAttributes = RequestContextHolder.getRequestAttributes();<NEW_LINE>if (requestAttributes == null) {<NEW_LINE>return joinPoint.proceed();<NEW_LINE>}<NEW_LINE>HttpServletRequest req...
.setRequestTime(new Date());
1,253,493
protected View onCreateAnswerView(Context context, FormEntryPrompt prompt, int answerFontSize) {<NEW_LINE>binding = TimeWidgetAnswerBinding.inflate(((Activity) context).getLayoutInflater());<NEW_LINE>if (prompt.isReadOnly()) {<NEW_LINE><MASK><NEW_LINE>} else {<NEW_LINE>binding.timeButton.setTextSize(TypedValue.COMPLEX_...
binding.timeButton.setVisibility(GONE);
85,989
public CRParseResult responseMessageForParseDirectory(String responseBody) {<NEW_LINE>ErrorCollection errors = new ErrorCollection();<NEW_LINE>try {<NEW_LINE>ResponseScratch responseMap = parseResponseForMigration(responseBody);<NEW_LINE>ParseDirectoryResponseMessage parseDirectoryResponseMessage;<NEW_LINE>if (response...
responseBody = migrate(responseBody, version);
107,892
public void createOrUpdateIndexerWithResponseAsync2() {<NEW_LINE>// BEGIN: com.azure.search.documents.indexes.SearchIndexerAsyncClient.createOrUpdateIndexerWithResponse#CreateOrUpdateIndexerOptions<NEW_LINE>searchIndexerAsyncClient.getIndexer("searchIndexer").flatMap(searchIndexerFromService -> {<NEW_LINE>searchIndexer...
false).setCacheResetRequirementsIgnored(true));
1,109,617
public void updated(Dictionary<String, ?> config) throws ConfigurationException {<NEW_LINE>String variant = null;<NEW_LINE>if (config != null) {<NEW_LINE>String granularityString = (String) config.get("granularity");<NEW_LINE>if (StringUtils.isNotBlank(granularityString)) {<NEW_LINE>granularity = Integer.parseInt(granu...
logger.error("Error initializing system monitor", t);
516,236
public void copy(ProjectFilesystem filesystem, BuildCellRelativePathFactory buildCellRelativePathFactory, ImmutableList.Builder<Step> steps, Path destinationDir, Iterable<SourcePath> toCopy, SourcePathResolverAdapter pathResolver, PatternsMatcher entriesToExclude) {<NEW_LINE>Map<Path, Path> relativeMap = pathResolver.c...
steps, relativePath, absolutePath, destination);
256,820
public void marshall(CreateUserRequest createUserRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createUserRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createUserRequest.getUsername(), ...
createUserRequest.getRoutingProfileId(), ROUTINGPROFILEID_BINDING);
194,050
public void addSupportedGovernanceService(String engineGUID, String requestType, Map<String, String> requestParameters, String serviceGUID) {<NEW_LINE>final String methodName = "addSupportedGovernanceService";<NEW_LINE>EntityDetail engineEntity = archiveBuilder.getEntity(engineGUID);<NEW_LINE>EntityDetail serviceEntity...
end2 = archiveHelper.getEntityProxy(serviceEntity);
206,619
public static void horizontal11(Kernel1D_F64 kernel, GrayF64 image, GrayF64 dest) {<NEW_LINE>final double[] dataSrc = image.data;<NEW_LINE>final double[] dataDst = dest.data;<NEW_LINE>final double k1 = kernel.data[0];<NEW_LINE>final double k2 = kernel.data[1];<NEW_LINE>final double k3 = kernel.data[2];<NEW_LINE>final d...
k11 = kernel.data[10];
1,224,091
public static void rgbToGray_Weighted_U8(Planar<GrayU8> rgb, GrayU8 gray) {<NEW_LINE>GrayU8 R = rgb.getBand(0);<NEW_LINE>GrayU8 G = rgb.getBand(1);<NEW_LINE>GrayU8 B = rgb.getBand(2);<NEW_LINE>// CONCURRENT_BELOW BoofConcurrency.loopFor(0,rgb.height,row->{<NEW_LINE>for (int row = 0; row < rgb.height; row++) {<NEW_LINE>...
R.data[indexRgb] & 0xFF;
1,610,986
protected void handleCleanStatefulCheckpointRequest(REQID rid, SocketChannel channel, CheckpointManager.CleanStatefulCheckpointRequest request) {<NEW_LINE>LOG.info(String.format("Got a clean request from %s running at host:port %s", request.toString(), channel.socket().getRemoteSocketAddress()));<NEW_LINE>boolean delet...
= CheckpointManager.CleanStatefulCheckpointResponse.newBuilder();
1,790,360
public void execute(@Named(IServiceConstants.ACTIVE_PART) MPart part, @Named(IServiceConstants.ACTIVE_SHELL) Shell shell) throws IOException {<NEW_LINE>FileDialog fileDialog = new FileDialog(shell, SWT.OPEN | SWT.SINGLE);<NEW_LINE>fileDialog.setText(Messages.PDFImportDebugTextExtraction);<NEW_LINE>fileDialog.setFilterN...
).replace("\r", "");
1,013,949
public boolean remove(final ID id) {<NEW_LINE>if (_removeSql == null) {<NEW_LINE>return expunge(id);<NEW_LINE>}<NEW_LINE>final TransactionLegacy txn = TransactionLegacy.currentTxn();<NEW_LINE>PreparedStatement pstmt = null;<NEW_LINE>try {<NEW_LINE>txn.start();<NEW_LINE>pstmt = txn.prepareAutoCloseStatement(_removeSql.f...
] attrs = _removeSql.second();
636,250
public Node createNode(Label... labels) {<NEW_LINE>var ktx = kernelTransaction();<NEW_LINE>try {<NEW_LINE>TokenWrite tokenWrite = ktx.tokenWrite();<NEW_LINE>int[] labelIds = new int[labels.length];<NEW_LINE>String[] labelNames = new String[labels.length];<NEW_LINE>for (int i = 0; i < labelNames.length; i++) {<NEW_LINE>...
nodeId = write.nodeCreateWithLabels(labelIds);
807,381
public void decode(FacesContext facesContext, UIComponent component) {<NEW_LINE>// check for NP<NEW_LINE>super.decode(facesContext, component);<NEW_LINE>if (component instanceof UICommand) {<NEW_LINE>String clientId = component.getClientId(facesContext);<NEW_LINE>FormInfo formInfo = findNestingForm(component, facesCont...
HtmlRendererUtils.decodeClientBehaviors(facesContext, component);
965,324
private void insertInterpolatedTransfer(Label label, GtfsStorage.PlatformDescriptor toPlatformDescriptor, HashMap<String, GtfsReader> readers) {<NEW_LINE>GtfsReader toFeedReader = readers.get(toPlatformDescriptor.feed_id);<NEW_LINE>List<Integer> transferEdgeIds = toFeedReader.insertTransferEdges(label.node.ptNode, (int...
.streetTime / 1000L), toPlatformDescriptor);
588,563
public DescribeSecurityPolicyResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeSecurityPolicyResult describeSecurityPolicyResult = new DescribeSecurityPolicyResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentPar...
().unmarshall(context));
966,997
private void clearIqCallbacks() {<NEW_LINE>final IqPacket failurePacket = new <MASK><NEW_LINE>final ArrayList<OnIqPacketReceived> callbacks = new ArrayList<>();<NEW_LINE>synchronized (this.packetCallbacks) {<NEW_LINE>if (this.packetCallbacks.size() == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Log.d(Config.LOGTAG, accou...
IqPacket(IqPacket.TYPE.TIMEOUT);
1,450,145
private void initializeComponents() {<NEW_LINE>setLayout(new GridBagLayout());<NEW_LINE>JButton backwardButton, forwardButton;<NEW_LINE>add(backwardButton = new JButton("<"), new GridBagConstraints(0, 0, 1, 1, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0));<NEW_LINE>add(r...
(CustomCardLayout) regionsPanel.getLayout();
1,036,837
protected void bulkLoad(List<E> spatialObjects) {<NEW_LINE>if (!initialized) {<NEW_LINE>initialize(spatialObjects.get(0));<NEW_LINE>}<NEW_LINE>StringBuilder msg = getLogger().isDebuggingFine() <MASK><NEW_LINE>// Tiny tree that fits into a single page<NEW_LINE>if (spatialObjects.size() <= leafCapacity) {<NEW_LINE>N root...
? new StringBuilder(500) : null;
1,482,601
public InputStream call() throws Exception {<NEW_LINE>URLConnection conn = url.openConnection();<NEW_LINE>configureConnection(conn, timeout);<NEW_LINE>// handle redirection here<NEW_LINE>int redirCount = 0;<NEW_LINE>URLConnection redir = conn;<NEW_LINE>do {<NEW_LINE>conn = redir;<NEW_LINE><MASK><NEW_LINE>redirCount++;<...
redir = checkRedirect(conn, timeout);
827,485
public static <T> T convert(Object from, Class<T> to) {<NEW_LINE>requireNonNull(to);<NEW_LINE>if (from == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>to = (Class<T>) wrap(to);<NEW_LINE>// Can we cast? Then just do it.<NEW_LINE>if (to.isAssignableFrom(from.getClass())) {<NEW_LINE>return to.cast(from);<NEW_LINE>}<N...
e.getMessage(), e);
430,925
public void handle(Promise<RowSet<Row>> promise) {<NEW_LINE>try {<NEW_LINE>PreparedStatement preparedStatement = connection.prepareStatement(sql, Statement.RETURN_GENERATED_KEYS);<NEW_LINE>for (Tuple tuple : batch) {<NEW_LINE>setParams(tuple, preparedStatement);<NEW_LINE>preparedStatement.addBatch();<NEW_LINE>}<NEW_LIN...
()).sum());
1,437,972
public Operable addOperation(Operation op, Context ctx) {<NEW_LINE>Cluster cluster = getCluster();<NEW_LINE>int count = cluster.getUnitCount();<NEW_LINE>Function function = op.getFunction();<NEW_LINE>String functionName = function.getFunctionName();<NEW_LINE>String option = function.getOption();<NEW_LINE>String param =...
, cluster.getPort(i));
727,282
private void allocateContainer(Container container) throws Exception {<NEW_LINE>String containerId = container.getId().toString();<NEW_LINE>LOGGER.logInfo("[%s]: allocateContainer: Try to Allocate Container to Task: Container: %s", containerId, HadoopExts.toString(container));<NEW_LINE>// 0. findTask<NEW_LINE>TaskStatu...
logInfo("%s[%s]: Container is Rejected, Release Container and Request again", taskLocator, containerId);
471,747
public static void execKey(KeyEvent keyEvent, int valueIndex) {<NEW_LINE>// valueIndex points to where the value is stored in the array.<NEW_LINE>CallbackBridge.holdingAlt = keyEvent.isAltPressed();<NEW_LINE>CallbackBridge.holdingCapslock = keyEvent.isCapsLockOn();<NEW_LINE>CallbackBridge.holdingCtrl = keyEvent.isCtrlP...
.holdingShift = keyEvent.isShiftPressed();
1,672,036
private Stage createStage() {<NEW_LINE>logger.trace("Creating stage for input display");<NEW_LINE>double keyPaneWidth = 225.0;<NEW_LINE>double mousePaneWidth = 100;<NEW_LINE>double spacing = 5;<NEW_LINE>var pane = new AnchorPane();<NEW_LINE>pane.setStyle("-fx-background-color: rgba(0, 0, 0, 0.75); -fx-background-radius...
AnchorPane.setLeftAnchor(paneKeys, 0.0);
904,173
private static Set<MessageDestination> readMessageDestinations(File xmlFile, String xPathPrefix, File resourcesDir) {<NEW_LINE>Set<MessageDestination> msgDestinations = new HashSet<MessageDestination>();<NEW_LINE>if (xmlFile.exists()) {<NEW_LINE>Map<String, AdminObjectResource> aoResourceMap = new HashMap<String, Admin...
ArrayList<TreeParser.Path>();
1,391,777
static Map<String, ?> renderAll(MetricResults metricResults) {<NEW_LINE>Map<String, Object> metrics = new HashMap<>();<NEW_LINE>MetricQueryResults metricQueryResults = metricResults.allMetrics();<NEW_LINE>for (MetricResult<Long> metricResult : metricQueryResults.getCounters()) {<NEW_LINE>metrics.put(renderName(metricRe...
".max", result.getMax());
412,970
private static void insertData() {<NEW_LINE>Point.Builder builder = Point.measurement("student");<NEW_LINE>Map<String, String> tags = new HashMap<>();<NEW_LINE>Map<String, Object> fields = new HashMap<>();<NEW_LINE>tags.put("name", "xie");<NEW_LINE>tags.put("sex", "m");<NEW_LINE>fields.put("score", 87.0);<NEW_LINE>fiel...
fields.put("country", "china");
1,242,597
private StringBuilder genQuery() {<NEW_LINE>int columnCount = 0;<NEW_LINE>StringBuilder sb = new StringBuilder(INSERT_INTO);<NEW_LINE>sb.append(keyspace + "." + cfDef.getName());<NEW_LINE>sb.append(OPEN_PARA);<NEW_LINE>Iterator<ColumnDefinition> iter = cfDef.getPartitionKeyColumnDefinitionList().iterator();<NEW_LINE>wh...
.getRegularColumnDefinitionList().iterator();
569,131
default Runnable acceptPut(CallContext context, FlightStream flightStream, StreamListener<PutResult> ackStream) {<NEW_LINE>final Any command = FlightSqlUtils.parseOrThrow(flightStream.getDescriptor().getCommand());<NEW_LINE>if (command.is(CommandStatementUpdate.class)) {<NEW_LINE>return acceptPutStatement(FlightSqlUtil...
), context, flightStream, ackStream);
1,816,908
public com.amazonaws.services.ec2instanceconnect.model.InvalidArgsException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.ec2instanceconnect.model.InvalidArgsException invalidArgsException = new com.amazonaws.services.ec2instanceconnect.model.InvalidArgsExcept...
String currentParentElement = context.getCurrentParentElement();
1,550,031
public <V> V write(V request) {<NEW_LINE>RandomAccessFile dir = null;<NEW_LINE>FileLock lock = null;<NEW_LINE>ObjectOutputStream output = null;<NEW_LINE>try {<NEW_LINE>createDirectory(handle.getParentFile());<NEW_LINE>dir <MASK><NEW_LINE>lock = dir.getChannel().lock();<NEW_LINE>output = new ObjectOutputStream(new GZIPO...
= new RandomAccessFile(handle, "rw");