idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,709,678 | private void attachLegend(List<RouteSegmentAttribute> list, String propertyNameToFullSpan) {<NEW_LINE>Context themedCtx = UiUtilities.getThemedContext(app, isNightMode());<NEW_LINE>LayoutInflater inflater = LayoutInflater.from(themedCtx);<NEW_LINE>for (RouteSegmentAttribute segment : list) {<NEW_LINE>View view = inflat... | getSpanLegend(name, segment, selected); |
1,309,196 | public void processMetadata(TextSource source, Builder moduleBuilder) throws QuickFixException {<NEW_LINE>XMLStreamReader reader = null;<NEW_LINE>String rootElement = "LightningComponentBundle";<NEW_LINE>try (StringReader sr = new StringReader(source.getContents())) {<NEW_LINE>reader = getXmlInputFactory().createXMLStr... | this.elementHandlers.get(elementName); |
306,333 | private List<Map> updateUserRole(@ApiParam(required = true) UserRoleList userRoleList, @HeaderParam(AUTHORIZATION) @ApiParam(value = EXAMPLE_AUTHORIZATION_HEADER, required = true) String authorizationHeader) {<NEW_LINE>Username subject = authorization.getUser(authorizationHeader);<NEW_LINE>UserInfo admin = authorizatio... | .setUserRole(userRole, admin)); |
1,281,660 | public static URL constructURL(final URL base, final String url, final boolean stripRef) throws IOException {<NEW_LINE>URL result = new URL(base, url);<NEW_LINE>String file = result.getFile();<NEW_LINE>final String protocol = result.getProtocol();<NEW_LINE>final String host = result.getHost();<NEW_LINE>final int port =... | index, index + 1, "%20"); |
683,761 | public static void horizontal9(Kernel1D_S32 kernel, GrayS16 input, GrayI16 output, int skip) {<NEW_LINE>final short[] dataSrc = input.data;<NEW_LINE>final short[] dataDst = output.data;<NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int k3 = kernel.data[2];<NEW_LINE>final... | k6 = kernel.data[5]; |
1,646,958 | private static void predict(BufferedReader input, DataOutputStream output, svm_model model, int predict_probability) throws IOException {<NEW_LINE>int correct = 0;<NEW_LINE>int total = 0;<NEW_LINE>double error = 0;<NEW_LINE>double sump = 0, sumt = 0, sumpp = 0<MASK><NEW_LINE>int svm_type = svm.svm_get_svm_type(model);<... | , sumtt = 0, sumpt = 0; |
1,821,004 | final DeleteAttributesResult executeDeleteAttributes(DeleteAttributesRequest deleteAttributesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteAttributesRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<DeleteAttributesRequest> ... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
1,381,190 | protected final <Req extends Validatable, Resp> Cancellable performRequestAsyncAndParseOptionalEntity(Req request, CheckedFunction<Req, Request, IOException> requestConverter, RequestOptions options, CheckedFunction<XContentParser, Resp, IOException> entityParser, ActionListener<Optional<Resp>> listener) {<NEW_LINE>Opt... | req = requestConverter.apply(request); |
448,990 | private static Map<Integer, Comparable[]> generateAllInputArrays(int largeArraySize) {<NEW_LINE>Map<Integer, Comparable[]> allInputArrays = new HashMap<>();<NEW_LINE>Comparable[] arrayGaussianDistribution = Exercise35_NonuniformDistributions.generateGaussianDistributionArray(largeArraySize);<NEW_LINE>allInputArrays.put... | arrayHalfZeroHalfOneValues = Exercise36_NonuniformData.generateHalfZeroHalfOneValuesArray(largeArraySize); |
921,002 | static void writeHeader(final JsonGenerator jsonGenerator, final RelDataType rowType, final boolean includeTypes, final boolean includeSqlTypes) throws IOException {<NEW_LINE>final RowSignature signature = RowSignatures.fromRelDataType(<MASK><NEW_LINE>jsonGenerator.writeStartObject();<NEW_LINE>for (int i = 0; i < signa... | rowType.getFieldNames(), rowType); |
1,198,460 | final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<ListTagsFo... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
347,970 | public int compareTo(getUserAuthorizations_args other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.getClass().getName());<NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = java.lang.Boolean.compare(isSetTinfo(<MASK><NEW_LINE>if (lastCom... | ), other.isSetTinfo()); |
1,700,069 | public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {<NEW_LINE>com.google.protobuf.GeneratedMessageV3.ExtendableMessage<com.google.transit.realtime.GtfsRealtime.FeedEntity>.ExtensionWriter extensionWriter = newExtensionWriter();<NEW_LINE>if (((bitField0_ & 0x00000001) != 0)) {<N... | writeMessage(3, getTripUpdate()); |
1,045,022 | private void addClientConfigAddedListeners(Collection<EventListener> configuredListeners) {<NEW_LINE>configuredListeners.stream().filter(listener -> listener instanceof DistributedObjectListener).forEach(listener -> proxyManager.<MASK><NEW_LINE>configuredListeners.stream().filter(listener -> listener instanceof Migrati... | addDistributedObjectListener((DistributedObjectListener) listener)); |
1,003,184 | final GetSessionTokenResult executeGetSessionToken(GetSessionTokenRequest getSessionTokenRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getSessionTokenRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
1,710,285 | private void print(final PrintPackage printPackage, final PrintPackageInfo printPackageInfo, final PrintablePDF printable) throws PrinterException {<NEW_LINE>logger.log(Level.FINE, "Printing {}", printPackageInfo);<NEW_LINE>final PrintPackageRequest printRequest <MASK><NEW_LINE>printRequest.setPrintJobName("adempiere-j... | = new PrintPackageRequest(printPackage, printPackageInfo); |
1,371,298 | private void constructEarliestBegin(Container propertiesPanel) {<NEW_LINE>final JXHyperlink copyFromBeginDate = new JXHyperlink(new GPAction("option.taskProperties.main.earliestBegin.copyBeginDate") {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void actionPerformed(ActionEvent e) {<NEW_LINE>setThird(myTaskScheduleDate... | setThird(myTaskScheduleDates.getStart()); |
72,882 | void scanResources(JaxRsResourceIndexBuildItem jaxRsResourceIndexBuildItem, List<AdditionalResourceClassBuildItem> additionalResourceClassBuildItems, BuildProducer<AnnotationsTransformerBuildItem> annotationsTransformerBuildItemBuildProducer, BuildProducer<ResourceScanningResultBuildItem> resourceScanningResultBuildIte... | ), bi.getClassInfo()); |
1,808,297 | final UpdateCanaryResult executeUpdateCanary(UpdateCanaryRequest updateCanaryRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateCanaryRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec... | false), new UpdateCanaryResultJsonUnmarshaller()); |
1,226,379 | private static void applyInternal(final AnnotatedTypeMirror type, final Element element, final AnnotatedTypeFactory typeFactory) throws UnexpectedAnnotationLocationException {<NEW_LINE>if (element == null) {<NEW_LINE>throw new BugInCF("ElementAnnotationUtil.apply: element cannot be null");<NEW_LINE>} else if (TypeVarUs... | ) + "]" + " with type " + type); |
117,431 | private void handle(AllocateHostPortMsg msg) {<NEW_LINE>thdf.chainSubmit(new ChainTask(msg) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public String getSyncSignature() {<NEW_LINE>return String.format("allocate-host-%s-port", msg.getHostUuid());<NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run(SyncTaskChain... | "allocate-host-%s-port", msg.getHostUuid()); |
212,313 | public void run() {<NEW_LINE>boolean success = false;<NEW_LINE>try {<NEW_LINE>StreamRequest streamRequest = readStreamRequest();<NEW_LINE>synchronized (blockStreamMap) {<NEW_LINE>registration = blockStreamMap.get(streamRequest.streamID);<NEW_LINE>if (registration == null || !registration.streamHandle.isPending()) {<NEW... | "unauthorized stream connection from " + socket.getInetAddress()); |
1,238,182 | public final TimestampValueContext timestampValue() throws RecognitionException {<NEW_LINE>TimestampValueContext _localctx = new TimestampValueContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 54, RULE_timestampValue);<NEW_LINE>try {<NEW_LINE>setState(1303);<NEW_LINE>_errHandler.sync(this);<NEW_LINE>switch(getIn... | _errHandler.reportError(this, re); |
35,959 | public void dumpStatistics() {<NEW_LINE>final TreeMap<String, String> counts = new TreeMap<>();<NEW_LINE>// first count<NEW_LINE>for (String name : lookupNumbers.keySet()) {<NEW_LINE>int cnt = 0;<NEW_LINE>final int inum = lookupNumbers.get(name);<NEW_LINE>final int[] histo = lookupHistograms.get(inum);<NEW_LINE>// if (... | inum = lookupNumbers.get(name); |
808,316 | private void sendConfiguration() {<NEW_LINE>Map<String, Object> settings = new HashMap<>();<NEW_LINE>Map<String, Object> bootJavaObj = new HashMap<>();<NEW_LINE>Map<String, Object> liveInformation = new HashMap<>();<NEW_LINE>Map<String, Object> liveInformationAutomaticTracking = new HashMap<>();<NEW_LINE>Map<String, Ob... | bootJavaObj.put("validation", validation); |
261,481 | protected void onHandleWork(@Nullable Intent intent) {<NEW_LINE>System.gc();<NEW_LINE>LocalGallery gallery = intent.getParcelableExtra(getPackageName() + ".GALLERY");<NEW_LINE>if (gallery == null)<NEW_LINE>return;<NEW_LINE>preExecute(gallery.getDirectory());<NEW_LINE>try {<NEW_LINE>File file = new File(Global.ZIPFOLDER... | getPageCount(), i, false); |
1,372,926 | public static void sceneToCloud3(SceneStructureMetric scene, double tol, BoofLambdas.ProcessIndex<Point3D_F64> func) {<NEW_LINE>Point3D_F64 out = new Point3D_F64();<NEW_LINE>final boolean homogenous = scene.isHomogenous();<NEW_LINE>for (int pointIdx = 0; pointIdx < scene.points.size; pointIdx++) {<NEW_LINE>SceneStructu... | w = point.coordinate[3]; |
423,203 | protected void doStart() throws Exception {<NEW_LINE>for (EventListener l : getBeans(SelectorManager.SelectorManagerListener.class)) selectorManager.addEventListener(l);<NEW_LINE>super.doStart();<NEW_LINE>selectorManager.accept(datagramChannel);<NEW_LINE>Set<String> aliases = sslContextFactory.getAliases();<NEW_LINE>if... | String keyManagerPassword = sslContextFactory.getKeyManagerPassword(); |
1,105,299 | // Complete the hourglassSum function below.<NEW_LINE>static int hourglassSum(int[][] arr) {<NEW_LINE>int[] sum = new int[16];<NEW_LINE>Arrays.fill(sum, 0);<NEW_LINE>int k = 0;<NEW_LINE>for (int i = 0; i < arr.length - 2; i++) {<NEW_LINE>for (int j = 0; j < arr[0].length - 2; j++) {<NEW_LINE>sum[k] += arr[i][j] + arr[i... | [i][j + 2]; |
102,791 | public ProducerRecord<byte[], byte[]> readMessage() {<NEW_LINE>try {<NEW_LINE>String line = reader.readLine();<NEW_LINE>if (line == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (!parseKey) {<NEW_LINE>T value = readFrom(line, valueSchema);<NEW_LINE>byte[] serializedValue = serializer.serialize(valueSubject, topi... | keyIndex + keySeparator.length()); |
230,695 | public Container ior(final ArrayContainer value2) {<NEW_LINE>int totalCardinality = this.getCardinality<MASK><NEW_LINE>if (totalCardinality > DEFAULT_MAX_SIZE) {<NEW_LINE>// it could be a bitmap!<NEW_LINE>BitmapContainer bc = new BitmapContainer();<NEW_LINE>for (int k = 0; k < value2.cardinality; ++k) {<NEW_LINE>char v... | () + value2.getCardinality(); |
641,803 | private void executeWithList(Channel channel, List<Message> messages, long deliveryTag, BlockingQueueConsumer consumer) {<NEW_LINE>try {<NEW_LINE>executeListener(channel, messages);<NEW_LINE>} catch (ImmediateAcknowledgeAmqpException e) {<NEW_LINE>if (this.logger.isDebugEnabled()) {<NEW_LINE>this.logger.debug("User req... | logger.debug("User requested ack for failed delivery (last in batch): " + deliveryTag); |
345,131 | private void initView() {<NEW_LINE>this.lineList = findViewById(R.id.debug_log_lines);<NEW_LINE>this.warningBanner = findViewById(R.id.debug_log_warning_banner);<NEW_LINE>this.editBanner = findViewById(R.id.debug_log_edit_banner);<NEW_LINE>this.submitButton = findViewById(R.id.debug_log_submit_button);<NEW_LINE>this.sc... | scrollToBottomButton.setVisibility(View.GONE); |
1,286,386 | private void loadNode0() throws IOException, SAXException {<NEW_LINE>DataTypeDescriptionTypeNode node = new DataTypeDescriptionTypeNode(this.context, Identifiers.OpcUa_BinarySchema_RedundantServerDataType, new QualifiedName(0, "RedundantServerDataType"), new LocalizedText("en", "RedundantServerDataType"), LocalizedText... | String xml = sb.toString(); |
835,282 | public void marshall(CreateModelRequest createModelRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createModelRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createModelRequest.getModelNam... | createModelRequest.getEvaluationDataStartTime(), EVALUATIONDATASTARTTIME_BINDING); |
848,426 | protected void validate(ResourceLocation id) {<NEW_LINE>if (pattern.isEmpty()) {<NEW_LINE>throw new <MASK><NEW_LINE>}<NEW_LINE>CharSet set = new CharOpenHashSet(key.keySet());<NEW_LINE>set.remove(' ');<NEW_LINE>for (String s : pattern) {<NEW_LINE>for (int i = 0; i < s.length(); ++i) {<NEW_LINE>char c = s.charAt(i);<NEW... | IllegalStateException("No pattern is defined for shaped recipe " + id + "!"); |
269,401 | private void generateConstraintsForWrite(Type lType, @Nullable Symbol decl, ExpressionTree rVal, @Nullable Tree lVal, ArrayDeque<Integer> argSelector) {<NEW_LINE>List<Type> typeArguments = lType.getTypeArguments();<NEW_LINE>for (int i = 0; i < typeArguments.size(); i++) {<NEW_LINE>argSelector.push(i);<NEW_LINE>generate... | argSelectorList = ImmutableList.copyOf(argSelector); |
1,751,986 | private Pulse decodePulses(BitReader _in) {<NEW_LINE>int[] pos = new int[4];<NEW_LINE>int[] amp = new int[4];<NEW_LINE>int numPulse = (int) _in.readNBit(2) + 1;<NEW_LINE>int pulseSwb = (int) _in.readNBit(6);<NEW_LINE>if (pulseSwb >= numSwb)<NEW_LINE>throw new RuntimeException("pulseSwb >= numSwb");<NEW_LINE>pos[0] = sw... | RuntimeException("pos[" + i + "] > 1023"); |
1,791,081 | public boolean start() throws IOException {<NEW_LINE>RowSet.Builder rowSetBuilder = RowSet.newBuilder();<NEW_LINE>for (ByteKeyRange sourceRange : source.getRanges()) {<NEW_LINE>rowSetBuilder = rowSetBuilder.addRowRanges(RowRange.newBuilder().setStartKeyClosed(ByteString.copyFrom(sourceRange.getStartKey().getValue())).s... | RowSet rowSet = rowSetBuilder.build(); |
1,481,470 | private void doit(HttpServletResponse resp) throws IOException {<NEW_LINE>boolean reset;<NEW_LINE>long diff;<NEW_LINE>synchronized (lastReset) {<NEW_LINE>diff = System.currentTimeMillis() - lastReset[0];<NEW_LINE>reset = diff > MIN_RESET_INTERVAL;<NEW_LINE>if (reset)<NEW_LINE>lastReset[0] = System.currentTimeMillis();<... | .getWriter().println(); |
1,529,594 | private void importSites(final List<Map<String, Object>> data) throws FrameworkException {<NEW_LINE>final SecurityContext context = SecurityContext.getSuperUserInstance();<NEW_LINE>context.setDoTransactionNotifications(false);<NEW_LINE>final App app = StructrApp.getInstance(context);<NEW_LINE>try (final Tx tx = app.tx(... | .class, "pages"), pages); |
805,088 | // Test that changing the maxQueueSize of one executor does not affect a different executor<NEW_LINE>@Test<NEW_LINE>public void testMaxQueueSizeMultipleExecutors() throws Exception {<NEW_LINE>PolicyExecutor executor1 = provider.create("testQueueSizeMultipleExecutors-1").maxConcurrency(1).maxQueueSize(1).maxWaitForEnque... | (TIMEOUT_NS, TimeUnit.NANOSECONDS)); |
509,667 | public static DescribeDomainQpsWithCacheResponse unmarshall(DescribeDomainQpsWithCacheResponse describeDomainQpsWithCacheResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDomainQpsWithCacheResponse.setRequestId<MASK><NEW_LINE>describeDomainQpsWithCacheResponse.setInterval(_ctx.integerValue("DescribeDomainQpsWithCa... | (_ctx.stringValue("DescribeDomainQpsWithCacheResponse.RequestId")); |
723,047 | protected void consumeClassHeaderName1() {<NEW_LINE>// ClassHeaderName ::= Modifiersopt 'class' 'Identifier'<NEW_LINE>TypeDeclaration typeDecl = new TypeDeclaration(this.compilationUnit.compilationResult);<NEW_LINE>if (this.nestedMethod[this.nestedType] == 0) {<NEW_LINE>if (this.nestedType != 0) {<NEW_LINE>typeDecl.bit... | .intStack[this.intPtr--]; |
617,952 | protected Object[] makeRow(int id, int type, Long start, Long end) {<NEW_LINE>Object[] result = new Object[mProjection.length];<NEW_LINE><MASK><NEW_LINE>insertValue(result, RANGE_TYPE, type);<NEW_LINE>insertValue(result, RANGE_START, start);<NEW_LINE>insertValue(result, RANGE_END, end);<NEW_LINE>if (start != null && st... | insertValue(result, RANGE_ID, id); |
1,083,274 | private void handle(final APIAttachEipMsg msg) {<NEW_LINE>final APIAttachEipEvent evt = new APIAttachEipEvent(msg.getId());<NEW_LINE>final EipVO vo = dbf.findByUuid(msg.getEipUuid(), EipVO.class);<NEW_LINE>VmNicVO nicvo = dbf.findByUuid(msg.getVmNicUuid(), VmNicVO.class);<NEW_LINE>final VmNicInventory nicInventory = Vm... | q.select(VmInstanceVO_.state); |
686,457 | private GenericTableDialogPanelAccessor internalGetDialogPanel() {<NEW_LINE>GenericTableDialogPanelAccessor subPanel = null;<NEW_LINE>try {<NEW_LINE>subPanel = <MASK><NEW_LINE>subPanel.init(getTableModel().getAppServerVersion(), GenericTablePanel.this.getWidth() * 3 / 4, entryList, extraData);<NEW_LINE>// NOI18N<NEW_LI... | (GenericTableDialogPanelAccessor) entryPanelClass.newInstance(); |
30,803 | public static List<ResultInfo> extractResultInfo(String returns) {<NEW_LINE>String[] split = returns.split(",");<NEW_LINE>List<ResultInfo> results = new ArrayList<>();<NEW_LINE>for (String column : split) {<NEW_LINE>String[] split2 = column.trim().split("\\.");<NEW_LINE>ArrayList<String> <MASK><NEW_LINE>for (int i = 0;... | els = new ArrayList<>(); |
1,088,329 | public DataEntryRecordId save(@NonNull final DataEntryRecord dataEntryRecord) {<NEW_LINE>final I_DataEntry_Record dataRecord;<NEW_LINE>final DataEntryRecordId existingId = dataEntryRecord.getId().orElse(null);<NEW_LINE>if (existingId == null) {<NEW_LINE>dataRecord = newInstance(I_DataEntry_Record.class);<NEW_LINE>} els... | getDataEntrySubTabId().getRepoId()); |
1,303,182 | final DescribeAgentVersionsResult executeDescribeAgentVersions(DescribeAgentVersionsRequest describeAgentVersionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeAgentVersionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>... | endClientExecution(awsRequestMetrics, request, response); |
1,279,841 | protected void encodeOptions(FacesContext context, Chart chart) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>ChartModel model = chart.getModel();<NEW_LINE>String legendPosition = model.getLegendPosition();<NEW_LINE>String title = model.getTitle();<NEW_LINE>String seriesCol... | ",legendCols:" + model.getLegendCols()); |
152,473 | public static RecognizeTakeoutOrderResponse unmarshall(RecognizeTakeoutOrderResponse recognizeTakeoutOrderResponse, UnmarshallerContext _ctx) {<NEW_LINE>recognizeTakeoutOrderResponse.setRequestId(_ctx.stringValue("RecognizeTakeoutOrderResponse.RequestId"));<NEW_LINE>Data data = new Data();<NEW_LINE>List<Element> elemen... | + "].Boxes[" + j + "]")); |
100,691 | public void dropChange(final long tierIndex, final long pos) {<NEW_LINE>throwExceptionIfClosed();<NEW_LINE>updateModificationIteratorsArray();<NEW_LINE>if (tierIndex <= actualSegments) {<NEW_LINE>final long segmentIndex = tierIndex - 1;<NEW_LINE>final long offsetToTierBitSet = segmentIndex * tierModIterBitSetOuterSize;... | int) (extraTierIndex >> log2TiersInBulk); |
825,835 | public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {<NEW_LINE>this.inviteContainer = view.<MASK><NEW_LINE>this.inviteTitle = view.findViewById(R.id.gv1_migrate_invite_title);<NEW_LINE>this.inviteList = view.findViewById(R.id.gv1_migrate_invite_list);<NEW_LINE>this.ineligibleContainer = v... | findViewById(R.id.gv1_migrate_invite_container); |
954,712 | private void assertDuplicate(RegressionEnvironment env, boolean withCache) {<NEW_LINE>CompilerPathCache cache = CompilerPathCache.getInstance();<NEW_LINE>List<EPCompiled> pathOne = new ArrayList<>();<NEW_LINE>compileAdd(env, cache, pathOne, new SupportModuleLoadDetector(), "@public create schema A()");<NEW_LINE>List<EP... | , new SupportModuleLoadDetector(), "@public create schema A()"); |
480,099 | public List<ValidateError> validate(Map<String, String> values) {<NEW_LINE>List<ValidateError> errors = new ArrayList<>();<NEW_LINE>Validator validator;<NEW_LINE>ValidateError error;<NEW_LINE>validator = ValidatorFactory.getInstance(Validator.REQUIRED);<NEW_LINE>error = validator.validate(values.get("knowledgeId"), con... | ValidatorFactory.getInstance(Validator.INTEGER); |
183,990 | protected Bundle doInBackground(Bundle... params) {<NEW_LINE>String message = params[0].getString(PARAM_MESSAGE);<NEW_LINE>Bundle result = new Bundle();<NEW_LINE>String token = mSharedPreferences.getString(SAVE_STATE_KEY_OAUTH_TOKEN, null);<NEW_LINE><MASK><NEW_LINE>String xml;<NEW_LINE>if (message != null && message.le... | String urlString = LINKEDIN_V1_API + "/people/~/shares?oauth2_access_token=" + token; |
1,081,941 | public int distance() {<NEW_LINE>final int INFINITY = searchTerm.length<MASK><NEW_LINE>int[][] H = new int[searchTerm.length() + 2][searchText.length() + 2];<NEW_LINE>H[0][0] = INFINITY;<NEW_LINE>for (int i = 0; i <= searchTerm.length(); i++) {<NEW_LINE>H[i + 1][1] = i;<NEW_LINE>H[i + 1][0] = INFINITY;<NEW_LINE>}<NEW_L... | () + searchText.length(); |
1,555,643 | public Page<EntCustomer> findByCreaterAndSharesAndOrgi(String creater, String shares, String orgi, Date begin, Date end, boolean includeDeleteData, String q, Pageable page) {<NEW_LINE>BoolQueryBuilder boolQueryBuilder = QueryBuilders.boolQuery();<NEW_LINE>BoolQueryBuilder boolQueryBuilder1 = new BoolQueryBuilder();<NEW... | (termQuery("shares", "all")); |
1,186,465 | static void genPositionalArgs(PrintWriter pw, CommandSpec spec) {<NEW_LINE>List<PositionalParamSpec> positionals = new ArrayList<PositionalParamSpec>(spec.positionalParameters());<NEW_LINE>// remove hidden params<NEW_LINE>for (Iterator<PositionalParamSpec> iter = positionals.iterator(); iter.hasNext(); ) {<NEW_LINE>if ... | Help help = cmd.getHelp(); |
1,036,226 | protected List<Suggestion> requestHint(SourceCodeEditor sender, String text, int senderCursorPosition) {<NEW_LINE>String joinStr = joinField.getValue();<NEW_LINE>String whereStr = whereField.getValue();<NEW_LINE>// CAUTION: the magic entity name! The length is three character to match "{E}" length in query<NEW_LINE>St... | () + " " + entityAlias + " "; |
889,252 | public void LAPACK_dtgsyl(String arg0, int[] arg1, int[] arg2, int[] arg3, double[] arg4, int[] arg5, double[] arg6, int[] arg7, double[] arg8, int[] arg9, double[] arg10, int[] arg11, double[] arg12, int[] arg13, double[] arg14, int[] arg15, double[] arg16, double[] arg17, double[] arg18, int[] arg19, int[] arg20, int... | arg18, arg19, arg20, arg21); |
517,934 | public CreateEnvironmentTemplateResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateEnvironmentTemplateResult createEnvironmentTemplateResult = new CreateEnvironmentTemplateResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int t... | int originalDepth = context.getCurrentDepth(); |
265,163 | private void registerCodecs(Map<Class<?>, Class<?>> codecByClass) {<NEW_LINE>EventBus eventBus = vertx.eventBus();<NEW_LINE>boolean isDevMode = ProfileManager.getLaunchMode() == LaunchMode.DEVELOPMENT;<NEW_LINE>for (Map.Entry<Class<?>, Class<?>> codecEntry : codecByClass.entrySet()) {<NEW_LINE>Class<?> target = codecEn... | > codec = codecEntry.getValue(); |
665,156 | @Consumes(MediaType.MULTIPART_FORM_DATA)<NEW_LINE>public Response uploadArchiveZip(@FormDataParam("file") InputStream uploadedInputStream, @FormDataParam("file") FormDataContentDisposition fileDetail, @FormDataParam("directory") String directory) {<NEW_LINE>String zipFile = fileDetail.getFileName();<NEW_LINE>String out... | ? directory + "/" + fileName : fileName; |
1,739,458 | public void propertyChange(PropertyChangeEvent evt) {<NEW_LINE>Object source = evt.getSource();<NEW_LINE>MatchingObject mo;<NEW_LINE>if (source instanceof MatchingObject) {<NEW_LINE>mo = (MatchingObject) source;<NEW_LINE>} else {<NEW_LINE>throw new IllegalArgumentException();<NEW_LINE>}<NEW_LINE>String pn = evt.getProp... | Object newVal = evt.getNewValue(); |
1,199,925 | public void onCreate(Bundle savedInstanceState) {<NEW_LINE>lastTheme = UserPreferences.getNoTitleTheme();<NEW_LINE>setTheme(lastTheme);<NEW_LINE>if (savedInstanceState != null) {<NEW_LINE>ensureGeneratedViewIdGreaterThan(savedInstanceState.getInt(KEY_GENERATED_VIEW_ID, 0));<NEW_LINE>}<NEW_LINE>super.onCreate(savedInsta... | .parseInt(lastFragment), null); |
1,161,930 | private MigrationPlan createMigrationPlan(ProcessEngine engine, ProcessDefinition oldDefinition, ProcessDefinition newDefinition) {<NEW_LINE>Map<String, String> processMap = migrationMap.get(newDefinition.getKey());<NEW_LINE>if (processMap == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>MigrationPlanBuilder planBu... | value = processMap.get(key); |
1,494,684 | public static void doPaint(Graphics2D g, int width, int height, float arc, boolean symmetric) {<NEW_LINE>float bw = UIUtil.isUnderDefaultMacTheme() ? JBUI.scale(3) : BW.getFloat();<NEW_LINE>float lw = UIUtil.isUnderDefaultMacTheme() ? JBUI.scale(UIUtil.isRetina(g) ? 0.5f : 1.0f) : LW.getFloat();<NEW_LINE>g.setRendering... | moveTo(width - rightInnerArc, bw); |
276,982 | public String replaceValue(final String matchValue, final MacroRequest macroRequestInfo) throws MacroParseException {<NEW_LINE>if (StringUtil.isEmpty(matchValue)) {<NEW_LINE>return "";<NEW_LINE>}<NEW_LINE>final String[] colonParts = matchValue.split(":");<NEW_LINE>if (colonParts.length < 3) {<NEW_LINE>throw new MacroPa... | getErrorInformation().toDebugStr()); |
42,875 | public CompletableFuture<Object> processCommand(NbCodeLanguageClient client, String command, List<Object> arguments) {<NEW_LINE>if (arguments.size() > 2) {<NEW_LINE>String uri = gson.fromJson(gson.toJson(arguments.get(0)), String.class);<NEW_LINE>QuickPickItem type = gson.fromJson(gson.toJson(arguments.get(1)), QuickPi... | format("Illegal number of arguments received for command: %s", command))); |
1,271,610 | private void updateData() {<NEW_LINE>int index = lCategories.getSelectedIndex();<NEW_LINE>if (index < 0)<NEW_LINE>return;<NEW_LINE>List<AttributeSet> categories = getCategories(currentProfile);<NEW_LINE>AttributeSet category = categories.get(lCategories.getSelectedIndex());<NEW_LINE>SimpleAttributeSet c = new SimpleAtt... | .getSelectedColor((ColorComboBox) cbBackground); |
1,536,744 | private ApdError prnSendData(String fileName) {<NEW_LINE>Common.logger.add(new LogEntry(LogEntry.PB_LOG_DEBUG, "Start"));<NEW_LINE>ApdError res = ApdError.ERR_OK;<NEW_LINE>// mLastMessage = Common.mainActivity.getString(RhoExtManager.getResourceId("string","apd_ok"));<NEW_LINE>byte[] buffer = null;<NEW_LINE>InputStream... | (LogEntry.PB_LOG_ERROR, mLastMessage)); |
1,618,358 | private void init() {<NEW_LINE>List<String> strSrcList = new ArrayList<>();<NEW_LINE>List<Pattern> patSrcList = new ArrayList<>();<NEW_LINE>List<String> <MASK><NEW_LINE>List<String> superTypesInternalList = new ArrayList<>();<NEW_LINE>List<String> strAnoList = new ArrayList<>();<NEW_LINE>List<Pattern> patAnoList = new ... | superTypesList = new ArrayList<>(); |
653,047 | private void checkChimaeraWingTeleport() {<NEW_LINE>Player player = mcMMOPlayer.getPlayer();<NEW_LINE>Location previousLocation = mcMMOPlayer.getTeleportCommenceLocation();<NEW_LINE>if (player.getLocation().distanceSquared(previousLocation) > 1.0 || !player.getInventory().containsAtLeast(ChimaeraWing.getChimaeraWing(0)... | .getInventory().getItemInMainHand(); |
232,042 | private static final void growHashSet(final WritableMemory wmem, final int tgtLgCouponArrSize) {<NEW_LINE>final int tgtArrSize = 1 << tgtLgCouponArrSize;<NEW_LINE>final int[] tgtCouponIntArr = new int[tgtArrSize];<NEW_LINE>final int oldLen = 1 << extractLgArr(wmem);<NEW_LINE>for (int i = 0; i < oldLen; i++) {<NEW_LINE>... | HASH_SET_INT_ARR_START, tgtCouponIntArr, 0, tgtArrSize); |
1,767,718 | public void finishInstall() {<NEW_LINE>WizardOperator installerOper = installer();<NEW_LINE>installerOper.next();<NEW_LINE>// "I accept the terms..."<NEW_LINE>String acceptLabel = Bundle.getStringTrimmed("org.netbeans.modules.autoupdate.ui.wizards.Bundle", "LicenseApprovalPanel.cbAccept.text");<NEW_LINE>JCheckBoxOperat... | ), restartNowLabel, true, true); |
966,119 | final DescribeEventCategoriesResult executeDescribeEventCategories(DescribeEventCategoriesRequest describeEventCategoriesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeEventCategoriesRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LIN... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
1,009,546 | /* (non-Javadoc)<NEW_LINE>* @see org.netbeans.modules.netserver.websocket.WebSocketHandlerClient75#sendHandshake()<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void sendHandshake() {<NEW_LINE>StringBuilder builder = new StringBuilder(Utils.GET);<NEW_LINE>builder.append(' ');<NEW_LINE>builder.append(getWebSocketPoint(... | getUri().getHost()); |
387,630 | // TODO: Remove on Vespa 8<NEW_LINE>@SuppressWarnings("removal")<NEW_LINE>private CreateVisitorMessage createMessage(VisitorIterator.BucketProgress bucket) {<NEW_LINE>CreateVisitorMessage msg = new CreateVisitorMessage(params.getVisitorLibrary(), getNextVisitorId(), <MASK><NEW_LINE>msg.getTrace().setLevel(params.getTra... | receiver.getConnectionSpec(), dataDestination); |
1,769,064 | public static QueryDeviceServiceDataResponse unmarshall(QueryDeviceServiceDataResponse queryDeviceServiceDataResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryDeviceServiceDataResponse.setRequestId(_ctx.stringValue("QueryDeviceServiceDataResponse.RequestId"));<NEW_LINE>queryDeviceServiceDataResponse.setSuccess(_ctx.b... | ("QueryDeviceServiceDataResponse.Data.List[" + i + "].Name")); |
1,731,598 | public void run() {<NEW_LINE>org.bitcoinj.core.Context.propagate(Constants.CONTEXT);<NEW_LINE>while (running.get()) {<NEW_LINE>try (// start a blocking call, and return only on success or exception<NEW_LINE>final BluetoothSocket socket = listeningSocket.accept();<NEW_LINE>final DataInputStream is = new DataInputStream(... | int msgLength = is.readInt(); |
380,735 | protected int bindKeyFields(SinkRecord record, int index) throws SQLException {<NEW_LINE>switch(pkMode) {<NEW_LINE>case NONE:<NEW_LINE>if (!fieldsMetadata.keyFieldNames.isEmpty()) {<NEW_LINE>throw new AssertionError();<NEW_LINE>}<NEW_LINE>break;<NEW_LINE>case KAFKA:<NEW_LINE>{<NEW_LINE>assert fieldsMetadata.keyFieldNam... | iterator().next()); |
261,895 | private GridFieldVO createVO(MBrowseField field, boolean isTo, int windowNo) {<NEW_LINE>// Create Field<NEW_LINE>GridFieldVO voBase = GridFieldVO.createStdField(field.getCtx(), windowNo, 0, 0, 0, false, false, false);<NEW_LINE>String uniqueName = field.getAD_View_Column().getColumnName() + (isTo ? "_To" : "");<NEW_LINE... | .DefaultValue2 = field.getDefaultValue2(); |
1,395,018 | private void handleCPUProfiling() {<NEW_LINE>if (internalChange)<NEW_LINE>return;<NEW_LINE>if (cpuButton.isSelected()) {<NEW_LINE>internalChange = true;<NEW_LINE>memoryButton.setSelected(false);<NEW_LINE>jdbcButton.setSelected(false);<NEW_LINE>locksButton.setSelected(false);<NEW_LINE>internalChange = false;<NEW_LINE>if... | modifyCurrentProfiling(cpuSettingsSupport.getSettings()); |
102,635 | protected JCoFunction doJCoFunction(Object[] objs) {<NEW_LINE>JCoFunction function = null;<NEW_LINE>do {<NEW_LINE>function = m_rfcManager.getFunction(objs<MASK><NEW_LINE>if (function == null) {<NEW_LINE>Logger.error("getFunction" + objs[0] + " false");<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>// check params is key:val;<NEW... | [0].toString()); |
738,785 | private void printHeader(String documentTitle) throws IOException {<NEW_LINE>PDDocumentInformation info = document.getDocumentInformation();<NEW_LINE>info.setCreator("BoofCV");<NEW_LINE>info.setTitle(documentTitle);<NEW_LINE>float pageWidth = (float) paper.convertWidth(units) * UNIT_TO_POINTS;<NEW_LINE>float pageHeight... | (pageWidth - patternWidth) / 4); |
1,588,771 | public ApiResponse<File> favoritesUpdateWithHttpInfo(String id, UpdateFavoriteRequest updateFavoriteRequest) throws ApiException {<NEW_LINE>Object localVarPostBody = updateFavoriteRequest;<NEW_LINE>// verify the required parameter 'id' is set<NEW_LINE>if (id == null) {<NEW_LINE>throw new ApiException(400, "Missing the ... | ] localVarContentTypes = { "application/json", "text/json" }; |
1,221,522 | // NOTE: We assume the component type matches the list<NEW_LINE>@SuppressWarnings({ "unchecked", "rawtypes" })<NEW_LINE>private Object toArray(Class<?> componentType, List<Object> values) {<NEW_LINE>if (componentType == boolean.class) {<NEW_LINE>return Booleans.toArray((Collection) values);<NEW_LINE>} else if (componen... | .toArray((Collection) values); |
925,547 | private static Path createTempFile(String libraryName) throws IOException {<NEW_LINE>int sep = libraryName.lastIndexOf('/');<NEW_LINE>String name = (sep >= 0) ? libraryName.substring(sep + 1) : libraryName;<NEW_LINE>int dot = name.lastIndexOf('.');<NEW_LINE>String prefix = ((dot >= 0) ? name.substring(0, dot) : name) +... | (tempDir.resolve(s)); |
1,377,775 | public void encodeChildren(FacesContext facesContext, UIComponent component) throws IOException {<NEW_LINE>if (facesContext == null) {<NEW_LINE>throw new NullPointerException("context");<NEW_LINE>}<NEW_LINE>if (component == null) {<NEW_LINE>throw new NullPointerException("component");<NEW_LINE>}<NEW_LINE>Map<String, Ob... | info("Component with resourceName " + resourceName + " and child components found. Child components will be ignored."); |
622,332 | public void saveParam(ScannerParam param) {<NEW_LINE>// Set Injectable Targets<NEW_LINE>int targets = 0;<NEW_LINE>if (this.getChkInjectableQueryString().isSelected()) {<NEW_LINE>targets |= ScannerParam.TARGET_QUERYSTRING;<NEW_LINE>}<NEW_LINE>param.setAddQueryParam(getChkAddQueryParam().isSelected());<NEW_LINE>if (this.... | getChkScanNullJsonValues().isSelected()); |
1,513,167 | public io.kubernetes.client.proto.V1Policy.PodDisruptionBudgetStatus buildPartial() {<NEW_LINE>io.kubernetes.client.proto.V1Policy.PodDisruptionBudgetStatus result = new io.kubernetes.client.<MASK><NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_LINE>if (((from_bitField0_ & 0x00000001) ==... | proto.V1Policy.PodDisruptionBudgetStatus(this); |
378,310 | public Set<FileObject> instantiate(ProgressHandle handle) throws IOException {<NEW_LINE>handle.start();<NEW_LINE>handle.progress(Bundle.NewSampleWizardIterator_progress_creating());<NEW_LINE>Set<FileObject> files = new HashSet<>();<NEW_LINE>// project dir<NEW_LINE>File projectDir = FileUtil.normalizeFile((File) wizardD... | nodeJsSupport = NodeJsSupport.forProject(project); |
873,699 | public Object eval(Reader reader, ScriptContext ctx) throws ScriptException {<NEW_LINE>ctx.setAttribute("context", ctx, ScriptContext.ENGINE_SCOPE);<NEW_LINE>initFreeMarkerConfiguration(ctx);<NEW_LINE>String fileName = getFilename(ctx);<NEW_LINE>boolean outputAsString = isStringOutputMode(ctx);<NEW_LINE>Writer out;<NEW... | MyTemplate) template).conf = conf; |
393,349 | public DescribeWorkspaceImagesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeWorkspaceImagesResult describeWorkspaceImagesResult = new DescribeWorkspaceImagesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurren... | class).unmarshall(context)); |
1,410,281 | WritableMap createDataChannel(String label, ReadableMap config) {<NEW_LINE>DataChannel.Init init = new DataChannel.Init();<NEW_LINE>if (config != null) {<NEW_LINE>if (config.hasKey("id")) {<NEW_LINE>init.id = config.getInt("id");<NEW_LINE>}<NEW_LINE>if (config.hasKey("ordered")) {<NEW_LINE>init.ordered = config.getBool... | protocol = config.getString("protocol"); |
1,037,012 | public static Pair<List<String>, List<String>> classifyTablesByPrefixPartitionColumns(String schemaName, int prefixPartColCnt, String tableGroupName, String baseTableName) {<NEW_LINE>PartitionInfoManager partInfoMgr = OptimizerContext.getContext(schemaName).getPartitionInfoManager();<NEW_LINE>TableGroupInfoManager tgMg... | baseTblPartInfo.equals(partInfo, prefixPartColCnt); |
989,417 | private void saveAttachmentToFile() {<NEW_LINE>int index = cbContent.getSelectedIndex();<NEW_LINE><MASK><NEW_LINE>if (m_attachment.getEntryCount() < index)<NEW_LINE>return;<NEW_LINE>String fileName = getFileName(index);<NEW_LINE>String ext = fileName.substring(fileName.lastIndexOf('.'));<NEW_LINE>log.config("Ext=" + ex... | log.info("index=" + index); |
132,227 | public Classifications predictProba(String text, int topK, String labelPrefix) {<NEW_LINE>int cap = topK != -1 ? topK : 10;<NEW_LINE>ArrayList<String> labels = new ArrayList<>(cap);<NEW_LINE>ArrayList<Float> probs = new ArrayList<>(cap);<NEW_LINE>int size = FastTextLibrary.LIB.predictProba(getHandle(), <MASK><NEW_LINE>... | text, topK, labels, probs); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.