idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,396,204 | public ASN1Primitive toASN1Primitive() {<NEW_LINE>ASN1EncodableVector v = new ASN1EncodableVector(9);<NEW_LINE>if (version != DEFAULT_VERSION) {<NEW_LINE>v.<MASK><NEW_LINE>}<NEW_LINE>v.add(service);<NEW_LINE>if (nonce != null) {<NEW_LINE>v.add(new ASN1Integer(nonce));<NEW_LINE>}<NEW_LINE>if (requestTime != null) {<NEW_... | add(new ASN1Integer(version)); |
385,893 | public Map<String, Object> unpublishEvent(final String inode) throws PortalException, SystemException, DotDataException, DotSecurityException {<NEW_LINE>// DOTCMS-5199<NEW_LINE>final Map<String, Object> callbackData = new HashMap<>();<NEW_LINE>final List<String> <MASK><NEW_LINE>final WebContext ctx = WebContextFactory.... | eventUnpublishErrors = new ArrayList<>(); |
1,827,082 | public static RemoteMemoryTable newRemoteMemoryTable(int proxy, Table table) {<NEW_LINE><MASK><NEW_LINE>int[] seqs = table.dataStruct().getPKIndex();<NEW_LINE>int keyCount = seqs == null ? 0 : seqs.length;<NEW_LINE>Object keyValue = null;<NEW_LINE>if (keyCount == 1) {<NEW_LINE>if (recordCount > 0) {<NEW_LINE>Record r =... | int recordCount = table.length(); |
418,413 | public Unit call() throws IOException, StreamNotFoundException, ShellNotRunningException, IllegalArgumentException {<NEW_LINE>OutputStream outputStream;<NEW_LINE>File destFile = null;<NEW_LINE>switch(fileAbstraction.scheme) {<NEW_LINE>case CONTENT:<NEW_LINE>Objects.requireNonNull(fileAbstraction.uri);<NEW_LINE>if (file... | = fileAbstraction.hybridFileParcelable.getFile(); |
17,461 | private Vector<Vector<Object>> fillTable(final String sql, final int parameter) {<NEW_LINE>log.debug(sql + "; Parameter=" + parameter);<NEW_LINE>final Vector<Vector<Object>> <MASK><NEW_LINE>PreparedStatement pstmt = null;<NEW_LINE>ResultSet rs = null;<NEW_LINE>try {<NEW_LINE>pstmt = DB.prepareStatement(sql, null);<NEW_... | data = new Vector<>(); |
1,180,506 | public void marshall(APNSVoipChannelResponse aPNSVoipChannelResponse, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (aPNSVoipChannelResponse == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(aPNSVoipChannel... | aPNSVoipChannelResponse.getLastModifiedDate(), LASTMODIFIEDDATE_BINDING); |
760,591 | public Void visitSpecialForm(SpecialFormExpression specialForm, Set<RowExpression> context) {<NEW_LINE>if (specialForm.getForm() != DEREFERENCE) {<NEW_LINE>return super.visitSpecialForm(specialForm, context);<NEW_LINE>}<NEW_LINE>RowExpression expression = specialForm;<NEW_LINE>while (true) {<NEW_LINE>if (expression ins... | getArguments().get(0); |
608,496 | private ImmutableSet<IdlingResourceProxy> syncIdlingResources() {<NEW_LINE>// Collect unique registered idling resources.<NEW_LINE>HashMap<String, IdlingResource> registeredResourceByName = new HashMap<>();<NEW_LINE>for (IdlingResource resource : IdlingRegistry.getInstance().getResources()) {<NEW_LINE>String name = res... | , entry.getValue())); |
1,643,489 | final GetDocumentationVersionsResult executeGetDocumentationVersions(GetDocumentationVersionsRequest getDocumentationVersionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getDocumentationVersionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
603,919 | public void handleRequest(HttpServerExchange exchange) throws Exception {<NEW_LINE>var request = MongoRequest.of(exchange);<NEW_LINE>var response = MongoResponse.of(exchange);<NEW_LINE>if (request.isInError()) {<NEW_LINE>next(exchange);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>var etag = request.getETag() == null ? null : ... | invalidateDb(request.getDBName()); |
1,698,840 | public void print(Annotation doc, OutputStream target, Options options) throws IOException {<NEW_LINE>PrintWriter writer = new PrintWriter(IOUtils.encodedOutputStreamWriter<MASK><NEW_LINE>List<CoreMap> sentences = doc.get(CoreAnnotations.SentencesAnnotation.class);<NEW_LINE>for (CoreMap sentence : sentences) {<NEW_LINE... | (target, options.encoding)); |
650,920 | public Request<DescribeEventsRequest> marshall(DescribeEventsRequest describeEventsRequest) {<NEW_LINE>if (describeEventsRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<DescribeEventsRequest> request = new DefaultRequest<DescribeEventsReq... | (describeEventsRequest.getStartTime())); |
946,538 | protected List<ColumnValue> convertColumnValue(Long tbId, String tableName, String dbName) {<NEW_LINE>List<ColumnValue> columns = new ArrayList<>();<NEW_LINE>ResultSet resultSet = null;<NEW_LINE>try {<NEW_LINE>DatabaseMetaData dbMetadata = connection.getMetaData();<NEW_LINE>resultSet = dbMetadata.getColumns(null, dbNam... | columnIdx = resultSet.getInt("ORDINAL_POSITION"); |
206,757 | public void process(@Element Metadata dlqFile, MultiOutputReceiver outputs) throws IOException {<NEW_LINE>LOG.info("Found DLQ File: {}", dlqFile.resourceId().toString());<NEW_LINE>if (dlqFile.resourceId().toString().contains("/tmp/.temp")) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>BufferedReader jsonReader;<NEW_LINE>try {... | ObjectNode) jsonDLQElement.get("message"); |
1,055,792 | public void fromJSON(JsonReader jsonReader, ScmMaterialConfig scmMaterialConfig, ConfigHelperOptions options) {<NEW_LINE>jsonReader.readStringIfPresent("destination", scmMaterialConfig::setFolder);<NEW_LINE>jsonReader.optBoolean("invert_filter").ifPresent(scmMaterialConfig::setInvertFilter);<NEW_LINE>jsonReader.optJson... | readStringIfPresent("username", scmMaterialConfig::setUserName); |
1,295,020 | public void requestLocation(Context context, @NonNull LocationCallback callback) {<NEW_LINE>mLocationManager = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE);<NEW_LINE>mGMSClient = gmsEnabled(context) ? LocationServices.getFusedLocationProviderClient(context) : null;<NEW_LINE>if (mLocationManager ... | addOnSuccessListener(location -> mLastKnownLocation = location); |
698,322 | private static GrpcClientConfiguration testConfig(GrpcServerConfiguration serverConfiguration) {<NEW_LINE>GrpcClientConfiguration config = new GrpcClientConfiguration();<NEW_LINE>config.port = serverConfiguration.testPort;<NEW_LINE>config.host = serverConfiguration.host;<NEW_LINE>config.plainText = Optional.of(serverCo... | .flowControlWindow = OptionalInt.empty(); |
1,624,996 | public ORemoteQueryResult serverCommand(String query, Map args) {<NEW_LINE>int recordsPerPage = OGlobalConfiguration.QUERY_REMOTE_RESULTSET_PAGE_SIZE.getValueAsInteger();<NEW_LINE>if (recordsPerPage <= 0) {<NEW_LINE>recordsPerPage = 100;<NEW_LINE>}<NEW_LINE>OServerQueryRequest request = new OServerQueryRequest("sql", q... | ), response.isReloadMetadata()); |
601,214 | public GetMedicalVocabularyResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetMedicalVocabularyResult getMedicalVocabularyResult = new GetMedicalVocabularyResult();<NEW_LINE>AwsJsonReader reader = context.getReader();<NEW_LINE>reader.beginObject();<NEW_LINE>while (reader.hasNext()) {<NEW_... | ().unmarshall(context)); |
1,176,229 | public BeanDefinition parse(Element element, ParserContext pc) {<NEW_LINE>String loginProcessingUrl = element.getAttribute(ATT_LOGIN_PROCESSING_URL);<NEW_LINE>if (StringUtils.hasText(loginProcessingUrl)) {<NEW_LINE>this.loginProcessingUrl = loginProcessingUrl;<NEW_LINE>}<NEW_LINE>BeanDefinition saml2LoginBeanConfig = B... | "authenticationRequestRepository", authenticationRequestRepository).getBeanDefinition(); |
1,178,507 | public JimfsPath toRealPath(JimfsPath path, PathService pathService, Set<? super LinkOption> options) throws IOException {<NEW_LINE>checkNotNull(path);<NEW_LINE>checkNotNull(options);<NEW_LINE>store.readLock().lock();<NEW_LINE>try {<NEW_LINE>DirectoryEntry entry = lookUp(path, options).requireExists(path);<NEW_LINE>Lis... | add(entry.name()); |
1,042,066 | private static void addSort(final AppCompatActivity activity, final Menu menu, final Sort order) {<NEW_LINE>@StringRes<NEW_LINE>final int menuTitle;<NEW_LINE>if (activity instanceof OptionsMenuCommentsListener && ((OptionsMenuCommentsListener) activity).getSuggestedCommentSort() != null && ((OptionsMenuCommentsListener... | PostCommentSort) order).getSuggestedTitle(); |
503,257 | public void initialise() throws Exception {<NEW_LINE>setLayout(new BorderLayout());<NEW_LINE>ExplanationPreferencesPanelPluginLoader loader = new ExplanationPreferencesPanelPluginLoader(getEditorKit());<NEW_LINE>Set<PreferencesPanelPlugin> plugins = new TreeSet<>((o1, o2) -> {<NEW_LINE>String s1 = o1.getLabel();<NEW_LI... | String s2 = o2.getLabel(); |
1,727,304 | private static Pair<String, String> preIndexedLSL(final long offset, final ITranslationEnvironment environment, final List<ReilInstruction> instructions, final String registerNodeValue1, final String registerNodeValue2, final String immediateNodeValue) {<NEW_LINE>final String address = environment.getNextVariableString... | , immediateNodeValue, qw, tmpVar1)); |
179,069 | public SeqParameterSet initSPS(Size sz) {<NEW_LINE>SeqParameterSet sps = new SeqParameterSet();<NEW_LINE>sps.picWidthInMbsMinus1 = ((sz.getWidth() + 15) >> 4) - 1;<NEW_LINE>sps.picHeightInMapUnitsMinus1 = ((sz.getHeight() + 15) >> 4) - 1;<NEW_LINE>sps.chromaFormatIdc = ColorSpace.YUV420J;<NEW_LINE>sps.profileIdc = 66;<... | .log2(keyInterval) - 3); |
93,981 | public StartChangeRequestExecutionResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>StartChangeRequestExecutionResult startChangeRequestExecutionResult = new StartChangeRequestExecutionResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth... | String currentParentElement = context.getCurrentParentElement(); |
828,320 | final DisassociateCustomerGatewayResult executeDisassociateCustomerGateway(DisassociateCustomerGatewayRequest disassociateCustomerGatewayRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(disassociateCustomerGatewayRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
432,407 | protected void okPressed() {<NEW_LINE>// Set props<NEW_LINE>driver.setName(driverNameText.getText());<NEW_LINE>driver.setDescription(CommonUtils.notEmpty(driverDescText.getText()));<NEW_LINE>driver.setDriverClassName(driverClassText.getText());<NEW_LINE>driver.setSampleURL(driverURLText.getText());<NEW_LINE>driver.setD... | setDriverParameters(driverPropertySource.getPropertiesWithDefaults()); |
973,939 | public static void dumpParameters(XMLStringBuffer xsb, Map<String, String> parameters) {<NEW_LINE>// parameters<NEW_LINE>if (parameters.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>for (Map.Entry<String, String> para : parameters.entrySet()) {<NEW_LINE>Properties paramProps = new Properties();<NEW_LINE>if (para.ge... | "value", para.getValue()); |
535,702 | private void addTextSettingFields() {<NEW_LINE>textTextField = new JTextField();<NEW_LINE>textTextField.setVisible(false);<NEW_LINE>textTextField.<MASK><NEW_LINE>textLabel = new JLabel("Text", SwingConstants.RIGHT);<NEW_LINE>textLabel.setVisible(false);<NEW_LINE>GraphicsEnvironment ge = GraphicsEnvironment.getLocalGrap... | getDocument().addDocumentListener(this); |
997,200 | static void c_9() throws Exception {<NEW_LINE>AkSourceBatchOp train_data = new AkSourceBatchOp().setFilePath(DATA_DIR + TRAIN_FILE);<NEW_LINE>AkSourceBatchOp test_data = new AkSourceBatchOp(<MASK><NEW_LINE>new FmClassifier().setNumEpochs(10).setLearnRate(0.5).setNumFactor(2).setFeatureCols(FEATURE_COL_NAMES).setLabelCo... | ).setFilePath(DATA_DIR + TEST_FILE); |
1,197,867 | private static SuggestedFix generateFix(MethodInvocationTree tree, VisitorState state) {<NEW_LINE>NewClassTree receiver = (NewClassTree) getReceiver(tree);<NEW_LINE>List<? extends ExpressionTree<MASK><NEW_LINE>MethodSymbol methodSymbol = getSymbol(receiver);<NEW_LINE>String unit = ((MemberSelectTree) tree.getMethodSele... | > arguments = receiver.getArguments(); |
202,014 | private void sendMessage(String message, MessageColor color, String[] roomIds, String from, String authToken, boolean notify) {<NEW_LINE>for (String roomId : roomIds) {<NEW_LINE>LOGGER.info("Posting: {} to {}: {} {}", from, roomId, message, color);<NEW_LINE>HttpClient client = HttpClientBuilder.create().useSystemProper... | new BasicNameValuePair("message", message)); |
1,520,939 | final DeleteJobTemplateResult executeDeleteJobTemplate(DeleteJobTemplateRequest deleteJobTemplateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteJobTemplateRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | addHandlerContext(HandlerContextKey.SERVICE_ID, "IoT"); |
274,341 | final DescribeServiceUpdatesResult executeDescribeServiceUpdates(DescribeServiceUpdatesRequest describeServiceUpdatesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeServiceUpdatesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,552,766 | private static String fixRelativeLink(Pattern pattern, Path helpFile, String fileContents) {<NEW_LINE>int currentPosition = 0;<NEW_LINE>StringBuffer newContents = new StringBuffer();<NEW_LINE>Matcher matcher = pattern.matcher(fileContents);<NEW_LINE>boolean hasMatches = matcher.find();<NEW_LINE>if (!hasMatches) {<NEW_L... | fileContents.substring(currentPosition, matchStart); |
819,206 | final ListExperimentsResult executeListExperiments(ListExperimentsRequest listExperimentsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listExperimentsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | endClientExecution(awsRequestMetrics, request, response); |
613,831 | // NOTE: Copied from earlier `copyCurrentEvent()`<NEW_LINE>private void _copyBufferValue(JsonParser p, JsonToken t) throws IOException {<NEW_LINE>if (_mayHaveNativeIds) {<NEW_LINE>_checkNativeIds(p);<NEW_LINE>}<NEW_LINE>switch(t) {<NEW_LINE>case VALUE_STRING:<NEW_LINE>if (p.hasTextCharacters()) {<NEW_LINE>writeString(p... | _appendValue(JsonToken.VALUE_NUMBER_FLOAT, n); |
1,475,313 | protected void updateSelectedFilesFieldImpl(final Collection<File> selected) {<NEW_LINE>// Filtered selected files<NEW_LINE>final List<File> files = getFilteredSelectedFiles(selected);<NEW_LINE>// Updating controls<NEW_LINE>folderNew.setEnabled(currentFolder != null);<NEW_LINE>remove.setEnabled(currentFolder != null &&... | .setText(getFilesView(files)); |
1,480,487 | final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(tagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
1,557,114 | public static ListBriefSkillGroupsResponse unmarshall(ListBriefSkillGroupsResponse listBriefSkillGroupsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listBriefSkillGroupsResponse.setRequestId(_ctx.stringValue("ListBriefSkillGroupsResponse.RequestId"));<NEW_LINE>listBriefSkillGroupsResponse.setCode(_ctx.stringValue("Lis... | ("ListBriefSkillGroupsResponse.Data.List[" + i + "].SkillGroupId")); |
58,784 | public okhttp3.Call call123testSpecialTagsCall(Client body, final ApiCallback _callback) throws ApiException {<NEW_LINE>String basePath = null;<NEW_LINE>// Operation Servers<NEW_LINE>String[] localBasePaths = new String[] {};<NEW_LINE>// Determine Base Path to Use<NEW_LINE>if (localCustomBaseUrl != null) {<NEW_LINE>bas... | localVarAuthNames = new String[] {}; |
741,721 | public List<TermedStatementEntityEdit> schedule(List<TermedStatementEntityEdit> updates) throws ImpossibleSchedulingException {<NEW_LINE>pointerUpdates = new HashMap<>();<NEW_LINE>pointerFreeUpdates = new UpdateSequence();<NEW_LINE>for (TermedStatementEntityEdit update : updates) {<NEW_LINE>splitUpdate(update);<NEW_LIN... | >(pointerUpdates.keySet()); |
1,703,697 | final ListArchivesResult executeListArchives(ListArchivesRequest listArchivesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listArchivesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
37,068 | public static Set<Class<?>> collectTypesInSignature(Method controllerMethod) {<NEW_LINE>Set<Class<?>> collector = new TreeSet<>(Comparator.comparing(Class::getName));<NEW_LINE>Type genericReturnType;<NEW_LINE>Type[] genericParameterTypes;<NEW_LINE>if (KotlinDetector.isSuspendingFunction(controllerMethod) && !controller... | ).getLowerBounds()[0]; |
1,626,337 | protected String doInBackground(Void[] params) {<NEW_LINE>String items = "";<NEW_LINE>long fileLength = file.length(context);<NEW_LINE>if (file.isDirectory(context)) {<NEW_LINE>final AtomicInteger x = new AtomicInteger(0);<NEW_LINE>file.forEachChildrenFile(context, false, file -> x.incrementAndGet());<NEW_LINE>final in... | >(folderLength, data))); |
1,305,588 | private void initInfo(int record_id, String value) {<NEW_LINE>if (!(record_id == 0) && value != null && value.length() > 0) {<NEW_LINE>log.severe("Received both a record_id and a value: " + record_id + " - " + value);<NEW_LINE>}<NEW_LINE>//<NEW_LINE>if (record_id != 0) {<NEW_LINE>fieldID = record_id;<NEW_LINE>// Have t... | setSelected(o.isDelivered()); |
1,283,231 | final TestMetricFilterResult executeTestMetricFilter(TestMetricFilterRequest testMetricFilterRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(testMetricFilterRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "TestMetricFilter"); |
279,564 | private void prepareFramebuffer(int width, int height) {<NEW_LINE>GlUtil.checkGlError("start");<NEW_LINE>int[] values = new int[1];<NEW_LINE>// Create a texture object and bind it. This will be the color buffer.<NEW_LINE>GLES20.glGenTextures(1, values, 0);<NEW_LINE>GlUtil.checkGlError("glGenTextures");<NEW_LINE>// exp... | GlUtil.checkGlError("glBindFramebuffer " + mFramebuffer); |
1,509,877 | public PCollection<KV<K, V>> expand(PBegin input) {<NEW_LINE>validateTransform();<NEW_LINE>// Get the key and value coders based on the key and value classes.<NEW_LINE>CoderRegistry coderRegistry = input.getPipeline().getCoderRegistry();<NEW_LINE>Coder<K> keyCoder = getKeyCoder();<NEW_LINE>if (keyCoder == null) {<NEW_L... | getDefaultCoder(getValueTypeDescriptor(), coderRegistry); |
846,798 | private Long countExpiredTaskTaskCompleted(Business business, DateRange dateRange, String applicationId, String processId, String activityId, List<String> units, String person) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(TaskCompleted.class);<NEW_LINE>CriteriaBuilder cb = em.get... | root)).where(p); |
1,433,036 | public ListProvisionedConcurrencyConfigsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListProvisionedConcurrencyConfigsResult listProvisionedConcurrencyConfigsResult = new ListProvisionedConcurrencyConfigsResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurren... | int originalDepth = context.getCurrentDepth(); |
320,515 | public JsonResult execute() {<NEW_LINE>String recoveryEmailAddress = getNonNullRequestParamValue(Const.ParamsNames.STUDENT_EMAIL);<NEW_LINE>if (!StringHelper.isMatching(recoveryEmailAddress, REGEX_EMAIL)) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>String userCaptchaResponse = getRequestParamValue(Const.ParamsNames.USER_CAPT... | throw new InvalidHttpParameterException("Invalid email address: " + recoveryEmailAddress); |
372,802 | public void read(org.apache.thrift.protocol.TProtocol prot, initiateFlush_args struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet incoming = iprot.readBitSet(3);<NEW_LINE>if (incoming.get(0)... | .securityImpl.thrift.TCredentials(); |
827,632 | private void internalGetAndPut(final byte[] key, final byte[] value, final CompletableFuture<byte[]> future, final int retriesLeft, final Errors lastCause) {<NEW_LINE>final Region region = this.pdClient.findRegionByKey(key, ErrorsHelper.isInvalidEpoch(lastCause));<NEW_LINE>final RegionEngine regionEngine = getRegionEng... | future, retriesLeft - 1, retryCause); |
1,470,307 | private void validate(APIAddHostRouteToL3NetworkMsg msg) {<NEW_LINE>if (!NetworkUtils.isCidr(msg.getPrefix())) {<NEW_LINE>throw new ApiMessageInterceptionException(argerr("prefix [%s] is not a IPv4 network cidr", msg.getL3NetworkUuid()));<NEW_LINE>}<NEW_LINE>if (!NetworkUtils.isIpv4Address(msg.getNexthop())) {<NEW_LINE... | EQ, msg.getL3NetworkUuid()); |
751,417 | public long update() {<NEW_LINE>Database db = session.getDatabase();<NEW_LINE>Schema schema = db.findSchema(schemaName);<NEW_LINE>if (schema == null) {<NEW_LINE>if (!ifExists) {<NEW_LINE>throw DbException.get(ErrorCode.SCHEMA_NOT_FOUND_1, schemaName);<NEW_LINE>}<NEW_LINE>} else {<NEW_LINE>session.getUser().checkSchemaO... | schemaName, builder.toString()); |
1,431,932 | public void printResults(boolean showResults, double duration, int passes) {<NEW_LINE>if (showResults) {<NEW_LINE>System.out.print("2, ");<NEW_LINE>}<NEW_LINE>int count = 1;<NEW_LINE>for (int num = 3; num <= this.sieveSize; num++) {<NEW_LINE>if (getBit(num)) {<NEW_LINE>if (showResults) {<NEW_LINE>System.<MASK><NEW_LINE... | out.print(num + ", "); |
600,403 | public FileObject[] listSavedSnapshots(Lookup.Provider project, File directory) {<NEW_LINE>try {<NEW_LINE>FileObject snapshotsFolder = null;<NEW_LINE>if (project == null && directory != null) {<NEW_LINE>snapshotsFolder = FileUtil.toFileObject(directory);<NEW_LINE>} else {<NEW_LINE>snapshotsFolder = ProfilerStorage.getP... | compareTo(f2.getName()); |
1,219,310 | private SqlNodeList buildTargetColumn(SqlUpdate oldUpdate, String tableNameAlias, List<Integer> pickedColumnIndexes) {<NEW_LINE><MASK><NEW_LINE>SqlNodeList newTargetColumns = new SqlNodeList(oldTargetColumns.getParserPosition());<NEW_LINE>for (int i = 0; i < oldTargetColumns.size(); i++) {<NEW_LINE>SqlIdentifier sqlIde... | SqlNodeList oldTargetColumns = oldUpdate.getTargetColumnList(); |
1,598,103 | public void onViewAdded(View view) {<NEW_LINE>super.onViewAdded(view);<NEW_LINE>ConstraintWidget widget = getViewWidget(view);<NEW_LINE>if (view instanceof androidx.constraintlayout.widget.Guideline) {<NEW_LINE>if (!(widget instanceof Guideline)) {<NEW_LINE>LayoutParams layoutParams = (LayoutParams) view.getLayoutParam... | (LayoutParams) view.getLayoutParams(); |
1,789,634 | // ---------//<NEW_LINE>// touches //<NEW_LINE>// ---------//<NEW_LINE>@Override<NEW_LINE>public boolean touches(Section that) {<NEW_LINE><MASK><NEW_LINE>thatFatBox.grow(1, 1);<NEW_LINE>// Very rough test<NEW_LINE>if (!getPolygon().intersects(thatFatBox)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>int pos = getFirstP... | Rectangle thatFatBox = that.getBounds(); |
606,971 | public static DescribeDesktopGroupsResponse unmarshall(DescribeDesktopGroupsResponse describeDesktopGroupsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDesktopGroupsResponse.setRequestId(_ctx.stringValue("DescribeDesktopGroupsResponse.RequestId"));<NEW_LINE>describeDesktopGroupsResponse.setNextToken(_ctx.strin... | ("DescribeDesktopGroupsResponse.DesktopGroups[" + i + "].ResetType")); |
555,383 | public static void enqueue(@NonNull final Collection<PurchaseCandidateId> purchaseCandidateIds, @Nullable final DocTypeId docTypeId) {<NEW_LINE>final Multimap<Integer, I_C_PurchaseCandidate> //<NEW_LINE>//<NEW_LINE>vendorId2purchaseCandidate = loadByIds(PurchaseCandidateId.toIntSet(purchaseCandidateIds), I_C_PurchaseCa... | .asMap().values(); |
1,523,200 | protected void startSendFile() {<NEW_LINE><MASK><NEW_LINE>requestPermission(SEND_FILE, new PermissionUtils.SimpleCallback() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onGranted() {<NEW_LINE>Intent intent = new Intent(Intent.ACTION_GET_CONTENT);<NEW_LINE>intent.setType("*/*");<NEW_LINE>intent.addCategory(Intent... | TUIChatLog.i(TAG, "startSendFile"); |
49,994 | private void excludeSelected(boolean recurse) {<NEW_LINE>final ArrayList<PackageSet> selected = getSelectedSets(recurse);<NEW_LINE>if (selected == null || selected.isEmpty())<NEW_LINE>return;<NEW_LINE>for (PackageSet set : selected) {<NEW_LINE>if (myCurrentScope == null) {<NEW_LINE>myCurrentScope = new ComplementPackag... | myCurrentScope, set, false, append); |
1,143,592 | public void put(Object key, Object value) {<NEW_LINE>if (cacheSize <= memoryCache.size()) {<NEW_LINE>// we need to find the oldest entry<NEW_LINE>Enumeration e = memoryCache.keys();<NEW_LINE>long oldest = System.currentTimeMillis();<NEW_LINE>Object oldestKey = null;<NEW_LINE>Object[] oldestValue = null;<NEW_LINE>while ... | Object currentKey = e.nextElement(); |
1,440,851 | private boolean checkAndLockRelationshipsIfNodeIsGoingToBeDense(NodeRecord node, RelationshipModifications.NodeRelationshipIds byNode, RecordAccess<RelationshipRecord, Void> relRecords, ResourceLocker locks, LockTracer lockTracer) {<NEW_LINE>// We have an exclusively locked sparse not that may turn dense<NEW_LINE>long ... | currentDegree = relCount(nodeId, rel); |
1,854,991 | private MTreeNode retrieveRootNodeModel() {<NEW_LINE>final UserMenuInfo userMenuInfo = getUserMenuInfo();<NEW_LINE>final <MASK><NEW_LINE>if (adTreeId == null) {<NEW_LINE>throw new AdempiereException("Menu tree not found");<NEW_LINE>}<NEW_LINE>final MTree mTree = MTree.builder().setCtx(Env.getCtx()).setTrxName(ITrx.TRXN... | AdTreeId adTreeId = userMenuInfo.getAdTreeId(); |
1,790,269 | public boolean nest(SETNode other) {<NEW_LINE>if (other.resolve(this) == false) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>IterableSet otherBody = other.get_Body();<NEW_LINE>Iterator<IterableSet> sbit = subBodies.iterator();<NEW_LINE>while (sbit.hasNext()) {<NEW_LINE>IterableSet subBody = sbit.next();<NEW_LINE>if (su... | IterableSet childBody = curChild.get_Body(); |
1,068,881 | private RouteSubregion readRouteTree(RouteSubregion thisTree, RouteSubregion parentTree, int depth, boolean readCoordinates) throws IOException {<NEW_LINE>boolean readChildren = depth != 0;<NEW_LINE>if (readChildren) {<NEW_LINE>thisTree.subregions = new ArrayList<BinaryMapRouteReaderAdapter.RouteSubregion>();<NEW_LINE>... | thisTree.subregions.add(subregion); |
36,755 | // testargumentContainsExceptionInTwoCallbackClasses<NEW_LINE>public void testargumentContainsExceptionInTwoCallbackClasses(String BASE_URL, StringBuilder sb) throws Exception {<NEW_LINE>Client client = ClientBuilder.newClient();<NEW_LINE>invokeClear(client, BASE_URL);<NEW_LINE>invokeReset(client, BASE_URL);<NEW_LINE>F... | .async().get(); |
1,171,992 | public PermissionCalculator build(QueryOptions queryOptions, CacheMetadata metadata) {<NEW_LINE>List<PermissionProcessor> processors = new ArrayList<>(8);<NEW_LINE>processors.add(new DirectProcessor());<NEW_LINE>if (this.plugin.getConfiguration().get(ConfigKeys.APPLY_BUKKIT_CHILD_PERMISSIONS)) {<NEW_LINE>processors.add... | this.plugin, metadata, processors); |
510,140 | protected void parseData(Node data) {<NEW_LINE>try {<NEW_LINE>NodeList list = ((Element) data).getElementsByTagName(s_policyMapDetails);<NEW_LINE>if (list.getLength() > 0) {<NEW_LINE>NodeList readOnlyList = ((Element) list.item(0)).getElementsByTagName("__readonly__");<NEW_LINE>Element readOnly = (Element) readOnlyList... | parseInt(value.trim()); |
1,162,092 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>int countersRemoved = 0;<NEW_LINE>for (Cost cost : source.getCosts()) {<NEW_LINE>if (cost instanceof RemoveAllCountersSou... | cards, game, source, true); |
1,164,896 | public List<SignalStorageRecord> readStorageRecords(StorageKey storageKey, List<StorageId> storageKeys) throws IOException, InvalidKeyException {<NEW_LINE>if (storageKeys.isEmpty()) {<NEW_LINE>return Collections.emptyList();<NEW_LINE>}<NEW_LINE>List<SignalStorageRecord> result = new ArrayList<>();<NEW_LINE>Map<ByteStri... | (item, type, storageKey)); |
146,413 | private Future<ZooKeeperAdmin> connect(ZKClientConfig clientConfig) {<NEW_LINE>Promise<ZooKeeperAdmin> connected = Promise.promise();<NEW_LINE>try {<NEW_LINE>ZooKeeperAdmin zkAdmin = zooAdminProvider.createZookeeperAdmin(this.zookeeperConnectionString, zkAdminSessionTimeoutMs, watchedEvent -> LOGGER.debugCr(reconciliat... | ZookeeperScalingException(message, cause))); |
1,512,121 | public void marshall(LambdaFunctionRecommendation lambdaFunctionRecommendation, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (lambdaFunctionRecommendation == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(... | lambdaFunctionRecommendation.getMemorySizeRecommendationOptions(), MEMORYSIZERECOMMENDATIONOPTIONS_BINDING); |
862,387 | public <ReturnType> ReturnType execute(final boolean requestedRO, final EntitySqlDaoTransactionWrapper<ReturnType> entitySqlDaoTransactionWrapper) {<NEW_LINE>final String debugInfo = logger.isDebugEnabled() ? getDebugInfo() : null;<NEW_LINE>final Handle handle = dbRouter.getHandle(requestedRO);<NEW_LINE><MASK><NEW_LINE... | logger.debug("DBI handle created, transaction: {}", debugInfo); |
420,296 | protected void exportRectangle(JRPrintElement rectangle, JRPen pen, int radius) {<NEW_LINE>slideHelper.write("<p:sp>\n");<NEW_LINE>slideHelper.write(" <p:nvSpPr>\n");<NEW_LINE>slideHelper.write(" <p:cNvPr id=\"" + toOOXMLId(rectangle) + "\" name=\"Rectangle\"/>\n");<NEW_LINE>slideHelper.write(" <p:cNvSpPr>\n");<... | + getOffsetY()) + "\"/>\n"); |
1,236,708 | public void onViewCreated(@NonNull View view, Bundle savedInstanceState) {<NEW_LINE>FloatingActionButton fab = view.findViewById(R.id.fab);<NEW_LINE>fab.setOnClickListener(v -> startImportIconPack());<NEW_LINE>_fabScrollHelper = new FabScrollHelper(fab);<NEW_LINE>_noIconPacksView = view.findViewById(R.id.vEmptyList);<N... | = new LinearLayoutManager(getContext()); |
1,602,606 | private void recipesVanilla(@Nonnull Consumer<FinishedRecipe> out) {<NEW_LINE>FluidAwareShapedRecipeBuilder.builder(Items.TORCH, 12).pattern("wc ").pattern("sss").define('w', ItemTags.WOOL).define('c', new IngredientFluidStack(IETags.fluidCreosote, FluidAttributes.BUCKET_VOLUME)).define('s', Tags.Items.RODS_WOODEN).unl... | (out, toRL("paper_from_sawdust")); |
1,292,560 | private TrackerResponse tryForAllTrackers(Function<Tracker, TrackerResponse> func) {<NEW_LINE>List<TrackerResponse> responses = new ArrayList<>();<NEW_LINE>for (List<Tracker> trackerTier : trackerTiers) {<NEW_LINE>TrackerResponse response;<NEW_LINE>Tracker currentTracker;<NEW_LINE>for (int i = 0; i < trackerTier.size()... | .getError().get(); |
1,188,598 | private boolean testCase(String test, int count) {<NEW_LINE>boolean wasOk = false;<NEW_LINE>try {<NEW_LINE>Slime input = SlimeUtils.jsonToSlime(test);<NEW_LINE>Slime result = new Slime();<NEW_LINE>var top = result.setObject();<NEW_LINE>SlimeUtils.copyObject(input.get(), top);<NEW_LINE>var num_tests = input.<MASK><NEW_L... | get().field("num_tests"); |
1,229,391 | @SubmarineApi<NEW_LINE>public Response list(@QueryParam("dictCode") String dictCode, @QueryParam("itemText") String itemText, @QueryParam("itemValue") String itemValue, @QueryParam("column") String column, @QueryParam("field") String field, @QueryParam("order") String order, @QueryParam("pageNo") int pageNo, @QueryPara... | result(listResult).build(); |
800,117 | private Result seekMatchInAlternativePaths(ParserRuleContext currentCtx, int lookahead, int currentDepth, int matchingRulesCount, boolean isEntryPoint) {<NEW_LINE>ParserRuleContext[] alternativeRules;<NEW_LINE>switch(currentCtx) {<NEW_LINE>case XML_CONTENT:<NEW_LINE>alternativeRules = XML_CONTENT;<NEW_LINE>break;<NEW_L... | throw new IllegalStateException("seekMatchInExprRelatedAlternativePaths found: " + currentCtx); |
820,487 | private static List<ClassInfo> listOfficial() throws Exception {<NEW_LINE>try (ScanResult scanResult = new ClassGraph().addClassLoader(ClassLoaderTools.urlClassLoader(true, false, true, false, false)).enableAnnotationInfo().scan()) {<NEW_LINE>List<ClassInfo> list = new ArrayList<>();<NEW_LINE>List<ClassInfo> classInfos... | getApplication().getExcludes()); |
866,311 | public void run() {<NEW_LINE>try {<NEW_LINE>if (isCanceled()) {<NEW_LINE>// NOI18N<NEW_LINE>showDiffError(NbBundle.getMessage(DiffResultsView.class, "MSG_DiffPanel_NoRevisions"));<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final DiffController view = DiffController.createEnhanced(leftSource, rightSource);<NEW_LINE>int leftMa... | (leftMaxLineNumber, lineNumber), false); |
377,028 | public static String scramble323(String pass, String seed) {<NEW_LINE>if ((pass == null) || (pass.length() == 0)) {<NEW_LINE>return pass;<NEW_LINE>}<NEW_LINE>byte b;<NEW_LINE>double d;<NEW_LINE>long[] pw = hash(seed);<NEW_LINE>long[] msg = hash(pass);<NEW_LINE>long max = 0x3fffffffL;<NEW_LINE>long seed1 = (pw[0] ^ msg[... | * 3) + seed2) % max; |
584,218 | public com.amazonaws.services.comprehend.model.UnsupportedLanguageException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.comprehend.model.UnsupportedLanguageException unsupportedLanguageException = new com.amazonaws.services.comprehend.model.UnsupportedLangua... | String currentParentElement = context.getCurrentParentElement(); |
959,075 | private void validateTransparent(ShieldedTransferContract shieldedTransferContract, long fee) throws ContractValidateException {<NEW_LINE>boolean hasTransparentFrom;<NEW_LINE>boolean hasTransparentTo;<NEW_LINE>byte[] toAddress = shieldedTransferContract.getTransparentToAddress().toByteArray();<NEW_LINE>byte[] ownerAddr... | ContractValidateException(e.getMessage()); |
375,551 | private void processSelectControl(ControlFontPair pair, Control ctrl, PDAcroForm acro, int i, Box root) throws IOException {<NEW_LINE>PDComboBox field = new PDComboBox(acro);<NEW_LINE>setPartialNameToField(ctrl, field);<NEW_LINE>List<String> labels = new ArrayList<>();<NEW_LINE>List<String> values = new ArrayList<>();<... | .getStyle().getColor(); |
1,558,140 | public void startScaling(final SchemaVersionPreparedEvent event) {<NEW_LINE>String activeVersion = schemaVersionPersistService.getSchemaActiveVersion(event.getSchemaName()).get();<NEW_LINE>String sourceDataSource = repository.get(SchemaMetaDataNode.getMetaDataDataSourcePath(event.getSchemaName(), activeVersion));<NEW_L... | , event.getVersion())); |
1,499,207 | static String formatTime(long t) {<NEW_LINE>String str;<NEW_LINE>if (t < 1 * MINUTE) {<NEW_LINE>// NOI18N<NEW_LINE>String seconds = String.format("%.3f", t / (double) SECOND);<NEW_LINE>// NOI18N<NEW_LINE>str = Resources.getText("LBL_DurationSeconds", seconds);<NEW_LINE>} else {<NEW_LINE>long remaining = t;<NEW_LINE>lon... | "LBL_DurationDaysHoursMinutes", days, hours, minutes); |
1,639,414 | public void saveParam(Object obj) throws Exception {<NEW_LINE>OptionsParam options = (OptionsParam) obj;<NEW_LINE>ScannerParam param = options.getParamSet(ScannerParam.class);<NEW_LINE>param.setHostPerScan(getSliderHostPerScan().getValue());<NEW_LINE>param.setThreadPerHost(getSliderThreadsPerHost().getValue());<NEW_LIN... | getChkHandleAntiCSRFTokens().isSelected()); |
752,389 | public static EnableOrderResponse unmarshall(EnableOrderResponse enableOrderResponse, UnmarshallerContext _ctx) {<NEW_LINE>enableOrderResponse.setRequestId(_ctx.stringValue("EnableOrderResponse.RequestId"));<NEW_LINE>enableOrderResponse.setCode(_ctx.stringValue("EnableOrderResponse.Code"));<NEW_LINE>enableOrderResponse... | (_ctx.stringValue("EnableOrderResponse.Model.RedirectUrl")); |
577,038 | public JsonNode sendBeat(BeatInfo beatInfo, boolean lightBeatEnabled) throws NacosException {<NEW_LINE>if (NAMING_LOGGER.isDebugEnabled()) {<NEW_LINE>NAMING_LOGGER.debug("[BEAT] {} sending beat to server: {}", namespaceId, beatInfo.toString());<NEW_LINE>}<NEW_LINE>Map<String, String> params = new HashMap<String, String... | params, bodyMap, HttpMethod.PUT); |
1,267,742 | public List<Class<?>> findAnnotatedTypes(Class<?> annotation) {<NEW_LINE>final List<Class<?>> classes = new ArrayList<Class<?>>();<NEW_LINE>TypeReporter reporter = new ListReporter(classes);<NEW_LINE>final AnnotationDetector cf = new AnnotationDetector(reporter);<NEW_LINE>try {<NEW_LINE>ClassLoader loader = this.getCla... | throw new BugException("Unable to search class path", e); |
1,455,675 | public MetastoreOperationResult addPartitions(MetastoreContext metastoreContext, String databaseName, String tableName, List<PartitionWithStatistics> partitions) {<NEW_LINE>try {<NEW_LINE>List<Future<BatchCreatePartitionResult>> <MASK><NEW_LINE>for (List<PartitionWithStatistics> partitionBatch : Lists.partition(partiti... | futures = new ArrayList<>(); |
1,215,042 | final DeleteDomainResult executeDeleteDomain(DeleteDomainRequest deleteDomainRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteDomainRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<DeleteDomainRequest> request = null;<NEW_LINE... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.