idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,337,924 | public Iterable fetchFromIndexes(OClass oClass, OCommandContext ctx) {<NEW_LINE>List<OAndBlock> flattenedConditions = flatten();<NEW_LINE>if (flattenedConditions == null || flattenedConditions.size() == 0) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Set<OIndex> indexes = oClass.getIndexes();<NEW_LINE>List<OIndex> bestI... | conditions = getEqualityOperations(condition, ctx); |
303,832 | public List<ValidateError> validate() {<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(this.hash, convLabelName("Hash"));<NEW_LINE>if (error !=... | ValidatorFactory.getInstance(Validator.INTEGER); |
1,447,186 | private static void outputStylesheets(File directory, Extraction extraction) throws IOException {<NEW_LINE>// ERRS css<NEW_LINE>PrintWriter out = new PrintWriter(new FileWriter(new <MASK><NEW_LINE>out.println(".tf_legend { border-style: dashed; border-width: 2px; padding: 10px; padding-top: 0ex; float: right; margin:2e... | File(directory, DOC_ERRS_CSS_FNAME))); |
1,494,947 | private void fillSourceComponentsCombo() {<NEW_LINE>FormModel formModel = getFormModel();<NEW_LINE>List<RADComponent> nonvisualList = formModel.getNonVisualComponents();<NEW_LINE>List<RADComponent> visualList = formModel.getVisualComponents();<NEW_LINE>RADComponent topcomp = formModel.getTopRADComponent();<NEW_LINE>if ... | Collections.sort(visualList, c); |
1,838,773 | protected void handleFieldInits(ArrayList<FieldDecl> fieldInits) {<NEW_LINE>Iterator<FieldDecl> fieldInitsIt = fieldInits.iterator();<NEW_LINE>while (fieldInitsIt.hasNext()) {<NEW_LINE>polyglot.ast.FieldDecl field = fieldInitsIt.next();<NEW_LINE>String fieldName = field.name();<NEW_LINE>polyglot.ast.Expr initExpr = fie... | soot.jimple.ConditionExpr) sootExpr); |
1,581,808 | public static AlleleFrequencyCalculator makeCalculator(final DragstrParams dragstrParms, final int period, final int repeats, final int ploidy, final double snpHeterozygosity, final double scale) {<NEW_LINE>final double api = dragstrParms.api(period, repeats);<NEW_LINE>final double log10IndelFreq = api * -.1;<NEW_LINE>... | log10RefFreq = MathUtils.log10OneMinusPow10(log10IndelFreq); |
934,660 | public void beforeTemplateFinished(final TemplateState templateState, Template template) {<NEW_LINE>try {<NEW_LINE>final TextResult <MASK><NEW_LINE>myInsertedName = value != null ? value.toString() : null;<NEW_LINE>TextRange range = templateState.getCurrentVariableRange();<NEW_LINE>final int currentOffset = myEditor.ge... | value = templateState.getVariableValue(PRIMARY_VARIABLE_NAME); |
704,083 | private Mono<Response<Void>> deleteWithResponseAsync(String resourceGroupName, String integrationAccountName, String partnerName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (this.client.getSubscriptionId() == null) {<NEW_LINE>return Mono.error... | error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); |
644,754 | // @checkstyle-disable-check : AbbreviationAsWordInNameCheck<NEW_LINE>protected // @checkstyle-enable-check : AbbreviationAsWordInNameCheck<NEW_LINE>PKIXBuilderParameters // @checkstyle-enable-check : AbbreviationAsWordInNameCheck<NEW_LINE>newPKIXBuilderParameters(// @checkstyle-enable-check : AbbreviationAsWordInNameC... | System.setProperty("com.sun.security.enableCRLDP", "true"); |
1,243,550 | ArrayList<Geometry> collect_geometries_to_union(int dim) {<NEW_LINE>ArrayList<Geometry> batch_to_union = new ArrayList<Geometry>();<NEW_LINE>ArrayList<Map.Entry<Integer, Bin_type>> entriesToRemove = new ArrayList<Map.Entry<Integer, Bin_type>>();<NEW_LINE>Set<Map.Entry<Integer, Bin_type>> set = m_union_bins.get(dim).ent... | bin.back_pair().geom); |
14,232 | public String visit(ASTNode.RestrictExpr node) {<NEW_LINE>ZQLExtensionContext context = ZQLContext.createZQLExtensionContext();<NEW_LINE>try {<NEW_LINE>for (RestrictByExprExtensionPoint extp : pluginRgty.getExtensionList(RestrictByExprExtensionPoint.class)) {<NEW_LINE>String ret = extp.restrictByExpr(context, node);<NE... | String srcTargetName = ZQLContext.peekQueryTargetInventoryName(); |
1,057,688 | private Hover createHoverWithContent(List<Tuple2<LiveRequestMapping, SpringProcessLiveData>> mappingMethods) throws Exception {<NEW_LINE>StringBuilder contentVal = new StringBuilder();<NEW_LINE>for (int i = 0; i < mappingMethods.size(); i++) {<NEW_LINE>Tuple2<LiveRequestMapping, SpringProcessLiveData> mappingMethod = m... | = new String[] { "" }; |
1,438,344 | public static Collection<RegressionExecution> executions() {<NEW_LINE>ArrayList<RegressionExecution> execs = new ArrayList<>();<NEW_LINE>execs.add(new ContextKeySegmentedPatternFilter());<NEW_LINE>execs.add(new ContextKeySegmentedJoinRemoveStream());<NEW_LINE>execs.add(new ContextKeySegmentedSelector());<NEW_LINE>execs... | .add(new ContextKeySegmentedInvalid()); |
722,359 | public static ClientCredentialsProvider bootstrapClientAuthenticator(KeycloakDeployment deployment) {<NEW_LINE><MASK><NEW_LINE>Map<String, Object> clientCredentials = deployment.getResourceCredentials();<NEW_LINE>String authenticatorId;<NEW_LINE>if (clientCredentials == null || clientCredentials.isEmpty()) {<NEW_LINE>a... | String clientId = deployment.getResourceName(); |
951,033 | public static void actool(Config config, File partialInfoPlist, File inDir, File outDir) throws IOException {<NEW_LINE>List<Object> opts = new ArrayList<>();<NEW_LINE>String appIconSetName = null;<NEW_LINE>String launchImagesName = null;<NEW_LINE>final String appiconset = "appiconset";<NEW_LINE>final String launchimage... | launchImagesName = FilenameUtils.getBaseName(fileName); |
660,965 | // Run some tests<NEW_LINE>public static void main(String[] args) {<NEW_LINE>// If you want to check your Gremlin version, uncomment the next line<NEW_LINE>// System.out.println("Gremlin version is: " + Gremlin.version());<NEW_LINE>RouteSearch rs = new RouteSearch();<NEW_LINE>boolean loaded = rs.loadGraph("air-routes.g... | System.out.println("\nSorry, no routes were found, try more stops"); |
429,794 | public static void showSelectedColor(String name, BufferedImage image, float hue, float saturation) {<NEW_LINE>Planar<GrayF32> input = ConvertBufferedImage.convertFromPlanar(image, null, true, GrayF32.class);<NEW_LINE>Planar<GrayF32> hsv = input.createSameShape();<NEW_LINE>// Convert into HSV<NEW_LINE>ColorHsv.rgbToHsv... | H = hsv.getBand(0); |
1,620,445 | private void tryValidateSettings(TargetingFilterSettings settings) {<NEW_LINE>String paramName = "";<NEW_LINE>String reason = "";<NEW_LINE>if (settings.getAudience() == null) {<NEW_LINE>paramName = AUDIENCE;<NEW_LINE>reason = REQUIRED_PARAMETER;<NEW_LINE>throw new TargetingException(paramName + " : " + reason);<NEW_LIN... | get(index).getRolloutPercentage(); |
1,268,492 | public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "@public @buseventtype create json schema JsonEvent (c0 Map);\n" + "@name('s0') select * from JsonEvent#keepall;\n";<NEW_LINE>env.compileDeploy(epl).addListener("s0");<NEW_LINE>Object[][] namesAndTypes = new Object[][] { { "c0", Map.class } };<NEW_LINE>... | .NAME, SupportEventTypeAssertionEnum.TYPE)); |
749,710 | private BuiltQuery<?> createMaterializedView() {<NEW_LINE>StringBuilder query = new StringBuilder();<NEW_LINE>Table baseTable = schemaTable();<NEW_LINE>Set<String> baseTablePkColumnNames = <MASK><NEW_LINE>Set<String> mvColumnNames = names(createColumns);<NEW_LINE>// This will throw if one of column is not unknown in th... | names(baseTable.primaryKeyColumns()); |
1,358,878 | final GetVpcAttachmentResult executeGetVpcAttachment(GetVpcAttachmentRequest getVpcAttachmentRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getVpcAttachmentRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
885,559 | public void marshall(LogGroup logGroup, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (logGroup == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(logGroup.getLogGroupName(), LOGGROUPNAME_BINDING);<NEW_LINE>... | e.getMessage(), e); |
211,662 | public boolean loadOrDoWork(final StorableProperties properties) {<NEW_LINE>ExecutorCompletionService completionService = new ExecutorCompletionService<>(threadPool);<NEW_LINE>int counter = 0;<NEW_LINE>final AtomicBoolean prepared = new AtomicBoolean(false);<NEW_LINE>for (final PrepareCoreLandmarks plm : preparations) ... | format(new Date())); |
754,511 | private void checkBlock4RestTemplate(Class<?> blockClass, String blockMethod, String beanName, String type) {<NEW_LINE>if (blockClass == void.class && !StringUtils.hasLength(blockMethod)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (blockClass != void.class && !StringUtils.hasLength(blockMethod)) {<NEW_LINE>log.error("{}... | getName(), blockMethod, argsStr); |
749,416 | public void updated(Dictionary<String, ?> config) throws ConfigurationException {<NEW_LINE>if (config != null) {<NEW_LINE>// to override the default refresh interval one has to add a<NEW_LINE>// parameter to openhab.cfg like <bindingName>:refresh=<intervalInMs><NEW_LINE>logger.debug("Loading zibase configuration");<NEW... | String) config.get("refresh"); |
1,798,176 | public void run(TaskMonitor monitor) {<NEW_LINE>try {<NEW_LINE>List<DomainFile> versionedFiles = new ArrayList<>();<NEW_LINE>if (!gatherVersionedFiles(monitor, versionedFiles)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>//<NEW_LINE>// This task uses the monitor in a dual mode. Each sub-task will control the<NEW_LINE>// pr... | failedCheckouts = new ArrayList<>(); |
556,210 | private void calculateVisibleArea(PlayerView view) {<NEW_LINE>if (visibleAreaMap.get(view) != null && visibleAreaMap.get(view).visibleArea.getBounds().getCenterX() != 0.0d) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Cache it<NEW_LINE>VisibleAreaMeta meta = new VisibleAreaMeta();<NEW_LINE><MASK><NEW_LINE>visibleAreaMap.p... | meta.visibleArea = new Area(); |
777,077 | public static final int printUsage(String msg) {<NEW_LINE>if (null != msg) {<NEW_LINE>System.out.println(msg);<NEW_LINE>System.out.println();<NEW_LINE>}<NEW_LINE>System.out.println("generate -t hive -p <pages> -v <visits> " + "[-b <base path>] [-n <data name>] " + "[-m <num maps>] [-r <num reduces>] " + "[-o sequence] ... | "generate -t bayes -p <pages> [-w <words>] -g <num classes>" + "[-b <base path>] [-n <data name>] " + "[-m <num maps>] [-r <num reduces>] " + "[-o sequence] [-c <codec>]"); |
1,609,218 | public static MapValue convert(ExecutionPlanDescription plan) {<NEW_LINE>boolean hasProfilerStatistics = plan.hasProfilerStatistics();<NEW_LINE>int size = hasProfilerStatistics ? 10 : 4;<NEW_LINE>MapValueBuilder out = new MapValueBuilder(size);<NEW_LINE>out.add("operatorType", utf8Value(plan.getName()));<NEW_LINE>out.a... | (plan.getArguments())); |
1,114,106 | public StatCounter merge(StatCounter o) {<NEW_LINE>if (o == null || o.count == 0) {<NEW_LINE>return this;<NEW_LINE>}<NEW_LINE>if (o == this) {<NEW_LINE>return merge(o.clone());<NEW_LINE>}<NEW_LINE>if (this.count == 0) {<NEW_LINE>count = o.count;<NEW_LINE>runningMean = o.runningMean;<NEW_LINE>runningMean = o.runningM2;<... | / (count + o.count); |
744,711 | public Builder mergeFrom(io.kubernetes.client.proto.V2beta1Autoscaling.HorizontalPodAutoscalerSpec other) {<NEW_LINE>if (other == io.kubernetes.client.proto.V2beta1Autoscaling.HorizontalPodAutoscalerSpec.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (other.hasScaleTargetRef()) {<NEW_LINE>mergeScaleTargetRef(o... | metrics_.addAll(other.metrics_); |
1,297,359 | private static Map<TypeAlias, jnr.ffi.NativeType> buildTypeMap() {<NEW_LINE>Map<TypeAlias, jnr.ffi.NativeType> m = new EnumMap<TypeAlias, jnr.ffi.NativeType>(TypeAlias.class);<NEW_LINE>m.put(TypeAlias.int8_t, NativeType.SCHAR);<NEW_LINE>m.put(TypeAlias.u_int8_t, NativeType.UCHAR);<NEW_LINE>m.put(TypeAlias.int16_t, Nati... | TypeAlias.int64_t, NativeType.SLONGLONG); |
288,956 | final StopInferenceSchedulerResult executeStopInferenceScheduler(StopInferenceSchedulerRequest stopInferenceSchedulerRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(stopInferenceSchedulerRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "StopInferenceScheduler"); |
823,656 | public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {<NEW_LINE>try {<NEW_LINE>monitor.subTask(Messages.GithubForkWizard_ForkSubTaskName);<NEW_LINE>IGithubRepository repo = ghManager.fork(owner, repoName, organization);<NEW_LINE>// Now clone the repo!<NEW_LINE>CloneJob job = ... | InvocationTargetException(new CoreException(status)); |
1,335,456 | public PostTimeline crawlWordpress(String blogURL, BufferedReader br) {<NEW_LINE>Post blogPost = null;<NEW_LINE>PostTimeline blogList = new PostTimeline(this.order);<NEW_LINE>Document blogHTML = null;<NEW_LINE>Elements articles = null;<NEW_LINE>Elements articleList_title = null;<NEW_LINE>Elements articleList_content = ... | .parse(bufferedReaderToString(br)); |
430,133 | public void channelRead0(ChannelHandlerContext ctx, FullHttpRequest req) throws Exception {<NEW_LINE>if (HttpUtil.is100ContinueExpected(req)) {<NEW_LINE>ctx.write(new DefaultFullHttpResponse(HTTP_1_1, CONTINUE, ctx.alloc().buffer(0)));<NEW_LINE>}<NEW_LINE>boolean keepAlive = HttpUtil.isKeepAlive(req);<NEW_LINE>ByteBuf ... | ) + " (" + establishApproach + ")"); |
873,048 | public void printPropertyInformation() {<NEW_LINE>if (LOG.isLoggable(Level.INFO)) {<NEW_LINE>LOG.log(Level.INFO, "Common Directories: ");<NEW_LINE>LOG.log(Level.INFO, "Root Directory - " + this.getFileProperty(DIR_COMPONENT_ROOT).getAbsolutePath());<NEW_LINE>LOG.log(Level.INFO, "Result Directory - " +... | log(Level.INFO, "User-input properties files: "); |
434,342 | public static UpdateExperimentStatusResponse unmarshall(UpdateExperimentStatusResponse updateExperimentStatusResponse, UnmarshallerContext _ctx) {<NEW_LINE>updateExperimentStatusResponse.setRequestId(_ctx.stringValue("UpdateExperimentStatusResponse.requestId"));<NEW_LINE>Result result = new Result();<NEW_LINE>result.se... | + "].config[" + j + "].experimentValue")); |
884,434 | public void handle(UAVHttpMessage data) {<NEW_LINE>String storeName = data.getRequest(DataStoreProtocol.DATASTORE_NAME);<NEW_LINE>AbstractDataStore store = DataStoreFactory.getInstance().get(storeName);<NEW_LINE>if (store != null) {<NEW_LINE>if (!store.isStarted()) {<NEW_LINE>store.start();<NEW_LINE>if (!store.isStarte... | putResponse(UAVHttpMessage.ERR, warnMsg); |
1,486,864 | private boolean hasSchemaAnnotationHandler() {<NEW_LINE>int expectedHandlersNumber = ((DefaultConfiguration) _handlerJarPath).getAllDependencies().size();<NEW_LINE>// skip if no handlers configured<NEW_LINE>if (expectedHandlersNumber == 0) {<NEW_LINE>getLogger().info("no schema annotation handlers configured for schema... | SchemaAnnotationHandlerClassUtil.checkAnnotationClassNumber(_handlerClassNames, expectedHandlersNumber); |
244,345 | private List<TaggedData> tagData(Map<String, Object> d, Context context) {<NEW_LINE>List<TaggedData> taggedDataList = new ArrayList<>();<NEW_LINE>Metrics metrics = context.getMetricsRegistry().getMetric(new MetricGroupId("mql"));<NEW_LINE>Collection<Query> queries = MQLQueryManager.getInstance().getRegisteredQueries();... | Query query = it.next(); |
1,245,048 | private List<TaskCompleted> list(EffectivePerson effectivePerson, Business business, Integer adjustPage, Integer adjustPageSize) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(TaskCompleted.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<TaskCo... | cq.from(TaskCompleted.class); |
1,268,553 | private void emitLookUpBufferAccess(SPIRVModule module, SPIRVId heapBaseAddrId, SPIRVId frameBaseAddrId, SPIRVId frameId, SPIRVId heap_base, SPIRVId frame_base, SPIRVAssembler asm) {<NEW_LINE>blockScope.add(new SPIRVOpStore(heapBaseAddrId, heap_base, new SPIRVOptionalOperand<>(SPIRVMemoryAccess.Aligned(new SPIRVLiteral... | primitives.getPtrToCrossWorkGroupPrimitive(SPIRVKind.OP_TYPE_INT_64); |
134,341 | private PluginOperationResult executeUpdate() throws Exception {<NEW_LINE>List<String> updateablePlugins = findUpdateCandidates();<NEW_LINE>List<String> erroneousPlugins = Lists.newArrayList();<NEW_LINE>List<String> delayedPlugins = Lists.newArrayList();<NEW_LINE>// update only a specific plugin if it is updatable and ... | () ? " --snapshot" : "")); |
936,592 | private void searchServices(FileObject folder, Map<ServiceType, DataObject> services) {<NEW_LINE>FileObject[] fobjs = folder.getChildren();<NEW_LINE>for (int i = 0; i < fobjs.length; i++) {<NEW_LINE>if (!fobjs[i].isValid())<NEW_LINE>continue;<NEW_LINE>if (fobjs[i].isFolder()) {<NEW_LINE>searchServices(fobjs[i], service... | dobj.getCookie(InstanceCookie.class); |
1,850,804 | private Mono<Response<FeatureResultInner>> unregisterWithResponseAsync(String resourceProviderNamespace, String featureName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")... | getSubscriptionId(), accept, context); |
1,177,084 | public com.amazonaws.services.timestreamquery.model.InvalidEndpointException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.timestreamquery.model.InvalidEndpointException invalidEndpointException = new com.amazonaws.services.<MASK><NEW_LINE>int originalDepth = ... | timestreamquery.model.InvalidEndpointException(null); |
62,681 | final DeleteOriginEndpointResult executeDeleteOriginEndpoint(DeleteOriginEndpointRequest deleteOriginEndpointRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteOriginEndpointRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | endClientExecution(awsRequestMetrics, request, response); |
1,402,038 | public static Vector apply(LongFloatVector v1, LongDummyVector v2, Binary op) {<NEW_LINE>LongFloatVector res;<NEW_LINE>if (v1.isSparse()) {<NEW_LINE>if (op.isKeepStorage()) {<NEW_LINE>throw new AngelException("operation is not support!");<NEW_LINE>} else {<NEW_LINE>// multi-rehash<NEW_LINE>LongFloatVectorStorage newSto... | v2.get(i))); |
1,344,448 | private <T> ClassLoader filterFromServices(RegisterKey key, List<Tuple2<T, PluginDescriptor>> loadedServices, Function<Tuple2<T, PluginDescriptor>, String> versionGetter) throws IOException {<NEW_LINE>if (!loadedServices.isEmpty()) {<NEW_LINE>ClassLoader hit = null;<NEW_LINE>if (key.getVersion() == null) {<NEW_LINE>hit... | .getClass().getClassLoader(); |
1,078,909 | final ExportClientVpnClientConfigurationResult executeExportClientVpnClientConfiguration(ExportClientVpnClientConfigurationRequest exportClientVpnClientConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(exportClientVpnClientConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRe... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
752,723 | public ActionNotificationExportEntity postActionNotificationExports(ActionNotificationExportsBody body) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/action_notification_exports";<NEW_LINE>// query params<NEW_LINE>List<Pair> loc... | HashMap<String, Object>(); |
25,618 | public static Appendable render(final String input, Appendable target) throws IOException {<NEW_LINE>int i = 0;<NEW_LINE>int j, k;<NEW_LINE>while (true) {<NEW_LINE>j = input.indexOf(BEGIN_TOKEN, i);<NEW_LINE>if (j == -1) {<NEW_LINE>if (i == 0) {<NEW_LINE>target.append(input);<NEW_LINE>return target;<NEW_LINE>}<NEW_LINE... | input.substring(j, k); |
378,457 | public void main() {<NEW_LINE>RVec2 gTexCoord = (RVec2) getGlobal(DefaultShaderVar.G_TEXTURE_COORD);<NEW_LINE>RVec4 gColor = (RVec4) getGlobal(DefaultShaderVar.G_COLOR);<NEW_LINE>RFloat uTime = (RFloat) getGlobal(DefaultShaderVar.U_TIME);<NEW_LINE>// -- float x = vTextureCoord.s;<NEW_LINE>RFloat x = new RFloat("x");<NE... | .multiply(120.f)))); |
488,528 | private static JsonAlbertaPatient patientToPatientBPartner(@NonNull final Patient patient) {<NEW_LINE>final JsonAlbertaPatient albertaPatient = new JsonAlbertaPatient();<NEW_LINE>albertaPatient.setIsTransferPatient(patient.isChangeInSupplier());<NEW_LINE>albertaPatient.setIVTherapy(patient.isIvTherapy());<NEW_LINE>// d... | ().getCopaymentToDate())); |
1,145,561 | private void cmd_report(boolean isSummaryChanged) {<NEW_LINE>KeyNamePair pp = (KeyNamePair) comboReport.getSelectedItem();<NEW_LINE>if (pp == null)<NEW_LINE>return;<NEW_LINE>//<NEW_LINE>setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));<NEW_LINE>MPrintFormat pf = null;<NEW_LINE>int AD_PrintFormat_ID = pp.getKey... | fillComboReport(pf.get_ID()); |
1,224,726 | protected void channelRead0(ChannelHandlerContext ctx, FullHttpResponse msg) throws Exception {<NEW_LINE>Integer streamId = msg.headers().getInt(HttpConversionUtil.<MASK><NEW_LINE>if (streamId == null) {<NEW_LINE>logger.error("HttpResponseHandler unexpected message received: " + msg);<NEW_LINE>return;<NEW_LINE>}<NEW_LI... | ExtensionHeaderNames.STREAM_ID.text()); |
1,838,245 | public void visit(MethodDeclaration node) {<NEW_LINE>while (ts.moveNext() && (ts.token().id() == PHPTokenId.WHITESPACE || isComment(ts.token())) && lastIndex < ts.index()) {<NEW_LINE>addFormatToken(formatTokens);<NEW_LINE>}<NEW_LINE>if (includeWSBeforePHPDoc) {<NEW_LINE>formatTokens.add(new FormatToken(FormatToken.Kind... | , lastWhitespace.getOldText())); |
1,659,387 | public List<String> listByUnitDayYearAndMonth(List<String> name, String year, String month) throws Exception {<NEW_LINE>if (name == null || name.size() == 0) {<NEW_LINE>logger.error(new UnitNamesEmptyException());<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>EntityManager em = this.entityManagerContainer().get(StatisticUn... | setMaxResults(62).getResultList(); |
1,163,764 | public static UserRepresentation toRepresentation(KeycloakSession session, RealmModel realm, UserModel user) {<NEW_LINE>UserRepresentation rep = new UserRepresentation();<NEW_LINE>rep.setId(user.getId());<NEW_LINE>String providerId = StorageId.resolveProviderId(user);<NEW_LINE>rep.setOrigin(providerId);<NEW_LINE>rep.se... | copy.remove(UserModel.USERNAME); |
697,317 | private void processQueuedLoadsInner() {<NEW_LINE>Map<Pair<BlockPos, Level>, IImmersiveConnectable> toProcess = queuedLoads;<NEW_LINE><MASK><NEW_LINE>for (Entry<Pair<BlockPos, Level>, IImmersiveConnectable> load : toProcess.entrySet()) {<NEW_LINE>IImmersiveConnectable iic = load.getValue();<NEW_LINE>Level level = load.... | queuedLoads = new LinkedHashMap<>(); |
1,780,484 | public void onBindViewHolder(@NonNull GenericAdapter.ViewHolder holder, int position) {<NEW_LINE>Gallery ent = <MASK><NEW_LINE>if (ent == null)<NEW_LINE>return;<NEW_LINE>ImageDownloadUtility.loadImage(context, ent.getThumbnail(), holder.imgView);<NEW_LINE>holder.pages.setText(String.format(Locale.US, "%d", ent.getPageC... | positionToGallery(holder.getBindingAdapterPosition()); |
770,289 | private final <T> boolean cas0(final String key, final int exp, final GetsResponse<T> getsResponse, final CASOperation<T> operation, final Transcoder<T> transcoder, final byte[] keyBytes, final boolean noreply) throws TimeoutException, InterruptedException, MemcachedException {<NEW_LINE>if (operation == null) {<NEW_LIN... | throw new NoValueException("Null GetsResponse for key=" + key); |
1,660,610 | void allSlotsInOptionalInfoDo() throws CorruptDataException {<NEW_LINE>U32Pointer optionalInfo = J9ROMClassHelper.optionalInfo(romClass);<NEW_LINE>SelfRelativePointer cursor = SelfRelativePointer.cast(optionalInfo);<NEW_LINE>if (romClass.optionalFlags().anyBitsIn(J9NonbuilderConstants.J9_ROMCLASS_OPTINFO_SOURCE_FILE_NA... | cursor = cursor.add(1); |
393,044 | private Color applyMappings(Color color) {<NEW_LINE>if (colorMap != null) {<NEW_LINE>Map<Color, Color> map = (darkColorMap != null && isDarkLaf()) ? darkColorMap : colorMap;<NEW_LINE>Color newColor = map.get(color);<NEW_LINE>if (newColor != null)<NEW_LINE>return newColor;<NEW_LINE>}<NEW_LINE>if (rgb2keyMap != null) {<N... | () & 0xff000000)) : newColor; |
276,353 | private void loadNode378() {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.CertificateGroupFolderType_DefaultApplicationGroup_TrustList_Writable, new QualifiedName(0, "Writable"), new LocalizedText("en", "Writable"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), n... | .expanded(), false)); |
1,333,090 | public Set<Pair<WorkerInfo, SerializableVoid>> selectExecutors(ReplicateConfig config, List<WorkerInfo> jobWorkerInfoList, SelectExecutorsContext context) throws Exception {<NEW_LINE>Preconditions.checkArgument(!jobWorkerInfoList.isEmpty(), "No worker is available");<NEW_LINE>long blockId = config.getBlockId();<NEW_LIN... | > result = Sets.newHashSet(); |
831,237 | static long nativeValueOf(Object parameter) {<NEW_LINE>long value = 0;<NEW_LINE>if (parameter != null) {<NEW_LINE>Class<? extends Object> type = parameter.getClass();<NEW_LINE>// type tests are sorted in order of decreasing (expected) likelihood<NEW_LINE>if (type == CudaBuffer.class) {<NEW_LINE>value = ((CudaBuffer) pa... | ) parameter).floatValue()); |
627,855 | public void bindViewHolder(FlexibleAdapter adapter, ViewHolder viewHolder, int position, List<Object> payloads) {<NEW_LINE>viewHolder.accountColorIndicator.setBackgroundColor(getAccountColorIndicator());<NEW_LINE>viewHolder.accountColorIndicatorBack.setBackgroundColor(getAccountColorIndicatorBack());<NEW_LINE>// viewHo... | .ic_notif_custom) : null, null); |
1,173,931 | public final void onEnable() {<NEW_LINE>MultiverseCore theCore = (MultiverseCore) this.getServer().getPluginManager().getPlugin("Multiverse-Core");<NEW_LINE>if (theCore == null) {<NEW_LINE>this.<MASK><NEW_LINE>this.getLogger().severe("Disabling!");<NEW_LINE>this.getServer().getPluginManager().disablePlugin(this);<NEW_L... | getLogger().severe("Core not found! The plugin dev needs to add a dependency!"); |
116,930 | static void createIndex(RollupJob job, ActionListener<AcknowledgedResponse> listener, PersistentTasksService persistentTasksService, Client client, Logger logger) {<NEW_LINE>CreateIndexRequest request = new CreateIndexRequest(job.getConfig().getRollupIndex());<NEW_LINE>try {<NEW_LINE>XContentBuilder mapping = createMap... | ().getId() + "]"; |
410,789 | public void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>context = this;<NEW_LINE>sharedPrefs = context.getSharedPreferences("com.klinker.android.twitter_world_preferences", 0);<NEW_LINE>settings = AppSettings.getInstance(this);<NEW_LINE>Utils.setUpTheme(context, settings)... | (R.string.lists)); |
1,597,114 | public UpdateApplicationResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UpdateApplicationResult updateApplicationResult = new UpdateApplicationResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LI... | class).unmarshall(context)); |
789,539 | public static void addResolverRequest(String host, HostNameToIPResolverListener l) {<NEW_LINE>byte[] bytes = textToNumericFormat(host);<NEW_LINE>if (bytes != null) {<NEW_LINE>try {<NEW_LINE>l.hostNameResolutionComplete(InetAddress.getByAddress(host, bytes));<NEW_LINE>return;<NEW_LINE>} catch (UnknownHostException e) {<... | syncResolve(req.getHost()); |
642,399 | public void run(RegressionEnvironment env) {<NEW_LINE>// declare<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy("@public create schema SomeType ()", path);<NEW_LINE>env.compileDeploy("@name('flow') create dataflow MyDataFlowOne " + "DefaultSupportSourceOp -> outstream<SomeType> {}" + "D... | CountDownLatch latchOne = new CountDownLatch(1); |
702,973 | public SearchGameSessionsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SearchGameSessionsResult searchGameSessionsResult = new SearchGameSessionsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonT... | String currentParentElement = context.getCurrentParentElement(); |
1,153,940 | // DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY<NEW_LINE>public static boolean canGetMonitorInfo(com.sun.jdi.VirtualMachine a) throws org.netbeans.modules.debugger.jpda.jdi.InternalExceptionWrapper, org.netbeans.modules.debugger.jpda.jdi.VMDisconnectedExceptionWrapper {<NEW_LINE>if (org.netbeans.modules.debugger.jp... | logCallEnd("com.sun.jdi.VirtualMachine", "canGetMonitorInfo", retValue); |
1,003,396 | private String checkAsymmetricBinding(AssertionInfoMap aim, String action, SoapMessage message, RequestData data) throws WSSecurityException {<NEW_LINE>AssertionInfo ai = PolicyUtils.getFirstAssertionByLocalname(aim, SPConstants.ASYMMETRIC_BINDING);<NEW_LINE>if (ai == null) {<NEW_LINE>return action;<NEW_LINE>}<NEW_LINE... | getSecurityPropertyValue(SecurityConstants.ENCRYPT_PROPERTIES, message); |
1,792,041 | public void handle() throws Exception {<NEW_LINE>logger.info("Full sql parameters: {}", sqlParameters);<NEW_LINE>logger.info("sql type : {}, datasource : {}, sql : {} , localParams : {},udfs : {},showType : {},connParams : {},varPool : {} ,query max result limit {}", sqlParameters.getType(), sqlParameters.getDatasourc... | collect(Collectors.toList()); |
1,344,582 | public void findPackages(char[] prefix, ISearchRequestor requestor, IPackageFragmentRoot[] moduleContext, boolean followRequires) {<NEW_LINE>this.nameLookup.seekPackageFragments(new String(prefix), true, new SearchableEnvironmentRequestor(requestor), moduleContext);<NEW_LINE>if (followRequires && this.knownModuleLocati... | AbstractModule) md).getRequiredModules(); |
532,036 | public void populateApplicationConfiguration(Document document) {<NEW_LINE>addFactory(document, "tag-handler-delegate-factory", "com.ibm.ws.jsf23.fat.cdi.common.managed.factories.CustomTagHandlerDelegateFactory");<NEW_LINE>addFactory(document, "exception-handler-factory", "com.ibm.ws.jsf23.fat.cdi.common.managed.factor... | (0).appendChild(a); |
1,494,975 | private HippyMap onUpdateAnimationProperty(int tagId, HippyRootView rootView, HippyMap props) {<NEW_LINE>// LogUtils.d("AnimationModule","dom updateNode node id : "+tagId+" onUpdateAnimationProperty width:" +props.get("width"));<NEW_LINE>if (props == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (props.contains... | useAnimation = props.getBoolean(USE_ANIMATION); |
1,186,537 | @Produces(MediaType.APPLICATION_JSON)<NEW_LINE>@Path("query/sql")<NEW_LINE>@ApiOperation(value = "Querying pinot using sql")<NEW_LINE>@ApiResponses(value = { @ApiResponse(code = 200, message = "Query response"), @ApiResponse(code = 500, message = "Internal Server Error") })<NEW_LINE>public void processSqlQueryGet(@ApiP... | put(Request.TRACE, traceEnabled); |
435,677 | private void missingEdgeHook(Target from, DependencyKind dependencyKind, Label to, NoSuchThingException e) {<NEW_LINE>boolean raiseError = false;<NEW_LINE>if (e instanceof NoSuchTargetException) {<NEW_LINE>NoSuchTargetException nste = (NoSuchTargetException) e;<NEW_LINE>raiseError = to.equals(nste.getLabel());<NEW_LINE... | e, dependencyKind.getAttribute()); |
670,250 | private Pass createPassInner(ProgramBuilder builder, IdMap map, ProgramDirectives programDirectives, PackDirectives packDirectives) {<NEW_LINE>CommonUniforms.addCommonUniforms(builder, map, packDirectives, updateNotifier);<NEW_LINE>Supplier<ImmutableSet<Integer>> flipped = () -> isBeforeTranslucent ? flippedAfterPrepar... | IrisSamplers.addShadowSamplers(customTextureSamplerInterceptor, shadowMapRenderer); |
261,149 | public void establishCsAccessSourceSet() {<NEW_LINE>final SourceSetContainer sourceSets = (SourceSetContainer) project.getProperties().get("sourceSets");<NEW_LINE>final SourceSet mainSourceSet = sourceSets.getByName(SourceSet.MAIN_SOURCE_SET_NAME);<NEW_LINE>// Create the 'csaccess' source set<NEW_LINE>final SourceSet c... | (mainSourceSet.getOutput())); |
525,118 | private void writeAllToBuffer(XMLStringBuffer xmlBuffer, ISuiteResult suiteResult) {<NEW_LINE>xmlBuffer.push(XMLReporterConfig.TAG_TEST, getSuiteResultAttributes(suiteResult));<NEW_LINE>Set<ITestResult> testResults = Sets.newHashSet();<NEW_LINE>ITestContext testContext = suiteResult.getTestContext();<NEW_LINE>addAllTes... | testResults, testContext.getPassedConfigurations()); |
74,253 | public JsonObject toJson(boolean withUniqueSessionId) {<NEW_LINE>JsonObject json = new JsonObject();<NEW_LINE>json.<MASK><NEW_LINE>json.addProperty("object", "recording");<NEW_LINE>json.addProperty("name", this.recordingProperties.name());<NEW_LINE>json.addProperty("outputMode", this.getOutputMode().name());<NEW_LINE>i... | addProperty("id", this.id); |
975,475 | public static void registerMBean(final PwmApplication pwmApplication) {<NEW_LINE>try {<NEW_LINE>final MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();<NEW_LINE>final ObjectName name = figureMBeanName(pwmApplication);<NEW_LINE>final Map<PwmAboutProperty, String> aboutMap = PwmAboutProperty.makeInfoBean(pwmA... | PwmAbout mbean = new PwmAbout(outputMap); |
249,721 | public synchronized RemoteFile listFile(String absolutePath) throws RemoteException {<NEW_LINE>assert absolutePath.startsWith(TransferFile.REMOTE_PATH_SEPARATOR) : "Not absolute path give but: " + absolutePath;<NEW_LINE>RemoteFile result = null;<NEW_LINE>try {<NEW_LINE>// #220675 - proftpd returns absolut pathname as n... | = new RemoteFileImpl(file, parentPath); |
1,191,855 | public void onReceive(Context context, Intent intent) {<NEW_LINE>this.context = context;<NEW_LINE>Settings settings = new Settings(context);<NEW_LINE>if (!settings.isEncryptedBackupBroadcastEnabled()) {<NEW_LINE>NotificationHelper.notify(context, Constants.NotificationChannel.BACKUP_FAILED, R.string.backup_receiver_tit... | backup_receiver_title_backup_failed, R.string.backup_receiver_custom_encryption_failed); |
1,849,887 | public String submitExecutableFlow(final ExecutableFlow exflow, final String userId) throws ExecutorManagerException {<NEW_LINE>if (exflow.isLocked()) {<NEW_LINE>// Skip execution for locked flows.<NEW_LINE>final String message = String.format("Flow %s for project %s is locked.", exflow.getId(), exflow.getProjectName()... | + exflow.getId() + ".submitFlow"; |
1,291,884 | void implicitReflectiveBeanClasses(BuildProducer<ReflectiveBeanClassBuildItem> reflectiveBeanClasses, BeanDiscoveryFinishedBuildItem beanDiscoveryFinished) {<NEW_LINE>DotName registerForReflection = DotName.createSimple(<MASK><NEW_LINE>for (BeanInfo classBean : beanDiscoveryFinished.beanStream().classBeans()) {<NEW_LIN... | RegisterForReflection.class.getName()); |
1,449,698 | protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_hex_to_ascii);<NEW_LINE>if (getIntent().hasExtra(DumpEditor.EXTRA_DUMP)) {<NEW_LINE>String[] dump = getIntent().getStringArrayExtra(DumpEditor.EXTRA_DUMP);<NEW_LINE>if (dump != nul... | s = System.getProperty("line.separator"); |
833,645 | public final T build(BeanResolutionContext resolutionContext, BeanContext context, BeanDefinition<T> definition, Map<String, Object> requiredArgumentValues) throws BeanInstantiationException {<NEW_LINE>requiredArgumentValues = requiredArgumentValues != null ? new LinkedHashMap<>(requiredArgumentValues) : Collections.em... | getType().isInstance(value); |
592,186 | public void enterNeighbor_block_rb_stanza(Neighbor_block_rb_stanzaContext ctx) {<NEW_LINE>_currentBlockNeighborAddressFamilies.clear();<NEW_LINE>_inBlockNeighbor = true;<NEW_LINE>// do no further processing for unsupported address families / containers<NEW_LINE>if (_currentPeerGroup == _dummyPeerGroup) {<NEW_LINE>pushP... | _currentDynamicIpPeerGroup = proc.addDynamicIpPeerGroup(prefix); |
769,581 | public void process(final File outputFile, final MLRegression method) {<NEW_LINE>final ReadCSV csv = new ReadCSV(getInputFilename().toString(), isExpectInputHeaders(), getFormat());<NEW_LINE>if (method.getInputCount() != this.inputCount) {<NEW_LINE>throw new AnalystError("This machine learning method has " + method.get... | final PrintWriter tw = analystPrepareOutputFile(outputFile); |
786,432 | public void computePairwiseGraph() {<NEW_LINE>System.out.println("----------------------------------------------------------------------------");<NEW_LINE>System.out.println("### Creating Pairwise");<NEW_LINE>var config = new ConfigGeneratePairwiseImageGraph();<NEW_LINE>GeneratePairwiseImageGraph generatePairwise = Fac... | = new File(workDirectory, "pairwise.yaml"); |
941,036 | @ReactiveTransactional<NEW_LINE>public Uni<Response> login(@RestForm String userName, @BeanParam WebAuthnLoginResponse webAuthnResponse, RoutingContext ctx) {<NEW_LINE>// Input validation<NEW_LINE>if (userName == null || userName.isEmpty() || !webAuthnResponse.isSet() || !webAuthnResponse.isValid()) {<NEW_LINE>return U... | userUni = User.findByUserName(userName); |
1,757,984 | public void init(ShardingTableHandler tableHandler, Map<String, Object> prot, Map<String, Object> ranges) {<NEW_LINE>this.table = tableHandler;<NEW_LINE>this.properties = prot;<NEW_LINE>this.ranges = ranges;<NEW_LINE>String startBeginDate = Objects.toString(prot.get("beginDate"));<NEW_LINE>String startEndDate = (String... | - beginDate) / partionTime) + 1; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.