idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
504,264
public void close(int requestNumber) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(this, tc, "close", requestNumber);<NEW_LINE>// Deregister any error callback created for this connection.<NEW_LINE>if (asynchReader != null) {<NEW_LINE>try {<NEW_LINE>mainConsumer.getCon...
getConnection().removeConnectionListener(asynchReader);
838,553
private FilterConfig processFilterConfig(DeploymentDescriptor webDD, Filter filter) {<NEW_LINE>String filterName = filter.getFilterName();<NEW_LINE>Map<String, ConfigItem<FilterConfig>> <MASK><NEW_LINE>ConfigItem<FilterConfig> existedFilter = filterMap.get(filterName);<NEW_LINE>FilterConfig filterConfig = null;<NEW_LIN...
filterMap = configurator.getConfigItemMap("filter");
592,679
private void createKafkaConsumer(String bootstrapServers) {<NEW_LINE>Properties properties = new Properties();<NEW_LINE>properties.put(ConsumerConfig.BOOTSTRAP_SERVERS_CONFIG, bootstrapServers);<NEW_LINE>properties.put(ConsumerConfig.GROUP_ID_CONFIG, context.getConfig().getSortTaskId());<NEW_LINE>properties.put(Consume...
logger.info("end to create kafka consumer:{}", consumer);
1,806,880
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>binding = DataBindingUtil.setContentView(this, R.layout.activity_main);<NEW_LINE>setSupportActionBar(binding.toolbar);<NEW_LINE>binding.startIntro.setOnClickListener(new View.OnClickListener() {<NEW_LINE><NEW_LINE...
binding.optionPermissions.isChecked());
1,455,603
public static void main(String[] args) throws IOException {<NEW_LINE>Config clientConfig = new Config();<NEW_LINE>clientConfig.configurationHeader = CONFIG_HEADER;<NEW_LINE>clientConfig.customConfigurationDefaultsProvider = DEFAULTS;<NEW_LINE>clientConfig.configurationFile = CONFIG_FILE;<NEW_LINE>ClientInitializer.init...
"PASS: " + clientConfig.uri + " responds to ping");
821,570
private void loadCacertsAndCustomCerts() {<NEW_LINE>try {<NEW_LINE>KeyStore keystore = KeyStore.getInstance(KeyStore.getDefaultType());<NEW_LINE>InputStream keystoreStream = NzbHydra.class.getResource("/cacerts").openStream();<NEW_LINE>keystore.load(keystoreStream, null);<NEW_LINE>final File certificatesFolder = new Fi...
logger.error("Unable to load packaged cacerts file", e);
1,822,953
final DescribeWorkteamResult executeDescribeWorkteam(DescribeWorkteamRequest describeWorkteamRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeWorkteamRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker");
243,609
public QueryStringNames unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>QueryStringNames queryStringNames = new QueryStringNames();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>targetDepth...
XMLEvent xmlEvent = context.nextEvent();
18,556
private static void findTwinMentionsStrict(Document doc) {<NEW_LINE>for (int sentNum = 0; sentNum < doc.goldMentions.size(); sentNum++) {<NEW_LINE>List<Mention> golds = doc.goldMentions.get(sentNum);<NEW_LINE>List<Mention> predicts = doc.predictedMentions.get(sentNum);<NEW_LINE>// For CoNLL training there are some docu...
cm = goldMentionPositions.get(pos);
1,122,830
public void upload2() throws NoSuchAlgorithmException {<NEW_LINE>// BEGIN: com.azure.storage.blob.specialized.BlockBlobClient.uploadWithResponse#InputStream-long-BlobHttpHeaders-Map-AccessTier-byte-BlobRequestConditions-Duration-Context<NEW_LINE>BlobHttpHeaders headers = new BlobHttpHeaders().setContentMd5("data".getBy...
().getContentMd5()));
1,558,357
private E switchToNextConsumerChunkAndPoll(MpmcUnboundedXaddChunk<E> cChunk, MpmcUnboundedXaddChunk<E> next, long expectedChunkIndex) {<NEW_LINE>if (next == null) {<NEW_LINE>final long ccChunkIndex = expectedChunkIndex - 1;<NEW_LINE>assert cChunk.lvIndex() == ccChunkIndex;<NEW_LINE>if (lvProducerChunkIndex() == ccChunk...
next.soElement(0, null);
141,279
private List<TokenTextElement> findTokenTextElementForComment(Comment oldValue, NodeText nodeText) {<NEW_LINE>List<TokenTextElement> matchingTokens;<NEW_LINE>if (oldValue instanceof JavadocComment) {<NEW_LINE>matchingTokens = nodeText.getElements().stream().filter(e -> e.isToken(JAVADOC_COMMENT)).map(e -> (TokenTextEle...
).collect(toList());
1,526,572
public double yearFraction(LocalDate startDate, LocalDate endDate, DayCount dayCount) {<NEW_LINE>ArgChecker.inOrderOrEqual(getUnadjustedStartDate(), startDate, "bond.unadjustedStartDate", "startDate");<NEW_LINE>ArgChecker.inOrderOrEqual(startDate, endDate, "startDate", "endDate");<NEW_LINE>ArgChecker.inOrderOrEqual(end...
yearFraction(startDate, endDate, info);
389,044
/*<NEW_LINE>* @Sensitive<NEW_LINE>* public boolean checkForSignatureProps(@Sensitive Map<String, Object> map) {<NEW_LINE>* boolean isSigConfig = false;<NEW_LINE>* if (map.containsKey(WSSecurityConstants.CXF_SIG_PROPS))<NEW_LINE>* isSigConfig = true;<NEW_LINE>* return isSigConfig;<NEW_LINE>* }<NEW_LINE>*<NEW_LINE>* publ...
put(WSSecurityConstants.WSS4J_KS_PASSWORD, pwd);
1,624,392
public static long pack(double v) {<NEW_LINE>// Not "raw" , so NaNs end up as the same bit pattern when packed.<NEW_LINE>long x = Double.doubleToLongBits(v);<NEW_LINE>long sign = BitsLong.unpack(x, 63, 64);<NEW_LINE>long exp11 = BitsLong.unpack(x, 52, 63);<NEW_LINE>long exp9 = encode11to9(exp11);<NEW_LINE>if (exp9 == -...
z, significand, 0, 52);
912,195
public ExitCode run(CommandEnv commandEnv) throws ValidationException, IOException, RepoException {<NEW_LINE>ConfigFileArgs configFileArgs = commandEnv.parseConfigFileArgs(this, /*useSourceRef*/<NEW_LINE>false);<NEW_LINE>ConfigLoader configLoader = configLoaderProvider.newLoader(configFileArgs.getConfigPath(<MASK><NEW_...
), configFileArgs.getSourceRef());
1,338,984
private void workCompletedProjection(String workCompletedId, List<Projection> projections) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Business business = new Business(emc);<NEW_LINE>WorkCompleted o = emc.find(workCompletedId, WorkCompleted...
projectionReadCompleted(projections, data, readCompleted);
968,216
public static boolean backupToFile(Context context, Uri uri, String password, String plain) {<NEW_LINE>boolean success;<NEW_LINE>try {<NEW_LINE>int iter = EncryptionHelper.generateRandomIterations();<NEW_LINE>byte[] salt = EncryptionHelper.generateRandom(Constants.ENCRYPTION_IV_LENGTH);<NEW_LINE>SecretKey key = Encrypt...
generateSymmetricKeyPBKDF2(password, iter, salt);
1,093,841
public ResponseType execute() {<NEW_LINE>try {<NEW_LINE>return queue().get();<NEW_LINE>} catch (Throwable e) {<NEW_LINE>if (e instanceof HystrixRuntimeException) {<NEW_LINE>throw (HystrixRuntimeException) e;<NEW_LINE>}<NEW_LINE>// if we have an exception we know about we'll throw it directly without the threading wrapp...
().getSimpleName() + " HystrixCollapser failed while executing.";
996,247
public static ResolvedSwapLeg cashFlowEquivalentOnLeg(ResolvedSwapLeg onLeg, RatesProvider multicurve) {<NEW_LINE>Currency ccy = onLeg.getCurrency();<NEW_LINE>ArgChecker.isTrue(onLeg.getType().equals(SwapLegType.OVERNIGHT), "Leg type should be OVERNIGHT");<NEW_LINE>ArgChecker.isTrue(onLeg.getPaymentEvents().isEmpty(), ...
LocalDate endDate = rateAccrualPeriod.getEndDate();
1,474,310
private void createToken(String name, int tokenId, boolean internal, CursorContext cursorContext, PageCursor pageCursor, StoreCursors storeCursors) {<NEW_LINE>RECORD record = recordInstantiator.apply(tokenId);<NEW_LINE>record.setInUse(true);<NEW_LINE>record.setCreated();<NEW_LINE>record.setInternal(internal);<NEW_LINE>...
DynamicStringStore tokenNameStore = store.getNameStore();
991,011
private Set<String> foreignKeyDiff(final String[] outliers, final String[] inliers, double minRatioThreshold) {<NEW_LINE>final Map<String, Integer> outlierCounts = new HashMap<>();<NEW_LINE>log.info("Starting outliers");<NEW_LINE>// noinspection Duplicates<NEW_LINE>for (final String outlier : outliers) {<NEW_LINE>outli...
> builder = ImmutableSet.builder();
1,210,608
public void addPostCondition(final String postConditionString, final String attributeName) {<NEW_LINE>if (postConditionString.trim().length() != 0) {<NEW_LINE>final String id = SpecWriterUtilities.getValidIdentifier(TLAConstants.Schemes.POST_CONDITION_SCHEME);<NEW_LINE>if (cfgBuffer != null) {<NEW_LINE>cfgBuffer.append...
.CR).append(postConditionString);
130,492
private static void generic(Exchange okcoinExchange) throws IOException {<NEW_LINE>// Interested in the public market data feed (no authentication)<NEW_LINE>MarketDataService marketDataService = okcoinExchange.getMarketDataService();<NEW_LINE>// Get the latest trade data for BTC_CNY<NEW_LINE>Trades trades = marketDataS...
trades.getlastID() - 10);
1,545,358
public static void populateSwiftLibraryDescriptionArg(SwiftBuckConfig swiftBuckConfig, SourcePathResolverAdapter sourcePathResolverAdapter, SwiftLibraryDescriptionArg.Builder output, CxxLibraryDescription.CommonArg args, BuildTarget buildTarget) {<NEW_LINE>output.setName(args.getName());<NEW_LINE>output.setSrcs(filterS...
) : args.getPreferredLinkage());
118,206
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>log.fine("");<NEW_LINE>HttpSession sess = request.getSession();<NEW_LINE>WWindowStatus ws = WWindowStatus.get(request);<NEW_LINE>if (ws == null) {<NEW_LINE>WebUtil.createTimeoutPage(request, respo...
= targetBase + "D.value='';" + targetBase + "F.value='';closePopup();";
1,050,895
public static FilePickerDialogFragment newInstance(String tag, String title, DialogProperties properties) {<NEW_LINE>FilePickerDialogFragment fragment = new FilePickerDialogFragment();<NEW_LINE>Bundle args = new Bundle();<NEW_LINE>args.putString(ARG_TAG, tag);<NEW_LINE><MASK><NEW_LINE>args.putInt(ARG_SELECTION_MODE, pr...
args.putString(ARG_TITLE, title);
386,813
public void submit(VariantContext vc) {<NEW_LINE>Utils.nonNull(vc);<NEW_LINE>Utils.validateArg(vc.hasGenotypes(), "GVCF assumes that the VariantContext has genotypes");<NEW_LINE>Utils.validateArg(vc.getGenotypes().size() == 1, () -> "GVCF assumes that the VariantContext has exactly one genotype but saw " + vc.getGenoty...
maybeCompletedBand = addHomRefSite(vc, g);
314,209
private long closeRewrittenPartitionFiles(int partitionIndex, int oldBase, Path path) {<NEW_LINE>long partitionTs = openPartitionInfo.getQuick(partitionIndex * PARTITIONS_SLOT_SIZE);<NEW_LINE>long exisingPartitionNameTxn = openPartitionInfo.getQuick(partitionIndex * PARTITIONS_SLOT_SIZE + PARTITIONS_SLOT_OFFSET_NAME_TX...
newSize = txFile.getPartitionSizeByPartitionTimestamp(partitionTs);
1,002,755
private HeartbeatMsg buildHeartbeat() {<NEW_LINE>ConfigManager configManager = ConfigManager.getInstance();<NEW_LINE>HeartbeatMsg heartbeatMsg = new HeartbeatMsg();<NEW_LINE>Map<String, String> commonProperties = configManager.getCommonProperties();<NEW_LINE>String localIp = commonProperties.get(ConfigConstants.PROXY_L...
groupId = groupIdMappings.get(groupIdNum);
475,781
public void visit(CallExpression node) {<NEW_LINE>// validate call arguments<NEW_LINE>boolean seenVarargs = false;<NEW_LINE>boolean seenKwargs = false;<NEW_LINE>Set<String> keywords = null;<NEW_LINE>for (Argument arg : node.getArguments()) {<NEW_LINE>if (arg instanceof Argument.Positional) {<NEW_LINE>if (seenVarargs) {...
errorf(arg, "keyword argument %s may not follow *args", keyword);
41,803
private void recover(StartRecoveryRequest request, ActionListener<RecoveryResponse> listener) throws IOException {<NEW_LINE>final IndexService indexService = indicesService.indexServiceSafe(request.<MASK><NEW_LINE>final IndexShard shard = indexService.getShard(request.shardId().id());<NEW_LINE>final ShardRouting routin...
shardId().getIndex());
627,348
protected void convertElementToJson(ObjectNode propertiesNode, BaseElement baseElement, BpmnJsonConverterContext converterContext) {<NEW_LINE>BoundaryEvent boundaryEvent = (BoundaryEvent) baseElement;<NEW_LINE>ArrayNode dockersArrayNode = objectMapper.createArrayNode();<NEW_LINE>ObjectNode dockNode = objectMapper.creat...
BigDecimal(parentGraphicInfo.getX());
1,564,644
private void loadAllClasses() {<NEW_LINE>waitForFile();<NEW_LINE>try {<NEW_LINE>NativeLibraries nativeLibraries = new NativeLibraries(apkFile);<NEW_LINE>this<MASK><NEW_LINE>} catch (Throwable e) {<NEW_LINE>nativeLibraries = Collections.emptyList();<NEW_LINE>}<NEW_LINE>if (android.os.Build.VERSION.SDK_INT >= android.os....
.nativeLibraries = nativeLibraries.getUniqueLibs();
1,420,172
private static void writeComponent(Scope scope, String groupId, String artifactId, String version, String packaging, List<License> licenses, StringBuilder bom) {<NEW_LINE>String indent = " ";<NEW_LINE>String bomReference = getBomReference(groupId, artifactId, version);<NEW_LINE>bom.append(indent).append("<compon...
(indent).append("</component>\n");
1,839,346
public NodeValue eval(List<NodeValue> args) {<NEW_LINE>Node arg = NodeFunctions.checkAndGetStringLiteral("REGEX"<MASK><NEW_LINE>NodeValue vPattern = args.get(1);<NEW_LINE>NodeValue vFlags = (args.size() == 2 ? null : args.get(2));<NEW_LINE>RegexEngine regex = regexEngine;<NEW_LINE>if (regex == null) {<NEW_LINE>// Execu...
, args.get(0));
1,709,226
public static String jweDirectEncode(Key aesKey, Key hmacKey, byte[] contentBytes) throws JWEException {<NEW_LINE>int keyLength = aesKey.getEncoded().length;<NEW_LINE>String encAlgorithm;<NEW_LINE>switch(keyLength) {<NEW_LINE>case 16:<NEW_LINE>encAlgorithm = JWEConstants.A128CBC_HS256;<NEW_LINE>break;<NEW_LINE>case 24:...
(jweHeader).content(contentBytes);
1,184,900
private void updatePorts(Instance instance) {<NEW_LINE>Direction facing = instance.getAttributeValue(StdAttr.FACING);<NEW_LINE>int dx = 0;<NEW_LINE>int dy = 0;<NEW_LINE>if (facing == Direction.NORTH) {<NEW_LINE>dy = 1;<NEW_LINE>} else if (facing == Direction.EAST) {<NEW_LINE>dx = -1;<NEW_LINE>} else if (facing == Direc...
Port.INPUT, StdAttr.WIDTH);
825,631
static void lookupCodeInfo(CodeInfo info, long ip, SimpleCodeInfoQueryResult codeInfoQueryResult) {<NEW_LINE>long sizeEncoding = initialSizeEncoding();<NEW_LINE>long entryIP = lookupEntryIP(ip);<NEW_LINE>long entryOffset = loadEntryOffset(info, ip);<NEW_LINE>do {<NEW_LINE>int entryFlags = loadEntryFlags(info, entryOffs...
codeInfoQueryResult.setExceptionOffset(CodeInfoQueryResult.NO_EXCEPTION_OFFSET);
1,052,083
private void fetchRequests(RequestRegistrationCallback<DeleteOperation> requestRegistrationCallback) {<NEW_LINE>Iterator<ReplicaId> replicaIterator = operationTracker.getReplicaIterator();<NEW_LINE>while (replicaIterator.hasNext()) {<NEW_LINE>ReplicaId replica = replicaIterator.next();<NEW_LINE>String hostname = replic...
port, deleteRequest, replica, operationQuotaCharger);
812,661
// ////////////////////////////////////////////////////////////<NEW_LINE>// MASK<NEW_LINE>// @Override<NEW_LINE>// public void mask(int alpha[]) {<NEW_LINE>// PImage temp = get();<NEW_LINE>// temp.mask(alpha);<NEW_LINE>// set(0, 0, temp);<NEW_LINE>// }<NEW_LINE>@Override<NEW_LINE>public void mask(PImage alpha) {<NEW_LI...
maskShader.set("mask", alpha);
834,396
public static void addPath(String path) throws MalformedURLException {<NEW_LINE>File file = new File(path);<NEW_LINE>// Ensure that directory URLs end in "/"<NEW_LINE>if (file.isDirectory() && !path.endsWith("/")) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>// $NON-NLS-1$<NEW_LINE>file = new File(path + "/");<NEW_LINE>}<NEW_LIN...
JAVA_CLASS_PATH, sb.toString());
1,784,307
public Void visitTry(TryTree javacTree, Node javaParserNode) {<NEW_LINE>TryStmt node = castNode(TryStmt.class, javaParserNode, javacTree);<NEW_LINE>processTry(javacTree, node);<NEW_LINE>Iterator<? extends Tree> javacResources = javacTree.getResources().iterator();<NEW_LINE>for (Expression resource : node.getResources()...
this, node.getTryBlock());
910,559
public InternalAggregation reduce(InternalAggregation aggregation, InternalAggregation.ReduceContext reduceContext) {<NEW_LINE>InternalMultiBucketAggregation<? extends InternalMultiBucketAggregation, ? extends InternalMultiBucketAggregation.InternalBucket> histo = (InternalMultiBucketAggregation<? extends InternalMulti...
? extends InternalMultiBucketAggregation.InternalBucket>) aggregation;
477,830
protected AbstractBeanDefinition parseConsumer(Element element, ParserContext parserContext) {<NEW_LINE>BeanDefinitionBuilder builder = BeanDefinitionBuilder.genericBeanDefinition(MailSendingMessageHandler.class);<NEW_LINE>String mailSenderRef = element.getAttribute("mail-sender");<NEW_LINE>String host = element.getAtt...
mailSenderBuilder.addPropertyValue("port", port);
1,112,381
private Mono<Response<UploadCertificateResponseInner>> uploadCertificateWithResponseAsync(String deviceName, String resourceGroupName, UploadCertificateRequest parameters, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client....
error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
1,630,343
public boolean visit(SQLSubqueryTableSource x) {<NEW_LINE>sqlNode = convertToSqlNode(x.getSelect());<NEW_LINE>final String alias = x.getAlias();<NEW_LINE>if (alias != null) {<NEW_LINE>SqlIdentifier aliasIdentifier = new SqlIdentifier(alias, SqlParserPos.ZERO);<NEW_LINE>List<SQLName> columns = x.getColumns();<NEW_LINE>S...
columns.size() + 2];
454,834
private int distance(TagSet base, TagSet set, TagSetEncoder encoder) {<NEW_LINE>int cost = 0;<NEW_LINE>int nb = 0;<NEW_LINE>int ns = 0;<NEW_LINE>while (nb < base.tags.length && ns < set.tags.length) {<NEW_LINE>int c = base.tags[nb].compareTo(set.tags[ns]);<NEW_LINE>if (c == 0) {<NEW_LINE>++nb;<NEW_LINE>++ns;<NEW_LINE>}...
.tags[nb].tag);
940,602
private void createDefaultConversionTypes() {<NEW_LINE>Adempiere.assertUnitTestMode();<NEW_LINE>final Properties ctx = Env.getCtx();<NEW_LINE>for (final ConversionTypeMethod type : ConversionTypeMethod.values()) {<NEW_LINE>final I_C_ConversionType conversionType = InterfaceWrapperHelper.create(ctx, I_C_ConversionType.c...
setValue(type.getCode());
68,740
public void keyPressed(java.awt.event.KeyEvent e) {<NEW_LINE>if (changingPage)<NEW_LINE>return;<NEW_LINE>int deltaPage = 0;<NEW_LINE>int keyCode = e.getKeyCode();<NEW_LINE>if (keyCode == java.awt.event.KeyEvent.VK_PAGE_DOWN) {<NEW_LINE>deltaPage = documentView.getPreviousPageIncrement();<NEW_LINE>} else if (keyCode == ...
- controller.getCurrentPageNumber() - 1;
1,718,256
public ProcessStatus restWriteSetting(final PwmRequest pwmRequest) throws PwmUnrecoverableException, IOException {<NEW_LINE>final String profileID = "default";<NEW_LINE>final String settingKey = pwmRequest.readParameterAsString("key");<NEW_LINE>final String bodyString = pwmRequest.readRequestBodyAsString();<NEW_LINE>fi...
getCategory().toString());
1,564,193
public double updateJacobiWeight(final double[] gradients, final double[] lastGradient, final int index) {<NEW_LINE>// multiply the current and previous gradient, and take the<NEW_LINE>// sign. We want to see if the gradient has changed its sign.<NEW_LINE>final int change = EncogMath.sign(gradients[index] * lastGradien...
updateValues[index] * RPROPConst.POSITIVE_ETA;
51,447
private void garbageCollectionMetrics(MetricRegistry registry) {<NEW_LINE>List<GarbageCollectorMXBean> gcs = ManagementFactory.getGarbageCollectorMXBeans();<NEW_LINE>if (gcs.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Metadata countMetadata = Metadata.builder().withName("gc.total").withType(MetricType.COUNTER).wi...
withDescription("Displays the total number of collections that have occurred. This attribute lists -1 if the collection count is undefined for this collector.").build();
393,296
private static void mergeResults(Map<String, Response> remoteResponses, List<ResolvedIndex> indices, List<ResolvedAlias> aliases, List<ResolvedDataStream> dataStreams) {<NEW_LINE>for (Map.Entry<String, Response> responseEntry : remoteResponses.entrySet()) {<NEW_LINE>String clusterAlias = responseEntry.getKey();<NEW_LIN...
dataStream.getName())));
1,018,771
public OffsetStorageInfo loadOffset(String group, String topic, int partitionId) {<NEW_LINE>String zkNode = new StringBuilder(512).append(this.consumerZkDir).append("/").append(group).append("/offsets/").append(topic).append("/").append(brokerId).append(TokenConstants.HYPHEN).append(partitionId).toString();<NEW_LINE>St...
readDataMaybeNull(this.zkw, zkNode);
1,694,350
private void resend() {<NEW_LINE>log.info("Resend message, info: {}", this.toString());<NEW_LINE>// Gradually increase the resend interval.<NEW_LINE>try {<NEW_LINE>Thread.sleep(Math.min(this.resendCount++ * 100, 60 * 1000));<NEW_LINE>} catch (InterruptedException e) {<NEW_LINE>e.printStackTrace();<NEW_LINE>}<NEW_LINE>t...
"Resend message success, info: {}", this.toString());
1,287,940
public EnableSharingWithAwsOrganizationResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>EnableSharingWithAwsOrganizationResult enableSharingWithAwsOrganizationResult = new EnableSharingWithAwsOrganizationResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String curr...
JsonToken token = context.getCurrentToken();
158,055
public void executeOrFail(DependencyCarrier dependencies, PlannerContext plannerContext, RowConsumer consumer, Row parameters, SubQueryResults subQueryResults) {<NEW_LINE>if (analysis.tables().isEmpty()) {<NEW_LINE>consumer.accept(InMemoryBatchIterator.empty(SENTINEL), null);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Functi...
var tableSymbol = table.getKey();
121,784
private static void putPositiveLongAscii(final byte[] dest, final int offset, final long value, final int digitCount) {<NEW_LINE>long quotient = value;<NEW_LINE>int i = digitCount;<NEW_LINE>while (quotient >= 100_000_000) {<NEW_LINE>final int lastEightDigits = (int) (quotient % 100_000_000);<NEW_LINE>quotient /= 100_00...
+ 2] = ASCII_DIGITS[u2];
1,447,043
public void bind(@NonNull DcMsg messageResult, @NonNull GlideRequests glideRequests, @NonNull Locale locale, @Nullable String highlightSubstring) {<NEW_LINE>DcContext dcContext = DcHelper.getContext(getContext());<NEW_LINE>DcContact sender = dcContext.getContact(messageResult.getFromId());<NEW_LINE>this.selectedThreads...
long timestamp = messageResult.getTimestamp();
1,554,962
static Object toJsonCompatibleSnapshot(BucketState state, Version backwardCompatibilityVersion) throws IOException {<NEW_LINE>switch(state.getMathType()) {<NEW_LINE>case INTEGER_64_BITS:<NEW_LINE>{<NEW_LINE>Map<String, Object> result = BucketState64BitsInteger.SERIALIZATION_HANDLE.toJsonCompatibleSnapshot((BucketState6...
BucketStateIEEE754.SERIALIZATION_HANDLE.getTypeName());
1,196,798
public void startPollLoop(ShutdownContext context, LaunchMode launchMode) {<NEW_LINE>AbstractLambdaPollLoop loop = new AbstractLambdaPollLoop(AmazonLambdaMapperRecorder.objectMapper, AmazonLambdaMapperRecorder.cognitoIdReader, AmazonLambdaMapperRecorder.clientCtxReader, launchMode) {<NEW_LINE><NEW_LINE>@Override<NEW_LI...
handleRequest(input, output, context);
791,051
public void write(Configuration config) throws IOException {<NEW_LINE>pp.startDocument();<NEW_LINE>pp.startElement("duke", null);<NEW_LINE>// FIXME: here we should write the objects, but that's not<NEW_LINE>// possible with the current API. we don't need that for the<NEW_LINE>// genetic algorithm at the moment, but it ...
pp.startElement("group", null);
784,743
public static DescribeDomainRealTimeHttpCodeDataResponse unmarshall(DescribeDomainRealTimeHttpCodeDataResponse describeDomainRealTimeHttpCodeDataResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDomainRealTimeHttpCodeDataResponse.setRequestId(_ctx.stringValue("DescribeDomainRealTimeHttpCodeDataResponse.RequestId")...
(_ctx.stringValue("DescribeDomainRealTimeHttpCodeDataResponse.StartTime"));
40,453
protected static <T> T newInstance(String className, String type) throws JetException {<NEW_LINE>try {<NEW_LINE>Class<?> clazz = Thread.currentThread().getContextClassLoader().loadClass(className);<NEW_LINE>return (T) clazz<MASK><NEW_LINE>} catch (ClassNotFoundException e) {<NEW_LINE>throw new JetException(String.forma...
.getConstructor().newInstance();
1,843,604
private void refreshUI() {<NEW_LINE><MASK><NEW_LINE>if (index < 0) {<NEW_LINE>// no category selected<NEW_LINE>cbForeground.setEnabled(false);<NEW_LINE>cbBackground.setEnabled(false);<NEW_LINE>cbEffectColor.setEnabled(false);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>cbForeground.setEnabled(true);<NEW_LINE>cbBackground.setE...
int index = lCategories.getSelectedIndex();
781,791
final UpdateServiceResult executeUpdateService(UpdateServiceRequest updateServiceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateServiceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
405,509
public void unsafeElementTypeConversion(Expression expression, TypeBinding expressionType, TypeBinding expectedType) {<NEW_LINE>// https://bugs.eclipse.org/bugs/show_bug.cgi?id=305259<NEW_LINE>if (this.options.sourceLevel < ClassFileConstants.JDK1_5)<NEW_LINE>return;<NEW_LINE>int severity = computeSeverity(IProblem.Uns...
expression.sourceStart, expression.sourceEnd);
1,550,539
public void marshall(SkillDetails skillDetails, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (skillDetails == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(skillDetails.getProductDescription(), PRODUCTDES...
skillDetails.getGenericKeywords(), GENERICKEYWORDS_BINDING);
608,494
static <T1, T2, T3, T4, T5, T6, T7, R> Seq<R> zipAll(Stream<? extends T1> s1, Stream<? extends T2> s2, Stream<? extends T3> s3, Stream<? extends T4> s4, Stream<? extends T5> s5, Stream<? extends T6> s6, Stream<? extends T7> s7, T1 default1, T2 default2, T3 default3, T4 default4, T5 default5, T6 default6, T7 default7, F...
default5, default6, default7, zipper);
1,179,763
private static boolean isEnable(FileObject fileObject, TypeElement typeElement) {<NEW_LINE>Project project = FileOwnerQuery.getOwner(fileObject);<NEW_LINE>if (project == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (ElementKind.INTERFACE == typeElement.getKind())<NEW_LINE>return false;<NEW_LINE>DataObject dObj...
entityMgrRes = cp.findResource("javax/persistence/EntityManager.class");
948,144
public boolean visit(String typeName, JFREvent event) {<NEW_LINE>if (JFRSnapshotGcViewProvider.EVENT_HEAP_CONFIGURATION.equals(typeName)) {<NEW_LINE>// NOI18N<NEW_LINE>try {<NEW_LINE>final StringBuilder s = new StringBuilder();<NEW_LINE>s.append("<table border='0' cellpadding='0' cellspacing='0' width='100%'>");<NEW_LI...
})).append("</td></tr>");
368,694
public AccountEnrollmentStatus unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AccountEnrollmentStatus accountEnrollmentStatus = new AccountEnrollmentStatus();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LI...
"unixTimestamp").unmarshall(context));
226,735
public void compileRoutes() {<NEW_LINE>if (routes != null) {<NEW_LINE>throw new IllegalStateException("Routes already compiled");<NEW_LINE>}<NEW_LINE>List<Route> routesLocal = new ArrayList<>();<NEW_LINE>allRouteBuilders.forEach(routeBuilder -> {<NEW_LINE>routesLocal.add<MASK><NEW_LINE>});<NEW_LINE>this.routes = Immuta...
(routeBuilder.buildRoute(injector));
205,556
protected Properties readConfiguration() {<NEW_LINE>Properties props = new Properties();<NEW_LINE>// Context parameters<NEW_LINE>ServletContext context = getServletContext();<NEW_LINE>Enumeration<?> e = context.getInitParameterNames();<NEW_LINE>while (e.hasMoreElements()) {<NEW_LINE>String name = (String) e.nextElement...
pythonHomeString = props.getProperty(PYTHON_HOME_PARAM);
34,175
public static DescribeBackupsResponse unmarshall(DescribeBackupsResponse describeBackupsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeBackupsResponse.setRequestId(_ctx.stringValue("DescribeBackupsResponse.RequestId"));<NEW_LINE>describeBackupsResponse.setTotalRecordCount(_ctx.stringValue("DescribeBackupsRespon...
("DescribeBackupsResponse.Items[" + i + "].BackupType"));
1,112,363
private void processAddRequest(final BookieProtocol.ParsedAddRequest r, final Channel c) {<NEW_LINE>WriteEntryProcessor write = WriteEntryProcessor.create(r, c, this);<NEW_LINE>// If it's a high priority add (usually as part of recovery process), we want to make sure it gets<NEW_LINE>// executed as fast as possible, so...
r.ledgerId, r.entryId);
1,653,458
public java.util.concurrent.Future<ProjectProblemsProvider.Result> resolve() {<NEW_LINE>ProjectProblemsProvider.Result res;<NEW_LINE>if (action != null) {<NEW_LINE>action.actionPerformed(null);<NEW_LINE>String text = (String) action.getValue(ACT_START_MESSAGE);<NEW_LINE>if (text != null) {<NEW_LINE>res = ProjectProblem...
create(ProjectProblemsProvider.Status.RESOLVED);
890,268
public void cancelReceivingMedia(KurentoParticipant senderKurentoParticipant, EndReason reason, boolean silent) {<NEW_LINE>final String senderName = senderKurentoParticipant.getParticipantPublicId();<NEW_LINE>final PublisherEndpoint pub = senderKurentoParticipant.publisher;<NEW_LINE>if (pub != null) {<NEW_LINE>try {<NE...
subscriberEndpoint = subscribers.remove(senderName);
1,335,184
public Entity newLevelBox(SpawnData data) {<NEW_LINE>var ground = new Box(50, 0.5, 150);<NEW_LINE>ground.setMaterial(new PhongMaterial(Color.BROWN));<NEW_LINE>var WALL_HEIGHT = 20;<NEW_LINE>var wallL = new Box(0.5, WALL_HEIGHT, 150);<NEW_LINE>wallL.setMaterial(new PhongMaterial(Color.LIGHTCORAL));<NEW_LINE>wallL.setTra...
.setTranslateY(-WALL_HEIGHT / 2.0);
143,432
protected JPanel createPanel() {<NEW_LINE>JPanel panel = new JPanel();<NEW_LINE>BoxLayout boxLayout = new BoxLayout(panel, BoxLayout.Y_AXIS);<NEW_LINE>panel.setLayout(boxLayout);<NEW_LINE>panel.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));<NEW_LINE>for (String currentRegister : extent.getContextRegisters(...
regValues = extent.getValuesForRegister(currentRegister);
303,751
public CompletableFuture<Map<String, StreamConfiguration>> listStreamsInScope(final String scopeName, final OperationContext ctx, final Executor executor) {<NEW_LINE>OperationContext context = getOperationContext(ctx);<NEW_LINE>InMemoryScope inMemoryScope = scopes.get(scopeName);<NEW_LINE>if (inMemoryScope != null) {<N...
result = new HashMap<>();
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...
connection = getConnection(PoolIdentifier.MISC);
784,601
public void run(Configuration configuration) {<NEW_LINE>SupportExceptionHandlerFactory.getFactoryContexts().clear();<NEW_LINE>SupportExceptionHandlerFactory.getHandlers().clear();<NEW_LINE>configuration.getRuntime().getExceptionHandling().getHandlerFactories().clear();<NEW_LINE>configuration.getRuntime().getExceptionHa...
), ehc.getDeploymentId());
1,696,006
private Map<Address, Long> resolveConstants(Map<Function, Set<Address>> funcsToCalls, Program program, TaskMonitor tMonitor) throws CancelledException {<NEW_LINE>Map<Address, Long> <MASK><NEW_LINE>Register syscallReg = program.getLanguage().getRegister(syscallRegister);<NEW_LINE>for (Function func : funcsToCalls.keySet...
addressesToSyscalls = new HashMap<>();
943,767
public void permissionIndividuallyByRole(Permissionable parent, Permissionable permissionable, User user, Role role) throws DotDataException, DotSecurityException {<NEW_LINE>List<Permission> newSetOfPermissions = getNewPermissions(parent, permissionable, user);<NEW_LINE>ImmutableList.Builder<Permission> <MASK><NEW_LINE...
immutablePermissionsFiltered = new Builder<>();
1,053,037
private AddEntryResult addEntry(final int recordVersion, final byte[] entryContent, final OAtomicOperation atomicOperation) throws IOException {<NEW_LINE>int recordSizesDiff;<NEW_LINE>int position;<NEW_LINE>int finalVersion = 0;<NEW_LINE>long pageIndex;<NEW_LINE>do {<NEW_LINE>final FindFreePageResult findFreePageResult...
OClusterPage localPage = new OClusterPage(cacheEntry);
268,997
public void onTlsCaCrtNameClick(final View v) {<NEW_LINE>PopupMenu popup = new PopupMenu(v.getContext(), v);<NEW_LINE>popup.getMenuInflater().inflate(R.menu.picker, popup.getMenu());<NEW_LINE>popup.setOnMenuItemClickListener(item -> {<NEW_LINE>if (item.getItemId() == R.id.clear) {<NEW_LINE>setTlsCaCrtName(null);<NEW_LI...
(intent, "Select a file"), REQUEST_CODE_FILE_CA_CRT);
958,954
public void mouseReleased(MouseEvent e) {<NEW_LINE>isDragging = false;<NEW_LINE>// deselect rectangles on other selected pages.<NEW_LINE>ArrayList<AbstractPageViewComponent> selectedPages = documentViewModel.getSelectedPageText();<NEW_LINE>// check if we are over a page<NEW_LINE>AbstractPageViewComponent pageComponent ...
convertMouseEvent(parentComponent, e, pageComponent);
1,254,468
public void endVisit() {<NEW_LINE>if (sequences.size() > 0) {<NEW_LINE>GraphGeneratorVisitor.Sequence mainSequence = sequences.get(0);<NEW_LINE>// iterate until nothing left to do<NEW_LINE>int tooMany = 0;<NEW_LINE>while (!mainSequence.outstandingTransitions.isEmpty() && tooMany < 50) {<NEW_LINE>List<Context.Transition...
mainSequence.outstandingTransitions.removeAll(nextTransitions);
74,869
void write(MethodWriter writer, Globals globals) {<NEW_LINE>writer.writeStatementOffset(location);<NEW_LINE>expression.write(writer, globals);<NEW_LINE>if (method == null) {<NEW_LINE>org.objectweb.asm.Type methodType = org.objectweb.asm.Type.getMethodType(org.objectweb.asm.Type.getType(Iterator.class), org.objectweb.as...
block.write(writer, globals);
1,212,842
private // to avoid dealing with escaped space characters, etc.<NEW_LINE>String recoverPropertyName(String text) {<NEW_LINE>try {<NEW_LINE>new TaskDefinition("__dummy", text + " --");<NEW_LINE>} catch (CheckPointedParseException exception) {<NEW_LINE>List<Token> tokens = exception.getTokens();<NEW_LINE>// -2 for skippi...
.size() - 1 - 2;
683,099
public okhttp3.Call throttlingDenyPolicyConditionIdDeleteCall(String conditionId, String ifMatch, String ifUnmodifiedSince, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/throttling/deny-policy/{condi...
localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
1,234,577
synchronized void insert(List<String> path, DrawableGroup g, boolean tree) {<NEW_LINE>if (tree) {<NEW_LINE>// Are we at the end of the recursion?<NEW_LINE>if (path.isEmpty()) {<NEW_LINE>getValue().setGroup(g);<NEW_LINE>} else {<NEW_LINE>String prefix = path.get(0);<NEW_LINE>GroupTreeItem prefixTreeItem = childMap.compu...
getChildren().add(newTreeItem);
1,604,988
public static String makeNamespaceFromClassName(String className, String protocol) {<NEW_LINE>int index = className.lastIndexOf(".");<NEW_LINE>if (index == -1) {<NEW_LINE>return protocol + "://" + "DefaultNamespace";<NEW_LINE>}<NEW_LINE>String packageName = className.substring(0, index);<NEW_LINE>StringTokenizer st = n...
i] = st.nextToken();
1,127,030
public Object calculate(Context ctx) {<NEW_LINE>if (param == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("ifx_client" + mm.getMessage("function.missingParam"));<NEW_LINE>}<NEW_LINE>int nSize = param.getSubSize();<NEW_LINE>if (nSize < 2) {<NEW_LINE>MessageManager mm = EngineM...
] vals = new String[3];
1,655,796
public static void verticalInverse(BorderIndex1D border, WlBorderCoef<WlCoef_F32> inverseCoef, GrayF32 input, GrayF32 output) {<NEW_LINE>UtilWavelet.checkShape(output, input);<NEW_LINE>float[] trends = new float[output.height];<NEW_LINE>float[] details = new float[output.height];<NEW_LINE>boolean isLarger = input.heigh...
] += a * alpha[i];
699,311
public static svm_model svm_load_model(BufferedReader fp) throws IOException {<NEW_LINE>// read parameters<NEW_LINE>svm_model model = new svm_model();<NEW_LINE>model.rho = null;<NEW_LINE>model.probA = null;<NEW_LINE>model.probB = null;<NEW_LINE>model.label = null;<NEW_LINE>model.nSV = null;<NEW_LINE>// read header<NEW_...
= st.countTokens() / 2;
853,322
private static ScalarValue[] parseTRBLValue(String val) {<NEW_LINE>ScalarValue[] out = new ScalarValue[4];<NEW_LINE>String[] parts = <MASK><NEW_LINE>int len = parts.length;<NEW_LINE>switch(len) {<NEW_LINE>case 1:<NEW_LINE>ScalarValue v = parseSingleTRBLValue(parts[0]);<NEW_LINE>for (int i = 0; i < 4; i++) {<NEW_LINE>ou...
Util.split(val, " ");
37,908
private void removeCiphers(TlsContext ctx, ClientHelloMessage ch) {<NEW_LINE>String msgName = ch.toCompactString();<NEW_LINE>if (ch.getCipherSuites() == null) {<NEW_LINE>LOGGER.debug("No cipher suites found in " + msgName + ". Nothing to do.");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (LOGGER.isDebugEnabled()) {<NEW_LIN...
ciphers = CipherSuite.getCipherSuites(ciphersBytes);