idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
160,447
private void showFiltersDialog() {<NEW_LINE>executor.submit(() -> {<NEW_LINE>final List<LogFilter> filters = AppManager.getDb().logFilterDao().getAll();<NEW_LINE>Collections.sort(filters);<NEW_LINE>mHandler.post(() -> {<NEW_LINE>final LogFilterAdapter logFilterAdapter = new LogFilterAdapter(LogViewerActivity.this, filt...
ok, null).show();
1,726,586
void updateCandidateRecordFromCandidate(@NonNull final I_MD_Candidate candidateRecord, @NonNull final Candidate candidate, final boolean preserveExistingSeqNo) {<NEW_LINE>final MaterialDescriptor materialDescriptor = candidate.getMaterialDescriptor();<NEW_LINE>candidateRecord.setAD_Org_ID(candidate.getOrgId().getRepoId...
(materialDescriptor.getDate()));
708,352
void writeBatch(ChannelHandlerContext ctx, ChannelPromise promise) {<NEW_LINE>try {<NEW_LINE>FullHttpRequest request = buildRequest(ctx, currentMessage);<NEW_LINE>int eventListSize = currentMessage<MASK><NEW_LINE>batchSize.set((double) eventListSize);<NEW_LINE>final long start = clock.millis();<NEW_LINE>ctx.writeAndFlu...
.getEventList().size();
1,443,299
private MouseListener createMouseListener() {<NEW_LINE>return new MouseAdapter() {<NEW_LINE><NEW_LINE>public void mouseClicked(MouseEvent event) {<NEW_LINE>if (SwingUtilities.isRightMouseButton(event)) {<NEW_LINE>JComponent comp = (JComponent) event.getSource();<NEW_LINE>Item item = null;<NEW_LINE>if (comp instanceof J...
Point p = event.getPoint();
213,178
private void configureQueryMap(Map<String, ?> configs) {<NEW_LINE>String prometheusQuerySupplierClassName = (<MASK><NEW_LINE>Class<?> prometheusQuerySupplierClass = DEFAULT_PROMETHEUS_QUERY_SUPPLIER;<NEW_LINE>if (prometheusQuerySupplierClassName != null) {<NEW_LINE>prometheusQuerySupplierClass = (Class<?>) ConfigDef.pa...
String) configs.get(PROMETHEUS_QUERY_SUPPLIER_CONFIG);
438,662
public Observable<ServiceResponseWithHeaders<Page<ImageInformation>, AccountListSupportedImagesHeaders>> listSupportedImagesNextSinglePageAsync(final String nextPageLink, final AccountListSupportedImagesNextOptions accountListSupportedImagesNextOptions) {<NEW_LINE>if (nextPageLink == null) {<NEW_LINE>throw new IllegalA...
AccountListSupportedImagesHeaders> result = listSupportedImagesNextDelegate(response);
359,411
public static void main(String... args) {<NEW_LINE>ArgParser parser = new ArgParser(args);<NEW_LINE>LibUtilities.getInstance().bind();<NEW_LINE>if (parser.intercept()) {<NEW_LINE>System.exit(parser.getExitCode());<NEW_LINE>}<NEW_LINE>SingleInstanceChecker.stealWebsocket = parser.hasFlag(ArgValue.STEAL);<NEW_LINE>setupF...
Constants.JAVA_VERSION.toString());
1,663,805
public void updateTunnelConnections() {<NEW_LINE>super.updateTunnelConnections();<NEW_LINE>boolean connectivityChanged = false;<NEW_LINE>boolean nowConnectedLeft = determineIfConnected(true);<NEW_LINE>boolean nowConnectedRight = determineIfConnected(false);<NEW_LINE>if (connectedLeft != nowConnectedLeft) {<NEW_LINE>con...
setValue(selectionMode.getValue());
625,924
public void listEnrichedSeriesWithContext() {<NEW_LINE>// BEGIN: com.azure.ai.metricsadvisor.MetricsAdvisorClient.listMetricEnrichedSeriesData#String-List-OffsetDateTime-OffsetDateTime-Context<NEW_LINE>final String detectionConfigurationId = "e87d899d-a5a0-4259-b752-11aea34d5e34";<NEW_LINE>final DimensionKey seriesKey ...
println(enrichedData.getPeriods());
46,944
public void generateCode(CodeGenContext context) throws Exception {<NEW_LINE>JavaCodeGenContext ctx = (JavaCodeGenContext) context;<NEW_LINE>try {<NEW_LINE>LoggerManager.getInstance().info(String.format("Begin to generate java table code for project %s", ctx.getProjectId()));<NEW_LINE>new JavaCodeGeneratorOfTableProces...
, ctx.getProjectId()));
194,815
private void logImpl(final Event event, final long duration, final Object... messageArgs) {<NEW_LINE>if (isEnabled(event.level())) {<NEW_LINE>final String[] messageArgsStr = new String[messageArgs.length];<NEW_LINE>for (int i = 0; i < messageArgs.length; i++) {<NEW_LINE>messageArgsStr[i] = formatInstance(messageArgs[i]...
.util.logging.Level.FINEST;
505,998
void saveRotationState() {<NEW_LINE>// Disable rotation from the accelerometer; 0 means off, 1 means on<NEW_LINE>try {<NEW_LINE>originalAccelerometer = settings.system().getInt(Settings.System.ACCELEROMETER_ROTATION);<NEW_LINE>} catch (Settings.SettingNotFoundException e) {<NEW_LINE>Log.d(TAG, "Could not read accelerom...
getInt(Settings.System.USER_ROTATION);
210,055
public void onReceive(Context context, Intent intent) {<NEW_LINE>// Save usage statistics right now!<NEW_LINE>// We need to use the statics at this moment<NEW_LINE>// for "skipping foreground apps"<NEW_LINE>// No app is foreground after the screen is locked.<NEW_LINE>mScreenLockTime = new Date().getTime();<NEW_LINE>if ...
new IntentFilter(Intent.ACTION_SCREEN_ON));
369,695
public void run() {<NEW_LINE>JmxModel model = JmxModelFactory.getJmxModelFor(application);<NEW_LINE>if (model == null || !model.isJfrAvailable()) {<NEW_LINE>DialogDisplayer.getDefault().notifyLater(new // NOI18N<NEW_LINE>NotifyDescriptor.Message(// NOI18N<NEW_LINE>NbBundle.getMessage(JFRRecordingProvider.class, "MSG_Du...
file), NotifyDescriptor.INFORMATION_MESSAGE));
1,625,937
public List<Integer> decode(byte[] address) {<NEW_LINE>int[] output = new int[encodingBits.size()];<NEW_LINE>int bitIndex = positiveIntegersOnly ? totalBitLength - 1 : totalBitLength - encodingBits.size() - 1;<NEW_LINE>int bitsProcessed = 0;<NEW_LINE>// Un-weave address into original integers<NEW_LINE>while (bitIndex >...
bitIndex & 7)) & 1);
715,522
public org.python.Object __add__(org.python.Object other) {<NEW_LINE>if (other instanceof org.python.types.Bool) {<NEW_LINE>return org.python.types.Int.getInt((this.value ? 1 : 0) + (((org.python.types.Bool) other).value ? 1 : 0));<NEW_LINE>} else if (other instanceof org.python.types.Int) {<NEW_LINE>return org.python....
.Float) other).value);
1,147,608
final DescribeGroupResult executeDescribeGroup(DescribeGroupRequest describeGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeGroup");
153,494
private void initVertCompSide(ComponentSide side, GridBagConstraints cons, Dimension minSize, Dimension prefSize, ParentInfo info) {<NEW_LINE>MixedConstraints mixCons = info.consTable.get(cons);<NEW_LINE>side.gridStart = mixCons.mapped.getY();<NEW_LINE>side.gridLength = mixCons.mapped.getSize().getHeight();<NEW_LINE>si...
.start_inset = cons.insets.top;
319,974
public void actionPerformed(final ActionEvent event) {<NEW_LINE>final Controller controller = Controller.getCurrentController();<NEW_LINE>final ModeController modeController = controller.getModeController();<NEW_LINE>final MFileManager fileManager = MFileManager.getController(modeController);<NEW_LINE>final <MASK><NEW_...
JFileChooser fileChooser = fileManager.getMindMapFileChooser();
358,550
// The ECMQV Primitive as described in SEC-1, 3.4<NEW_LINE>private ECPoint calculateMqvAgreement(ECDomainParameters parameters, ECPrivateKeyParameters d1U, ECPrivateKeyParameters d2U, ECPublicKeyParameters Q2U, ECPublicKeyParameters Q1V, ECPublicKeyParameters Q2V) {<NEW_LINE>BigInteger n = parameters.getN();<NEW_LINE>i...
ECCurve curve = parameters.getCurve();
772,788
protected void actionPerformed(OWLEntity selectedEntity) {<NEW_LINE>OWLEntityRenamer owlEntityRenamer = new OWLEntityRenamer(getOWLModelManager().getOWLOntologyManager(), getOWLModelManager().getOntologies());<NEW_LINE>final IRI iri = RenameEntityPanel.showDialog(getOWLEditorKit(), selectedEntity);<NEW_LINE>if (iri == ...
owlEntityRenamer.changeIRI(selectedEntity, iri);
1,281,698
public Cursor doHandle(final LogicalDal logicalPlan, ExecutionContext executionContext) {<NEW_LINE>SqlShowDdlResults showDdlResults = (SqlShowDdlResults) logicalPlan.getNativeSqlNode();<NEW_LINE>String schemaName = executionContext.getSchemaName();<NEW_LINE>List<Long> jobIds = showDdlResults.getJobIds();<NEW_LINE>// Tr...
rowList = new ArrayList<>();
16,732
public void marshall(UpdateLocationHdfsRequest updateLocationHdfsRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (updateLocationHdfsRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(updateLoc...
updateLocationHdfsRequest.getAgentArns(), AGENTARNS_BINDING);
230,004
private void init(EditorPatternButton imgBtn, JLabel msgApplied) {<NEW_LINE>_imgBtn = imgBtn;<NEW_LINE>JLabel lblPath = new JLabel(_I("lblPath"));<NEW_LINE>JLabel lblFilename = new JLabel(_I("lblFilename"));<NEW_LINE>String filename = _imgBtn.getFilename();<NEW_LINE>File f = new File(filename);<NEW_LINE>String fullpath...
(getFileExt(f), TXT_FILE_EXT_LENGTH);
281,858
public String handlevolchangeeasy(String sval) {<NEW_LINE>String res = "#notpaired";<NEW_LINE>int val;<NEW_LINE>int pos = sval.indexOf(".");<NEW_LINE>if (pos > 0) {<NEW_LINE>String ns = sval.substring(0, pos);<NEW_LINE>val = Integer.parseInt(ns);<NEW_LINE>} else {<NEW_LINE>val = Integer.parseInt(sval);<NEW_LINE>}<NEW_L...
sendtohandlers(event, lgip, volume);
1,541,938
public <T extends JpaObject> List<T> fetchEqualAndEqual(Class<T> clz, List<String> fetchAttributes, String attribute, Object value, String otherAttribute, Object otherValue) throws Exception {<NEW_LINE>List<T> list = new ArrayList<>();<NEW_LINE>List<String> fields = ListTools.trim(fetchAttributes, true, true, JpaObject...
selections = new ArrayList<>();
1,082,915
private int computeMinimumDesignSize(LayoutInterval interval) {<NEW_LINE>int size = 0;<NEW_LINE>if (interval.isSingle()) {<NEW_LINE>int min = interval.getMinimumSize();<NEW_LINE>size = min == USE_PREFERRED_SIZE ? interval.getPreferredSize() : min;<NEW_LINE>if (size == NOT_EXPLICITLY_DEFINED) {<NEW_LINE>if (interval.isC...
(interval.getSubInterval(i));
1,204,905
static <T extends SAMLObject> MessageContext<T> toSamlObject(AggregatedHttpRequest req, String name, Map<String, SamlIdentityProviderConfig> idpConfigs, @Nullable SamlIdentityProviderConfig defaultIdpConfig) {<NEW_LINE>requireNonNull(req, "req");<NEW_LINE>requireNonNull(name, "name");<NEW_LINE>requireNonNull(idpConfigs...
relayState = parameters.getFirstValueOrNull(RELAY_STATE);
405,188
boolean hasInstanceInChain(int tag, Instance i) {<NEW_LINE>ClassDump javaClass;<NEW_LINE>long idom;<NEW_LINE>long instanceId;<NEW_LINE>if (tag == HprofHeap.PRIMITIVE_ARRAY_DUMP) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>javaClass = (ClassDump) i.getJavaClass();<NEW_LINE>if (canContainItself == null) {<NEW_LINE>canCo...
canContainItself.put(javaClass, canContain);
287,452
public void saveConfiguration() {<NEW_LINE>IProgressMonitor monitor = new NullProgressMonitor();<NEW_LINE>Path configFile = getConfigFile(true);<NEW_LINE>try {<NEW_LINE>if (Files.exists(configFile)) {<NEW_LINE>ContentUtils.makeFileBackup(configFile);<NEW_LINE>}<NEW_LINE>if (tasks.isEmpty()) {<NEW_LINE>try {<NEW_LINE>Fi...
configFile.toAbsolutePath(), e);
1,566,537
private UpdateShipmentScheduleRequest toUpdateShipmentScheduleRequestOrNull(@NonNull final JsonCreateShipmentInfo createShipmentInfo, @NonNull final ShippingInfoCache cache) {<NEW_LINE>final LocalDateTime deliveryDate = createShipmentInfo.getMovementDate();<NEW_LINE>final LocationBasicInfo bPartnerLocation = LocationBa...
getShipperId(createShipmentInfo.getShipperInternalName());
688,065
private static void waitForTopicsToBeCreated(Admin adminClient, Collection<String> topicsToAwait, Duration timeout) throws InterruptedException {<NEW_LINE>Set<String> lastMissingTopics = null;<NEW_LINE>while (!shutdown) {<NEW_LINE>try {<NEW_LINE>ListTopicsResult topics = adminClient.listTopics();<NEW_LINE>Set<String> e...
LOGGER.debug("Waiting for topic(s) to be created: " + missingTopics);
897,049
public okhttp3.Call readCSINodeCall(String name, String pretty, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/apis/storage.k8s.io/v1/csinodes/{name}".replaceAll("\\{" + "name" + "\\}", localVarApiCli...
= { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" };
1,077,775
private List<ValidationEvent> validateStructureRef(Model model, ReferencesTrait.Reference reference, StructureShape shape, ReferencesTrait trait, ResourceShape target) {<NEW_LINE>List<ValidationEvent> events = new ArrayList<>();<NEW_LINE>Map<String, String> resolvedIds = resolveIds(reference, target);<NEW_LINE>boolean ...
errors = new HashMap<>();
247,170
final UpdateInfrastructureConfigurationResult executeUpdateInfrastructureConfiguration(UpdateInfrastructureConfigurationRequest updateInfrastructureConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateInfrastructureConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequest...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
964,180
private static String determineFileExt(DiskManagerFileInfo fileInfo) {<NEW_LINE>if (fileInfo instanceof FilesView.FilesViewTreeNode) {<NEW_LINE>if (!((FilesView.FilesViewTreeNode) fileInfo).isLeaf()) {<NEW_LINE>return ("");<NEW_LINE>}<NEW_LINE>}<NEW_LINE>String name = (fileInfo == null) ? "" : fileInfo.getFile(true).ge...
).getAttribute(DownloadManagerState.AT_INCOMP_FILE_SUFFIX);
710,260
private void detectDeadlock() {<NEW_LINE>if (threadMXBean == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>long[] tids = threadMXBean.findDeadlockedThreads();<NEW_LINE>if (tids == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Report deadlock just once<NEW_LINE>stop();<NEW_LINE>if (LOG.isLoggable(Level.FINE)) {<NEW_LIN...
threadMXBean.dumpAllThreads(true, true);
1,765,241
private List<FailureAnalyzer> handleAwareAnalyzers(List<FailureAnalyzer> analyzers, ConfigurableApplicationContext context) {<NEW_LINE>List<FailureAnalyzer> awareAnalyzers = analyzers.stream().filter((analyzer) -> analyzer instanceof BeanFactoryAware || analyzer instanceof EnvironmentAware).collect(Collectors.toList())...
+ "and will be removed in a future release." + "Instead provide a constructor that accepts BeanFactory or Environment parameters.", awareAnalyzerNames));
1,533,526
protected void consumePackageDeclarationNameWithModifiers() {<NEW_LINE>// PackageDeclarationName ::= Modifiers 'package' PushRealModifiers Name RejectTypeAnnotations<NEW_LINE>ImportReference impt;<NEW_LINE>int length;<NEW_LINE>char[][] tokens = new char[length = this.identifierLengthStack[this.identifierLengthPtr--]][]...
.intStack[this.intPtr--];
1,588,722
public Object read(String typeID, Properties properties) {<NEW_LINE>JspLineBreakpoint b = null;<NEW_LINE>if (typeID.equals(JspLineBreakpoint.class.getName())) {<NEW_LINE>String url = properties.getString(JspLineBreakpoint.PROP_URL, null);<NEW_LINE>// #110349 - ignore loading of breakpoints which do not have URL<NEW_LIN...
(JspLineBreakpoint.PROP_PRINT_TEXT, ""));
453,317
public PhysicalOperation visitSort(SortNode node, LocalExecutionPlanContext context) {<NEW_LINE>PhysicalOperation source = node.getSource().accept(this, context);<NEW_LINE>List<VariableReferenceExpression> orderByVariables = node<MASK><NEW_LINE>List<Integer> orderByChannels = getChannelsForVariables(orderByVariables, s...
.getOrderingScheme().getOrderByVariables();
1,558,341
private void initNamesView(final View view) {<NEW_LINE>mNamesCaption = (TextView) view.findViewById(R.id.show_additional_names);<NEW_LINE>mNamesCaption.setOnClickListener(this);<NEW_LINE>mAddLanguage = (TextView) view.findViewById(R.id.add_langs);<NEW_LINE>mAddLanguage.setOnClickListener(this);<NEW_LINE>mMoreLanguages ...
int cvNameTop = mCardName.getTop();
705,959
public void run() {<NEW_LINE>final Set<File> result = new HashSet<File>();<NEW_LINE>// Search in the source groups of the projects.<NEW_LINE>for (SourceGroup group : ProjectUtils.getSources(project).getSourceGroups(JavaProjectConstants.SOURCES_TYPE_JAVA)) {<NEW_LINE>for (FileObject fo : NbCollections.iterable(group.get...
>(result.size());
1,635,217
private BaseBottomSheetItem createBottomSheetItem() {<NEW_LINE>View rootView = UiUtilities.getInflater(getContext(), nightMode).inflate(R.layout.bottom_sheet_announcement_time, null);<NEW_LINE>tvSeekBarLabel = rootView.findViewById(R.id.tv_seek_bar_label);<NEW_LINE>slider = rootView.findViewById(R.id.arrival_slider);<N...
setCustomView(rootView).create();
554,515
public boolean copy() {<NEW_LINE>System.out.println(<MASK><NEW_LINE>if (sourcePath.isDirectory()) {<NEW_LINE>computeBuildFiles();<NEW_LINE>copyFileCount = 0;<NEW_LINE>String[] copyFiles = copyFilesBySourceDir.get(sourcePath);<NEW_LINE>for (String copyFile : copyFiles) {<NEW_LINE>File sourceFile = new File(sourcePath, c...
"\nCopying from " + sourcePath.getAbsolutePath());
792,991
private boolean startNewVM(long vmId) {<NEW_LINE>try {<NEW_LINE>CallContext.current(<MASK><NEW_LINE>_userVmManager.startVirtualMachine(vmId, null, null, null);<NEW_LINE>} catch (final ResourceUnavailableException ex) {<NEW_LINE>s_logger.warn("Exception: ", ex);<NEW_LINE>throw new ServerApiException(ApiErrorCode.RESOURC...
).setEventDetails("Vm Id: " + vmId);
1,262,384
protected void ensureJasperDesign(JasperDesignReportResource resource) {<NEW_LINE>JasperDesign jasperDesign = resource.getJasperDesign();<NEW_LINE>JasperReport jasperReport = resource.getReport();<NEW_LINE>if (jasperDesign == null) {<NEW_LINE>if (jasperReport == null) {<NEW_LINE>throw new JRRuntimeException(EXCEPTION_M...
new Object[] { "JasperDesignCache" });
1,121,933
public static File createTempFile(String suffix, String path) {<NEW_LINE>String temp1 = "sikuli-";<NEW_LINE>String temp2 = "." + suffix;<NEW_LINE>File fpath = new File(RunTime.get().fpBaseTempPath);<NEW_LINE>if (path != null) {<NEW_LINE>fpath = new File(path);<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>fpath.mkdirs();<NEW_LINE...
"tempfile create:\n%s", temp.getAbsolutePath());
1,778,538
private boolean initializeDatasourceXml(String dbaddress, String dbport, String dbuser, String dbpassword, String dbcatalog) throws Exception {<NEW_LINE>boolean result = false;<NEW_LINE>try {<NEW_LINE>String connectionUrl = String.format(jdbcUrlTemplate, dbaddress, dbport, dbcatalog);<NEW_LINE>Document document = Docum...
XMLWriter writer = new XMLWriter(fileWriter);
1,809,710
public void exitS_route(S_routeContext ctx) {<NEW_LINE>String nextHopInterface = ctx.iface.getText();<NEW_LINE>Prefix prefix = Prefix.create(toIp(ctx.destination), toIp(ctx.mask));<NEW_LINE>NextHop nextHop;<NEW_LINE>if (nextHopInterface.equalsIgnoreCase("null0")) {<NEW_LINE>if (ctx.gateway != null) {<NEW_LINE>warn(ctx,...
nextHopIp = toIp(ctx.gateway);
1,640,441
public void visit(BLangErrorVariable varNode) {<NEW_LINE>// Create error destruct block stmt.<NEW_LINE>final BLangBlockStmt blockStmt = ASTBuilderUtil.createBlockStmt(varNode.pos);<NEW_LINE>BType errorType = varNode.getBType() == null ? symTable.errorType : varNode.getBType();<NEW_LINE>// Create a simple var for the er...
createVariableDefStmt(varNode.pos, blockStmt);
1,279,237
final ListOrdersResult executeListOrders(ListOrdersRequest listOrdersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listOrdersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<...
addHandlerContext(HandlerContextKey.SERVICE_ID, "Outposts");
1,016,096
static Stream<RetrieveResult> retrieve(Kernel kernel) throws TransactionFailureException {<NEW_LINE>try (KernelTransaction tx = kernel.beginTransaction(KernelTransaction.Type.EXPLICIT, LoginContext.AUTH_DISABLED)) {<NEW_LINE>TokenRead tokens = tx.tokenRead();<NEW_LINE>List<String> labels = new ArrayList<>(tokens.labelC...
data.put("relationshipTypes", relationshipTypes);
1,636,253
public void reduce(final IntWritable key, final Iterator<Text> values, final OutputCollector<IntWritable, Text> output, final Reporter reporter) throws IOException {<NEW_LINE>double[] v1 = null, v2 = null;<NEW_LINE>double[] result = new double[block_width];<NEW_LINE>int input_index = 0;<NEW_LINE>while (values.hasNext()...
.next().toString();
664,882
final GlobalReplicationGroup executeDisassociateGlobalReplicationGroup(DisassociateGlobalReplicationGroupRequest disassociateGlobalReplicationGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(disassociateGlobalReplicationGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = exe...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
764,457
public static String toHexString(UUID uuid) {<NEW_LINE>if (uuid == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>byte[] buf = Types.UUIDtoBytes(uuid);<NEW_LINE>if (buf == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>int len = buf.length;<NEW_LINE>if (len == 0) {<NEW_LINE>return "";<NEW_LINE>}<NEW_LINE>StringBu...
.append(byteToChar(low));
677,061
private List<? super PsiElement> processAnnotation(@NotNull PsiClass psiParentClass, @NotNull PsiAnnotation psiAnnotation, @NotNull PsiClass psiClass, @Nullable String nameHint) {<NEW_LINE>SuperBuilderHandler builderHandler = getBuilderHandler();<NEW_LINE>// use parent class as source!<NEW_LINE>final String builderBase...
builderImplClassName = builderHandler.getBuilderImplClassName(psiParentClass);
29,180
private void expandTypeVar(NotificationAttrNode node, ArgType type, Collection<ArgType> typeVars) {<NEW_LINE>if (typeVars.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>boolean allExtendsEmpty = true;<NEW_LINE>for (ArgType argType : typeVars) {<NEW_LINE>if (notEmpty(argType.getExtendTypes())) {<NEW_LINE>allExtendsEm...
setExtendTypes(typeVar.getExtendTypes());
1,399,427
private MultiMap<String, String> paramMap(ServerWebSocket vertxServerWebSocket) {<NEW_LINE><MASK><NEW_LINE>MultiMap<String, String> paramMap = MultiMap.empty();<NEW_LINE>if (!Str.isEmpty(query)) {<NEW_LINE>final String[] params = StringScanner.split(query, '&');<NEW_LINE>if (params.length > 0) {<NEW_LINE>paramMap = new...
String query = vertxServerWebSocket.query();
971,294
private void docTypeBuildAnnotationType(AnnotationType annotation, DocumentmanagerConfig.Doctype.Builder builder, IdxMap indexMap) {<NEW_LINE>if (indexMap.isDone(annotation)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>indexMap.setDone(annotation);<NEW_LINE>var annBuilder = new DocumentmanagerConfig.Doctype.Annotationtype.B...
internalid(annotation.getId());
1,517,773
final UpdateSecurityGroupRuleDescriptionsIngressResult executeUpdateSecurityGroupRuleDescriptionsIngress(UpdateSecurityGroupRuleDescriptionsIngressRequest updateSecurityGroupRuleDescriptionsIngressRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateSecurityGroupRuleDescriptionsIngressRe...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
585,685
protected void onInitialized() {<NEW_LINE>if (!tradeModel.isCompleted()) {<NEW_LINE>protocolModel.getP2PService().addDecryptedDirectMessageListener(this);<NEW_LINE>}<NEW_LINE>MailboxMessageService mailboxMessageService = protocolModel.getP2PService().getMailboxMessageService();<NEW_LINE>// We delay a bit here as the tr...
handleMailboxCollection(mailboxMessageService.getMyDecryptedMailboxMessages());
1,783,885
public AutoCloseable start() throws IOException, InterruptedException {<NEW_LINE>File bootstrapScript = File.createTempFile("bootstrap_beam_venv", ".py");<NEW_LINE>bootstrapScript.deleteOnExit();<NEW_LINE>try (FileOutputStream fout = new FileOutputStream(bootstrapScript.getAbsolutePath())) {<NEW_LINE>ByteStreams.copy(g...
LOG.info("Starting python service with arguments " + command);
1,060,822
public void onRun() throws Exception {<NEW_LINE>if (!SignalStore.account().isFcmEnabled())<NEW_LINE>return;<NEW_LINE>Log.i(TAG, "Reregistering FCM...");<NEW_LINE>int result = GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(context);<NEW_LINE>if (result != ConnectionResult.SUCCESS) {<NEW_LINE>notifyFcm...
get().length());
607,961
public static DescribeDatabasesResponse unmarshall(DescribeDatabasesResponse describeDatabasesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDatabasesResponse.setRequestId(_ctx.stringValue("DescribeDatabasesResponse.RequestId"));<NEW_LINE>describeDatabasesResponse.setPageNumber(_ctx.integerValue("DescribeDataba...
("DescribeDatabasesResponse.Databases[" + i + "].DBDescription"));
1,569,419
final ListDeviceResourcesResult executeListDeviceResources(ListDeviceResourcesRequest listDeviceResourcesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listDeviceResourcesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
endClientExecution(awsRequestMetrics, request, response);
351,608
public WindowInsetsCompat onApplyWindowInsets(View view, @NonNull WindowInsetsCompat insets, @NonNull RelativePadding initialPadding) {<NEW_LINE>// Apply the top, bottom, and start padding for a start edge aligned<NEW_LINE>// NavigationRailView to dodge the system status and navigation bars<NEW_LINE>if (shouldApplyWind...
int systemWindowInsetLeft = insets.getSystemWindowInsetLeft();
1,211,451
public <T> Provider<T> scope(final Key<T> key, final Provider<T> creator) {<NEW_LINE>final <MASK><NEW_LINE>return new Provider<T>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public T get() {<NEW_LINE>HttpSession session = GuiceFilter.getRequest(key).getSession();<NEW_LINE>synchronized (session) {<NEW_LINE>Object obj = se...
String name = key.toString();
929,590
public void enableMetaDataPersictency() {<NEW_LINE>clusterService.submitStateUpdateTask("gateway-cassandra-ring-ready", new ClusterStateUpdateTask() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public ClusterState execute(ClusterState currentState) {<NEW_LINE>logger.debug("releasing the cassandra ring block...");<NEW_LINE>/...
blocks(blocks).build();
1,504,467
static final String hostKey(String host) {<NEW_LINE>try {<NEW_LINE>final Matcher m = HOST_PATTERN.matcher(host);<NEW_LINE>// I know which type of host matched by the number of the group that is non-null<NEW_LINE>// I use a different replacement string per host type to make the Epic stats more clear<NEW_LINE>if (m.match...
.group(2), "IP");
1,855,532
/*<NEW_LINE>Returns the main list of ~500 banks in Japan with bank codes,<NEW_LINE>but since 90%+ of people will be using one of ~30 major banks,<NEW_LINE>we hard-code those at the top for easier pull-down selection,<NEW_LINE>and add their English names in parenthesis for foreigners.<NEW_LINE>*/<NEW_LINE>public static ...
bankNameJa = minorBanksJapanese.get(bankId);
347,365
public final void write(java.io.Writer w, Object inst) throws java.io.IOException {<NEW_LINE>Document doc = null;<NEW_LINE>try {<NEW_LINE>doc = XMLUtil.createDocument(rootElement, null, publicID, systemID);<NEW_LINE>setDocumentContext(doc, findContext(w));<NEW_LINE>writeElement(doc, doc.getDocumentElement(), inst);<NEW...
java.io.ByteArrayOutputStream(1024);
1,441,079
final PutImageTagMutabilityResult executePutImageTagMutability(PutImageTagMutabilityRequest putImageTagMutabilityRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putImageTagMutabilityRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
21,538
public boolean projectToPixel(int pointIdx, int viewIdx, Se3_F64 world_to_view, Se3_F64 tmpSE, Point3D_F64 tmpX, Point2D_F64 pixel) {<NEW_LINE>// Get the coordinate transform<NEW_LINE>View <MASK><NEW_LINE>getWorldToView(view, world_to_view, tmpSE);<NEW_LINE>// extract the coordinate for 3D and homogenous case<NEW_LINE>...
view = views.get(viewIdx);
201,402
final ListExtensionVersionsResult executeListExtensionVersions(ListExtensionVersionsRequest listExtensionVersionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listExtensionVersionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
269,012
public void BackoffAsync(Runnable command) {<NEW_LINE>com.gmt2001.Console.debug.println("BackoffAsync() called by: " + com.gmt2001.Console.debug.findCaller("com.gmt2001.ExponentialBackoff"));<NEW_LINE>this.setIsBackingOff(true);<NEW_LINE>com.gmt2001.Console.debug.println("Locked backoff...");<NEW_LINE>this.determineNex...
Console.debug.println("Scheduling...");
433,748
public void resolveConfiguredHosts(Consumer<List<TransportAddress>> consumer) {<NEW_LINE>if (lifecycle.started() == false) {<NEW_LINE>logger.debug("resolveConfiguredHosts: lifecycle is {}, not proceeding", lifecycle);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (resolveInProgress.compareAndSet(false, true)) {<NEW_LINE>tran...
logger.debug("resolveConfiguredHosts.doRun: lifecycle is {}, not proceeding", lifecycle);
1,267,030
/*<NEW_LINE>* Recover syntax on type argument in invalid method/constructor reference<NEW_LINE>*/<NEW_LINE>protected Object syntaxRecoverArgumentType(Object receiver, List arguments, Object argument) throws InvalidInputException {<NEW_LINE>if (this.completionNode != null && !this.pushText) {<NEW_LINE>this.completionNod...
CompletionOnJavadocFieldReference(msgSend, this.memberStart);
1,604,739
public Description describe(BinaryTree tree, VisitorState state) {<NEW_LINE>List<ExpressionTree> binaryTreeMatches = ASTHelpers.matchBinaryTree(tree, Arrays.asList(Matchers.<ExpressionTree>isInstance(JCLiteral.class), Matchers.<ExpressionTree>anything()), state);<NEW_LINE>if (binaryTreeMatches == null) {<NEW_LINE>throw...
, Boolean.toString(willEvaluateTo));
1,428,203
public void propagateAreaLocations(OverlayEdge nodeEdge, int geomIndex) {<NEW_LINE>if (!inputGeometry.isArea(geomIndex))<NEW_LINE>return;<NEW_LINE>if (nodeEdge.degree() == 1)<NEW_LINE>return;<NEW_LINE>OverlayEdge <MASK><NEW_LINE>// no labelled edge found, so nothing to propagate<NEW_LINE>if (eStart == null)<NEW_LINE>re...
eStart = findPropagationStartEdge(nodeEdge, geomIndex);
1,310,417
public final void functionType() throws RecognitionException, TokenStreamException {<NEW_LINE>returnAST = null;<NEW_LINE>ASTPair currentAST = new ASTPair();<NEW_LINE>PascalAST functionType_AST = null;<NEW_LINE>PascalAST tmp38_AST = null;<NEW_LINE>tmp38_AST = (PascalAST) astFactory.create(LT(1));<NEW_LINE>astFactory.mak...
(1), getFilename());
1,625,482
protected void waitForXClusterOperation(IPollForXClusterOperation p) {<NEW_LINE>XClusterConfig xClusterConfig = taskParams().xClusterConfig;<NEW_LINE>try {<NEW_LINE>IsSetupUniverseReplicationDoneResponse doneResponse = null;<NEW_LINE>int numAttempts = 1;<NEW_LINE>long startTime = System.currentTimeMillis();<NEW_LINE>wh...
poll(xClusterConfig.getReplicationGroupName());
682,820
//<NEW_LINE>@Override<NEW_LINE>public void log(TraceComponent logger) {<NEW_LINE>Tr.debug(logger, MessageFormat.format("Method [ {0} ]", getHashText()));<NEW_LINE>Tr.debug(logger, MessageFormat.format(" Name [ {0} ]", getName()));<NEW_LINE>for (ClassInfoImpl nextParameterType : getParameterTypes()) {<NEW_LINE>Tr.debug...
().getHashText()));
924,903
public static <// TODO: Deprecate.<NEW_LINE>T> boolean xmlIsValid(DOMSource xmlfile, Class<T> clazz, String schemaFile) {<NEW_LINE>try {<NEW_LINE>PlatformUtil.extractResourceToUserConfigDir(clazz, schemaFile, false);<NEW_LINE>File schemaLoc = new File(PlatformUtil.getUserConfigDirectory() + File.separator + schemaFile)...
schema = schm.newSchema(schemaLoc);
1,244,297
public void handleDeltas(Deque<MutablePair<DeltaFIFO.DeltaType, KubernetesObject>> deltas) {<NEW_LINE>if (CollectionUtils.isEmpty(deltas)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// from oldest to newest<NEW_LINE>for (MutablePair<DeltaFIFO.DeltaType, KubernetesObject> delta : deltas) {<NEW_LINE>DeltaFIFO.DeltaType delta...
.update((ApiType) obj);
794,490
public static void convert(GrayS32 input, GrayF64 output) {<NEW_LINE>if (input.isSubimage() || output.isSubimage()) {<NEW_LINE>// CONCURRENT_BELOW BoofConcurrency.loopFor(0, input.height, y -> {<NEW_LINE>for (int y = 0; y < input.height; y++) {<NEW_LINE>int indexSrc = <MASK><NEW_LINE>int indexDst = output.getIndex(0, y...
input.getIndex(0, y);
603,661
public JobDetail mapRow(ResultSet rs, int rowNum) throws SQLException {<NEW_LINE>JobDetail job = new JobDetail();<NEW_LINE>job.id = rs.getString("pk_job");<NEW_LINE>job.showId = rs.getString("pk_show");<NEW_LINE>job.facilityId = rs.getString("pk_facility");<NEW_LINE>job.deptId = rs.getString("pk_dept");<NEW_LINE>job.gr...
email = rs.getString("str_email");
1,428,466
final PutTargetsResult executePutTargets(PutTargetsRequest putTargetsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putTargetsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
962,914
public static String reportMicrophoneInfo(MicrophoneInfo micInfo) {<NEW_LINE>StringBuffer sb = new StringBuffer();<NEW_LINE>sb.append("\n==== Microphone ========= " + micInfo.getId());<NEW_LINE>sb.append("\nAddress : " + micInfo.getAddress());<NEW_LINE>sb.append("\nDescription: " + micInfo.getDescription());<NEW_LIN...
(micInfo.getLocation()));
764,222
void shutdown() {<NEW_LINE>if (null != periodicTasksExecutor) {<NEW_LINE>periodicTasksExecutor.shutdownNow();<NEW_LINE>try {<NEW_LINE>while (!periodicTasksExecutor.awaitTermination(EXECUTOR_TERMINATION_WAIT_SECS, TimeUnit.SECONDS)) {<NEW_LINE>// NON-NLS<NEW_LINE>logger.log(<MASK><NEW_LINE>}<NEW_LINE>} catch (Interrupte...
Level.WARNING, "Waited at least {0} seconds for periodic tasks executor to shut down, continuing to wait", EXECUTOR_TERMINATION_WAIT_SECS);
498,191
protected ClassLoader createReportClassLoader(final ReportContext reportContext) {<NEW_LINE>final ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader();<NEW_LINE>final ClassLoader parentClassLoader;<NEW_LINE>if (developerModeBL.isEnabled()) {<NEW_LINE>parentClassLoader = JasperCompileClassLoad...
getDevelopmentWorkspaceReportsDirs()).build();
1,640,092
private void fit2(int xPosition, int yPosition, int columnCachedWidth, @NonNull View column, @NonNull ColumnLayoutManager childLayoutManager) {<NEW_LINE>int cellCacheWidth = getCacheWidth(yPosition, xPosition);<NEW_LINE>View cell = childLayoutManager.findViewByPosition(xPosition);<NEW_LINE>// Control whether the cell n...
), cell.getBottom());
186,370
public void processImage(int sourceID, long frameID, BufferedImage buffered, ImageBase input) {<NEW_LINE>synchronized (imageLock) {<NEW_LINE>// create a copy of the input image for output purposes<NEW_LINE>if (buffEqui.getWidth() != buffered.getWidth() || buffEqui.getHeight() != buffered.getHeight()) {<NEW_LINE>buffEqu...
.setTo((T) input);
1,289,311
public void registerCommands(Consumer<Command> consumer) {<NEW_LINE>consumer.accept(Command.builder().aliases("tickmonitor", "tickmonitoring").argumentUsage("threshold", "percentage increase").argumentUsage("threshold-tick", "tick duration").argumentUsage("without-gc", null).executor((platform, sender, resp, arguments)...
("Not supported!", NamedTextColor.RED));
29,512
public void writeToParcel(Parcel parcel, int i) {<NEW_LINE>parcel.writeString(name);<NEW_LINE>parcel.writeInt(maxVote);<NEW_LINE>parcel.writeInt(minVote);<NEW_LINE>parcel.writeInt(maxComments);<NEW_LINE>parcel.writeInt(minComments);<NEW_LINE>parcel.writeInt(maxAwards);<NEW_LINE>parcel.writeInt(minAwards);<NEW_LINE>parc...
(containGalleryType ? 1 : 0));
253,146
public void actionPerformed(java.awt.event.ActionEvent p_evt) {<NEW_LINE>java.util.Collection<WindowObjectInfo.Printable> object_list = new java.util.LinkedList<WindowObjectInfo.Printable>();<NEW_LINE>app.freerouting.library.BoardLibrary board_library = board_frame.board_panel.board_handling.get_routing_board().library...
awt.Point loc = getLocation();
1,170,184
final StopPiiEntitiesDetectionJobResult executeStopPiiEntitiesDetectionJob(StopPiiEntitiesDetectionJobRequest stopPiiEntitiesDetectionJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(stopPiiEntitiesDetectionJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
false), new StopPiiEntitiesDetectionJobResultJsonUnmarshaller());
1,416,967
FixedKeyNode updateRecord(int index, DBRecord record) throws IOException {<NEW_LINE>int offset = getRecordDataOffset(index);<NEW_LINE>int oldLen = getRecordLength(index, offset);<NEW_LINE>int len = record.length();<NEW_LINE>// Check for use of indirect chained record node(s)<NEW_LINE>// min 4 records per node<NEW_LINE>...
HEADER_SIZE) >> 2) - entrySize;
630,538
private void initializeListAdapter() {<NEW_LINE>if (this.recipient != null && this.chatId != -1) {<NEW_LINE>ConversationAdapter adapter = new ConversationAdapter(getActivity(), this.recipient.getChat(), GlideApp.with(this), locale, selectionClickListener, this.recipient);<NEW_LINE>list.setAdapter(adapter);<NEW_LINE>dat...
layoutManager.setStartingPosition(freshMsgs - 1);
1,210,843
private List<Integer> bfs(TreeNode root, Map<Integer, Integer> map) {<NEW_LINE>Queue<TreeNode> queue = new LinkedList<>();<NEW_LINE>queue.offer(root);<NEW_LINE>while (!queue.isEmpty()) {<NEW_LINE>int size = queue.size();<NEW_LINE>for (int i = 0; i < size; i++) {<NEW_LINE>TreeNode treeNode = queue.poll();<NEW_LINE>if (t...
.val, 0) + 1);