idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,053,447 | public View onCreateView(final LayoutInflater inflater, final ViewGroup container, final Bundle savedInstanceState) {<NEW_LINE>final View view = inflater.inflate(R.layout.wallet_transactions_fragment, container, false);<NEW_LINE>viewGroup = view.<MASK><NEW_LINE>emptyView = view.findViewById(R.id.wallet_transactions_emp... | findViewById(R.id.wallet_transactions_group); |
655,411 | private void runActionTypeInit(FormStructureHelper formStructureHelper) {<NEW_LINE>if ((request.getAttribute(FormsHelper.REQ_ATTR_IS_INIT) == null)) {<NEW_LINE>request.setAttribute(FormsHelper.REQ_ATTR_IS_INIT, "true");<NEW_LINE>final RequestPathInfo requestPathInfo = request.getRequestPathInfo();<NEW_LINE>if (response... | INIT_SCRIPT, formStart, request, response); |
963,813 | public ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {<NEW_LINE>Context ctx = parent.getContext();<NEW_LINE>LayoutInflater inflater = UiUtilities.getInflater(ctx, nightMode);<NEW_LINE>switch(ItemType.values()[viewType]) {<NEW_LINE>case WIDGET:<NEW_LINE>View itemView = inflater.inflate(R.layout.... | .card_bottom_divider, parent, false)); |
136,737 | public ReferenceBinding[] substitute(Substitution substitution, ReferenceBinding[] originalTypes) {<NEW_LINE>if (originalTypes == null)<NEW_LINE>return null;<NEW_LINE>ReferenceBinding[] substitutedTypes = originalTypes;<NEW_LINE>for (int i = 0, length = originalTypes.length; i < length; i++) {<NEW_LINE>ReferenceBinding... | substitutedType = substitute(substitution, originalType); |
1,329,540 | private Type createTempType() throws CoreException {<NEW_LINE>Expression expression = getSelectedExpression().getAssociatedExpression();<NEW_LINE>Type resultingType = null;<NEW_LINE>ITypeBinding typeBinding = expression.resolveTypeBinding();<NEW_LINE>ASTRewrite rewrite = fCURewrite.getASTRewrite();<NEW_LINE>AST ast = r... | ImportRewrite importRewrite = fCURewrite.getImportRewrite(); |
1,675,269 | public static void radixSort(int[] input) {<NEW_LINE>List<Integer>[] buckets = new ArrayList[10];<NEW_LINE>for (// initialize buckets<NEW_LINE>// initialize buckets<NEW_LINE>int i = 0; // initialize buckets<NEW_LINE>i < buckets.length; i++) buckets[i] = new ArrayList<Integer>();<NEW_LINE>int divisor = 1;<NEW_LINE>Strin... | % 10].add(num); |
411,097 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>String test = request.getParameter("test");<NEW_LINE><MASK><NEW_LINE>out.println("Starting " + test + "<br>");<NEW_LINE>// The injection engine doesn't like this at the class level.<NEW_LINE>Tr... | PrintWriter out = response.getWriter(); |
1,524,990 | public void compute(double[][] seasonMatrix, int sP, int sQ, int season) {<NEW_LINE>// step 1: find CSS result<NEW_LINE>SCSSEstimate scssEstimate = new SCSSEstimate();<NEW_LINE>scssEstimate.compute(seasonMatrix, sP, sQ, season);<NEW_LINE>ArrayList<double[]> initCoef = new ArrayList<>();<NEW_LINE>initCoef.add(scssEstima... | get(i + sP, 0); |
1,476,484 | public void configureVendorMetrics(String routingName, Routing.Rules rules) {<NEW_LINE>String metricPrefix = metricsNamePrefix(routingName);<NEW_LINE>KeyPerformanceIndicatorSupport.Metrics kpiMetrics = KeyPerformanceIndicatorMetricsImpls.get(metricPrefix, metricsSettings.keyPerformanceIndicatorSettings());<NEW_LINE>rul... | context().register(prms); |
679,048 | public void marshall(CreateIntegrationRequest createIntegrationRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createIntegrationRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createIntegr... | createIntegrationRequest.getPayloadFormatVersion(), PAYLOADFORMATVERSION_BINDING); |
529,143 | private void layout(ZoomableLabel label) {<NEW_LINE>String text = label.getText();<NEW_LINE>Icon icon = (label.isEnabled()) ? label.getIcon() : label.getDisabledIcon();<NEW_LINE>boolean wasPainting = isPainting;<NEW_LINE>try {<NEW_LINE>isPainting = true;<NEW_LINE>iconR.x = iconR.y = iconR.width = iconR.height = 0;<NEW_... | ) (textR.height * zoom); |
1,262,160 | public static <T1, T2, T3> double jointMI(WeightedTripleDistribution<T1, T2, T3> tripleRV) {<NEW_LINE>Map<CachedTriple<T1, T2, T3>, WeightCountTuple> jointCount = tripleRV.getJointCount();<NEW_LINE>Map<CachedPair<T1, T2>, WeightCountTuple> abCount = tripleRV.getABCount();<NEW_LINE>Map<T3, WeightCountTuple> cCount = tri... | = e.getValue().weight; |
398,657 | public Builder mergeFrom(org.mlflow.api.proto.MlflowArtifacts.ListArtifacts.Response other) {<NEW_LINE>if (other == org.mlflow.api.proto.MlflowArtifacts.ListArtifacts.Response.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (filesBuilder_ == null) {<NEW_LINE>if (!other.files_.isEmpty()) {<NEW_LINE>if (files_.is... | bitField0_ = (bitField0_ & ~0x00000001); |
852,968 | private String interpolateLabel(Map<CaseInsensitiveString, String> materialRevisions, int pipelineCounter) {<NEW_LINE>final Matcher matcher = PATTERN.matcher(this.label);<NEW_LINE><MASK><NEW_LINE>while (matcher.find()) {<NEW_LINE>String token = matcher.group("name");<NEW_LINE>String value;<NEW_LINE>if (COUNT.equalsIgno... | final StringBuffer buffer = new StringBuffer(); |
1,506,578 | public static BarPlot of(double[] data, double[] breaks, boolean prob, Color color) {<NEW_LINE>int k = breaks.length - 1;<NEW_LINE>if (k <= 1) {<NEW_LINE>throw new IllegalArgumentException("Invalid number of bins: " + k);<NEW_LINE>}<NEW_LINE>double[][] hist = smile.math.Histogram.of(data, breaks);<NEW_LINE>double[][] f... | 1][i]) / 2.0; |
313,950 | protected void runInContext() {<NEW_LINE>while (true) {<NEW_LINE>try {<NEW_LINE>if (_inProgress.get() == 0) {<NEW_LINE>s_logger.debug("Running post certificate renewal task to restart services.");<NEW_LINE>// Let the resource perform any post certificate renewal cleanups<NEW_LINE>_resource.executeRequest(new PostCertif... | s_logger.warn("Failed to execute post certificate renewal command:", e); |
941,865 | public void visit(LambdaExpr n, Object arg) {<NEW_LINE>printJavaComment(n.getComment(), arg);<NEW_LINE>final List<Parameter> parameters = n.getParameters();<NEW_LINE>final boolean printPar = n.isParametersEnclosed();<NEW_LINE>if (printPar) {<NEW_LINE>printer.print("(");<NEW_LINE>}<NEW_LINE>if (parameters != null) {<NEW... | body.accept(this, arg); |
109,266 | final DescribeScalableTargetsResult executeDescribeScalableTargets(DescribeScalableTargetsRequest describeScalableTargetsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeScalableTargetsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
219,908 | protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE><MASK><NEW_LINE>mapViewBuilder = new DefaultAirMapViewBuilder(this);<NEW_LINE>map = findViewById(R.id.map);<NEW_LINE>bottomToolsView = findViewById(R.id.bottom_tools);<NEW_LINE>logsRecyclerView = findViewById(R.id... | setContentView(R.layout.activity_main); |
1,473,437 | ActionResult<Wo> execute(EffectivePerson effectivePerson) throws Exception {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Wo wo = new Wo();<NEW_LINE>wo.setApplicationList(new ArrayList<Application>());<NEW_LINE>wo.setHttpProtocol(Config.nodes().centerServers().first().getValue().getHttpProtocol());... | .getValue().getApplication(); |
1,536,078 | final DescribeConformancePacksResult executeDescribeConformancePacks(DescribeConformancePacksRequest describeConformancePacksRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeConformancePacksRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri... | (super.beforeMarshalling(describeConformancePacksRequest)); |
383,218 | public void validate(ValidationHelper helper, Context context, String key, OpenAPI t) {<NEW_LINE>if (t != null) {<NEW_LINE>String openapiVersion = t.getOpenapi();<NEW_LINE>ValidatorUtils.validateRequiredField(openapiVersion, context, DefinitionConstant.PROP_OPENAPI).ifPresent(helper::addValidationEvent);<NEW_LINE>Valid... | .getLocation(), message)); |
1,722,634 | public void handle(CommandBlock block) {<NEW_LINE>String path = FileSystem.denormalizePath(block.readString());<NEW_LINE><MASK><NEW_LINE>long size = block.read64();<NEW_LINE>try {<NEW_LINE>boolean close_file = false;<NEW_LINE>RandomAccessFile read_file = started_read_file;<NEW_LINE>if (read_file == null) {<NEW_LINE>rea... | long offset = block.read64(); |
800,554 | private void writeAttributes(Attributes atts) throws SAXException {<NEW_LINE>final int len = atts.getLength();<NEW_LINE>for (int i = 0; i < len; i++) {<NEW_LINE>if ("xmlns".equals(atts.getQName(i))) {<NEW_LINE>// Redefines the default namespace.<NEW_LINE>forceNSDecl(atts.getValue(i));<NEW_LINE>} else if (atts.getQName(... | .getQName(i), false); |
914,194 | /* (non-Javadoc)<NEW_LINE>* @see com.ibm.ws.sib.processor.MQLinkLocalization#delete()<NEW_LINE>*/<NEW_LINE>public void delete() {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "delete");<NEW_LINE>// Mark the destination for deletion<NEW_LINE>try {<NEW_LINE>// Set the... | getLinkIndex().delete(this); |
36,966 | protected JFreeChart createStackedBar3DChart() throws JRException {<NEW_LINE>ChartFactory.setChartTheme(StandardChartTheme.createLegacyTheme());<NEW_LINE>JFreeChart jfreeChart = ChartFactory.createStackedBarChart3D(evaluateTextExpression(getChart().getTitleExpression()), evaluateTextExpression(((JRBar3DPlot) getPlot())... | ? false : bar3DPlot.getShowLabels(); |
565,402 | private OIndexSearchResult createIndexedProperty(final OSQLFilterCondition iCondition, final Object iItem, OCommandContext ctx) {<NEW_LINE>if (iItem == null || !(iItem instanceof OSQLFilterItemField)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (iCondition.getLeft() instanceof OSQLFilterItemField && iCondition.getRi... | item.getFieldChain(), value); |
875,256 | static Color parseColor(String s) {<NEW_LINE>// blue and white came from a real file.<NEW_LINE>if ("blue".equals(s)) {<NEW_LINE>return new <MASK><NEW_LINE>}<NEW_LINE>if ("white".equals(s)) {<NEW_LINE>return new Color(255, 255, 255);<NEW_LINE>}<NEW_LINE>// I guessed these are valid color names in Rksim.<NEW_LINE>if ("re... | Color(0, 0, 255); |
879,374 | private void exportXML(ExportDataDumper eDD, String viewName) {<NEW_LINE>// Header<NEW_LINE>// NOI18N<NEW_LINE>String newline = System.getProperty("line.separator");<NEW_LINE>// NOI18N<NEW_LINE>StringBuffer result = new StringBuffer("<?xml version=\"1.0\" encoding=\"UTF-8\"?>" + newline + "<ExportedView Name=\"" + view... | ("]]></TableColumn>").append(newline); |
513,153 | private StringBuffer createHeader(String packageName, String className) {<NEW_LINE>String script = getScript();<NEW_LINE>StringBuffer header = new StringBuffer();<NEW_LINE>// Add license<NEW_LINE><MASK><NEW_LINE>// New line<NEW_LINE>header.append(ModelInterfaceGenerator.NL);<NEW_LINE>// Package<NEW_LINE>header.append("... | header.append(ModelInterfaceGenerator.COPY); |
741,167 | public void run() {<NEW_LINE>JmxModel model = JmxModelFactory.getJmxModelFor(application);<NEW_LINE>if (model == null || !model.isTakeHeapDumpSupported()) {<NEW_LINE>DialogDisplayer.getDefault().notifyLater(new // NOI18N<NEW_LINE>NotifyDescriptor.Message(// NOI18N<NEW_LINE>NbBundle.getMessage(HeapDumpProvider.class, "M... | file), NotifyDescriptor.ERROR_MESSAGE)); |
37,909 | public Optional<ConnectorOutputMetadata> finishInsert(ConnectorSession session, ConnectorInsertTableHandle insertHandle, Collection<Slice> fragments, Collection<ComputedStatistics> computedStatistics) {<NEW_LINE>if (fragments.isEmpty()) {<NEW_LINE>transaction.commitTransaction();<NEW_LINE>return Optional.empty();<NEW_L... | AppendFiles appendFiles = transaction.newFastAppend(); |
922,352 | public void marshall(Integration integration, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (integration == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(integration.getType(), TYPE_BINDING);<NEW_LINE>prot... | integration.getConnectionId(), CONNECTIONID_BINDING); |
1,352,633 | private long readStreamChunk(ByteBufferStream buffer, long size, MessageDigest md5, MessageDigest sha256) throws IOException {<NEW_LINE>long totalBytesRead = 0;<NEW_LINE>if (this.oneByte != null) {<NEW_LINE>buffer.write(this.oneByte);<NEW_LINE>md5.update(this.oneByte);<NEW_LINE>if (sha256 != null)<NEW_LINE>sha256.updat... | .eof = (bytesRead < 0); |
1,344,374 | public Optional<ServiceBindingConfigSource> convert(List<ServiceBinding> serviceBindings) {<NEW_LINE>Optional<ServiceBinding> matchingByType = ServiceBinding.singleMatchingByType("kafka", serviceBindings);<NEW_LINE>if (!matchingByType.isPresent()) {<NEW_LINE>return Optional.empty();<NEW_LINE>}<NEW_LINE>Map<String, Stri... | ("org.apache.kafka.common.security.plain.PlainLoginModule required username='%s' password='%s';", user, password)); |
1,466,801 | public void onReceive(Context context, Intent intent) {<NEW_LINE><MASK><NEW_LINE>String messageJson = intent.getStringExtra(MobiComKitConstants.MESSAGE_JSON_INTENT);<NEW_LINE>String activityToOpen = Utils.getMetaDataValueForReceiver(context, NotificationBroadcastReceiver.class.getName(), "activity.open.on.notification"... | String actionName = intent.getAction(); |
942,915 | public OResultSet syncPull(OCommandContext ctx, int nRecords) throws OTimeoutException {<NEW_LINE>getPrev().ifPresent(x -> x.syncPull(ctx, nRecords));<NEW_LINE>if (finalResult != null) {<NEW_LINE>return finalResult.syncPull(ctx, nRecords);<NEW_LINE>}<NEW_LINE>for (int i = 0; i < retries; i++) {<NEW_LINE>try {<NEW_LINE>... | .getDatabase().rollback(); |
273,508 | public ExecuteResult call() throws Exception {<NEW_LINE>ExecuteResult result = new ExecuteResult("Generate Table[" + host.getDbSetName() + "." + host.getTableName() + "] Dao, Pojo, Test");<NEW_LINE>progress.setOtherMessage(result.getTaskName());<NEW_LINE>try {<NEW_LINE>VelocityContext context = GenUtils.buildDefaultVel... | context.put("host", host); |
483,651 | private void countNode(List<PTuple> entries, ProfilerNode<Payload> node, double avgSampleTime) {<NEW_LINE>Collection<ProfilerNode<Payload>> children = node.getChildren();<NEW_LINE>Object[] profilerEntry = getProfilerEntry(node, avgSampleTime);<NEW_LINE>Object[] calls = new Object[children.size()];<NEW_LINE>int callIdx ... | Arrays.copyOf(profilerEntry, 6); |
1,622,998 | public static ClusterOperatorConfig fromMap(Map<String, String> map, KafkaVersion.Lookup lookup) {<NEW_LINE>Set<String> namespaces = parseNamespaceList(map.get(STRIMZI_NAMESPACE));<NEW_LINE>long reconciliationInterval = parseReconciliationInterval(map.get(STRIMZI_FULL_RECONCILIATION_INTERVAL_MS));<NEW_LINE>long operati... | .get(STRIMZI_NETWORK_POLICY_GENERATION), DEFAULT_NETWORK_POLICY_GENERATION); |
943,994 | private void lexVerbatimData(Matcher verbatimStartMatcher) {<NEW_LINE>// move cursor past the opening verbatim tag<NEW_LINE>this.source.advance(verbatimStartMatcher.end());<NEW_LINE>// look for the "endverbatim" tag and storing everything between<NEW_LINE>// now and then into a TEXT node<NEW_LINE>Matcher verbatimEndMat... | pushToken(Type.TEXT, verbatimText); |
1,621,978 | private TraceId createTraceIdFromProperties(List<UserProperty> userProperties) {<NEW_LINE>String transactionId = null;<NEW_LINE>String spanID = null;<NEW_LINE>String parentSpanID = null;<NEW_LINE>String flags = null;<NEW_LINE>for (UserProperty property : userProperties) {<NEW_LINE>if (property.getKey().equals(Header.HT... | , Short.parseShort(flags)); |
499,120 | /* Take note of options used for a given library mapping, to facilitate<NEW_LINE>* looking them up later.<NEW_LINE>*/<NEW_LINE>private static Map<String, Object> cacheOptions(Class<?> cls, Map<String, ?> options, Object proxy) {<NEW_LINE>Map<String, Object> libOptions = new HashMap<MASK><NEW_LINE>libOptions.put(_OPTION... | <String, Object>(options); |
726,937 | public static DescribeSyncReportDetailResponse unmarshall(DescribeSyncReportDetailResponse describeSyncReportDetailResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeSyncReportDetailResponse.setCode(_ctx.stringValue("DescribeSyncReportDetailResponse.code"));<NEW_LINE>describeSyncReportDetailResponse.setMessage(_ctx... | ("DescribeSyncReportDetailResponse.result[" + i + "].type")); |
182,705 | public ModelResponse<T> invoke(final ModelRequest request) {<NEW_LINE>int requireSize = 0;<NEW_LINE>final List<ModelResponse<T>> responses = Collections.synchronizedList(new ArrayList<ModelResponse<T>>());<NEW_LINE>final Semaphore semaphore = new Semaphore(0);<NEW_LINE>final Transaction t = Cat.getProducer().newTransac... | report = merge(request, responses); |
1,075,482 | public Number visitClass(ClassTree node, Void p) {<NEW_LINE>String name = node.getSimpleName().toString();<NEW_LINE>String newName = name;<NEW_LINE>if (name.startsWith("$")) {<NEW_LINE>if (parameterNames.containsKey(name)) {<NEW_LINE>newName = parameterNames.get(name);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>List<? extends Type... | resolveMultiParameters(node.getTypeParameters()); |
1,518,010 | public static QueryTrademarkPriceResponse unmarshall(QueryTrademarkPriceResponse queryTrademarkPriceResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryTrademarkPriceResponse.setRequestId<MASK><NEW_LINE>queryTrademarkPriceResponse.setDiscountPrice(_ctx.floatValue("QueryTrademarkPriceResponse.DiscountPrice"));<NEW_LINE>... | (_ctx.stringValue("QueryTrademarkPriceResponse.RequestId")); |
752,827 | public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String epl = "@public create table PointTable as (id string primary key, px double, py double);\n" + "create index MyIndex on PointTable((px,py) pointregionquadtree(0,0,100,100));\n" + "insert into PointTable sele... | env.compileFAF("delete from PointTable where id=?::string", path); |
504,919 | protected void actuallyCheckforUpdates(URI url, Collection<Plugin> plugins, String entryPoint) throws IOException {<NEW_LINE>LOGGER.fine("Checking for updates at " + url + " for " + getPluginNames(plugins));<NEW_LINE>if (DEBUG) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>HttpURLConnection conn = (HttpURLConnection) url.toURL... | System.out.println(url); |
1,350,179 | private Type coerceToSingleType(StackableAstVisitorContext<Context> context, String message, List<Expression> expressions) {<NEW_LINE>// determine super type<NEW_LINE>Type superType = UNKNOWN;<NEW_LINE>for (Expression expression : expressions) {<NEW_LINE>Optional<Type> newSuperType = functionAndTypeManager.getCommonSup... | type = process(expression, context); |
271,127 | public String delete(String jobName, ServingJobType jobType, String jobVersion) throws IOException, ArenaException {<NEW_LINE>List<String> cmds = this.generateCommands("serve", "delete");<NEW_LINE>if (!jobType.equals(ServingJobType.AllServingJob) && !jobType.equals(ServingJobType.UnknownServingJob)) {<NEW_LINE>cmds.add... | SERVING_DELETE, e.getMessage()); |
325,717 | public CreateSnapshotFromVolumeRecoveryPointResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateSnapshotFromVolumeRecoveryPointResult createSnapshotFromVolumeRecoveryPointResult = new CreateSnapshotFromVolumeRecoveryPointResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = c... | int originalDepth = context.getCurrentDepth(); |
674,105 | public static List<BrokerOverviewVO> convert2BrokerOverviewList(List<BrokerOverviewDTO> brokerOverviewDTOList, List<RegionDO> regionDOList) {<NEW_LINE>if (ValidateUtils.isEmptyList(brokerOverviewDTOList)) {<NEW_LINE>return new ArrayList<>();<NEW_LINE>}<NEW_LINE>Map<Integer, String> brokerIdRegionNameMap = convert2Broke... | setByteIn(brokerOverviewDTO.getByteIn()); |
1,400,474 | protected void sync() {<NEW_LINE>inSync = true;<NEW_LINE>WSDLComponent secBinding = null;<NEW_LINE>WSDLComponent topSecBinding = SecurityPolicyModelHelper.getSecurityBindingTypeElement(comp);<NEW_LINE>WSDLComponent protTokenKind = SecurityTokensModelHelper.getTokenElement(topSecBinding, ProtectionToken.class);<NEW_LINE... | getTokenElement(protToken, BootstrapPolicy.class); |
306,454 | final RollbackApplicationResult executeRollbackApplication(RollbackApplicationRequest rollbackApplicationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(rollbackApplicationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,354,798 | private InetSocketAddress bindToPort(final String name, final InetAddress hostAddress, String port) {<NEW_LINE>PortsRange portsRange = new PortsRange(port);<NEW_LINE>final AtomicReference<Exception> lastException = new AtomicReference<>();<NEW_LINE>final AtomicReference<InetSocketAddress> boundSocket = new AtomicRefere... | ()).add(channel); |
1,513,436 | final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
581,309 | public U map(AtmosphereRequest req, Map<String, U> handlers) {<NEW_LINE>String path = computePath(req);<NEW_LINE>U handler = map(path, handlers);<NEW_LINE>if (handler == null) {<NEW_LINE>// (2) First, try exact match<NEW_LINE>handler = map(path + (path.endsWith("/") ? "all" : "/all"), handlers);<NEW_LINE>if (handler ==... | , p.lastIndexOf("/")); |
876,082 | public void permissions() {<NEW_LINE>Long id = getParaToLong();<NEW_LINE>if (id == null) {<NEW_LINE>renderError(404);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Role role = roleService.findById(id);<NEW_LINE>setAttr("role", role);<NEW_LINE>String type = getPara("type");<NEW_LINE>List<Permission> permissions = type == null ? ... | groupCheck.put(groupKey, true); |
504,553 | protected TupleIterable makeIterable(Evaluator evaluator) {<NEW_LINE>evaluator.getTiming().markStart(TIMING_NAME);<NEW_LINE>final int savepoint = evaluator.savepoint();<NEW_LINE>try {<NEW_LINE>Calc[] calcs = getCalcs();<NEW_LINE>ListCalc lcalc = (ListCalc) calcs[0];<NEW_LINE>BooleanCalc bcalc = (BooleanCalc) calcs[1];<... | TupleCursor cursor = list.tupleCursor(); |
1,245,514 | public Leg unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE><MASK><NEW_LINE>if (!reader.isContainer()) {<NEW_LINE>reader.skipValue();<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Leg leg = new Leg();<NEW_LINE>reader.beginObject();<NEW_LINE>while (reader.hasNext()) {<NEW_LINE>String name = reader.nex... | AwsJsonReader reader = context.getReader(); |
1,363,189 | private static void write_rules(WriteScopeParameter p_par, String p_design_name) throws java.io.IOException {<NEW_LINE>p_par.file.start_scope();<NEW_LINE>p_par.file.write("rules PCB ");<NEW_LINE>p_par.file.write(p_design_name);<NEW_LINE>Structure.write_snap_angle(p_par.file, p_par.board.rules.get_trace_angle_restrictio... | p_par.file, p_par.identifier_type); |
425,091 | private String format(String input, IParseNode parseResult, int indentationLevel, boolean isSelection) throws Exception {<NEW_LINE>int spacesCount = -1;<NEW_LINE>if (isSelection) {<NEW_LINE>spacesCount = countLeftWhitespaceChars(input);<NEW_LINE>}<NEW_LINE>final FormatterDocument document = createFormatterDocument(inpu... | output = leftTrim(output, spacesCount); |
93,425 | // This method computes the roll over period by looping over the<NEW_LINE>// periods, starting with the shortest, and stopping when the r0 is<NEW_LINE>// different from from r1, where r0 is the epoch formatted according<NEW_LINE>// the datePattern (supplied by the user) and r1 is the<NEW_LINE>// epoch+nextMillis(i) for... | (rollingCalendar.getNextCheckMillis(epoch)); |
993,993 | private // If we can't calculate from pins or we don't need to, then return the measured width.<NEW_LINE>int calculateWidthFromPins(LayoutParams params, int parentLeft, int parentRight, int parentWidth, int measuredWidth) {<NEW_LINE>int width = measuredWidth;<NEW_LINE>// We only calculate width based on pins if Titaniu... | ) - left.getAsPixels(this); |
294,617 | public StartBlueprintRunResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>StartBlueprintRunResult startBlueprintRunResult = new StartBlueprintRunResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LI... | JsonToken token = context.getCurrentToken(); |
606,846 | public AssociateResourceError unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AssociateResourceError associateResourceError = new AssociateResourceError();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_... | int originalDepth = context.getCurrentDepth(); |
810,186 | private void handleSegregateFiles(final EncogFileSection section) {<NEW_LINE>final List<AnalystSegregateTarget> nfs = new ArrayList<AnalystSegregateTarget>();<NEW_LINE>boolean first = true;<NEW_LINE>for (final String line : section.getLines()) {<NEW_LINE>if (!first) {<NEW_LINE>final List<String> cols = EncogFileSection... | getSegregate().setSegregateTargets(array); |
1,604,065 | public String docType(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value) {<NEW_LINE>Integer C_DocType_ID = (Integer) value;<NEW_LINE>if (C_DocType_ID == null || C_DocType_ID.intValue() == 0)<NEW_LINE>return "";<NEW_LINE>// 1..3<NEW_LINE>String // 1..3<NEW_LINE>sql = // 4..5<NEW_LINE>"SELECT d.H... | 1, C_DocType_ID.intValue()); |
1,556,976 | public static void main(String[] args) {<NEW_LINE>Label[] items1 = new Label[5];<NEW_LINE>Label[] items2 = new Label[5];<NEW_LINE>for (int i = 0; i < items1.length; i++) {<NEW_LINE>items1[i] = new Label();<NEW_LINE>items2[i] = new Label();<NEW_LINE>}<NEW_LINE>Labels labels1 = new Labels(items1);<NEW_LINE>Labels labels2... | items[4].phn = "E1"; |
1,303,875 | public TypeBinding resolveType(BlockScope scope) {<NEW_LINE>this.constant = Constant.NotAConstant;<NEW_LINE>if ((this.targetType = this.type.resolveType(scope, true)) == null)<NEW_LINE>return null;<NEW_LINE>LookupEnvironment environment = scope.environment();<NEW_LINE>this.targetType = environment.<MASK><NEW_LINE>if (t... | convertToRawType(this.targetType, true); |
4,804 | private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>jLabel1 = <MASK><NEW_LINE>jScrollPane1 = new javax.swing.JScrollPane();<NEW_LINE>jLabel1.setLabelFor(lstBranches);<NEW_LINE>// NOI18N<NEW_LINE>org.openide.awt.Mnemonics.setLocalize... | new javax.swing.JLabel(); |
1,307,224 | protected void onBoundsChange(Rect bounds) {<NEW_LINE>Drawable underlyingDrawable = getCurrent();<NEW_LINE>if (mRotationAngle > 0 || (mExifOrientation != ExifInterface.ORIENTATION_UNDEFINED && mExifOrientation != ExifInterface.ORIENTATION_NORMAL)) {<NEW_LINE>switch(mExifOrientation) {<NEW_LINE>case ExifInterface.ORIENT... | ), bounds.centerY()); |
1,846,768 | @NoCache<NEW_LINE>@Consumes(MediaType.APPLICATION_JSON)<NEW_LINE>public Response addExecutionToFlow(@PathParam("flowAlias") String flowAlias, Map<String, String> data) {<NEW_LINE>auth.realm().requireManageRealm();<NEW_LINE>AuthenticationFlowModel parentFlow = realm.getFlowByAlias(flowAlias);<NEW_LINE>if (parentFlow == ... | getAlias()).getPath(); |
865,648 | final ListUsersResult executeListUsers(ListUsersRequest listUsersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listUsersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L... | invoke(request, responseHandler, executionContext); |
592,253 | private void verifyPeerCommunication(Location pos, BSymbol otherWorker, String otherWorkerName, SymbolEnv env) {<NEW_LINE>if (env.enclEnv.node.getKind() != NodeKind.FUNCTION) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>BLangFunction funcNode = <MASK><NEW_LINE>Set<Flag> flagSet = funcNode.flagSet;<NEW_LINE>// Analyze worker ... | (BLangFunction) env.enclEnv.node; |
1,056,976 | public static void mail5() throws EmailException {<NEW_LINE>HtmlEmail email = new HtmlEmail();<NEW_LINE>email.setHtmlMsg("<html><body><h1>A Title</h1></body></html>");<NEW_LINE>email.setTextMsg("alternative message");<NEW_LINE>EmailAttachment attachment = new EmailAttachment();<NEW_LINE>attachment.setDescription("An im... | io.File.separator + "fond2.png"); |
147,818 | public void endCollecting() {<NEW_LINE>List<Annotation> toRemove = new ArrayList<>();<NEW_LINE>synchronized (fLockObject) {<NEW_LINE>Iterator<Annotation<MASK><NEW_LINE>while (iter.hasNext()) {<NEW_LINE>Annotation annotation = iter.next();<NEW_LINE>if (ReconcileProblemAnnotation.TYPES.contains(annotation.getType()))<NEW... | > iter = fAnnotationModel.getAnnotationIterator(); |
1,801,331 | public static Part newPartForContentType(String contentType, String partName) throws InvalidFormatException, PartUnrecognisedException {<NEW_LINE>if (contentType.equals(ContentTypes.PRESENTATIONML_MAIN) || contentType.equals(ContentTypes.PRESENTATIONML_TEMPLATE) || contentType.equals(ContentTypes.PRESENTATIONML_MACROEN... | PresentationPropertiesPart(new PartName(partName)); |
1,204,053 | public Object apply(final ActionContext ctx, final Object caller, final Object[] sources) throws FrameworkException {<NEW_LINE>try {<NEW_LINE>assertArrayHasMinLengthAndAllElementsNotNull(sources, 2);<NEW_LINE>try {<NEW_LINE>if (!(sources[0] instanceof File)) {<NEW_LINE>logParameterError(caller, sources, "First paramete... | ), ctx.isJavaScriptContext()); |
112,436 | private boolean upload(User loginUser, String fullName, MultipartFile file, ResourceType type) {<NEW_LINE>// save to local<NEW_LINE>String fileSuffix = Files.<MASK><NEW_LINE>String nameSuffix = Files.getFileExtension(fullName);<NEW_LINE>// determine file suffix<NEW_LINE>if (!(StringUtils.isNotEmpty(fileSuffix) && fileS... | getFileExtension(file.getOriginalFilename()); |
1,010,881 | private <K, V> ConnectionFuture<StatefulRedisSentinelConnection<K, V>> doConnectSentinelAsync(RedisCodec<K, V> codec, RedisURI redisURI, Duration timeout, String clientName) {<NEW_LINE>ConnectionBuilder connectionBuilder;<NEW_LINE>if (redisURI.isSsl()) {<NEW_LINE>SslConnectionBuilder sslConnectionBuilder = SslConnectio... | "Cannot connect Redis Sentinel at " + redisURI + ": " + e); |
1,115,339 | @SuppressWarnings("unchecked")<NEW_LINE>public <T> T put(final Key<T> key, @Nullable final T value, final CopyOnWriteContextMap owner, final AtomicReferenceFieldUpdater<CopyOnWriteContextMap, CopyContextMap> mapUpdater) {<NEW_LINE>if (keyOne.equals(key)) {<NEW_LINE>return mapUpdater.compareAndSet(owner, this, new Three... | owner.put(key, value); |
856,871 | private static BooleanWithReason checkCanEdit(@NonNull final Document document, @NonNull final IUserRolePermissions permissions) {<NEW_LINE>// In case document type is not Window, return OK because we cannot validate<NEW_LINE>final DocumentPath documentPath = document.getDocumentPath();<NEW_LINE>if (documentPath.getDoc... | final int recordId = getRecordId(document); |
277,282 | public UpdateDataSourceResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UpdateDataSourceResult updateDataSourceResult = new UpdateDataSourceResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_... | int originalDepth = context.getCurrentDepth(); |
562,919 | static void printObjectAsCsv(StringBuilder out, JsonNode node, ReturnFields fields, boolean unquoted) {<NEW_LINE>if (node.isObject()) {<NEW_LINE>if (fields == null) {<NEW_LINE>Iterator<Map.Entry<String, JsonNode>> it = node.fields();<NEW_LINE>while (it.hasNext()) {<NEW_LINE>printObjectAsCsv(out, it.next().getValue(), u... | append(node.toString()); |
71,445 | public // optional, can get from cookie instead<NEW_LINE>// optional, can get from cookie instead<NEW_LINE>Response // optional, can get from cookie instead<NEW_LINE>authenticate(@QueryParam(AUTH_SESSION_ID) String authSessionId, @QueryParam(SESSION_CODE) String code, @QueryParam(Constants.EXECUTION) String execution, ... | event.event(EventType.LOGIN); |
1,107,680 | final CreateEventActionResult executeCreateEventAction(CreateEventActionRequest createEventActionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createEventActionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | false), new CreateEventActionResultJsonUnmarshaller()); |
1,566,600 | public EntityDetail createSchemaTable(EntityDetail schema, String tableName) throws InvalidParameterException, TypeErrorException, EntityProxyOnlyException, ClassificationErrorException, RepositoryErrorException, EntityNotKnownException, PropertyErrorException, PagingErrorException, FunctionNotSupportedException, UserN... | QUALIFIED_NAME_PROPERTY_NAME, relationalSchemaQName).build(); |
911,572 | private static void pointAdd(PointExt p, PointAccum r) {<NEW_LINE>int[] a = F.create();<NEW_LINE>int[] b = F.create();<NEW_LINE>int[] c = F.create();<NEW_LINE>int[] d = F.create();<NEW_LINE><MASK><NEW_LINE>int[] f = F.create();<NEW_LINE>int[] g = F.create();<NEW_LINE>int[] h = r.v;<NEW_LINE>F.apm(r.y, r.x, b, a);<NEW_L... | int[] e = r.u; |
581,986 | private void loadNode515() throws IOException, SAXException {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.ServerConfiguration_CertificateGroups_DefaultUserTokenGroup_TrustList_CloseAndUpdate_OutputArguments, new QualifiedName(0, "OutputArguments"), new LocalizedText("en", "OutputArgu... | .expanded(), false)); |
901,790 | public Object execute(VirtualFrame frame) {<NEW_LINE>if (RubyArguments.getDescriptor(frame) instanceof KeywordArgumentsDescriptor) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (RubyArguments.getPositionalArgumentsCount(frame, keywordArguments) != 1) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>checkIsArrayProfile.en... | insert(InternalRespondToNode.create()); |
826,111 | final DescribePermissionSetResult executeDescribePermissionSet(DescribePermissionSetRequest describePermissionSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describePermissionSetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribePermissionSet"); |
869,940 | private Value invokeRemoteMethod(BVariable resultVar) throws EvaluationException {<NEW_LINE>ClassDefinitionResolver classDefResolver = new ClassDefinitionResolver(context);<NEW_LINE>String className = resultVar.getDapVariable().getValue();<NEW_LINE>Optional<ClassSymbol> classDef = classDefResolver.findBalClassDefWithin... | (1).split(JNI_SIGNATURE_SEPARATOR); |
1,245,306 | private ExtensionArchive newExtensionArchive(ServiceReference<WebSphereCDIExtension> sr) throws CDIException {<NEW_LINE>Bundle bundle = sr.getBundle();<NEW_LINE>String extra_classes_blob = (String) sr.getProperty(EXTENSION_API_CLASSES);<NEW_LINE>Set<String> extra_classes = new HashSet<String>();<NEW_LINE>// parse the l... | classes = extra_classes_blob.split(EXTENSION_API_CLASSES_SEPARATOR); |
1,496,818 | void initiateClose(boolean saveState) {<NEW_LINE>log.trace("initiateClose(saveState={}) {}", saveState, getExtent());<NEW_LINE>MinorCompactionTask mct = null;<NEW_LINE>synchronized (this) {<NEW_LINE>if (isClosed() || isClosing()) {<NEW_LINE>String msg = "Tablet " + getExtent() + " already " + closeState;<NEW_LINE>throw... | "Exception on " + extent + " during prep for MinC", e); |
698,906 | public HttpResult doPost(CloseableHttpClient httpClient, String url, Map<String, String> header, String content, ContentType contentType) throws Exception {<NEW_LINE>HttpPost httpPost = new HttpPost(url);<NEW_LINE>httpPost.addHeader("Connection", "close");<NEW_LINE>if (header != null) {<NEW_LINE>header.forEach((k, v) -... | .getEntity(), "UTF-8")); |
1,118,859 | public S3Resource convertArn(Arn arn) {<NEW_LINE>if (isV1Arn(arn)) {<NEW_LINE>return convertV1Arn(arn);<NEW_LINE>}<NEW_LINE>S3ResourceType s3ResourceType;<NEW_LINE>try {<NEW_LINE>s3ResourceType = S3ResourceType.fromValue(arn.<MASK><NEW_LINE>} catch (IllegalArgumentException e) {<NEW_LINE>throw new IllegalArgumentExcept... | getResource().getResourceType()); |
114,070 | protected int handleGetExtendedYear() {<NEW_LINE>// EXTENDED_YEAR in TaiwanCalendar is a Gregorian year<NEW_LINE>// The default value of EXTENDED_YEAR is 1970 (Minguo 59)<NEW_LINE>int year = GREGORIAN_EPOCH;<NEW_LINE>if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR && newerField(EXTENDED_YEAR, ERA) == EXTENDED_YEAR... | era = internalGet(ERA, MINGUO); |
754,541 | private Element generateLink(Link link) {<NEW_LINE>Element linkElement = new Element("link", NS);<NEW_LINE>if (link.getHref() != null) {<NEW_LINE>Attribute href = new Attribute(AtomLinkAttribute.HREF, link.getHref());<NEW_LINE>linkElement.setAttribute(href);<NEW_LINE>}<NEW_LINE>if (link.getType() != null) {<NEW_LINE>At... | (link.getLength())); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.