idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
223,123 | private void loadNode566() {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.AuditCreateSessionEventType_ClientCertificate, new QualifiedName(0, "ClientCertificate"), new LocalizedText("en", "ClientCertificate"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), new Dat... | (1), 0.0, false); |
884,011 | public void transformClass(ClassHolder cls, ClassHolderTransformerContext context) {<NEW_LINE>int suffix = 0;<NEW_LINE>for (MethodHolder method : cls.getMethods()) {<NEW_LINE>if (method.hasModifier(ElementModifier.NATIVE) && method.getAnnotations().get(Async.class.getName()) != null && method.getAnnotations().get(Gener... | ] = method.parameterType(i); |
787,250 | public static DescribeRulesResponse unmarshall(DescribeRulesResponse describeRulesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeRulesResponse.setRequestId(_ctx.stringValue("DescribeRulesResponse.RequestId"));<NEW_LINE>List<Rule> rules = new ArrayList<Rule>();<NEW_LINE>for (int i = 0; i < _ctx.lengthValue("Desc... | ("DescribeRulesResponse.Rules[" + i + "].Domain")); |
1,128,762 | private JSONObject evaluateOnCallFrame(String frameId, String expression) {<NEW_LINE>Utils.logVerbose("Evaluating expression \"" + expression + "\" on frame: " + frameId);<NEW_LINE>JSONObject response = new JSONObject();<NEW_LINE>try {<NEW_LINE>Value value = getContextManager().getEvaluationManager().evaluateOnCallFram... | "value", ex.toString()); |
1,155,425 | public byte[] doInTransform(Instrumentor instrumentor, ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws InstrumentException {<NEW_LINE>InstrumentClass target = instrumentor.getInstrumentClass(loader, className, classfileBuffer);<NEW_LI... | target.addField(DatabaseInfoAccessor.class); |
602,360 | private void verifyHostname(X509Certificate cert) throws CertificateParsingException {<NEW_LINE>try {<NEW_LINE>Collection sans = cert.getSubjectAlternativeNames();<NEW_LINE>if (sans == null) {<NEW_LINE>String dn = cert.getSubjectX500Principal().getName();<NEW_LINE>LdapName ln = new LdapName(dn);<NEW_LINE>for (Rdn rdn :... | Iterator i = sans.iterator(); |
1,818,583 | public void show(String title) {<NEW_LINE>dialog = new Shell(Display.getDefault(), SWT.APPLICATION_MODAL | SWT.DIALOG_TRIM | SWT.RESIZE);<NEW_LINE>dialog.setText(title);<NEW_LINE>dialog.setLayout(new GridLayout(1, true));<NEW_LINE>tabFolder = new TabFolder(dialog, SWT.BORDER);<NEW_LINE>tabFolder.setLayoutData(new GridD... | .setControl(getServiceControl(tabFolder)); |
1,767,098 | final DescribeApplicationResult executeDescribeApplication(DescribeApplicationRequest describeApplicationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeApplicationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | (super.beforeMarshalling(describeApplicationRequest)); |
994,649 | public UpdateDataRepositoryAssociationResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UpdateDataRepositoryAssociationResult updateDataRepositoryAssociationResult = new UpdateDataRepositoryAssociationResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentP... | JsonToken token = context.getCurrentToken(); |
1,439,410 | final ModifyVpcTenancyResult executeModifyVpcTenancy(ModifyVpcTenancyRequest modifyVpcTenancyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(modifyVpcTenancyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "ModifyVpcTenancy"); |
658,691 | public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = "c0,c1,c2".split(",");<NEW_LINE>String epl = "@name('s0') select " + "value < all (select sum(intPrimitive) from SupportBean#keepall group by theString) as c0, " + "value < any (select sum(intPrimitive) from SupportBean#keepall group by theString) ... | env.compileDeployAddListenerMileZero(epl, "s0"); |
1,086,364 | public void error(Exception e) {<NEW_LINE>String id = StringTools.uniqueToken();<NEW_LINE>String formattedMessage = this.message(id, e);<NEW_LINE>if (internalLogger.isErrorEnabled()) {<NEW_LINE>internalLogger.error(formattedMessage, e);<NEW_LINE>}<NEW_LINE>new Thread(() -> {<NEW_LINE>try {<NEW_LINE>Map<String, Object> ... | PARAMETER_MESSAGE, e.getMessage()); |
652,757 | public Object pushObject(final String groupName, final String path, final ObjectWriterDelegate writerDelegate, final Serializable object, final Map<String, Serializable> extraMeta) throws DotDataException {<NEW_LINE>if (!this.existsGroup(groupName)) {<NEW_LINE>throw new IllegalArgumentException(String<MASK><NEW_LINE>}<... | .format(THE_BUCKET_NAME_S_DOES_NOT_HAVE_ANY_FILE_MAPPED, groupName)); |
1,507,341 | public static Pack triggerThreadList() {<NEW_LINE>PrintWriter out = null;<NEW_LINE>MapPack pack = new MapPack();<NEW_LINE>try {<NEW_LINE>File file = DumpUtil.getDumpFile("scouter.threads");<NEW_LINE>out = new PrintWriter(new FileWriter(file));<NEW_LINE>MapPack mpack = ThreadUtil.getThreadList();<NEW_LINE>ListValue ids ... | (ctx.txid) + ":"); |
232,250 | public T newInstance() {<NEW_LINE>T instance;<NEW_LINE>try {<NEW_LINE>InvocationHandlerImpl<T> handler = new InvocationHandlerImpl<T>(this);<NEW_LINE>if (dynamic) {<NEW_LINE>instance = cls.newInstance();<NEW_LINE>((DynamicObject) instance).delegate((DynamicObjectDelegate) handler);<NEW_LINE>} else {<NEW_LINE>instance =... | .getName()), ex); |
116,306 | ParsingStage afterAtSign(int i) {<NEW_LINE>if (i == connectionUri.length()) {<NEW_LINE>throw new VertxException("Empty net location", true);<NEW_LINE>}<NEW_LINE>int j = <MASK><NEW_LINE>if (j >= i) {<NEW_LINE>return new Protocol(connectionUri, i, j, configuration);<NEW_LINE>}<NEW_LINE>if (connectionUri.charAt(i) == '(')... | connectionUri.indexOf("://", i); |
167,007 | public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException {<NEW_LINE>if (bean instanceof DynamicThreadPoolExecutor) {<NEW_LINE>DynamicThreadPool dynamicThreadPool;<NEW_LINE>try {<NEW_LINE>dynamicThreadPool = ApplicationContextHolder.findAnnotationOnBean(beanName, DynamicThreadPool... | log.error("Failed to create dynamic thread pool in annotation mode.", ex); |
1,242,352 | public static void loadJVMS() {<NEW_LINE>try {<NEW_LINE>Path path = Paths.get(new File(JVMS_HTML_FILENAME).toURI());<NEW_LINE>String html = new String(Files.readAllBytes(path), StandardCharsets.UTF_8);<NEW_LINE>int htmlLength = html.length();<NEW_LINE>String descStart = "<div class=\"section-execution\"";<NEW_LINE>int ... | html.substring(startPos, endPos); |
1,357,963 | private static InetSocketAddress parseHttpProxyAddress(String s) {<NEW_LINE>int <MASK><NEW_LINE>if (p < 0)<NEW_LINE>throw new IllegalArgumentException("Invalid http proxy option (missing port) - " + s);<NEW_LINE>String host = s.substring(0, p);<NEW_LINE>int port = -1;<NEW_LINE>try {<NEW_LINE>port = Integer.parseInt(s.s... | p = s.indexOf(':'); |
787,464 | public boolean delete(final Object model) {<NEW_LINE>if (model == null) {<NEW_LINE>throw new IllegalArgumentException("model is null");<NEW_LINE>}<NEW_LINE>final POJOWrapper wrapper = POJOWrapper.getWrapper(model);<NEW_LINE>if (wrapper == null) {<NEW_LINE>throw new IllegalArgumentException("model '" + model + "' is not... | fireModelChanged(model, ModelChangeType.AFTER_DELETE); |
979,165 | private <I extends ComponentInfo> List<ResolveInfo> queryComponentsInManifest(Intent intent, Function<PackageInfo, I[]> componentsInPackage, SortedMap<ComponentName, List<IntentFilter>> filters, BiConsumer<ResolveInfo, I> componentSetter) {<NEW_LINE>synchronized (lock) {<NEW_LINE>if (isExplicitIntent(intent)) {<NEW_LIN... | (Collections.singletonList(resolveInfo)); |
1,365,920 | public WorldBorderMessage decode(ByteBuf buffer) throws IOException {<NEW_LINE>int actionId = ByteBufUtils.readVarInt(buffer);<NEW_LINE>Action action = Action.getAction(actionId);<NEW_LINE>switch(action) {<NEW_LINE>case SET_SIZE:<NEW_LINE>double radius = buffer.readDouble();<NEW_LINE>return new WorldBorderMessage(actio... | speed = ByteBufUtils.readVarLong(buffer); |
86,412 | private void updateTableColumnSizes() {<NEW_LINE>ETable table = notificationTable;<NEW_LINE>Font font = notificationScroll.getFont();<NEW_LINE>FontMetrics fm = notificationScroll.getFontMetrics(font.deriveFont(Font.BOLD));<NEW_LINE>// NOI18N<NEW_LINE>int maxCharWidth = fm.charWidth('A');<NEW_LINE>int inset = 10;<NEW_LI... | 0, 0, 0, 0); |
87,410 | public void reverseReturn(final de.metas.handlingunits.model.I_M_InOut returnInOut) {<NEW_LINE>if (!(returnsServiceFacade.isVendorReturn(returnInOut) || returnsServiceFacade.isCustomerReturn(returnInOut))) {<NEW_LINE>// nothing to do<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final String snapshotId = returnInOut.getSnapshot... | hus = huAssignmentDAO.retrieveTopLevelHUsForModel(returnInOut); |
216,947 | protected void showTextFieldPanel() {<NEW_LINE>final JLayeredPane layeredPane = getLayeredPane();<NEW_LINE>final Dimension preferredTextFieldPanelSize = myTextFieldPanel.getPreferredSize();<NEW_LINE>final int x = (layeredPane.getWidth() - preferredTextFieldPanelSize.width) / 2;<NEW_LINE>final int paneHeight = layeredPa... | ).createComponentPopupBuilder(myTextFieldPanel, myTextField); |
1,059,701 | public static LongFloatVector mergeSparseFloatVector(LongIndexGetParam param, List<PartitionGetResult> partResults) {<NEW_LINE>long dim = PSAgentContext.get().getMatrixMetaManager().getMatrixMeta(param.getMatrixId()).getColNum();<NEW_LINE>LongFloatVector vector = VFactory.sparseLongKeyFloatVector(dim, param.size());<NE... | getPartKeyToIndexesMap().get(partKey); |
321,026 | String index(Request request, Response response) throws IOException {<NEW_LINE>String pluginType = request.queryParams("type");<NEW_LINE>RolesConfig roles = roleConfigService.getRoles().ofType(pluginType);<NEW_LINE>RolesViewModel rolesViewModel = new RolesViewModel().setRolesConfig(roles);<NEW_LINE>List<String> envName... | .toJSON(outputWriter, rolesViewModel)); |
667,025 | public DotTempFile createEmptyTempFile(final String incomingFileName, final HttpServletRequest request) throws DotSecurityException {<NEW_LINE>final String anon = Try.of(() -> APILocator.getUserAPI().getAnonymousUser().getUserId<MASK><NEW_LINE>final User user = PortalUtil.getUser(request);<NEW_LINE>final String session... | ()).getOrElse("anonymous"); |
1,852,490 | public void mergeTo(IntLongVector mergedRow) {<NEW_LINE>StorageMethod method = VectorStorageUtils.getStorageMethod(vector);<NEW_LINE>switch(method) {<NEW_LINE>case DENSE:<NEW_LINE>{<NEW_LINE>long[] values = getVector()<MASK><NEW_LINE>for (int i = 0; i < values.length; i++) {<NEW_LINE>mergedRow.set(i + (int) indexOffset... | .getStorage().getValues(); |
98,560 | public List<CandidateCellForSweeping> next() {<NEW_LINE>Preconditions.checkState(hasNext());<NEW_LINE>List<CellTsPairInfo> cellTsBatch = cellTsIterator.next();<NEW_LINE>List<CandidateCellForSweeping> candidates = new ArrayList<>();<NEW_LINE>for (CellTsPairInfo cellTs : cellTsBatch) {<NEW_LINE>checkCurrentCellAndUpdateI... | ).ifPresent(candidates::add); |
588,137 | public static String[] splitOnToken(String receiver, String token, int limit) {<NEW_LINE>// Check if it's even possible to perform a split<NEW_LINE>if (receiver == null || receiver.length() == 0 || token == null || token.length() == 0 || receiver.length() < token.length()) {<NEW_LINE>return new String[] { receiver };<N... | receiver.indexOf(token, pos); |
60,247 | final GetResolverConfigResult executeGetResolverConfig(GetResolverConfigRequest getResolverConfigRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getResolverConfigRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
1,117,341 | final DescribeAlertResult executeDescribeAlert(DescribeAlertRequest describeAlertRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeAlertRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | endClientExecution(awsRequestMetrics, request, response); |
1,737,200 | private void verify(final Mac mac) throws IOException {<NEW_LINE>final <MASK><NEW_LINE>final DataOutputStream data = new DataOutputStream(out);<NEW_LINE>// name of algorithm<NEW_LINE>String keyType = this.getType().toString();<NEW_LINE>data.writeInt(keyType.length());<NEW_LINE>data.writeBytes(keyType);<NEW_LINE>data.wr... | ByteArrayOutputStream out = new ByteArrayOutputStream(256); |
1,067,858 | public void fillForeignKeys(EntityType item, String... columnNames) {<NEW_LINE>HashSet<String> columnNameSet = new HashSet<String>(asList(columnNames));<NEW_LINE>boolean fillAll = columnNameSet.isEmpty();<NEW_LINE>FieldSpec<ColumnAnn>[] columnSpecs = ClassSpecRegistry.getTableColumnSpecs(cls);<NEW_LINE>for (FieldSpec<C... | getFieldVal(item, spec.field); |
1,794,195 | public ListMFADeviceTagsResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>ListMFADeviceTagsResult listMFADeviceTagsResult = new ListMFADeviceTagsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocu... | ().unmarshall(context)); |
1,221,164 | private void updateDeviceSessionConfiguration(DeviceProfile deviceProfile) {<NEW_LINE>DeviceProfileTransportConfiguration transportConfiguration = deviceProfile<MASK><NEW_LINE>if (transportConfiguration.getType().equals(DeviceTransportType.MQTT) && transportConfiguration instanceof MqttDeviceProfileTransportConfigurati... | .getProfileData().getTransportConfiguration(); |
1,165,765 | private Mono<PagedResponse<VpnGatewayInner>> listByResourceGroupSinglePageAsync(String resourceGroupName, 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."));<NEW_LINE>}<NEW_L... | .nextLink(), null)); |
797,006 | public static MethodType fromMethodDescriptorString(String methodDescriptor, ClassLoader loader) {<NEW_LINE>ClassLoader classLoader = loader;<NEW_LINE>if (classLoader == null) {<NEW_LINE>classLoader = ClassLoader.getSystemClassLoader();<NEW_LINE>}<NEW_LINE>// Check cache<NEW_LINE>Map<String, MethodType> classLoaderMeth... | classes = parseIntoClasses(methodDescriptor, classLoader); |
1,743,372 | public Outcome<VirtualMachine> startVmThroughJobQueue(final String vmUuid, final Map<VirtualMachineProfile.Param, Object> params, final DeploymentPlan planToDeploy, final DeploymentPlanner planner) {<NEW_LINE>String commandName = VmWorkStart.class.getName();<NEW_LINE>Pair<VmWorkJobVO, Long> pendingWorkJob = retrievePen... | Long vmId = pendingWorkJob.second(); |
87,150 | private List<GenomicsDBImportConfiguration.Partition> generatePartitionListFromIntervals() {<NEW_LINE>return intervals.stream().map(interval -> {<NEW_LINE>Coordinates.ContigPosition.Builder contigPositionBuilder = Coordinates.ContigPosition.newBuilder();<NEW_LINE>contigPositionBuilder.<MASK><NEW_LINE>Coordinates.Genomi... | setContig(interval.getContig()); |
1,395,329 | public GetRepositoryTriggersResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetRepositoryTriggersResult getRepositoryTriggersResult = new GetRepositoryTriggersResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = ori... | int originalDepth = context.getCurrentDepth(); |
713,965 | private boolean isRecoveryAuthnCodeInputValid(AuthenticationFlowContext authnFlowContext) {<NEW_LINE>boolean result = false;<NEW_LINE>MultivaluedMap<String, String> formParamsMap = authnFlowContext.getHttpRequest().getDecodedFormParameters();<NEW_LINE>String recoveryAuthnCodeUserInput = formParamsMap.getFirst(RecoveryA... | RecoveryAuthnCodesUtils.RECOVERY_AUTHN_CODES_INPUT_DEFAULT_ERROR_MESSAGE, RecoveryAuthnCodesUtils.FIELD_RECOVERY_CODE_IN_BROWSER_FLOW); |
74,429 | private Mono<Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceUri, String linkerName, LinkerResourceInner parameters, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required an... | this.client.mergeContext(context); |
105,189 | protected void showCurrentFormat(LatLon l) {<NEW_LINE>final EditText latEdit = view.findViewById(R.id.LatitudeEdit);<NEW_LINE>final EditText lonEdit = view.findViewById(R.id.LongitudeEdit);<NEW_LINE>switch(currentFormat) {<NEW_LINE>case PointDescription.UTM_FORMAT:<NEW_LINE>{<NEW_LINE>view.findViewById(R.id.easting_row... | ).setVisibility(View.VISIBLE); |
523,275 | public ApiResponse<RecentGroupedContents> filesGetRecentGroupesWithHttpInfo(Integer pageIndex, Integer pageSize, Integer filter, Integer groupBy, String sortExpression, Boolean reversed) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'pageIndex' is set<NEW_LINE>... | = new String[] { "oauth2" }; |
1,718,481 | static long calculateInfluencerRequirementBytes(AnalysisConfig analysisConfig, Map<String, Long> maxBucketCardinality) {<NEW_LINE>// Influencers that are also by/over/partition fields do not consume extra memory by being influencers<NEW_LINE>Set<String> pureInfluencers = new HashSet<<MASK><NEW_LINE>for (Detector detect... | >(analysisConfig.getInfluencers()); |
1,399,263 | public void updateAsciiStream(int i, InputStream x, long length) throws SQLException {<NEW_LINE>try {<NEW_LINE>rsetImpl.updateAsciiStream(i, x, length);<NEW_LINE>} catch (SQLException sqlX) {<NEW_LINE>FFDCFilter.processException(sqlX, getClass().getName() + ".updateAsciiStream", "2981", this);<NEW_LINE>throw WSJdbcUtil... | this, tc, "updateAsciiStream", runX); |
778,118 | protected boolean checkDerivedKeys(AbstractTokenWrapper tokenWrapper, boolean hasDerivedKeys, List<WSSecurityEngineResult> signedResults, List<WSSecurityEngineResult> encryptedResults) {<NEW_LINE><MASK><NEW_LINE>boolean isDerivedKeys = token.getDerivedKeys() == DerivedKeys.RequireDerivedKeys;<NEW_LINE>// If derived key... | AbstractToken token = tokenWrapper.getToken(); |
654,854 | private static DataBindings transform(DataBindings parent, XmlElement elem, boolean withTokens) {<NEW_LINE>// Add to parent<NEW_LINE>DataBindings children = new DataBindings();<NEW_LINE>parent.put(elem.getName().getRawText(), withTokens ? makeTokensValue(elem, children) : children);<NEW_LINE>// Attributes<NEW_LINE>for ... | getValue().getValue()); |
1,477,188 | // FIXME: speed this up by using a one-dimensional array<NEW_LINE>private double compare_(String s1, String s2) {<NEW_LINE>// before we begin, note the length of the strings<NEW_LINE>int shortlen = Math.min(s1.length(), s2.length());<NEW_LINE>int longlen = Math.max(s1.length(), s2.length());<NEW_LINE>// total length of... | [i][j] = 0; |
567,426 | @JSONP<NEW_LINE>@NoCache<NEW_LINE>@Consumes(MediaType.APPLICATION_JSON)<NEW_LINE>@Produces({ MediaType.APPLICATION_JSON, "application/javascript" })<NEW_LINE>public Response deleteVersion(@Context final HttpServletRequest httpRequest, @Context final HttpServletResponse httpResponse, @PathParam("versionableInode") final... | + " deleted successfully")).build(); |
193,147 | public static RoundChange decode(final Bytes data, final BftExtraDataCodec bftExtraDataCodec) {<NEW_LINE>final RLPInput rlpIn = RLP.input(data);<NEW_LINE>rlpIn.enterList();<NEW_LINE>final SignedData<RoundChangePayload> payload = readPayload(rlpIn, RoundChangePayload::readFrom);<NEW_LINE>final Optional<Block> block;<NEW... | (r, PreparePayload::readFrom)); |
1,307,858 | public void init() throws ServletException {<NEW_LINE>super.init();<NEW_LINE>try {<NEW_LINE>tcfBindings = (TopicConnectionFactory) new InitialContext().lookup("java:comp/env/eis/tcf");<NEW_LINE>} catch (NamingException e) {<NEW_LINE>e.printStackTrace();<NEW_LINE>}<NEW_LINE>System.out.println("Topic connection factory '... | out.println("Topic 'eis/topic1':\n" + topic1); |
1,845,714 | private Mono<Response<B2CTenantResourceInner>> updateWithResponseAsync(String resourceGroupName, String resourceName, B2CTenantUpdateRequest updateTenantRequestBody, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (this.client.getSubscriptionId() =... | error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); |
1,595,211 | protected void configure() {<NEW_LINE>bind(CronPredictor.class).to(CronPredictorImpl.class);<NEW_LINE>bind(CronPredictorImpl.class).in(Singleton.class);<NEW_LINE>bind(CronJobManager.class).to(CronJobManagerImpl.class);<NEW_LINE>bind(CronJobManagerImpl.class).in(Singleton.class);<NEW_LINE>bind(CronScheduler.class).to(Cr... | ).in(Singleton.class); |
340,241 | private boolean isSSLRequired(com.ibm.ws.javaee.dd.web.common.SecurityConstraint archiveConstraint) {<NEW_LINE>boolean sslRequired = false;<NEW_LINE>UserDataConstraint dataConstraint = archiveConstraint.getUserDataConstraint();<NEW_LINE>if (dataConstraint != null) {<NEW_LINE><MASK><NEW_LINE>String webResourceName = arc... | int transportGuarantee = dataConstraint.getTransportGuarantee(); |
1,734,378 | public static int compare(Object o1, Object o2) {<NEW_LINE>if (o1 == null)<NEW_LINE>return o2 == null ? 0 : -1;<NEW_LINE>if (o2 == null)<NEW_LINE>return 1;<NEW_LINE>if (o1.equals(o2))<NEW_LINE>return 0;<NEW_LINE>if (o1 instanceof Number && o2 instanceof Number) {<NEW_LINE>if (o1 instanceof Double || o2 instanceof Doubl... | ) o2).doubleValue()); |
534,838 | public ParentPet read(JsonReader in) throws IOException {<NEW_LINE>JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject();<NEW_LINE>validateJsonObject(jsonObj);<NEW_LINE>// store additional fields in the deserialized instance<NEW_LINE>ParentPet instance = thisAdapter.fromJsonTree(jsonObj);<NEW_LINE>for (Map.Ent... | ().toString())); |
368,320 | private DefaultLoadControl createLoadControl() {<NEW_LINE>DefaultLoadControl.Builder <MASK><NEW_LINE>// baseBuilder.setAllocator(new DefaultAllocator(true, C.DEFAULT_BUFFER_SEGMENT_SIZE))<NEW_LINE>// .setBufferDurationsMs(2_500,<NEW_LINE>// 5_000,<NEW_LINE>// 1_000,<NEW_LINE>// 2_000)<NEW_LINE>// .setTargetBufferBytes(... | baseBuilder = new DefaultLoadControl.Builder(); |
1,170,221 | final CancelJobResult executeCancelJob(CancelJobRequest cancelJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(cancelJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
587,696 | public MailDomainGroup parseMailDomainGroup(JsonObject obj) throws JsonParseException {<NEW_LINE>MailDomainGroup grp = new MailDomainGroup();<NEW_LINE>if (obj.containsKey("id")) {<NEW_LINE>grp.setId(obj.getJsonNumber("id").longValue());<NEW_LINE>}<NEW_LINE>grp.setDisplayName<MASK><NEW_LINE>grp.setDescription(obj.getStr... | (getMandatoryString(obj, "name")); |
887,491 | public RetryStatementNode transform(RetryStatementNode retryStatementNode) {<NEW_LINE>Token retryKeyword;<NEW_LINE>if (retryStatementNode.typeParameter().isPresent() || retryStatementNode.arguments().isPresent()) {<NEW_LINE>retryKeyword = formatToken(retryStatementNode.<MASK><NEW_LINE>} else {<NEW_LINE>retryKeyword = f... | retryKeyword(), 0, 0); |
1,573,052 | public void onResume() {<NEW_LINE>super.onResume();<NEW_LINE>if (media != null) {<NEW_LINE>depictsSearch.setOnKeyListener((v, keyCode, event) -> {<NEW_LINE>if (keyCode == KeyEvent.KEYCODE_BACK) {<NEW_LINE>depictsSearch.clearFocus();<NEW_LINE>presenter.clearPreviousSelection();<NEW_LINE>updateDepicts();<NEW_LINE>goBackT... | ()).setFocusableInTouchMode(true); |
144,854 | private ImportConfig createImportConfig(final int batchSize) {<NEW_LINE>final List<GenomicsDBImportConfiguration.Partition> partitions = (intervals == null || intervals.isEmpty()) ? generatePartitionListFromWorkspace() : generatePartitionListFromIntervals();<NEW_LINE>GenomicsDBImportConfiguration.ImportConfiguration.Bu... | importConfig.setFunctionToCallOnBatchCompletion(this::logMessageOnBatchCompletion); |
1,131,968 | public static Query createQuery(Criteria criteria) {<NEW_LINE>Assert.notNull(criteria, "criteria must not be null");<NEW_LINE>List<Query> shouldQueries = new ArrayList<>();<NEW_LINE>List<Query> mustNotQueries = new ArrayList<>();<NEW_LINE>List<Query> mustQueries = new ArrayList<>();<NEW_LINE>Query firstQuery = null;<NE... | shouldQueries.add(0, firstQuery); |
1,521,886 | private int nodeSourceStart(Binding field, ASTNode node, int index) {<NEW_LINE>if (node instanceof FieldReference) {<NEW_LINE>FieldReference fieldReference = (FieldReference) node;<NEW_LINE>return (int) <MASK><NEW_LINE>} else if (node instanceof QualifiedNameReference) {<NEW_LINE>QualifiedNameReference ref = (Qualified... | (fieldReference.nameSourcePosition >> 32); |
1,199,071 | private List<String> createHeaders(String childCounterName) {<NEW_LINE>final List<String> headers = new ArrayList<>();<NEW_LINE>headers.add(getRequestHeader());<NEW_LINE>if (includeGraph) {<NEW_LINE>headers.add(getString("Evolution"));<NEW_LINE>}<NEW_LINE>if (counterRequestAggregation.isTimesDisplayed()) {<NEW_LINE>hea... | .add(getString("Hits")); |
1,692,111 | public void marshall(DocumentDescription documentDescription, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (documentDescription == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(documentDescription.getSha1... | documentDescription.getSchemaVersion(), SCHEMAVERSION_BINDING); |
1,314,285 | public boolean execute(Object object) throws ContractExeException {<NEW_LINE>TransactionResultCapsule ret = (TransactionResultCapsule) object;<NEW_LINE>if (Objects.isNull(ret)) {<NEW_LINE>throw new RuntimeException(ActuatorConstant.TX_RESULT_NULL);<NEW_LINE>}<NEW_LINE>long fee = calcFee();<NEW_LINE>AccountStore account... | .getToAddress().toByteArray(); |
97,388 | protected void populateComponents() {<NEW_LINE>JPanel panel = new JPanel(new BorderLayout());<NEW_LINE>panel.setBorder(new EmptyBorder(10, 10, 10, 10));<NEW_LINE><MASK><NEW_LINE>dropdown = new JComboBox<>(dropdownModel);<NEW_LINE>topBox.add(dropdown);<NEW_LINE>// Avoid Swing's automatic indentation<NEW_LINE>JPanel inne... | Box topBox = Box.createVerticalBox(); |
1,465,013 | private void initUI() {<NEW_LINE>setUndecorated(true);<NEW_LINE>try {<NEW_LINE>if (GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().isWindowTranslucencySupported(WindowTranslucency.TRANSLUCENT)) {<NEW_LINE>if (!Config.getInstance().isNoTransparency()) {<NEW_LINE>setOpacity(0.85f);<NEW_LINE>}<N... | 400), getScaledInt(300)); |
206,649 | public void filter(final ContainerRequestContext requestContext) {<NEW_LINE>final List<String> profilingHeaderRequests = requestContext.<MASK><NEW_LINE>final String profilingHeaderRequest = (profilingHeaderRequests == null || profilingHeaderRequests.isEmpty()) ? null : profilingHeaderRequests.get(0);<NEW_LINE>if (profi... | getHeaders().get(PROFILING_HEADER_REQ); |
635,202 | private void checkForUpdates(final boolean autoRun) {<NEW_LINE>final Date now = new Date();<NEW_LINE>ResourceController.getResourceController().setProperty(LAST_UPDATE_CHECK_TIME, Long.toString(now.getTime()));<NEW_LINE>final String translatedWebUpdate = <MASK><NEW_LINE>final FreeplaneVersion localVersion = FreeplaneVe... | getWebUpdateUrl(ConnectionStatus.TRANSLATED.language); |
1,472,425 | final DescribeCustomPluginResult executeDescribeCustomPlugin(DescribeCustomPluginRequest describeCustomPluginRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeCustomPluginRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
781,533 | public static void main(String[] args) {<NEW_LINE>StanfordCoreNLP pipeline = new StanfordCoreNLP(PropertiesUtils.asProperties("annotators", "tokenize,ssplit,pos,lemma,ner"));<NEW_LINE>Annotation annotation = new Annotation("Casey is 21. Sally Atkinson's age is 30.");<NEW_LINE>pipeline.annotate(annotation);<NEW_LINE>Lis... | + matched.group("$who")); |
456,901 | public static void removeFieldFinalModifier(final Field field) {<NEW_LINE>// From Apache: FieldUtils.removeFinalModifier()<NEW_LINE>try {<NEW_LINE>if (Modifier.isFinal(field.getModifiers())) {<NEW_LINE>// Do all JREs implement Field with a private ivar called "modifiers"?<NEW_LINE>final Field modifiersField = <MASK><NE... | Field.class.getDeclaredField("modifiers"); |
171,086 | public void show(View anchor, float anchorOverlap) {<NEW_LINE>updateItems();<NEW_LINE>if (mSystemUiVisibilityHelper != null)<NEW_LINE>mSystemUiVisibilityHelper.copyVisibility(getContentView());<NEW_LINE>// don't steal the focus, this will prevent the keyboard from changing<NEW_LINE>setFocusable(false);<NEW_LINE>// draw... | 0] + anchor.getPaddingLeft(); |
1,477,061 | public JDBCStatement prepareLookupStatement(@NotNull JDBCSession session, @NotNull PostgreTableContainer container, @Nullable PostgreTableBase object, @Nullable String objectName) throws SQLException {<NEW_LINE>StringBuilder sql = new StringBuilder();<NEW_LINE>sql.append("SELECT c.oid,c.*,d.description");<NEW_LINE>if (... | prepareStatement(sql.toString()); |
490,280 | private void markupProgramHeaders(TaskMonitor monitor) {<NEW_LINE>int headerCount = elf.getProgramHeaderCount();<NEW_LINE>int size = elf.e_phentsize() * headerCount;<NEW_LINE>if (size == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>monitor.setMessage("Markup Program Headers ...");<NEW_LINE>Structure phStructDt = (Structur... | AddressSpace.OTHER_SPACE.getAddress(0); |
820,284 | public double aggregate(final double current, final BaseObjectColumnValueSelector[] selectorList) {<NEW_LINE>Context cx = Context.getCurrentContext();<NEW_LINE>if (cx == null) {<NEW_LINE>cx = contextFactory.enterContext();<NEW_LINE>// Disable primitive wrapping- we want Java strings and primitives to behave like JS ent... | Object arg = selector.getObject(); |
64,032 | public RuleClass build(RuleClass.Builder builder, RuleDefinitionEnvironment env) {<NEW_LINE>return // We don't want C++ tests to be dynamically linked by default on Windows,<NEW_LINE>builder.requiresConfigurationFragments(CppConfiguration.class).setImplicitOutputsFunction(CppRuleClasses.CC_BINARY_DEBUG_PACKAGE).// beca... | "//tools/test:collect_cc_coverage"))).build(); |
192,024 | public Type cloneAndAdd(DatabaseSession session, Type input) throws BimserverDatabaseException {<NEW_LINE>if (input instanceof BooleanType) {<NEW_LINE>BooleanType booleanType = session.create(BooleanType.class);<NEW_LINE>booleanType.setValue(((BooleanType) input).isValue());<NEW_LINE>session.store(booleanType);<NEW_LIN... | session.create(DoubleType.class); |
1,721,123 | static boolean isInternal(DebugStackFrame sf) {<NEW_LINE>boolean isInternal = false;<NEW_LINE>try {<NEW_LINE>isInternal = sf.isInternal();<NEW_LINE>} catch (Exception ex) {<NEW_LINE>LangErrors.exception("Frame " + sf.getName() + " .isInternal()", ex);<NEW_LINE>// System.err.println("Is Internal blew up for "+sf+", name... | = rn.getSourceSection() == null; |
1,080,654 | public void cleanup() {<NEW_LINE>if (recording) {<NEW_LINE>pause();<NEW_LINE>}<NEW_LINE>recording = false;<NEW_LINE>if (redirectToAudioBuffer) {<NEW_LINE>MediaManager.releaseAudioBuffer(path);<NEW_LINE>}<NEW_LINE>if (line == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>line.close();<NEW_LINE>if (!redirectToAudioBuffer ... | wavFile, outFile, getAudioFormat()); |
794,229 | public void testCompletionStageRxInvoker_getIbmOverridesCbConnectionTimeout(Map<String, String> param, StringBuilder ret) {<NEW_LINE>String target = null;<NEW_LINE>if (isZOS()) {<NEW_LINE>// https://stackoverflow.com/a/904609/6575578<NEW_LINE>target = "http://example.com:81";<NEW_LINE>} else {<NEW_LINE>// Connect to te... | = System.currentTimeMillis() - startTime2; |
600,610 | public static RawTypeInstance loadRawTypeInstance(final SQLProvider provider, final INaviModule module, final Integer typeInstanceId) throws CouldntLoadDataException {<NEW_LINE>Preconditions.checkNotNull(provider, "Error: provider argument can not be null");<NEW_LINE>Preconditions.checkNotNull(module, "Error: module ar... | statement.setInt(2, typeInstanceId); |
647,607 | private boolean extendToSpot(AbstractBeamInter beam, HorizontalSide side, Integer maxDx) {<NEW_LINE>final boolean logging = beam.isVip() || logger.isDebugEnabled();<NEW_LINE>final int dx = (maxDx == null) ? params.maxExtensionToSpot : Math.min(params.maxExtensionToSpot, maxDx);<NEW_LINE>final Area luArea = sideAreaOf("... | spot.getId(), side); |
1,658,792 | public static BatchGetDeviceStateResponse unmarshall(BatchGetDeviceStateResponse batchGetDeviceStateResponse, UnmarshallerContext _ctx) {<NEW_LINE>batchGetDeviceStateResponse.setRequestId(_ctx.stringValue("BatchGetDeviceStateResponse.RequestId"));<NEW_LINE>batchGetDeviceStateResponse.setSuccess(_ctx.booleanValue("Batch... | ("BatchGetDeviceStateResponse.DeviceStatusList[" + i + "].LastOnlineTime")); |
405,396 | public static void serialize(final LocalDateTime value, final JsonWriter sw) {<NEW_LINE>final int year = value.getYear();<NEW_LINE>if (year < 0) {<NEW_LINE>throw new SerializationException("Negative dates are not supported.");<NEW_LINE>} else if (year > 9999) {<NEW_LINE>sw.writeByte(JsonWriter.QUOTE);<NEW_LINE>sw.write... | buf[pos + 14] = ':'; |
1,340,257 | private static void insertBlocks(BlockStore blockStore, BlockFactory blockFactory, RLPElement encodedTuples) {<NEW_LINE>RLPList blocksData = RLP.decodeList(encodedTuples.getRLPData());<NEW_LINE>for (int k = 0; k < blocksData.size(); k++) {<NEW_LINE>RLPElement element = blocksData.get(k);<NEW_LINE>RLPList blockData = RL... | decodeList(blockData.getRLPData()); |
1,654,052 | public static CodegenExpressionNewAnonymousClass codegenEvaluatorObjectArray(ExprForge[] forges, CodegenMethod method, Class generator, CodegenClassScope classScope) {<NEW_LINE>CodegenExpressionNewAnonymousClass evaluator = newAnonymousClass(method.getBlock(), ExprEvaluator.EPTYPE);<NEW_LINE>CodegenMethod evaluate = Co... | , REF_EPS, REF_ISNEWDATA, REF_EXPREVALCONTEXT)); |
1,138,041 | public static ListBaselineConfigsResponse unmarshall(ListBaselineConfigsResponse listBaselineConfigsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listBaselineConfigsResponse.setRequestId(_ctx.stringValue("ListBaselineConfigsResponse.RequestId"));<NEW_LINE>listBaselineConfigsResponse.setHttpStatusCode(_ctx.integerValue... | ("ListBaselineConfigsResponse.Data.Baselines[" + i + "].ProjectId")); |
1,611,088 | private float drawThirdVerticalLineWithWidth(int leftX, int leftY, int w, int h, int steph) {<NEW_LINE>float levelMaxLineWidth = 0;<NEW_LINE>for (int i = 0; i < node4CalcPos.childrenIdx.length; i++) {<NEW_LINE>TreeModelViz.Node4CalcPos tmp = all[node4CalcPos.childrenIdx[i]];<NEW_LINE>int x2 = tmp.gNode.posCenter - left... | = tmp.gNode.posTop - leftY; |
829,209 | private static void replace(@Nonnull StringBuilder text, @Nonnull String replaceFrom, @Nonnull String replaceTo, @Nonnull List<TextRange> readOnlyChanges) {<NEW_LINE>for (int i = text.indexOf(replaceFrom); i >= 0 && i < text.length() - 1; i = text.indexOf(replaceFrom, i + 1)) {<NEW_LINE>int end = i + replaceFrom.length... | + replaceTo.length())); |
23,436 | public void testSLLocalEnvEntry_Double() throws Exception {<NEW_LINE>SLLa ejb1 = fhome1.create();<NEW_LINE>// The test case looks for a environment variable named "envDouble".<NEW_LINE>Double tempDouble = ejb1.getDoubleEnvVar("envDouble");<NEW_LINE>assertNotNull("Get environment double object returned null.", tempDoubl... | tempDouble = ejb1.getDoubleEnvVar("envDouble2"); |
1,536,590 | /*<NEW_LINE>* -------------------<NEW_LINE>* PARSE METHODS<NEW_LINE>* -------------------<NEW_LINE>*/<NEW_LINE>public void parseStandalone(final IEngineConfiguration configuration, final String ownerTemplate, final String template, final Set<String> templateSelectors, final ITemplateResource resource, final TemplateMod... | isEmpty(), "Template selectors cannot be specified for a template using RAW template mode: template " + "insertion operations must be always performed on whole template files, not fragments"); |
887,576 | public void writeMacros(ConstantPool pool, PrintWriter out) {<NEW_LINE>super.writeMacros(pool, out);<NEW_LINE>String type = fieldType();<NEW_LINE>String cast = ((Alias) primary).cast;<NEW_LINE>String castTo = cast.length() == 0 ? "" : "(" + cast + ")";<NEW_LINE>String macroName = cMacroName();<NEW_LINE>String fieldOffs... | type + "_LOAD(vmThread, object, J9VM" + macroName + "_OFFSET(vmThread)))"); |
1,486,044 | public <R> R createAndApply(Function<? super Transaction, ? extends R> mapper) {<NEW_LINE>requireNonNull(mapper);<NEW_LINE>final Thread currentThread = Thread.currentThread();<NEW_LINE>// e.g. obtains a Connection<NEW_LINE>final Object txObject = dataSourceHandler.extractor().apply(dataSource);<NEW_LINE>final Isolation... | currentThread.getName(), txObject); |
939,300 | ActionResult<Wo> execute(HttpServletRequest request, EffectivePerson effectivePerson, JsonElement jsonElement) throws Exception {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Wi wrapIn = null;<NEW_LINE>Boolean check = true;<NEW_LINE>try {<NEW_LINE>wrapIn = this.convertToWrapIn(jsonElement, Wi.class... | setAppName(appInfo.getAppName()); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.