idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,221,487 | private void readState(GetField fields) throws IOException {<NEW_LINE>// get caller principal<NEW_LINE>callerPrincipal = (WSPrincipal) fields.get(CALLER_PRINCIPAL, null);<NEW_LINE>// get boolean marking if subjects are equal<NEW_LINE>subjectsAreEqual = <MASK><NEW_LINE>// only deserialize invocation principal if it's di... | fields.get(SUBJECTS_ARE_EQUAL, false); |
1,364,440 | Expression implementSafe(final RexToLixTranslator translator, final RexCall call, final List<Expression> argValueList) {<NEW_LINE>final SqlOperator op = call.getOperator();<NEW_LINE>final Expression root = translator.getRoot();<NEW_LINE>if (op == CURRENT_USER || op == SESSION_USER || op == USER) {<NEW_LINE>return Expre... | BuiltInMethod.CURRENT_DATE.method, root); |
633,219 | private void releaseChannel(final Channel channel, final Promise<Void> promise) {<NEW_LINE>checkState(channel.eventLoop().inEventLoop());<NEW_LINE>final ChannelPool pool = channel.attr(POOL_KEY).getAndSet(null);<NEW_LINE>final boolean acquired = this.<MASK><NEW_LINE>if (acquired && pool == this) {<NEW_LINE>try {<NEW_LI... | acquiredChannels.get(channel) != null; |
1,149,205 | public double rayCast(Ray2D ray) {<NEW_LINE>double result = Double.POSITIVE_INFINITY;<NEW_LINE>for (int i = 0; i < edges.length; i++) {<NEW_LINE>if (!ray.getDirection().isParallel(edges[i])) {<NEW_LINE>final double divisor = (ray.getDirection().getX() * edges[i].getX() - ray.getDirection().getX() * edges[i].getY());<NE... | ].getY()) / divisor; |
1,757,494 | final StopRxNormInferenceJobResult executeStopRxNormInferenceJob(StopRxNormInferenceJobRequest stopRxNormInferenceJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(stopRxNormInferenceJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_... | endClientExecution(awsRequestMetrics, request, response); |
486,356 | public void closeOpenWindows() {<NEW_LINE>if (infoWindow != null) {<NEW_LINE>if (infoWindow.isVisible()) {<NEW_LINE>infoWindow.setVisible(false);<NEW_LINE>add(panelInfos, infoTabIndex);<NEW_LINE>updateInfoTab();<NEW_LINE>}<NEW_LINE>}<NEW_LINE>if (warningsWindow != null) {<NEW_LINE>if (warningsWindow.isVisible()) {<NEW_... | errorsList.getCountNr() + ")"); |
498,672 | public void submitRequests() {<NEW_LINE>// ==========================================================================//<NEW_LINE>// ================= Submit a Spot Instance Request =====================//<NEW_LINE>// ==========================================================================//<NEW_LINE>// Initializes a ... | > requestResponses = requestResult.getSpotInstanceRequests(); |
1,272,721 | public void testMultiIndexRead() throws Exception {<NEW_LINE>testRuns++;<NEW_LINE>RestUtils.postData(index + <MASK><NEW_LINE>RestUtils.postData(index + "/bar", "{\"message\" : \"Goodbye World\",\"message_date\" : \"2014-05-25\"}".getBytes());<NEW_LINE>RestUtils.refresh(index);<NEW_LINE>String target = "_all/foo";<NEW_L... | "/foo", "{\"message\" : \"Hello World\",\"message_date\" : \"2014-05-25\"}".getBytes()); |
379,967 | public void onPresentProofClicked(View v) {<NEW_LINE>try {<NEW_LINE>int connectionHandle = ConnectionApi.connectionDeserialize(connection).get();<NEW_LINE>// Check agency for a proof request<NEW_LINE>String requests = DisclosedProofApi.proofGetRequests(connectionHandle).get();<NEW_LINE>// Create a Disclosed proof objec... | .currentThread().interrupt(); |
940,505 | private void checkForNewDevices() {<NEW_LINE>logger.debug("Refreshing Bluetooth device list...");<NEW_LINE>Set<String> newAddresses = new HashSet<>();<NEW_LINE>List<tinyb.BluetoothDevice> tinybDevices = adapter.getDevices();<NEW_LINE>logger.debug("Found {} Bluetooth devices.", tinybDevices.size());<NEW_LINE>synchronize... | > oldAdresses = devices.keySet(); |
954,427 | public void callOnStateEntry(String stateMachineId, StateContext<S, E> stateContext) {<NEW_LINE>if (!StringUtils.hasText(stateMachineId)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>List<StateMachineHandler<? extends Annotation, S, E>> handlersList = new ArrayList<StateMachineHandler<? extends Annotation<MASK><NEW_LINE>Stri... | , S, E>>(); |
552,679 | public RemoveThingFromThingGroupResult removeThingFromThingGroup(RemoveThingFromThingGroupRequest removeThingFromThingGroupRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(removeThingFromThingGroupRequest);<NEW_LINE>AWSRequestMetrics aws... | awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); |
360,397 | private boolean isUpdateMode(StateInstance stateInstance, ProcessContext context) {<NEW_LINE>DefaultStateMachineConfig stateMachineConfig = (DefaultStateMachineConfig) context.getVariable(DomainConstants.VAR_NAME_STATEMACHINE_CONFIG);<NEW_LINE>StateInstruction instruction = context.getInstruction(StateInstruction.class... | .getStateMachineInstance().getStateMachine(); |
1,618,942 | CompletableFuture<Void> completeJob(MasterContext masterContext, Throwable error, long completionTime) {<NEW_LINE>return submitToCoordinatorThread(() -> {<NEW_LINE>// the order of operations is important.<NEW_LINE>List<RawJobMetrics> jobMetrics = masterContext.jobConfig().isStoreMetricsAfterJobCompletion() ? masterCont... | ().jobMetrics() : null; |
1,162,625 | public List<Writable> transformRawStringsToInputList(List<String> values) {<NEW_LINE>List<Writable> ret = new ArrayList<>();<NEW_LINE>if (values.size() != initialSchema.numColumns())<NEW_LINE>throw new IllegalArgumentException(String.format("Number of values %d does not match the number of input columns %d for schema",... | .get(i)))); |
1,804,029 | private void initComponents() {<NEW_LINE>// JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents<NEW_LINE>label4 = new JLabel();<NEW_LINE>label1 = new JLabel();<NEW_LINE>triStateCheckBox1 = new FlatTriStateCheckBox();<NEW_LINE>triStateLabel1 = new JLabel();<NEW_LINE>label2 = new JLabel()... | addActionListener(e -> brighterChanged()); |
170,749 | protected Control createDialogArea(Composite parent) {<NEW_LINE>Composite composite = (Composite) super.createDialogArea(parent);<NEW_LINE>Font font = parent.getFont();<NEW_LINE>Label label = new Label(composite, SWT.NONE);<NEW_LINE>label.setText(Messages.DetailFormatterDialog_QualifiedTypeName);<NEW_LINE>GridDataFacto... | swtDefaults().applyTo(enabled); |
1,379,891 | void solveElastic(final TimeStep step) {<NEW_LINE><MASK><NEW_LINE>for (int k = 0; k < m_triadCount; k++) {<NEW_LINE>final Triad triad = m_triadBuffer[k];<NEW_LINE>if ((triad.flags & ParticleType.b2_elasticParticle) != 0) {<NEW_LINE>int a = triad.indexA;<NEW_LINE>int b = triad.indexB;<NEW_LINE>int c = triad.indexC;<NEW_... | float elasticStrength = step.inv_dt * m_elasticStrength; |
588,129 | void updateFontMenuItems() {<NEW_LINE>if (initialFontMenuItemCount < 0)<NEW_LINE>initialFontMenuItemCount = fontMenu.getItemCount();<NEW_LINE>else {<NEW_LINE>// remove old font items<NEW_LINE>for (int i = fontMenu.getItemCount() - 1; i >= initialFontMenuItemCount; i--) fontMenu.remove(i);<NEW_LINE>}<NEW_LINE>// get cur... | currentFont = UIManager.getFont("Label.font"); |
666,578 | public JasperPrint fill(Map<String, Object> parameterValues) throws JRException {<NEW_LINE>// FIXMEBOOK copied from JRBaseFiller<NEW_LINE>if (parameterValues == null) {<NEW_LINE>parameterValues = new HashMap<>();<NEW_LINE>}<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug("Fill " + fillerId + ": filling report")... | .getTimeZoneId(getTimeZone())); |
1,754,781 | public Object instanceCreate() throws IOException, ClassNotFoundException {<NEW_LINE>try {<NEW_LINE>Document doc = XMLUtil.parse(new InputSource(obj.getPrimaryFile().toURL().toString()), true, false, XMLUtil.defaultErrorHandler(), EntityCatalog.getDefault());<NEW_LINE><MASK><NEW_LINE>if (!el.getNodeName().equals("helps... | Element el = doc.getDocumentElement(); |
1,000,847 | public ExpenseType unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ExpenseType expenseType = new ExpenseType();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE... | class).unmarshall(context)); |
305,568 | private void applyDefaultContentTypes(CodegenOperation op) {<NEW_LINE>if (op.bodyParam != null && !op.hasConsumes) {<NEW_LINE>CodegenParameter bodyParam = op.bodyParam;<NEW_LINE>String mediaType;<NEW_LINE>if (bodyParam.isContainer || bodyParam.isModel || bodyParam.isFreeFormObject)<NEW_LINE>mediaType = "application/jso... | op.produces.add(contentType); |
472,163 | private AutowiredArguments resolveArguments(RegisteredBean registeredBean, Method method) {<NEW_LINE>String beanName = registeredBean.getBeanName();<NEW_LINE>Class<?> beanClass = registeredBean.getBeanClass();<NEW_LINE>ConfigurableBeanFactory beanFactory = registeredBean.getBeanFactory();<NEW_LINE>Assert.isInstanceOf(A... | registerDependentBeans(beanFactory, beanName, autowiredBeanNames); |
840,580 | private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>jLabel1 = new javax.swing.JLabel();<NEW_LINE>jScrollPane1 = new javax.swing.JScrollPane();<NEW_LINE>jLabel1.setText(text);<NEW_LINE>filesList.setModel(new javax.swing.AbstractListM... | javax.swing.GroupLayout(this); |
1,222,899 | final GetDomainPermissionsPolicyResult executeGetDomainPermissionsPolicy(GetDomainPermissionsPolicyRequest getDomainPermissionsPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getDomainPermissionsPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
444,778 | private void fillTableRows(File dir, String reqURI, PrintWriter out) {<NEW_LINE>File[] files = dir.listFiles();<NEW_LINE>int fc = 0;<NEW_LINE>Date date;<NEW_LINE>// for each file, output a table row<NEW_LINE>while (fc < files.length) {<NEW_LINE>if (files[fc].isDirectory()) {<NEW_LINE>// it's a directory...make sure it'... | String lastModifiedDateString = date.toString(); |
1,748,851 | ResourceResponse<Document> updateContainerDeletionEntry(short containerId, short accountId, BiConsumer<Document, AtomicBoolean> updateFields) throws DocumentClientException {<NEW_LINE>// Read the existing record<NEW_LINE>String id = CosmosContainerDeletionEntry.generateContainerDeletionEntryId(accountId, containerId);<... | setCondition(doc.getETag()); |
1,112,477 | public ImmutableSetMultimap<String, String> describe(Glob destinationFiles) {<NEW_LINE>ImmutableSetMultimap.Builder<String, String> builder = new ImmutableSetMultimap.Builder<String, String>().put("type", getType()).put("url", repoUrl).put("fetch", fetch).put("push", push).put("primaryBranchMigrationMode", "" + primary... | , Boolean.toString(partialFetch)); |
135,767 | public // to set vars passed up to ClassLoader.definePackage.<NEW_LINE>Package definePackage(String name, Manifest manifest, URL sealBase) throws IllegalArgumentException {<NEW_LINE>Attributes mA = manifest.getMainAttributes();<NEW_LINE>String specTitle = mA.getValue(Name.SPECIFICATION_TITLE);<NEW_LINE>String specVersi... | mA.getValue(Name.IMPLEMENTATION_VENDOR); |
732,471 | private static Span.TimeEvents toTimeEventsProto(TimedEvents<Annotation> annotationTimedEvents, TimedEvents<io.opencensus.trace.MessageEvent> messageEventTimedEvents) {<NEW_LINE>Span.TimeEvents.Builder timeEventsBuilder <MASK><NEW_LINE>timeEventsBuilder.setDroppedAnnotationsCount(annotationTimedEvents.getDroppedEventsC... | = Span.TimeEvents.newBuilder(); |
628,365 | final CreateContactResult executeCreateContact(CreateContactRequest createContactRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createContactRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
1,761,293 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player player = game.getPlayer(source.getControllerId());<NEW_LINE>Spell spell = (Spell) this.getValue("spellCast");<NEW_LINE>if (player == null || spell == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>List<Predicate<Permanent>> predicates = spell.getSpel... | TargetPermanent target = new TargetPermanent(filter); |
602,820 | public static String convertToAlphaNumericFormat(String timeZoneId) {<NEW_LINE>java.util.TimeZone zone = java.util.TimeZone.getTimeZone(timeZoneId);<NEW_LINE>int offset = zone.getRawOffset() / 1000;<NEW_LINE>int hour = offset / 3600;<NEW_LINE>int min = Math.abs(<MASK><NEW_LINE>DateFormat dfm = new SimpleDateFormat("z")... | (offset % 3600) / 60); |
155,775 | public DelimitedLineTokenizer build() {<NEW_LINE>Assert.notNull(this.fieldSetFactory, "A FieldSetFactory is required.");<NEW_LINE>Assert.notEmpty(this.names, "A list of field names is required");<NEW_LINE>DelimitedLineTokenizer tokenizer = new DelimitedLineTokenizer();<NEW_LINE>tokenizer.setNames(this.names.toArray(new... | this.includedFields.size()); |
1,341,048 | public LaunchTemplateElasticInferenceAcceleratorResponse unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>LaunchTemplateElasticInferenceAcceleratorResponse launchTemplateElasticInferenceAcceleratorResponse = new LaunchTemplateElasticInferenceAcceleratorResponse();<NEW_LINE>int originalDepth = con... | ().unmarshall(context)); |
1,846,670 | public Request<ListStacksRequest> marshall(ListStacksRequest listStacksRequest) {<NEW_LINE>if (listStacksRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<ListStacksRequest> request = new DefaultRequest<ListStacksRequest>(listStacksRequest,... | request.addParameter("Action", "ListStacks"); |
580,986 | public ApplicationType createApplicationTypeFor(Application app, Jvm jvm, String mainClass) {<NEW_LINE>if (isNetBeans(jvm, mainClass)) {<NEW_LINE>String branding = getBranding(jvm);<NEW_LINE>if (VISUALVM_ID.equals(branding)) {<NEW_LINE>return new VisualVMApplicationType(app);<NEW_LINE>}<NEW_LINE>Set<<MASK><NEW_LINE>for... | String> clusters = computeClusters(jvm); |
1,150,838 | public DataFetcher<Iterable<Object>> stopsByBbox() {<NEW_LINE>return environment -> {<NEW_LINE>var args = new LegacyGraphQLTypes.LegacyGraphQLQueryTypeStopsByBboxArgs(environment.getArguments());<NEW_LINE>Envelope envelope = new Envelope(new Coordinate(args.getLegacyGraphQLMinLon(), args.getLegacyGraphQLMinLat()), new ... | collect(Collectors.toList()); |
116,319 | public void renderHTML(PrintWriter writer, Map<String, String> params) {<NEW_LINE>try {<NEW_LINE>double jvmUpTimeInSeconds = ManagementFactory.getRuntimeMXBean().getUptime() / 1000.0;<NEW_LINE>String version = getVersion();<NEW_LINE>writer.print("<div>");<NEW_LINE>writer.print("<p> Version: " + version + ", Uptime: " +... | LOG.error("Exception in getting info", e); |
1,460,371 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player player = game.getPlayer(source.getControllerId());<NEW_LINE>if (player == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Set<String> toSelect = new HashSet<>();<NEW_LINE>while (toSelect.size() < 3) {<NEW_LINE>toSelect.add(RandomUtil.randomFromCollect... | cards = new HashSet<>(); |
48,104 | protected Node[] createNodes(Object subbean) {<NEW_LINE>try {<NEW_LINE>if (subbean instanceof BeanContextSupport) {<NEW_LINE>BeanContextSupport bcs = (BeanContextSupport) subbean;<NEW_LINE>if (bean.contains(bcs.getBeanContextPeer()) && (bcs != bcs.getBeanContextPeer())) {<NEW_LINE>// sometimes a BeanContextSupport occu... | return new Node[] { n }; |
1,347,249 | protected void checkIatTime(Long iatSeconds, Date currentDate, long lSkewSeconds) throws OAuth20Exception {<NEW_LINE><MASK><NEW_LINE>if (iatSeconds == null) {<NEW_LINE>if (!bJwtIatRequired)<NEW_LINE>// IAT is optional<NEW_LINE>return;<NEW_LINE>// If JWT has specified the maxJwtLifetimeMinutesAllowed attribute<NEW_LINE>... | boolean bJwtIatRequired = _jwtGrantTypeHandlerConfig.isJwtIatRequired(); |
1,544,298 | public CreateEntityRecognizerResult createEntityRecognizer(CreateEntityRecognizerRequest createEntityRecognizerRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createEntityRecognizerRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics ... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
892,792 | public int run(final String[] strings) throws Exception {<NEW_LINE>LOGGER.info("Ensuring table {} exists", store.getTableName());<NEW_LINE>TableUtils.ensureTableExists(store);<NEW_LINE>// Hadoop configuration<NEW_LINE>final Configuration conf = getConf();<NEW_LINE>final FileSystem <MASK><NEW_LINE>checkHdfsDirectories(f... | fs = FileSystem.get(conf); |
1,798,085 | Expr atom() {<NEW_LINE>Tok tok = peek();<NEW_LINE>switch(tok.sym) {<NEW_LINE>case LPAREN:<NEW_LINE>move();<NEW_LINE>Expr expr = expr();<NEW_LINE>match(Sym.RPAREN);<NEW_LINE>return expr;<NEW_LINE>case ID:<NEW_LINE>move();<NEW_LINE>return new Id(tok.value());<NEW_LINE>case STR:<NEW_LINE>move();<NEW_LINE>return new Const(... | sym, tok.value()); |
233,055 | final GetQueueResult executeGetQueue(GetQueueRequest getQueueRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getQueueRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>R... | false), new GetQueueResultJsonUnmarshaller()); |
551,385 | public void scan() {<NEW_LINE>if (myLocalFileSystemRefreshWorker != null) {<NEW_LINE>myLocalFileSystemRefreshWorker.scan();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>NewVirtualFile root = myRefreshQueue.pullFirst();<NEW_LINE>NewVirtualFileSystem fs = root.getFileSystem();<NEW_LINE>if (root.isDirectory()) {<NEW_LINE><MASK><N... | fs = PersistentFS.replaceWithNativeFS(fs); |
678,896 | void restoreSessions() {<NEW_LINE>if (systemContext.isLocalCacheType()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>log.debug("[{}] Restoring sessions from cache", deviceId);<NEW_LINE>DeviceSessionsCacheEntry sessionsDump = null;<NEW_LINE>try {<NEW_LINE>sessionsDump = DeviceSessionsCacheEntry.parseFrom(systemContext.getDevi... | ().get(deviceId)); |
1,389,861 | public void deleteMessagesId(Integer id) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'id' is set<NEW_LINE>if (id == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'id' when calling deleteMessagesId");<NEW_LINE>}<NEW_LINE>// creat... | localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); |
740,479 | public List<? extends Resource> children() throws IOException, HttpException, NotAuthorizedException, BadRequestException {<NEW_LINE>List<Resource> children = cache.get(this);<NEW_LINE>if (children == null) {<NEW_LINE>children = new ArrayList<Resource>();<NEW_LINE>String thisHref = href();<NEW_LINE>if (log.isTraceEnabl... | doPropFind(encodedUrl(), 1); |
841,438 | public static DescribeImageLibResponse unmarshall(DescribeImageLibResponse describeImageLibResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeImageLibResponse.setRequestId(_ctx.stringValue("DescribeImageLibResponse.RequestId"));<NEW_LINE>describeImageLibResponse.setTotalCount(_ctx.integerValue("DescribeImageLibResp... | ("DescribeImageLibResponse.ImageLibList[" + i + "].Scene")); |
1,520,702 | static void make_encode_method_for_exported(ClassWriter cw, String className, int arity) {<NEW_LINE>MethodVisitor mv = cw.visitMethod(ACC_PUBLIC, "encode", "(" + Type.getDescriptor(EOutputStream.class) + ")V", null, null);<NEW_LINE>mv.visitCode();<NEW_LINE>mv.visitVarInsn(ALOAD, 1);<NEW_LINE>mv.visitVarInsn(ALOAD, 0);<... | GETFIELD, className, "function_name", EATOM_DESC); |
649,961 | private void readPatterns(Reader r) throws IOException {<NEW_LINE>BufferedReader buf = new BufferedReader(r);<NEW_LINE>for (; ; ) {<NEW_LINE>String line = buf.readLine();<NEW_LINE>if (line == null) {<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>line = line.trim();<NEW_LINE>if (line.length() == 0 || line.startsWith("#")) {<NEW_L... | line = line.substring(10); |
1,702,767 | final DescribeACLsResult executeDescribeACLs(DescribeACLsRequest describeACLsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeACLsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec... | (super.beforeMarshalling(describeACLsRequest)); |
1,772,918 | Mono<Response<Void>> deleteWithResponse(Boolean recursive, DataLakeRequestConditions requestConditions, Context context) {<NEW_LINE>requestConditions = requestConditions == <MASK><NEW_LINE>LeaseAccessConditions lac = new LeaseAccessConditions().setLeaseId(requestConditions.getLeaseId());<NEW_LINE>ModifiedAccessConditio... | null ? new DataLakeRequestConditions() : requestConditions; |
247,087 | private static void addDeployParamLibrariesForModule(StringBuilder sb, String moduleId, String deploymentLibs, ServiceLocator habitat) {<NEW_LINE>if (moduleId.indexOf('#') != -1) {<NEW_LINE>moduleId = moduleId.substring(0, moduleId.indexOf('#'));<NEW_LINE>}<NEW_LINE>if (deploymentLibs == null) {<NEW_LINE>ApplicationInf... | append(u.getPath()); |
139,687 | private OsAccountUpdateResult updateOsAccountCore(OsAccount osAccount, String address, String loginName, CaseDbTransaction trans) throws TskCoreException {<NEW_LINE>OsAccountUpdateStatus updateStatusCode = OsAccountUpdateStatus.NO_CHANGE;<NEW_LINE>OsAccount updatedAccount;<NEW_LINE>try {<NEW_LINE>CaseDbConnection conne... | osAccount.getId(), connection); |
887,077 | public static void convolve(Kernel2D_F32 kernel, GrayF32 src, GrayF32 dst, ImageBorder_F32 bsrc) {<NEW_LINE>dst.reshape(src.width, src.height);<NEW_LINE>// if( BOverrideConvolveImageNormalized.invokeNativeConvolve(kernel,src,dst) )<NEW_LINE>// return;<NEW_LINE>bsrc.setImage(src);<NEW_LINE>if (kernel.width >= src.width ... | kernel, src, dst, bsrc); |
222,829 | private long parseSize(String string) {<NEW_LINE>// See https://github.com/qbittorrent/qBittorrent/wiki<NEW_LINE>if (string.equals("Unknown"))<NEW_LINE>return -1;<NEW_LINE>// Sizes are given in "1,023.3 MiB"-like string format<NEW_LINE>String[] parts = string.split(" ");<NEW_LINE>double number;<NEW_LINE>try {<NEW_LINE>... | number * 1024L * 1024L * 1024L); |
773,603 | protected void parse() {<NEW_LINE>showTabNames = getBoolean(SHOW_TEXT_ICONS, true);<NEW_LINE>processImages = getInt(PROCESS_IMAGES, 0);<NEW_LINE>// No default<NEW_LINE>configLocale = getString(LOCALE, null);<NEW_LINE>locale = getString(LOCALE, DEFAULT_LOCALE);<NEW_LINE>useSystemsLocaleForFormat = getBoolean(USE_SYSTEMS... | warnOnTabDoubleClick = getBoolean(WARN_ON_TAB_DOUBLE_CLICK_OPTION, true); |
1,205,295 | public static String summarizeTraceEvents(TraceEvent[] events) {<NEW_LINE>Pair<Long, Map<String, OpStats>> p = aggregateTraceEvents(events);<NEW_LINE>final Map<String, OpStats> stats = p.getSecond();<NEW_LINE>long allOpsUs = p.getFirst();<NEW_LINE>// Summarize by op type:<NEW_LINE>List<String> l = new ArrayList<>(stats... | .minNumber().longValue(); |
1,608,876 | public static ListFlowJobResponse unmarshall(ListFlowJobResponse listFlowJobResponse, UnmarshallerContext _ctx) {<NEW_LINE>listFlowJobResponse.setRequestId(_ctx.stringValue("ListFlowJobResponse.RequestId"));<NEW_LINE>listFlowJobResponse.setPageNumber(_ctx.integerValue("ListFlowJobResponse.PageNumber"));<NEW_LINE>listFl... | ("ListFlowJobResponse.JobList[" + i + "].ParamConf")); |
165,832 | public TimerCanceledEventAttributes unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>TimerCanceledEventAttributes timerCanceledEventAttributes = new TimerCanceledEventAttributes();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentPar... | JsonToken token = context.getCurrentToken(); |
1,159,567 | public void updatePosition(PlaybackPositionEvent event) {<NEW_LINE>if (controller == null || txtvPosition == null || txtvLength == null || sbPosition == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>TimeSpeedConverter converter = new TimeSpeedConverter(controller.getCurrentPlaybackSpeedMultiplier());<NEW_LINE>int curren... | + Converter.getDurationStringLong(currentPosition)); |
1,661,812 | public VehicleRentalVehicle mapFreeVehicleStatus(GBFSBike vehicle) {<NEW_LINE>if ((vehicle.getStationId() == null || vehicle.getStationId().isBlank()) && vehicle.getLon() != null && vehicle.getLat() != null) {<NEW_LINE>VehicleRentalVehicle rentalVehicle = new VehicleRentalVehicle();<NEW_LINE>rentalVehicle.id = new Feed... | NonLocalizedString(vehicle.getBikeId()); |
152,829 | public Response conformance() throws IOException {<NEW_LINE>setUpPostConstruct();<NEW_LINE>Builder request = getRequest(<MASK><NEW_LINE>IRestfulResponse response = request.build().getResponse();<NEW_LINE>response.addHeader(Constants.HEADER_CORS_ALLOW_ORIGIN, "*");<NEW_LINE>IBaseResource conformance;<NEW_LINE>FhirVersio... | RequestTypeEnum.OPTIONS, RestOperationTypeEnum.METADATA); |
935,704 | public static Message.CompareType parseCompareType(Predicate predicate, BiPredicate<?, ?> biPredicate) {<NEW_LINE>if (predicate instanceof RegexPredicate) {<NEW_LINE>return Message.CompareType.REGEX;<NEW_LINE>} else if (predicate instanceof StringPredicate) {<NEW_LINE>MatchType matchType = StringPredicate.class.<MASK><... | cast(predicate).getMatchType(); |
90,829 | public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = "myrate,myqtyrate".split(",");<NEW_LINE>String epl = "@name('s0') select RATE(longPrimitive) as myrate, RATE(longPrimitive, intPrimitive) as myqtyrate from SupportBean#length(3)";<NEW_LINE>env.compileDeploy(epl).addListener("s0");<NEW_LINE>sendEven... | sendEvent(env, 1200, 0); |
1,459,477 | private static void writeEntry(String name, Set<String> written, ZipOutputStream zos, File f) throws IOException, FileNotFoundException {<NEW_LINE>if (!written.add(name)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int idx = name.lastIndexOf('/', name.length() - 2);<NEW_LINE>if (idx != -1) {<NEW_LINE>writeEntry(name.substri... | setSize(f.length()); |
541,165 | public void parse(String webAppRoot, String xpath, XMLParseHandler handler, XMLNodeType... xmlNodeTypes) {<NEW_LINE>// 1. select descriptor collector<NEW_LINE>DescriptorCollector dc = selectDescriptorCollector(xpath);<NEW_LINE>// 2. load descriptor files<NEW_LINE>this.load(webAppRoot);<NEW_LINE>// 3. select node list<N... | = new HashSet<Short>(); |
893,238 | Connection compute() {<NEW_LINE>Connection connection;<NEW_LINE>try {<NEW_LINE>connection = (builder.addresses == null) ? builder.connectionFactory.newConnection() : builder.<MASK><NEW_LINE>declareQueueIfMissing(connection);<NEW_LINE>} catch (IOException e) {<NEW_LINE>throw new UncheckedIOException("Unable to establish... | connectionFactory.newConnection(builder.addresses); |
1,207,856 | private Parameter bodyParameter(RequestParameter source, ModelNamesRegistry namesRegistry) {<NEW_LINE>Model schema = toSchema(source, namesRegistry);<NEW_LINE>if (schema != null && source.getScalarExample() != null) {<NEW_LINE>schema.setExample(String.valueOf(source.getScalarExample().getValue()));<NEW_LINE>}<NEW_LINE>... | (example.getValue())); |
29,651 | public BaseRowTypeInfo buildOutRowTypeInfo(List<FieldInfo> sideJoinFieldInfo, HashBasedTable<String, String, String> mappingTable) {<NEW_LINE>// TypeInformation[] sideOutTypes = new TypeInformation[sideJoinFieldInfo.size()];<NEW_LINE>LogicalType[] sideOutTypes = new <MASK><NEW_LINE>String[] sideOutNames = new String[si... | LogicalType[sideJoinFieldInfo.size()]; |
971,962 | public JSONObject jsonSerialize() {<NEW_LINE>JSONObject json = new JSONObject();<NEW_LINE>JsonUtil.<MASK><NEW_LINE>JsonUtil.putIfNotNull(json, KEY_SCOPE, mScope);<NEW_LINE>if (mConfig != null) {<NEW_LINE>JsonUtil.put(json, KEY_CONFIG, mConfig.toJson());<NEW_LINE>}<NEW_LINE>if (mAuthorizationException != null) {<NEW_LIN... | putIfNotNull(json, KEY_REFRESH_TOKEN, mRefreshToken); |
937,958 | public HttpClient build(AdapterHttpClientConfig adapterConfig) {<NEW_LINE>// disable cookie cache as we don't want sticky sessions for load balancing<NEW_LINE>disableCookieCache(true);<NEW_LINE>String truststorePath = adapterConfig.getTruststore();<NEW_LINE>if (truststorePath != null) {<NEW_LINE><MASK><NEW_LINE>String ... | truststorePath = EnvUtil.replace(truststorePath); |
1,067,618 | public DimensionContribution unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DimensionContribution dimensionContribution = new DimensionContribution();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token =... | String currentParentElement = context.getCurrentParentElement(); |
693,074 | private void _load() {<NEW_LINE>World w;<NEW_LINE>try {<NEW_LINE>FileInputStream fis = new FileInputStream(currTest.getFilename());<NEW_LINE>w = currTest.getDeserializer().deserializeWorld(fis);<NEW_LINE>fis.close();<NEW_LINE>} catch (FileNotFoundException e) {<NEW_LINE><MASK><NEW_LINE>if (errorHandler != null)<NEW_LIN... | log.error("File not found error while loading", e); |
1,828,664 | public void execute(@Named(IServiceConstants.ACTIVE_PART) MPart part, @Named(IServiceConstants.ACTIVE_SHELL) Shell shell, @Named(E4Workbench.INSTANCE_LOCATION) Location instanceLocation) {<NEW_LINE>FileDialog dialog = new FileDialog(shell, SWT.SAVE);<NEW_LINE>dialog.setOverwrite(true);<NEW_LINE>// $NON-NLS-1$<NEW_LINE>... | String path = dialog.open(); |
920,826 | final CreateSipMediaApplicationCallResult executeCreateSipMediaApplicationCall(CreateSipMediaApplicationCallRequest createSipMediaApplicationCallRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createSipMediaApplicationCallRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC... | false), new CreateSipMediaApplicationCallResultJsonUnmarshaller()); |
509,774 | protected IRODSFileSystem configure(final IRODSFileSystem client) {<NEW_LINE>final SettableJargonProperties properties = new SettableJargonProperties(client.getJargonProperties());<NEW_LINE>properties.setEncoding(host.getEncoding());<NEW_LINE>final <MASK><NEW_LINE>final int timeout = ConnectionTimeoutFactory.get(prefer... | PreferencesReader preferences = new HostPreferences(host); |
497,049 | private void serveSwaggerUiHtml(ServletRequestDetails theRequestDetails, HttpServletResponse theResponse) throws IOException {<NEW_LINE>CapabilityStatement cs = getCapabilityStatement(theRequestDetails);<NEW_LINE>String baseUrl = removeTrailingSlash(cs.getImplementation().getUrl());<NEW_LINE>theResponse.setStatus(200);... | getValue().intValue()); |
215,548 | public void translate(final ITranslationEnvironment environment, final IInstruction instruction, final List<ReilInstruction> instructions) throws InternalTranslationException {<NEW_LINE>TranslationHelpers.checkTranslationArguments(<MASK><NEW_LINE>final List<? extends IOperandTree> operands = instruction.getOperands();<... | environment, instruction, instructions, "bltz"); |
33,642 | SetBuilderImpl<E> add(E e) {<NEW_LINE>checkNotNull(e);<NEW_LINE><MASK><NEW_LINE>int i0 = Hashing.smear(eHash);<NEW_LINE>int mask = hashTable.length - 1;<NEW_LINE>for (int i = i0; i - i0 < maxRunBeforeFallback; i++) {<NEW_LINE>int index = i & mask;<NEW_LINE>Object tableEntry = hashTable[index];<NEW_LINE>if (tableEntry =... | int eHash = e.hashCode(); |
1,195,148 | public void renderSlotHighlights(@Nonnull IoMode mode) {<NEW_LINE>Map<Slot, Point> slotLocations = getInventory().getSlotLocations();<NEW_LINE>for (Slot slot : slotLocations.keySet()) {<NEW_LINE>if (slot instanceof EnderSlot) {<NEW_LINE>Type type = ((<MASK><NEW_LINE>if (mode == IoMode.PULL) {<NEW_LINE>if (type == Ender... | EnderSlot) slot).getType(); |
1,049,088 | public // The caller need to hold the table write lock<NEW_LINE>void modifyTableReplicaAllocation(Database db, OlapTable table, Map<String, String> properties) throws UserException {<NEW_LINE>Preconditions.checkArgument(table.isWriteLockHeldByCurrentThread());<NEW_LINE>String defaultReplicationNumName = "default." + Pr... | PropertyAnalyzer.analyzeReplicaAllocation(properties, ""); |
254,903 | protected void testClassLevelRolesAllowedUserInRole(final String baseUri, boolean userRoleFromAppBnd) throws Exception {<NEW_LINE>LOG.entering(clz, "entered testClassLevelRolesAllowedUserInRole");<NEW_LINE>String url = baseUri + "/ClassRolesAllowed";<NEW_LINE>// create the resource instance to interact with<NEW_LINE>LO... | LOG.exiting(clz, "exiting testClassLevelRolesAllowedUserInRole exiting"); |
572,668 | public Composite createPreferenceComposite(Composite parent, final IBuildParticipantWorkingCopy participant) {<NEW_LINE>Composite master = new Composite(parent, SWT.NONE);<NEW_LINE>master.setLayout(GridLayoutFactory.fillDefaults().create());<NEW_LINE>GridDataFactory fillHoriz = GridDataFactory.fillDefaults().grab(true,... | severity.label(), severity); |
1,026,314 | public MessageBody unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>MessageBody messageBody = new MessageBody();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE... | class).unmarshall(context)); |
758,084 | public static void checkMissingRBACInfo() {<NEW_LINE>PolicyMatcher matcher = new PolicyMatcher();<NEW_LINE>List<String> missingInPermission = new ArrayList<>();<NEW_LINE>List<String> missingInRole = new ArrayList<>();<NEW_LINE>APIMessage.apiMessageClasses.forEach(clz -> {<NEW_LINE>if (clz.isAnnotationPresent(Deprecated... | match(ac, clzName))); |
419,773 | final SetUserPoolMfaConfigResult executeSetUserPoolMfaConfig(SetUserPoolMfaConfigRequest setUserPoolMfaConfigRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(setUserPoolMfaConfigRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | invoke(request, responseHandler, executionContext); |
1,228,277 | public RestChannelConsumer prepareRequest(final RestRequest request, final NodeClient client) throws IOException {<NEW_LINE>if (request.getRestApiVersion() == RestApiVersion.V_7 && request.hasParam(INCLUDE_TYPE_NAME_PARAMETER)) {<NEW_LINE>deprecationLogger.compatibleCritical("get_index_template_include_type_name", TYPE... | templateExists || implicitAll) ? OK : NOT_FOUND; |
334,674 | public void addAdvancedMsgListener(MethodCall call, final MethodChannel.Result result) {<NEW_LINE>final String listenerUuid = CommonUtil.getParam(call, result, "listenerUuid");<NEW_LINE>listenerUuidList.add(listenerUuid);<NEW_LINE>final V2TIMAdvancedMsgListener advacedMessageListener = new V2TIMAdvancedMsgListener() {<... | makeAddAdvancedMsgListenerEventData("onRecvMessageRevoked", msgID, listenerUuid); |
1,045,709 | public void generalHighlightRun(final Spannable spannable) {<NEW_LINE>final String text = spannable.toString();<NEW_LINE>_highlightingFactorBasedOnFilesize = Math.max(1, Math.min(Math.max(text.length() - 9000, 10000) / 10000, 4));<NEW_LINE>_profiler.restart("General Highlighter");<NEW_LINE>if (_preCalcTabWidth > 0) {<N... | spannable, Patterns.WEB_URL, 0xff1ea3fd); |
805,314 | public static <T extends ImageGray<T>> boolean isInside(T ii, double X, double Y, int radiusRegions, double kernelSize, double scale, double c, double s) {<NEW_LINE>int c_x = (int) Math.round(X);<NEW_LINE>int c_y = (int) Math.round(Y);<NEW_LINE>int kernelSizeInt = (int) Math.ceil(kernelSize * scale);<NEW_LINE>int kerne... | / 2 + (kernelSizeInt % 2); |
1,439,844 | public void validateSystemTagInCreateMessage(APICreateMessage cmsg) {<NEW_LINE><MASK><NEW_LINE>int hostnameCount = 0;<NEW_LINE>for (String sysTag : msg.getSystemTags()) {<NEW_LINE>if (VmSystemTags.HOSTNAME.isMatch(sysTag)) {<NEW_LINE>if (++hostnameCount > 1) {<NEW_LINE>throw new ApiMessageInterceptionException(argerr("... | final NewVmInstanceMessage msg = (NewVmInstanceMessage) cmsg; |
625,489 | private void parseBytes(byte[] weightBytes) {<NEW_LINE>// 10 ~ 99<NEW_LINE>int bodyage = (int) (weightBytes[17]);<NEW_LINE>// kg<NEW_LINE>float weight = (float) (((weightBytes[2] & 0xFF) << 8) | (weightBytes[3] & 0xFF)) / 100.0f;<NEW_LINE>// %<NEW_LINE>float fat = (float) (((weightBytes[4] & 0xFF) << 8) | (weightBytes[... | 13] & 0xFF)) / 10.0f; |
1,544,159 | public static void serialize(final DateTime 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.writeAscii... | buf[pos + 20] = '.'; |
1,727,367 | public boolean isRelocationSourceOf(ShardRouting other) {<NEW_LINE>boolean b = this.allocationId != null && other.allocationId != null && other.state == ShardRoutingState.INITIALIZING && other.allocationId.getId().equals(this.allocationId.getRelocationId());<NEW_LINE>assert b == false || this.state == ShardRoutingState... | + this + "], other [" + other + "]"; |
1,626,886 | /*<NEW_LINE>public Map<RPCCall, Float> calculateFlightProbabilities(List<RPCCall> calls) {<NEW_LINE>Collections.sort(calls,timeoutComp);<NEW_LINE>long[] rtts = sortedRtts;<NEW_LINE>Map<RPCCall, Float> result = new HashMap<>(calls.size());<NEW_LINE><NEW_LINE>int prevRttIdx = 0;<NEW_LINE><NEW_LINE>for(RPCCall c : calls)<... | bins, 1.0f / bins.length); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.