idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
994,910 | private void deleteDatabaseFile(String fileName) {<NEW_LINE>if (fileName.equalsIgnoreCase(":memory:") || fileName.trim().length() == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Log.e(TAG, "Remove database file: " + fileName);<NEW_LINE>if (!mNoCorruptionBackup) {<NEW_LINE>// Save corrupted database for recovery.<NEW_LINE>... | originFile.getParentFile(), "corrupted"); |
404,959 | final ModifyTrafficMirrorFilterNetworkServicesResult executeModifyTrafficMirrorFilterNetworkServices(ModifyTrafficMirrorFilterNetworkServicesRequest modifyTrafficMirrorFilterNetworkServicesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(modifyTrafficMirrorFilterNetworkServicesRequest);<NE... | ModifyTrafficMirrorFilterNetworkServicesResult>(new ModifyTrafficMirrorFilterNetworkServicesResultStaxUnmarshaller()); |
1,068,511 | public final Conditional_expressionContext conditional_expression() throws RecognitionException {<NEW_LINE>Conditional_expressionContext _localctx = new Conditional_expressionContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 46, RULE_conditional_expression);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAl... | _la = _input.LA(1); |
663,979 | public static ListMcubeNebulaTasksResponse unmarshall(ListMcubeNebulaTasksResponse listMcubeNebulaTasksResponse, UnmarshallerContext _ctx) {<NEW_LINE>listMcubeNebulaTasksResponse.setRequestId(_ctx.stringValue("ListMcubeNebulaTasksResponse.RequestId"));<NEW_LINE>listMcubeNebulaTasksResponse.setResultMessage(_ctx.stringV... | ("ListMcubeNebulaTasksResponse.ListMcubeNebulaTaskResult.NebulaTaskInfo[" + i + "].Creator")); |
452,149 | final DeleteTimeSeriesResult executeDeleteTimeSeries(DeleteTimeSeriesRequest deleteTimeSeriesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteTimeSeriesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | resolvedHostPrefix = String.format("api."); |
6,350 | private int writeStartupSection() {<NEW_LINE>int utDataHeaderPos = headerBytes.position();<NEW_LINE>// header; * Eyecatcher, version etc<NEW_LINE>int offset = writeUtDataHeader("XXXX", 0xDEADBEEF);<NEW_LINE>// #define UT_TRACE_STARTUP_SECTION_NAME "UTSO"<NEW_LINE>// struct utStartupSection {<NEW_LINE>// U... | headerBytes.position(utDataHeaderPos + length); |
383,784 | public static DescribeNvrDevicesResponse unmarshall(DescribeNvrDevicesResponse describeNvrDevicesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeNvrDevicesResponse.setRequestId(_ctx.stringValue("DescribeNvrDevicesResponse.RequestId"));<NEW_LINE>describeNvrDevicesResponse.setCode(_ctx.stringValue("DescribeNvrDevi... | ("DescribeNvrDevicesResponse.Data.Records[" + i + "].CorpId")); |
961,511 | final ListSubscriptionDefinitionVersionsResult executeListSubscriptionDefinitionVersions(ListSubscriptionDefinitionVersionsRequest listSubscriptionDefinitionVersionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listSubscriptionDefinitionVersionsRequest);<NEW_LINE>AWSRequestMetrics awsRe... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
1,847,958 | public <T extends Object> Map<String, Object> checkForRequiredParameters(String endpoint, @Sensitive Map<String, T> responseValues, String... requiredParams) {<NEW_LINE>if (responseValues == null) {<NEW_LINE>if (tc.isDebugEnabled()) {<NEW_LINE>Tr.debug(tc, "The provided response values map is null, so all required para... | = new ArrayList<String>(); |
1,643,006 | public void afterHookedMethod(XC_MethodHook.MethodHookParam param) {<NEW_LINE>RelativeLayout baseChatItemLayout = (RelativeLayout) param.args[3];<NEW_LINE>ImageView imageView = baseChatItemLayout.findViewById(baseChatItemLayout.getResources().getIdentifier("cfx", "id", HostInfo.getPackageName()));<NEW_LINE>ImageView im... | param.thisObject, _SessionInfo()); |
858,580 | public DoubleMatrix differentiateCross(PiecewisePolynomialResult2D pp, double[] x0Keys, double[] x1Keys) {<NEW_LINE>ArgChecker.notNull(pp, "pp");<NEW_LINE>int order0 = pp.getOrder()[0];<NEW_LINE>int order1 = pp.getOrder()[1];<NEW_LINE>ArgChecker.isFalse(order0 < 2, "polynomial degree of x0 < 1");<NEW_LINE>ArgChecker.is... | new DoubleMatrix[nKnots0][nKnots1]; |
367,213 | static double supportCorners(int width, int height, int[] mask, Vector2d dir) {<NEW_LINE>double maxValue = -Double.MAX_VALUE;<NEW_LINE>double centerX = width / 2.0;<NEW_LINE>double centerY = height / 2.0;<NEW_LINE>Vector2d p = new Vector2d();<NEW_LINE>for (int y = height - 1; y >= 0; --y) {<NEW_LINE>for (int x = 0; x <... | .y = y + 1 - centerY; |
358,124 | private Object queryByRaft(Object query, boolean safeRead, Function<Object, Object> func) {<NEW_LINE>if (!safeRead) {<NEW_LINE>return func.apply(query);<NEW_LINE>}<NEW_LINE>RaftClosure<Object> future = new RaftClosure<>();<NEW_LINE>ReadIndexClosure readIndexClosure = new ReadIndexClosure() {<NEW_LINE><NEW_LINE>@Overrid... | readIndex(BytesUtil.EMPTY_BYTES, readIndexClosure); |
333,710 | public static boolean packJar(String folderName, String jarName, String prefix) {<NEW_LINE>jarName = FileManager.slashify(jarName, false);<NEW_LINE>if (!jarName.endsWith(".jar")) {<NEW_LINE>jarName += ".jar";<NEW_LINE>}<NEW_LINE>folderName = FileManager.slashify(folderName, true);<NEW_LINE>if (!(new File(folderName)).i... | .getFile()), prefix); |
388,440 | private void writeAnswer(String[] strs, String clAnswer, Distribution<String> cntr) {<NEW_LINE>String goldAnswer = globalFlags.goldAnswerColumn < strs.length ? strs[globalFlags.goldAnswerColumn] : "";<NEW_LINE>String printedText = "";<NEW_LINE>if (globalFlags.displayedColumn >= 0) {<NEW_LINE>printedText = strs[globalFl... | sortedLabels = new TreeSet<>(); |
1,700,168 | protected void configure() {<NEW_LINE>install(new MessagingBinders.MessageBodyProviders(clientRuntimeProperties, RuntimeType.CLIENT)<MASK><NEW_LINE>bindFactory(ReferencingFactory.referenceFactory()).to(new GenericType<Ref<ClientConfig>>() {<NEW_LINE>}).in(RequestScoped.class);<NEW_LINE>bindFactory(RequestContextInjecti... | , new MessagingBinders.HeaderDelegateProviders()); |
601,993 | public Entity add(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, RecordHelper helper) throws ServiceException {<NEW_LINE>Entity entity = persistencePackage.getEntity();<NEW_LINE>try {<NEW_LINE>// Get an instance of SystemProperty with the updated values from the form<NEW_LINE>PersistencePersp... | setPropertyValidationErrors(errorEntity.getPropertyValidationErrors()); |
885,883 | private void handleIndexAsTarget(OSelectExecutionPlan result, OIndexIdentifier indexIdentifier, OCommandContext ctx, boolean profilingEnabled) {<NEW_LINE><MASK><NEW_LINE>final ODatabaseDocumentInternal database = (ODatabaseDocumentInternal) ctx.getDatabase();<NEW_LINE>OIndex index = database.getMetadata().getIndexManag... | String indexName = indexIdentifier.getIndexName(); |
1,763,610 | private void init() {<NEW_LINE>// WARNING: called from ctor so must not be overridden (i.e. must be private or final)<NEW_LINE>// $NON-NLS-1$<NEW_LINE>parameterPanel = new ArgumentsPanel(true, JMeterUtils.getResString("function_params"));<NEW_LINE>initializeFunctionList();<NEW_LINE>this.getContentPane().setLayout(new B... | .labelFor(variablesTextAreaJSP, "function_helper_dialog_variables")); |
1,763,573 | // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>private void initComponents() {<NEW_LINE>java.awt.GridBagConstraints gridBagConstraints;<NEW_LINE>introLabel = new javax.swing.JLabel();<NEW_LINE>explanation = new javax.swing.JTextArea();<NEW_LINE>selectLabel = new javax... | .class, "UTA_TEXT_explanation", label)); |
1,533,364 | private void processPurgeMapTiles(DynmapWorld world, MapType map, ImageVariant var) {<NEW_LINE>String basekey = prefix + "tiles/" + world.getName() + "/" + map.getPrefix() + var.variantSuffix + "/";<NEW_LINE>ListObjectsV2Request req = ListObjectsV2Request.builder().bucketName(bucketname).prefix(basekey).delimiter("").m... | > objects = result.getContents(); |
820,631 | public static DescribeServiceDetailResponse unmarshall(DescribeServiceDetailResponse describeServiceDetailResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeServiceDetailResponse.setRequestId(_ctx.stringValue("DescribeServiceDetailResponse.RequestId"));<NEW_LINE>describeServiceDetailResponse.setCode<MASK><NEW_LINE>... | (_ctx.integerValue("DescribeServiceDetailResponse.Code")); |
1,065,590 | private static void onVideoReturnedFromCamera(Activity activity, @NonNull FilePicker.Callbacks callbacks) {<NEW_LINE>try {<NEW_LINE>String lastVideoUri = PreferenceManager.getDefaultSharedPreferences(activity<MASK><NEW_LINE>if (!TextUtils.isEmpty(lastVideoUri)) {<NEW_LINE>revokeWritePermission(activity, Uri.parse(lastV... | ).getString(KEY_VIDEO_URI, null); |
1,483,088 | protected void removeBindings() {<NEW_LINE>amountTextField.textProperty().unbindBidirectional(model.amount);<NEW_LINE>minAmountTextField.textProperty().unbindBidirectional(model.minAmount);<NEW_LINE>priceTextField.textProperty().unbindBidirectional(model.price);<NEW_LINE>volumeTextField.textProperty().unbindBidirection... | .validationResultProperty().unbind(); |
1,834,039 | protected void extractPKFields(Project project) {<NEW_LINE>FileObject root = MiscUtilities.findSourceRoot(project);<NEW_LINE>if (root != null) {<NEW_LINE>try {<NEW_LINE>final ClasspathInfo cpInfo = ClasspathInfo.create(root);<NEW_LINE>JavaSource pkSource = JavaSource.create(cpInfo);<NEW_LINE>if (pkSource == null) {<NEW... | controller.toPhase(Phase.RESOLVED); |
1,796,703 | @Override<NEW_LINE>protected Component createLayout(PropertyBuilder propertyBuilder, @Nonnull Disposable uiDisposable) {<NEW_LINE>XDebuggerGeneralSettings settings = XDebuggerSettingManagerImpl<MASK><NEW_LINE>VerticalLayout layout = VerticalLayout.create();<NEW_LINE>CheckBox focusAppOnBreakpointCheckbox = CheckBox.crea... | .getInstanceImpl().getGeneralSettings(); |
168,000 | public void ready(StatementContext statementContext, ModuleIncidentals moduleIncidentals, boolean recovery) {<NEW_LINE>EventType infraEventType = namedWindow != null ? namedWindow.getRootView().getEventType() : table<MASK><NEW_LINE>factory = setupFactory(infraEventType, namedWindow, table, statementContext);<NEW_LINE>i... | .getMetaData().getInternalEventType(); |
1,618,388 | public void onMigrate(int toVersion) {<NEW_LINE>switch(toVersion) {<NEW_LINE>case 32:<NEW_LINE>setBoolean(R.string.chats_show_status_change_key, false);<NEW_LINE>break;<NEW_LINE>case 40:<NEW_LINE>String value;<NEW_LINE>try {<NEW_LINE>if (getBoolean(R.string.chats_show_status_change_key, false))<NEW_LINE>value = Applica... | StatusMode.values()[statusModeIndex]; |
1,644,809 | protected void encodeMarkup(FacesContext context, DataList list) throws IOException {<NEW_LINE>if (list.isLazy()) {<NEW_LINE>list.loadLazyData();<NEW_LINE>}<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>String clientId = list.getClientId(context);<NEW_LINE>boolean hasPaginator = list.isPaginato... | "id", clientId + "_content", "id"); |
65,860 | public void listOrder() {<NEW_LINE>String sql = new String("SELECT o.C_Order_ID " + "FROM C_Order o " + "WHERE o.IsSOTrx='Y' " + "AND o.Processed = 'N' " + "AND o.AD_Client_ID = ? " + "AND o.C_POS_ID = ? " + "AND o.SalesRep_ID = ? " + "ORDER BY o.Updated");<NEW_LINE>PreparedStatement preparedStatement = null;<NEW_LINE>... | = orderList.size() - 1; |
1,340,711 | private String multiply(String num1, String num2, int start1, int end1, int start2, int end2) {<NEW_LINE>if (end1 - start1 == 0 || end2 - start2 == 0) {<NEW_LINE>return simpleMultiply(num1.substring(start1, end1 + 1), num2.substring(start2, end2 + 1));<NEW_LINE>}<NEW_LINE>int mid1 = (start1 + end1) / 2;<NEW_LINE>int mi... | ), v4.toCharArray()); |
1,133,226 | public static DescribeSnapshotGroupsResponse unmarshall(DescribeSnapshotGroupsResponse describeSnapshotGroupsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeSnapshotGroupsResponse.setRequestId<MASK><NEW_LINE>describeSnapshotGroupsResponse.setNextToken(_ctx.stringValue("DescribeSnapshotGroupsResponse.NextToken"))... | (_ctx.stringValue("DescribeSnapshotGroupsResponse.RequestId")); |
1,131,451 | public Stream<CentralityScore> pageRankStream(@Name(value = "label", defaultValue = "") String label, @Name(value = "relationship", defaultValue = "") String relationship, @Name(value = "config", defaultValue = "{}") Map<String, Object> config) {<NEW_LINE>ProcedureConfiguration configuration = ProcedureConfiguration.cr... | AllocationTracker tracker = AllocationTracker.create(); |
1,073,189 | protected void onCreate(@Nullable Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_main);<NEW_LINE>// authentication with an API key or named user is required to access basemaps and other<NEW_LINE>// location services<NEW_LINE>ArcGISRuntimeEnvironment.s... | , rasterElevationSource.getLoadError())); |
1,487,024 | public void onMethodCall(MethodCall methodCall, MethodChannel.Result result) {<NEW_LINE>String accessToken = methodCall.argument("accessToken");<NEW_LINE>MapBoxUtils.getMapbox(context, accessToken);<NEW_LINE>switch(methodCall.method) {<NEW_LINE>case "installOfflineMapTiles":<NEW_LINE>String tilesDb = methodCall.argumen... | OfflineManagerUtils.regionsList(result, context); |
1,554,285 | public Mono<Response<RegistryListCredentialsResultInner>> listCredentialsWithResponseAsync(String resourceGroupName, String registryName) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<N... | )).readOnly())); |
24,659 | private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>java.awt.GridBagConstraints gridBagConstraints;<NEW_LINE>jLabel1 = new javax.swing.JLabel();<NEW_LINE>folderPanel = new javax.swing.JPanel();<NEW_LINE>setBorder(javax.swing.BorderF... | (BrowseFolders.class, "BrowseFolders.jLabel1.AccessibleContext.accessibleName")); |
1,348,885 | private I_PP_Cost_Collector createCollector(@NonNull final CostCollectorCreateRequest request) {<NEW_LINE>trxManager.assertThreadInheritedTrxExists();<NEW_LINE>final I_PP_Order ppOrder = request.getOrder();<NEW_LINE>final DocTypeId docTypeId = docTypeDAO.getDocTypeId(DocTypeQuery.builder().docBaseType(X_C_DocType.DOCBA... | setC_DocType_ID(docTypeId.getRepoId()); |
397,620 | protected long[] readMV4x4(int miCol, int miRow, int blSz, VPXBooleanDecoder decoder, DecodingContext c, int packedRefFrames) {<NEW_LINE>int subMode0 = readInterMode(miCol, miRow, blSz, decoder, c);<NEW_LINE>long mvl0 = readSub0(miCol, miRow, blSz, decoder, c, subMode0, packedRefFrames);<NEW_LINE>int subMode1 = readInt... | miRow, blSz, decoder, c); |
875,027 | public static <T> void checkLeak(@Nonnull Object root, @Nonnull Class<T> suspectClass, @javax.annotation.Nullable final Processor<T> isReallyLeak) throws AssertionError {<NEW_LINE>if (SwingUtilities.isEventDispatchThread()) {<NEW_LINE>UIUtil.dispatchAllInvocationEvents();<NEW_LINE>} else {<NEW_LINE>UIUtil.pump();<NEW_L... | , root, null, null)); |
218,585 | public Response.ResponseBuilder evaluatePreconditions(final Date lastModified, final EntityTag eTag) {<NEW_LINE>if (lastModified == null) {<NEW_LINE>throw new IllegalArgumentException(METHOD_PARAMETER_CANNOT_BE_NULL_LAST_MODIFIED);<NEW_LINE>}<NEW_LINE>if (eTag == null) {<NEW_LINE>throw new IllegalArgumentException(METH... | r = evaluateIfModifiedSince(lastModifiedTime, ifModifiedSinceHeader); |
523,580 | public void decode16x8(MBlock mBlock, Picture mb, Frame[][] refs, PartPred p0, PartPred p1) {<NEW_LINE>int mbX = mapper.getMbX(mBlock.mbIdx);<NEW_LINE>int mbY = mapper.getMbY(mBlock.mbIdx);<NEW_LINE>boolean leftAvailable = mapper.leftAvailable(mBlock.mbIdx);<NEW_LINE>boolean topAvailable = mapper.topAvailable(mBlock.mb... | (0), refs, poc); |
1,020,949 | private void findByOwnerFilter(String ownerId, ResourceServer resourceServer, Consumer<Resource> consumer, int firstResult, int maxResult) {<NEW_LINE>boolean pagination = firstResult > -1 && maxResult > -1;<NEW_LINE>String queryName = pagination ? "findResourceIdByOwnerOrdered" : "findResourceIdByOwner";<NEW_LINE>if (r... | query.setFlushMode(FlushModeType.COMMIT); |
1,733,911 | private synchronized String[] readAllDocumentNames() throws IOException {<NEW_LINE>if (this.numberOfChunks <= 0)<NEW_LINE>return CharOperation.NO_STRINGS;<NEW_LINE>InputStream stream = this.indexLocation.getInputStream();<NEW_LINE>try {<NEW_LINE>int offset = this.chunkOffsets[0];<NEW_LINE>stream.skip(offset);<NEW_LINE>... | lastIndex ? CHUNK_SIZE : this.sizeOfLastChunk); |
1,580,288 | public static String[] createHashTable(String[] values) {<NEW_LINE>int tableSize = values.length * 2;<NEW_LINE>int maxTableSize = Math.min(values.length * <MASK><NEW_LINE>String[] bestTable = null;<NEW_LINE>int bestCollisionRatio = 0;<NEW_LINE>while (tableSize <= maxTableSize) {<NEW_LINE>String[] table = new String[tab... | 5 / 2, tableSize + 10); |
603,335 | public void annotate(@NotNull PsiElement o, @NotNull AnnotationHolder holder) {<NEW_LINE>if (!o.isValid())<NEW_LINE>return;<NEW_LINE>if (o instanceof GoImportSpec && ((GoImportSpec) o).isDot()) {<NEW_LINE>// noinspection SynchronizationOnLocalVariableOrMethodParameter<NEW_LINE>synchronized (o) {<NEW_LINE>List<PsiElemen... | getIdentifier(), holder, key); |
1,476,400 | private void retryFailCallbackFile() {<NEW_LINE>// valid<NEW_LINE>File callbackLogPath = new File(failCallbackFilePath);<NEW_LINE>if (!callbackLogPath.exists()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (callbackLogPath.isFile()) {<NEW_LINE>callbackLogPath.delete();<NEW_LINE>}<NEW_LINE>if (!(callbackLogPath.isDirectory... | deserialize(callbackParamList_bytes, List.class); |
792,705 | protected void appendComponentSlot(XStringBuilder xsb, JsonStringBuilder jsb, SofaTracerSpan span) {<NEW_LINE>Map<String, String> tagWithStr = span.getTagsWithStr();<NEW_LINE>Map<String, Number> tagWithNum = span.getTagsWithNumber();<NEW_LINE>// protocol<NEW_LINE>xsb.append(tagWithStr.get(CommonSpanTags.PROTOCOL));<NEW... | 0 : reqSizeNum.longValue()); |
931,730 | public void updateSession(Song song, int state) {<NEW_LINE>final boolean playing = (<MASK><NEW_LINE>final PlaybackService service = PlaybackService.get(mContext);<NEW_LINE>PlaybackStateCompat playbackState = new PlaybackStateCompat.Builder().setState(playing ? PlaybackStateCompat.STATE_PLAYING : PlaybackStateCompat.STA... | state & PlaybackService.FLAG_PLAYING) != 0; |
884,154 | void contextPropagationExample_WithoutContextPropagator() {<NEW_LINE>ThreadPoolBulkheadConfig config = ThreadPoolBulkheadConfig.custom().maxThreadPoolSize(2).coreThreadPoolSize(1).<MASK><NEW_LINE>ThreadPoolBulkheadRegistry registry = ThreadPoolBulkheadRegistry.of(config);<NEW_LINE>ThreadPoolBulkhead bulkhead = registry... | queueCapacity(1).build(); |
363,479 | public void onItemClick(View view, Object item, Segment segment) {<NEW_LINE>if (item instanceof Playlist) {<NEW_LINE>String playlistId = ((Playlist) item).getId();<NEW_LINE>if (mQueryArray != null) {<NEW_LINE>ArrayList<PlaylistEntry> entries = new ArrayList<>();<NEW_LINE>for (Query query : mQueryArray) {<NEW_LINE>entri... | getArguments().remove(QUERYARRAY); |
1,272,620 | public okhttp3.Call labelsGetCall(final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/labels";<NEW_LINE>List<Pair> localVarQueryParams = new ArrayList<Pair>();<NEW_LINE>List<Pair> localVarCollectionQueryPa... | localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); |
839,588 | protected void doProcess(final ITemplateContext context, final IProcessableElementTag tag, final AttributeName attributeName, final String attributeValue, final IElementTagStructureHandler structureHandler) {<NEW_LINE>final Each each = EachUtils.parseEach(context, attributeValue);<NEW_LINE>final IStandardExpression ite... | iterVarValue = iterVarExpr.execute(context); |
462,087 | public void onApplicationEvent(WebServerInitializedEvent event) {<NEW_LINE>if (!discoveryProperties.isAutoRegister()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>if (StringUtils.isEmpty(register.getIp())) {<NEW_LINE>register.setIp(NetUtils.localIP());<NEW_LINE>}<NEW_LINE>if (register.getPort() == 0) {<NEW_LI... | Register register = discoveryProperties.getRegister(); |
1,725,739 | public LockEntity postLocksPath(String path, LocksPathBody body) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// verify the required parameter 'path' is set<NEW_LINE>if (path == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'path' when calling postLocksPath");<N... | HashMap<String, Object>(); |
1,496,523 | private Stream<Observation> convertToObservations(final MetricData metricData) {<NEW_LINE>List<Observation> <MASK><NEW_LINE>MetricCategory category = categoryNameToMetricCategory(metricData.getInstrumentationLibraryInfo().getName());<NEW_LINE>Collection<?> points;<NEW_LINE>switch(metricData.getType()) {<NEW_LINE>case D... | observations = new ArrayList<>(); |
337,812 | public com.amazonaws.services.mwaa.model.ValidationException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.mwaa.model.ValidationException validationException = new com.amazonaws.services.mwaa.model.ValidationException(null);<NEW_LINE><MASK><NEW_LINE>String cur... | int originalDepth = context.getCurrentDepth(); |
1,103,988 | /* Sorts the data and discards given percentage from the left and right sides each.<NEW_LINE>* E.g. 5% trim implies a total of 10% (2x 5%) of elements discarded.<NEW_LINE>* Used in calculating trimmed mean (and in turn trimmed standard deviation),<NEW_LINE>* which is more robust to outliers than a simple mean.<NEW_LINE... | bothSidesTrimmed = oneSideTrimmed.limit(countAfterTrim); |
739,012 | public boolean execute(CommandSender sender, String commandLabel, String[] args) {<NEW_LINE>if (!this.testPermission(sender)) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>int chunksCollected = 0;<NEW_LINE>int entitiesCollected = 0;<NEW_LINE>int tilesCollected = 0;<NEW_LINE>long memory = Runtime.getRuntime().freeMemory()... | "Entities: " + TextFormat.RED + entitiesCollected); |
591,953 | final CreateDirectConnectGatewayResult executeCreateDirectConnectGateway(CreateDirectConnectGatewayRequest createDirectConnectGatewayRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createDirectConnectGatewayRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
1,775,403 | public <T> T deserialze(DefaultJSONParser parser, Type clazz, Object fieldName) {<NEW_LINE>final JSONLexer lexer = parser.lexer;<NEW_LINE>Long longObject;<NEW_LINE>try {<NEW_LINE>final int token = lexer.token();<NEW_LINE>if (token == JSONToken.LITERAL_INT) {<NEW_LINE>long longValue = lexer.longValue();<NEW_LINE><MASK><... | lexer.nextToken(JSONToken.COMMA); |
1,694,467 | private void extractColumns(ResultSet set, Table.Factory table) throws SQLException {<NEW_LINE>String col1 = set.getString(ExtensionTableProviderTable.COL_1);<NEW_LINE>if (col1 != null) {<NEW_LINE>table.columnOne(col1, extractIcon(set, "i1"));<NEW_LINE>table.columnOneFormat(extractFormat(set, ExtensionTableProviderTabl... | , extractIcon(set, "i4")); |
1,762,438 | public void save() throws Exception {<NEW_LINE>try {<NEW_LINE>class_mon.enter();<NEW_LINE>Map map = new HashMap();<NEW_LINE>List filters = new ArrayList();<NEW_LINE>map.put("ranges", filters);<NEW_LINE>List<Iterator<IpRangeImpl>> iters = Arrays.asList(range_manager_v4.getEntries().iterator(), range_manager_v6.getEntrie... | (BEncoder.encode(map)); |
294,679 | final CreateTransitGatewayVpcAttachmentResult executeCreateTransitGatewayVpcAttachment(CreateTransitGatewayVpcAttachmentRequest createTransitGatewayVpcAttachmentRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createTransitGatewayVpcAttachmentRequest);<NEW_LINE>AWSRequestMetrics awsRequest... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
230,447 | private String encodeDecimal() {<NEW_LINE>if (isBasicPlane()) {<NEW_LINE>return encodeDecimalBasic();<NEW_LINE>}<NEW_LINE>int digit;<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>int i = 0;<NEW_LINE>for (Iterator<Integer> iter = newSubsequenceIterator(); iter.hasNext(); i++) {<NEW_LINE>int codePoint = iter.... | Character.digit(codePoint, 10); |
43,156 | private List<ColumnMetaData> buildGetTablesColumnMetaDataList() {<NEW_LINE>List<ColumnMetaData> columnMetaDataList = new ArrayList<>();<NEW_LINE>// 1. TABLE_CAT<NEW_LINE>columnMetaDataList.add(buildTableCatalogMeta(1));<NEW_LINE>// 2. TABLE_SCHEM<NEW_LINE>columnMetaDataList.add(buildTableSchemaMeta(2));<NEW_LINE>// 3. ... | .add(buildRemarksMeta(5)); |
1,228,718 | // Here's where we do the real work...<NEW_LINE>public static void parseFile(String f, InputStream s) throws Exception {<NEW_LINE>try {<NEW_LINE>// set this File as the currentFileName<NEW_LINE>currentFileName = f;<NEW_LINE>// Create a scanner that reads from the input stream passed to us<NEW_LINE>PascalLexer lexer = n... | PascalParser parser = new PascalParser(lexer); |
1,330,537 | public ListContactReferencesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListContactReferencesResult listContactReferencesResult = new ListContactReferencesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NE... | String currentParentElement = context.getCurrentParentElement(); |
321,783 | public static void replaceKEYCLOAKMethodWithBASIC(Archive<?> archive) {<NEW_LINE>if (!archive.contains(DeploymentArchiveProcessorUtils.WEBXML_PATH))<NEW_LINE>return;<NEW_LINE>try {<NEW_LINE>Document webXmlDoc = loadXML(archive.get(DeploymentArchiveProcessorUtils.WEBXML_PATH).getAsset().openStream());<NEW_LINE>LOG.debug... | ))), DeploymentArchiveProcessorUtils.WEBXML_PATH); |
40,441 | public void importDirectory(String tableName, String dir, String failureDir, boolean setTime) throws IOException, AccumuloSecurityException, TableNotFoundException, AccumuloException {<NEW_LINE>EXISTING_TABLE_NAME.validate(tableName);<NEW_LINE>checkArgument(dir != null, "dir is null");<NEW_LINE>checkArgument(failureDir... | checkPath(failureDir, "Bulk", "failure"); |
618,265 | private Mono<Response<Void>> moveWithResponseAsync(String resourceGroupName, CsmMoveResourceEnvelope moveResourceEnvelope, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>return Mono.error(new IllegalArgumentE... | error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); |
458,619 | public AwsJobPresignedUrlConfig unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AwsJobPresignedUrlConfig awsJobPresignedUrlConfig = new AwsJobPresignedUrlConfig();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonT... | String currentParentElement = context.getCurrentParentElement(); |
1,159,697 | final CreateRouteResult executeCreateRoute(CreateRouteRequest createRouteRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createRouteRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
957,416 | public Socket createSocket(String host, int port) throws IOException {<NEW_LINE>char[] passphrase = null;<NEW_LINE>if (keyStorePassword != null) {<NEW_LINE>passphrase = keyStorePassword.toCharArray();<NEW_LINE>}<NEW_LINE>KeyStore keyStore = null;<NEW_LINE>if (keyStoreLocation != null) {<NEW_LINE>keyStore = loadStore(ke... | SSLSocketFactory factory = ctx.getSocketFactory(); |
106,796 | protected void doBalanceSentinel(SentinelGroupModel sentinelGroupModel, List<DcClusterShardTbl> dcClusterShards) {<NEW_LINE>dcClusterShards.forEach(dcClusterShard -> {<NEW_LINE>SentinelGroupModel suitableSentinel = sentinelBalanceService.selectSentinelWithoutCache(dcId, ClusterType.ONE_WAY);<NEW_LINE>if (null == suitab... | NoSentinelsToUseException(getName() + "none sentinel selected"); |
269,925 | private void buildHashPattern(Label testEnd, Variable result, Variable deconstructed, HashPatternNode pattern, Operand obj, boolean inAlteration) {<NEW_LINE>Variable d = deconstructHashPatternKeys(testEnd, pattern, result, obj);<NEW_LINE>label(endHashCheck -> {<NEW_LINE>addInstr(new EQQInstr(scope, result, manager.getH... | call(d, method, key); |
29,799 | /*<NEW_LINE>* (non-Javadoc)<NEW_LINE>* @see<NEW_LINE>* com.aptana.editor.common.contentassist.IUserAgentPreferenceManager#savePreference(org.eclipse.core.resources.<NEW_LINE>* IProject, java.util.Map)<NEW_LINE>*/<NEW_LINE>public void savePreference(IProject project, Map<String, String[]> natureIdToUserAgents) {<NEW_LIN... | getDefault(), "Error saving the user-agent preferences.", e); |
742,736 | public Neighbor<K, V>[] search(K q, int k) {<NEW_LINE>if (k <= 0) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>if (k > data.size()) {<NEW_LINE>throw new IllegalArgumentException("Neighbor array length is larger than the data size");<NEW_LINE>}<NEW_LINE>double[] dist = keys.stream().parallel().mapToDouble(x -> distance.d(x, q)... | throw new IllegalArgumentException("Invalid k: " + k); |
388,087 | public void rollover() throws RolloverFailure {<NEW_LINE>// when rollover is called the elapsed period's file has<NEW_LINE>// been already closed. This is a working assumption of this method.<NEW_LINE>String elapsedPeriodsFileName = timeBasedFileNamingAndTriggeringPolicy.getElapsedPeriodsFileName();<NEW_LINE>String ela... | cleanUpFuture = archiveRemover.cleanAsynchronously(now); |
553,568 | public static MethodAnnotation fromCalledMethod(DismantleBytecode visitor) {<NEW_LINE>String className = visitor.getDottedClassConstantOperand();<NEW_LINE>String methodName = visitor.getNameConstantOperand();<NEW_LINE>String methodSig = visitor.getSigConstantOperand();<NEW_LINE>if (visitor instanceof OpcodeStackDetecto... | getStack().getStackItem(params); |
1,487,115 | Object execute(Object[] arguments, @Cached HPyAsContextNode asContextNode, @Cached FromCharPointerNode fromCharPointerNode, @Cached CastToJavaStringNode castToJavaStringNode, @Cached HPyAsHandleNode asHandleNode, @Cached HPyTransformExceptionToNativeNode transformExceptionToNativeNode, @Exclusive @Cached GilNode gil) t... | .execute(arguments[0]); |
1,446,671 | static boolean isWindowsWellKnownSid(String sid) {<NEW_LINE>String tempSID = stripWindowsBackupPostfix(sid);<NEW_LINE>if (SPECIAL_SIDS_MAP.containsKey(tempSID)) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>for (String specialPrefix : SPECIAL_SID_PREFIXES_MAP.keySet()) {<NEW_LINE>if (tempSID.startsWith(specialPrefix)) {<... | match = WINDOWS_SPECIAL_ACCOUNT_PREFIX_REGEX.matcher(tempSID); |
842,041 | public void create() {<NEW_LINE>if (array != null) {<NEW_LINE>Object[] newArray = (Object[]) Array.newInstance(getConvertedType(<MASK><NEW_LINE>System.arraycopy(array, 0, newArray, 0, array.length);<NEW_LINE>// throw away the old array!<NEW_LINE>array = newArray;<NEW_LINE>array[array.length - 1] = defaultValue();<NEW_L... | ), array.length + 1); |
1,674,020 | public void createDataStream(CreateDataStreamClusterStateUpdateRequest request, ActionListener<AcknowledgedResponse> finalListener) {<NEW_LINE>AtomicReference<String> firstBackingIndexRef = new AtomicReference<>();<NEW_LINE>ActionListener<ClusterStateUpdateResponse> listener = ActionListener.wrap(response -> {<NEW_LINE... | onResponse(new AcknowledgedResponse(false)); |
614,831 | public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>if (savedInstanceState != null) {<NEW_LINE>String itemFileName = savedInstanceState.getString(KEY_ASK_MAP_DOWNLOAD_ITEM_FILENAME);<NEW_LINE>if (itemFileName != null) {<NEW_LINE>indexItem = getMyApplicat... | getString(R.string.index_item_world_basemap); |
1,669,780 | final DeleteResponseHeadersPolicyResult executeDeleteResponseHeadersPolicy(DeleteResponseHeadersPolicyRequest deleteResponseHeadersPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteResponseHeadersPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get... | invoke(request, responseHandler, executionContext); |
1,428,203 | public void propagateAreaLocations(OverlayEdge nodeEdge, int geomIndex) {<NEW_LINE>if (!inputGeometry.isArea(geomIndex))<NEW_LINE>return;<NEW_LINE>if (nodeEdge.degree() == 1)<NEW_LINE>return;<NEW_LINE>OverlayEdge eStart = findPropagationStartEdge(nodeEdge, geomIndex);<NEW_LINE>// no labelled edge found, so nothing to p... | OverlayEdge e = eStart.oNextOE(); |
366,415 | public final void reduce(Object sendbuf, Object recvbuf, int count, Datatype type, Op op, int root) throws MPIException {<NEW_LINE>MPI.check();<NEW_LINE>op.setDatatype(type);<NEW_LINE>int sendoff = 0, recvoff = 0;<NEW_LINE>boolean sdb = false, rdb = false;<NEW_LINE>if (sendbuf instanceof Buffer && !(sdb = ((Buffer) sen... | Buffer) recvbuf).array(); |
994,797 | public static List<EntityDetail> findEntitiesByType(OMRSAPIHelper oMRSAPIHelper, String serverName, String userId, String type, String searchCriteria, Date asOfTime, Integer offset, Integer pageSize, SequencingOrder sequencingOrder, String sequencingProperty, String methodName) throws UserNotAuthorizedException, Functi... | typeDef = archiveAccessor.getEntityDefByName(type); |
670,863 | public static DeleteModelResponse unmarshall(DeleteModelResponse deleteModelResponse, UnmarshallerContext _ctx) {<NEW_LINE>deleteModelResponse.setRequestId(_ctx.stringValue("DeleteModelResponse.RequestId"));<NEW_LINE>Data data = new Data();<NEW_LINE>data.setAppId(_ctx.stringValue("DeleteModelResponse.Data.AppId"));<NEW... | (_ctx.booleanValue("DeleteModelResponse.Data.Linked")); |
464,878 | private int writeFieldPermission(MetaField field, String[] row, int colIndex, String permName) {<NEW_LINE>MetaPermissionRule rule = ruleRepository.all().filter("self.metaPermission.name = ?1 and self.metaPermission.object = ?2 and self.field = ?3", permName, field.getMetaModel().getFullName(), field.getName()).fetchOne... | ? "" : rule.getReadonlyIf(); |
1,449,397 | final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
1,537,156 | protected static NbProcessDescriptor createPatchedExecutable(NbProcessDescriptor p) {<NEW_LINE>NbProcessDescriptor newP = null;<NEW_LINE>String[] args = org.openide.util.Utilities.parseParameters(p.getArguments());<NEW_LINE>if (args.length > 1) {<NEW_LINE>if (ExtWebBrowser.getEM().isLoggable(Level.FINE)) {<NEW_LINE>// ... | ), p.getInfo()); |
1,425,474 | private void colourLine(LineStyleEvent event) {<NEW_LINE>if (theme == null)<NEW_LINE>return;<NEW_LINE>if (!mateText.shouldColour())<NEW_LINE>return;<NEW_LINE>int eventLine = mateText.getControl().getLineAtOffset(event.lineOffset);<NEW_LINE>// System.out.printf("c%d, ", eventLine);<NEW_LINE>// ArrayList<Scope> scopes = ... | root.scopesBetween(startLineOffset, endLineOffset); |
336,468 | public Completion interpret(ExecutionContext context, boolean debug) {<NEW_LINE>List<Statement> content = getBlockContent();<NEW_LINE>Object completionValue = Types.UNDEFINED;<NEW_LINE>Statement previousStatement = null;<NEW_LINE>for (Statement each : content) {<NEW_LINE>Position position = each.getPosition();<NEW_LINE... | each.interpret(context, debug); |
926,025 | public void add(JMeterTreeModel treeModel, String comment) {<NEW_LINE>if (!isEnabled()) {<NEW_LINE>log.debug("undo.history.size is set to 0, undo/redo feature is disabled");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// don't add element if we are in the middle of undo/redo or a big loading<NEW_LINE>if (working) {<NEW_LINE>l... | copy = UndoCommand.convertAndCloneSubTree(tree); |
1,278,710 | protected void powerFurnaceCartWithFuelFromStorage(Entity riding) {<NEW_LINE>if (!(riding instanceof MinecartFurnace))<NEW_LINE>return;<NEW_LINE>MinecartFurnace furnaceCart = (MinecartFurnace) riding;<NEW_LINE>// Notify to not trigger serialization side-effects<NEW_LINE>isSerializingFurnaceCart = true;<NEW_LINE>Compoun... | nbt.putInt("Fuel", fuel); |
1,098,027 | protected void onCreate(final Bundle savedInstanceState) {<NEW_LINE>PrefsUtility.applyTheme(this);<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>if (!isTaskRoot() && getIntent().hasCategory(Intent.CATEGORY_LAUNCHER) && getIntent().getAction() != null && getIntent().getAction().equals(Intent.ACTION_MAIN)) {<NEW_... | show(getSupportFragmentManager(), null); |
1,402,515 | public static List<Tuple2<Double, ConfusionMatrix>> filterCloseEntries(List<Tuple2<Double, ConfusionMatrix>> threshCMs, int limit) {<NEW_LINE>int n = threshCMs.size();<NEW_LINE>if (n <= limit) {<NEW_LINE>return threshCMs;<NEW_LINE>}<NEW_LINE>int toRemove = n - limit;<NEW_LINE>// Maintain a double-linked list to store t... | prev[i] = i - 1; |
772,432 | public Object count(@PathVariable(value = DB_KEY) final String dbName, @PathVariable(value = TABLE_KEY) final String tblName, HttpServletRequest request, HttpServletResponse response) {<NEW_LINE>executeCheckPassword(request, response);<NEW_LINE>// just allocate 2 slot for top holder map<NEW_LINE>Map<String, Object> res... | "exception", e.getMessage()); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.