idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
170,877 | public String createPullSecret(UUID providerUUID, Map<String, String> config, boolean edit) throws IOException {<NEW_LINE>// Grab the kubernetes config file name and file content and create the physical file.<NEW_LINE>String pullSecretFileName = config.remove("KUBECONFIG_PULL_SECRET_NAME");<NEW_LINE>String pullSecretFi... | , Util.getFileName(pullSecretFileName)); |
320,513 | public Collection<AbstractTreeNode> modify(AbstractTreeNode parent, Collection<AbstractTreeNode> children, ViewSettings settings) {<NEW_LINE>if (parent instanceof BackgroundTaskPsiFileTreeNode) {<NEW_LINE>return children;<NEW_LINE>}<NEW_LINE>List<VirtualFile> allGeneratedFiles <MASK><NEW_LINE>BackgroundTaskByVfsChangeM... | = new ArrayList<VirtualFile>(); |
1,751,719 | public void testDataSourceLookup(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>Connection conn = ((DataSource) (new InitialContext().lookup("eis/ds1"))).getConnection("lookupUser", "pass");<NEW_LINE>try {<NEW_LINE>String expectedUser = "lookupUser";<NEW_LINE>String user = conn<MA... | .getMetaData().getUserName(); |
1,655,811 | public static JavaScriptNode create(JavaScriptNode left, JavaScriptNode right) {<NEW_LINE>if (left instanceof JSConstantNullNode) {<NEW_LINE>return IsNullNode.create(right, true);<NEW_LINE>} else if (right instanceof JSConstantNullNode) {<NEW_LINE>return IsNullNode.create(left, false);<NEW_LINE>} else if (left instance... | (null), right, true); |
894,665 | private void start() {<NEW_LINE>synchronized (lifecycleMonitor) {<NEW_LINE>if (!State.RUNNING.equals(state)) {<NEW_LINE>state = State.STARTING;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>do {<NEW_LINE>boolean valid = false;<NEW_LINE>synchronized (lifecycleMonitor) {<NEW_LINE>if (State.STARTING.equals(state)) {<NEW_LINE>MongoCursor... | .getRequestOptions(), targetType)); |
1,052,485 | public void encode(FacesContext context, Column column) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>String style = column.getStyle();<NEW_LINE>String styleClass = column.getStyleClass();<NEW_LINE>String defaultStyleClass = PanelGrid.CELL_CLASS + " ui-widget-header";<NEW_L... | column.getColspan(), null); |
862,889 | public static ListAppsResponse unmarshall(ListAppsResponse listAppsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listAppsResponse.setRequestId(_ctx.stringValue("ListAppsResponse.RequestId"));<NEW_LINE>List<AppsItem> apps = new ArrayList<AppsItem>();<NEW_LINE>for (int i = 0; i < _ctx.lengthValue("ListAppsResponse.Apps.... | ("ListAppsResponse.Apps[" + i + "].AppName")); |
330,796 | public Change createChange(IProgressMonitor pm) throws CoreException {<NEW_LINE>final Map<String, String> arguments = new HashMap<>();<NEW_LINE>String project = null;<NEW_LINE>IJavaProject javaProject = fField.getJavaProject();<NEW_LINE>if (javaProject != null) {<NEW_LINE>project = javaProject.getElementName();<NEW_LIN... | arguments.put(ATTRIBUTE_GETTER, fGetterName); |
1,684,940 | private String[] expandArgs(String[] originalArgv) {<NEW_LINE>List<String> vResult1 = Lists.newArrayList();<NEW_LINE>//<NEW_LINE>// Expand @<NEW_LINE>//<NEW_LINE>for (String arg : originalArgv) {<NEW_LINE>if (arg.startsWith("@") && options.expandAtSign) {<NEW_LINE>String fileName = arg.substring(1);<NEW_LINE>vResult1.a... | > vResult2 = Lists.newArrayList(); |
1,278,637 | public void init() {<NEW_LINE>Panel topp = new Panel(new BorderLayout());<NEW_LINE>string = new TextField("G%");<NEW_LINE>topp.add(string, BorderLayout.CENTER);<NEW_LINE>btn = new Button("Go7");<NEW_LINE>btn.addActionListener(this);<NEW_LINE>topp.add(btn, BorderLayout.EAST);<NEW_LINE>outp = new TextArea("", 20, 80, Tex... | url.getPort(), "/SOAP"); |
117,194 | private synchronized void createEventProperties() {<NEW_LINE>EventSetDescriptor[] eventSets = getBeanInfo().getEventSetDescriptors();<NEW_LINE>List<EventProperty> eventPropList = new ArrayList<EventProperty<MASK><NEW_LINE>for (int i = 0; i < eventSets.length; i++) {<NEW_LINE>EventSetDescriptor desc = eventSets[i];<NEW_... | >(eventSets.length * 5); |
1,628,038 | public void emitTopLeftFile(String tlf) {<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>h_.reportFile = new PrintWriter(fos);<NEW_LINE>h_.writeStartHTMLHeader();<NEW_LINE>h_.writeHTMLTitle("JDiff");<NEW_LINE>h_.writeStyleSheetRef();<NEW_LINE>h_.writeText("</HEAD>");<NEW_LINE>h_.writeText("<BODY>");<NEW_LINE>h_.writeText("<TA... | FileOutputStream fos = new FileOutputStream(tlf); |
640,202 | public void populate(final RubyModule target, final Class clazz) {<NEW_LINE>assert clazz == this.clazz : "populator for " + this.clazz + " used for " + clazz;<NEW_LINE>// fallback on non-pregenerated logic<NEW_LINE>// populate method index; this is done statically in generated code<NEW_LINE>AnnotationHelper.populateMet... | defineAnnotatedMethod(name, methods, methodFactory); |
24,614 | public static void writeTsneFormat(Word2Vec vec, INDArray tsne, File csv) throws Exception {<NEW_LINE>try (BufferedWriter write = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(csv), StandardCharsets.UTF_8))) {<NEW_LINE>int words = 0;<NEW_LINE>InMemoryLookupCache l = <MASK><NEW_LINE>for (String word : v... | (InMemoryLookupCache) vec.vocab(); |
884,364 | public void createAndRegisterMBeansForAllStoreStats(VoldemortConfig config, List<StoreDefinition> storeDefinitions) {<NEW_LINE>storeStatsMap = new <MASK><NEW_LINE>boolean isJmxEnabled = config.isJmxEnabled();<NEW_LINE>for (StoreDefinition storeDefinition : Utils.notNull(storeDefinitions)) {<NEW_LINE>String storeName = ... | ConcurrentHashMap<String, StoreStats>(); |
1,000,719 | public DatasetSummary unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DatasetSummary datasetSummary = new DatasetSummary();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth +... | "unixTimestamp").unmarshall(context)); |
1,195,665 | private int generateForecastResult(int M_Warehouse_ID) {<NEW_LINE>// Preview Calculate Data<NEW_LINE>deleteData();<NEW_LINE>// Get Period Base<NEW_LINE>m_period_definition_base = new MPPPeriodDefinition(getCtx(), m_run.<MASK><NEW_LINE>m_period_definition_target = new MPPPeriodDefinition(getCtx(), m_run.getPP_PeriodDefi... | getRef_DefinitionPeriod_ID(), get_TrxName()); |
1,163,996 | public CommitTransactionResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CommitTransactionResult commitTransactionResult = new CommitTransactionResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<... | int originalDepth = context.getCurrentDepth(); |
1,335,377 | public void appLoaded(String applicationName, SipAppDesc desc) {<NEW_LINE>ApplicationModuleInterface application = getAppObj(desc.getAppIndexForPmi());<NEW_LINE>if (application == null) {<NEW_LINE>application = PerformanceMgr.getInstance().getApplicationsPMIListener().getApplicationModule(applicationName);<NEW_LINE>// ... | Object[] args = { applicationName }; |
674,993 | public Map<String, Map<String, AttributeAdapter>> attributeAdaptersForFunction() {<NEW_LINE>Map<String, Map<String, AttributeAdapter>> ret = new HashMap<>();<NEW_LINE>Map<String, AttributeAdapter> tfMappings = new LinkedHashMap<>();<NEW_LINE>val fields = DifferentialFunctionClassHolder.getInstance().getFieldsForFunctio... | fields.get("dataFormat"))); |
1,183,664 | public void testCompletionStageRxInvoker_post2WithClass(Map<String, String> param, StringBuilder ret) {<NEW_LINE>String serverIP = param.get("serverIP");<NEW_LINE>String serverPort = param.get("serverPort");<NEW_LINE>final String threadName = "jaxrs21Thread";<NEW_LINE>ThreadFactory jaxrs21ThreadFactory = Executors.defa... | (book), JAXRS21Book.class); |
179,862 | /*<NEW_LINE>* this method should be called in readlock scope of 'rwLock'<NEW_LINE>*/<NEW_LINE>protected Set<BookieId> addDefaultRackBookiesIfMinNumRacksIsEnforced(Set<BookieId> excludeBookies) {<NEW_LINE>Set<BookieId> comprehensiveExclusionBookiesSet;<NEW_LINE>if (enforceMinNumRacksPerWriteQuorum) {<NEW_LINE>Set<Bookie... | topology.getLeaves(getDefaultRack()); |
1,300,012 | private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {<NEW_LINE>int featuresLength;<NEW_LINE>int version = in.readInt();<NEW_LINE>data = (ArrayList<Topication>) in.readObject();<NEW_LINE>alphabet = (Alphabet) in.readObject();<NEW_LINE>topicAlphabet = (LabelAlphabet) in.readObject();<... | (String) in.readObject(); |
1,374,772 | private void registerConstantSerializers(boolean isCompatibility) {<NEW_LINE>registerConstant(nullSerializerAdapter);<NEW_LINE>if (!isCompatibility) {<NEW_LINE>registerConstant(compactSerializerAdapter);<NEW_LINE>registerConstant(compactWithSchemaSerializerAdapter);<NEW_LINE>}<NEW_LINE>registerConstant(DataSerializable... | , new ConstantSerializers.SimpleImmutableEntrySerializer()); |
783,130 | public com.amazonaws.services.quicksight.model.ResourceExistsException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.quicksight.model.ResourceExistsException resourceExistsException = new com.amazonaws.services.<MASK><NEW_LINE>int originalDepth = context.getCu... | quicksight.model.ResourceExistsException(null); |
1,748,851 | ResourceResponse<Document> updateContainerDeletionEntry(short containerId, short accountId, BiConsumer<Document, AtomicBoolean> updateFields) throws DocumentClientException {<NEW_LINE>// Read the existing record<NEW_LINE>String id = CosmosContainerDeletionEntry.generateContainerDeletionEntryId(accountId, containerId);<... | logger.error("Error in update callback", ex); |
665,170 | private void initCols(Schema schema) throws SchemaChangeException {<NEW_LINE>ImmutableList.Builder<ProjectedColumnInfo> pciBuilder = ImmutableList.builder();<NEW_LINE>for (int i = 0; i < schema.getColumnCount(); i++) {<NEW_LINE>ColumnSchema col = schema.getColumnByIndex(i);<NEW_LINE>final String name = col.getName();<N... | Type kuduType = col.getType(); |
606,971 | public static DescribeDesktopGroupsResponse unmarshall(DescribeDesktopGroupsResponse describeDesktopGroupsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDesktopGroupsResponse.setRequestId(_ctx.stringValue("DescribeDesktopGroupsResponse.RequestId"));<NEW_LINE>describeDesktopGroupsResponse.setNextToken<MASK><NEW_... | (_ctx.stringValue("DescribeDesktopGroupsResponse.NextToken")); |
503,231 | protected void registJobHandler(XxlJob xxlJob, Object bean, Method executeMethod) {<NEW_LINE>if (xxlJob == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String name = xxlJob.value();<NEW_LINE>// make and simplify the variables since they'll be called several times later<NEW_LINE>Class<?> clazz = bean.getClass();<NEW_LIN... | , executeMethod, initMethod, destroyMethod)); |
1,357,600 | /*<NEW_LINE>* check if the specified backends can be decommissioned<NEW_LINE>* 1. backend should exist.<NEW_LINE>* 2. after decommission, the remaining backend num should meet the replication num.<NEW_LINE>* 3. after decommission, The remaining space capacity can store data on decommissioned backends.<NEW_LINE>*/<NEW_L... | SystemInfoService infoService = Env.getCurrentSystemInfo(); |
1,488,490 | public static DescribeTopDomainsByFlowResponse unmarshall(DescribeTopDomainsByFlowResponse describeTopDomainsByFlowResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeTopDomainsByFlowResponse.setRequestId(_ctx.stringValue("DescribeTopDomainsByFlowResponse.RequestId"));<NEW_LINE>describeTopDomainsByFlowResponse.setSt... | ("DescribeTopDomainsByFlowResponse.TopDomains[" + i + "].TotalAccess")); |
1,824,438 | public final ArgumentsContext arguments() throws RecognitionException {<NEW_LINE>ArgumentsContext _localctx = new ArgumentsContext(_ctx, getState());<NEW_LINE><MASK><NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>int _alt;<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState(251);<NEW_LINE>expression(0);<NEW_L... | enterRule(_localctx, 42, RULE_arguments); |
543,267 | private void addFindByCompletions(TypeElement entity, Map<String, String> prop2Types, String prefix, boolean full, Consumer consumer) {<NEW_LINE>for (String pattern : QUERY_PATTERNS) {<NEW_LINE>String name = pattern + BY;<NEW_LINE>if (prefix.length() >= name.length() && prefix.startsWith(name)) {<NEW_LINE>addPropertyCr... | ) ? "boolean" : "void" : null); |
1,749,198 | public void testUnmanagedThenCombineThenAcceptBoth() {<NEW_LINE>LinkedList<String> results = new LinkedList<String>();<NEW_LINE>CompletableFuture<String> cf1 = noContextExecutor.supplyAsync(() -> "param1");<NEW_LINE>CompletableFuture<String> cf2 = CompletableFuture.supplyAsync(() -> "param2");<NEW_LINE>CompletableFutur... | assertTrue(cf.isDone()); |
1,248,062 | public void performOperation(Random rnd, Genome[] parents, int parentIndex, Genome[] offspring, int offspringIndex) {<NEW_LINE>int countTrysToAddLink = this.getOwner().getMaxTries();<NEW_LINE>NEATGenome target = this.obtainGenome(parents, parentIndex, offspring, offspringIndex);<NEW_LINE>// the link will be between the... | getPopulation()).getWeightRange(); |
635,089 | public MonitoringClusterConfig unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>MonitoringClusterConfig monitoringClusterConfig = new MonitoringClusterConfig();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LI... | class).unmarshall(context)); |
1,811,183 | final int mergeDanglingTail(final DanglingChainMergeHelper danglingTailMergeResult) {<NEW_LINE>final List<CigarElement> elements = danglingTailMergeResult.cigar.getCigarElements();<NEW_LINE>final CigarElement lastElement = elements.get(elements.size() - 1);<NEW_LINE>Utils.validateArg(lastElement.getOperator() == CigarO... | .getOperator() == CigarOperator.D; |
1,487,763 | final DeleteApplicationResult executeDeleteApplication(DeleteApplicationRequest deleteApplicationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteApplicationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
1,550,008 | public boolean refine(List<AssociatedTriple> listObs, DMatrixRMaj P2, DMatrixRMaj P3) {<NEW_LINE>CommonOps_DDRM.setIdentity(P1);<NEW_LINE>initializeStructure(listObs, P2, P3);<NEW_LINE>if (scale) {<NEW_LINE>scaler.applyScale(structure, observations);<NEW_LINE>}<NEW_LINE>// sba.setVerbose(System.out,0);<NEW_LINE>sba.set... | .data[2].worldToView); |
625,569 | // Parses the specified source into a compilation unit with type bindings.<NEW_LINE>private CompilationUnit compileSource(String source, String sourceFilePath, String unitName, StringBuilder errors) throws Exception {<NEW_LINE>if (!unitName.endsWith(".java")) {<NEW_LINE>// The AST compiler is surprisingly insistent abo... | setSource(source.toCharArray()); |
1,307,794 | public Observable<Boolean> updateDepictsProperty(final String filename, final List<String> depictedItems) {<NEW_LINE>final EditClaim data = editClaim(// Wikipedia:Sandbox (Q10)<NEW_LINE>ConfigUtils.isBetaFlavour() ? // Wikipedia:Sandbox (Q10)<NEW_LINE>Collections.singletonList("Q10") : depictedItems);<NEW_LINE>return w... | context, throwable.toString()); |
997,842 | private void analyzeInterface(ClassInfo c, ClassReader cr) {<NEW_LINE>cr.accept(new ClassVisitor(ASM5) {<NEW_LINE><NEW_LINE>private String owner;<NEW_LINE><NEW_LINE>private String companion;<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void visit(int version, int access, String name, String signature, String superName,... | new MethodKind.Default(defaultImpl)); |
590,922 | protected String preprocessSnippet(String originalSnippet, Widget w) {<NEW_LINE>String snippet = originalSnippet;<NEW_LINE>snippet = StringUtils.replace(snippet, "%widget_id%", itemUIRegistry.getWidgetId(w));<NEW_LINE>snippet = StringUtils.replace(snippet, "%icon_type%", config.getIconType());<NEW_LINE>snippet = String... | text = itemUIRegistry.getLabel(w); |
1,523,233 | public JobInfoRead resetConnection(final ConnectionIdRequestBody connectionIdRequestBody) throws IOException, JsonValidationException, ConfigNotFoundException {<NEW_LINE>if (featureFlags.usesNewScheduler()) {<NEW_LINE>return resetConnectionWithNewScheduler(connectionIdRequestBody.getConnectionId());<NEW_LINE>}<NEW_LINE... | destination, standardSync, destinationImageName, standardSyncOperations); |
400,697 | protected boolean attach(ReferenceType theClass) {<NEW_LINE>if (theClass == null || className == null || !className.equals(parseTopLevelClassName(theClass.name()))) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>log("trying to attach: " + line.fileName + ":" + line.lineIdx + " to " + theClass.name());<NEW_LINE>if (!dbg.i... | javaLine = dbg.sketchToJavaLine(line); |
212,853 | private PageIds doIndexQueryOnce(IndexLabel indexLabel, ConditionQuery query) {<NEW_LINE>// Query all or one page<NEW_LINE>Iterator<BackendEntry> entries = null;<NEW_LINE>LockUtil.Locks locks = new LockUtil.Locks(this.graphName());<NEW_LINE>try {<NEW_LINE>locks.lockReads(LockUtil.INDEX_LABEL_DELETE, indexLabel.id());<N... | , PageInfo.pageState(entries)); |
1,262,028 | private void initComponentProperties(Product component) {<NEW_LINE>List<String> <MASK><NEW_LINE>if (properties == null) {<NEW_LINE>properties = new ArrayList<String>();<NEW_LINE>switch(component.getDetailedStatus()) {<NEW_LINE>case INSTALLED_WITH_WARNINGS:<NEW_LINE>for (Throwable warning : component.getInstallationWarn... | properties = propertiesMap.get(component); |
164,564 | private static void checkBlobContent(MockClusterMap clusterMap, BlobId blobId, ConnectedChannel channel, byte[] dataToCheck, byte[] encryptionKey) throws IOException, MessageFormatException {<NEW_LINE>ArrayList<BlobId> listIds = new ArrayList<BlobId>();<NEW_LINE>listIds.add(blobId);<NEW_LINE>ArrayList<PartitionRequestI... | ().get(0)); |
1,263,000 | public ImmutableList<HUDescriptor> createHuDescriptors(@NonNull final I_M_HU huRecord, final boolean deleted) {<NEW_LINE>final IMutableHUContext huContext = huContextFactory.createMutableHUContext();<NEW_LINE>final IHUStorage storage = huContext.getHUStorageFactory().getStorage(huRecord);<NEW_LINE>// Important note: we... | attributesKeyAndAsiId = createAttributesKeyAndAsiId(huContext, huRecord); |
1,141,458 | private List<Subspace> generateSubspaceCandidates(List<Subspace> subspaces) {<NEW_LINE>if (subspaces.isEmpty()) {<NEW_LINE>return Collections.emptyList();<NEW_LINE>}<NEW_LINE>StringBuilder msgFinest = LOG.isDebuggingFinest() ? new StringBuilder(1000) : null;<NEW_LINE>if (msgFinest != null) {<NEW_LINE>msgFinest.append("... | (subspaces.get(j)); |
1,359,682 | private void addImports(SrcLinkedClass srcClass) {<NEW_LINE>srcClass.addImport(Bindings.class);<NEW_LINE>srcClass.addImport(Endpoint.class);<NEW_LINE>srcClass.addImport(Executor.class);<NEW_LINE>srcClass.addImport(GqlQuery.class);<NEW_LINE>srcClass.addImport(GqlQueryResult.class);<NEW_LINE>srcClass.addImport(Requester.... | srcClass.addImport(IListBacked.class); |
495,442 | public HttpServiceResponse handle(HttpServiceRequest request) throws Exception {<NEW_LINE>HttpServiceResponse response = new HttpServiceResponse();<NEW_LINE>// only handle DELETE method<NEW_LINE>if (HttpServer.Method.DELETE == request.getMethod()) {<NEW_LINE>Map<String, String> params = request.getParams();<NEW_LINE>if... | (params.get("ledger_id")); |
1,720,891 | final AddUploadBufferResult executeAddUploadBuffer(AddUploadBufferRequest addUploadBufferRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(addUploadBufferRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
309,761 | public void doConnect() {<NEW_LINE>Set<String> diffSet = new HashSet<>();<NEW_LINE>Set<String> connectedNodes = new HashSet<>();<NEW_LINE>for (Map.Entry<String, NioClient> entry : socketDict.entrySet()) {<NEW_LINE>connectedNodes.add(entry.getKey());<NEW_LINE>}<NEW_LINE>diffSet.addAll(connectSet);<NEW_LINE>diffSet.remov... | socketDict.put(client, clientSock); |
651,810 | private void symbolLifespanChanged(TraceAddressSpace space, TraceSymbolWithLifespan symbol, Range<Long> oldSpan, Range<Long> newSpan) {<NEW_LINE>DomainObjectEventQueues queues = getEventQueues(space);<NEW_LINE>if (queues == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>boolean inOld = isSymbolWithLifespanVisible(symbol,... | .getBody(), null)); |
816,918 | static boolean removeJndiFromLog4jContextLookup() throws ClassNotFoundException, NoSuchMethodException, InvocationTargetException, IllegalAccessException, NoSuchFieldException {<NEW_LINE>ClassLoader classLoader = Thread.currentThread().getContextClassLoader();<NEW_LINE>Class<?> <MASK><NEW_LINE>Class<?> log4jContextFact... | configuratorClass = classLoader.loadClass("org.apache.logging.log4j.core.config.Configurator"); |
880,471 | private int readPlaintextDataHeap(ByteBuffer dst, int len) throws IOException, CertificateException {<NEW_LINE>AllocatedBuffer allocatedBuffer = null;<NEW_LINE>try {<NEW_LINE>final ByteBuffer buffer;<NEW_LINE>if (bufferAllocator != null) {<NEW_LINE>allocatedBuffer = bufferAllocator.allocateDirectBuffer(len);<NEW_LINE>b... | len, buffer.remaining()); |
1,213,539 | public R53ResourceRecord unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>R53ResourceRecord r53ResourceRecord = new R53ResourceRecord();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token... | int originalDepth = context.getCurrentDepth(); |
1,020,111 | public Mono<Response<PrivateLinkResourcesListResultInner>> listWithResponseAsync(String resourceGroupName, String resourceName) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<... | )).readOnly())); |
1,234,374 | private void queueActionLocked(DeltaType actionType, KubernetesObject obj) {<NEW_LINE>String id = this.keyOf(obj);<NEW_LINE>Deque<MutablePair<DeltaType, KubernetesObject>> deltas = items.get(id);<NEW_LINE>if (deltas == null) {<NEW_LINE>deltas = new LinkedList<>();<NEW_LINE>deltas.add(new MutablePair(actionType, obj));<... | this.items.remove(id); |
811,460 | public String render(DataObjectModel model, int index, int size, Map<String, Object> session) {<NEW_LINE>StringWriter sw = new StringWriter();<NEW_LINE>PrintWriter writer = new PrintWriter(sw);<NEW_LINE>if (index == 0) {<NEW_LINE>Util.generateLicense(writer);<NEW_LINE>writer.printf("/// <reference types=\"%s/options\" ... | writer, fqcn.toString()); |
1,197,029 | synchronized void markItemAsFailed(int slot, Exception e) {<NEW_LINE>IndexRequest indexRequest = getIndexWriteRequest(bulkRequest.requests().get(slot));<NEW_LINE>logger.debug(String.format(Locale.ROOT, "failed to execute pipeline [%s] for document [%s/%s]", indexRequest.getPipeline(), indexRequest.index(), indexRequest... | .opType(), failure)); |
1,392,698 | protected List<Long> wakeupScan() {<NEW_LINE>final Date cutDate = DateUtil.currentGMTTime();<NEW_LINE>SearchCriteria<Long> sc = JoinJobTimeSearch.create();<NEW_LINE>sc.setParameters("beginTime", cutDate);<NEW_LINE>sc.setParameters("endTime", cutDate);<NEW_LINE>final List<Long> result = _joinMapDao.customSearch(sc, null... | [result.size()]); |
1,442,322 | public void start() {<NEW_LINE>if (current != null) {<NEW_LINE>current.show();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Form hi = new Form("Hi World", BoxLayout.y());<NEW_LINE>Label l = new Label("Hi World");<NEW_LINE>FlowLayout fl = new FlowLayout();<NEW_LINE>fl.setAlign(CENTER);<NEW_LINE>Container row = new Container(fl)... | AutoCompleteTextField("Red", "Green", "Blue"); |
278,981 | // -----------------------------------------------------<NEW_LINE>// Actually Crud<NEW_LINE>// -------------<NEW_LINE>@Execute<NEW_LINE>@Secured({ ROLE })<NEW_LINE>public HtmlResponse create(final CreateForm form) {<NEW_LINE>verifyCrudMode(<MASK><NEW_LINE>validate(form, messages -> {<NEW_LINE>}, this::asEditHtml);<NEW_... | form.crudMode, CrudMode.CREATE); |
258,683 | public void insertChar(int index, char c) {<NEW_LINE>int j = Arrays.binarySearch(inserts, index);<NEW_LINE>if (j < 0)<NEW_LINE><MASK><NEW_LINE>char[] newChars = new char[chars.length + 1];<NEW_LINE>System.arraycopy(chars, 0, newChars, 0, j);<NEW_LINE>newChars[j] = c;<NEW_LINE>System.arraycopy(chars, j, newChars, j + 1,... | j = -(j + 1); |
671,958 | public TopLevelStepExecutionEntity createTopLevelStepExecutionAndNewThreadInstance(long jobExecutionId, StepThreadInstanceKey instanceKey, boolean isPartitioned) {<NEW_LINE>// 1. Find related objects<NEW_LINE>// OK, exception handling is slightly different than JPA, we're throwing a different unchecked exception, but w... | instanceKey.getStepName(), isPartitioned); |
1,596,402 | public GovernanceResult<List<Integer>> prepareUploadFile(String fileId, String filename, String topic, String groupId, long totalSize, Integer chunkSize) throws GovernanceException {<NEW_LINE>if (this.fileChunksMap.containsKey(fileId)) {<NEW_LINE>FileChunksMeta fileChunksMeta = this.fileChunksMap.get(fileId).getKey();<... | .ok(chunkUploadedList(fileChunksMeta)); |
300,714 | public ExperimentRun cloneExperimentRun(CloneExperimentRun cloneExperimentRun, UserInfo userInfo) throws ModelDBException {<NEW_LINE>var srcExperimentRun = getExperimentRun(cloneExperimentRun.getSrcExperimentRunId());<NEW_LINE>// Validate if current user has access to the entity or not<NEW_LINE>mdbRoleService.validateE... | ) + "' not found", Code.NOT_FOUND); |
375,293 | public void load(List<String> filenames) {<NEW_LINE>if (filenames.isEmpty()) {<NEW_LINE>output.print("No files to load");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ProgressMonitor monitor = createProgressMonitor(output);<NEW_LINE>boolean multipleFiles = (filenames.size() > 1);<NEW_LINE>String file1 = null;<NEW_LINE>if (!mul... | monitor.startMessage("Start: " + file1); |
872,855 | public SearchSourceBuilder create(SearchCommand searchCommand) {<NEW_LINE>final String query = normalizeQuery(searchCommand.query());<NEW_LINE>final QueryBuilder queryBuilder = isWildcardQuery(query) ? matchAllQuery() : queryStringQuery(query).allowLeadingWildcard(allowLeadingWildcardSearches);<NEW_LINE>final Optional<... | boolQuery().must(queryBuilder); |
1,766,897 | private EurekaClientConfig createEurekaClientConfig() throws Exception {<NEW_LINE>// Cluster connectivity<NEW_LINE>URI serviceURI;<NEW_LINE>if (portResolverCallable != null) {<NEW_LINE>serviceURI = new URI("http://localhost:" + portResolverCallable.call() + "/eureka/v2/");<NEW_LINE>} else if (eurekaHttpServer != null) ... | (',').append(region); |
105,776 | public void moveMigratedFiles(DatabaseLayout migrationLayoutArg, DatabaseLayout directoryLayoutArg, String versionToUpgradeFrom, String versionToUpgradeTo) throws IOException {<NEW_LINE>RecordDatabaseLayout directoryLayout = RecordDatabaseLayout.convert(directoryLayoutArg);<NEW_LINE>RecordDatabaseLayout migrationLayout... | cursorContext, StoreCursors.NULL, memoryTracker); |
349,247 | public static void main(String[] args) {<NEW_LINE>System.out.println("Usage: java -jar ... [PSK] [ECDHE_PSK] [RPK] [X509] [WANT_AUTH|NO_AUTH]");<NEW_LINE><MASK><NEW_LINE>Configuration configuration = Configuration.createWithFile(CONFIG_FILE, CONFIG_HEADER, DEFAULTS);<NEW_LINE>Configuration.setStandard(configuration);<N... | System.out.println("Default : [PSK] [ECDHE_PSK] [RPK] [X509]"); |
822,880 | private void end(Buffer chunk, PromiseInternal<Void> listener) {<NEW_LINE>synchronized (conn) {<NEW_LINE>if (written) {<NEW_LINE>throw new IllegalStateException(RESPONSE_WRITTEN);<NEW_LINE>}<NEW_LINE>ByteBuf data = chunk.getByteBuf();<NEW_LINE>bytesWritten += data.readableBytes();<NEW_LINE>HttpObject msg;<NEW_LINE>if (... | = new AssembledLastHttpContent(data, trailingHeaders); |
1,155,049 | public Integer call() throws Exception {<NEW_LINE>String queryString = query.getParameterAsClass("query", String.class);<NEW_LINE>Integer start = query.getParameterAsClass("start", Integer.class);<NEW_LINE>Integer maxResult = query.getParameterAsClass("count", Integer.class);<NEW_LINE>WebTarget local = webTarget.queryP... | parseInt(count.getText()); |
1,299,086 | public void printRequirements(ComponentInfo info) {<NEW_LINE>if (isSilent()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Map<String, String> requiredCaps = info.getRequiredGraalValues();<NEW_LINE>Map<String, String<MASK><NEW_LINE>if (feedback.verboseOutput("VERIFY_VerboseCheckRequirements", catalog.shortenComponentId(info),... | > graalCaps = localRegistry.getGraalCapabilities(); |
1,673,282 | public HttpResponse handlePlayersRequest(HttpRequest request) {<NEW_LINE>if (!request.getMethod().equalsIgnoreCase("GET"))<NEW_LINE>return new HttpResponse(HttpStatusCode.BAD_REQUEST);<NEW_LINE>try (StringWriter data = new StringWriter();<NEW_LINE>JsonWriter json = new JsonWriter(data)) {<NEW_LINE>json.beginObject();<N... | getName().toPlainString()); |
223,815 | final DeleteFilterResult executeDeleteFilter(DeleteFilterRequest deleteFilterRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteFilterRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec... | invoke(request, responseHandler, executionContext); |
875,220 | protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_bit_idauthentication);<NEW_LINE>request = (BitIDSignRequest) getIntent().getSerializableExtra(REQUEST);<NEW_LINE>signInButton = (Button) findViewById(R.id.btSignUp);<NEW_LINE>error... | warning.setVisibility(View.GONE); |
633,362 | public List<RequestHandler> extract(EntityAssociationContext context) {<NEW_LINE>List<RequestHandler> handlers = new ArrayList<>();<NEW_LINE>PersistentProperty<?> property = context.getAssociation().getInverse();<NEW_LINE>String propertyIdentifier = propertyIdentifierName(property);<NEW_LINE>String mappingPath = contex... | resourcePath(), mappingPath, propertyIdentifier); |
553,957 | public Graph createGraph(Assembler a, Resource root, Mode mode) {<NEW_LINE>Resource graph = getResourceValue(root, VocabRDFS.pGraph);<NEW_LINE>if (graph == null)<NEW_LINE>throw new AssemblerException(root, "Required base graph missing: " + VocabRDFS.tGraphRDFS);<NEW_LINE>Model base = (Model) Assembler.general.open(grap... | setup = RDFSFactory.setupRDFS(schema); |
316,513 | private static <T> T visitRecord(Types.StructType struct, Schema record, AvroSchemaWithTypeVisitor<T> visitor) {<NEW_LINE>// check to make sure this hasn't been visited before<NEW_LINE>String name = record.getFullName();<NEW_LINE>Preconditions.checkState(!visitor.recordLevels.contains(name), "Cannot process recursive A... | fieldId = AvroSchemaUtil.getFieldId(field); |
1,199,935 | private void generateMissingTypesAttribute() {<NEW_LINE>int initialSize = this.missingTypes.size();<NEW_LINE>int[] missingTypesIndexes = new int[initialSize];<NEW_LINE>int numberOfMissingTypes = 0;<NEW_LINE>if (initialSize > 1) {<NEW_LINE>Collections.sort(this.missingTypes, new Comparator() {<NEW_LINE><NEW_LINE>@Overri... | byte) (attributeLength >> 16); |
1,108,560 | private static void sendOrderEvent(RegressionEnvironment env, EventRepresentationChoice eventRepresentationEnum, String orderId, String productId, double price, int quantity, boolean deletedFlag) {<NEW_LINE>if (eventRepresentationEnum.isObjectArrayEvent()) {<NEW_LINE>env.sendEventObjectArray(new Object[] { orderId, pro... | LinkedHashMap<String, Object>(); |
1,826,953 | public void resIdsExist(Element element, Res res, FallbackStrategy fallbackStrategy, ElementValidation valid) {<NEW_LINE>String annotationName = idAnnotationHelper.getTarget();<NEW_LINE>int[] resIds = idAnnotationHelper.extractAnnotationResIdValueParameter(element, annotationName);<NEW_LINE>if (idAnnotationHelper.defau... | idAnnotationHelper.extractElementName(element, annotationName); |
1,705,490 | public void uploadPagesFromUrlWithResponseCodeSnippet() {<NEW_LINE>// BEGIN: com.azure.storage.blob.specialized.PageBlobAsyncClient.uploadPagesFromUrlWithResponse#PageRange-String-Long-byte-PageBlobRequestConditions-BlobRequestConditions<NEW_LINE>PageRange pageRange = new PageRange().setStart(0).setEnd(511);<NEW_LINE>I... | ] sourceContentMD5 = new byte[512]; |
25,373 | private static int[] switchOnType(final Class<?> type, Identifiers ids) throws IllegalStateException {<NEW_LINE>if (type.isPrimitive()) {<NEW_LINE>if (type == Boolean.TYPE) {<NEW_LINE>return new int[] { TYPE_BOOLEAN, 1 };<NEW_LINE>} else if (type == Character.TYPE) {<NEW_LINE>return new int[] { TYPE_CHAR, 2 };<NEW_LINE... | int[] { TYPE_SHORT, 2 }; |
666,537 | public ListFlowsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListFlowsResult listFlowsResult = new ListFlowsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken... | String currentParentElement = context.getCurrentParentElement(); |
199,045 | public void notifyNewMessage(final HttpMessage msg) {<NEW_LINE>HistoryReference hRef = msg.getHistoryRef();<NEW_LINE>if (hRef == null) {<NEW_LINE>try {<NEW_LINE>hRef = new HistoryReference(Model.getSingleton().getSession(), HistoryReference.TYPE_SCANNER_TEMPORARY, msg);<NEW_LINE>msg.setHistoryRef(null);<NEW_LINE>hRefs.... | add(hRef.getHistoryId()); |
1,714,586 | private boolean checkWebSocketRequest(ServletRequest req, Object wsocContainer) throws ServletException {<NEW_LINE>if (checkIfUpgradeHeader(req)) {<NEW_LINE>// determine the websocket container for this web module, and the websocket endpoint class for this request<NEW_LINE>ServerContainerExt container = (ServerContaine... | Tr.debug(tc, "Not a websocket request"); |
793,683 | final DescribeChannelBanResult executeDescribeChannelBan(DescribeChannelBanRequest describeChannelBanRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeChannelBanRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
1,723,233 | private static ReferenceResolver<NestableInput<?>> createPartitionColumnResolver(Index index, Schemas schemas) {<NEW_LINE>PartitionName partitionName;<NEW_LINE>try {<NEW_LINE>partitionName = PartitionName.fromIndexOrTemplate(index.getName());<NEW_LINE>} catch (IllegalArgumentException e) {<NEW_LINE>throw new UnhandledS... | index, relationName.fqn()); |
1,466,544 | private static String convertType(@NotNull PsiFile file, @Nullable GoType type, @NotNull Map<String, GoImportSpec> importMap) {<NEW_LINE>if (type == null)<NEW_LINE>return GoConstants.INTERFACE_TYPE;<NEW_LINE>Module module = ModuleUtilCore.findModuleForPsiElement(file);<NEW_LINE>boolean vendoringEnabled = GoVendoringUti... | module, file.getVirtualFile()); |
262,243 | protected void onResolverStateUpdated(Resolver resolver) {<NEW_LINE>mResolver = resolver;<NEW_LINE>if (!(resolver instanceof ScriptResolver) || ((ScriptResolver) resolver).getScriptAccount().getMetaData().manifest.iconBackground != null) {<NEW_LINE>resolver.loadIconBackground(mHeaderBackground, !resolver.isEnabled());<... | buttonImage, R.color.tomahawk_red); |
1,782,542 | public com.amazonaws.services.stepfunctions.model.InvalidTokenException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.stepfunctions.model.InvalidTokenException invalidTokenException = new com.amazonaws.services.stepfunctions.model.InvalidTokenException(null);<... | JsonToken token = context.getCurrentToken(); |
830,235 | public void computeHistoryDate() {<NEW_LINE>if (m_date <= 0) {<NEW_LINE>m_date = TimeHelper.getCurrentDay(-1).getTime();<NEW_LINE>}<NEW_LINE>Calendar cal = Calendar.getInstance();<NEW_LINE>cal.setTimeInMillis(m_date);<NEW_LINE>cal.set(Calendar.HOUR_OF_DAY, 0);<NEW_LINE>m_date = cal.getTimeInMillis();<NEW_LINE>if ("mont... | TimeHelper.ONE_HOUR * 24) * m_step; |
1,031,087 | public boolean estimate(List<Homography2D_F64> viewsI_to_view0, CameraPinhole calibration) {<NEW_LINE>singular = false;<NEW_LINE>int N = viewsI_to_view0.size();<NEW_LINE>ensureDeterminantOfOne(viewsI_to_view0);<NEW_LINE>A.reshape(N * 6, 6);<NEW_LINE>for (int i = 0; i < N; i++) {<NEW_LINE>add(i, viewsI_to_view0.get(i), ... | nullVector(svd, true, nv); |
1,610,229 | public void draw(InstancePainter painter) {<NEW_LINE>final var data = getKeyboardState(painter);<NEW_LINE>final var bds = painter.getInstance().getBounds();<NEW_LINE>final var g = painter.getGraphics();<NEW_LINE>final var fm = g.getFontMetrics(DEFAULT_FONT);<NEW_LINE>String str;<NEW_LINE>int cursor;<NEW_LINE>int dispSt... | .substring(dispStart, cursor)); |
1,483,179 | private void handleCloseReason(ChannelHandlerContext ctx, CloseReason cr, boolean writeCloseReason) {<NEW_LINE>cleanupBuffer();<NEW_LINE>if (closed.compareAndSet(false, true)) {<NEW_LINE>if (LOG.isDebugEnabled()) {<NEW_LINE>LOG.debug("Closing WebSocket session {} with reason {}", getSession(), cr);<NEW_LINE>}<NEW_LINE>... | > methodExecutionHandle = opt.get(); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.