idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
674,238 | public void onClick(ClickEvent event) {<NEW_LINE>if (enabled) {<NEW_LINE>if (target == null) {<NEW_LINE>target = "_self";<NEW_LINE>}<NEW_LINE>String features;<NEW_LINE>switch(borderStyle) {<NEW_LINE>case NONE:<NEW_LINE>features = "menubar=no,location=no,status=no";<NEW_LINE>break;<NEW_LINE>case MINIMAL:<NEW_LINE>featur... | Event e = DOM.eventGetCurrentEvent(); |
1,488,633 | private void jbInit() throws Exception {<NEW_LINE>statusLine.setBorder(BorderFactory.createEtchedBorder());<NEW_LINE>statusLine.setText("statusLine");<NEW_LINE>statusLine.setOpaque(false);<NEW_LINE>statusDB.setForeground(Color.blue);<NEW_LINE>statusDB.setBorder(BorderFactory.createEtchedBorder());<NEW_LINE>statusDB.set... | infoLine.setHorizontalTextPosition(SwingConstants.CENTER); |
947,031 | public static Map<String, Object> databaseConfigToMap(@Nullable CBDatabaseConfig databaseConfiguration) {<NEW_LINE>Map<String, Object> <MASK><NEW_LINE>if (databaseConfiguration == null) {<NEW_LINE>return res;<NEW_LINE>}<NEW_LINE>res.computeIfAbsent(PARAM_DB_DRIVER_CONFIGURATION, v -> databaseConfiguration.getDriver());... | res = new LinkedHashMap<>(); |
472,808 | private MetaDataRegisterDTO buildMetaDataDTO(final ServiceBean<?> serviceBean, final ShenyuDubboClient shenyuDubboClient, final Method method) {<NEW_LINE>String path = contextPath + shenyuDubboClient.path();<NEW_LINE>String desc = shenyuDubboClient.desc();<NEW_LINE>String serviceName = serviceBean.getInterface();<NEW_L... | (configRuleName)) ? path : configRuleName; |
43,726 | public void replaceText(int start, int end, String text) {<NEW_LINE>if (start > 0 && end > 0) {<NEW_LINE>int s = Math.max(0, start - 1);<NEW_LINE>int e = Math.min(end + <MASK><NEW_LINE>List<Either<String, Hyperlink>> segList = getDocument().subSequence(s, e).getParagraph(0).getSegments();<NEW_LINE>if (!segList.isEmpty(... | 1, getLength() - 1); |
985,959 | public void indexTranslogOperations(final List<Translog.Operation> operations, final int totalTranslogOps, final long maxSeenAutoIdTimestampOnPrimary, final long maxSeqNoOfDeletesOrUpdatesOnPrimary, final RetentionLeases retentionLeases, final long mappingVersionOnPrimary, final ActionListener<Long> listener) {<NEW_LIN... | <RecoveryTranslogOperationsResponse> reader = RecoveryTranslogOperationsResponse::new; |
219,852 | public static DescribeHanaMetadataResponse unmarshall(DescribeHanaMetadataResponse describeHanaMetadataResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeHanaMetadataResponse.setRequestId(_ctx.stringValue("DescribeHanaMetadataResponse.RequestId"));<NEW_LINE>describeHanaMetadataResponse.setSuccess(_ctx.booleanValue(... | (_ctx.stringValue("DescribeHanaMetadataResponse.Message")); |
144,859 | private void readZapAddOnXmlFile(ZapAddOnXmlFile zapAddOnXml) {<NEW_LINE>this.name = zapAddOnXml.getName();<NEW_LINE>this.version = zapAddOnXml.getVersion();<NEW_LINE>this.semVer = zapAddOnXml.getSemVer();<NEW_LINE>this.status = AddOn.Status.valueOf(zapAddOnXml.getStatus());<NEW_LINE>this.description = zapAddOnXml.getD... | .notBeforeVersion = zapAddOnXml.getNotBeforeVersion(); |
684,689 | final DeleteHumanLoopResult executeDeleteHumanLoop(DeleteHumanLoopRequest deleteHumanLoopRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteHumanLoopRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | invoke(request, responseHandler, executionContext); |
210,466 | public static GetFullRequestOriginStatByInstanceIdResponse unmarshall(GetFullRequestOriginStatByInstanceIdResponse getFullRequestOriginStatByInstanceIdResponse, UnmarshallerContext _ctx) {<NEW_LINE>getFullRequestOriginStatByInstanceIdResponse.setRequestId(_ctx.stringValue("GetFullRequestOriginStatByInstanceIdResponse.R... | ("GetFullRequestOriginStatByInstanceIdResponse.Data.List[" + i + "].Count")); |
1,704,663 | final DeleteNotificationResult executeDeleteNotification(DeleteNotificationRequest deleteNotificationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteNotificationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteNotification"); |
38,069 | public static DescribeDrGatewaysResponse unmarshall(DescribeDrGatewaysResponse describeDrGatewaysResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDrGatewaysResponse.setRequestId(_ctx.stringValue("DescribeDrGatewaysResponse.RequestId"));<NEW_LINE>describeDrGatewaysResponse.setSuccess(_ctx.booleanValue("DescribeDrG... | (_ctx.integerValue("DescribeDrGatewaysResponse.PageSize")); |
1,770,664 | private Response doGetRequest(final String path) {<NEW_LINE>final BoundRequestBuilder builder = httpClient.prepareGet(securityConfig.getShiroOktaUrl() + path);<NEW_LINE>builder.addHeader("Authorization", "SSWS " + securityConfig.getShiroOktaAPIToken());<NEW_LINE><MASK><NEW_LINE>final Response response;<NEW_LINE>try {<N... | builder.addHeader("Content-Type", "application/json; charset=UTF-8"); |
138,171 | public void prependChain(final BackwardChain historicalBackwardChain) {<NEW_LINE>BlockHeader firstHeader = getFirstAncestorHeader().orElseThrow(() -> new BackwardSyncException("Cannot merge when syncing forward...", true));<NEW_LINE>Optional<BlockHeader> historicalHeader = historicalBackwardChain.getHeaderOnHeight(firs... | orElseThrow().getNumber()); |
311,585 | public final void executeVoid(VirtualFrame frame, JSDynamicObject receiver, JSDynamicObject homeObject, JSRealm realm) {<NEW_LINE>Object key = evaluateKey(frame);<NEW_LINE>Object getterV = null;<NEW_LINE>Object setterV = null;<NEW_LINE>if (getterNode != null) {<NEW_LINE>getterV = evaluateWithHomeObject(<MASK><NEW_LINE>... | getterNode, frame, homeObject, realm); |
389,783 | private void rewriteRegularAssignment(Assignment node) {<NEW_LINE>VariableElement var = TreeUtil.getVariableElement(node.getLeftHandSide());<NEW_LINE>if (var == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>handleRetainedLocal(var, node.getRightHandSide());<NEW_LINE>boolean isRetainedWith = ElementUtil.isRetainedWithFie... | (getRetainedWithTarget(node, var)); |
1,854,155 | public static void response(ShardingService shardingService, String column) {<NEW_LINE>HEADER.setPacketId(shardingService.nextPacketId());<NEW_LINE>FIELDS[0] = PacketUtil.getField(column, Fields.FIELD_TYPE_LONG);<NEW_LINE>FIELDS[0].setPacketId(shardingService.nextPacketId());<NEW_LINE>EOF.setPacketId(shardingService.ne... | lastEof.write(buffer, shardingService); |
977,166 | private RestTemplate initRestTemplate(HttpClientBuilder clientBuilder, boolean withHttpProxy) {<NEW_LINE>clientBuilder.setDefaultRequestConfig(RequestConfig.custom().setCookieSpec(CookieSpecs<MASK><NEW_LINE>// Set the HTTP proxy if configured.<NEW_LINE>if (withHttpProxy) {<NEW_LINE>if (!properties.getHttpProxy().isEnab... | .STANDARD).build()); |
536,641 | public static ListImagesResponse unmarshall(ListImagesResponse listImagesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listImagesResponse.setRequestId(_ctx.stringValue("ListImagesResponse.RequestId"));<NEW_LINE>Data data = new Data();<NEW_LINE>data.setToken(_ctx.stringValue("ListImagesResponse.Data.Token"));<NEW_LINE>... | = new ArrayList<ImageListItem>(); |
483,522 | public ArrayList<Hash> calcHashes(InstructHash instHash, int matchSize, HashStore store) throws CancelledException {<NEW_LINE>ArrayList<Hash> res = new ArrayList<Hash>();<NEW_LINE>Block block = instHash.getBlock();<NEW_LINE>CodeBlockReferenceIterator iter = block.origBlock.getSources(store.getMonitor());<NEW_LINE>Addre... | getBlock(ref.getSourceAddress()); |
1,265,769 | private void writeClassInfoRow(ClassInfo classInfo, long totalInstances, long totalBytes, boolean sourceDisplayed) {<NEW_LINE>final PdfPCell defaultCell = getDefaultCell();<NEW_LINE>defaultCell.setHorizontalAlignment(Element.ALIGN_LEFT);<NEW_LINE>addCell(classInfo.getName());<NEW_LINE>defaultCell.setHorizontalAlignment... | long bytes = classInfo.getBytes(); |
709,799 | private int visualLineStartOffset(int offset, boolean leanForward) {<NEW_LINE>DesktopEditorImpl editor = myView.getEditor();<NEW_LINE>offset = DocumentUtil.alignToCodePointBoundary(myDocument, offset);<NEW_LINE>int result = EditorUtil.getNotFoldedLineStartOffset(editor, offset);<NEW_LINE><MASK><NEW_LINE>List<? extends ... | SoftWrapModelImpl softWrapModel = editor.getSoftWrapModel(); |
724,670 | public void finishRegistration(final ACI aci, final PNI pni, final MasterKey masterKey, final String pin) {<NEW_LINE>this.pinMasterKey = masterKey;<NEW_LINE>this.storageManifestVersion = -1;<NEW_LINE>this.storageKey = null;<NEW_LINE>this.encryptedDeviceName = null;<NEW_LINE>this.deviceId = SignalServiceAddress.DEFAULT_... | ).resolveSelfRecipientTrusted(getSelfRecipientAddress()); |
812,888 | public void apply(Properties theProperties) {<NEW_LINE>// the below properties are used for ElasticSearch integration<NEW_LINE>theProperties.put(BackendSettings.backendKey(BackendSettings.TYPE), "elasticsearch");<NEW_LINE>theProperties.put(BackendSettings.backendKey(ElasticsearchIndexSettings.ANALYSIS_CONFIGURER), Hapi... | myProtocol, myHosts, myUsername, myPassword); |
1,216,376 | public void printDocumentTopics(PrintWriter pw, double threshold, int max) {<NEW_LINE>pw.println("#doc source topic proportions");<NEW_LINE>int docLen;<NEW_LINE>double[<MASK><NEW_LINE>for (int di = 0; di < topics.length; di++) {<NEW_LINE>pw.print(di);<NEW_LINE>pw.print(' ');<NEW_LINE>pw.print(ilist.get(di).getSource().... | ] topicDist = new double[numTopics]; |
1,799,279 | private TExecPlanFragmentParams streamLoadPutImpl(TStreamLoadPutRequest request) throws UserException {<NEW_LINE>String cluster = request.getCluster();<NEW_LINE>if (Strings.isNullOrEmpty(cluster)) {<NEW_LINE>cluster = SystemInfoService.DEFAULT_CLUSTER;<NEW_LINE>}<NEW_LINE>Env env = Env.getCurrentEnv();<NEW_LINE>String ... | ? request.getThriftRpcTimeoutMs() : 5000; |
857,251 | private GeoDataSet createWaypointList(List<Waypoint> waypoints, List<Track> tracks, List<Area> areas) {<NEW_LINE>final List<Waypoint> completeList = new ArrayList<>();<NEW_LINE>List<List<Waypoint>> filteredTracks = new ArrayList<>();<NEW_LINE>List<List<Waypoint>> <MASK><NEW_LINE>if (tracks != null) {<NEW_LINE>Long time... | filteredAreas = new ArrayList<>(); |
266,884 | private void registerElasticTaskAssignmentMetrics(String taskPrefix) {<NEW_LINE>Supplier<Integer> numTasksSupplier = () -> getTaskCountForDatastreamGroup(taskPrefix);<NEW_LINE>DYNAMIC_METRICS_MANAGER.registerGauge(CLASS_NAME, taskPrefix, NUM_TASKS, numTasksSupplier);<NEW_LINE>Supplier<Double> actualPartitionsPerTaskSup... | CLASS_NAME, taskPrefix, ELASTIC_TASK_PARAMETERS_NEED_ADJUSTMENT, needsAdjustmentSupplier); |
538,336 | private PricingSystemTaxCategoryAndIsTaxIncluded computePricingSystemTaxCategAndIsTaxIncluded(@NonNull final I_C_OrderLine ol, @NonNull final I_C_Flatrate_Term newTerm) {<NEW_LINE>final I_C_Flatrate_Conditions cond = ol.getC_Flatrate_Conditions();<NEW_LINE>if (cond.getM_PricingSystem_ID() > 0) {<NEW_LINE>final IPricing... | pricingInfo = calculateFlatrateTermPrice(ol, newTerm); |
1,294,423 | protected void visitInstrs(BasicBlock basicBlock) {<NEW_LINE>List<Instr> instrs = basicBlock.getInstrs();<NEW_LINE>int size = instrs.size();<NEW_LINE>if (size > 0) {<NEW_LINE>int lastIPC = Instr(instrs.get(0));<NEW_LINE>// Last BB processed needs to hook up to first in next one if not a Jump (fallthrough)<NEW_LINE>if (... | instrs.get(size - 1); |
170,497 | public static void main(String[] args) {<NEW_LINE>Scanner sc = new Scanner(System.in);<NEW_LINE>System.out.print("Enter number : ");<NEW_LINE>int num = sc.nextInt();<NEW_LINE>String str = String.valueOf(num);<NEW_LINE>len = str.length();<NEW_LINE>int[] arr = new int[300];<NEW_LINE>int[] str2 = new int[300];<NEW_LINE><M... | int i = 0, temp = num; |
1,148,779 | public void marshall(Framework framework, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (framework == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(framework.getArn(), ARN_BINDING);<NEW_LINE>protocolMarsha... | framework.getTags(), TAGS_BINDING); |
1,412,371 | public TOTorrent create(boolean skip_hashing) throws TOTorrentException {<NEW_LINE>try {<NEW_LINE>if (announce_url == null) {<NEW_LINE>throw (new TOTorrentException("Skeleton creator", TOTorrentException.RT_WRITE_FAILS));<NEW_LINE>}<NEW_LINE>File base_to_use;<NEW_LINE>if (is_desc) {<NEW_LINE>base_to_use = createLayoutM... | piece_min_size, piece_max_size, piece_num_lower, piece_num_upper); |
1,255,873 | private void createService() {<NEW_LINE>if ((jTxServiceURL.getText() == null) && (jTxtLocalFilename.getText() == null)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final String url;<NEW_LINE>if (jRbnUrl.isSelected()) {<NEW_LINE>url = jTxServiceURL.getText().trim();<NEW_LINE>} else {<NEW_LINE>url = fixFileURL(jTxtLocalFilena... | Message(ex.getMessage()); |
1,254,629 | final ListDominantLanguageDetectionJobsResult executeListDominantLanguageDetectionJobs(ListDominantLanguageDetectionJobsRequest listDominantLanguageDetectionJobsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listDominantLanguageDetectionJobsRequest);<NEW_LINE>AWSRequestMetrics awsRequest... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
1,848,595 | final DeleteGatewayResponseResult executeDeleteGatewayResponse(DeleteGatewayResponseRequest deleteGatewayResponseRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteGatewayResponseRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>... | invoke(request, responseHandler, executionContext); |
388,205 | final DeleteSceneResult executeDeleteScene(DeleteSceneRequest deleteSceneRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteSceneRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<DeleteSceneRequest> reques... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,382,131 | final GetResourcePoliciesResult executeGetResourcePolicies(GetResourcePoliciesRequest getResourcePoliciesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getResourcePoliciesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | false), new GetResourcePoliciesResultJsonUnmarshaller()); |
102,137 | private void printStats() {<NEW_LINE>if (snapshotList.size() >= 10) {<NEW_LINE>Long[] begin = snapshotList.getFirst();<NEW_LINE>Long[<MASK><NEW_LINE>final long sendTps = (long) (((end[1] - begin[1]) / (double) (end[0] - begin[0])) * 1000L);<NEW_LINE>final long sendMps = (long) (((end[3] - begin[3]) / (double) (end[0] -... | ] end = snapshotList.getLast(); |
202,668 | private void addObjectReference(@NotNull Collection<DBSObjectReference> references, String objectName, @NotNull DBSObject objectSchema, @NotNull OracleObjectType objectType, String objectTypeName, String schemaName, @NotNull JDBCSession session) {<NEW_LINE>references.add(new AbstractObjectReference(objectName, objectSc... | DBUtils.getQuotedIdentifier(dataSource, objectName); |
477,841 | public CustomAmi unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>CustomAmi customAmi = new CustomAmi();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>targetDepth += 1;<NEW_LINE>while (true)... | ().unmarshall(context)); |
997,158 | public AirbyteConnectionStatus check(final JsonNode config) {<NEW_LINE>final NamingConventionTransformer nameTransformer = getNamingResolver();<NEW_LINE>final SnowflakeInternalStagingSqlOperations snowflakeInternalStagingSqlOperations = new SnowflakeInternalStagingSqlOperations(nameTransformer);<NEW_LINE>try (final Jdb... | , database, nameTransformer, snowflakeInternalStagingSqlOperations)); |
1,427,834 | private void doSetActiveMembers(long commitIndex, LinkedHashSet<CPMemberInfo> members) {<NEW_LINE>// first set the active members, then set the commit index.<NEW_LINE>// because readers will use commit index for comparison, etc.<NEW_LINE>// When a caller reads commit index first, it knows that the active members<NEW_LI... | getSeed(), commitIndex, activeMembers); |
1,687,727 | public <T extends SaveFileFormat> T load(InputStream is, Class<T> format) {<NEW_LINE>entitySerializer.preLoad();<NEW_LINE>Input input = new ByteBufferInput(is);<NEW_LINE>SaveFileFormat partial = new SaveFileFormat((IntBag) null);<NEW_LINE>partial.componentIdentifiers = kryo.readObject(input, SaveFileFormat.ComponentIde... | translate(intBagEntitySerializer.getTranslatedIds()); |
1,213,642 | protected void modified(ComponentContext context, Map<String, Object> properties) {<NEW_LINE>if (isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>entry(tc, CLASS_NAME + "modified", new Object[] { context, properties });<NEW_LINE>try {<NEW_LINE>// If ME is stopped we start it again.This happens when ME might have<... | "Starting ME", service.getMeState()); |
100,094 | public UpdateAuthEventFeedbackResult updateAuthEventFeedback(UpdateAuthEventFeedbackRequest updateAuthEventFeedbackRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateAuthEventFeedbackRequest);<NEW_LINE>AWSRequestMetrics awsRequestMet... | JsonUnmarshallerContext> unmarshaller = new UpdateAuthEventFeedbackResultJsonUnmarshaller(); |
932,060 | protected void doParse(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) {<NEW_LINE>CoreNamespaceUtils.autoregisterBeansForNamespace(parserContext, element);<NEW_LINE>String dataSource = element.getAttribute("data-source");<NEW_LINE>String jdbcOperations = element.getAttribute("jdbc-operation... | maxVarCharLength = element.getAttribute("max-varchar-length"); |
1,829,854 | public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>this.<MASK><NEW_LINE>View rootView = inflater.inflate(R.layout.dialog_fragment_contacts_detail, container);<NEW_LINE>LL_contacts_detail_top_content = (LinearLayout) rootView.findViewById(R.id.LL_contacts_detail_... | getDialog().setCanceledOnTouchOutside(false); |
736,564 | public static SinkInfo createSinkInfo(SourceResponse sourceResponse, SinkResponse sinkResponse, List<FieldInfo> sinkFields) {<NEW_LINE>String sinkType = sinkResponse.getSinkType();<NEW_LINE>SinkInfo sinkInfo;<NEW_LINE>if (SinkType.forType(sinkType) == SinkType.HIVE) {<NEW_LINE>sinkInfo = createHiveSinkInfo((HiveSinkRes... | .format("Unsupported SinkType {%s}", sinkType)); |
1,231,199 | private static int select(final int L, final int T, final int TL) {<NEW_LINE>// L = left pixel, T = top pixel, TL = top left pixel.<NEW_LINE>// ARGB component estimates for prediction.<NEW_LINE>int pAlpha = ALPHA(L) + ALPHA(T) - ALPHA(TL);<NEW_LINE>int pRed = RED(L) + RED(T) - RED(TL);<NEW_LINE>int pGreen = GREEN(L) + ... | (T) - GREEN(TL); |
859,441 | protected Object handleResponse(Message outMessage, Class<?> serviceCls) throws Throwable {<NEW_LINE>try {<NEW_LINE>Response r = setResponseBuilder(outMessage, outMessage.getExchange()).build();<NEW_LINE>((ResponseImpl) r).setOutMessage(outMessage);<NEW_LINE>getState().setResponse(r);<NEW_LINE>Method method = outMessag... | getInstance(outMessage).clearThreadLocalProxies(); |
138,643 | private <TResult, TFeed> FeedPage<TResult> extractPage(Response<TFeed> response, List<TResult> entities, List<ResponseLink> responseLinks) throws MalformedURLException, UnsupportedEncodingException {<NEW_LINE>final Optional<ResponseLink> nextLink = responseLinks.stream().filter(link -> link.getRel().equalsIgnoreCase("n... | 1])).findFirst(); |
857,160 | protected void prepare(@NonNull final BaseActivity context, @NonNull final LinearLayout items) {<NEW_LINE>mContext = context;<NEW_LINE>items.addView(propView(context, R.string.props_title, getArguments().getString("title"), true));<NEW_LINE>items.addView(propView(context, "Message", getArguments().getString("message"),... | getString("response"), false)); |
1,247,860 | public boolean checkRunConfig(RunConfig config, ExecutionContext con) {<NEW_LINE>String actionName = config.getActionName();<NEW_LINE>if (!(ActionProvider.COMMAND_CLEAN.equals(actionName) || ActionProvider.COMMAND_REBUILD.equals(actionName))) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>J2eeModuleProvider provider = con... | ().getOut())); |
920,103 | private static Map<Class<?>, Transformer> createTypeTransformers() {<NEW_LINE>Map<Class<?>, Transformer> defaultTransformers = new HashMap<>();<NEW_LINE>defaultTransformers.put(Boolean.TYPE, input -> Boolean.valueOf(input.toString()));<NEW_LINE>defaultTransformers.put(Character.TYPE, input -> input.toString().charAt(0)... | (input.toString())); |
199,345 | protected Object rstripBangSingleByte(RubyString string, @Cached BytesNode bytesNode, @Cached @Exclusive ConditionProfile noopProfile) {<NEW_LINE>// Taken from org.jruby.RubyString#rstrip_bang19 and org.jruby.RubyString#singleByteRStrip19.<NEW_LINE>final Rope rope = string.rope;<NEW_LINE>final int lastCodePoint = getCo... | willStrip = StringSupport.isAsciiSpaceOrNull(lastCodePoint); |
95,368 | private SessionHandler createSessionHandler(final SecurityHandler securityHandler) {<NEW_LINE>SessionHandler sessionHandler = new SessionHandler();<NEW_LINE>// SessionManager sessionManager = new HashSessionManager();<NEW_LINE>sessionHandler.setMaxInactiveInterval(config.getInt(ExecConstants.HTTP_SESSION_MAX_IDLE_SECS)... | session.getAttribute(SessionAuthentication.__J_AUTHENTICATED); |
1,226,696 | private List<ADnsAnswer> resolveIpAddresses(String hostName, DnsRecordType dnsRecordType, boolean includeIpVersion) throws InterruptedException, ExecutionException {<NEW_LINE>LOG.debug("Attempting to resolve [{}] records for [{}]", dnsRecordType, hostName);<NEW_LINE>if (isShutdown()) {<NEW_LINE>throw new DnsClientNotRu... | collect(Collectors.toList()); |
1,168,235 | final GetWorkflowRunResult executeGetWorkflowRun(GetWorkflowRunRequest getWorkflowRunRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getWorkflowRunRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
1,490,429 | public void putRecycledView(RecyclerView.ViewHolder scrap) {<NEW_LINE>int viewType = scrap.getItemViewType();<NEW_LINE>if (mMaxScrap.indexOfKey(viewType) < 0) {<NEW_LINE>// does't contains this viewType, initial scrap list<NEW_LINE>mMaxScrap.put(viewType, DEFAULT_MAX_SIZE);<NEW_LINE>setMaxRecycledViews(viewType, DEFAUL... | put(viewType, scrapHeapSize + 1); |
1,810,062 | public static DescribeVpnPbrRouteEntriesResponse unmarshall(DescribeVpnPbrRouteEntriesResponse describeVpnPbrRouteEntriesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeVpnPbrRouteEntriesResponse.setRequestId(_ctx.stringValue("DescribeVpnPbrRouteEntriesResponse.RequestId"));<NEW_LINE>describeVpnPbrRouteEntriesRe... | ("DescribeVpnPbrRouteEntriesResponse.VpnPbrRouteEntries[" + i + "].NextHop")); |
1,581,589 | public MessagingSerializer createMessagingSerializer(String username, IfcModelInterface model, DownloadParameters downloadParameters) throws SerializerException {<NEW_LINE>DatabaseSession session = bimDatabase.createSession(OperationType.READ_ONLY);<NEW_LINE>try {<NEW_LINE>MessagingSerializerPluginConfiguration seriali... | LOGGER.error("", e); |
1,676,112 | private void fetchRequests(RequestRegistrationCallback<GetOperation> requestRegistrationCallback) {<NEW_LINE>Iterator<ReplicaId> replicaIterator = chunkOperationTracker.getReplicaIterator();<NEW_LINE>while (replicaIterator.hasNext()) {<NEW_LINE>ReplicaId replicaId = replicaIterator.next();<NEW_LINE>replicaIterator.remo... | .getDataNodeId().getHostname(); |
831,557 | private static List<PostgreSQLPacket> parsePacket(byte[] bytes, int offset, int readLength) throws IOException {<NEW_LINE>List<PostgreSQLPacket> pgs = new ArrayList<>();<NEW_LINE>while (offset < readLength) {<NEW_LINE>char MAKE = (char) bytes[offset];<NEW_LINE>PostgreSQLPacket pg = null;<NEW_LINE>switch(MAKE) {<NEW_LIN... | + pg.getLength() + 1; |
645,711 | public static void extractAuthHeader(HttpServletRequest request, BiConsumer<String, String> callback) {<NEW_LINE>String authHeader = request.getHeader(Authenticator.HEADER_AUTHORIZATION);<NEW_LINE>if (Strings.isBlank(authHeader)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String[] parts = authHeader.trim().split(" ");<NEW_... | decoded.substring(0, delimiter); |
1,598,275 | public DebeziumSourceFunction<T> build() {<NEW_LINE>Properties props = new Properties();<NEW_LINE>props.setProperty("connector.class", PostgresConnector.class.getCanonicalName());<NEW_LINE>props.setProperty("plugin.name", pluginName);<NEW_LINE>// hard code server name, because we don't need to distinguish it, docs:<NEW... | Validator.getDefaultValidator(), inlongMetric); |
1,417,742 | public synchronized Host createSystemHost() throws DotDataException, DotSecurityException {<NEW_LINE>final User systemUser = APILocator.systemUser();<NEW_LINE>final DotConnect dc = new DotConnect();<NEW_LINE>final StringBuffer sqlQuery = new StringBuffer().append(SELECT_SYSTEM_HOST);<NEW_LINE>dc.setSQL(sqlQuery.toStrin... | .setModDate(new Date()); |
1,163,296 | public ScopeType initByModel(@Nonnull FindModel findModel) {<NEW_LINE>myDirectoryChooser.initByModel(findModel);<NEW_LINE>final String dirName = findModel.getDirectoryName();<NEW_LINE>if (!StringUtil.isEmptyOrSpaces(dirName)) {<NEW_LINE>VirtualFile dir = LocalFileSystem.getInstance().findFileByPath(dirName);<NEW_LINE>i... | myComponents[0].first : scope; |
1,473,069 | public boolean apply(Game game, Ability source) {<NEW_LINE>// In the case that the enchantment is blinked<NEW_LINE>Permanent enchantment = (Permanent) game.getLastKnownInformation(source.getSourceId(), Zone.BATTLEFIELD);<NEW_LINE>if (enchantment == null) {<NEW_LINE>// It was not blinked, use the standard method<NEW_LIN... | getPermanentOrLKIBattlefield(source.getSourceId()); |
1,161,724 | private List<String> toList(Resource list) {<NEW_LINE>List<String> result = new ArrayList<>();<NEW_LINE>Resource current = list;<NEW_LINE>while (current != null && !current.equals(RDF.nil)) {<NEW_LINE>Statement stmt = current.getProperty(RDF.first);<NEW_LINE>if (stmt == null) {<NEW_LINE>throw new TextIndexException("st... | ) node).getLexicalForm()); |
910,108 | public boolean apply(GraphBuilderContext b, ResolvedJavaMethod targetMethod, Receiver receiver, ValueNode clearInterrupted) {<NEW_LINE>try (HotSpotInvocationPluginHelper helper = new HotSpotInvocationPluginHelper(b, targetMethod, config)) {<NEW_LINE>ValueNode receiverThreadObject = receiver.get();<NEW_LINE>CurrentJavaT... | true), NodeView.DEFAULT)); |
388,708 | public void onCommandsSelected(CommandIndex index) {<NEW_LINE>selectionHandler.updateSelectionFromModel(() -> models.commands.getTreePath(index.getNode()).get(), path -> {<NEW_LINE>TreeState.Row current = tree.getRootRow();<NEW_LINE>for (int i = 1; i < path.getSegmentCount(); i++) {<NEW_LINE>if (!tree.isExpanded(curren... | ) + " in " + current.node); |
139,302 | public static Result execute(Step step, Actions actions) {<NEW_LINE>String text = step.getText();<NEW_LINE>List<MethodMatch> matches = findMethodsMatching(text);<NEW_LINE>if (matches.isEmpty()) {<NEW_LINE>KarateException e = new KarateException("no step-definition method match found for: " + text);<NEW_LINE>return Resu... | method.invoke(actions, args); |
787,484 | private CustomerTaskFormData buildCustomerTaskFromData(CustomerTask task, ObjectNode taskProgress, TaskInfo taskInfo) {<NEW_LINE>try {<NEW_LINE>CustomerTaskFormData taskData = new CustomerTaskFormData();<NEW_LINE>taskData.percentComplete = taskProgress.get("percent").asInt();<NEW_LINE>taskData.status = taskProgress.get... | get("abortable").asBoolean(); |
905,635 | private void fireReturnCallback(final Invoker<?> invoker, final Invocation invocation, final Object result) {<NEW_LINE>final AsyncMethodInfo asyncMethodInfo = getAsyncMethodInfo(invoker, invocation);<NEW_LINE>if (asyncMethodInfo == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final Method onReturnMethod = asyncMethodIn... | fireThrowCallback(invoker, invocation, e); |
61,321 | protected void enableResumingOfPreviousVersions(ProcessApplicationDeploymentBuilder deploymentBuilder) throws IllegalArgumentException {<NEW_LINE>deploymentBuilder.resumePreviousVersions();<NEW_LINE>String resumePreviousBy = processArchive.getProperties(<MASK><NEW_LINE>if (resumePreviousBy == null) {<NEW_LINE>deploymen... | ).get(ProcessArchiveXml.PROP_RESUME_PREVIOUS_BY); |
183,841 | private void loadNode755() {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, new NodeId(0, 15001), new QualifiedName(0, "ConditionEventId"), new LocalizedText("en", "ConditionEventId"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), new DataValue(Variant.NULL_VALUE), Identifiers... | .expanded(), true)); |
502,010 | final DescribeAlertManagerDefinitionResult executeDescribeAlertManagerDefinition(DescribeAlertManagerDefinitionRequest describeAlertManagerDefinitionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeAlertManagerDefinitionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = execu... | invoke(request, responseHandler, executionContext); |
831,622 | static void rethrow(Throwable cause, BugReporter bugReporter, EvaluationResult<?> resultForDebugging) throws BuildFailedException, TestExecException {<NEW_LINE>Throwables.throwIfUnchecked(cause);<NEW_LINE>Throwable innerCause = cause.getCause();<NEW_LINE>if (innerCause instanceof TestExecException) {<NEW_LINE>throw (Te... | = "Unexpected exception, please file an issue with the Bazel team: " + cause.getMessage(); |
345,249 | void runIfNotProcessed(BatchedTask updateTask) {<NEW_LINE>// if this task is already processed, it shouldn't execute other tasks with same batching key that arrived later,<NEW_LINE>// to give other tasks with different batching key a chance to execute.<NEW_LINE>if (updateTask.processed.get() == false) {<NEW_LINE>final ... | logger.trace("skipping {}, already processed", task); |
1,277,743 | public static ListAuthorizationRulesResponse unmarshall(ListAuthorizationRulesResponse listAuthorizationRulesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listAuthorizationRulesResponse.setRequestId(_ctx.stringValue("ListAuthorizationRulesResponse.RequestId"));<NEW_LINE>listAuthorizationRulesResponse.setTotalCount(_ct... | ("ListAuthorizationRulesResponse.AuthorizationRules[" + i + "].AuthorizationRuleStatus")); |
1,245,366 | private void highlightInConference(String nick) {<NEW_LINE>final Editable editable = this.binding.textinput.getText();<NEW_LINE>String oldString = editable.toString().trim();<NEW_LINE>final int pos = this.binding.textinput.getSelectionStart();<NEW_LINE>if (oldString.isEmpty() || pos == 0) {<NEW_LINE>editable.insert(0, ... | pos - 2, ", " + nick); |
684,142 | private static void installField(final ThreadContext context, final String asName, final Field field, final RubyModule target, boolean asReader, Boolean asWriter) {<NEW_LINE>if (Ruby.isSecurityRestricted() && !Modifier.isPublic(field.getModifiers())) {<NEW_LINE>throw context.runtime.newSecurityError("Cannot change acce... | (fieldName, target, field)); |
968,933 | private static Map<TypeAlias, jnr.ffi.NativeType> buildTypeMap() {<NEW_LINE>Map<TypeAlias, jnr.ffi.NativeType> m = new EnumMap<TypeAlias, jnr.ffi.NativeType>(TypeAlias.class);<NEW_LINE>m.put(TypeAlias.int8_t, NativeType.SCHAR);<NEW_LINE>m.put(TypeAlias.u_int8_t, NativeType.UCHAR);<NEW_LINE>m.put(TypeAlias.int16_t, Nati... | TypeAlias.id_t, NativeType.UINT); |
373,976 | public Boolean logicDeleteAll(String groupId, String streamId, String operator) {<NEW_LINE>LOGGER.info("begin to logic delete all sink info by groupId={}, streamId={}", groupId, streamId);<NEW_LINE>Preconditions.checkNotNull(groupId, ErrorCodeEnum.GROUP_ID_IS_EMPTY.getMessage());<NEW_LINE>Preconditions.checkNotNull(str... | selectByRelatedId(groupId, streamId, null); |
1,272,371 | public static JPanel createConfigSectionComponent(String labelText) {<NEW_LINE>JLabel label = new JLabel(labelText);<NEW_LINE>label.setBorder(new EmptyBorder(0, 0, 0, 10));<NEW_LINE>label.setFont(label.getFont().deriveFont(Font.BOLD));<NEW_LINE>JPanel pnlSectionName = new TransparentPanel();<NEW_LINE>pnlSectionName.set... | pnlSectionName.add(label, c); |
178,064 | public void marshall(RestoreSummary restoreSummary, AwsJsonWriter jsonWriter) throws Exception {<NEW_LINE>jsonWriter.beginObject();<NEW_LINE>if (restoreSummary.getSourceBackupArn() != null) {<NEW_LINE>String sourceBackupArn = restoreSummary.getSourceBackupArn();<NEW_LINE>jsonWriter.name("SourceBackupArn");<NEW_LINE>jso... | Date restoreDateTime = restoreSummary.getRestoreDateTime(); |
767,568 | private int addComponentAttributes(RecordComponentBinding recordComponentBinding, int componetAttributeOffset) {<NEW_LINE>// See JVMS 14 Table 4.7-C - Record Preview for allowed attributes<NEW_LINE>int attributesNumber = 0;<NEW_LINE>// add signature attribute<NEW_LINE>char[] genericSignature = recordComponentBinding.ge... | getAllAnnotationContexts(AnnotationTargetTypeConstants.RECORD_COMPONENT, allTypeAnnotationContexts); |
1,263,221 | void handleResponse(ResponseInfo responseInfo) {<NEW_LINE>long startTime = time.milliseconds();<NEW_LINE>UndeleteResponse undeleteResponse = RouterUtils.extractResponseAndNotifyResponseHandler(responseHandler, routerMetrics, responseInfo, UndeleteResponse::readFrom, UndeleteResponse::getError);<NEW_LINE><MASK><NEW_LINE... | RequestInfo routerRequestInfo = responseInfo.getRequestInfo(); |
1,010,828 | public static Consumer<OutputWriter> toJSON(MaterialConfig materialConfig) {<NEW_LINE>return materialWriter -> {<NEW_LINE>if (!materialConfig.errors().isEmpty()) {<NEW_LINE>materialWriter.addChild("errors", errorWriter -> {<NEW_LINE>HashMap<String, String> errorMapping = new HashMap<>();<NEW_LINE>errorMapping.put("mate... | errorMapping.put("pipelineName", "pipeline"); |
1,757,759 | // auto-generated, see spoon.generating.ReplacementVisitorGenerator<NEW_LINE>@java.lang.Override<NEW_LINE>public <T> void visitCtNewArray(final spoon.reflect.code.CtNewArray<T> newArray) {<NEW_LINE>replaceInListIfExist(newArray.getAnnotations(), new spoon.support.visitor.replace<MASK><NEW_LINE>replaceElementIfExist(new... | .ReplacementVisitor.CtElementAnnotationsReplaceListener(newArray)); |
467,760 | public final // }<NEW_LINE>void drawPlotAndDescValueAxis(boolean xIsDescription, boolean drawBars, boolean drawLines, boolean drawPoints) {<NEW_LINE>axisConfig.setxIsDescription(xIsDescription);<NEW_LINE>setupAxis();<NEW_LINE>calculateAdditionalSpaceForYAxisTextWidth();<NEW_LINE>// log.debug("yIsDescription: " + yIsDes... | axisConfig.getDescSegment(), colors); |
1,524,740 | public void execute() {<NEW_LINE>BibDatabaseContext database = stateManager.getActiveDatabase().orElseThrow(() -> new NullPointerException("Database null"));<NEW_LINE>List<BibEntry> entries = stateManager.getSelectedEntries();<NEW_LINE>DirectoryDialogConfiguration dirDialogConfiguration = new DirectoryDialogConfigurati... | Globals.TASK_EXECUTOR.execute(exportTask); |
185,860 | protected void postProcess(final BeanDefinitionBuilder definitionBuilder, final Element ff4jTag) {<NEW_LINE>super.postProcess(definitionBuilder, ff4jTag);<NEW_LINE>logger.debug("Initialization from <ff4j:ff4j> TAG");<NEW_LINE>// If filename is present ff4j will be initialized with both features and properties inmemory.... | ).addPropertyValue("authorizationsManager", refSolution); |
1,568,671 | public static void unzip(File zipFile, File targetDirectory) throws IOException {<NEW_LINE>ZipInputStream zis = new ZipInputStream(new BufferedInputStream(new FileInputStream(zipFile)));<NEW_LINE>try {<NEW_LINE>ZipEntry ze;<NEW_LINE>int count;<NEW_LINE>byte[] buffer = new byte[8192];<NEW_LINE>while ((ze = zis.getNextEn... | targetDirectory, ze.getName()); |
677,274 | private static Set<Dependency> processDependencies(final Set<Dependency> original, Set<UpdateElement> retval, Set<ModuleInfo> availableInfos, Set<Dependency> brokenDependencies, UpdateElement el, boolean agressive, Collection<UpdateElement> recommended, boolean avoidRecommended) {<NEW_LINE>Set<Dependency> res = new Has... | add(reqM.getModuleInfo()); |
1,788,055 | private static Map<String, MetadataFieldMapper.TypeParser> initBuiltInMetadataMappers() {<NEW_LINE>Map<String, MetadataFieldMapper.TypeParser> builtInMetadataMappers;<NEW_LINE>// Use a LinkedHashMap for metadataMappers because iteration order matters<NEW_LINE>builtInMetadataMappers = new LinkedHashMap<>();<NEW_LINE>// ... | IgnoredFieldMapper.NAME, IgnoredFieldMapper.PARSER); |
1,420,444 | /* *<NEW_LINE>* Packs a CSS document into an HTML wrapper and validates it.<NEW_LINE>*/<NEW_LINE>private void checkAsCss(InputSource is) throws IOException, SAXException {<NEW_LINE>String charset = "UTF-8";<NEW_LINE>if (is.getEncoding() != null) {<NEW_LINE>charset = is.getEncoding();<NEW_LINE>}<NEW_LINE>List<InputStrea... | streamsList = new ArrayList<>(); |
642,668 | private VirtualFileSystemEntry createChild(int id, int nameId, @Nonnull NewVirtualFileSystem delegate, @Nonnull FileAttributes attributes, boolean isEmptyDirectory) {<NEW_LINE>FileLoadingTracker.fileLoaded(this, nameId);<NEW_LINE>VfsData.Segment segment = mySegment.vfsData.getSegment(id, true);<NEW_LINE>try {<NEW_LINE>... | VirtualDirectoryImpl) child).setChildrenLoaded(); |
42,651 | private double documentLogProbability(int[][][] docData, int docIndex, CRFCliqueTree<String> cliqueTree) {<NEW_LINE>int[] docLabels = labels[docIndex];<NEW_LINE>int[] given = new int[window - 1];<NEW_LINE>Arrays.fill(given, classIndex.indexOf(backgroundSymbol));<NEW_LINE>if (docLabels.length > docData.length) {<NEW_LIN... | condLogProbGivenPrevious(i, label, given); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.