idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,758,339 | private static void copyLiteral(byte[] input, int ipIndex, byte[] output, int opIndex, int length) throws CorruptionException {<NEW_LINE>assert length > 0;<NEW_LINE>assert ipIndex >= 0;<NEW_LINE>assert opIndex >= 0;<NEW_LINE>int spaceLeft = output.length - opIndex;<NEW_LINE>int readableBytes = input.length - ipIndex;<N... | ipIndex, output, opIndex, length); |
280,730 | public void testCriteriaQuery_char(TestExecutionContext testExecCtx, TestExecutionResources testExecResources, Object managedComponentObject) throws Throwable {<NEW_LINE>final String testName = getTestName();<NEW_LINE>// Verify parameters<NEW_LINE>if (testExecCtx == null || testExecResources == null) {<NEW_LINE>Assert.... | out.println("Object returned by query: " + findEntity); |
703,634 | public void visitDataMatrix(DataMatrixComponent dataMatrix) {<NEW_LINE>DataMatrixBean dataMatrixBean = new DataMatrixBean();<NEW_LINE>barcodeBean = dataMatrixBean;<NEW_LINE>evaluateDataMatrix(dataMatrix);<NEW_LINE>setBaseAttributes(dataMatrix);<NEW_LINE>if (dataMatrix.getShape() != null) {<NEW_LINE>dataMatrixBean.setSh... | ), dataMatrix.getMinSymbolWidth()); |
614,482 | public boolean serviceAdded(ServiceReference serviceRef, ContextHandler context) {<NEW_LINE>if (context == null || serviceRef == null)<NEW_LINE>return false;<NEW_LINE>if (context instanceof org.eclipse.jetty.webapp.WebAppContext)<NEW_LINE>// the ServiceWebAppProvider will deploy it<NEW_LINE>return false;<NEW_LINE>Strin... | .getProperty(Constants.SERVICE_ID)); |
1,206,987 | private // NOSONAR complexity<NEW_LINE>// NOSONAR complexity<NEW_LINE>void // NOSONAR complexity<NEW_LINE>addHeader(// NOSONAR complexity<NEW_LINE>Element element, // NOSONAR complexity<NEW_LINE>ManagedMap<String, Object> headers, ParserContext parserContext, String headerName, Element headerElement, String headerType,... | ).error("Only 'bean', 'script' or 'expression' can be defined as a sub-element", element); |
1,022,919 | private void processILeappFile(Content dataSource, Case currentCase, DataSourceIngestModuleProgress statusHelper, int filesProcessedCount, AbstractFile iLeappFile) {<NEW_LINE>statusHelper.progress(NbBundle.getMessage(this.getClass(), "ILeappAnalyzerIngestModule.processing.file", iLeappFile.getName()), filesProcessedCou... | format(System.currentTimeMillis()); |
1,162,571 | public static DescribeVulMachineListResponse unmarshall(DescribeVulMachineListResponse describeVulMachineListResponse, UnmarshallerContext context) {<NEW_LINE>describeVulMachineListResponse.setRequestId<MASK><NEW_LINE>describeVulMachineListResponse.setTotalCount(context.integerValue("DescribeVulMachineListResponse.Tota... | (context.stringValue("DescribeVulMachineListResponse.RequestId")); |
517,680 | // Rendering-type stuff<NEW_LINE>public void findHMDTextureSize() {<NEW_LINE>// Texture sizes<NEW_LINE>// pixelsPerDisplayPixel<NEW_LINE>float pixelScaling = 1.0f;<NEW_LINE>OVRSizei leftTextureSize = OVRSizei.malloc();<NEW_LINE>ovr_GetFovTextureSize(session, ovrEye_Left, fovPorts[ovrEye_Left], pixelScaling, leftTexture... | OVRSizei rightTextureSize = OVRSizei.malloc(); |
1,592,196 | static AnnotationTargetAllowed isAnnotationTargetAllowed(Annotation annotation, BlockScope scope, TypeBinding annotationType, int kind) {<NEW_LINE>// could be forward reference<NEW_LINE><MASK><NEW_LINE>if ((metaTagBits & TagBits.AnnotationTargetMASK) == 0) {<NEW_LINE>// does not specify any target restriction - all loc... | long metaTagBits = annotationType.getAnnotationTagBits(); |
834,750 | public Node toNode(AbstractWmlConversionContext context, FldSimpleModel model, Document doc) throws TransformerException {<NEW_LINE>String bookmarkId = model.getFldParameters().get(0);<NEW_LINE>Node content = model.getContent();<NEW_LINE>Node literalNode = null;<NEW_LINE>AbstractHyperlinkWriterModel hyperlinkModel = nu... | context, hyperlinkModel, content, doc); |
1,750,240 | public void clearDuplicateRefreshTokens() {<NEW_LINE>Query query = manager.createQuery("select a.jwt, count(1) as c from OAuth2RefreshTokenEntity a GROUP BY a.jwt HAVING count(1) > 1");<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>List<Object[]> resultList = query.getResultList();<NEW_LINE>List<JWT> <MASK><NEW_LINE... | values = new ArrayList<>(); |
1,269,601 | public void closeElement(String element, HashMap<String, String> attributes, String content, WarningSet warnings) throws SAXException {<NEW_LINE>super.closeElement(element, attributes, content, warnings);<NEW_LINE>try {<NEW_LINE>if (RocksimCommonConstants.OD.equals(element)) {<NEW_LINE>bodyTube.setOuterRadius(Double.pa... | (content) / RocksimCommonConstants.ROCKSIM_TO_OPENROCKET_LENGTH); |
1,228,370 | public ASTNode visitUsingClause(final UsingClauseContext ctx) {<NEW_LINE>if (null != ctx.tableName()) {<NEW_LINE>SimpleTableSegment result = (SimpleTableSegment) <MASK><NEW_LINE>if (null != ctx.alias()) {<NEW_LINE>result.setAlias((AliasSegment) visit(ctx.alias()));<NEW_LINE>}<NEW_LINE>return result;<NEW_LINE>}<NEW_LINE... | visit(ctx.tableName()); |
388,298 | public int showDirectoryFxDialog(final String method) {<NEW_LINE>try {<NEW_LINE>final Object directoryChooser = directoryChooserClass.getConstructor().newInstance();<NEW_LINE>// create a callable lambda<NEW_LINE>selectedFile = runLater(() -> {<NEW_LINE>// set window title<NEW_LINE>Method setTitleMethod = directoryChoos... | System.out.println(e); |
1,452,104 | public Aggregation toDruidAggregation(PlannerContext plannerContext, RowSignature rowSignature, VirtualColumnRegistry virtualColumnRegistry, RexBuilder rexBuilder, String name, AggregateCall aggregateCall, Project project, List<Aggregation> existingAggregations, boolean finalizeAggregations) {<NEW_LINE>final RexNode in... | StringUtils.format("%s:agg", name); |
1,378,428 | private static String findInstallArea() {<NEW_LINE>// NOI18N<NEW_LINE>String ia = System.getProperty("netbeans.home");<NEW_LINE>LOG.log(Level.FINE, "Home is {0}", ia);<NEW_LINE>// NOI18N<NEW_LINE>String rest = System.getProperty("netbeans.dirs");<NEW_LINE>if (rest != null) {<NEW_LINE>for (String c : rest.split(File.pat... | Level.FINE, "No change to prefix by {0}", c); |
1,194,569 | public int write(Tablet tablet) throws WriteProcessException {<NEW_LINE>int maxPointCount = 0, pointCount;<NEW_LINE>List<MeasurementSchema> timeseries = tablet.getSchemas();<NEW_LINE>for (int column = 0; column < timeseries.size(); column++) {<NEW_LINE>String measurementId = timeseries.get(column).getMeasurementId();<N... | lastTimeMap.put(measurementId, time); |
1,801,046 | private HeroicConfig config(LoadingComponent loading) throws Exception {<NEW_LINE>HeroicConfig.Builder builder = HeroicConfig.builder();<NEW_LINE>for (final HeroicProfile profile : profiles) {<NEW_LINE>log.info("Loading profile '{}' (params: {})", profile.description(), params);<NEW_LINE>final ExtraParameters p = profi... | ::merge).orElse(builder); |
1,219,074 | private void scanNonCollectableObjectsInternal(long memoryType) throws CorruptDataException {<NEW_LINE><MASK><NEW_LINE>while (regionIterator.hasNext()) {<NEW_LINE>GCHeapRegionDescriptor region = regionIterator.next();<NEW_LINE>if (new UDATA(region.getTypeFlags()).allBitsIn(memoryType)) {<NEW_LINE>GCObjectHeapIterator o... | GCHeapRegionIterator regionIterator = GCHeapRegionIterator.from(); |
755,349 | public DeleteFleetLocationsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DeleteFleetLocationsResult deleteFleetLocationsResult = new DeleteFleetLocationsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LI... | String currentParentElement = context.getCurrentParentElement(); |
485,301 | public Mono<AmqpReceiveLink> createConsumer(String linkName, String entityPath, Duration timeout, AmqpRetryPolicy retry, EventPosition eventPosition, ReceiveOptions options) {<NEW_LINE>Objects.requireNonNull(linkName, "'linkName' cannot be null.");<NEW_LINE>Objects.requireNonNull(entityPath, "'entityPath' cannot be nul... | Objects.requireNonNull(options, "'options' cannot be null."); |
1,629,672 | private Mono<Response<Flux<ByteBuffer>>> startAssessmentWithResponseAsync(String resourceGroupName, String sqlVirtualMachineName) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>... | error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null.")); |
1,766,487 | public boolean enforceEdge(int x, int y, ICause cause) throws ContradictionException {<NEW_LINE>assert cause != null;<NEW_LINE>boolean addX = !LB.containsNode(x);<NEW_LINE>boolean addY <MASK><NEW_LINE>if (UB.containsEdge(x, y)) {<NEW_LINE>if (LB.addEdge(x, y)) {<NEW_LINE>if (reactOnModification) {<NEW_LINE>delta.add(x,... | = !LB.containsNode(y); |
1,845,595 | public void validate(Object value) throws ValidationException {<NEW_LINE>if (value == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>MessageTools messages = AppBeans.get(MessageTools.NAME);<NEW_LINE>if (!(value instanceof String)) {<NEW_LINE>throw new ValidationException(messages.loadString(messagesPack, message));<NEW_L... | (SIZE_PATTERN).matcher(s); |
266,915 | protected void discover(final Class clazz, final String property) {<NEW_LINE>try {<NEW_LINE>Object[] params = {};<NEW_LINE>StringBuilder sb = new StringBuilder("is");<NEW_LINE>sb.append(property);<NEW_LINE>setMethod(getIntrospector().getMethod(clazz, sb.toString(), params));<NEW_LINE>if (!isAlive()) {<NEW_LINE>char c =... | .toString(), params)); |
500,251 | private void pushByFloatMath(int seen, Item it, Item it2) {<NEW_LINE>Item result;<NEW_LINE>@SpecialKind<NEW_LINE>int specialKind = Item.FLOAT_MATH;<NEW_LINE>if ((it.getConstant() instanceof Float) && it2.getConstant() instanceof Float) {<NEW_LINE>if (seen == FADD) {<NEW_LINE>result = new Item("F", Float.valueOf(constan... | ) + constantToFloat(it))); |
342,130 | private static void parseSearchProfileResultsEntry(XContentParser parser, Map<String, ProfileShardResult> searchProfileResults) throws IOException {<NEW_LINE>XContentParser.Token token = parser.currentToken();<NEW_LINE>ensureExpectedToken(XContentParser.Token.START_OBJECT, token, parser);<NEW_LINE>List<QueryProfileShar... | aggProfileShardResult = AggregationProfileShardResult.fromXContent(parser); |
1,185,494 | public static void apply(StringBuilder dest, CharSequence diff) {<NEW_LINE>try {<NEW_LINE>if (diff == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int pos = dest.length() - 1;<NEW_LINE>if (pos < 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// orig == ""<NEW_LINE>for (int i = 0; i < diff.length() / 2; i++) {<NEW_LINE>char ... | = (param - 'a' + 1); |
951,797 | public void urlVariableNameExistsInEnclosingAnnotation(Element element, ElementValidation validation) {<NEW_LINE>Set<String> validRestMethodAnnotationNames = new HashSet<>();<NEW_LINE>for (Class<? extends Annotation> validAnnotation : REST_ANNOTATION_CLASSES) {<NEW_LINE>validRestMethodAnnotationNames.add(validAnnotatio... | validation.addError(element, "%s annotated parameter is has no corresponding url variable"); |
255,056 | // invalidateIt<NEW_LINE>@Override<NEW_LINE>public String prepareIt() {<NEW_LINE>log.info(toString());<NEW_LINE>m_processMsg = ModelValidationEngine.get().fireDocValidate(this, ModelValidator.TIMING_BEFORE_PREPARE);<NEW_LINE>if (m_processMsg != null)<NEW_LINE>return IDocument.STATUS_Invalid;<NEW_LINE>// Std Period open... | [] lines = getLines(true); |
899,154 | public void marshall(ResourceShareAssociation resourceShareAssociation, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (resourceShareAssociation == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(resourceShar... | resourceShareAssociation.getLastUpdatedTime(), LASTUPDATEDTIME_BINDING); |
1,017,348 | private void runTest(String testMethod, PrintWriter pw, HttpServletRequest req, HttpServletResponse resp) {<NEW_LINE>try {<NEW_LINE>Method testM = this.getClass().getDeclaredMethod(testMethod, new Class[] { Map.class, StringBuilder.class });<NEW_LINE>Map<String, String> m = new <MASK><NEW_LINE>Iterator itr = req.getPar... | HashMap<String, String>(); |
577,339 | public void addSingleJob(JobKey jobKey, TriggerKey triggerKey, Class jobClass, Date date, JobDataMap jobDataMap) {<NEW_LINE>try {<NEW_LINE>LogUtil.info("addSingleJob: " + triggerKey.getName() + "," + triggerKey.getGroup());<NEW_LINE>JobBuilder jobBuilder = JobBuilder.newJob(jobClass).withIdentity(jobKey);<NEW_LINE>if (... | e.getMessage(), e); |
1,029,176 | public static void registerFrameWithoutBoxingPlugins(InvocationPlugins plugins, MetaAccessProvider metaAccess, boolean canDelayIntrinsification, ConstantReflectionProvider constantReflection, KnownTruffleTypes types, EconomicSet<ResolvedJavaType> primitiveBoxingTypes) {<NEW_LINE>ResolvedJavaType frameWithoutBoxingType ... | JavaKind.Object, constantReflection, types); |
424,227 | private List<String> list(Business business, EffectivePerson effectivePerson) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(Portal.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<String> cq = cb.createQuery(String.class);<NEW_LINE>Root<Portal>... | get(Portal_.pcClient))); |
884,172 | private Symbol markupDescriptorEntry(Address entryAddr, boolean isGlobal, ElfLoadHelper elfLoadHelper) {<NEW_LINE>Program program = elfLoadHelper.getProgram();<NEW_LINE>// markup function descriptor (3 elements, 24-bytes)<NEW_LINE>Data refPtr = elfLoadHelper.createData(entryAddr, PointerDataType.dataType);<NEW_LINE>Dat... | getRelocationTable().getRelocation(refAddr); |
1,696,174 | private void fillTypeCandidates(SSAVar ssaVar) {<NEW_LINE>TypeSearchVarInfo varInfo = state.getVarInfo(ssaVar);<NEW_LINE>ArgType immutableType = ssaVar.getImmutableType();<NEW_LINE>if (immutableType != null) {<NEW_LINE>varInfo.markResolved(immutableType);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ArgType currentType = ssaVa... | (Collections.unmodifiableList(types)); |
899,521 | public static GetQuotaAlarmResponse unmarshall(GetQuotaAlarmResponse getQuotaAlarmResponse, UnmarshallerContext _ctx) {<NEW_LINE>getQuotaAlarmResponse.setRequestId(_ctx.stringValue("GetQuotaAlarmResponse.RequestId"));<NEW_LINE>QuotaAlarm quotaAlarm = new QuotaAlarm();<NEW_LINE>quotaAlarm.setAlarmId(_ctx.stringValue("Ge... | (_ctx.floatValue("GetQuotaAlarmResponse.QuotaAlarm.QuotaValue")); |
118,882 | public SdkHttpRequest modifyHttpRequest(Context.ModifyHttpRequest context, ExecutionAttributes executionAttributes) {<NEW_LINE>ChecksumSpecs checksumSpecs = HttpChecksumUtils.checksumSpecWithRequestAlgorithm(executionAttributes).orElse(null);<NEW_LINE>if (checksumSpecs == null || checksumSpecs.headerName() == null || !... | ).orElse(0L) : 0; |
965,621 | public static ItemStack fillItem(Level world, int requiredAmount, ItemStack stack, FluidStack availableFluid) {<NEW_LINE>FluidStack toFill = availableFluid.copy();<NEW_LINE>toFill.setAmount(requiredAmount);<NEW_LINE>availableFluid.shrink(requiredAmount);<NEW_LINE>if (stack.getItem() == Items.GLASS_BOTTLE && canFillGlas... | .POTION), Potions.WATER); |
994,252 | final DescribeRecipeResult executeDescribeRecipe(DescribeRecipeRequest describeRecipeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeRecipeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
284,202 | private static void handleMultipleImpl(List<String> interfaceClasses, List<Object> value) throws Exception {<NEW_LINE>List<Object> arrays = interfaceClasses.stream().map(c -> {<NEW_LINE>try {<NEW_LINE>return Array.newInstance(Class.forName(c), value.size());<NEW_LINE>} catch (ClassNotFoundException e) {<NEW_LINE>throw ... | ) value.get(i)); |
630,065 | public static serverObjects respond(@SuppressWarnings("unused") final RequestHeader header, final serverObjects post, final serverSwitch env) {<NEW_LINE>// return variable that accumulates replacements<NEW_LINE><MASK><NEW_LINE>final serverObjects prop = new serverObjects();<NEW_LINE>// get segment<NEW_LINE>Segment inde... | final Switchboard sb = (Switchboard) env; |
1,141,692 | public void newStreamWithData() throws Exception {<NEW_LINE>HTTP2Client http2Client = new HTTP2Client();<NEW_LINE>http2Client.start();<NEW_LINE>// tag::newStreamWithData[]<NEW_LINE>SocketAddress serverAddress = new InetSocketAddress("localhost", 8080);<NEW_LINE>CompletableFuture<Session> sessionCF = http2Client.connect... | ), buffer2, true))); |
410,471 | protected void doStart() throws Exception {<NEW_LINE>if (!_dsProvided) {<NEW_LINE>boolean blankCustomnamespace = <MASK><NEW_LINE>boolean blankCustomHost = StringUtil.isBlank(getHost());<NEW_LINE>boolean blankCustomProjectId = StringUtil.isBlank(getProjectId());<NEW_LINE>if (blankCustomnamespace && blankCustomHost && bl... | StringUtil.isBlank(getNamespace()); |
1,354,567 | protected void performAction(final File repository, final File[] roots, final VCSContext context) {<NEW_LINE>RepositoryInfo info = RepositoryInfo.getInstance(repository);<NEW_LINE>info.refresh();<NEW_LINE>if (!canCommit(repository, info)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final GitRepositoryState state = info.getR... | final GitUser user = identifyUser(repository); |
1,845,786 | public List<String> autoDetectEncoding(byte[] rawtext) {<NEW_LINE>scores[GB2312] = gb2312_probability(rawtext);<NEW_LINE>scores[GBK] = gbk_probability(rawtext);<NEW_LINE>scores[GB18030] = gb18030_probability(rawtext);<NEW_LINE>scores[HZ] = hz_probability(rawtext);<NEW_LINE>scores[BIG5] = big5_probability(rawtext);<NEW_... | [EUC_KR] = euc_kr_probability(rawtext); |
1,014,360 | public Object execute(CommandLine commandLine) throws Exception {<NEW_LINE>String file = commandLine.getValue(Options.FILE_OPTION);<NEW_LINE>String projectName = commandLine.getValue(Options.PROJECT_OPTION);<NEW_LINE>// only refresh the file.<NEW_LINE>if (!commandLine.hasOption(Options.VALIDATE_OPTION)) {<NEW_LINE>// g... | JavaScriptUtils.getJavaScriptUnit(projectName, file); |
564,064 | protected boolean matchesRegistrationContext(String layer, String appContext, RegistrationContext context) {<NEW_LINE>boolean match = false;<NEW_LINE>if (context != null) {<NEW_LINE>String ctxLayer = context.getMessageLayer();<NEW_LINE><MASK><NEW_LINE>if (ctxLayer != null && ctxId != null) {<NEW_LINE>// layer & appCont... | String ctxId = context.getAppContext(); |
397,504 | public static String remainingTime(Context context, long time_s) {<NEW_LINE>// Time in unit x<NEW_LINE>int time_x;<NEW_LINE>// Time not counted in the number in unit x<NEW_LINE>int remaining_seconds;<NEW_LINE>// Time in the unit smaller than x<NEW_LINE>int remaining;<NEW_LINE>Resources res = context.getResources();<NEW... | ((float) remaining_seconds / TIME_MINUTE); |
1,473,794 | public StaticObject toGuestComponent(Meta meta, ObjectKlass klass) {<NEW_LINE>assert meta.getJavaVersion().java16OrLater();<NEW_LINE>RuntimeConstantPool pool = klass.getConstantPool();<NEW_LINE>StaticObject component = meta.java_lang_reflect_RecordComponent.allocateInstance();<NEW_LINE>Symbol<Name> nameSymbol = pool.sy... | ))) : StaticObject.NULL); |
826,869 | private void buildLeafClusters(int split, FiniteProgress progress) {<NEW_LINE>final Logging log = getLogger();<NEW_LINE>final DBIDVar tmp = DBIDUtil.newVar();<NEW_LINE>final <MASK><NEW_LINE>// Process merges backwards, starting at the split point (less<NEW_LINE>// allocations). We build a map (merge number -> cluster n... | int n = merges.size(); |
1,597,825 | public RationalNumbersRobust minus(RationalNumbersRobust b) {<NEW_LINE>assert this.numerator * b.denominator <= Integer.MAX_VALUE : ASSERT_AVOIDING_OVERFLOW_MESSAGE;<NEW_LINE>assert b.numerator * this.denominator <= Integer.MAX_VALUE : ASSERT_AVOIDING_OVERFLOW_MESSAGE;<NEW_LINE>assert this.numerator * b<MASK><NEW_LINE>... | .denominator >= Integer.MIN_VALUE : ASSERT_AVOIDING_OVERFLOW_MESSAGE; |
1,287,885 | private void initRootModules(LookupEnvironment environment, FileSystem fileSystem) {<NEW_LINE>Map<String, String> map = new HashMap<>();<NEW_LINE>for (String m : this.rootModules) {<NEW_LINE>ModuleBinding mod = environment.getModule(m.toCharArray());<NEW_LINE>if (mod == null) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>throw ne... | getModule(m.toCharArray()); |
451,483 | public IRubyObject to_str(ThreadContext context) {<NEW_LINE>if (message == null)<NEW_LINE>return context.nil;<NEW_LINE>final Ruby runtime = context.runtime;<NEW_LINE>RubyString description = null;<NEW_LINE>boolean singleton = false;<NEW_LINE>if (object == context.nil) {<NEW_LINE>// "nil"<NEW_LINE>description = RubyNil.... | .anyToString().asString(); |
1,052,220 | public static ExecutionStatus tryCatchException(Exception e) {<NEW_LINE>ExecutionStatus responseResult = new ExecutionStatus();<NEW_LINE>if (e instanceof QueryProcessException) {<NEW_LINE>responseResult.setMessage(e.getMessage());<NEW_LINE>responseResult.setCode(((QueryProcessException) e).getErrorCode());<NEW_LINE>} e... | setMessage(e.getMessage()); |
1,405,951 | public void run(WorkingCopy workingCopy) throws IOException {<NEW_LINE>workingCopy.toPhase(JavaSource.Phase.ELEMENTS_RESOLVED);<NEW_LINE>TypeElement typeElement = workingCopy.getElements().getTypeElement(className);<NEW_LINE>// NO18N<NEW_LINE>String methodName = "get" + Utils.makeJavaIdentifierPart(Utils.jndiNameToCame... | (datasourceReferenceName, false, null)); |
374,062 | public static DevInterceptorInfo from(InterceptorInfo interceptor, CompletedApplicationClassPredicateBuildItem predicate) {<NEW_LINE>boolean isApplicationBean = predicate.<MASK><NEW_LINE>Set<Name> bindings = new HashSet<>();<NEW_LINE>for (AnnotationInstance binding : interceptor.getBindings()) {<NEW_LINE>bindings.add(N... | test(interceptor.getBeanClass()); |
701,812 | public void execute() {<NEW_LINE>ensureArgCount(2);<NEW_LINE>final String fullyQualifiedSegmentName = getArg(0);<NEW_LINE>final String segmentStoreHost = getArg(1);<NEW_LINE>@Cleanup<NEW_LINE>CuratorFramework zkClient = createZKClient();<NEW_LINE>@Cleanup<NEW_LINE>AdminSegmentHelper adminSegmentHelper = instantiateAdmi... | f.apply(chunk))); |
1,740,050 | void postProcessAnnotations() {<NEW_LINE>Class<? extends Servlet<MASK><NEW_LINE>if (clazz == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Process RunAs<NEW_LINE>if (wcd.getRunAsIdentity() == null) {<NEW_LINE>String roleName = runAsRoleName;<NEW_LINE>if (roleName == null && clazz.isAnnotationPresent(RunAs.class)) {<N... | > clazz = wrapper.getServletClass(); |
1,799,731 | public AssetModelHierarchy unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AssetModelHierarchy assetModelHierarchy = new AssetModelHierarchy();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDep... | class).unmarshall(context)); |
1,344 | public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {<NEW_LINE><MASK><NEW_LINE>// noinspection ConstantConditions<NEW_LINE>mRecyclerView = getView().findViewById(R.id.recycler_view);<NEW_LINE>mLayoutManager = new StaggeredGridLayoutManager(2, StaggeredGridLayoutManager.VERTICAL);<NEW_LINE... | super.onViewCreated(view, savedInstanceState); |
962,049 | public static void main(String[] args) {<NEW_LINE>String master = "https://localhost:8443/";<NEW_LINE>String podName = null;<NEW_LINE>if (args.length == 2) {<NEW_LINE>master = args[0];<NEW_LINE>podName = args[1];<NEW_LINE>}<NEW_LINE>if (args.length == 1) {<NEW_LINE>podName = args[0];<NEW_LINE>}<NEW_LINE>Config config =... | o, l)), executorService); |
23,023 | private void loadNode1060() {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.NamespacesType_NamespaceIdentifier_Placeholder_NamespacePublicationDate, new QualifiedName(0, "NamespacePublicationDate"), new LocalizedText("en", "NamespacePublicationDate"), LocalizedText.NULL_VALUE, UInteger... | this.nodeManager.addNode(node); |
1,202,670 | public void buildFieldSpecifications() {<NEW_LINE>Map<String, Integer> baseFieldToIndexMap = new HashMap<>();<NEW_LINE>this.typeState = stateEngine.getTypeState(type);<NEW_LINE>matchFieldSpecs <MASK><NEW_LINE>for (int i = 0; i < matchFields.length; i++) {<NEW_LINE>matchFieldSpecs[i] = getHollowHashIndexField(typeState,... | = new HollowHashIndexField[matchFields.length]; |
1,557,943 | private void validatePath(PathFragment rootRelativePath, ArtifactRoot root) {<NEW_LINE>Preconditions.checkArgument<MASK><NEW_LINE>Preconditions.checkArgument(rootRelativePath.isAbsolute() == root.getRoot().isAbsolute(), rootRelativePath);<NEW_LINE>Preconditions.checkArgument(!rootRelativePath.containsUplevelReferences(... | (!root.isSourceRoot()); |
1,805,385 | protected BrokeredIdentityContext exchangeExternalUserInfoValidationOnly(EventBuilder event, MultivaluedMap<String, String> params) {<NEW_LINE>String subjectToken = params.getFirst(OAuth2Constants.SUBJECT_TOKEN);<NEW_LINE>if (subjectToken == null) {<NEW_LINE>event.detail(Details.REASON, OAuth2Constants.SUBJECT_TOKEN + ... | REASON, OAuth2Constants.SUBJECT_TOKEN_TYPE + " invalid"); |
803,391 | public void execute(SensorContext context) {<NEW_LINE>Set<String> reports = new HashSet<>(Arrays.asList(context.config().<MASK><NEW_LINE>reports.addAll(Arrays.asList(context.config().getStringArray(JavaScriptPlugin.LCOV_REPORT_PATHS_ALIAS)));<NEW_LINE>logIfUsedProperty(context, JavaScriptPlugin.LCOV_REPORT_PATHS);<NEW_... | getStringArray(JavaScriptPlugin.LCOV_REPORT_PATHS))); |
1,115,829 | public JFreeChart createChart(ChartContext chartContext) throws JRException {<NEW_LINE>this.chartContext = chartContext;<NEW_LINE>this.fontUtil = FontUtil.<MASK><NEW_LINE>JFreeChart jfreeChart = null;<NEW_LINE>switch(getChart().getChartType()) {<NEW_LINE>case JRChart.CHART_TYPE_AREA:<NEW_LINE>jfreeChart = createAreaCha... | getInstance(chartContext.getJasperReportsContext()); |
649,592 | public ObjectTypeKey unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ObjectTypeKey objectTypeKey = new ObjectTypeKey();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<... | )).unmarshall(context)); |
1,215,073 | public void draw(ZoneRenderer renderer, Graphics2D g, Rectangle bounds) {<NEW_LINE>createShape(renderer.getScale());<NEW_LINE>int offU = getOffU(renderer);<NEW_LINE>int offV = getOffV(renderer);<NEW_LINE>int count = 0;<NEW_LINE>Object oldAntiAlias = SwingUtil.useAntiAliasing(g);<NEW_LINE>g.setColor(new Color(getZone().... | g, u + offsetU, v); |
214,497 | private static void tryAssertionSortedMinMaxBy(RegressionEnvironment env, boolean soda, AtomicInteger milestone) {<NEW_LINE>String[] fields = "maxbyeveru,minbyeveru,sortedb".split(",");<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String eplDeclare = "@public create table varagg (" + "maxbyeveru maxbye... | tryInvalidCompile(path, "into table varagg select maxby(intPrimitive) as maxbyeveru from SupportBean#length(2)", "Failed to validate select-clause expression 'maxby(intPrimitive)': When specifying into-table a sort expression cannot be provided ["); |
1,740,145 | public int[] exclusiveTime(int n, List<String> logs) {<NEW_LINE>Stack<Integer> stack = new Stack<Integer>();<NEW_LINE>int[] result = new int[n];<NEW_LINE>String[] current = logs.get(0).split(":");<NEW_LINE>stack.push(Integer.parseInt(current[0]));<NEW_LINE>int i = 1;<NEW_LINE>int previous = Integer.parseInt(current[2])... | parseInt(current[0])); |
458,164 | public void run(RegressionEnvironment env) {<NEW_LINE>String text = "@name('s0') select irstream * from SupportMarketDataBean#length(3)#weighted_avg(price, volume)";<NEW_LINE>env.compileDeployAddListenerMileZero(text, "s0");<NEW_LINE>env.sendEventBean(makeBean(10, 1000));<NEW_LINE>env.assertPropsNV("s0", new Object[][]... | { { "average", 10.666666666666666 } }); |
91,372 | public void writeValue(ObjectValue objectValue, ValueFields valueFields) {<NEW_LINE>EntityManagerSession entityManagerSession = Context.getCommandContext().getSession(EntityManagerSession.class);<NEW_LINE>if (entityManagerSession == null) {<NEW_LINE>throw new ProcessEngineException(<MASK><NEW_LINE>} else {<NEW_LINE>// ... | "Cannot set JPA variable: " + EntityManagerSession.class + " not configured"); |
1,724,381 | // ActionListener<NEW_LINE>@Override<NEW_LINE>public void actionPerformed(ActionEvent ev) {<NEW_LINE>Node[] nodes = tp.getExplorerManager().getSelectedNodes();<NEW_LINE>assert nodes != null && nodes.length > 0 : "Selected templates cannot be null or empty.";<NEW_LINE>Set<Node> nodes2open = getNodes2Open(nodes);<NEW_LIN... | ).lookup(OpenCookie.class); |
1,448,512 | protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>getWindow().setFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON, WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);<NEW_LINE>getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);<NEW_LINE>setContentV... | Handler(mThread.getLooper()); |
1,669,333 | public ParticleEffect openEffect(File file, boolean replaceCurrentWorkspace) {<NEW_LINE>try {<NEW_LINE>ParticleEffect loadedEffect = load(file.getAbsolutePath(), ParticleEffect.class, null, new ParticleEffectLoader.ParticleEffectLoadParameter(particleSystem.getBatches()));<NEW_LINE>loadedEffect = loadedEffect.copy();<N... | add(new ControllerData(controller)); |
1,401,993 | private static JSFunctionData createPromiseRejectFunctionImpl(JSContext context) {<NEW_LINE>class PromiseRejectRootNode extends JavaScriptRootNode implements AsyncHandlerRootNode {<NEW_LINE><NEW_LINE>@Child<NEW_LINE>private JavaScriptNode reasonNode;<NEW_LINE><NEW_LINE>@Child<NEW_LINE>private PropertyGetNode getPromise... | )).getRootNode() == this; |
1,578,349 | public ListWorldsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListWorldsResult listWorldsResult = new ListWorldsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = origina... | )).unmarshall(context)); |
1,447,729 | protected void layoutLayout() {<NEW_LINE>Rectangle size = getClientArea();<NEW_LINE>if (expanded) {<NEW_LINE>int y = size.height - SASH_HEIGHT - BORDER_HEIGHT - titleHeight - drawerHeight;<NEW_LINE>main.setBounds(0, 0, size.width, y);<NEW_LINE>sash.setBounds(0, y, size.width, SASH_HEIGHT);<NEW_LINE>sash.setVisible(true... | y, size.width, BORDER_HEIGHT); |
1,820,572 | public RuleMatch[] match(AnalyzedSentence sentence) {<NEW_LINE>List<RuleMatch> <MASK><NEW_LINE>AnalyzedTokenReadings[] tokens = sentence.getTokens();<NEW_LINE>int startTokenIdx = -1;<NEW_LINE>String tkns = "";<NEW_LINE>for (int i = 0; i < tokens.length; i++) {<NEW_LINE>String tokenStr = tokens[i].getToken();<NEW_LINE>i... | ruleMatches = new ArrayList<>(); |
1,473,294 | public static VibroMode eventsVibroMuc() {<NEW_LINE>String value = getNotifString(R.string.<MASK><NEW_LINE>if (Application.getInstance().getString(R.string.events_vibro_disable).equals(value)) {<NEW_LINE>return VibroMode.disabled;<NEW_LINE>} else if (Application.getInstance().getString(R.string.events_vibro_bydefault).... | events_vibro_muc_key, R.string.events_vibro_bydefault); |
1,734,419 | private boolean startProcess() {<NEW_LINE>log.fine(processInstance.toString());<NEW_LINE>boolean started = false;<NEW_LINE>// hengsin, bug [ 1633995 ]<NEW_LINE>boolean clientOnly = false;<NEW_LINE>if (!processInstance.getClassName().toLowerCase().startsWith(MRule.SCRIPT_PREFIX)) {<NEW_LINE>try {<NEW_LINE>Class<?> proce... | getCtx(), processInstance, transaction); |
275,517 | protected static Sequence fit(Matrix X, Matrix Y, double learning_rate, int iterrations) {<NEW_LINE>int n = X.getCols();<NEW_LINE>int m = X.getRows();<NEW_LINE>double[][] W = new double[n][1];<NEW_LINE>double b = 0;<NEW_LINE>Matrix WMatrix = new Matrix(W);<NEW_LINE>for (int i = 0; i < iterrations; i += 1) {<NEW_LINE>Ma... | .toSequence(null, true)); |
1,525,536 | private RelNode createOrPath(List<RelNode> paths, LogicalTableScan logicalTableScan) {<NEW_LINE>// To discover the same gsi merge them by or their predicates together is more efficient than union<NEW_LINE>List<RelNode> unionInputs = new ArrayList<>();<NEW_LINE>Map<String, RexNode> m = new LinkedHashMap<>();<NEW_LINE>Re... | get(path.getDigest()); |
510,078 | public boolean onPreferenceChange(Preference preference, Object newValue) {<NEW_LINE>int timeout = Util.objectToInt(newValue);<NEW_LINE>if (timeout > 0) {<NEW_LINE>Context context = preference.getContext();<NEW_LINE>boolean fromServer = coreKey.equals("delete_server_after");<NEW_LINE>int delCount = DcHelper.getContext(... | initAutodelFromCore()).show(); |
1,826,858 | public boolean apply(Game game, Ability source) {<NEW_LINE>Permanent creatureToExile = game.getPermanent(getTargetPointer().getFirst(game, source));<NEW_LINE>Permanent portcullis = game.<MASK><NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (portcullis != null && creatureToExile != nu... | getPermanent(source.getSourceId()); |
1,254,854 | public static DescribeExportImageInfoResponse unmarshall(DescribeExportImageInfoResponse describeExportImageInfoResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeExportImageInfoResponse.setRequestId(_ctx.stringValue("DescribeExportImageInfoResponse.RequestId"));<NEW_LINE>describeExportImageInfoResponse.setPageNumb... | ("DescribeExportImageInfoResponse.Images[" + i + "].CreationTime")); |
611,839 | private ContentValues createContentValuesBase(OCFile fileOrFolder) {<NEW_LINE>final ContentValues cv = new ContentValues();<NEW_LINE>cv.put(ProviderTableMeta.FILE_MODIFIED, fileOrFolder.getModificationTimestamp());<NEW_LINE>cv.put(ProviderTableMeta.FILE_MODIFIED_AT_LAST_SYNC_FOR_DATA, fileOrFolder.getModificationTimest... | FILE_PERMISSIONS, fileOrFolder.getPermissions()); |
11,560 | public void updateTask() {<NEW_LINE>EntityLivingBase entitylivingbase = attacker.getAttackTarget();<NEW_LINE>if (entitylivingbase == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>attacker.getLookHelper().setLookPositionWithEntity(entitylivingbase, 30.0F, 30.0F);<NEW_LINE>double distToTargetSq = attacker.getDistanceSq(en... | max(ticksToNextAttack - 1, 0); |
1,525,066 | private void addPropertiesSetups(File base, List<Setup> newSetups, int displayStatus) {<NEW_LINE>if (currentType == Setup.DIFFTYPE_REMOTE)<NEW_LINE>return;<NEW_LINE>DiffProvider diffAlgorithm = (DiffProvider) Lookup.getDefault().lookup(DiffProvider.class);<NEW_LINE>PropertiesClient client = new PropertiesClient(base);<... | = (diffs.length != 0); |
1,552,383 | public PushPhysicalPlan buildPushPhysicalPlan(final LogicalPlanNode logicalPlanNode, final Context context, final Optional<PushOffsetRange> offsetRange, final Optional<String> catchupConsumerGroup) {<NEW_LINE>final String catchupConsumerGroupId = getConsumerGroupId(catchupConsumerGroup);<NEW_LINE>PushDataSourceOperator... | = translateProjectNode((QueryProjectNode) currentLogicalNode); |
558,754 | public void onAuthErrorRtsp() {<NEW_LINE>runOnUiThread(new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>bStartStop.setText(getResources().getString<MASK><NEW_LINE>rtspCamera1.stopStream();<NEW_LINE>Toast.makeText(RtspActivity.this, "Auth error", Toast.LENGTH_SHORT).show();<NEW_LINE>if... | (R.string.start_button)); |
705,828 | private void markupGnuHashTable(TaskMonitor monitor) {<NEW_LINE>ElfDynamicTable dynamicTable = elf.getDynamicTable();<NEW_LINE>if (dynamicTable == null || !dynamicTable.containsDynamicValue(ElfDynamicType.DT_GNU_HASH)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>DataType dt = DWordDataType.dataType;<NEW_LINE>Address hashTab... | add(d.getLength()); |
896,245 | private DefaultMutableTreeNode createCertificateNodes(X509Certificate[] certs) {<NEW_LINE>DefaultMutableTreeNode certsNode = new DefaultMutableTreeNode();<NEW_LINE>Set<X509Certificate> originalSet = new TreeSet<>(new X509CertificateComparator());<NEW_LINE>Collections.addAll(originalSet, certs);<NEW_LINE>Set<X509Certifi... | issuerNode = findIssuer(cert, certsNode); |
1,801,588 | static void computeEq20(DMatrixRMaj X, DMatrixRMaj P, double[] output) {<NEW_LINE>final int N = X.numRows;<NEW_LINE>double a00 = 0, a01 = 0<MASK><NEW_LINE>for (int i = 0, index = 0; i < N; i++, index += 2) {<NEW_LINE>double x1 = X.data[index];<NEW_LINE>double x2 = X.data[index + 1];<NEW_LINE>double p1 = P.data[index];<... | , a10 = 0, a11 = 0; |
245,301 | public JSONObject topicSize(String clusterAlias, String topic) {<NEW_LINE>String jmx = "";<NEW_LINE>JMXConnector connector = null;<NEW_LINE>List<MetadataInfo> leaders = kafkaService.findKafkaLeader(clusterAlias, topic);<NEW_LINE>long tpSize = 0L;<NEW_LINE>for (MetadataInfo leader : leaders) {<NEW_LINE>String jni = kafk... | "Get topic size from jmx has error, msg is " + ex.getMessage()); |
1,297,137 | private static void registerCodeCompletion(LayerBuilder b, String mimeType) {<NEW_LINE>// NOI18N<NEW_LINE>instanceFile(b, "Editors/" + mimeType + "/CompletionProviders", null, CodeTemplateCompletionProvider.class, null).write();<NEW_LINE>// NOI18N<NEW_LINE>instanceFile(b, "Editors/" + mimeType + "/CompletionProviders",... | class, null).write(); |
891,762 | public void swipeWithEvent(NSEvent event) {<NEW_LINE>if (event.deltaX().doubleValue() == kSwipeGestureLeft) {<NEW_LINE>BrowserController.this.backButtonClicked(event.id());<NEW_LINE>} else if (event.deltaX().doubleValue() == kSwipeGestureRight) {<NEW_LINE>BrowserController.this.forwardButtonClicked(event.id());<NEW_LIN... | row.longValue() + 1); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.