idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
111,096 | public boolean matchesName(char[] pattern, char[] name) {<NEW_LINE>// null is as if it was "*"<NEW_LINE>if (pattern == null)<NEW_LINE>return true;<NEW_LINE>if (name != null) {<NEW_LINE>boolean isCaseSensitive = (this.matchRule & R_CASE_SENSITIVE) != 0;<NEW_LINE>int matchMode = this.matchRule & MODE_MASK;<NEW_LINE>boole... | match(pattern, name, isCaseSensitive); |
680,355 | private void recordAttributes(SpanEventRecorder recorder, MethodDescriptor methodDescriptor, Object[] args) {<NEW_LINE>if (methodDescriptor.getMethodName().equals("execute")) {<NEW_LINE>recorder.recordAttribute(ElasticsearchConstants.ARGS_URL_ANNOTATION_KEY, args[0]);<NEW_LINE>if (recordDsl) {<NEW_LINE>recorder.recordA... | .ARGS_RESPONSEHANDLE_ANNOTATION_KEY, args[3]); |
296,658 | // Writes a .SF file with a digest to the manifest.<NEW_LINE>private static void writeSignatureFile(SignatureOutputStream out, Manifest manifest) throws IOException, GeneralSecurityException {<NEW_LINE>Manifest sf = new Manifest();<NEW_LINE>Attributes main = sf.getMainAttributes();<NEW_LINE>main.putValue("Signature-Ver... | (md.digest())); |
1,224,642 | final ListDataIntegrationAssociationsResult executeListDataIntegrationAssociations(ListDataIntegrationAssociationsRequest listDataIntegrationAssociationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listDataIntegrationAssociationsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = ... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
629,753 | public List<ExpressInfo> query(ExpressCompany company, String num) {<NEW_LINE>String appId = JPressOptions.get("express_api_appid");<NEW_LINE>String <MASK><NEW_LINE>String param = "{\"com\":\"" + company.getCode() + "\",\"num\":\"" + num + "\"}";<NEW_LINE>String sign = HashKit.md5(param + appSecret + appId).toUpperCase... | appSecret = JPressOptions.get("express_api_appsecret"); |
1,809,201 | public PollState poll(final Handler<T> eventHandler) throws Exception {<NEW_LINE>final <MASK><NEW_LINE>long nextSequence = currentSequence + 1;<NEW_LINE>final long availableSequence = sequencer.getHighestPublishedSequence(nextSequence, gatingSequence.get());<NEW_LINE>if (nextSequence <= availableSequence) {<NEW_LINE>bo... | long currentSequence = sequence.get(); |
733,150 | protected Object doNoClosure(VirtualFrame frame, PFunction callee, @SuppressWarnings("unused") PythonObject globals, @SuppressWarnings("unused") PCell[] closure, Object[] arguments, @Cached ConditionProfile generatorFunctionProfile) {<NEW_LINE>RootCallTarget ct = (RootCallTarget) callNode.getCurrentCallTarget();<NEW_LI... | enter(threadState, arguments, ct); |
12,451 | public Request<DescribeSpotFleetRequestHistoryRequest> marshall(DescribeSpotFleetRequestHistoryRequest describeSpotFleetRequestHistoryRequest) {<NEW_LINE>if (describeSpotFleetRequestHistoryRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<D... | request.setHttpMethod(HttpMethodName.POST); |
1,821,530 | public Void visitFunctionCall(final FunctionCall functionCall, final Void context) {<NEW_LINE>final FunctionName functionName = functionCall.getName();<NEW_LINE>final boolean isTableFunction = metaStore.isTableFunction(functionName);<NEW_LINE>if (isTableFunction) {<NEW_LINE>if (tableFunctionName.isPresent()) {<NEW_LINE... | tableFunctionName = Optional.of(functionName); |
620,665 | public void marshall(RegisterDomainRequest registerDomainRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (registerDomainRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MASK><NEW_LINE>proto... | registerDomainRequest.getDomainName(), DOMAINNAME_BINDING); |
193,548 | // algo.scc.iterative<NEW_LINE>@Procedure(value = "algo.scc.iterative", mode = Mode.WRITE)<NEW_LINE>@Description("CALL algo.scc.iterative(label:String, relationship:String, config:Map<String, Object>) YIELD " + "loadMillis, computeMillis, writeMillis, setCount, maxSetSize, minSetSize")<NEW_LINE>public Stream<SCCResult>... | Stream.of(SCCResult.EMPTY); |
587,443 | public static void fhirResourceListHistory(String resourceName) throws IOException, URISyntaxException {<NEW_LINE>// String resourceName =<NEW_LINE>// String.format(<NEW_LINE>// FHIR_NAME, "project-id", "region-id", "dataset-id", "store-id", "resource-type",<NEW_LINE>// "resource-id");<NEW_LINE>// Initialize the client... | client.getRootUrl(), resourceName); |
1,602,084 | final DeleteTapeResult executeDeleteTape(DeleteTapeRequest deleteTapeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteTapeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<... | false), new DeleteTapeResultJsonUnmarshaller()); |
13,651 | public void onError(java.lang.Exception e) {<NEW_LINE>byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;<NEW_LINE>org.apache.thrift.TSerializable msg;<NEW_LINE>closeMultiScan_result result = new closeMultiScan_result();<NEW_LINE>if (e instanceof NoSuchScanIDException) {<NEW_LINE>result.nssi = (NoSuchScanIDEx... | INTERNAL_ERROR, e.getMessage()); |
808,081 | private void loadAcceleratorPreset(final String shortcutKey, final String keystrokeString, Properties allPresets) {<NEW_LINE>if (!shortcutKey.startsWith(SHORTCUT_PROPERTY_PREFIX)) {<NEW_LINE>LogUtils.warn("wrong property key " + shortcutKey);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final int pos = shortcutKey.indexOf("/",... | setAccelerator(modeController, action, keyStroke); |
1,092,998 | Node processObjectLiteral(ObjectLiteralExpressionTree objTree) {<NEW_LINE>Node node = newNode(Token.OBJECTLIT);<NEW_LINE><MASK><NEW_LINE>boolean maybeWarn = false;<NEW_LINE>for (ParseTree el : objTree.propertyNameAndValues) {<NEW_LINE>if (el.type == ParseTreeType.DEFAULT_PARAMETER) {<NEW_LINE>// (e.g. var o = { x=4 };)... | node.setTrailingComma(objTree.hasTrailingComma); |
108,766 | public synchronized TermuxSession createTermuxSession(ExecutionCommand executionCommand, String sessionName) {<NEW_LINE>if (executionCommand == null)<NEW_LINE>return null;<NEW_LINE>Logger.logDebug(LOG_TAG, "Creating \"" + <MASK><NEW_LINE>if (!Runner.TERMINAL_SESSION.equalsRunner(executionCommand.runner)) {<NEW_LINE>Log... | executionCommand.getCommandIdAndLabelLogString() + "\" TermuxSession"); |
768,959 | protected DatadogReporter createInstance() {<NEW_LINE>final DatadogReporter.Builder reporter = <MASK><NEW_LINE>final Transport transport;<NEW_LINE>String transportName = getProperty(TRANSPORT);<NEW_LINE>if ("http".equalsIgnoreCase(transportName)) {<NEW_LINE>HttpTransport.Builder builder = new HttpTransport.Builder();<N... | DatadogReporter.forRegistry(getMetricRegistry()); |
1,483,061 | private MatOfPoint2f findImagePoints(Mat mat) {<NEW_LINE>MatOfPoint2f imagePoints = new MatOfPoint2f();<NEW_LINE>boolean found = false;<NEW_LINE>switch(pattern) {<NEW_LINE>case Chessboard:<NEW_LINE>int chessBoardFlags = Calib3d.CALIB_CB_ADAPTIVE_THRESH | Calib3d.CALIB_CB_NORMALIZE_IMAGE;<NEW_LINE>if (lensModel != LensM... | mat, patternSize, imagePoints, chessBoardFlags); |
724,690 | public static DescribeDomainCertificateInfoResponse unmarshall(DescribeDomainCertificateInfoResponse describeDomainCertificateInfoResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDomainCertificateInfoResponse.setRequestId(_ctx.stringValue("DescribeDomainCertificateInfoResponse.RequestId"));<NEW_LINE>List<CertInfo... | ("DescribeDomainCertificateInfoResponse.CertInfos[" + i + "].Status")); |
786,493 | public void save() {<NEW_LINE>if (hasItem() && !mLoading) {<NEW_LINE>R820TTunerConfiguration config = getConfiguration();<NEW_LINE>config.setName(mConfigurationName.getText());<NEW_LINE>double value = ((SpinnerNumberModel) mFrequencyCorrection.getModel()).getNumber().doubleValue();<NEW_LINE>config.setFrequencyCorrectio... | (R820TLNAGain) mComboLNAGain.getSelectedItem(); |
1,099,652 | public void process(Supplier<Context> context) {<NEW_LINE>Context ctx = context.get();<NEW_LINE>if (ctx.getDirection().getReceptionSide() == LogicalSide.SERVER) {<NEW_LINE>ServerPlayer player = ctx.getSender();<NEW_LINE>assert player != null;<NEW_LINE>UUID playerId = player.getUUID();<NEW_LINE>ctx.enqueueWork(() -> {<N... | (playerId, args[0]); |
1,011,044 | public void loadAttachments() {<NEW_LINE>log.<MASK><NEW_LINE>if (!canHaveAttachment())<NEW_LINE>return;<NEW_LINE>String SQL = "SELECT AD_Attachment_ID, Record_ID FROM AD_Attachment " + "WHERE AD_Table_ID=?";<NEW_LINE>try {<NEW_LINE>if (m_Attachments == null)<NEW_LINE>m_Attachments = new HashMap<Integer, Integer>();<NEW... | fine("#" + m_vo.TabNo); |
1,588,661 | protected final void postStateChange(AtmosphereResourceEvent event) {<NEW_LINE>if (event.isCancelled() || event.isResuming())<NEW_LINE>return;<NEW_LINE>AtmosphereResourceImpl r = AtmosphereResourceImpl.class.cast(event.getResource());<NEW_LINE>// Between event.isCancelled and resource, the connection has been remotly c... | ).getAttribute(ApplicationConfig.RESUME_ON_BROADCAST); |
327,020 | final DeleteMemberResult executeDeleteMember(DeleteMemberRequest deleteMemberRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteMemberRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<DeleteMemberRequest> ... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
661,322 | private NonLazyDafnySequence<T> computeElements() {<NEW_LINE>// Somewhat arbitrarily, the copier will be created by the leftmost<NEW_LINE>// sequence. This is fine unless native Java code is uncareful and has<NEW_LINE>// has created ArrayDafnySequences of boxed primitive types.<NEW_LINE>Copier<T> copier;<NEW_LINE>// T... | = (ConcatDafnySequence<T>) seq; |
1,191,742 | ASTNode clone0(AST target) {<NEW_LINE>MethodDeclaration result = new MethodDeclaration(target);<NEW_LINE>result.setSourceRange(getStartPosition(), getLength());<NEW_LINE>result.setJavadoc((Javadoc) ASTNode.copySubtree(target, getJavadoc()));<NEW_LINE>if (this.ast.apiLevel == AST.JLS2_INTERNAL) {<NEW_LINE>result.interna... | (target, typeParameters())); |
747,274 | private static Consumer<List<StreamedRow>> streamedRowsHandler(final KsqlNode owner, final PullQueryQueue pullQueryQueue, final BiFunction<List<?>, LogicalSchema, PullQueryRow> rowFactory, final LogicalSchema outputSchema, final Optional<ConsistencyOffsetVector> consistencyOffsetVector) {<NEW_LINE>final AtomicInteger p... | .getSchema(), owner)); |
354,954 | public static void print(@Nonnull BuildTextConsoleView consoleView, @Nonnull String group, @Nonnull BuildIssue buildIssue) {<NEW_LINE>Project project = consoleView.getProject();<NEW_LINE>Map<String, NotificationListener> <MASK><NEW_LINE>for (BuildIssueQuickFix quickFix : buildIssue.getQuickFixes()) {<NEW_LINE>listenerM... | listenerMap = new LinkedHashMap<>(); |
680,754 | public boolean validateObject(WorkerKey key, PooledObject<Worker> p) {<NEW_LINE>Worker worker = p.getObject();<NEW_LINE>Optional<Integer<MASK><NEW_LINE>if (exitValue.isPresent()) {<NEW_LINE>if (reporter != null && worker.diedUnexpectedly()) {<NEW_LINE>String msg = String.format("%s %s (id %d) has unexpectedly died with... | > exitValue = worker.getExitValue(); |
1,320,690 | private void doInsertData(T data, QuadRect box, Node<T> n, int depth) {<NEW_LINE>if (++depth >= maxDepth) {<NEW_LINE>if (n.data == null) {<NEW_LINE>n.data = new ArrayList<T>();<NEW_LINE>}<NEW_LINE>n.data.add(data);<NEW_LINE>} else {<NEW_LINE>QuadRect[] ext = new QuadRect[4];<NEW_LINE>splitBox(n.bounds, ext);<NEW_LINE>f... | .children[i], depth); |
791,984 | private void evaluateExpression(RequestContainer request, ResponseContainer response, ContentEditor contentView, String qry) {<NEW_LINE>var aspect = response.getAspect(RestResponseBodyAspect.class);<NEW_LINE>CompletableFuture<String> body = aspect.map(b -> b.getBody()).map(b -> {<NEW_LINE>var buffer = new StringBuffer(... | = new CompletableFuture<String>(); |
564,996 | protected void onSizeChanged(final int w, final int h, int oldw, int oldh) {<NEW_LINE>super.onSizeChanged(w, h, oldw, oldh);<NEW_LINE>if (getChildCount() > 0) {<NEW_LINE>if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) {<NEW_LINE>getChildAt(0).layout(getChildAt(0).getLeft(), getChildAt(0).getTop(), getChildAt(... | ).getTop() + h); |
102,073 | final DescribeConfigurationAggregatorSourcesStatusResult executeDescribeConfigurationAggregatorSourcesStatus(DescribeConfigurationAggregatorSourcesStatusRequest describeConfigurationAggregatorSourcesStatusRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeConfigurationAggregatorSourc... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
1,781,322 | private TreeNode visitGraphStep(GraphStep step) {<NEW_LINE>if (step instanceof MaxGraphStep) {<NEW_LINE>Map<String, Object> queryConfig = ((MaxGraphStep) step).getQueryConfig();<NEW_LINE>if (null != queryConfig) {<NEW_LINE>this.queryConfig.putAll(queryConfig);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>Object[] ids = step.getIds()... | setInitialSackValue(supplier.get()); |
1,155,984 | public Object calculate(Context ctx) {<NEW_LINE>if (param == null || !param.isLeaf()) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("pdate" + mm.getMessage("function.invalidParam"));<NEW_LINE>}<NEW_LINE>Object result = param.getLeafExpression().calculate(ctx);<NEW_LINE>if (result ==... | get().monthBegin(date); |
729,574 | public void processServerKeyExchange(InputStream input) throws IOException {<NEW_LINE>this.psk_identity_hint = TlsUtils.readOpaque16(input);<NEW_LINE>if (this.keyExchange == KeyExchangeAlgorithm.DHE_PSK) {<NEW_LINE>this.dhConfig = TlsDHUtils.receiveDHConfig(context, dhGroupVerifier, input);<NEW_LINE>byte[] y = TlsUtils... | createDHDomain(dhConfig).createDH(); |
977,137 | public BuiltInScalarFunctionImplementation specialize(BoundVariables boundVariables, int arity, FunctionAndTypeManager functionAndTypeManager) {<NEW_LINE>Type keyType = boundVariables.getTypeVariable("K");<NEW_LINE>Type inputValueType1 = boundVariables.getTypeVariable("V1");<NEW_LINE>Type inputValueType2 = boundVariabl... | keyType), nativeValueGetter(keyType)); |
1,281,886 | public void showAtNotifications(final RequestContext context) {<NEW_LINE>final Request request = context.getRequest();<NEW_LINE>final JSONObject currentUser = Sessions.getUser();<NEW_LINE>if (null == currentUser) {<NEW_LINE>context.sendError(403);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final AbstractFreeMarkerRenderer re... | put(Pagination.PAGINATION_CURRENT_PAGE_NUM, pageNum); |
1,372,709 | private MultiPatternMatcher<CoreMap> createPatternMatcher(Map<SequencePattern<CoreMap>, Entry> patternToEntry) {<NEW_LINE>// Convert to tokensregex pattern<NEW_LINE>List<TokenSequencePattern> patterns = new ArrayList<>(entries.size());<NEW_LINE>for (Entry entry : entries) {<NEW_LINE>TokenSequencePattern pattern;<NEW_LI... | CoreAnnotations.PartOfSpeechAnnotation.class, posTagPattern); |
449,189 | static int longest_bitonic_subsequence(int[] v, int n) {<NEW_LINE>// v_increase tracks the longest increasing subsequence<NEW_LINE>int[] v_increase <MASK><NEW_LINE>for (int i = 0; i < n; i++) {<NEW_LINE>v_increase[i] = 1;<NEW_LINE>}<NEW_LINE>for (int i = 1; i < n; i++) {<NEW_LINE>for (int j = 0; j < i; j++) {<NEW_LINE>... | = new int[n + 1]; |
464,470 | /* GRECLIPSE edit<NEW_LINE>private boolean checkIfLastStatementIsReturnOrThrow(Statement code) {<NEW_LINE>if (code instanceof BlockStatement) {<NEW_LINE>BlockStatement blockStatement = (BlockStatement) code;<NEW_LINE>List<Statement> statementList = blockStatement.getStatements();<NEW_LINE>int statementCnt = statementLi... | avl = av.visitArray(null); |
1,002,434 | public static void processRanges(@Nullable PsiElement element, CharSequence text, int cursorOffset, Editor editor, Processor<TextRange> consumer) {<NEW_LINE>if (element == null)<NEW_LINE>return;<NEW_LINE><MASK><NEW_LINE>FileViewProvider viewProvider = file.getViewProvider();<NEW_LINE>processInFile(element, consumer, te... | PsiFile file = element.getContainingFile(); |
1,081,438 | private static VirtualMachine prepareSpecializedUnmanagedVirtualMachine(AzureResourceManager azureResourceManager, Region region, String rgName) {<NEW_LINE>final String userName = "tirekicker";<NEW_LINE>final String sshPublicKey = Utils.sshPublicKey();<NEW_LINE>final String linuxVMName1 = Utils.randomResourceName(azure... | "Generalize VM: " + linuxVM.id()); |
908,050 | public List<IBlockState> mapBlockRender(@Nonnull IBlockStateWrapper state, @Nonnull IBlockAccess world, @Nonnull BlockPos pos, BlockRenderLayer blockLayer, @Nonnull QuadCollector quadCollector) {<NEW_LINE>for (BlockSlab.EnumBlockHalf half : BlockSlab.EnumBlockHalf.values()) {<NEW_LINE>if (isDouble() || half == state.ge... | = half == BlockSlab.EnumBlockHalf.TOP; |
1,363,639 | private static void validateReferenceField(MessageOrBuilder message, FieldDescriptor field, String baseName) throws InvalidFhirException {<NEW_LINE>Descriptor descriptor = field.getMessageType();<NEW_LINE>OneofDescriptor oneof = descriptor.getOneofs().get(0);<NEW_LINE>for (int i = 0; i < ProtoUtils.fieldSize(message, f... | ).getExtension(Annotations.referencedFhirType); |
530,866 | public void notifyStickyShow(WXCell component) {<NEW_LINE>if (component == null)<NEW_LINE>return;<NEW_LINE>mHeaderComps.put(component.getRef(), component);<NEW_LINE>if (mCurrentStickyRef != null) {<NEW_LINE>WXCell cell = mHeaderComps.get(mCurrentStickyRef);<NEW_LINE>if (cell == null || component.getScrollPositon() > ce... | setTag(headComponent.getRef()); |
637,473 | public static void main(String[] args) throws Throwable {<NEW_LINE>String cp = System.getProperty("java.class.path", null);<NEW_LINE>JarFile mainJar = new JarFile(cp);<NEW_LINE>Manifest manifest = mainJar.getManifest();<NEW_LINE>if (manifest == null) {<NEW_LINE>System.err.println("JAR file is missing manifest; cannot s... | { String[].class }); |
946,071 | private /* return: ((in^2)^2)*m */<NEW_LINE>short gf_sq2mul(short in, short m) {<NEW_LINE>int i;<NEW_LINE>long x;<NEW_LINE>long t0;<NEW_LINE>long t1;<NEW_LINE>long t;<NEW_LINE>long[] M = { 0x1FF0000000000000L, 0x000FF80000000000L, 0x000007FC00000000L, 0x00000003FE000000L, 0x0000000001FE0000L, 0x000000000001E000L };<NEW... | & (0x020000002L))) << 3; |
23,204 | private static void processSideBars(Map sideBars, JComponent ec, JScrollPane scroller) {<NEW_LINE>// Remove all existing sidebars<NEW_LINE>ec.removeAll();<NEW_LINE>// Add the scroller and the new sidebars<NEW_LINE>ec.add(scroller);<NEW_LINE>scroller.setRowHeader(null);<NEW_LINE>scroller.setColumnHeaderView(null);<NEW_L... | .Entry) entries.next(); |
1,163,764 | public static UserRepresentation toRepresentation(KeycloakSession session, RealmModel realm, UserModel user) {<NEW_LINE>UserRepresentation rep = new UserRepresentation();<NEW_LINE>rep.setId(user.getId());<NEW_LINE>String providerId = StorageId.resolveProviderId(user);<NEW_LINE>rep.setOrigin(providerId);<NEW_LINE>rep.se... | setFederationLink(user.getFederationLink()); |
577,541 | final CreateResolverEndpointResult executeCreateResolverEndpoint(CreateResolverEndpointRequest createResolverEndpointRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createResolverEndpointRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
1,116,667 | private void refreshSettings() {<NEW_LINE>int size = cache.getJadxSettings().getSrhResourceSkipSize() * 1048576;<NEW_LINE>if (size != sizeLimit || !cache.getJadxSettings().getSrhResourceFileExt().equals(fileExts)) {<NEW_LINE>clear();<NEW_LINE>sizeLimit = size;<NEW_LINE>fileExts = cache.getJadxSettings().getSrhResourceF... | LOG.error("Failed to apply settings to resource index", e); |
754,184 | public <T> T convert(DataTable dataTable, Type type, boolean transposed) {<NEW_LINE>requireNonNull(dataTable, "dataTable may not be null");<NEW_LINE>requireNonNull(type, "type may not be null");<NEW_LINE>if (transposed) {<NEW_LINE>dataTable = dataTable.transpose();<NEW_LINE>}<NEW_LINE>JavaType javaType = TypeFactory.co... | tableType = registry.lookupTableTypeByType(javaType); |
1,198,129 | private void writeColumns(Element table, Table def, DesignContext context) {<NEW_LINE>Object[] columns = getVisibleColumns();<NEW_LINE>if (columns.length == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Element colgroup = table.appendElement("colgroup");<NEW_LINE>for (Object id : columns) {<NEW_LINE>Element col = colgroup.... | ), boolean.class, context); |
889,698 | private void moveUnusedtoUsedImport(LineRange lineRange, ImportDeclarationNode importDeclarationNode) {<NEW_LINE>Optional<Symbol> symbol = semanticModel.symbol(importDeclarationNode);<NEW_LINE>if (symbol.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>List<Location> locations = this.semanticModel.references(symbol.ge... | .moduleName()), importDeclarationNode); |
826,891 | private Mono<Response<Void>> deleteWithResponseAsync(String resourceGroupName, String namespaceName, String eventHubName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<... | error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null.")); |
1,664,879 | public static SearchRequest<Amenity> buildSearchPoiRequest(List<Location> route, double radius, SearchPoiTypeFilter poiTypeFilter, ResultMatcher<Amenity> resultMatcher) {<NEW_LINE>SearchRequest<Amenity> request = new SearchRequest<Amenity>();<NEW_LINE>float coeff = (float) (radius / MapUtils.getTileDistanceWidth(Search... | << (31 - SearchRequest.ZOOM_TO_SEARCH_POI); |
437,831 | public Mono<ShouldRetryResult> shouldRetry(Exception exception) {<NEW_LINE>Duration backoffTime;<NEW_LINE>Duration timeout;<NEW_LINE>if (!(exception instanceof RetryWithException)) {<NEW_LINE>logger.debug("Operation will NOT be retried. Current attempt {}, Exception: ", this.attemptCount, exception);<NEW_LINE>return Mo... | .getElapsedTime().toMillis(); |
1,608,947 | private void removeUsedPages(final int pageIndex, final Set<Integer> pages, final OAtomicOperation atomicOperation) throws IOException {<NEW_LINE>final OCacheEntry cacheEntry = loadPageForRead(atomicOperation, fileId, pageIndex, true);<NEW_LINE>try {<NEW_LINE>final CellBTreeSingleValueBucketV3<K> bucket = new CellBTree... | removeUsedPages(pageToExplore, pages, atomicOperation); |
1,106,616 | private boolean isUnlockable(String pipelineName, OperationResult result) {<NEW_LINE>if (!goConfigService.isLockable(pipelineName)) {<NEW_LINE>String msg = format("No lock exists within the pipeline configuration for %s", pipelineName);<NEW_LINE>result.conflict(msg, msg, HealthStateType<MASK><NEW_LINE>return false;<NEW... | .general(HealthStateScope.GLOBAL)); |
1,552,497 | private void testAccessAfterCancel(String info, Timer timer) {<NEW_LINE>try {<NEW_LINE>svTimerStartedLatch.countDown();<NEW_LINE>svLogger.info("testAccessAfterCancel: waiting for cancel to complete");<NEW_LINE>svTimerCancelLatch.await(LATCH_AWAIT_TIME, TimeUnit.MILLISECONDS);<NEW_LINE>svLogger.info("testAccessAfterCanc... | svLogger.info("Unexpected Exception : " + ex); |
1,213,296 | private void refreshKeys() {<NEW_LINE>List<String> newVisibleFiles = new ArrayList<String>();<NEW_LINE>Iterator<String> it = FILES.keySet().iterator();<NEW_LINE>Set<FileObject> files = new HashSet<FileObject>();<NEW_LINE>while (it.hasNext()) {<NEW_LINE>String loc = it.next();<NEW_LINE>String locEval = project.getEvalua... | getHelper().resolveFileObject(locEval); |
1,394,250 | final CreateByteMatchSetResult executeCreateByteMatchSet(CreateByteMatchSetRequest createByteMatchSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createByteMatchSetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,619,072 | private static void loadProperties(String propertiesFile) throws IOException {<NEW_LINE>FileInputStream inputStream = new FileInputStream(propertiesFile);<NEW_LINE>Properties properties = new Properties();<NEW_LINE>try {<NEW_LINE>properties.load(inputStream);<NEW_LINE>} finally {<NEW_LINE>inputStream.close();<NEW_LINE>... | initialPositionInStream.toString() + " (if a checkpoint is not found)."); |
712,724 | public ResponseEntity<Object> report(@RequestParam(name = "AD_Process_ID", required = false) final int processId, @RequestParam(name = "AD_PInstance_ID", required = false) final int pinstanceId, @RequestParam(name = "AD_Language", required = false) final String adLanguage, @RequestParam(name = "output", required = fals... | final String reportFilename = extractReportFilename(report); |
1,646,766 | protected void onNotSnappingToPageInFreeScroll() {<NEW_LINE>int finalPos = mScroller.getFinalX();<NEW_LINE>if (!showAsGrid() && finalPos > mMinScroll && finalPos < mMaxScroll) {<NEW_LINE>int firstPageScroll = getScrollForPage(!mIsRtl ? 0 : getPageCount() - 1);<NEW_LINE>int lastPageScroll = getScrollForPage(!mIsRtl ? ge... | OverScrollerCompat.setFinalX(mScroller, pageSnapped); |
1,423,673 | public Completable sendMessageWithImage(final File imageFile, final Thread thread) {<NEW_LINE>MessageSendRig rig = new MessageSendRig(new MessageType(MessageType.Base64Image), thread, message -> {<NEW_LINE>// Get the image and set the image text dimensions<NEW_LINE>final Bitmap image = BitmapFactory.decodeFile(imageFil... | image, width, height, false); |
2,168 | public GenericRecord parse(ByteBuffer bytes) {<NEW_LINE>int length = bytes.limit() - 1 - 4;<NEW_LINE>if (length < 0) {<NEW_LINE>throw new ParseException(null, "Failed to decode avro message, not enough bytes to decode (%s)", bytes.limit());<NEW_LINE>}<NEW_LINE>// ignore first \0 byte<NEW_LINE>bytes.get();<NEW_LINE>// e... | null, e, "Fail to decode Avro message for schema: %s!", id); |
1,509,379 | private Component buildComponent(Disposable uiDisposable) {<NEW_LINE>myUserNameEntered = false;<NEW_LINE>myUserPathEntered = false;<NEW_LINE>FormBuilder formBuilder = FormBuilder.create();<NEW_LINE>myNameTextBox = TextBox.create();<NEW_LINE>formBuilder.addLabeled(myContext.isNewProject() ? IdeLocalize.labelProjectName(... | component.setValue(path, fireListeners); |
826,064 | final PutReplicationConfigurationResult executePutReplicationConfiguration(PutReplicationConfigurationRequest putReplicationConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putReplicationConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
1,635,465 | public PackageSet createPackageSet(final PackageDependenciesNode node, final boolean recursively) {<NEW_LINE>if (node instanceof ModuleGroupNode) {<NEW_LINE>if (!recursively)<NEW_LINE>return null;<NEW_LINE>@NonNls<NEW_LINE>final String modulePattern = "group:" + ((ModuleGroupNode) node)<MASK><NEW_LINE>return new FilePa... | .getModuleGroup().toString(); |
415,618 | private void runNoop() throws IOException, InterruptedException, TimeoutException {<NEW_LINE>long jobId = mJobMasterClient.run(new NoopPlanConfig());<NEW_LINE>// TODO(jianjian): refactor JobTestUtils<NEW_LINE>ImmutableSet<Status> statuses = ImmutableSet.of(Status.COMPLETED, Status.CANCELED, Status.FAILED);<NEW_LINE>fin... | IOException(jobInfo.getErrorMessage()); |
999,875 | final UpdateSourceServerReplicationTypeResult executeUpdateSourceServerReplicationType(UpdateSourceServerReplicationTypeRequest updateSourceServerReplicationTypeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateSourceServerReplicationTypeRequest);<NEW_LINE>AWSRequestMetrics awsRequest... | false), new UpdateSourceServerReplicationTypeResultJsonUnmarshaller()); |
318,130 | private void generateMetaFile(final String keyspace, final String columnFamily, final File backupDir) throws Exception {<NEW_LINE>File snapshotDir = getValidSnapshot(backupDir, snapshotName);<NEW_LINE>// Process this snapshot folder for the given columnFamily<NEW_LINE>if (snapshotDir == null) {<NEW_LINE>logger.warn("{}... | debug("Finished processing KS: {}, CF: {}", keyspace, columnFamily); |
1,826,704 | final UpdateStackResult executeUpdateStack(UpdateStackRequest updateStackRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateStackRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
1,037,019 | public static void patch(final Emulator<?> emulator, InlineHook inlineHook, final ThreadJoinVisitor visitor) {<NEW_LINE>Memory memory = emulator.getMemory();<NEW_LINE>Module libc = memory.findModule("libc.so");<NEW_LINE>Symbol clone = libc.findSymbolByName("clone", false);<NEW_LINE>Symbol pthread_join = libc.findSymbol... | final AtomicLong value_ptr = new AtomicLong(); |
1,431,085 | public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain) throws IOException, ServletException {<NEW_LINE>HttpServletRequest request = (HttpServletRequest) req;<NEW_LINE>HttpServletResponse response = (HttpServletResponse) resp;<NEW_LINE>String appId = accessKeyUtil.extractAppIdFromRequest(reque... | sendError(HttpServletResponse.SC_BAD_REQUEST, "InvalidAppId"); |
727,284 | private final int insertString() {<NEW_LINE>short match;<NEW_LINE>final int hash = ((ins_h << HASH_SHIFT) ^ window[strstart + (MIN_MATCH - 1)]) & HASH_MASK;<NEW_LINE>if (DEBUGGING) {<NEW_LINE>if (hash != (((window[strstart] << (2 * HASH_SHIFT)) ^ (window[strstart + 1] << HASH_SHIFT) ^ (window[strstart + 2])) & HASH_MAS... | [hash] = (short) strstart; |
1,245,731 | public Optional<PluginImplementation<?>> load(@Nonnull PluginIdLookupCacheKey key) {<NEW_LINE>PluginId pluginId = key.getId();<NEW_LINE>ClassLoader classLoader = key.getClassLoader();<NEW_LINE>PluginDescriptorLocator locator = new ClassloaderBackedPluginDescriptorLocator(classLoader);<NEW_LINE>PluginDescriptor pluginDe... | String implClassName = pluginDescriptor.getImplementationClassName(); |
893,657 | private void maybeInitializeOsXApplication() {<NEW_LINE>Throwable ex;<NEW_LINE>try {<NEW_LINE>Class<?> applicationClass = Class.forName("com.apple.eawt.Application");<NEW_LINE>topLogger.log(TreeLogger.SPAM, "Got Application class, on OS X");<NEW_LINE>Object application = applicationClass.getMethod("getApplication").inv... | ("icon128.png").getImage()); |
1,369,469 | public int processBytes(byte[] in, int inOff, int len, byte[] out, int outOff) throws DataLengthException, IllegalStateException {<NEW_LINE>if (len < 0) {<NEW_LINE>throw new IllegalArgumentException("Can't have a negative input length!");<NEW_LINE>}<NEW_LINE>int blockSize = getBlockSize();<NEW_LINE>int length = getUpda... | buf, 0, out, outOff); |
1,134,393 | public void configure(Binder binder) {<NEW_LINE>binder.bind(DatabaseConfig.class).toProvider(DatabaseConfigProvider.class).in(Scopes.SINGLETON);<NEW_LINE>binder.bind(DataSource.class).toProvider(DataSourceProvider.class<MASK><NEW_LINE>binder.bind(AutoMigrator.class);<NEW_LINE>// don't make this singleton because DBI.re... | ).in(Scopes.SINGLETON); |
768,018 | public Request<ModifyCacheParameterGroupRequest> marshall(ModifyCacheParameterGroupRequest modifyCacheParameterGroupRequest) {<NEW_LINE>if (modifyCacheParameterGroupRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<ModifyCacheParameterGroup... | (parameterNameValuesListValue.getParameterValue())); |
1,750,739 | public void beginSelectiveKeyRestore() {<NEW_LINE>KeyVaultBackupClient client = createClient();<NEW_LINE>// BEGIN: com.azure.security.keyvault.administration.keyVaultBackupClient.beginSelectiveKeyRestore#String-String-String<NEW_LINE>String folderUrl = "https://myaccount.blob.core.windows.net/myContainer/mhsm-myaccount... | System.out.printf("Key restored successfully.%n"); |
6,427 | private void deleteCommits() throws IOException {<NEW_LINE>int size = commitsToDelete.size();<NEW_LINE>if (size > 0) {<NEW_LINE>// First decref all files that had been referred to by<NEW_LINE>// the now-deleted commits:<NEW_LINE>Throwable firstThrowable = null;<NEW_LINE>for (int i = 0; i < size; i++) {<NEW_LINE>CommitP... | commits.remove(size - 1); |
1,522,833 | public void calculateWeights() {<NEW_LINE>distribution.clear();<NEW_LINE><MASK><NEW_LINE>int indicesCount = mesh.getNumIndices();<NEW_LINE>int vertexCount = mesh.getNumVertices();<NEW_LINE>int vertexSize = (short) (attributes.vertexSize / 4), positionOffset = (short) (attributes.findByUsage(Usage.Position).offset / 4);... | VertexAttributes attributes = mesh.getVertexAttributes(); |
1,217,756 | private void uncompress(final File file) {<NEW_LINE>final byte[] buffer = new byte[1024];<NEW_LINE>GZIPInputStream gzis = null;<NEW_LINE>OutputStream out = null;<NEW_LINE>try {<NEW_LINE>LOGGER.info("Uncompressing " + file.getName());<NEW_LINE>gzis = new GZIPInputStream(Files.newInputStream(file.toPath()));<NEW_LINE>fin... | final EpssParser parser = new EpssParser(); |
1,595,902 | private void mapRequestOptions(CassandraProperties properties, CassandraDriverOptions options) {<NEW_LINE>PropertyMapper map = PropertyMapper.get().alwaysApplyingWhenNonNull();<NEW_LINE>Request requestProperties = properties.getRequest();<NEW_LINE>map.from(requestProperties::getTimeout).asInt(Duration::toMillis).to(((t... | (DefaultDriverOption.REQUEST_THROTTLER_DRAIN_INTERVAL, drainInterval)); |
1,291,283 | protected void onSelectedChanged(@Nullable EpoxyViewHolder viewHolder, int actionState) {<NEW_LINE>super.onSelectedChanged(viewHolder, actionState);<NEW_LINE>if (viewHolder != null) {<NEW_LINE>EpoxyModel<?> model = viewHolder.getModel();<NEW_LINE>if (!isTouchableModel(model)) {<NEW_LINE>throw new IllegalStateException(... | "A model was selected that is not a valid target: " + model.getClass()); |
127,320 | private void createOrReplaceViewQuery(List<DBEPersistAction> actions, MySQLView view) {<NEW_LINE>StringBuilder decl = new StringBuilder(200);<NEW_LINE>final String lineSeparator = GeneralUtils.getDefaultLineSeparator();<NEW_LINE>String viewDDL = view.getAdditionalInfo().getDefinition();<NEW_LINE>if (viewDDL == null) {<... | ), view.getName()); |
1,756,641 | private boolean sendToNextHop() {<NEW_LINE>if (c_logger.isTraceDebugEnabled()) {<NEW_LINE>c_logger.traceEntry(this, "sendToNextHop");<NEW_LINE>}<NEW_LINE>boolean isNewDestination = false;<NEW_LINE>SIPUri nextDestination = null;<NEW_LINE>// we loop the results till we find a destination different from previous one<NEW_L... | c_logger.traceDebug("calling static method setDestinationHeader to - " + _latestDestination); |
440,207 | public void updateServices() {<NEW_LINE>if (bundleContext == null) {<NEW_LINE>// do nothing; not really in a running system (unit tests etc.)<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Set<String> installedSymbolicNames = new HashSet<String>();<NEW_LINE>for (String featureName : installedFeatures) {<NEW_LINE>String symbolicN... | featureDef = cachedFeatures.get(currentFactorySymbolicName); |
959,297 | // DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY<NEW_LINE>public static com.sun.jdi.Method method(com.sun.jdi.event.MethodExitEvent a) throws org.netbeans.modules.debugger.jpda.jdi.InternalExceptionWrapper, org.netbeans.modules.debugger.jpda.jdi.VMDisconnectedExceptionWrapper {<NEW_LINE>if (org.netbeans.modules.debu... | com.sun.jdi.Method ret; |
1,120,281 | private void updateEntityClient() {<NEW_LINE>boolean markForUpdate = false;<NEW_LINE>if (clientUpdated) {<NEW_LINE>// TODO: This is not the correct solution here but just marking the block for a render update server side<NEW_LINE>// seems to get out of sync with the client sometimes so connections are not rendered corr... | world.checkLight(getPos()); |
1,603,042 | private String recalculate() {<NEW_LINE>MProduct product = MProduct.get(<MASK><NEW_LINE>MAcctSchema as = MClient.get(getCtx()).getAcctSchema();<NEW_LINE>MCostType ct = MCostType.getByMethodCosting(as, as.getCostingMethod());<NEW_LINE>String costingLevel = product.getCostingLevel(as);<NEW_LINE>if (!as.getM_CostType().ge... | getCtx(), getM_Product_ID()); |
449,093 | public void showHint(int color) {<NEW_LINE>final int[] screenPos = new int[2];<NEW_LINE>final Rect displayFrame = new Rect();<NEW_LINE>getLocationOnScreen(screenPos);<NEW_LINE>getWindowVisibleDisplayFrame(displayFrame);<NEW_LINE>final Context context = getContext();<NEW_LINE>final int width = getWidth();<NEW_LINE>final... | ().getDisplayMetrics().widthPixels; |
1,374,936 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>MageObject sourceObject = game.getObject(source);<NEW_LINE>Integer life = (<MASK><NEW_LINE>if (controller != null && sourceObject != null && life != null) {<NEW_LINE>for (Permanent permanent... | Integer) this.getValue("gainedLife"); |
1,580,406 | final DescribeConfigRuleEvaluationStatusResult executeDescribeConfigRuleEvaluationStatus(DescribeConfigRuleEvaluationStatusRequest describeConfigRuleEvaluationStatusRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeConfigRuleEvaluationStatusRequest);<NEW_LINE>AWSRequestMetrics awsRe... | addHandlerContext(HandlerContextKey.SERVICE_ID, "Config Service"); |
665,235 | public BackupDTO backupWorkDirectory(List<String> options) {<NEW_LINE>if (CollectionUtils.isEmpty(options)) {<NEW_LINE>throw new BadRequestException("The options parameter is missing, at least one.");<NEW_LINE>}<NEW_LINE>// Zip work directory to temporary file<NEW_LINE>try {<NEW_LINE>// Create zip path for halo zip<NEW... | haloProperties.getBackupDir(), haloZipFileName); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.