idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
477,142 | public static InputStream openForReading(Form form, ScopedFile file) throws IOException {<NEW_LINE>switch(file.getScope()) {<NEW_LINE>case Asset:<NEW_LINE>return form.openAsset(file.getFileName());<NEW_LINE>case App:<NEW_LINE>if (Build.VERSION.SDK_INT < Build.VERSION_CODES.FROYO) {<NEW_LINE>return new FileInputStream(n... | ContentUris.withAppendedId(contentUri, id); |
1,558,068 | public boolean visualizationKeyLocksStatus(ModStatusKeyLocks pchkInput, Command cmd, Item item, EventPublisher eventPublisher) {<NEW_LINE>// We are actually not meant to visualize anything.<NEW_LINE>// But (just in case) someone is really lazy in doing the item-definitions, we try to be helpful by implementing<NEW_LINE... | item.getName(), reportedState); |
386,802 | protected AttackResult injectableQuery(String query) {<NEW_LINE>try (Connection connection = dataSource.getConnection()) {<NEW_LINE>try (Statement statement = connection.createStatement(TYPE_SCROLL_INSENSITIVE, CONCUR_READ_ONLY)) {<NEW_LINE>statement.executeUpdate(query);<NEW_LINE>connection.commit();<NEW_LINE>ResultSe... | toString()).build(); |
594,887 | public void display(boolean verbose, PrintWriter pw) {<NEW_LINE>super.display(verbose, pw);<NEW_LINE>if (doCatLevelEval) {<NEW_LINE>final NumberFormat nf = new DecimalFormat("0.00");<NEW_LINE>final Set<String> cats = Generics.newHashSet();<NEW_LINE>final Random rand = new Random();<NEW_LINE>cats.addAll(precisions.keySe... | recalls2.getCount(cat) / rnum2; |
520,486 | public void serialize(StringBuilder builder) {<NEW_LINE>builder.append(mType).append("\n");<NEW_LINE>builder.append(mDeviceType).append("\n");<NEW_LINE>builder.append(mDeviceOS).append("\n");<NEW_LINE>builder.append(mAlias).append("\n");<NEW_LINE>// a network can't be saved in a session file<NEW_LINE>if (mType == Type.... | ()).append("\n"); |
1,042,873 | boolean removeRunningTask(String taskId) {<NEW_LINE>final ActiveTask removed = runningTasks.remove(taskId);<NEW_LINE>if (removed != null) {<NEW_LINE>final <MASK><NEW_LINE>final TaskGroupUsage usage = taskGroupUsages.get(task.taskGroupName());<NEW_LINE>if (usage == null)<NEW_LINE>logger.warn("Unexpected to not find usag... | TaskRequest task = removed.getTaskRequest(); |
873,611 | final DescribeParameterGroupsResult executeDescribeParameterGroups(DescribeParameterGroupsRequest describeParameterGroupsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeParameterGroupsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();... | false), new DescribeParameterGroupsResultJsonUnmarshaller()); |
1,083,359 | private void save(@NonNull final WFActivity wfActivity, final HashMap<WFActivityId, I_AD_WF_Activity> existingActivityRecords) {<NEW_LINE>I_AD_WF_Activity record = wfActivity.getId() != null ? existingActivityRecords.get(wfActivity.getId()) : null;<NEW_LINE>if (record == null && wfActivity.getId() != null) {<NEW_LINE>r... | (wfActivity.getIssueId())); |
996,188 | public void analyze(Program program, MethodReference methodReference) {<NEW_LINE>InstructionEscapeVisitor visitor = new InstructionEscapeVisitor(program.variableCount());<NEW_LINE>for (int i = 0; i <= methodReference.parameterCount(); ++i) {<NEW_LINE>visitor.escapingVars[i] = true;<NEW_LINE>}<NEW_LINE>for (BasicBlock b... | program, methodReference.getDescriptor()); |
354,082 | public void testMultipleObtrude() throws Exception {<NEW_LINE>BlockableIncrementFunction increment = new BlockableIncrementFunction("testMultipleObtrude", null, null);<NEW_LINE>CompletableFuture<Integer> cf1 = defaultManagedExecutor.supplyAsync(() -> 80);<NEW_LINE>cf1.obtrudeValue(90);<NEW_LINE>CompletableFuture<Intege... | assertFalse(cf3.isCancelled()); |
867,134 | public GetParametersForImportResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetParametersForImportResult getParametersForImportResult = new GetParametersForImportResult();<NEW_LINE>AwsJsonReader reader = context.getReader();<NEW_LINE>reader.beginObject();<NEW_LINE>while (reader.hasNext()... | ().unmarshall(context)); |
414,585 | public void unbindEIP() throws Exception {<NEW_LINE>InstanceInfo myInfo = applicationInfoManager.getInfo();<NEW_LINE>String myPublicIP = null;<NEW_LINE>if (myInfo != null && myInfo.getDataCenterInfo().getName() == Name.Amazon) {<NEW_LINE>myPublicIP = ((AmazonInfo) myInfo.getDataCenterInfo()).get(MetaDataKey.publicIpv4)... | String domain = eipAddress.getDomain(); |
1,644,394 | public RelationshipResponse isRelationshipKnown(String serverName, String userId, String guid) {<NEW_LINE>final String methodName = "isRelationshipKnown";<NEW_LINE><MASK><NEW_LINE>RelationshipResponse response = new RelationshipResponse();<NEW_LINE>try {<NEW_LINE>OMRSMetadataCollection metadataCollection = validateRepo... | log.debug("Calling method: " + methodName); |
1,133,349 | protected void renderContent(Graphics g) {<NEW_LINE>int imgW = image.getWidth();<NEW_LINE>int imgH = image.getHeight();<NEW_LINE>ResourceFactory factory = g.getResourceFactory();<NEW_LINE>int maxSize = maxSizeWrapper(factory);<NEW_LINE>if (imgW <= maxSize && imgH <= maxSize) {<NEW_LINE>Texture texture = factory.getCach... | 0, 0, imgW, imgH); |
533,730 | protected DataViewComponent createComponent() {<NEW_LINE>// Data area for master view:<NEW_LINE>JEditorPane generalDataArea = new JEditorPane();<NEW_LINE>generalDataArea.setBorder(BorderFactory.createEmptyBorder(14, 8, 14, 8));<NEW_LINE>// Panel, which we'll reuse in all four of our detail views for this sample:<NEW_LI... | = new DataViewComponent(masterView, masterConfiguration); |
702,643 | private List<PartitionUpdate> computePartitionUpdatesForMissingBuckets(ConnectorSession session, HiveWritableTableHandle handle, Table table, boolean isCreateTable, List<PartitionUpdate> partitionUpdates) {<NEW_LINE>ImmutableList.Builder<PartitionUpdate> partitionUpdatesForMissingBucketsBuilder = ImmutableList.builder(... | () : handle.getPartitionStorageFormat(); |
389,580 | public static byte[] calculateSSLMac(byte[] input, byte[] macWriteSecret, MacAlgorithm macAlgorithm) {<NEW_LINE>final byte[] pad1 = SSLUtils.getPad1(macAlgorithm);<NEW_LINE>final byte[] pad2 = SSLUtils.getPad2(macAlgorithm);<NEW_LINE>try {<NEW_LINE>final String hashName = getHashAlgorithm(macAlgorithm);<NEW_LINE>final ... | concatenate(macWriteSecret, pad2, innerHash); |
322,242 | public List<ExtractResult> extract(String input, LocalDateTime reference) {<NEW_LINE>List<Token> tokens = new ArrayList<>();<NEW_LINE>tokens.addAll(matchSimpleCases(input));<NEW_LINE>List<ExtractResult> simpleCasesResults = Token.mergeAllTokens(<MASK><NEW_LINE>List<ExtractResult> ordinalExtractions = config.getOrdinalE... | tokens, input, getExtractorName()); |
921,267 | protected void initColumnAndType() {<NEW_LINE>columns.put(COLUMN_NAME, new ColumnMeta(COLUMN_NAME, "varchar(32)", false, true));<NEW_LINE>columnsType.put(COLUMN_NAME, Fields.FIELD_TYPE_VAR_STRING);<NEW_LINE>columns.put(COLUMN_POOL_SIZE, new ColumnMeta(COLUMN_POOL_SIZE, "int(11)", false));<NEW_LINE>columnsType.put(COLUM... | (COLUMN_ACTIVE_COUNT, "int(11)", false)); |
212,736 | public void testObservableRxInvoker_postCbReceiveTimeout(Map<String, String> param, StringBuilder ret) {<NEW_LINE>long timeout = messageTimeout;<NEW_LINE>if (isZOS()) {<NEW_LINE>timeout = zTimeout;<NEW_LINE>}<NEW_LINE>String serverIP = param.get("serverIP");<NEW_LINE>String serverPort = param.get("serverPort");<NEW_LIN... | "testObservableRxInvoker_postCbReceiveTimeout with TIMEOUT " + TIMEOUT + " OnError elapsed time " + elapsed); |
1,395,898 | public TableOperations temp(TableMetadata uncommittedMetadata) {<NEW_LINE>return new TableOperations() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public TableMetadata current() {<NEW_LINE>return uncommittedMetadata;<NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public TableMetadata refresh() {<NEW_LINE>throw new Unsupp... | return RESTTableOperations.this.io(); |
1,813,760 | public void execute(@Param("pipelineId") Long pipelineId, Context context) throws Exception {<NEW_LINE>Channel channel = channelService.findByPipelineId(pipelineId);<NEW_LINE>RealtimeThroughputCondition condition1 = new RealtimeThroughputCondition();<NEW_LINE>RealtimeThroughputCondition condition2 = new RealtimeThrough... | condition11.setType(ThroughputType.FILE); |
1,515,212 | private ImmutableListMultimap<TableRecordReference, I_C_Location> extractLocationRecords(@NonNull final ImmutableListMultimap<TableRecordReference, LocationId> locationIds) {<NEW_LINE>final ImmutableListMultimap.Builder<TableRecordReference, I_C_Location> recordRef2LocationRecords = ImmutableListMultimap.builder();<NEW... | getValue().getRepoId()); |
391,385 | private Object convertForJdbc(Type<?> parent, Column column, Object value, SQLDialect dialect) {<NEW_LINE>if (column.getValueType().equals(ValueType.TIME) && (Time.class).isAssignableFrom(value.getClass())) {<NEW_LINE>return dialect<MASK><NEW_LINE>}<NEW_LINE>if (value.getClass().isEnum()) {<NEW_LINE>Enumerated enumerat... | .translateTimeToJDBC((Time) value); |
24,399 | public static void mergePullRequest(final GitRepository repo, final IGithubPullRequest pr) {<NEW_LINE>// Pop up a dialog allowing user to set commit msg and toggle if they want to delete the branch<NEW_LINE>MergePullRequestDialog prDialog = new MergePullRequestDialog(UIUtils.getActiveShell(), pr);<NEW_LINE>if (prDialog... | String msg = prDialog.getCommitMessage(); |
1,127,969 | final GetStreamingDistributionResult executeGetStreamingDistribution(GetStreamingDistributionRequest getStreamingDistributionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getStreamingDistributionRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NE... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
1,099,896 | private HoldingContainer visitBooleanOr(BooleanOperator op, ClassGenerator<?> generator) {<NEW_LINE>HoldingContainer out = generator.declare(op.getMajorType());<NEW_LINE>JLabel label = generator.getEvalBlockLabel("OrOP");<NEW_LINE>JBlock eval = generator.createInnerEvalBlock();<NEW_LINE>// enter into nested block.<NEW_... | expr.accept(this, generator); |
1,349,659 | public Motor findMotor(Type type, String manufacturer, String designation, double diameter, double length, String digest, WarningSet warnings) {<NEW_LINE>log.debug("type " + type + ", manufacturer " + manufacturer + ", designation " + designation + ", diameter " + diameter + ", length " + length + ", digest " + digest ... | "motor is " + m.getDesignation()); |
1,852,196 | public void onLink_BankStatement_IDChangedResetAmounts(@NonNull final I_C_BankStatementLine bsl) {<NEW_LINE>final BankStatementLineId linkedBankStatementLineId = BankStatementLineId.ofRepoIdOrNull(bsl.getLink_BankStatementLine_ID());<NEW_LINE>if (linkedBankStatementLineId == null) {<NEW_LINE>bsl.setCurrencyRate(null);<... | bslFrom = bankStatementBL.getLineById(linkedBankStatementLineId); |
1,367,418 | public ListUsersResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListUsersResult listUsersResult = new ListUsersResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDep... | class).unmarshall(context)); |
1,333,422 | public String edit(@PathVariable String id, @RequestParam(required = false) String title, @RequestParam(required = false) String body, @RequestParam(required = false) String tags, @RequestParam(required = false) String location, @RequestParam(required = false) String latlng, @RequestParam(required = false) String space... | isQuestion = !showPost.isReply(); |
1,352,071 | public static // '[' expression '||' lc_exprs ']'<NEW_LINE>boolean list_comprehension(PsiBuilder b, int l) {<NEW_LINE>if (!recursion_guard_(b, l, "list_comprehension"))<NEW_LINE>return false;<NEW_LINE>if (!nextTokenIs(b, "<expression>", ERL_BRACKET_LEFT))<NEW_LINE>return false;<NEW_LINE>boolean r;<NEW_LINE>Marker m = e... | r && consumeToken(b, ERL_BRACKET_RIGHT); |
403,438 | byte[] treehash(byte[] skSeed, int s, int z, byte[] pkSeed, ADRS adrsParam) {<NEW_LINE><MASK><NEW_LINE>LinkedList<NodeEntry> stack = new LinkedList<NodeEntry>();<NEW_LINE>if (s % (1 << z) != 0) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>for (int idx = 0; idx < (1 << z); idx++) {<NEW_LINE>adrs.setType(ADRS.WOTS_HASH);<... | ADRS adrs = new ADRS(adrsParam); |
333,448 | private JPanel initMltParamsPanel() {<NEW_LINE>JPanel panel = new JPanel(<MASK><NEW_LINE>panel.setOpaque(false);<NEW_LINE>JPanel maxDocFreq = new JPanel(new FlowLayout(FlowLayout.LEADING));<NEW_LINE>maxDocFreq.setOpaque(false);<NEW_LINE>maxDocFreq.add(new JLabel(MessageUtils.getLocalizedMessage("search_mlt.label.max_do... | new GridLayout(3, 1)); |
695,265 | public void read(org.apache.thrift.protocol.TProtocol prot, FetchResult struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet incoming = iprot.readBitSet(4);<NEW_LINE>if (incoming.get(0)) {<NEW... | findByValue(iprot.readI32()); |
1,848,236 | public void hrefReference(String target, int line) {<NEW_LINE>// System.out.println(document+":"+line+": href to "+target);<NEW_LINE>// recursively check the target document unless non-file ref<NEW_LINE>if (fileProtocolURL(target)) {<NEW_LINE>// prune off any #name reference on end of file<NEW_LINE>int pound = target.i... | File(directory + separator + path); |
378,414 | void renderDetails(Node node) {<NEW_LINE>String name = node.getNodeName();<NEW_LINE>if (name.equals("parameters")) {<NEW_LINE>assembly.append('\n').append(indentation(this.indentLevel)).append("Parameters:\n");<NEW_LINE>indentLevel += 4;<NEW_LINE>DomUtilities.traverseChildren(node, this::renderParameter, Node.ELEMENT_N... | (title).append('\n'); |
163,139 | public ApolloOpenApiClient openApiClient() {<NEW_LINE>String portalUrl = environment.getProperty(ApolloConstant.APOLLO_PORTAL_URL);<NEW_LINE>if (StringUtils.isEmpty(portalUrl)) {<NEW_LINE>throw new DiscoveryException(ApolloConstant.APOLLO_PORTAL_URL + " can't be null or empty");<NEW_LINE>}<NEW_LINE>String token = envir... | Integer.class, ApolloConstant.DEFAULT_CONNECT_TIMEOUT); |
983,080 | public static Map<String, Set<Integer>> markDropped(final Collection<Geocache> caches) {<NEW_LINE>final SQLiteStatement remove = PreparedStatement.REMOVE_FROM_ALL_LISTS.getStatement();<NEW_LINE>final Map<String, Set<Integer>> oldLists = new HashMap<>();<NEW_LINE>database.beginTransaction();<NEW_LINE>try {<NEW_LINE>fina... | >(caches.size()); |
1,145,195 | public DeleteOrganizationResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DeleteOrganizationResult deleteOrganizationResult = new DeleteOrganizationResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NE... | JsonToken token = context.getCurrentToken(); |
208,350 | static DecoderResult decode(byte[] bytes, int mode) throws FormatException {<NEW_LINE>StringBuilder result = new StringBuilder(144);<NEW_LINE>switch(mode) {<NEW_LINE>case 2:<NEW_LINE>case 3:<NEW_LINE>String postcode;<NEW_LINE>if (mode == 2) {<NEW_LINE>int pc = getPostCode2(bytes);<NEW_LINE>int ps2Length = getPostCode2L... | .format(getServiceClass(bytes)); |
738,387 | public PublicAccessBlockConfiguration unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>PublicAccessBlockConfiguration publicAccessBlockConfiguration = new PublicAccessBlockConfiguration();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LI... | XMLEvent xmlEvent = context.nextEvent(); |
1,457,367 | public StubRunnerOptionsBuilder withOptions(StubRunnerOptions options) {<NEW_LINE>this.minPortValue = options.minPortValue;<NEW_LINE>this.maxPortValue = options.maxPortValue;<NEW_LINE>this.stubRepositoryRoot = options.stubRepositoryRoot;<NEW_LINE>this.stubsMode = options.stubsMode;<NEW_LINE>this.stubsClassifier = optio... | stubIdsToPortMapping : new LinkedHashMap<>(); |
1,703,191 | public Node visit(final ForStmt n, final A arg) {<NEW_LINE>final List<Expression> init = n.getInit();<NEW_LINE>if (init != null) {<NEW_LINE>for (int i = 0; i < init.size(); i++) {<NEW_LINE>init.set(i, (Expression) init.get(i)<MASK><NEW_LINE>}<NEW_LINE>removeNulls(init);<NEW_LINE>}<NEW_LINE>if (n.getCompare() != null) {... | .accept(this, arg)); |
1,771,802 | final GetResourcePolicyResult executeGetResourcePolicy(GetResourcePolicyRequest getResourcePolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getResourcePolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | (super.beforeMarshalling(getResourcePolicyRequest)); |
906,213 | /* non Java-doc<NEW_LINE>* @see IRefactoring#createChange(IProgressMonitor)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public Change createChange(IProgressMonitor pm) throws CoreException {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>final String NN = "";<NEW_LINE>if (pm == null) {<NEW_LINE>pm = new NullProgressMonitor();<NEW_LINE>}... | TextEdit change = fRewriter.rewriteAST(); |
1,046,289 | public void unregisterClient(final Client client, final IAsyncResultHandler<Void> handler) {<NEW_LINE>try {<NEW_LINE>final Client lclient = lookupClient(client.getOrganizationId(), client.getClientId(), client.getVersion());<NEW_LINE>final String id = getClientId(lclient);<NEW_LINE>DeleteRequest deleteRequest = new Del... | create((Void) null)); |
154,195 | public Builder mergeFrom(com.alibaba.otter.node.etl.model.protobuf.BatchProto.FileBatch other) {<NEW_LINE>if (other == com.alibaba.otter.node.etl.model.protobuf.BatchProto.FileBatch.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (other.hasIdentity()) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>if (filesBuilder_ == n... | mergeIdentity(other.getIdentity()); |
156,030 | public void run(Optional<Pair<String, String>> basicAuth, Predicate<Properties> authenticator, Consumer<FinishedRequest> callback, FileHandler homepage, boolean https, AtomicBoolean live) {<NEW_LINE>try {<NEW_LINE>if (https) {<NEW_LINE>// 0 is the default 'backlog'<NEW_LINE>server = addSSLContext(HttpsServer.create(new... | callback, homepage)), basicAuth); |
208,203 | public void removeMessagesFromGroup(Object groupId, Collection<Message<?>> messages) {<NEW_LINE><MASK><NEW_LINE>Assert.notNull(messages, "'messages' must not be null");<NEW_LINE>Object mgm = doRetrieve(this.groupPrefix + groupId);<NEW_LINE>if (mgm != null) {<NEW_LINE>Assert.isInstanceOf(MessageGroupMetadata.class, mgm)... | Assert.notNull(groupId, GROUP_ID_MUST_NOT_BE_NULL); |
1,485,886 | public static void main(String[] args) throws Exception {<NEW_LINE>// Set root classloader to current classpath<NEW_LINE>ClassLoader root = Thread.currentThread().getContextClassLoader();<NEW_LINE>// Get classpath for function instance<NEW_LINE>String functionInstanceClasspath = System.getProperty(FUNCTIONS_INSTANCE_CL... | .replace("*", "")); |
371,818 | public static void main(final String[] args) {<NEW_LINE>final Option<Integer> o1 = some(7);<NEW_LINE>final Option<Integer> o2 = none();<NEW_LINE>final Option<Integer> o3 = some(8);<NEW_LINE>final Option<Integer> <MASK><NEW_LINE>final Option<Integer> o5 = o2.filter(even);<NEW_LINE>final Option<Integer> o6 = o3.filter(ev... | o4 = o1.filter(even); |
1,843,395 | protected AbstractBeanDefinition parseInternal(final Element element, final ParserContext parserContext) {<NEW_LINE>BeanDefinitionBuilder factory = BeanDefinitionBuilder.rootBeanDefinition(AlgorithmProvidedShardingRuleConfiguration.class);<NEW_LINE>factory.addPropertyValue<MASK><NEW_LINE>factory.addPropertyValue("autoT... | ("tables", parseTableRulesConfiguration(element)); |
1,628,363 | public WorkflowExecutionCancelRequestedEventAttributes unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>WorkflowExecutionCancelRequestedEventAttributes workflowExecutionCancelRequestedEventAttributes = new WorkflowExecutionCancelRequestedEventAttributes();<NEW_LINE><MASK><NEW_LINE>String currentP... | int originalDepth = context.getCurrentDepth(); |
683,040 | protected void initChannel(NioSocketChannel ch) throws Exception {<NEW_LINE>if (_sslContext != null) {<NEW_LINE>ch.pipeline().addLast(SessionResumptionSslHandler.PIPELINE_SESSION_RESUMPTION_HANDLER, new SessionResumptionSslHandler(_sslContext<MASK><NEW_LINE>}<NEW_LINE>ch.pipeline().addLast("codec", new HttpClientCodec(... | , _sslParameters, _enableSSLSessionResumption, _sslSessionTimeout)); |
1,442,906 | private Method resolveFactoryMethod(BeanDefinition beanDefinition, List<ResolvableType> valueTypes) {<NEW_LINE>if (beanDefinition instanceof RootBeanDefinition) {<NEW_LINE>RootBeanDefinition rootBeanDefinition = (RootBeanDefinition) beanDefinition;<NEW_LINE>Method resolvedFactoryMethod = rootBeanDefinition.getResolvedF... | (beanClass, method, factoryMethodName)); |
1,014,994 | protected void parseMaterials(ModelData model, JsonValue json, String materialDir) {<NEW_LINE>JsonValue materials = json.get("materials");<NEW_LINE>if (materials == null) {<NEW_LINE>// we should probably create some default material in this case<NEW_LINE>} else {<NEW_LINE>model.materials.ensureCapacity(materials.size);... | material.getFloat("opacity", 1.0f); |
1,402,709 | public static GetInstanceStateResponse unmarshall(GetInstanceStateResponse getInstanceStateResponse, UnmarshallerContext context) {<NEW_LINE>getInstanceStateResponse.setRequestId(context.stringValue("GetInstanceStateResponse.RequestId"));<NEW_LINE>getInstanceStateResponse.setSuccess(context.booleanValue("GetInstanceSta... | (context.integerValue("GetInstanceStateResponse.HttpStatusCode")); |
340,502 | Map<Index, IndexMetadata> findNewDanglingIndices(final Metadata metadata) {<NEW_LINE>final Set<String> excludeIndexPathIds = new HashSet<>(metadata.indices().size() + danglingIndices.size());<NEW_LINE>for (ObjectCursor<IndexMetadata> cursor : metadata.indices().values()) {<NEW_LINE>excludeIndexPathIds.add(cursor.value.... | IndexGraveyard graveyard = metadata.indexGraveyard(); |
797,854 | final DescribeClustersResult executeDescribeClusters(DescribeClustersRequest describeClustersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeClustersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeClusters"); |
1,262,271 | private ClassificationDef addServerPurposeClassification() {<NEW_LINE>final String guid = "78f68757-600f-4e8e-843b-00e77cdee37c";<NEW_LINE>final String name = "ServerPurpose";<NEW_LINE>final String description = "Adds more detail about the purpose of a deployed instance of IT infrastructure.";<NEW_LINE>final String des... | properties = new ArrayList<>(); |
470,389 | private static List<String> naiveParse(String name) {<NEW_LINE>// Only break on namespace delimiters that are found at templateLevel == 0.<NEW_LINE>List<String> list = new ArrayList<>();<NEW_LINE>int templateLevel = 0;<NEW_LINE>int parenthesesLevel = 0;<NEW_LINE>int startIndex = 0;<NEW_LINE>for (int i = 0; i < name.len... | .substring(startIndex, endIndex)); |
714,790 | // DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY<NEW_LINE>public static java.util.List<com.sun.jdi.ReferenceType> classesByName0(com.sun.jdi.VirtualMachine a, java.lang.String b) {<NEW_LINE>if (org.netbeans.modules.debugger.jpda.JDIExceptionReporter.isLoggable()) {<NEW_LINE>org.netbeans.modules.debugger.jpda.JDIExce... | jpda.JDIExceptionReporter.report(ex); |
1,471,451 | public WFCMessage.ChannelInfo toProtoChannelInfo() {<NEW_LINE>WFCMessage.ChannelInfo.Builder builder = WFCMessage.ChannelInfo.newBuilder().setOwner(owner);<NEW_LINE>if (!StringUtil.isNullOrEmpty(name))<NEW_LINE>builder = builder.setName(name);<NEW_LINE>if (!StringUtil.isNullOrEmpty(targetId))<NEW_LINE>builder = builder... | builder = builder.setAutomatic(auto); |
1,401,836 | public String convert(final String hostname) {<NEW_LINE>if (!PreferencesFactory.get().getBoolean("connection.hostname.idn")) {<NEW_LINE>return StringUtils.strip(hostname);<NEW_LINE>}<NEW_LINE>if (StringUtils.isNotEmpty(hostname)) {<NEW_LINE>try {<NEW_LINE>// Convenience function that implements the IDNToASCII operation... | ("Failed to convert hostname %s to IDNA", hostname), e); |
197,444 | private static void resetParameters(Size size) {<NEW_LINE>Camera.<MASK><NEW_LINE>int maxPreviewFrameRate = 0;<NEW_LINE>int bestPreviewFrameRate = 0;<NEW_LINE>int maxPreviewFpsRangeUpperBound = 0;<NEW_LINE>int[] bestPreviewFpsRange = null;<NEW_LINE>for (int format : cameraParams.getSupportedPreviewFormats()) {<NEW_LINE>... | Parameters cameraParams = _camera.getParameters(); |
710,204 | public void drawTranslate(UGraphic ug, UTranslate translate1, UTranslate translate2) {<NEW_LINE>final StringBounder stringBounder = ug.getStringBounder();<NEW_LINE>final FtileGeometry geo = getFtile1().calculateDimension(stringBounder);<NEW_LINE>if (geo.hasPointOut() == false) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>fin... | ).withMerge(MergeStrategy.LIMITED); |
87,180 | /* Undo GlassFish configuration and post-installation setups.*/<NEW_LINE>public void unconfigureGlassfish() {<NEW_LINE>// Try to stop domain.<NEW_LINE>stopDomain();<NEW_LINE>LOGGER.log(Level.INFO, Msg<MASK><NEW_LINE>try {<NEW_LINE>// Cleanup list includes both windows and non-windows files.<NEW_LINE>// FileUtils does c... | .get("CLEANINGUP_DIRECTORIES", null)); |
1,246,550 | public boolean startActivitySafely(View v, Intent intent, @Nullable ItemInfo item) {<NEW_LINE>if (mIsSafeModeEnabled && !PackageManagerHelper.isSystemApp(this, intent)) {<NEW_LINE>Toast.makeText(this, R.string.safemode_shortcut_error, Toast.LENGTH_SHORT).show();<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Bundle optsBun... | .setSourceBounds(getViewBounds(v)); |
388,392 | public void commitJscCrashAlarmMonitor(final String type, final WXErrorCode errorCode, String errMsg, String instanceId, String url, Map<String, String> extInfo) {<NEW_LINE>if (TextUtils.isEmpty(type) || errorCode == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Log.d("ReportCrash", " commitJscCrashAlarmMonitor errMsg "... | HashMap<String, String>(); |
1,499,473 | /*<NEW_LINE>* Recursively match until the sequence is satisfied. Otherwise return. Recurse down intermediate nodes<NEW_LINE>* such as RelSubset/HepRelVertex.<NEW_LINE>*/<NEW_LINE>private void findRelSequenceInternal(Class[] classes, int idx, RelNode rel, List<RelNode> matchingRels) {<NEW_LINE>if (rel instanceof HepRelV... | ).getOriginal(), matchingRels); |
1,432,015 | protected Set<Long> requestIndex(List<int[]> data) throws Exception {<NEW_LINE>long startTimeConsumption = System.nanoTime();<NEW_LINE>LOG.info("taskId: {}, localId: {}", getPatitionId(), getRuntimeContext().getIndexOfThisSubtask());<NEW_LINE>LOG.info("taskId: {}, negInputSize: {}", getPatitionId(), data.size());<NEW_L... | getLong("vocSize").intValue(); |
1,312,211 | public boolean hasNext() {<NEW_LINE>if (!open)<NEW_LINE>return false;<NEW_LINE>if (cur != null)<NEW_LINE>return true;<NEW_LINE>if (!src.hasNext()) {<NEW_LINE>close();<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>final IBindingSet[] nxt = src.next();<NEW_LINE>this.cur = nxt.getClass().getComponentType() == IBindingSet.cla... | : new IBindingSet[nxt.length]; |
908,237 | private void loadContent() {<NEW_LINE>new RefreshBlobTask(repo, sha, this) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected void onSuccess(Blob blob) throws Exception {<NEW_LINE>super.onSuccess(blob);<NEW_LINE>ViewUtils.setGone(loadingBar, true);<NEW_LINE>ViewUtils.setGone(codeView, false);<NEW_LINE>editor.setSource(p... | editor.setSource(path, blob); |
465,986 | private Mono<PagedResponse<CustomIpPrefixInner>> listSinglePageAsync() {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (this.client.getSubscriptionId() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is ... | error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); |
1,258,682 | protected void visit(PositionAssertion assertion) {<NEW_LINE>switch(assertion.type) {<NEW_LINE>case CARET:<NEW_LINE>if (isForward()) {<NEW_LINE>assertion.getParent().setHasCaret();<NEW_LINE>if (assertion.getParent().getMinPath() > 0) {<NEW_LINE>assertion.markAsDead();<NEW_LINE>assertion.getParent().markAsDead();<NEW_LI... | .getParent().setEndsWithDollar(); |
1,332,903 | public void document(int docID, StoredFieldVisitor visitor) throws IOException {<NEW_LINE>List<IndexableField> fields = document.getFields().stream().filter(f -> f.fieldType().stored()).toList();<NEW_LINE>for (IndexableField field : fields) {<NEW_LINE>FieldInfo fieldInfo = fieldInfo(field.name());<NEW_LINE>if (visitor.... | field.binaryValue().length]; |
791,390 | public Set<Integer> updateQuote(short siteId, Serializable id, CmsContentParameters contentParameters, CmsModel cmsModel, CmsCategory category, CmsContentAttribute attribute) {<NEW_LINE>CmsContent entity = getEntity(id);<NEW_LINE>Set<Integer> categoryIds = new HashSet<>();<NEW_LINE>if (null != entity) {<NEW_LINE>for (C... | setExpiryDate(entity.getExpiryDate()); |
1,616,428 | private static void addExtensionMetaFromAllFiles(File targetDirectory, List<String> runtimeClasspathElements, Log logger, boolean includeOrigin, List<NamespaceMetaData> namespaceMetaDataList) throws MojoFailureException, MalformedURLException {<NEW_LINE>List<File> jarFiles = new ArrayList<>();<NEW_LINE>listOfJarFiles(t... | .get(index), e); |
348,706 | private void processMultiplatformLibrary(final String infrastructureFolder) {<NEW_LINE>commonJvmMultiplatformSupportingFiles(infrastructureFolder);<NEW_LINE>additionalProperties.put(MULTIPLATFORM, true);<NEW_LINE>setDateLibrary(DateLibrary.STRING.value);<NEW_LINE>setRequestDateConverter(RequestDateConverter.TO_STRING.v... | ("auth/Authentication.kt.mustache", authFolder, "Authentication.kt")); |
993,410 | private static void newSparseElementToElements(HtmlElementTables.HtmlElementNames en, JsonObject obj, String fieldName, SourceLineWriter src) {<NEW_LINE>List<int[]> arrs = Lists.newArrayList();<NEW_LINE>for (String elname : obj.keySet()) {<NEW_LINE>int ei = en.getElementNameIndex(elname);<NEW_LINE>ImmutableSet.Builder<... | .size()][]); |
142,089 | public void customize(MutableProjectDescription description) {<NEW_LINE>String javaVersion = description.getLanguage().jvmVersion();<NEW_LINE>if (UNSUPPORTED_VERSIONS.contains(javaVersion)) {<NEW_LINE>updateTo(description, "1.8");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>springNativeHandler().accept(description);<NEW_LINE>... | Version platformVersion = description.getPlatformVersion(); |
407,958 | public boolean invokeCommand(String command, List cargs) {<NEW_LINE>if (command.startsWith("\\"))<NEW_LINE><MASK><NEW_LINE>else if (aliases.containsKey(command)) {<NEW_LINE>List list = br.parseCommandLine(aliases.getProperty(command));<NEW_LINE>String newCommand = list.remove(0).toString().toLowerCase();<NEW_LINE>list.... | command = command.substring(1); |
982,006 | public void createStream(StreamConfig request, StreamObserver<CreateStreamStatus> responseObserver) {<NEW_LINE>String scope = request.getStreamInfo().getScope();<NEW_LINE>String stream = request.getStreamInfo().getStream();<NEW_LINE>RequestTag requestTag = requestTracker.initializeAndTrackRequestTag(controllerService.n... | ), CREATE_STREAM, scope, stream); |
1,293,596 | // DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY<NEW_LINE>public static void addInstanceFilter(com.sun.jdi.request.MethodEntryRequest a, com.sun.jdi.ObjectReference b) throws org.netbeans.modules.debugger.jpda.jdi.InternalExceptionWrapper, org.netbeans.modules.debugger.jpda.jdi.VMDisconnectedExceptionWrapper {<NEW_L... | jpda.jdi.InternalExceptionWrapper(ex); |
1,296,126 | public static void main(String[] args) {<NEW_LINE>Scanner scan <MASK><NEW_LINE>printIntro();<NEW_LINE>int[] usedWords = new int[50];<NEW_LINE>int roundNumber = 1;<NEW_LINE>int totalWords = words.size();<NEW_LINE>boolean continueGame = false;<NEW_LINE>do {<NEW_LINE>if (roundNumber > totalWords) {<NEW_LINE>System.out.pri... | = new Scanner(System.in); |
1,205,874 | public void marshall(MergePullRequestBySquashRequest mergePullRequestBySquashRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (mergePullRequestBySquashRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.... | mergePullRequestBySquashRequest.getRepositoryName(), REPOSITORYNAME_BINDING); |
598,421 | private void genInterfaceMethodDecl(StringBuilder sb, Method mi, Class ifaceType) {<NEW_LINE>if (mi.isDefault() || Modifier.isStatic(mi.getModifiers())) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (mi.getAnnotation(ExtensionMethod.class) != null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (StructuralTypeProxyGenerator.isO... | + anno.value() + "\""; |
1,530,604 | public void close(EndReason reason, boolean definitelyClosed, Long kmsDisconnectionTime) {<NEW_LINE>log.debug(<MASK><NEW_LINE>if (isClosed()) {<NEW_LINE>log.warn("PARTICIPANT {}: Already closed", this.getParticipantPublicId());<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>this.closed = definitelyClosed;<NEW_LINE>Iterator<Entry... | "PARTICIPANT {}: Closing user", this.getParticipantPublicId()); |
837,283 | public void addElements(XmlElement parentElement) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>XmlElement answer = new XmlElement("update");<NEW_LINE>answer.addAttribute(new // $NON-NLS-1$<NEW_LINE>Attribute(// $NON-NLS-1$<NEW_LINE>"id", introspectedTable.getUpdateByExampleSelectiveStatementId()));<NEW_LINE>// $NON-NLS-1$ //$NON... | (MyBatis3FormattingUtilities.getAliasedEscapedColumnName(introspectedColumn)); |
1,040,883 | public static QueryHotlineSessionResponse unmarshall(QueryHotlineSessionResponse queryHotlineSessionResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryHotlineSessionResponse.setRequestId(_ctx.stringValue("QueryHotlineSessionResponse.RequestId"));<NEW_LINE>queryHotlineSessionResponse.setMessage(_ctx.stringValue("QueryH... | (_ctx.integerValue("QueryHotlineSessionResponse.Data.PageNumber")); |
904,208 | public List<UserWithOrganizations> findAllUsers(String username) {<NEW_LINE>List<Organization> organizations = findUserOrganizations(username);<NEW_LINE>Predicate<Collection<?>> isNotEmpty = ks -> !ks.isEmpty();<NEW_LINE>return Optional.of(organizations).filter(isNotEmpty).flatMap(org -> {<NEW_LINE>Map<Integer, List<Us... | ).collect(toList()); |
469,788 | private Map<AccessPath, Set<AccessPath>> computeGlobalAliases(SootMethod method) {<NEW_LINE>Map<AccessPath, Set<AccessPath>> res = new HashMap<AccessPath, Set<AccessPath>>();<NEW_LINE>// Find the aliases<NEW_LINE>for (Unit u : method.getActiveBody().getUnits()) {<NEW_LINE>if (!(u instanceof AssignStmt))<NEW_LINE>contin... | mapLeft = res.get(apLeft); |
1,483,984 | public DataSet<Tuple2<int[], Integer>> run() {<NEW_LINE>DataSet<Tuple2<Integer, int[]>> partitionedSequence = partitionSequence(sequences, itemCounts);<NEW_LINE>final int maxLength = maxPatternLength;<NEW_LINE>return partitionedSequence.partitionCustom(new Partitioner<Integer>() {<NEW_LINE><NEW_LINE>private static fina... | >(allSeq.size()); |
1,264,802 | public static void main(String[] args) throws SQLException, IOException {<NEW_LINE>// Retrieve user credentials from environment variables.<NEW_LINE>// They are set in the Pod from a Secret in src/main/k8s/app.yaml<NEW_LINE>OracleDataSource ds = new OracleDataSource();<NEW_LINE>ds.setURL(System.getenv("url"));<NEW_LINE... | rs = stmt.executeQuery("select SYSDATE from dual"); |
863,679 | protected Object doQuery(Object[] objs) {<NEW_LINE>try {<NEW_LINE>if (objs == null || objs.length < 1) {<NEW_LINE>throw new Exception("chardet paramSize error!");<NEW_LINE>}<NEW_LINE>String str = null;<NEW_LINE>String encodeName = null;<NEW_LINE>if (objs.length >= 2 && objs[1] instanceof String) {<NEW_LINE>encodeName =... | objs[1].toString(); |
586,585 | public static List<Unfolding> findUnfoldings(List<Integer> caseFolded) {<NEW_LINE>List<RubyCaseUnfoldingTrie> states = new ArrayList<>();<NEW_LINE>List<RubyCaseUnfoldingTrie> nextStates = new ArrayList<>();<NEW_LINE>List<Unfolding> unfoldings = new ArrayList<>();<NEW_LINE>for (int i = 0; i < caseFolded.size(); i++) {<N... | getLength).reversed())); |
1,344,523 | public AbstractListAssert<?, List<? extends Object>, Object, ObjectAssert<Object>> flatExtracting(String fieldOrPropertyName) {<NEW_LINE>List<Object> extractedValues = newArrayList();<NEW_LINE>List<?> extractedGroups = FieldsOrPropertiesExtractor.extract<MASK><NEW_LINE>for (Object group : extractedGroups) {<NEW_LINE>//... | (actual, byName(fieldOrPropertyName)); |
1,145,282 | protected Validator createClassicValidator() throws javax.servlet.jsp.JspException {<NEW_LINE>FacesContext facesContext = FacesContext.getCurrentInstance();<NEW_LINE><MASK><NEW_LINE>if (null != _binding) {<NEW_LINE>Object validator;<NEW_LINE>try {<NEW_LINE>validator = _binding.getValue(elContext);<NEW_LINE>} catch (Exc... | ELContext elContext = facesContext.getELContext(); |
1,170,282 | private void addToHeap(MinHeap heap, Object obj, Expression exp, Context ctx) {<NEW_LINE>if (obj instanceof Sequence) {<NEW_LINE>ComputeStack stack = ctx.getComputeStack();<NEW_LINE>try {<NEW_LINE>Sequence seq = (Sequence) obj;<NEW_LINE>Sequence.Current current = seq.new Current();<NEW_LINE>stack.push(current);<NEW_LIN... | ] vals = new Object[2]; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.