idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
651,032 | private Deployment createBaseDeployment() {<NEW_LINE>var is = this.getClass().getResourceAsStream("/base-keycloak-deployment.yaml");<NEW_LINE>Deployment baseDeployment = Serialization.unmarshal(is, Deployment.class);<NEW_LINE>baseDeployment.getMetadata().setName(getName());<NEW_LINE>baseDeployment.getMetadata().setName... | ).setMatchLabels(Constants.DEFAULT_LABELS); |
1,545,477 | private static // multipathB.<NEW_LINE>boolean linearPathOverlapsLinearPath_(MultiPath multipathA, MultiPath multipathB, double tolerance) {<NEW_LINE>int dim = linearPathIntersectsLinearPathMaxDim_(multipathA, multipathB, tolerance, null);<NEW_LINE>if (dim < 1)<NEW_LINE>return false;<NEW_LINE>Envelope2D env_a = new Env... | multipathB, multipathA, tolerance, false); |
646,828 | private ApiResult pollResult(Response response) throws IOException {<NEW_LINE>if (!info.needPoll) {<NEW_LINE>throw new ApiException(String.format("[Internal Error] the api[%s] is not an async API but" + " the server returns 201 status code", action.getClass().getSimpleName()));<NEW_LINE>}<NEW_LINE>Map body = gson.fromJ... | string(), LinkedHashMap.class); |
1,722,896 | final DescribeNatGatewaysResult executeDescribeNatGateways(DescribeNatGatewaysRequest describeNatGatewaysRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeNatGatewaysRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
1,291,058 | protected void consumeTypeParameter1WithExtendsAndBounds() {<NEW_LINE>// TypeParameter1 ::= TypeParameterHeader 'extends' ReferenceType AdditionalBoundList1<NEW_LINE>int additionalBoundsLength = this.genericsLengthStack[this.genericsLengthPtr--];<NEW_LINE>TypeReference[] bounds = new TypeReference[additionalBoundsLengt... | 1, bounds, 0, additionalBoundsLength); |
1,325,282 | protected void loadFromModelData(TFTableModelClassificationModelData modelData, TableSchema modelSchema) {<NEW_LINE>Params meta = modelData.getMeta();<NEW_LINE>String tfOutputSignatureDef = meta.get(TFModelDataConverterUtils.TF_OUTPUT_SIGNATURE_DEF);<NEW_LINE>// TypeInformation<?> tfOutputSignatureType = meta.get(TFMod... | .get(HasInferBatchSizeDefaultAs256.INFER_BATCH_SIZE)); |
937,358 | private void bondAction(JSONArray args, CallbackContext callbackContext) {<NEW_LINE>if (!isBondReceiverRegistered) {<NEW_LINE>cordova.getActivity().registerReceiver(mBondReceiver, new IntentFilter(BluetoothDevice.ACTION_BOND_STATE_CHANGED));<NEW_LINE>isBondReceiverRegistered = true;<NEW_LINE>}<NEW_LINE>if (isNotInitial... | CallbackContext) bonds.get(address); |
438,428 | protected Map<String, JsonRpcMethod> create() {<NEW_LINE>final MutableBlockchain blockchain = context.getBlockchain();<NEW_LINE>final WorldStateArchive worldStateArchive = context.getWorldStateArchive();<NEW_LINE>final BlockchainQueries blockchainQueries = new BlockchainQueries(blockchain, worldStateArchive);<NEW_LINE>... | readOnlyValidatorProvider = createValidatorProvider(context, blockchain); |
396,222 | final DisassociateSubnetCidrBlockResult executeDisassociateSubnetCidrBlock(DisassociateSubnetCidrBlockRequest disassociateSubnetCidrBlockRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(disassociateSubnetCidrBlockRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get... | endClientExecution(awsRequestMetrics, request, response); |
835,615 | protected Object validateUnion(DataElement element, UnionDataSchema schema, Object object) {<NEW_LINE>if (object == Data.NULL) {<NEW_LINE>if (schema.getTypeByMemberKey(DataSchemaConstants.NULL_TYPE) == null) {<NEW_LINE>addMessage(element, "null is not a member type of union %1$s", schema);<NEW_LINE>}<NEW_LINE>} else if... | validate(memberElement, memberSchema, value); |
141,098 | CompilationSupport validateAttributes() throws RuleErrorException {<NEW_LINE>for (PathFragment absoluteInclude : Iterables.filter(attributes.includes().toList(), PathFragment::isAbsolute)) {<NEW_LINE>ruleContext.attributeError("includes", String.format(ABSOLUTE_INCLUDES_PATH_FORMAT, absoluteInclude));<NEW_LINE>}<NEW_LI... | .format(FILE_IN_SRCS_AND_HDRS_WARNING_FORMAT, path)); |
755,703 | public static void sharpenInner8(GrayU8 input, GrayU8 output, int minValue, int maxValue) {<NEW_LINE>// CONCURRENT_BELOW BoofConcurrency.loopFor(1,input.height-1,y->{<NEW_LINE>for (int y = 1; y < input.height - 1; y++) {<NEW_LINE>int indexIn = input.startIndex + y * input.stride + 1;<NEW_LINE>int indexOut = output.star... | [indexOut] = (byte) result; |
467,328 | public AttachmentItem unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AwsJsonReader reader = context.getReader();<NEW_LINE>if (!reader.isContainer()) {<NEW_LINE>reader.skipValue();<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>AttachmentItem attachmentItem = new AttachmentItem();<NEW_LINE>reader.beg... | ().unmarshall(context)); |
528,212 | public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {<NEW_LINE>create = view.findViewById(R.id.fragment_backup_create);<NEW_LINE>folder = view.findViewById(R.id.fragment_backup_folder);<NEW_LINE>verify = view.findViewById(R.id.fragment_backup_verify);<NEW_LINE>toggle = view.findViewById(R... | findViewById(R.id.fragment_backup_progress_summary); |
1,230,672 | public void onPackratCheckStatus() {<NEW_LINE>packratServer_.getPackratActions(new ServerRequestCallback<PackratActions>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onResponseReceived(PackratActions actions) {<NEW_LINE>if (actions.getRestoreActions().length() > 0 && actions.getSnapshotActions().length() > 0) ... | ), actions.getSnapshotActions()); |
1,005,335 | public List<ConfigInfo> findAllConfigInfo4Export(final String dataId, final String group, final String tenant, final String appName, final List<Long> ids) {<NEW_LINE>String tenantTmp = StringUtils.isBlank(tenant) ? StringUtils.EMPTY : tenant;<NEW_LINE>StringBuilder where = new StringBuilder(" where ");<NEW_LINE>List<Ob... | (ids.get(i)); |
777,718 | protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_main);<NEW_LINE>// get references to ui elements<NEW_LINE>mTileCachePreviewLayout = findViewById(R.id.mapPreviewLayout);<NEW_LINE>mPreviewMask = findViewById(R.id.previewMask);<NEW... | findViewById(R.id.previewMapView); |
1,217,597 | protected void encodeScript(FacesContext context, InputTextarea inputTextarea) throws IOException {<NEW_LINE><MASK><NEW_LINE>String counter = inputTextarea.getCounter();<NEW_LINE>WidgetBuilder wb = getWidgetBuilder(context);<NEW_LINE>wb.init("InputTextarea", inputTextarea).attr("autoResize", autoResize).attr("maxlength... | boolean autoResize = inputTextarea.isAutoResize(); |
1,214,498 | private void insert(long offset, ByteArraySegment data) {<NEW_LINE>if (this.storageCacheDisabled) {<NEW_LINE>log.debug("{}: Not inserting (Offset = {}, Length = {}) due to Storage Cache disabled.", this.traceObjectId, offset, data.getLength());<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>log.debug("{}: Insert (Offset = {}, Le... | this.metadata.getStorageLength()); |
1,719,517 | private void writeBlobMultipart(BlobInfo blobInfo, byte[] buffer, int offset, int blobSize, boolean failIfAlreadyExists) throws IOException {<NEW_LINE>assert blobSize <= getLargeBlobThresholdInBytes() : "large blob uploads should use the resumable upload method";<NEW_LINE>try {<NEW_LINE>final Storage.BlobTargetOption[]... | , offset, blobSize, targetOptions)); |
1,792,861 | private <K, V> int parseMapField(T message, byte[] data, int position, int limit, int bufferPosition, long fieldOffset, Registers registers) throws IOException {<NEW_LINE>final sun.misc.Unsafe unsafe = UNSAFE;<NEW_LINE>Object mapDefaultEntry = getMapFieldDefaultEntry(bufferPosition);<NEW_LINE>Object mapField = unsafe.g... | mapFieldSchema.mergeFrom(mapField, oldMapField); |
595,574 | private void writeNodesBulkImport(Reporter reporter, ExportConfig config, ExportFileManager writer, Map<Iterable<Label>, List<Node>> objectNode) {<NEW_LINE>objectNode.entrySet().forEach(entrySet -> {<NEW_LINE>Set<String> headerNode = generateHeaderNodeBulkImport(entrySet);<NEW_LINE>List<List<String>> rows = entrySet.ge... | collect(Collectors.toList()); |
1,273,817 | private BType checkType(BLangExpression expr, BConstantSymbol constantSymbol, Object value, BType type, Location pos, SymbolEnv env) {<NEW_LINE>if (expr != null && expr.getKind() == NodeKind.SIMPLE_VARIABLE_REF && (((BLangSimpleVarRef) expr).symbol.type.getKind() == TypeKind.FINITE || ((BLangSimpleVarRef) expr).symbol.... | , symTable.intType, pos)); |
1,290,706 | private void addVariableToFunction(Node function, @Nullable Node lhs, Node value) {<NEW_LINE>checkState(value.getParent() == null);<NEW_LINE>checkState(lhs == null || <MASK><NEW_LINE>Node block = NodeUtil.getFunctionBody(function);<NEW_LINE>Node stmt;<NEW_LINE>if (lhs != null) {<NEW_LINE>stmt = NodeUtil.newVarNode(lhs,... | lhs.getParent() == null); |
642,497 | private // recompute ourselves to be safe:<NEW_LINE>void add(CharsRef input, int numInputWords, CharsRef output, int numOutputWords, boolean includeOrig) {<NEW_LINE>// first convert to UTF-8<NEW_LINE>if (numInputWords <= 0) {<NEW_LINE>throw new IllegalArgumentException("numInputWords must be > 0 (got " + numInputWords ... | .deepCopyOf(input), e); |
1,405,964 | public void doDelete(File file) throws IOException {<NEW_LINE>Subversion.LOG.log(Level.FINE, "doDelete {0}", file);<NEW_LINE>if (!SvnUtils.isPartOfSubversionMetadata(file)) {<NEW_LINE>try {<NEW_LINE>SvnClient client = Subversion.getInstance().getClient(false);<NEW_LINE>try {<NEW_LINE>// delete all files recursively<NEW... | [] { file }, true); |
1,716,820 | public static String decodeCustomVersionNumber(String version_data, String version_scheme) {<NEW_LINE>if (version_scheme == BTPeerIDByteDecoderDefinitions.VER_BLOCK) {<NEW_LINE>return version_data;<NEW_LINE>} else if (version_scheme == BTPeerIDByteDecoderDefinitions.VER_DOTTED_BLOCK || version_scheme == BTPeerIDByteDec... | BTPeerIDByteDecoderDefinitions.VER_DOTTED_BLOCK) ? 2 : 1; |
163,965 | public void save(GlowAreaEffectCloud entity, CompoundTag tag) {<NEW_LINE>super.save(entity, tag);<NEW_LINE>tag.putInt("Age", entity.getTicksLived());<NEW_LINE>Color color = entity.getColor();<NEW_LINE>if (color != null) {<NEW_LINE>tag.putInt(COLOR, color.asRGB());<NEW_LINE>}<NEW_LINE>tag.putInt(DURATION, entity.getDura... | REAPPLICATION_DELAY, entity.getReapplicationDelay()); |
1,250,749 | private Node createMainPane() {<NEW_LINE>Pane main = new Pane();<NEW_LINE>HBox lr = new HBox(10);<NEW_LINE>VBox src = new VBox(10);<NEW_LINE>src.getChildren().add(new Text("SOURCE CONTROL:"));<NEW_LINE>src.getChildren().add(new Separator());<NEW_LINE>src.getChildren().add(sourceControlPane);<NEW_LINE>src.getChildren().... | getChildren().add(lr); |
1,786,662 | public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {<NEW_LINE>if (((bitField0_ & 0x00000001) == 0x00000001)) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>if (((bitField0_ & 0x00000002) == 0x00000002)) {<NEW_LINE>output.writeEnum(2, type_);<NEW_LINE>}<NEW_LINE>for (int i = 0; i < peers... | output.writeInt64(1, term_); |
142,319 | public // pixel values are defined by the given PixelFormat.<NEW_LINE>void fillRect(PixelFormat pf, Rect dest, byte[] pix) {<NEW_LINE>WritableRaster dstBuffer = getBufferRW(dest);<NEW_LINE>ColorModel cm = pf.getColorModel();<NEW_LINE>if (cm.isCompatibleRaster(dstBuffer) && cm.isCompatibleSampleModel(dstBuffer.getSample... | ++) src.put(pix); |
1,183,492 | public Request<UnmonitorInstancesRequest> marshall(UnmonitorInstancesRequest unmonitorInstancesRequest) {<NEW_LINE>if (unmonitorInstancesRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<UnmonitorInstancesRequest> request = new DefaultReque... | request.addParameter("Version", "2016-11-15"); |
1,198,166 | private PinotExpression handleArithmeticExpression(CallExpression expression, OperatorType operatorType, Map<VariableReferenceExpression, PinotQueryGeneratorContext.Selection> context) {<NEW_LINE>List<RowExpression> arguments = expression.getArguments();<NEW_LINE>if (arguments.size() == 1) {<NEW_LINE>String prefix = op... | , format("Don't know how to interpret %s as an arithmetic expression", expression)); |
1,041,209 | protected String doIt() throws Exception {<NEW_LINE>int year_ID = getRecord_ID();<NEW_LINE>MHRYear year = new MHRYear(getCtx(), getRecord_ID(), get_TrxName());<NEW_LINE>if (year.get_ID() <= 0 || year.get_ID() != year_ID)<NEW_LINE>return "Year not exist";<NEW_LINE>else if (year.isProcessed())<NEW_LINE>return "No Created... | translate(getCtx(), "PeriodNotValid"); |
1,311,019 | private void createRemoteUser(ScaleUser scaleUser) {<NEW_LINE>Timber.d("Create user: %s", scaleUser.getUserName());<NEW_LINE>Calendar cal = Calendar.getInstance();<NEW_LINE>cal.setTime(scaleUser.getBirthday());<NEW_LINE>// We can only use up to 3 characters (padding with 0 if needed)<NEW_LINE>byte[] nick = Arrays.copyO... | (byte) scaleUser.getBodyHeight(); |
742,743 | public int execute(final String fullCommand, final CommandLine cl, final Shell shellState) throws AccumuloException, AccumuloSecurityException, IOException {<NEW_LINE>final String currentUser = shellState.getAccumuloClient().whoami();<NEW_LINE>final String user = cl.getOptionValue(userOpt.getOpt(), currentUser);<NEW_LI... | "Please confirm new password for '" + user + "': ", '*'); |
416,425 | private void ensureFileExists() throws IOException {<NEW_LINE>if (outfile == null) {<NEW_LINE>// NOI18N<NEW_LINE>String outdir = System.getProperty("java.io.tmpdir");<NEW_LINE>if (!outdir.endsWith(File.separator)) {<NEW_LINE>outdir += File.separator;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>if (!dir.exists()) {<NEW_LINE>// ... | File dir = new File(outdir); |
869,116 | // @formatter:on<NEW_LINE>public static JwtDecoder jwtDecoder(JWKSource<SecurityContext> jwkSource) {<NEW_LINE>Set<JWSAlgorithm> jwsAlgs = new HashSet<>();<NEW_LINE>jwsAlgs.addAll(JWSAlgorithm.Family.RSA);<NEW_LINE>jwsAlgs.addAll(JWSAlgorithm.Family.EC);<NEW_LINE>jwsAlgs.<MASK><NEW_LINE>ConfigurableJWTProcessor<Securit... | addAll(JWSAlgorithm.Family.HMAC_SHA); |
1,661,138 | private static void allocateRoutingNodes(Map<String, Map<Integer, String>> shardNodes, Map<String, Map<String, IntIndexedContainer>> locations) {<NEW_LINE>for (Map.Entry<String, Map<String, IntIndexedContainer>> indicesByNodeId : locations.entrySet()) {<NEW_LINE>String nodeId = indicesByNodeId.getKey();<NEW_LINE>for (M... | shardNodes.put(index, shardsOnIndex); |
141,646 | public ArrayList<Anomaly> detect(TimeSeries observedSeries, TimeSeries.DataSequence expectedSeries) throws Exception {<NEW_LINE>for (Boolean b : isTuned) {<NEW_LINE>if (!b) {<NEW_LINE>throw new Exception("All the models need to be tuned before detection.");<NEW_LINE>}<NEW_LINE>}<NEW_LINE>ArrayList<Anomaly> result = new... | intervals.setTimeStamps(firstTimeStamp, period); |
1,756,544 | private void handleSSEMulti(HandlerDescriptor descriptor, BytecodeCreator writer, ResultHandle rc, ResultHandle res) {<NEW_LINE>// The method returns a Multi that needs to be written as server-sent event.<NEW_LINE>// We subscribe to this Multi and write the provided items (one by one) in the HTTP response.<NEW_LINE>// ... | Methods.MULTI_SSE_SUBSCRIBE_BUFFER, res, rc); |
1,750,455 | public okhttp3.Call fakeOuterCompositeSerializeCall(OuterComposite body, final ApiCallback _callback) throws ApiException {<NEW_LINE>String basePath = null;<NEW_LINE>// Operation Servers<NEW_LINE>String[] localBasePaths = new String[] {};<NEW_LINE>// Determine Base Path to Use<NEW_LINE>if (localCustomBaseUrl != null) {... | HashMap<String, String>(); |
1,560,505 | final EngineDefaults executeDescribeEngineDefaultParameters(DescribeEngineDefaultParametersRequest describeEngineDefaultParametersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeEngineDefaultParametersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAws... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
461,386 | private int scan(final Path dir, final String version) throws IOException {<NEW_LINE>final Unplace unplace = new Unplace(dir);<NEW_LINE>final Collection<Path> sources = new Walk(dir);<NEW_LINE>int done = 0;<NEW_LINE>for (final Path src : sources) {<NEW_LINE>if (src.toString().endsWith(".eo")) {<NEW_LINE>final Tojo tojo... | (dir), done, version); |
60,965 | protected static void interpretIntOp(AluInstr instr, Operation op, long[] fixnums, boolean[] booleans) {<NEW_LINE>TemporaryLocalVariable dst = (TemporaryLocalVariable) instr.getResult();<NEW_LINE>long i1 = getFixnumArg(fixnums, instr.getArg1());<NEW_LINE>long i2 = getFixnumArg(fixnums, instr.getArg2());<NEW_LINE>switch... | fixnums, dst, i1 & i2); |
1,808,788 | private void loadNode432() throws IOException, SAXException {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.CertificateGroupFolderType_AdditionalGroup_Placeholder_TrustList_Open_InputArguments, new QualifiedName(0, "InputArguments"), new LocalizedText("en", "InputArguments"), Localized... | .expanded(), false)); |
1,063,580 | public static List<TruthSensitivityTranche> findTranches(final List<VariantDatum> data, final List<Double> trancheThresholds, final SelectionMetric metric, final VariantRecalibratorArgumentCollection.Mode model, final File debugFile) {<NEW_LINE>logger.info(String.format("Finding %d tranches for %d variants", trancheThr... | writeTranchesDebuggingInfo(debugFile, data, metric); |
1,673,583 | final SearchDashboardsResult executeSearchDashboards(SearchDashboardsRequest searchDashboardsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(searchDashboardsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | false), new SearchDashboardsResultJsonUnmarshaller()); |
411,343 | protected void resetEditorFrom(final RunConfigurationBase configuration) {<NEW_LINE>ArrayList<LogFileOptions> list = new ArrayList<LogFileOptions>();<NEW_LINE>final ArrayList<LogFileOptions> logFiles = configuration.getLogFiles();<NEW_LINE>for (LogFileOptions setting : logFiles) {<NEW_LINE>list.add(new LogFileOptions(s... | .toSystemDependentName(fileOutputPath) : ""); |
462,494 | public void write(DataOutput out) throws IOException {<NEW_LINE>int size = groupName2Id.size();<NEW_LINE>out.writeInt(size);<NEW_LINE>for (Map.Entry<String, GroupId> entry : groupName2Id.entrySet()) {<NEW_LINE>// group name<NEW_LINE>Text.writeString(out, entry.getKey());<NEW_LINE>// group id<NEW_LINE>entry.getValue().w... | get(entry.getValue()); |
214,077 | public InterModeInfo read(int miCol, int miRow, int blSz, VPXBooleanDecoder decoder, DecodingContext c) {<NEW_LINE>int segmentId = 0;<NEW_LINE>if (c.isSegmentationEnabled()) {<NEW_LINE>segmentId = predicSegmentId(miCol, miRow, blSz, c);<NEW_LINE>if (c.isUpdateSegmentMap()) {<NEW_LINE>if (!c.isSegmentMapConditionalUpdat... | segmentId = readSegmentId(decoder, c); |
978,190 | public void save() throws CouldntSaveDataException {<NEW_LINE>Preconditions.checkArgument(getType(<MASK><NEW_LINE>Preconditions.checkState(isLoaded(), "IE00315: View must be loaded before it can be saved");<NEW_LINE>if (m_configuration.isStored()) {<NEW_LINE>m_provider.save(this);<NEW_LINE>} else {<NEW_LINE>CView newVi... | ) == ViewType.NonNative, "IE00314: Native views can not be saved"); |
787,296 | public com.amazonaws.services.organizations.model.AccountOwnerNotVerifiedException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.organizations.model.AccountOwnerNotVerifiedException accountOwnerNotVerifiedException = new com.amazonaws.services.organizations.mo... | int originalDepth = context.getCurrentDepth(); |
90,687 | public Destination unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Destination destination = new Destination();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE... | ().unmarshall(context)); |
1,077,803 | public void onSessionRemoteClose(Event e) {<NEW_LINE>final Session session = e.getSession();<NEW_LINE>final ErrorCondition condition = session != null ? session.getRemoteCondition() : null;<NEW_LINE>addErrorCondition(logger.atInfo(), condition).addKeyValue(SESSION_NAME_KEY, sessionName).log("onSessionRemoteClose");<NEW... | , sessionName).log("onSessionRemoteClose closing a local session."); |
453,581 | private void refresh(int index) {<NEW_LINE>JLabel cbLabel = new JLabel();<NEW_LINE>Mnemonics.setLocalizedText(cbLabel, NbBundle.getMessage(ConnectorPanel.class, "CTL_Connect_through"));<NEW_LINE>cbLabel.getAccessibleContext().setAccessibleDescription(// NOI18N<NEW_LINE>NbBundle.// NOI18N<NEW_LINE>getMessage(// NOI18N<N... | help = HelpCtx.findHelp(customizer); |
900,171 | public void mapPartition(Iterable<Vector> iterable, Collector<Tuple2<DenseMatrix, DenseMatrix>> result) {<NEW_LINE>if (getRuntimeContext().getIndexOfThisSubtask() == 0) {<NEW_LINE>RandomDataGenerator rand = new RandomDataGenerator();<NEW_LINE>if (seed != null) {<NEW_LINE>rand.reSeed(seed);<NEW_LINE>}<NEW_LINE>double[] ... | randomData, true).transpose(); |
656,862 | public void actionPerformed(final ActionEvent e) {<NEW_LINE>final SModeController modeController = (SModeController) Controller.getCurrentModeController();<NEW_LINE>final MapModel map = Controller.getCurrentController().getMap();<NEW_LINE>final MapStyleModel styleModel = MapStyleModel.getExtension(map);<NEW_LINE>NodeMo... | ).execute(actor, map); |
1,373,622 | private String[] copyMultipleFiles(final ExecutionContext context, File basedir, List<File> files, String remotePath, final INodeEntry node) throws FileCopierException {<NEW_LINE>Project project = new Project();<NEW_LINE>ArrayList<String> ret = new ArrayList<>();<NEW_LINE>if (null == remotePath) {<NEW_LINE>throw new Fi... | .getNodename(), remotePath)); |
1,194,994 | private void create() {<NEW_LINE>if (shell != null && !shell.isDisposed()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Display display = Display.getDefault();<NEW_LINE>shell = new Shell(display, SWT.TOP | SWT.TOOL);<NEW_LINE>shell.addListener(SWT.Close, new Listener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void hand... | = new GridData(GridData.FILL_HORIZONTAL); |
715,404 | public void onRender(Env env, Scope scope, Writer writer) {<NEW_LINE>String flag = getPara("flag", scope);<NEW_LINE>String pflag = getPara("parentFlag", scope);<NEW_LINE>Long pId = getParaToLong("parentId", scope);<NEW_LINE>boolean asTree = getParaToBool("asTree", scope, Boolean.FALSE);<NEW_LINE>List<ProductCategory> c... | categoryService.findListByType(ProductCategory.TYPE_CATEGORY); |
1,224,879 | public void onSuccess(@Nullable Edge edge) {<NEW_LINE>if (edge != null && !customerId.isNullUid()) {<NEW_LINE>saveEdgeEvent(edge.getTenantId(), edge.getId(), EdgeEventType.CUSTOMER, EdgeEventActionType.ADDED, customerId, null);<NEW_LINE><MASK><NEW_LINE>PageData<User> pageData;<NEW_LINE>do {<NEW_LINE>pageData = userServ... | PageLink pageLink = new PageLink(DEFAULT_PAGE_SIZE); |
225,665 | private List matchRange(List torrents, String filter) {<NEW_LINE>Matcher matcher = rangePattern.matcher(filter);<NEW_LINE>List list = new ArrayList();<NEW_LINE>if (matcher.matches()) {<NEW_LINE>int minId = Integer.parseInt(matcher.group(1));<NEW_LINE>if (minId == 0)<NEW_LINE>throw new CoreException("lower range must be... | torrents.size() + ")"); |
589,187 | final GetContainerServiceMetricDataResult executeGetContainerServiceMetricData(GetContainerServiceMetricDataRequest getContainerServiceMetricDataRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getContainerServiceMetricDataRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC... | endClientExecution(awsRequestMetrics, request, response); |
26,625 | public boolean onTouch(View v, MotionEvent event) {<NEW_LINE>resetNoTouchTimer(getActionBar().isShowing() && mHudVisible == false);<NEW_LINE>mGesDetect.onTouchEvent(event);<NEW_LINE>// Pass the touch event to the native layer for camera control.<NEW_LINE>// Single touch to rotate the camera around the device.<NEW_LINE>... | getX(0) / mScreenSize.x; |
79,595 | public List<SequenceMatchResult<T>> findNonOverlappingMaxScore(List<? extends T> elements, ToDoubleFunction<? super SequenceMatchResult> scorer) {<NEW_LINE>Collection<SequencePattern<T<MASK><NEW_LINE>List<SequenceMatchResult<T>> all = new ArrayList<>();<NEW_LINE>int i = 0;<NEW_LINE>for (SequencePattern<T> p : triggered... | >> triggered = getTriggeredPatterns(elements); |
928,747 | public void marshall(EffectiveDeployment effectiveDeployment, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (effectiveDeployment == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(effectiveDeployment.getDepl... | e.getMessage(), e); |
1,279,452 | public void marshall(ListRecoveryPointsByBackupVaultRequest listRecoveryPointsByBackupVaultRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (listRecoveryPointsByBackupVaultRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LIN... | e.getMessage(), e); |
1,300,424 | private static ScaleFactors readScaleFacShort(BitReader br, Granule granule) {<NEW_LINE>ScaleFactors sf = new ScaleFactors();<NEW_LINE>int length0 = scaleFactorLen[0][granule.scalefacCompress];<NEW_LINE>int length1 = scaleFactorLen[1][granule.scalefacCompress];<NEW_LINE>for (int i = 0; i < 6; i++) {<NEW_LINE>for (int j... | [2][12] = 0; |
1,450,434 | public static ByteBuffer toStream(final WriteableWALRecord walRecord) {<NEW_LINE>final int contentSize = walRecord.serializedSize() + METADATA_SIZE;<NEW_LINE>final ByteBuffer content = ByteBuffer.allocate(contentSize).order(ByteOrder.nativeOrder());<NEW_LINE>final int recordId = walRecord.getId();<NEW_LINE>content.putS... | compressor.maxCompressedLength(contentSize - 1); |
853,452 | public void onDataReceived(@NonNull final BluetoothDevice device, @NonNull final Data data) {<NEW_LINE>super.onDataReceived(device, data);<NEW_LINE>if (data.size() != 9 && data.size() != 11) {<NEW_LINE>onInvalidDataReceived(device, data);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final boolean crcPresent = data.size() == 11... | getValue(), 0, 9); |
1,835,222 | protected void initializePriceDetails() {<NEW_LINE>if (includeAdjustments) {<NEW_LINE>for (OrderItemPriceDetail detail : orderItem.getOrderItemPriceDetails()) {<NEW_LINE>PromotableOrderItemPriceDetail poid = itemFactory.createPromotableOrderItemPriceDetail(this, detail.getQuantity());<NEW_LINE>itemPriceDetails.add(poid... | getQuantity().intValue()); |
219,172 | public boolean onPreferenceChangeBehaviour(Preference preference, Object newValue) {<NEW_LINE>if (preference == mConnectRetrymax) {<NEW_LINE>if (newValue == null) {<NEW_LINE>newValue = "5";<NEW_LINE>}<NEW_LINE>mConnectRetrymax.setDefaultValue(newValue);<NEW_LINE>for (int i = 0; i < mConnectRetrymax.getEntryValues().len... | .getEntries()[i]); |
758,717 | private static BundleEntryComponent immunization(RandomNumberGenerator rand, BundleEntryComponent personEntry, Bundle bundle, BundleEntryComponent encounterEntry, HealthRecord.Entry immunization) {<NEW_LINE>Immunization immResource = new Immunization();<NEW_LINE>if (USE_US_CORE_IG) {<NEW_LINE>Meta meta = new Meta();<NE... | "shr-action-Status-extension", new CodeType("completed")); |
1,299,506 | /* private */<NEW_LINE>void scrollToItem(int item, boolean smoothScroll, int animDuration, int velocity, boolean dispatchSelected, boolean touching) {<NEW_LINE>final ItemInfo curInfo = infoForPosition(item);<NEW_LINE>int dest = 0;<NEW_LINE>if (curInfo != null) {<NEW_LINE>final int size = getClientSize();<NEW_LINE>dest ... | mSelectedListener.onPageSelected(false, mCurItem); |
1,168,315 | private void childLock(final MenuItem item) {<NEW_LINE>AlertDialog.Builder builder = new AlertDialog.Builder(this, R.style.CustomAlertDialogTheme);<NEW_LINE>builder.setTitle(R.string.action_mode_child_lock);<NEW_LINE>builder.setMessage(R.string.action_mode_dialog_message_lock);<NEW_LINE>builder.<MASK><NEW_LINE>LayoutIn... | setIcon(R.drawable.ic_lock_outline_blue_24dp); |
1,334,400 | protected static void appendTimerMetrics(Map<String, Object> metrics, NodeProbe probe, String keyspace, String metric) {<NEW_LINE>// "ReadLatency" => "read_latency_hugegraph"<NEW_LINE>String suffix = keyspace == null ? "*" : keyspace;<NEW_LINE>String name = humpToLine(metric + "_" + suffix);<NEW_LINE>// Aggregation of ... | "count", value.getCount()); |
1,377,480 | public void run() {<NEW_LINE>FindComponentModules findModules = new FindComponentModules(pluginCodeName);<NEW_LINE>findModules.createFindingTask().waitFinished();<NEW_LINE>Collection<UpdateElement> toInstall = findModules.getModulesForInstall();<NEW_LINE>Collection<UpdateElement> toEnable = findModules.getModulesForEna... | .getInstance().refresh(); |
1,488,688 | public Void visit(BaseVariableWidthVector vector, Void value) {<NEW_LINE>if (vector.getValueCount() > 0) {<NEW_LINE>if (vector.getDataBuffer() == null || vector.getDataBuffer().capacity() == 0) {<NEW_LINE>throw new IllegalArgumentException("valueBuffer is null or capacity is 0");<NEW_LINE>}<NEW_LINE>ArrowBuf offsetBuf ... | getValueCount() * BaseVariableWidthVector.OFFSET_WIDTH); |
692,869 | private void updateHeaders() {<NEW_LINE>int num = headerTable.getRowCount();<NEW_LINE>Headers hd = monitorData.getRequestData().getHeaders();<NEW_LINE>Param[<MASK><NEW_LINE>boolean inputOK = true;<NEW_LINE>for (int i = 0; i < num; i++) {<NEW_LINE>String name = (String) headerTable.getValueAt(i, 0);<NEW_LINE>name = name... | ] params = hd.getParam(); |
1,079,127 | private STNode parseStartAction(STNode annots) {<NEW_LINE>STNode startKeyword = parseStartKeyword();<NEW_LINE>STNode expr = parseActionOrExpression();<NEW_LINE>// Validate expression or action in start action<NEW_LINE>switch(expr.kind) {<NEW_LINE>case FUNCTION_CALL:<NEW_LINE>case METHOD_CALL:<NEW_LINE>case REMOTE_METHO... | STNodeFactory.createEmptyNodeList(), closeParenToken); |
879,443 | private void createControlsBar(Composite sqlEditorPanel) {<NEW_LINE>sideToolBar = new VerticalFolder(sqlEditorPanel, SWT.LEFT);<NEW_LINE>sideToolBar.setCheckCommandEnablement(true);<NEW_LINE>((GridLayout) sideToolBar.getLayout()).marginTop = 3;<NEW_LINE>((GridLayout) sideToolBar.getLayout()).marginBottom = 10;<NEW_LINE... | ), SQLEditorCommands.CMD_EXECUTE_SCRIPT, false); |
1,055,123 | public Request<ExportTransitGatewayRoutesRequest> marshall(ExportTransitGatewayRoutesRequest exportTransitGatewayRoutesRequest) {<NEW_LINE>if (exportTransitGatewayRoutesRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<ExportTransitGatewayR... | Filter>) exportTransitGatewayRoutesRequest.getFilters(); |
1,150,440 | private void initAnimation(Orientation orientation) {<NEW_LINE>double thumbPos, thumbNewPos;<NEW_LINE>DoubleProperty layoutProperty;<NEW_LINE>if (orientation == Orientation.HORIZONTAL) {<NEW_LINE>if (((JFXSlider) getSkinnable()).getIndicatorPosition() == IndicatorPosition.RIGHT) {<NEW_LINE>thumbPos = thumb.getLayoutY()... | thumbNewPos, Interpolator.EASE_BOTH))); |
1,231,887 | public void execute(ActivityExecution execution) throws Exception {<NEW_LINE>// Join<NEW_LINE>PvmActivity activity = execution.getActivity();<NEW_LINE>List<PvmTransition> outgoingTransitions = execution.getActivity().getOutgoingTransitions();<NEW_LINE>execution.inactivate();<NEW_LINE>lockConcurrentRoot(execution);<NEW_... | execution.leaveActivityViaTransitions(outgoingTransitions, joinedExecutions); |
624,644 | protected void writeToServletResponse(TransportResponse<RestResponse> response, HttpServletResponse resp) throws IOException {<NEW_LINE>Map<String, String> wireAttrs = response.getWireAttributes();<NEW_LINE>for (Map.Entry<String, String> e : WireAttributeHelper.toWireAttributes(wireAttrs).entrySet()) {<NEW_LINE>resp.se... | setStatus(restResponse.getStatus()); |
1,822,105 | public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "@name('s0') select " + "theString, " + "first(intPrimitive) as fi, " + "window(intPrimitive) as wi, " + "last(intPrimitive) as li " + "from SupportBean#length_batch(6) as sb group by theString order by theString asc";<NEW_LINE>env.compileDeploy(epl).ad... | new SupportBean("E1", 15)); |
429,067 | public static FloatLayoutResult layoutFloated(final LayoutContext c, LineBox currentLine, BlockBox block, int avail, List<FloatLayoutResult> pendingFloats) {<NEW_LINE>FloatLayoutResult result = new FloatLayoutResult();<NEW_LINE>MarkerData markerData = c.getCurrentMarkerData();<NEW_LINE>c.setCurrentMarkerData(null);<NEW... | int initialY = block.getY(); |
454,047 | public Map<String, Object> mapObject() {<NEW_LINE>try {<NEW_LINE>final Field field = from();<NEW_LINE>final Map<String, Object> fieldMap = mapper.<MASK><NEW_LINE>fieldMap.put("fieldVariables", new JsonFieldVariableTransformer(field.fieldVariables()).mapList());<NEW_LINE>fieldMap.remove("acceptedDataTypes");<NEW_LINE>fi... | convertValue(field, HashMap.class); |
1,456,372 | private void parseAssemblies(final Path parsedFile, final RandomUidContext context, final ResultsVisitor visitor) {<NEW_LINE>try {<NEW_LINE>LOGGER.debug("Parsing file {}", parsedFile);<NEW_LINE>final DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();<NEW_LINE>final DocumentBuilder builder = factory.... | String elementName = assembliesElement.getName(); |
1,152,889 | protected void paintDropShadow(RenderContext<FGVertex, FGEdge> rc, GraphicsDecorator g, Shape shape, FGVertex vertex) {<NEW_LINE>Rectangle bounds = shape.getBounds();<NEW_LINE>if (vertex instanceof GroupedFunctionGraphVertex) {<NEW_LINE>// paint depth images offset from main vertex<NEW_LINE>Rectangle originalBounds = b... | paintDropShadow(rc, g, paintBounds); |
1,294,364 | private void showRouteAltitudeChart() {<NEW_LINE>if (RoutingController.get().isVehicleRouterType()) {<NEW_LINE>UiUtils.hide(mAltitudeChart, mAltitudeDifference);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int chartWidth = UiUtils.dimen(mContext, R.dimen.altitude_chart_image_width);<NEW_LINE>int chartHeight = UiUtils.dimen(mC... | getString(R.string.foot); |
749,420 | public void call(ClientSide clientSide, String data) {<NEW_LINE>Room room = ServerContains.getRoom(clientSide.getRoomId());<NEW_LINE>Map<String, Object> datas = new HashMap<String, Object>();<NEW_LINE>if (StringUtils.isNotBlank(data)) {<NEW_LINE>datas = Noson.parseMap(data);<NEW_LINE>}<NEW_LINE>List<Map<String, Object>... | lastPokers = LastCardsUtils.getLastCards(lastPokerList); |
1,340,935 | final GetLoadBalancersResult executeGetLoadBalancers(GetLoadBalancersRequest getLoadBalancersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getLoadBalancersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | endClientExecution(awsRequestMetrics, request, response); |
1,450,998 | public static void testRemove(final HugeGraph graph) {<NEW_LINE>// remove vertex (and its edges)<NEW_LINE>List<Vertex> vertices = graph.traversal().V().hasLabel("person").has("age", 19).toList();<NEW_LINE>assert vertices.size() == 1;<NEW_LINE>Vertex james = vertices.get(0);<NEW_LINE>Vertex book6 = graph.addVertex(T.lab... | .bothE().hasNext(); |
1,319,932 | protected void installDefaults() {<NEW_LINE>super.installDefaults();<NEW_LINE>LookAndFeel.installProperty(comboBox, "opaque", false);<NEW_LINE>minimumWidth = UIManager.getInt("ComboBox.minimumWidth");<NEW_LINE>editorColumns = UIManager.getInt("ComboBox.editorColumns");<NEW_LINE>buttonStyle = UIManager.getString("ComboB... | buttonArrowColor = UIManager.getColor("ComboBox.buttonArrowColor"); |
910,480 | public boolean onOptionsItemSelected(@NonNull MenuItem item) {<NEW_LINE>if (item.getItemId() == R.id.action_search_subscribed_thing_listing_activity) {<NEW_LINE>item.setVisible(false);<NEW_LINE>searchEditText.setVisibility(View.VISIBLE);<NEW_LINE>searchEditText.requestFocus();<NEW_LINE>if (searchEditText.requestFocus()... | InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); |
97,052 | public List<Config> listConfigs(final Config.Criteria criteria) throws DockerException, InterruptedException {<NEW_LINE>assertApiVersionIsAbove("1.30");<NEW_LINE>final Map<String, List<String>> filters = new HashMap<>();<NEW_LINE>if (criteria.configId() != null) {<NEW_LINE>filters.put("id", Collections.singletonList(cr... | throw new NonSwarmNodeException("node is not part of a swarm", e); |
1,162,430 | public I_C_Queue_WorkPackage notify(final I_C_Async_Batch asyncBatch, final I_C_Queue_WorkPackage workpackage) {<NEW_LINE>//<NEW_LINE>// retrieves not notified workpackages in order of the seqNo<NEW_LINE>final List<I_C_Queue_WorkPackage_Notified> unNotifiedWPS = <MASK><NEW_LINE>//<NEW_LINE>// if there is not package no... | asyncBatchDAO.retrieveWorkPackagesNotified(asyncBatch, false); |
875,027 | public static <T> void checkLeak(@Nonnull Object root, @Nonnull Class<T> suspectClass, @javax.annotation.Nullable final Processor<T> isReallyLeak) throws AssertionError {<NEW_LINE>if (SwingUtilities.isEventDispatchThread()) {<NEW_LINE>UIUtil.dispatchAllInvocationEvents();<NEW_LINE>} else {<NEW_LINE>UIUtil.pump();<NEW_L... | ((Project) leaked) : ""; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.