idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
923,296 | private <T> CurrencyParameterSensitivities sensitivityDiscountCurve(ImmutableCreditRatesProvider provider, Function<ImmutableCreditRatesProvider, CurrencyAmount> valueFn, MetaProperty<ImmutableMap<T, CreditDiscountFactors>> metaProperty, CurrencyAmount valueInit) {<NEW_LINE>ImmutableMap<T, CreditDiscountFactors> baseCu... | DiscountFactors discountFactors = creditDiscountFactors.toDiscountFactors(); |
1,738,145 | public void marshall(DefaultMessage defaultMessage, AwsJsonWriter jsonWriter) throws Exception {<NEW_LINE>jsonWriter.beginObject();<NEW_LINE>if (defaultMessage.getBody() != null) {<NEW_LINE>String body = defaultMessage.getBody();<NEW_LINE>jsonWriter.name("Body");<NEW_LINE>jsonWriter.value(body);<NEW_LINE>}<NEW_LINE>if ... | name(substitutionsEntry.getKey()); |
1,842,675 | final GetCellReadinessSummaryResult executeGetCellReadinessSummary(GetCellReadinessSummaryRequest getCellReadinessSummaryRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getCellReadinessSummaryRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();... | invoke(request, responseHandler, executionContext); |
1,241,134 | public Uni<SecurityIdentity> authenticate(TokenAuthenticationRequest request, AuthenticationRequestContext context) {<NEW_LINE>return context.runBlocking(new Supplier<SecurityIdentity>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public SecurityIdentity get() {<NEW_LINE>org.wildfly.security.auth.server.SecurityIdentity re... | ().getToken())); |
1,047,908 | private static EncryptedKeyset encrypt(Keyset keyset, Aead masterKey, byte[] associatedData) throws GeneralSecurityException {<NEW_LINE>byte[] encryptedKeyset = masterKey.encrypt(keyset.toByteArray(), associatedData);<NEW_LINE>// Check if we can decrypt, to detect errors<NEW_LINE>try {<NEW_LINE>final Keyset keyset2 = K... | (keyset)).build(); |
781,075 | ActionResult<Wo> execute(EffectivePerson effectivePerson) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Business business = new Business(emc);<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>List<String> ids = new ArrayList<... | -> e1, LinkedHashMap::new)); |
1,428,772 | public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = "mycontextvar".split(",");<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy("@public create context MyCtx as " + "partition by theString from SupportBean, p00 from SupportBean_S0", path);<NEW_LINE>env.compileDeploy("@... | new Object[] { 0 }); |
828,793 | public View newView(Context context, ViewGroup parent) {<NEW_LINE>LayoutInflater inflater = LayoutInflater.from(context);<NEW_LINE>View view = inflater.inflate(R.layout.repo_listitem, parent, false);<NEW_LINE>RepoListItemHolder holder = new RepoListItemHolder();<NEW_LINE>holder.repoTitle = (TextView) view.findViewById(... | findViewById(R.id.commitMsgContainer); |
65,793 | public SOAPMessage invoke(SOAPMessage request) {<NEW_LINE>SOAPMessage response = null;<NEW_LINE>try {<NEW_LINE>System.out.println("Incoming Client Request as a SOAPMessage:");<NEW_LINE>request.writeTo(System.out);<NEW_LINE>String hdrText = request.getSOAPHeader().getTextContent();<NEW_LINE>System.out.println("Incoming ... | MessageFactory factory = MessageFactory.newInstance(); |
1,498,968 | private boolean isDefault(String eventType, String actionType) {<NEW_LINE>List<String> eventTypes = configService.getPropertyNamesByPrefix(NOTIFICATIONS_PREFIX, true);<NEW_LINE>for (String eventTypeRootPropName : eventTypes) {<NEW_LINE>String eType = configService.getString(eventTypeRootPropName);<NEW_LINE>if (!eType.e... | .parseBoolean((String) isDefaultdObj); |
850,916 | final GetColumnStatisticsForTableResult executeGetColumnStatisticsForTable(GetColumnStatisticsForTableRequest getColumnStatisticsForTableRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getColumnStatisticsForTableRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get... | addHandlerContext(HandlerContextKey.SERVICE_ID, "Glue"); |
173,646 | public Path run(final Session<?> session) throws BackgroundException {<NEW_LINE>final Directory feature = session.getFeature(Directory.class);<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug(String.format("Run with feature %s", feature));<NEW_LINE>}<NEW_LINE>final TransferStatus status = new TransferStatus();<N... | Path.Type.directory))); |
671,479 | private void fillRwSplitUser(UserConfig userConfig, RwSplitUser rwSplitUser, Map<String, WallProvider> blackListMap, ProblemReporter problemReporter) {<NEW_LINE>String tenant = rwSplitUser.getTenant();<NEW_LINE>String dbGroup = rwSplitUser.getDbGroup();<NEW_LINE>String blacklistStr = rwSplitUser.getBlacklist();<NEW_LIN... | ConfigException("User [" + userName + "]'s dbGroup is empty"); |
599,943 | private void refreshMapLater(final MapModel map) {<NEW_LINE>final Integer count = mapsToRefresh.get(map);<NEW_LINE>if (count == null) {<NEW_LINE>mapsToRefresh.put(map, 0);<NEW_LINE>} else {<NEW_LINE>mapsToRefresh.<MASK><NEW_LINE>}<NEW_LINE>Controller.getCurrentController().getViewController().invokeLater(new Runnable()... | put(map, count + 1); |
1,618,998 | private static void spreadGraph(AnalysedChunk chunk, int x, int y, int z) {<NEW_LINE>Set<BlockPos> openSet = new HashSet<>();<NEW_LINE>Set<BlockPos> <MASK><NEW_LINE>MiniGraph graph = new MiniGraph();<NEW_LINE>openSet.add(new BlockPos(x, y, z));<NEW_LINE>while (!openSet.isEmpty()) {<NEW_LINE>BlockPos toTest = openSet.it... | closedSet = new HashSet<>(); |
1,398,341 | public Object apply(final ActionContext ctx, final Object caller, final Object[] sources) throws FrameworkException {<NEW_LINE>// use String here because the actual type of the query is not known yet<NEW_LINE>String sortKey = "name";<NEW_LINE>boolean sortDescending = false;<NEW_LINE>try {<NEW_LINE>assertArrayHasMinLeng... | sources[0].toString(); |
1,327,173 | static Point processPointIntersectOrDiff_(Point point, Geometry intersector, double tolerance, boolean bClipIn) {<NEW_LINE>if (point.isEmpty())<NEW_LINE>return ((Point) point.createInstance());<NEW_LINE>if (intersector.isEmpty()) {<NEW_LINE>return bClipIn ? ((Point) point.createInstance()) : null;<NEW_LINE>}<NEW_LINE>P... | input_points, 1, tolerance, test_results); |
37,275 | final AssociateAssessmentReportEvidenceFolderResult executeAssociateAssessmentReportEvidenceFolder(AssociateAssessmentReportEvidenceFolderRequest associateAssessmentReportEvidenceFolderRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(associateAssessmentReportEvidenceFolderRequest);<NEW_LIN... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
609,102 | public MantisKafkaConsumer<?> build() {<NEW_LINE>Preconditions.checkNotNull(context, "context");<NEW_LINE>Preconditions.checkNotNull(kafkaSourceConfig, "kafkaSourceConfig");<NEW_LINE>Preconditions.checkNotNull(registry, "registry");<NEW_LINE>Preconditions.checkArg(consumerIndex >= 0, "consumerIndex must be greater than... | kafkaSourceConfig.getCheckpointStrategy(), metrics); |
1,741,057 | public static void createLoadsBasedOnDescriptor(MethodVisitor mv, String descriptor, int startindex) {<NEW_LINE>int slot = startindex;<NEW_LINE>// start after the '('<NEW_LINE>int descriptorpos = 1;<NEW_LINE>char ch;<NEW_LINE>while ((ch = descriptor.charAt(descriptorpos)) != ')') {<NEW_LINE>switch(ch) {<NEW_LINE>case '... | mv.visitVarInsn(FLOAD, slot); |
1,284,092 | public ListEngineVersionsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListEngineVersionsResult listEngineVersionsResult = new ListEngineVersionsResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth +... | int originalDepth = context.getCurrentDepth(); |
1,639,185 | final DescribeRulesetResult executeDescribeRuleset(DescribeRulesetRequest describeRulesetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeRulesetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeRuleset"); |
1,554,381 | public static void formatSource(Formatter formatter, Object source, ElementSource elementSource) {<NEW_LINE>String modules = moduleSourceString(elementSource);<NEW_LINE>if (source instanceof Dependency) {<NEW_LINE>Dependency<?> dependency = (Dependency<?>) source;<NEW_LINE>InjectionPoint injectionPoint = dependency.get... | dependency.getKey(), elementSource); |
1,249,711 | public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo buildPartial() {<NEW_LINE>emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo result = new emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo(this);<NEW_LINE>int from_bitField0_ = bi... | .appliedAbilities_ = appliedAbilitiesBuilder_.build(); |
1,201,558 | protected AuthChallenge checkStateCookie() {<NEW_LINE>OIDCHttpFacade.Cookie stateCookie = getCookie(deployment.getStateCookieName());<NEW_LINE>if (stateCookie == null) {<NEW_LINE>log.warn("No state cookie");<NEW_LINE>return challenge(400, OIDCAuthenticationError.Reason.INVALID_STATE_COOKIE, null);<NEW_LINE>}<NEW_LINE>/... | log.warn("queryParam: " + state); |
167,595 | private static JsonObject normalizeSourceClause(JsonObject queryObject) {<NEW_LINE>JsonObject sourceObject;<NEW_LINE>if (queryObject.has("_source")) {<NEW_LINE>JsonElement <MASK><NEW_LINE>if (sourceElement.isJsonObject()) {<NEW_LINE>sourceObject = sourceElement.getAsJsonObject();<NEW_LINE>} else if (sourceElement.isJso... | sourceElement = queryObject.get("_source"); |
397,188 | public final UserVariablesContext userVariables() throws RecognitionException {<NEW_LINE>UserVariablesContext _localctx = new UserVariablesContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 570, RULE_userVariables);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setStat... | _errHandler.reportError(this, re); |
973,220 | public okhttp3.Call createBranchProtectionRuleCall(String repository, BranchProtectionRule branchProtectionRule, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = branchProtectionRule;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/repositories/{repository... | String[] localVarContentTypes = { "application/json" }; |
969,318 | public boolean onCallApi(int page, @Nullable String parameter) {<NEW_LINE>if (page == 1) {<NEW_LINE>lastPage = Integer.MAX_VALUE;<NEW_LINE>sendToView(view -> view.getLoadMore().reset());<NEW_LINE>}<NEW_LINE>if (page > lastPage || lastPage == 0) {<NEW_LINE><MASK><NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (page == 1)... | sendToView(CommitCommentsMvp.View::hideProgress); |
547,916 | public void doReportStat(SofaTracerSpan sofaTracerSpan) {<NEW_LINE>Map<String, String> tagsWithStr = sofaTracerSpan.getTagsWithStr();<NEW_LINE>StatKey statKey = new StatKey();<NEW_LINE>String localApp = tagsWithStr.get(CommonSpanTags.LOCAL_APP);<NEW_LINE>String operationName = sofaTracerSpan.getOperationName();<NEW_LIN... | (TracerUtils.isLoadTest(sofaTracerSpan)); |
423,664 | /*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see<NEW_LINE>* com.tweetlanes.android.core.view.ComposeBaseFragment#onSendClick(java.lang<NEW_LINE>* .String)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>protected void onSendClick(String status) {<NEW_LINE>if (status != null) {<NEW_LINE>String otherUserScreenName = getOth... | showSimpleAlert(R.string.alert_direct_message_empty); |
1,527,056 | private String formatComments(String raw) {<NEW_LINE>Document doc = new Document(raw);<NEW_LINE>IDocumentPartitioner commentPartitioner = new FastPartitioner(new FastJavaPartitionScanner(), COMMENT_TYPES);<NEW_LINE>doc.setDocumentPartitioner(IJavaScriptPartitions.JAVA_PARTITIONING, commentPartitioner);<NEW_LINE>comment... | ), region.getType()); |
106,805 | public void debugServerState() {<NEW_LINE>logger.debug("--- Server state ----------------------------------------------");<NEW_LINE>Collection<User> users = managerFactory.userManager().getUsers();<NEW_LINE>logger.debug("--------User: " + users.size() + " [userId | since | lock | name -----------------------");<NEW_LIN... | user.getPingInfo() + ')'); |
635,366 | public static Platform detectPlatform(String engine) {<NEW_LINE>String nativeProp = "native/lib/" + engine + ".properties";<NEW_LINE>Enumeration<URL> urls;<NEW_LINE>try {<NEW_LINE>urls = ClassLoaderUtils.getContextClassLoader().getResources(nativeProp);<NEW_LINE>} catch (IOException e) {<NEW_LINE>throw new AssertionErr... | platform = Platform.fromUrl(url); |
650,482 | public long handle(Emulator<?> emulator) {<NEW_LINE>RegisterContext context = emulator.getContext();<NEW_LINE>int addr = context.getIntArg(0);<NEW_LINE>Pointer info = context.getPointerArg(1);<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug("dladdr addr=0x" + Long.toHexString(addr) + ", info=" + info + ", LR=" ... | DlInfo32 dlInfo = new DlInfo32(info); |
1,542,670 | /*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see<NEW_LINE>* org.apache.bcel.util.Repository#storeClass(org.apache.bcel.classfile.<NEW_LINE>* JavaClass)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void storeClass(JavaClass javaClass) {<NEW_LINE>if (DEBUG) {<NEW_LINE>System.out.println("Storing class " + javaCla... | javaClass.getClassName(), javaClass); |
1,424,360 | public boolean accept(final Path source, final Local local, final TransferStatus parent) throws BackgroundException {<NEW_LINE>final Path target = files.get(source);<NEW_LINE>if (source.isFile()) {<NEW_LINE>if (parent.isExists()) {<NEW_LINE>if (find.find(target)) {<NEW_LINE>if (Checksum.NONE != source.attributes().getC... | targetAttributes = attribute.find(target); |
231,030 | public byte[] bytesValue() {<NEW_LINE>if (token == JSONToken.HEX) {<NEW_LINE>int start = np + 1, len = sp;<NEW_LINE>if (len % 2 != 0) {<NEW_LINE>throw new JSONException("illegal state. " + len);<NEW_LINE>}<NEW_LINE>byte[] bytes = new byte[len / 2];<NEW_LINE>for (int i = 0; i < bytes.length; ++i) {<NEW_LINE>char c0 = te... | text, np + 1, sp); |
500,089 | public boolean verify(final CertificateTrustCallback prompt, final String hostname, final List<X509Certificate> certificates) throws CertificateException {<NEW_LINE>if (certificates.isEmpty()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>int err;<NEW_LINE>// Specify true on the client side to return a policy for SSL se... | FoundationKitFunctions.library.CFRelease(trustRef); |
1,199,248 | public void run() {<NEW_LINE>final long millisBeforeWarning = this.conf.getTimeInMillis(Property.TSERV_ASSIGNMENT_DURATION_WARNING);<NEW_LINE>try {<NEW_LINE>long now = System.currentTimeMillis();<NEW_LINE>KeyExtent extent;<NEW_LINE>RunnableStartedAt runnable;<NEW_LINE>long warnings = 0;<NEW_LINE>for (Entry<KeyExtent, R... | = now - runnable.getStartTime(); |
191,013 | protected void handleSmsReceived(Intent intent) {<NEW_LINE>String body;<NEW_LINE>Bundle bundle = intent.getExtras();<NEW_LINE>Message msg = new Message();<NEW_LINE>log("handleSmsReceived() bundle " + bundle);<NEW_LINE>if (bundle != null) {<NEW_LINE>SmsMessage[] messages = getMessagesFromIntent(intent);<NEW_LINE>if (mes... | setStatus(Message.Status.UNCONFIRMED); |
1,824,794 | private static QueryOptimizer initStaticOptimizer() {<NEW_LINE>if (OPTIMIZER != null) {<NEW_LINE>return OPTIMIZER;<NEW_LINE>}<NEW_LINE>String opt = System.getenv("elki.optimizer");<NEW_LINE>if (opt != null) {<NEW_LINE>if (opt.isEmpty()) {<NEW_LINE>// Disable<NEW_LINE>LOG.warning("Optimizer disabled.");<NEW_LINE>return ... | throw new AbortException("Could not find query optimizer: " + opt); |
674,993 | public Map<String, Map<String, AttributeAdapter>> attributeAdaptersForFunction() {<NEW_LINE>Map<String, Map<String, AttributeAdapter>> <MASK><NEW_LINE>Map<String, AttributeAdapter> tfMappings = new LinkedHashMap<>();<NEW_LINE>val fields = DifferentialFunctionClassHolder.getInstance().getFieldsForFunction(this);<NEW_LIN... | ret = new HashMap<>(); |
818,423 | public static GetPayAsYouGoPriceResponse unmarshall(GetPayAsYouGoPriceResponse getPayAsYouGoPriceResponse, UnmarshallerContext _ctx) {<NEW_LINE>getPayAsYouGoPriceResponse.setRequestId(_ctx.stringValue("GetPayAsYouGoPriceResponse.RequestId"));<NEW_LINE>getPayAsYouGoPriceResponse.setCode<MASK><NEW_LINE>getPayAsYouGoPrice... | (_ctx.stringValue("GetPayAsYouGoPriceResponse.Code")); |
1,326,211 | protected JMenu createMenu() {<NEW_LINE>JMenu menu = new JMenu(this);<NEW_LINE>JMenuItem item;<NEW_LINE>if (dest.equals(ActionDestination.MainMenu)) {<NEW_LINE>item = new JMenuItem();<NEW_LINE>Action action = (Action) SystemAction.get(CheckoutRevisionAction.class);<NEW_LINE>Utils.setAcceleratorBindings(Annotator.ACTION... | connect(item, action, false); |
528,515 | public List<T> applyFuzzy(List<T> target, int maxFuzz) throws PatchFailedException {<NEW_LINE>PatchApplyingContext<T> ctx = new PatchApplyingContext<>(new ArrayList<>(target), maxFuzz);<NEW_LINE>// the difference between patch's position and actually applied position<NEW_LINE>int lastPatchDelta = 0;<NEW_LINE>for (Abstr... | patchPosition = findPositionFuzzy(ctx, delta); |
756,654 | public void marshall(CreateMeetingWithAttendeesRequest createMeetingWithAttendeesRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createMeetingWithAttendeesRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarsh... | createMeetingWithAttendeesRequest.getAttendees(), ATTENDEES_BINDING); |
1,321,751 | public void marshall(DataSourceParameters dataSourceParameters, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (dataSourceParameters == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(dataSourceParameters.get... | dataSourceParameters.getExasolParameters(), EXASOLPARAMETERS_BINDING); |
1,175,737 | private void generateJournalBatch(String trxName, String documentNo, int glCategoryId, int documentTypeId, int currencyId, int conversionTypeId, int calendarId, int budgetId) {<NEW_LINE>MJournalBatch journalBatch = new MJournalBatch(getCtx(), 0, trxName);<NEW_LINE>journalBatch.setDocumentNo(documentNo);<NEW_LINE>journa... | journalBatch.setDateAcct(getAccountDate()); |
268,793 | public void run(RegressionEnvironment env) {<NEW_LINE>String expression = "@name('s0') select symbol from SupportMarketDataBean#length(2) output when count_remove >= 2";<NEW_LINE>env.compileDeploy(expression).setSubscriber("s0");<NEW_LINE>sendEvent(env, "S1", 0);<NEW_LINE>sendEvent(env, "S2", 0);<NEW_LINE><MASK><NEW_LI... | sendEvent(env, "S3", 0); |
303,857 | private void postActivate(InvocationContext inv) {<NEW_LINE>try {<NEW_LINE>Object results = getResultsObject(inv);<NEW_LINE>addPostActivate(results, CLASS_NAME, "postActivate");<NEW_LINE>// Validate and update context data.<NEW_LINE>Map<String, Object> map = inv.getContextData();<NEW_LINE>String data;<NEW_LINE>if (map.... | throw new EJBException("unexpected Throwable", e); |
1,574,163 | public CodegenParameter fromParameter(Parameter parameter, Set<String> imports) {<NEW_LINE>CodegenParameter cp = super.fromParameter(parameter, imports);<NEW_LINE>if (parameter.getStyle() != null) {<NEW_LINE>switch(parameter.getStyle()) {<NEW_LINE>case MATRIX:<NEW_LINE>cp.style = "MATRIX";<NEW_LINE>break;<NEW_LINE>case... | .getSchema().clone(); |
468,285 | static TxType evaluateTxTypeFromOpReturnType(TempTx tempTx, OpReturnType opReturnType) {<NEW_LINE>switch(opReturnType) {<NEW_LINE>case PROPOSAL:<NEW_LINE>return TxType.PROPOSAL;<NEW_LINE>case COMPENSATION_REQUEST:<NEW_LINE>case REIMBURSEMENT_REQUEST:<NEW_LINE>boolean hasCorrectNumOutputs = tempTx.getTempTxOutputs().siz... | "TxOutputType={}", issuanceTxOutput.getTxOutputType()); |
1,509,243 | private Composite createBasicInfoGroup(Composite parent, IFileStore fileStore, IFileInfo fileInfo) {<NEW_LINE>Composite container = new Composite(parent, SWT.NULL);<NEW_LINE>container.setLayout(GridLayoutFactory.swtDefaults().numColumns(2).margins(0, 0).create());<NEW_LINE>Label label = new Label(container, SWT.NONE);<... | label.setText(IDEWorkbenchMessages.ResourceInfo_location); |
809,210 | public void write(Node node, EntityMetadata entityMetadata, String persistenceUnit, ConsistencyLevel consistencyLevel, CassandraDataHandler cdHandler) {<NEW_LINE>// Index in Inverted Index table if applicable<NEW_LINE>boolean invertedIndexingApplicable = CassandraIndexHelper.isInvertedIndexingApplicable(entityMetadata,... | getData(), entityMetadata, indexColumnFamily); |
1,491,828 | public ModulesCompilerData compile(String entry, Map<String, String> sources, BundleType bundleType, Map<String, String> namespaceMapping, List<OutputConfig> configs) throws Exception {<NEW_LINE>if (bundleType == null) {<NEW_LINE>bundleType = BundleType.internal;<NEW_LINE>}<NEW_LINE>if (namespaceMapping == null) {<NEW_... | (ModulesCompilerUtil.createDevOutputConfig(bundleType)); |
34,011 | final DescribeEntityResult executeDescribeEntity(DescribeEntityRequest describeEntityRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeEntityRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
65,119 | public void onTabSelect(Session aTab) {<NEW_LINE>if (mFocusedWindow.getSession() != aTab) {<NEW_LINE>GleanMetricsService.Tabs.activatedEvent();<NEW_LINE>}<NEW_LINE>WindowWidget targetWindow = mFocusedWindow;<NEW_LINE>WindowWidget windowToMove = getWindowWithSession(aTab);<NEW_LINE>if (windowToMove != null && windowToMo... | Session moveFrom = windowToMove.getSession(); |
84,171 | public void encodeHeaders(DynamicBytes bytes) {<NEW_LINE>final int total = size * 2;<NEW_LINE>for (int i = 0; i < total; i += 2) {<NEW_LINE>String k = (String) arrays[i];<NEW_LINE>Object <MASK><NEW_LINE>// omit invalid headers and prevent possible exceptions (e.g., NullPointerException)<NEW_LINE>if (k == null || v == n... | v = arrays[i + 1]; |
1,104,620 | private void convert(Path srcFilePath, Path destFilePath) throws Exception {<NEW_LINE>FileContentType fileContentType1 = fileContentType != null ? fileContentType : FileContentType.valueOf(srcFilePath);<NEW_LINE><MASK><NEW_LINE>File destFile = destFilePath.toFile();<NEW_LINE>Attributes fileMetadata = createMetadata(fil... | File srcFile = srcFilePath.toFile(); |
65,840 | public Request<GetOrganizationsAccessReportRequest> marshall(GetOrganizationsAccessReportRequest getOrganizationsAccessReportRequest) {<NEW_LINE>if (getOrganizationsAccessReportRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<GetOrganizati... | (getOrganizationsAccessReportRequest.getJobId())); |
1,057,128 | protected Mono<Predicate> createReactiveJoinFilter(QueryMetadata metadata) {<NEW_LINE>MultiValueMap<Expression<?>, Mono<Predicate>> predicates = new LinkedMultiValueMap<>();<NEW_LINE>List<JoinExpression> joins = metadata.getJoins();<NEW_LINE>for (int i = joins.size() - 1; i >= 0; i--) {<NEW_LINE>JoinExpression join = j... | ()).getArg(0); |
1,648,759 | private void logInternal(SocketAddress local, SocketAddress remote, String prefix, byte[] data) {<NEW_LINE>if (getPacketLoggingService() == null || !(local instanceof InetSocketAddress && remote instanceof InetSocketAddress)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>InetSocketAddress localAddress = (InetSocketAddress) lo... | data, 0, data.length); |
1,265,068 | public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "@name('s0') select longPrimitive as c0, sum(intPrimitive) as c1 " + "from SupportBean group by rollup(case when longPrimitive > 0 then 1 else 0 end)";<NEW_LINE>env.compileDeploy(epl).addListener("s0");<NEW_LINE>env.assertStatement("s0", statement -> as... | "E4", 6, -11)); |
1,536,700 | protected void executeParse(BpmnParse bpmnParse, EndEvent endEvent) {<NEW_LINE>ActivityImpl endEventActivity = createActivityOnCurrentScope(bpmnParse, endEvent, BpmnXMLConstants.ELEMENT_EVENT_END);<NEW_LINE>EventDefinition eventDefinition = null;<NEW_LINE>if (!endEvent.getEventDefinitions().isEmpty()) {<NEW_LINE>eventD... | get(errorDefinition.getErrorCode()); |
144,184 | private void generateSubcolumnsData() {<NEW_LINE>int numSubcolumns = 4;<NEW_LINE>int numColumns = 4;<NEW_LINE>// Column can have many subcolumns, here I use 4 subcolumn in each of 8 columns.<NEW_LINE>List<Column> columns = new ArrayList<Column>();<NEW_LINE>List<SubcolumnValue> values;<NEW_LINE>for (int i = 0; i < numCo... | Axis().setHasLines(true); |
705,669 | private StringConverter createDecimalConverter(DecimalType decimalType) {<NEW_LINE>final int precision = decimalType.getPrecision();<NEW_LINE>final int scale = decimalType.getScale();<NEW_LINE>return new StringConverter() {<NEW_LINE><NEW_LINE>private static final long serialVersionUID = 1L;<NEW_LINE><NEW_LINE>@Override... | BigDecimal(dbzObj.toString()); |
566,152 | public boolean eIsSet(int featureID) {<NEW_LINE>switch(featureID) {<NEW_LINE>case ModelPackage.MBRICKLET_INDUSTRIAL_DIGITAL_OUT4__LOGGER:<NEW_LINE>return LOGGER_EDEFAULT == null ? logger != null : !LOGGER_EDEFAULT.equals(logger);<NEW_LINE>case ModelPackage.MBRICKLET_INDUSTRIAL_DIGITAL_OUT4__UID:<NEW_LINE>return UID_EDE... | : !DEVICE_TYPE_EDEFAULT.equals(deviceType); |
1,493,021 | public void swapUnresolved(UnresolvedReferenceBinding unresolvedType, ReferenceBinding resolvedType, LookupEnvironment env) {<NEW_LINE>boolean update = false;<NEW_LINE>if (this.type == unresolvedType) {<NEW_LINE>// $IDENTITY-COMPARISON$<NEW_LINE>// cannot be raw since being parameterized below<NEW_LINE>this.type = reso... | ReferenceBinding enclosing = resolvedType.enclosingType(); |
470,342 | public static Element svgCircleSegment(SVGPlot svgp, double centerx, double centery, double angleStart, double angleDelta, double innerRadius, double outerRadius) {<NEW_LINE>// To return cosine<NEW_LINE>final DoubleWrapper tmp = new DoubleWrapper();<NEW_LINE>double sin1st = FastMath.sinAndCos(angleStart, tmp);<NEW_LINE... | = centery - (innerRadius * cos2nd); |
1,336,908 | public static RecognizeQrCodeResponse unmarshall(RecognizeQrCodeResponse recognizeQrCodeResponse, UnmarshallerContext _ctx) {<NEW_LINE>recognizeQrCodeResponse.setRequestId(_ctx.stringValue("RecognizeQrCodeResponse.RequestId"));<NEW_LINE>Data data = new Data();<NEW_LINE>List<Element> elements = new ArrayList<Element>();... | + "].Results[" + j + "].Rate")); |
1,625,825 | public void modifyState(@FeatureFlags int key, boolean enabled) {<NEW_LINE>switch(key) {<NEW_LINE>case FEAT_INSTALLER:<NEW_LINE>modifyState(key, PackageInstallerActivity.class, enabled);<NEW_LINE>break;<NEW_LINE>case FEAT_INTERCEPTOR:<NEW_LINE>modifyState(key, ActivityInterceptor.class, enabled);<NEW_LINE>break;<NEW_LI... | key, ScannerActivity.class, enabled); |
1,572,974 | public void run(final Server server, final User user, final String commandLabel, final String[] args) throws Exception {<NEW_LINE>if (args.length > 0 && args[0].contains("lock") && user.isAuthorized("essentials.jump.lock")) {<NEW_LINE>if (user.isFlyClickJump()) {<NEW_LINE>user.setRightClickJump(false);<NEW_LINE>user.se... | setYaw(cloc.getYaw()); |
768,680 | private ClassLoader buildClassLoader(List<String> classPathEntries, boolean incremental) {<NEW_LINE>System.out.println("Classpath: " + classPathEntries);<NEW_LINE>Function<String, URL> mapper = entry -> {<NEW_LINE>try {<NEW_LINE>return new File(entry).toURI().toURL();<NEW_LINE>} catch (MalformedURLException e) {<NEW_LI... | collect(Collectors.toList()); |
1,479,134 | public void resetAppearanceStream(double dx, double dy, AffineTransform pageSpace) {<NEW_LINE>// setup clean shapes<NEW_LINE>Appearance appearance = appearances.get(currentAppearance);<NEW_LINE>AppearanceState appearanceState = appearance.getSelectedAppearanceState();<NEW_LINE>appearanceState.setMatrix(new AffineTransf... | AlphaComposite.SRC_OVER, 1.0f))); |
1,655,822 | protected OrderedTensorType lazyGetType() {<NEW_LINE>if (!allInputTypesPresent(2))<NEW_LINE>return null;<NEW_LINE>OrderedTensorType typeA = inputs.get(0).type().get();<NEW_LINE>OrderedTensorType typeB = inputs.get(1).type().get();<NEW_LINE>if (typeA.type().rank() < 1 || typeB.type().rank() < 1)<NEW_LINE>throw new Illeg... | .rank() - 1)); |
948,047 | public Repo<Manager> call(long tid, Manager manager) throws Exception {<NEW_LINE>String fmtTid = FateTxId.formatTid(tid);<NEW_LINE>log.debug(" {} sourceDir {}", fmtTid, sourceDir);<NEW_LINE>Utils.getReadLock(manager, <MASK><NEW_LINE>// check that the error directory exists and is empty<NEW_LINE>VolumeManager fs = manag... | tableId, tid).lock(); |
693,031 | private Object decorateResult(Object toDecorate) {<NEW_LINE>if (toDecorate instanceof WebDriver) {<NEW_LINE>return createProxy(getDecoratedDriver(), WebDriver.class);<NEW_LINE>}<NEW_LINE>if (toDecorate instanceof WebElement) {<NEW_LINE>return createProxy(createDecorated((WebElement) toDecorate), WebElement.class);<NEW_... | ), WebDriver.Window.class); |
618,411 | MetadataTime computeRootTabletTime(ServerContext context, Collection<String> goodPaths) {<NEW_LINE>try {<NEW_LINE>context.setupCrypto();<NEW_LINE>long rtime = Long.MIN_VALUE;<NEW_LINE>for (String good : goodPaths) {<NEW_LINE>Path path = new Path(good);<NEW_LINE>FileSystem ns = context.getVolumeManager().getFileSystemBy... | MetadataTime(rtime, TimeType.LOGICAL); |
1,275,095 | public FeedOperation read() throws Exception {<NEW_LINE>int read = readExact(in, prefix);<NEW_LINE>if (read != prefix.length) {<NEW_LINE>return FeedOperation.INVALID;<NEW_LINE>}<NEW_LINE>ByteBuffer header = ByteBuffer.wrap(prefix);<NEW_LINE>int sz = header.getInt();<NEW_LINE>int type = header.getInt();<NEW_LINE>long ha... | return new LazyDocumentOperation(deser, testAndSetCondition); |
1,323,692 | void initSelFields() {<NEW_LINE>selMinX = Integer.MAX_VALUE;<NEW_LINE>selMaxX = 0;<NEW_LINE>selMinY = Integer.MAX_VALUE;<NEW_LINE>selMaxY = 0;<NEW_LINE>selMinWidth = Integer.MAX_VALUE;<NEW_LINE>selMinHeight = Integer.MAX_VALUE;<NEW_LINE>for (Component selComp : selection) {<NEW_LINE>int gridX = gridInfo.getGridX(selCom... | Math.min(selMinY, gridY); |
906,601 | public Request<RevokeClusterSecurityGroupIngressRequest> marshall(RevokeClusterSecurityGroupIngressRequest revokeClusterSecurityGroupIngressRequest) {<NEW_LINE>if (revokeClusterSecurityGroupIngressRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>R... | request.addParameter("Version", "2012-12-01"); |
428,097 | private void loadNode224() throws IOException, SAXException {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.ConditionType_ConditionRefresh2_InputArguments, new QualifiedName(0, "InputArguments"), new LocalizedText("en", "InputArguments"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), ... | Object o = decoder.readVariantValue(); |
1,495,039 | public ISpringBootProject project(IProject project) throws CoreException {<NEW_LINE>for (Entry<String, Supplier<Class<? extends ISpringBootProject>>> e : registry.get().entrySet()) {<NEW_LINE>if (project.hasNature(e.getKey())) {<NEW_LINE>Class<? extends ISpringBootProject> clazz = e.getValue().get();<NEW_LINE>if (clazz... | clazz.getConstructor(IProject.class); |
266,254 | final ListQuickConnectsResult executeListQuickConnects(ListQuickConnectsRequest listQuickConnectsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listQuickConnectsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListQuickConnects"); |
1,259,242 | public void run(RegressionEnvironment env) {<NEW_LINE>ConditionHandlerFactoryContext conditionHandlerFactoryContext = SupportConditionHandlerFactory.getFactoryContexts().get(0);<NEW_LINE>assertEquals(conditionHandlerFactoryContext.getRuntimeURI(), env.runtimeURI());<NEW_LINE>handler = SupportConditionHandlerFactory.get... | getContexts().isEmpty()); |
338,833 | public static DescribeHeatMapResponse unmarshall(DescribeHeatMapResponse describeHeatMapResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeHeatMapResponse.setRequestId(_ctx.stringValue("DescribeHeatMapResponse.RequestId"));<NEW_LINE>describeHeatMapResponse.setErrorCode(_ctx.stringValue("DescribeHeatMapResponse.Erro... | ("DescribeHeatMapResponse.HeatMapPoints[" + i + "].Weight")); |
1,004,149 | protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_microphone_configure);<NEW_LINE>mPrefManager = new PreferenceManager(this.getApplicationContext());<NEW_LINE>Toolbar toolbar = findViewById(R.id.toolbar);<NEW_LINE>setSupportAction... | findViewById(R.id.simplewaveform); |
896,993 | public Map<Extractor.Type, Long> totalExtractorCountByType() {<NEW_LINE>final DBObject query = new BasicDBObject(InputImpl.EMBEDDED_EXTRACTORS, new BasicDBObject("$exists", true));<NEW_LINE>try (DBCursor inputs = dbCollection.find(query, new BasicDBObject(InputImpl.EMBEDDED_EXTRACTORS, 1))) {<NEW_LINE>final Map<Extract... | input.get(InputImpl.EMBEDDED_EXTRACTORS); |
1,566,931 | public <T> FixedSizeSet<T> with(T one, T two, T three, T four) {<NEW_LINE>if (Objects.equals(one, two)) {<NEW_LINE>return this.of(one, three, four);<NEW_LINE>}<NEW_LINE>if (Objects.equals(one, three)) {<NEW_LINE>return this.of(one, two, four);<NEW_LINE>}<NEW_LINE>if (Objects.equals(one, four)) {<NEW_LINE>return this.of... | one, two, three, four); |
730,026 | public ErrorCode loadActiveSession(String username, String clientID) {<NEW_LINE>LOG.debug("createNewSession for client <{}>", clientID);<NEW_LINE>Session session = sessions.get(clientID);<NEW_LINE>if (session != null && session.getDeleted() == 0) {<NEW_LINE>LOG.error("already exists a session for client <{}>, bad condi... | sessions.put(clientID, session); |
1,134,177 | public PendingResource unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>PendingResource pendingResource = new PendingResource();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = conte... | int originalDepth = context.getCurrentDepth(); |
941,528 | private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String resourceName, String agentPoolName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot b... | resourceName, agentPoolName, accept, context); |
1,038,089 | protected void aggregateVariablesForChildExecution(DelegateExecution childExecution, DelegateExecution miRootExecution) {<NEW_LINE>if (hasVariableAggregationDefinitions(childExecution) && miRootExecution != null) {<NEW_LINE>ProcessEngineConfigurationImpl processEngineConfiguration = CommandContextUtil.getProcessEngineC... | childExecution, miRootExecution, aggregation, processEngineConfiguration); |
1,293,773 | protected void updateAlgGUI(I frame1, final BufferedImage buffImage1, final double fps) {<NEW_LINE>if (!noFault) {<NEW_LINE>numFaults++;<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>showTracks = guiInfo.isShowAll();<NEW_LINE>showInliers = guiInfo.isShowInliers();<NEW_LINE>if (alg instanceof AccessPointTracks3D)<NEW_LINE>drawFe... | transform(leftToWorld, p1, p1); |
862,288 | public void run(WorkingCopy workingCopy) throws java.io.IOException {<NEW_LINE>workingCopy.toPhase(Phase.ELEMENTS_RESOLVED);<NEW_LINE>ClassTree javaClass = SourceUtils.getPublicTopLevelTree(workingCopy);<NEW_LINE>TypeElement classElement = SourceUtils.getPublicTopLevelElement(workingCopy);<NEW_LINE>List<? extends Annot... | > anns = classElement.getAnnotationMirrors(); |
1,368,674 | private CompletableFuture<Suggestions> provideSuggestions(final StringReader reader, final CommandContextBuilder<S> context) {<NEW_LINE>lock.lock();<NEW_LINE>try {<NEW_LINE>final StringRange <MASK><NEW_LINE>final String alias = aliasRange.get(reader).toLowerCase(Locale.ENGLISH);<NEW_LINE>final LiteralCommandNode<S> lit... | aliasRange = this.consumeAlias(reader); |
1,726,448 | private static IPConnection queryIPConnection(int pid, int fd) {<NEW_LINE>SocketFdInfo si = new SocketFdInfo();<NEW_LINE>int ret = SystemB.INSTANCE.proc_pidfdinfo(pid, fd, PROC_PIDFDSOCKETINFO, si, si.size());<NEW_LINE>if (si.size() == ret && si.psi.soi_family == AF_INET || si.psi.soi_family == AF_INET6) {<NEW_LINE>InS... | ParseUtil.parseIntArrayToIP(ini.insi_faddr); |
1,145,741 | public static String requestWTSSWithSSOPost(String url, Map<String, String> params, AppIntegrationService<SSORequestService> service, Workspace workspace) throws Exception {<NEW_LINE>try {<NEW_LINE>FlowScheduleAction flowScheduleAction = new FlowScheduleAction();<NEW_LINE>flowScheduleAction.<MASK><NEW_LINE>SSOUrlBuilde... | getFormParams().putAll(params); |
918,179 | private CompletableFuture<Void> excludeObsolete(IndexedCompactionArgs args, Map<UUID, TableBucket> buckets, TimeoutTimer timer) {<NEW_LINE>// Exclude all those Table Entries whose buckets altogether do not exist.<NEW_LINE>val deletedBuckets = args.candidatesByHash.keySet().stream().filter(k -> {<NEW_LINE>val bucket = b... | collect(Collectors.toList()); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.