text
stringlengths
9
39.2M
dir
stringlengths
26
295
lang
stringclasses
185 values
created_date
timestamp[us]
updated_date
timestamp[us]
repo_name
stringlengths
1
97
repo_full_name
stringlengths
7
106
star
int64
1k
183k
len_tokens
int64
1
13.8M
```xml <?xml version="1.0" encoding="UTF-8"?> <web-app version="3.0" xmlns="path_to_url" xmlns:xsi="path_to_url" xsi:schemaLocation="path_to_url path_to_url"> <display-name></display-name> <filter> <filter-name>wordFilter</filter-name> <filter-class>cn.hncu.filter.WordFilter</filter-class> </filter> <filter-mapping> <filter-name>wordFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <servlet> <servlet-name>NoteServlet</servlet-name> <servlet-class>cn.hncu.servlet.NoteServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>NoteServlet</servlet-name> <url-pattern>/NoteServlet</url-pattern> </servlet-mapping> <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> </web-app> ```
/content/code_sandbox/myWordsFilterWeb/WebRoot/WEB-INF/web.xml
xml
2016-04-25T16:39:57
2024-08-16T08:33:16
Java
chenhaoxiang/Java
1,250
243
```xml import {SQLConnection} from './SQLConnection'; import {PersonEntry} from './enitites/PersonEntry'; import {PersonDTO} from '../../../common/entities/PersonDTO'; import {Logger} from '../../Logger'; import {SQL_COLLATE} from './enitites/EntityUtils'; import {PersonJunctionTable} from './enitites/PersonJunctionTable'; import {IObjectManager} from './IObjectManager'; const LOG_TAG = '[PersonManager]'; export class PersonManager implements IObjectManager { persons: PersonEntry[] = null; /** * Person table contains denormalized data that needs to update when isDBValid = false */ private isDBValid = false; private static async updateCounts(): Promise<void> { const connection = await SQLConnection.getConnection(); await connection.query( 'UPDATE person_entry SET count = ' + ' (SELECT COUNT(1) FROM person_junction_table WHERE person_junction_table.personId = person_entry.id)' ); // remove persons without photo await connection .createQueryBuilder() .delete() .from(PersonEntry) .where('count = 0') .execute(); } private static async updateSamplePhotos(): Promise<void> { const connection = await SQLConnection.getConnection(); await connection.query( 'update person_entry set sampleRegionId = ' + '(Select person_junction_table.id from media_entity ' + 'left join person_junction_table on media_entity.id = person_junction_table.mediaId ' + 'where person_junction_table.personId=person_entry.id ' + 'order by media_entity.metadataRating desc, ' + 'media_entity.metadataCreationdate desc ' + 'limit 1)' ); } async updatePerson( name: string, partialPerson: PersonDTO ): Promise<PersonEntry> { this.isDBValid = false; const connection = await SQLConnection.getConnection(); const repository = connection.getRepository(PersonEntry); const person = await repository .createQueryBuilder('person') .limit(1) .where('person.name LIKE :name COLLATE ' + SQL_COLLATE, {name}) .getOne(); if (typeof partialPerson.name !== 'undefined') { person.name = partialPerson.name; } if (typeof partialPerson.isFavourite !== 'undefined') { person.isFavourite = partialPerson.isFavourite; } await repository.save(person); await this.loadAll(); return person; } public async getAll(): Promise<PersonEntry[]> { if (this.persons === null) { await this.loadAll(); } return this.persons; } /** * Used for statistic */ public async countFaces(): Promise<number> { const connection = await SQLConnection.getConnection(); return await connection .getRepository(PersonJunctionTable) .createQueryBuilder('personJunction') .getCount(); } public async get(name: string): Promise<PersonEntry> { if (this.persons === null) { await this.loadAll(); } return this.persons.find((p): boolean => p.name === name); } public async saveAll( persons: { name: string; mediaId: number }[] ): Promise<void> { const toSave: { name: string; mediaId: number }[] = []; const connection = await SQLConnection.getConnection(); const personRepository = connection.getRepository(PersonEntry); const personJunction = connection.getRepository(PersonJunctionTable); const savedPersons = await personRepository.find(); // filter already existing persons for (const personToSave of persons) { const person = savedPersons.find( (p): boolean => p.name === personToSave.name ); if (!person) { toSave.push(personToSave); } } if (toSave.length > 0) { for (let i = 0; i < toSave.length / 200; i++) { const saving = toSave.slice(i * 200, (i + 1) * 200); // saving person const inserted = await personRepository.insert( saving.map((p) => ({name: p.name})) ); // saving junction table const junctionTable = inserted.identifiers.map((idObj, j) => ({person: idObj, media: {id: saving[j].mediaId}})); await personJunction.insert(junctionTable); } } this.isDBValid = false; } public async onNewDataVersion(): Promise<void> { await this.resetPreviews(); } public async resetPreviews(): Promise<void> { this.persons = null; this.isDBValid = false; } private async loadAll(): Promise<void> { await this.updateDerivedValues(); const connection = await SQLConnection.getConnection(); const personRepository = connection.getRepository(PersonEntry); this.persons = await personRepository.find({ relations: [ 'sampleRegion', 'sampleRegion.media', 'sampleRegion.media.directory', 'sampleRegion.media.metadata', ], }); } /** * Person table contains derived, denormalized data for faster select, this needs to be updated after data change * @private */ private async updateDerivedValues(): Promise<void> { if (this.isDBValid === true) { return; } Logger.debug(LOG_TAG, 'Updating derived persons data'); await PersonManager.updateCounts(); await PersonManager.updateSamplePhotos(); this.isDBValid = false; } } ```
/content/code_sandbox/src/backend/model/database/PersonManager.ts
xml
2016-03-12T11:46:41
2024-08-16T19:56:44
pigallery2
bpatrik/pigallery2
1,727
1,201
```xml <?xml version="1.0" encoding="utf-8"?> <!-- Schema for XML Signatures path_to_url# $Revision: 1.1 $ on $Date: 2002/02/08 20:32:26 $ by $Author: reagle $ of Technology, Institut National de Recherche en Informatique et en Automatique, Keio University). All Rights Reserved. path_to_url in the FAQ [2]. [1] path_to_url [2] path_to_url#DTD --> <schema xmlns="path_to_url" xmlns:ds="path_to_url#" targetNamespace="path_to_url#" version="0.1" elementFormDefault="qualified"> <!-- Basic Types Defined for Signatures --> <simpleType name="CryptoBinary"> <restriction base="base64Binary"> </restriction> </simpleType> <!-- Start Signature --> <element name="Signature" type="ds:SignatureType"/> <complexType name="SignatureType"> <sequence> <element ref="ds:SignedInfo"/> <element ref="ds:SignatureValue"/> <element ref="ds:KeyInfo" minOccurs="0"/> <element ref="ds:Object" minOccurs="0" maxOccurs="unbounded"/> </sequence> <attribute name="Id" type="ID" use="optional"/> </complexType> <element name="SignatureValue" type="ds:SignatureValueType"/> <complexType name="SignatureValueType"> <simpleContent> <extension base="base64Binary"> <attribute name="Id" type="ID" use="optional"/> </extension> </simpleContent> </complexType> <!-- Start SignedInfo --> <element name="SignedInfo" type="ds:SignedInfoType"/> <complexType name="SignedInfoType"> <sequence> <element ref="ds:CanonicalizationMethod"/> <element ref="ds:SignatureMethod"/> <element ref="ds:Reference" maxOccurs="unbounded"/> </sequence> <attribute name="Id" type="ID" use="optional"/> </complexType> <element name="CanonicalizationMethod" type="ds:CanonicalizationMethodType"/> <complexType name="CanonicalizationMethodType" mixed="true"> <sequence> <any namespace="##any" minOccurs="0" maxOccurs="unbounded"/> <!-- (0,unbounded) elements from (1,1) namespace --> </sequence> <attribute name="Algorithm" type="anyURI" use="required"/> </complexType> <element name="SignatureMethod" type="ds:SignatureMethodType"/> <complexType name="SignatureMethodType" mixed="true"> <sequence> <element name="HMACOutputLength" minOccurs="0" type="ds:HMACOutputLengthType"/> <any namespace="##other" minOccurs="0" maxOccurs="unbounded"/> <!-- (0,unbounded) elements from (1,1) external namespace --> </sequence> <attribute name="Algorithm" type="anyURI" use="required"/> </complexType> <!-- Start Reference --> <element name="Reference" type="ds:ReferenceType"/> <complexType name="ReferenceType"> <sequence> <element ref="ds:Transforms" minOccurs="0"/> <element ref="ds:DigestMethod"/> <element ref="ds:DigestValue"/> </sequence> <attribute name="Id" type="ID" use="optional"/> <attribute name="URI" type="anyURI" use="optional"/> <attribute name="Type" type="anyURI" use="optional"/> </complexType> <element name="Transforms" type="ds:TransformsType"/> <complexType name="TransformsType"> <sequence> <element ref="ds:Transform" maxOccurs="unbounded"/> </sequence> </complexType> <element name="Transform" type="ds:TransformType"/> <complexType name="TransformType" mixed="true"> <choice minOccurs="0" maxOccurs="unbounded"> <any namespace="##other" processContents="lax"/> <!-- (1,1) elements from (0,unbounded) namespaces --> <element name="XPath" type="string"/> </choice> <attribute name="Algorithm" type="anyURI" use="required"/> </complexType> <!-- End Reference --> <element name="DigestMethod" type="ds:DigestMethodType"/> <complexType name="DigestMethodType" mixed="true"> <sequence> <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/> </sequence> <attribute name="Algorithm" type="anyURI" use="required"/> </complexType> <element name="DigestValue" type="ds:DigestValueType"/> <simpleType name="DigestValueType"> <restriction base="base64Binary"/> </simpleType> <!-- End SignedInfo --> <!-- Start KeyInfo --> <element name="KeyInfo" type="ds:KeyInfoType"/> <complexType name="KeyInfoType" mixed="true"> <choice maxOccurs="unbounded"> <element ref="ds:KeyName"/> <element ref="ds:KeyValue"/> <element ref="ds:RetrievalMethod"/> <element ref="ds:X509Data"/> <element ref="ds:PGPData"/> <element ref="ds:SPKIData"/> <element ref="ds:MgmtData"/> <any processContents="lax" namespace="##other"/> <!-- (1,1) elements from (0,unbounded) namespaces --> </choice> <attribute name="Id" type="ID" use="optional"/> </complexType> <element name="KeyName" type="string"/> <element name="MgmtData" type="string"/> <element name="KeyValue" type="ds:KeyValueType"/> <complexType name="KeyValueType" mixed="true"> <choice> <element ref="ds:DSAKeyValue"/> <element ref="ds:RSAKeyValue"/> <any namespace="##other" processContents="lax"/> </choice> </complexType> <element name="RetrievalMethod" type="ds:RetrievalMethodType"/> <complexType name="RetrievalMethodType"> <sequence> <element ref="ds:Transforms" minOccurs="0"/> </sequence> <attribute name="URI" type="anyURI"/> <attribute name="Type" type="anyURI" use="optional"/> </complexType> <!-- Start X509Data --> <element name="X509Data" type="ds:X509DataType"/> <complexType name="X509DataType"> <sequence maxOccurs="unbounded"> <choice> <element name="X509IssuerSerial" type="ds:X509IssuerSerialType"/> <element name="X509SKI" type="base64Binary"/> <element name="X509SubjectName" type="string"/> <element name="X509Certificate" type="base64Binary"/> <element name="X509CRL" type="base64Binary"/> <any namespace="##other" processContents="lax"/> </choice> </sequence> </complexType> <complexType name="X509IssuerSerialType"> <sequence> <element name="X509IssuerName" type="string"/> <element name="X509SerialNumber" type="integer"/> </sequence> </complexType> <!-- End X509Data --> <!-- Begin PGPData --> <element name="PGPData" type="ds:PGPDataType"/> <complexType name="PGPDataType"> <choice> <sequence> <element name="PGPKeyID" type="base64Binary"/> <element name="PGPKeyPacket" type="base64Binary" minOccurs="0"/> <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/> </sequence> <sequence> <element name="PGPKeyPacket" type="base64Binary"/> <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/> </sequence> </choice> </complexType> <!-- End PGPData --> <!-- Begin SPKIData --> <element name="SPKIData" type="ds:SPKIDataType"/> <complexType name="SPKIDataType"> <sequence maxOccurs="unbounded"> <element name="SPKISexp" type="base64Binary"/> <any namespace="##other" processContents="lax" minOccurs="0"/> </sequence> </complexType> <!-- End SPKIData --> <!-- End KeyInfo --> <!-- Start Object (Manifest, SignatureProperty) --> <element name="Object" type="ds:ObjectType"/> <complexType name="ObjectType" mixed="true"> <sequence minOccurs="0" maxOccurs="unbounded"> <any namespace="##any" processContents="lax"/> </sequence> <attribute name="Id" type="ID" use="optional"/> <attribute name="MimeType" type="string" use="optional"/> <!-- add a grep facet --> <attribute name="Encoding" type="anyURI" use="optional"/> </complexType> <element name="Manifest" type="ds:ManifestType"/> <complexType name="ManifestType"> <sequence> <element ref="ds:Reference" maxOccurs="unbounded"/> </sequence> <attribute name="Id" type="ID" use="optional"/> </complexType> <element name="SignatureProperties" type="ds:SignaturePropertiesType"/> <complexType name="SignaturePropertiesType"> <sequence> <element ref="ds:SignatureProperty" maxOccurs="unbounded"/> </sequence> <attribute name="Id" type="ID" use="optional"/> </complexType> <element name="SignatureProperty" type="ds:SignaturePropertyType"/> <complexType name="SignaturePropertyType" mixed="true"> <choice maxOccurs="unbounded"> <any namespace="##other" processContents="lax"/> <!-- (1,1) elements from (1,unbounded) namespaces --> </choice> <attribute name="Target" type="anyURI" use="required"/> <attribute name="Id" type="ID" use="optional"/> </complexType> <!-- End Object (Manifest, SignatureProperty) --> <!-- Start Algorithm Parameters --> <simpleType name="HMACOutputLengthType"> <restriction base="integer"/> </simpleType> <!-- Start KeyValue Element-types --> <element name="DSAKeyValue" type="ds:DSAKeyValueType"/> <complexType name="DSAKeyValueType"> <sequence> <sequence minOccurs="0"> <element name="P" type="ds:CryptoBinary"/> <element name="Q" type="ds:CryptoBinary"/> </sequence> <element name="G" type="ds:CryptoBinary" minOccurs="0"/> <element name="Y" type="ds:CryptoBinary"/> <element name="J" type="ds:CryptoBinary" minOccurs="0"/> <sequence minOccurs="0"> <element name="Seed" type="ds:CryptoBinary"/> <element name="PgenCounter" type="ds:CryptoBinary"/> </sequence> </sequence> </complexType> <element name="RSAKeyValue" type="ds:RSAKeyValueType"/> <complexType name="RSAKeyValueType"> <sequence> <element name="Modulus" type="ds:CryptoBinary"/> <element name="Exponent" type="ds:CryptoBinary"/> </sequence> </complexType> <!-- End KeyValue Element-types --> <!-- End Signature --> </schema> ```
/content/code_sandbox/tests/wsdl_files/xmldsig-core-schema.xsd
xml
2016-02-14T10:31:07
2024-08-14T19:57:41
python-zeep
mvantellingen/python-zeep
1,879
2,571
```xml import "graphile-config"; import "./PgCodecsPlugin.js"; import "./PgProceduresPlugin.js"; import "./PgRelationsPlugin.js"; import "./PgTablesPlugin.js"; import type { PgCodec, PgCodecExtensions, PgCodecPolymorphism, PgCodecPolymorphismRelational, PgCodecPolymorphismRelationalTypeSpec, PgCodecPolymorphismSingle, PgCodecPolymorphismSingleTypeAttributeSpec, PgCodecPolymorphismSingleTypeSpec, PgCodecRef, PgCodecRelation, PgCodecWithAttributes, PgRefDefinition, PgRegistry, PgResource, PgResourceOptions, PgResourceUnique, PgSelectSingleStep, } from "@dataplan/pg"; import { assertPgClassSingleStep } from "@dataplan/pg"; import type { DataFromObjectSteps, ExecutableStep, LambdaStep, ListStep, NodeIdHandler, } from "grafast"; import { access, arraysMatch, lambda, list, makeDecodeNodeId, object, } from "grafast"; import type { GraphQLInterfaceType, GraphQLNamedType, GraphQLObjectType, } from "grafast/graphql"; import { EXPORTABLE, gatherConfig } from "graphile-build"; import te, { isSafeObjectPropertyName } from "tamedevil"; import { getBehavior } from "../behavior.js"; import { parseDatabaseIdentifier, parseSmartTagsOptsString, tagToString, } from "../utils.js"; import { version } from "../version.js"; function isNotNullish<T>(v: T | null | undefined): v is T { return v != null; } declare global { namespace GraphileConfig { interface Plugins { PgPolymorphismPlugin: true; } interface GatherHelpers { pgPolymorphism: Record<string, never>; } } namespace GraphileBuild { interface Build { pgResourcesByPolymorphicTypeName: { [polymorphicTypeName: string]: { resources: PgResource[]; type: "union" | "interface"; }; }; pgCodecByPolymorphicUnionModeTypeName: { [polymorphicTypeName: string]: PgCodec; }; nodeIdSpecForCodec(codec: PgCodec<any, any, any, any, any, any, any>): | (($nodeId: ExecutableStep<string>) => { [key: string]: ExecutableStep<any>; }) | null; } interface ScopeInterface { pgCodec?: PgCodec<any, any, any, any, any, any, any>; isPgPolymorphicTableType?: boolean; pgPolymorphism?: PgCodecPolymorphism<string>; } interface ScopeObject { pgPolymorphism?: PgCodecPolymorphism<string>; pgPolymorphicSingleTableType?: { typeIdentifier: string; name: string; attributes: ReadonlyArray<PgCodecPolymorphismSingleTypeAttributeSpec>; }; pgPolymorphicRelationalType?: { typeIdentifier: string; name: string; }; isPgUnionMemberUnionConnection?: boolean; } interface ScopeEnum { pgPolymorphicSingleTableType?: { typeIdentifier: string; name: string; attributes: ReadonlyArray<PgCodecPolymorphismSingleTypeAttributeSpec>; }; } interface ScopeUnion { isPgUnionMemberUnion?: boolean; } } namespace DataplanPg { interface PgCodecExtensions { relationalInterfaceCodecName?: string; } } } function parseAttribute( colSpec: string, ): PgCodecPolymorphismSingleTypeAttributeSpec { let spec = colSpec; let isNotNull = false; if (spec.endsWith("!")) { spec = spec.substring(0, spec.length - 1); isNotNull = true; } const [a, b] = spec.split(">"); return { attribute: a, isNotNull, rename: b, }; } const EMPTY_OBJECT = Object.freeze({}); export const PgPolymorphismPlugin: GraphileConfig.Plugin = { name: "PgPolymorphismPlugin", description: "Adds polymorphism", version, after: ["smart-tags", "PgTablesPlugin", "PgCodecsPlugin", "PgBasicsPlugin"], gather: gatherConfig({ namespace: "pgPolymorphism", initialCache() { return EMPTY_OBJECT; }, initialState() { return EMPTY_OBJECT; }, helpers: {}, hooks: { async pgCodecs_recordType_spec(info, event) { const { pgClass, spec, serviceName } = event; const extensions: PgCodecExtensions = spec.extensions ?? Object.create(null); if (!spec.extensions) { spec.extensions = extensions; } const interfaceTag = extensions.tags.interface ?? pgClass.getTags().interface; if (interfaceTag) { if (typeof interfaceTag !== "string") { throw new Error( "Invalid 'interface' smart tag; string expected. Did you add too many?", ); } const { params } = parseSmartTagsOptsString<"type" | "mode" | "name">( interfaceTag, 0, ); switch (params.mode) { case "single": { const { type = "type" } = params; const attr = pgClass.getAttribute({ name: type }); if (!attr) { throw new Error( `Invalid '@interface' smart tag - there is no '${type}' attribute on ${ pgClass.getNamespace()!.nspname }.${pgClass.relname}`, ); } const rawTypeTags = extensions.tags.type; const typeTags = Array.isArray(rawTypeTags) ? rawTypeTags.map((t) => String(t)) : [String(rawTypeTags)]; const attributeNames = pgClass .getAttributes() .filter((a) => a.attnum >= 1) .map((a) => a.attname); const types: PgCodecPolymorphismSingle["types"] = Object.create(null); const specificAttributes = new Set<string>(); for (const typeTag of typeTags) { const { args: [typeValue], params: { name, attributes }, } = parseSmartTagsOptsString<"name" | "attributes">(typeTag, 1); if (!name) { throw new Error(`Every type must have a name`); } types[typeValue] = { name, attributes: attributes?.split(",").map(parseAttribute) ?? [], }; for (const col of types[typeValue].attributes) { specificAttributes.add(col.attribute); } } const commonAttributes = attributeNames.filter( (n) => !specificAttributes.has(n), ); spec.polymorphism = { mode: "single", commonAttributes, typeAttributes: [type], types, }; break; } case "relational": { const { type = "type" } = params; const attr = pgClass.getAttribute({ name: type }); if (!attr) { throw new Error( `Invalid '@interface' smart tag - there is no '${type}' attribute on ${ pgClass.getNamespace()!.nspname }.${pgClass.relname}`, ); } const rawTypeTags = extensions.tags.type; const typeTags = Array.isArray(rawTypeTags) ? rawTypeTags.map((t) => String(t)) : [String(rawTypeTags)]; const types: PgCodecPolymorphismRelational["types"] = Object.create(null); for (const typeTag of typeTags) { const { args: [typeValue], params: { references }, } = parseSmartTagsOptsString<"references">(typeTag, 1); if (!references) { throw new Error( `@type of an @interface(mode:relational) must have a 'references:' parameter`, ); } const [namespaceName, tableName] = parseDatabaseIdentifier( references, 2, pgClass.getNamespace()?.nspname, ); const referencedClass = await info.helpers.pgIntrospection.getClassByName( serviceName, namespaceName, tableName, ); if (!referencedClass) { throw new Error( `Could not find referenced class '${namespaceName}.${tableName}'`, ); } const pk = pgClass .getConstraints() .find((c) => c.contype === "p"); const remotePk = referencedClass .getConstraints() .find((c) => c.contype === "p"); if (!pk || !remotePk) { throw new Error( "Could not build polymorphic reference due to missing primary key", ); } const pgConstraint = referencedClass .getConstraints() .find( (c) => c.contype === "f" && c.confrelid === pgClass._id && arraysMatch( c.getAttributes()!, remotePk.getAttributes()!, ) && arraysMatch( c.getForeignAttributes()!, pk.getAttributes()!, ), ); if (!pgConstraint) { throw new Error( `Could not build polymorphic reference from '${pgClass.getNamespace() ?.nspname}.${ pgClass.relname }' to '${referencedClass.getNamespace()?.nspname}.${ referencedClass.relname }' due to missing foreign key constraint. Please create a foreign key constraint on the latter table's primary key, pointing to the former table.`, ); } const codec = (await info.helpers.pgCodecs.getCodecFromClass( serviceName, referencedClass._id, ))!; if (!codec.extensions) { codec.extensions = Object.create(null); } codec.extensions!.relationalInterfaceCodecName = spec.name; types[typeValue] = { name: info.inflection.tableType(codec), references, relationName: info.inflection.resourceRelationName({ serviceName, isReferencee: true, isUnique: true, localClass: pgClass, localAttributes: pk.getAttributes()!, foreignClass: referencedClass, foreignAttributes: remotePk.getAttributes()!, pgConstraint, }), }; } spec.polymorphism = { mode: "relational", typeAttributes: [type], types, }; break; } case "union": { spec.polymorphism = { mode: "union", }; break; } default: { throw new Error(`Unsupported (or not provided) @interface mode`); } } } }, async pgRegistry_PgRegistryBuilder_finalize(info, event) { const { registryBuilder } = event; const registryConfig = registryBuilder.getRegistryConfig(); for (const resource of Object.values( registryConfig.pgResources, ) as PgResourceOptions[]) { if (resource.parameters || !resource.codec.attributes) { continue; } if (!resource.extensions?.pg) { continue; } const { schemaName: resourceSchemaName, serviceName, name: resourceClassName, } = resource.extensions.pg; const pgClass = await info.helpers.pgIntrospection.getClassByName( serviceName, resourceSchemaName, resourceClassName, ); if (!pgClass) { continue; } const poly = (resource.codec as PgCodec).polymorphism; if (poly?.mode === "relational") { // Copy common attributes to implementations for (const spec of Object.values(poly.types)) { const [schemaName, tableName] = parseDatabaseIdentifier( spec.references, 2, resourceSchemaName, ); const pgRelatedClass = await info.helpers.pgIntrospection.getClassByName( serviceName, schemaName, tableName, ); if (!pgRelatedClass) { throw new Error( `Invalid reference to '${spec.references}' - cannot find that table (${schemaName}.${tableName})`, ); } const otherCodec = await info.helpers.pgCodecs.getCodecFromClass( serviceName, pgRelatedClass._id, ); if (!otherCodec || !otherCodec.attributes) { continue; } const pk = pgRelatedClass .getConstraints() .find((c) => c.contype === "p"); if (!pk) { throw new Error( `Invalid polymorphic relation; ${pgRelatedClass.relname} has no primary key`, ); } const remotePk = pgClass .getConstraints() .find((c) => c.contype === "p"); if (!remotePk) { throw new Error( `Invalid polymorphic relation; ${pgClass.relname} has no primary key`, ); } const pgConstraint = pgRelatedClass .getConstraints() .find( (c) => c.contype === "f" && c.confrelid === pgClass._id && arraysMatch( c.getForeignAttributes()!, remotePk.getAttributes()!, ) && arraysMatch(c.getAttributes()!, pk.getAttributes()!), ); if (!pgConstraint) { throw new Error( `Invalid polymorphic relation; could not find matching relation between ${pgClass.relname} and ${pgRelatedClass.relname}`, ); } const sharedRelationName = info.inflection.resourceRelationName({ serviceName, isReferencee: false, isUnique: true, localClass: pgRelatedClass, localAttributes: pk.getAttributes()!, foreignClass: pgClass, foreignAttributes: remotePk.getAttributes()!, pgConstraint, }); for (const [colName, colSpec] of Object.entries( resource.codec.attributes, )) { if (otherCodec.attributes[colName]) { otherCodec.attributes[colName].identicalVia = sharedRelationName; } else { otherCodec.attributes[colName] = { codec: colSpec.codec, notNull: colSpec.notNull, hasDefault: colSpec.hasDefault, via: sharedRelationName, restrictedAccess: colSpec.restrictedAccess, description: colSpec.description, extensions: { ...colSpec.extensions }, }; } } } } } }, async pgRegistry_PgRegistry(info, event) { // We're creating 'refs' for the polymorphism. This needs to use the // same relationship names as we will in the GraphQL schema, so we need // to use the final PgRegistry, not the PgRegistryBuilder. const { registry } = event; for (const rawResource of Object.values(registry.pgResources)) { if (rawResource.parameters || !rawResource.codec.attributes) { continue; } const resource = rawResource as PgResource< string, PgCodecWithAttributes, any, undefined, PgRegistry >; if (!resource.extensions?.pg) { continue; } const { schemaName: resourceSchemaName, serviceName, name: resourceClassName, } = resource.extensions.pg; const pgClass = await info.helpers.pgIntrospection.getClassByName( serviceName, resourceSchemaName, resourceClassName, ); if (!pgClass) { continue; } const relations = registry.pgRelations[resource.codec.name] as Record< string, PgCodecRelation >; const poly = (resource.codec as PgCodec).polymorphism; if (poly?.mode === "relational") { const polyRelationNames = Object.values(poly.types).map( (t) => t.relationName, ); // Copy common attributes to implementations for (const spec of Object.values(poly.types)) { const [schemaName, tableName] = parseDatabaseIdentifier( spec.references, 2, resourceSchemaName, ); const pgRelatedClass = await info.helpers.pgIntrospection.getClassByName( serviceName, schemaName, tableName, ); if (!pgRelatedClass) { throw new Error( `Invalid reference to '${spec.references}' - cannot find that table (${schemaName}.${tableName})`, ); } const otherCodec = await info.helpers.pgCodecs.getCodecFromClass( serviceName, pgRelatedClass._id, ); if (!otherCodec) { continue; } const pk = pgRelatedClass .getConstraints() .find((c) => c.contype === "p"); if (!pk) { throw new Error( `Invalid polymorphic relation; ${pgRelatedClass.relname} has no primary key`, ); } const remotePk = pgClass .getConstraints() .find((c) => c.contype === "p"); if (!remotePk) { throw new Error( `Invalid polymorphic relation; ${pgClass.relname} has no primary key`, ); } const pgConstraint = pgRelatedClass .getConstraints() .find( (c) => c.contype === "f" && c.confrelid === pgClass._id && arraysMatch( c.getForeignAttributes()!, remotePk.getAttributes()!, ) && arraysMatch(c.getAttributes()!, pk.getAttributes()!), ); if (!pgConstraint) { throw new Error( `Invalid polymorphic relation; could not find matching relation between ${pgClass.relname} and ${pgRelatedClass.relname}`, ); } const sharedRelationName = info.inflection.resourceRelationName({ serviceName, isReferencee: false, isUnique: true, localClass: pgRelatedClass, localAttributes: pk.getAttributes()!, foreignClass: pgClass, foreignAttributes: remotePk.getAttributes()!, pgConstraint, }); const otherResourceOptions = await info.helpers.pgTables.getResourceOptions( serviceName, pgRelatedClass, ); for (const [relationName, relationSpec] of Object.entries( relations, )) { // Skip over the polymorphic relations if (polyRelationNames.includes(relationName)) continue; // TODO: normally we wouldn't call `getBehavior` anywhere // except in an entityBehavior definition... Should this be // solved a different way? const behavior = getBehavior([ relationSpec.remoteResource.codec.extensions, relationSpec.remoteResource.extensions, relationSpec.extensions, ]); const relationDetails: GraphileBuild.PgRelationsPluginRelationDetails = { registry: resource.registry, codec: resource.codec, relationName, }; const singleRecordFieldName = relationSpec.isReferencee ? info.inflection.singleRelationBackwards(relationDetails) : info.inflection.singleRelation(relationDetails); const connectionFieldName = info.inflection.manyRelationConnection(relationDetails); const listFieldName = info.inflection.manyRelationList(relationDetails); const definition: PgRefDefinition = { singular: relationSpec.isUnique, singleRecordFieldName, listFieldName, connectionFieldName, extensions: { tags: { behavior, }, }, }; const ref: PgCodecRef = { definition, paths: [ [ { relationName: sharedRelationName, }, { relationName }, ], ], }; if (!otherResourceOptions!.codec.refs) { otherResourceOptions!.codec.refs = Object.create( null, ) as Record<string, any>; } otherResourceOptions!.codec.refs[relationName] = ref; } } } } }, }, }), schema: { entityBehavior: { pgCodec: { provides: ["default"], before: ["inferred", "override"], callback(behavior, codec) { return [ "select", "table", ...(!codec.isAnonymous ? ["insert", "update"] : []), behavior, ]; }, }, pgCodecRelation: { provides: ["inferred"], after: ["default", "PgRelationsPlugin"], before: ["override"], callback(behavior, entity, build) { const { input: { pgRegistry: { pgRelations }, }, grafast: { arraysMatch }, } = build; const { localCodec, remoteResource, isUnique, isReferencee } = entity; const remoteCodec = remoteResource.codec; // Hide relation from a concrete type back to the abstract root table. if ( isUnique && !isReferencee && remoteCodec.polymorphism?.mode === "relational" ) { const localTypeName = build.inflection.tableType(localCodec); const polymorphicTypeDefinitionEntry = Object.entries( remoteCodec.polymorphism.types, ).find(([, val]) => val.name === localTypeName); if (polymorphicTypeDefinitionEntry) { const [, { relationName }] = polymorphicTypeDefinitionEntry; const relation = pgRelations[remoteCodec.name]?.[relationName]; if ( arraysMatch(relation.remoteAttributes, entity.localAttributes) ) { return [behavior, "-connection -list -single"]; } } } // Hide relation from abstract root table to related elements if (isReferencee && localCodec.polymorphism?.mode === "relational") { const relations = Object.values(localCodec.polymorphism.types).map( (t) => pgRelations[localCodec.name]?.[t.relationName], ); if (relations.includes(entity)) { return [behavior, "-connection -list -single"]; } } return behavior; }, }, pgCodecAttribute: { provides: ["inferred"], after: ["default"], before: ["override"], callback(behavior, [codec, attributeName], build) { // If this is the primary key of a related table of a // `@interface mode:relational` table, then omit it from the schema const tbl = build.pgTableResource(codec); if (tbl) { const pk = tbl.uniques.find((u) => u.isPrimary); if (pk && pk.attributes.includes(attributeName)) { const fkeys = Object.values(tbl.getRelations()).filter((r) => arraysMatch(r.localAttributes, pk.attributes), ); const myName = build.inflection.tableType(codec); for (const fkey of fkeys) { if ( fkey.remoteResource.codec.polymorphism?.mode === "relational" && Object.values( fkey.remoteResource.codec.polymorphism.types, ).find((t) => t.name === myName) && !fkey.remoteResource.codec.attributes![attributeName] ) { return [ behavior, "-attribute:select -attribute:update -attribute:filterBy -attribute:orderBy", ]; } } } } return behavior; }, }, pgResource: { provides: ["inferred"], after: ["default"], before: ["override"], callback(behavior, resource, build) { // Disable insert/update/delete on relational tables const newBehavior = [behavior]; if ( !resource.parameters && !resource.isUnique && !resource.isVirtual ) { if ((resource.codec as PgCodec).polymorphism) { // This is a polymorphic type newBehavior.push( "-resource:insert -resource:update -resource:delete", ); } else { const resourceTypeName = build.inflection.tableType( resource.codec, ); const relations: Record<string, PgCodecRelation> = resource.getRelations(); const pk = ( resource.uniques as PgResourceUnique[] | undefined )?.find((u) => u.isPrimary); if (pk) { const pkAttributes = pk.attributes; const pkRelations = Object.values(relations).filter((r) => arraysMatch(r.localAttributes, pkAttributes), ); if ( pkRelations.some( (r) => r.remoteResource.codec.polymorphism?.mode === "relational" && Object.values( r.remoteResource.codec.polymorphism.types, ).some((t) => t.name === resourceTypeName), ) ) { // This is part of a relational polymorphic type newBehavior.push( "-resource:insert -resource:update -resource:delete", ); } } } } return newBehavior; }, }, }, hooks: { build(build) { const { input, inflection } = build; const pgRegistry = input.pgRegistry as PgRegistry; const pgResourcesByPolymorphicTypeName: GraphileBuild.Build["pgResourcesByPolymorphicTypeName"] = Object.create(null); const allResources = Object.values(pgRegistry.pgResources); for (const resource of allResources) { if (resource.parameters) continue; if (typeof resource.from === "function") continue; if (!resource.codec.extensions?.tags) continue; const { implements: implementsTag } = resource.codec.extensions.tags; /* const { unionMember } = resource.codec.extensions.tags; if (unionMember) { const unions = Array.isArray(unionMember) ? unionMember : [unionMember]; for (const union of unions) { if (!resourcesByPolymorphicTypeName[union]) { resourcesByPolymorphicTypeName[union] = { resources: [resource as PgResource], type: "union", }; } else { if (resourcesByPolymorphicTypeName[union].type !== "union") { throw new Error(`Inconsistent polymorphism`); } resourcesByPolymorphicTypeName[union].resources.push( resource as PgResource, ); } } } */ if (implementsTag) { const interfaces = Array.isArray(implementsTag) ? implementsTag : [implementsTag]; for (const interfaceName of interfaces) { if (!pgResourcesByPolymorphicTypeName[interfaceName]) { pgResourcesByPolymorphicTypeName[interfaceName] = { resources: [resource as PgResource], type: "interface", }; } else { if ( pgResourcesByPolymorphicTypeName[interfaceName].type !== "interface" ) { throw new Error(`Inconsistent polymorphism`); } pgResourcesByPolymorphicTypeName[interfaceName].resources.push( resource as PgResource, ); } } } } const pgCodecByPolymorphicUnionModeTypeName: { [polymorphicTypeName: string]: PgCodec; } = Object.create(null); for (const codec of Object.values(pgRegistry.pgCodecs)) { if (!codec.polymorphism) continue; if (codec.polymorphism.mode !== "union") continue; const interfaceTypeName = inflection.tableType(codec); pgCodecByPolymorphicUnionModeTypeName[interfaceTypeName] = codec; // Explicitly allow zero implementations. if (!pgResourcesByPolymorphicTypeName[interfaceTypeName]) { pgResourcesByPolymorphicTypeName[interfaceTypeName] = { resources: [], type: "interface", }; } } return build.extend( build, { pgResourcesByPolymorphicTypeName, pgCodecByPolymorphicUnionModeTypeName, nodeIdSpecForCodec(codec) { const table = build.pgTableResource!(codec); if (!table) { return null; } const tablePk = table.uniques.find((u) => u.isPrimary); if (!tablePk) { return null; } const tablePkAttributes = tablePk.attributes; if (codec.polymorphism?.mode === "relational") { const details: Array<{ handler: NodeIdHandler; pkAttributes: readonly string[]; }> = []; for (const spec of Object.values(codec.polymorphism.types)) { const relation = table.getRelation(spec.relationName); const typeName = build.inflection.tableType( relation.remoteResource.codec, ); const handler = build.getNodeIdHandler?.(typeName); if (!handler) { return null; } const pk = ( relation.remoteResource.uniques as PgResourceUnique[] ).find((u) => u.isPrimary); if (!pk) { return null; } details.push({ pkAttributes: pk.attributes, handler, }); } const handlers = details.map((d) => d.handler); const decodeNodeId = EXPORTABLE( (handlers, makeDecodeNodeId) => makeDecodeNodeId(handlers), [handlers, makeDecodeNodeId], ); return EXPORTABLE( ( access, decodeNodeId, details, lambda, list, object, tablePkAttributes, ) => ( $nodeId: ExecutableStep<string>, ): { [key: string]: ExecutableStep<any> } => { const $specifier = decodeNodeId($nodeId); const $handlerMatches = list( details.map(({ handler, pkAttributes }) => { const spec = handler.getSpec( access($specifier, handler.codec.name), ); return object({ match: lambda($specifier, (specifier) => { const value = specifier?.[handler.codec.name]; return value != null ? handler.match(value) : false; }), pks: list(pkAttributes.map((n) => spec[n])), }); }), ); const $pkValues = lambda( $handlerMatches, (handlerMatches) => { const match = ( handlerMatches as DataFromObjectSteps<{ match: LambdaStep< { [codecName: string]: any; } | null, boolean >; pks: ListStep<any[]>; }>[] ).find((pk) => pk.match); return match?.pks; }, true, ); return tablePkAttributes.reduce( (memo, pkAttribute, i) => { memo[pkAttribute] = access($pkValues, i); return memo; }, Object.create(null), ); }, [ access, decodeNodeId, details, lambda, list, object, tablePkAttributes, ], ); } else if (codec.polymorphism?.mode === "single") { // Lots of type names, but they all relate to the same table const handlers: Array<NodeIdHandler> = []; for (const spec of Object.values(codec.polymorphism.types)) { const typeName = spec.name; const handler = build.getNodeIdHandler?.(typeName); if (!handler) { return null; } handlers.push(handler); } const decodeNodeId = EXPORTABLE( (handlers, makeDecodeNodeId) => makeDecodeNodeId(handlers), [handlers, makeDecodeNodeId], ); return EXPORTABLE( ( access, decodeNodeId, handlers, lambda, list, object, tablePkAttributes, ) => ( $nodeId: ExecutableStep<string>, ): { [key: string]: ExecutableStep<any> } => { const $specifier = decodeNodeId($nodeId); const $handlerMatches = list( handlers.map((handler) => { const spec = handler.getSpec( access($specifier, handler.codec.name), ); return object({ match: lambda($specifier, (specifier) => { const value = specifier?.[handler.codec.name]; return value != null ? handler.match(value) : false; }), pks: list(tablePkAttributes.map((n) => spec[n])), }); }), ); const $pkValues = lambda( $handlerMatches, (handlerMatches) => { // Explicit typing because TypeScript has lost the // plot. const match = ( handlerMatches as DataFromObjectSteps<{ match: LambdaStep< { [codecName: string]: any; } | null, boolean >; pks: ListStep<any[]>; }>[] ).find((pk) => pk.match); return match?.pks; }, true, ); return tablePkAttributes.reduce( (memo, pkAttribute, i) => { memo[pkAttribute] = access($pkValues, i); return memo; }, Object.create(null), ); }, [ access, decodeNodeId, handlers, lambda, list, object, tablePkAttributes, ], ); } else if (codec.polymorphism) { throw new Error( `Don't know how to get the spec for nodeId for codec with polymorphism mode '${codec.polymorphism.mode}'`, ); } else { const typeName = build.inflection.tableType(codec); const handler = build.getNodeIdHandler?.(typeName); const { specForHandler } = build; if (!handler || !specForHandler) { return null; } return EXPORTABLE( (handler, lambda, specForHandler) => ( $nodeId: ExecutableStep<string>, ): { [key: string]: ExecutableStep<any> } => { // TODO: should change this to a common method like // `const $decoded = getDecodedNodeIdForHandler(handler, $nodeId)` const $decoded = lambda($nodeId, specForHandler(handler)); return handler.getSpec($decoded); }, [handler, lambda, specForHandler], ); } }, }, "Adding PgPolmorphismPlugin helpers to Build", ); }, init(_, build, _context) { const { inflection, options: { pgForbidSetofFunctionsToReturnNull }, setGraphQLTypeForPgCodec, grafast: { list, constant, access, inhibitOnNull }, } = build; const unionsToRegister = new Map<string, PgCodec[]>(); for (const codec of build.pgCodecMetaLookup.keys()) { if (!codec.attributes) { // Only apply to codecs that define attributes continue; } // We're going to scan for interfaces, and then unions. Each block is // separately recoverable so an interface failure doesn't cause // unions to fail. // Detect interface build.recoverable(null, () => { const polymorphism = codec.polymorphism; if (!polymorphism) { // Don't build polymorphic types as objects return; } const isTable = build.behavior.pgCodecMatches(codec, "table"); if (!isTable || codec.isAnonymous) { return; } const selectable = build.behavior.pgCodecMatches(codec, "select"); if (selectable) { if ( polymorphism.mode === "single" || polymorphism.mode === "relational" ) { const nodeable = build.behavior.pgCodecMatches( codec, "interface:node", ); const interfaceTypeName = inflection.tableType(codec); build.registerInterfaceType( interfaceTypeName, { pgCodec: codec, isPgPolymorphicTableType: true, pgPolymorphism: polymorphism, // Since this comes from a table, if the table has the `node` interface then so should the interface supportsNodeInterface: nodeable, }, () => ({ description: codec.description, }), `PgPolymorphismPlugin single/relational interface type for ${codec.name}`, ); setGraphQLTypeForPgCodec(codec, ["output"], interfaceTypeName); build.registerCursorConnection({ typeName: interfaceTypeName, connectionTypeName: inflection.tableConnectionType(codec), edgeTypeName: inflection.tableEdgeType(codec), scope: { isPgConnectionRelated: true, pgCodec: codec, }, nonNullNode: pgForbidSetofFunctionsToReturnNull, }); const resource = build.pgTableResource( codec as PgCodecWithAttributes, ); const primaryKey = resource ? (resource.uniques as PgResourceUnique[]).find( (u) => u.isPrimary === true, ) : undefined; const pk = primaryKey?.attributes; for (const [typeIdentifier, spec] of Object.entries( polymorphism.types, ) as Array< [ string, ( | PgCodecPolymorphismSingleTypeSpec | PgCodecPolymorphismRelationalTypeSpec ), ] >) { const tableTypeName = spec.name; if ( polymorphism.mode === "single" && build.behavior.pgCodecMatches(codec, "interface:node") ) { build.registerObjectType( tableTypeName, { pgCodec: codec, isPgClassType: true, pgPolymorphism: polymorphism, pgPolymorphicSingleTableType: { typeIdentifier, name: spec.name, attributes: ( spec as PgCodecPolymorphismSingleTypeSpec ).attributes, }, }, () => ({ assertStep: assertPgClassSingleStep, description: codec.description, interfaces: () => [ build.getTypeByName( interfaceTypeName, ) as GraphQLInterfaceType, ], }), `PgPolymorphismPlugin single table type for ${codec.name}`, ); build.registerCursorConnection({ typeName: tableTypeName, connectionTypeName: inflection.connectionType(tableTypeName), edgeTypeName: inflection.edgeType(tableTypeName), scope: { isPgConnectionRelated: true, pgCodec: codec, }, nonNullNode: pgForbidSetofFunctionsToReturnNull, }); if (build.registerNodeIdHandler && resource && pk) { const clean = isSafeObjectPropertyName(tableTypeName) && pk.every((attributeName) => isSafeObjectPropertyName(attributeName), ); build.registerNodeIdHandler({ typeName: tableTypeName, codec: build.getNodeIdCodec!("base64JSON"), deprecationReason: tagToString( codec.extensions?.tags?.deprecation ?? resource?.extensions?.tags?.deprecated, ), plan: clean ? // eslint-disable-next-line graphile-export/exhaustive-deps EXPORTABLE( te.run`\ return function (list, constant) { return $record => list([constant(${te.lit(tableTypeName)}, false), ${te.join( pk.map((attributeName) => te`$record.get(${te.lit(attributeName)})`), ", ", )}]); }` as any, [list, constant], ) : EXPORTABLE( (constant, list, pk, tableTypeName) => ($record: PgSelectSingleStep) => { return list([ constant(tableTypeName, false), ...pk.map((attribute) => $record.get(attribute), ), ]); }, [constant, list, pk, tableTypeName], ), getSpec: clean ? // eslint-disable-next-line graphile-export/exhaustive-deps EXPORTABLE( te.run`\ return function (access, inhibitOnNull) { return $list => ({ ${te.join( pk.map( (attributeName, index) => te`${te.safeKeyOrThrow( attributeName, )}: inhibitOnNull(access($list, [${te.lit(index + 1)}]))`, ), ", ", )} }); }` as any, [access, inhibitOnNull], ) : EXPORTABLE( (access, inhibitOnNull, pk) => ($list: ListStep<any[]>) => { const spec = pk.reduce( (memo, attribute, index) => { memo[attribute] = inhibitOnNull( access($list, [index + 1]), ); return memo; }, Object.create(null), ); return spec; }, [access, inhibitOnNull, pk], ), get: EXPORTABLE( (resource) => (spec: any) => resource.get(spec), [resource], ), match: EXPORTABLE( (tableTypeName) => (obj) => { return obj[0] === tableTypeName; }, [tableTypeName], ), }); } } } } else if (polymorphism.mode === "union") { const interfaceTypeName = inflection.tableType(codec); const nodeable = build.behavior.pgCodecMatches( codec, "interface:node", ); build.registerInterfaceType( interfaceTypeName, { pgCodec: codec, isPgPolymorphicTableType: true, pgPolymorphism: polymorphism, supportsNodeInterface: nodeable, }, () => ({ description: codec.description, }), `PgPolymorphismPlugin union interface type for ${codec.name}`, ); setGraphQLTypeForPgCodec(codec, ["output"], interfaceTypeName); build.registerCursorConnection({ typeName: interfaceTypeName, connectionTypeName: inflection.tableConnectionType(codec), edgeTypeName: inflection.tableEdgeType(codec), scope: { isPgConnectionRelated: true, pgCodec: codec, }, nonNullNode: pgForbidSetofFunctionsToReturnNull, }); } } }); // Detect union membership build.recoverable(null, () => { const rawUnionMember = codec.extensions?.tags?.unionMember; if (rawUnionMember) { const memberships = Array.isArray(rawUnionMember) ? rawUnionMember : [rawUnionMember]; for (const membership of memberships) { // Register union const unionName = membership.trim(); const list = unionsToRegister.get(unionName); if (!list) { unionsToRegister.set(unionName, [codec]); } else { list.push(codec); } } } }); } for (const [unionName, codecs] of unionsToRegister.entries()) { build.recoverable(null, () => { build.registerUnionType( unionName, { isPgUnionMemberUnion: true }, () => ({ types: () => codecs .map( (codec) => build.getTypeByName( build.inflection.tableType(codec), ) as GraphQLObjectType | undefined, ) .filter(isNotNullish), }), "PgPolymorphismPlugin @unionMember unions", ); build.registerCursorConnection({ typeName: unionName, scope: { isPgUnionMemberUnionConnection: true }, }); }); } return _; }, GraphQLObjectType_interfaces(interfaces, build, context) { const { inflection } = build; const { scope: { pgCodec, isPgClassType }, } = context; const rawImplements = pgCodec?.extensions?.tags?.implements; if (rawImplements && isPgClassType) { const interfaceNames = Array.isArray(rawImplements) ? rawImplements : [rawImplements]; for (const interfaceName of interfaceNames) { const interfaceType = build.getTypeByName(String(interfaceName)); if (!interfaceType) { console.error(`'${interfaceName}' type not found`); } else if (!build.graphql.isInterfaceType(interfaceType)) { console.error( `'${interfaceName}' is not an interface type (it's a ${interfaceType.constructor.name})`, ); } else { interfaces.push(interfaceType); } } } for (const codec of build.pgCodecMetaLookup.keys()) { const polymorphism = codec.polymorphism; if ( !codec.attributes || !polymorphism || polymorphism.mode !== "relational" ) { continue; } const typeNames = Object.values(polymorphism.types).map( (t) => t.name, ); if (typeNames.includes(context.Self.name)) { const interfaceTypeName = inflection.tableType(codec); interfaces.push( build.getTypeByName(interfaceTypeName) as GraphQLInterfaceType, ); } } return interfaces; }, GraphQLSchema_types(types, build, _context) { for (const type of Object.values(build.getAllTypes())) { if (build.graphql.isInterfaceType(type)) { const scope = build.scopeByType.get(type) as | GraphileBuild.ScopeInterface | undefined; if (scope) { const polymorphism = scope.pgPolymorphism; if (polymorphism) { switch (polymorphism.mode) { case "relational": case "single": { for (const type of Object.values(polymorphism.types)) { // Force the type to be built const t = build.getTypeByName( type.name, ) as GraphQLNamedType; types.push(t); } } } } } } } return types; }, }, }, }; ```
/content/code_sandbox/graphile-build/graphile-build-pg/src/plugins/PgPolymorphismPlugin.ts
xml
2016-04-14T21:29:19
2024-08-16T17:12:51
crystal
graphile/crystal
12,539
9,722
```xml /* * @license Apache-2.0 * * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ import daxpy = require( './index' ); // TESTS // // The function returns a Float64Array... { const x = new Float64Array( 10 ); const y = new Float64Array( 10 ); daxpy( x.length, 5.0, x, 1, y, 1 ); // $ExpectType Float64Array } // The compiler throws an error if the function is provided a first argument which is not a number... { const x = new Float64Array( 10 ); const y = new Float64Array( 10 ); daxpy( '10', 5.0, x, 1, y, 1 ); // $ExpectError daxpy( true, 5.0, x, 1, y, 1 ); // $ExpectError daxpy( false, 5.0, x, 1, y, 1 ); // $ExpectError daxpy( null, 5.0, x, 1, y, 1 ); // $ExpectError daxpy( undefined, 5.0, x, 1, y, 1 ); // $ExpectError daxpy( [], 5.0, x, 1, y, 1 ); // $ExpectError daxpy( {}, 5.0, x, 1, y, 1 ); // $ExpectError daxpy( ( x: number ): number => x, 5.0, x, 1, y, 1 ); // $ExpectError } // The compiler throws an error if the function is provided a second argument which is not a number... { const x = new Float64Array( 10 ); const y = new Float64Array( 10 ); daxpy( x.length, '10', x, 1, y, 1 ); // $ExpectError daxpy( x.length, true, x, 1, y, 1 ); // $ExpectError daxpy( x.length, false, x, 1, y, 1 ); // $ExpectError daxpy( x.length, null, x, 1, y, 1 ); // $ExpectError daxpy( x.length, undefined, x, 1, y, 1 ); // $ExpectError daxpy( x.length, [], x, 1, y, 1 ); // $ExpectError daxpy( x.length, {}, x, 1, y, 1 ); // $ExpectError daxpy( x.length, ( x: number ): number => x, x, 1, y, 1 ); // $ExpectError } // The compiler throws an error if the function is provided a third argument which is not a Float64Array... { const x = new Float64Array( 10 ); const y = new Float64Array( 10 ); daxpy( x.length, 5.0, 10, 1, y, 1 ); // $ExpectError daxpy( x.length, 5.0, '10', 1, y, 1 ); // $ExpectError daxpy( x.length, 5.0, true, 1, y, 1 ); // $ExpectError daxpy( x.length, 5.0, false, 1, y, 1 ); // $ExpectError daxpy( x.length, 5.0, null, 1, y, 1 ); // $ExpectError daxpy( x.length, 5.0, undefined, 1, y, 1 ); // $ExpectError daxpy( x.length, 5.0, [], 1, y, 1 ); // $ExpectError daxpy( x.length, 5.0, {}, 1, y, 1 ); // $ExpectError daxpy( x.length, 5.0, ( x: number ): number => x, 1, y, 1 ); // $ExpectError } // The compiler throws an error if the function is provided a fourth argument which is not a number... { const x = new Float64Array( 10 ); const y = new Float64Array( 10 ); daxpy( x.length, 5.0, x, '10', y, 1 ); // $ExpectError daxpy( x.length, 5.0, x, true, y, 1 ); // $ExpectError daxpy( x.length, 5.0, x, false, y, 1 ); // $ExpectError daxpy( x.length, 5.0, x, null, y, 1 ); // $ExpectError daxpy( x.length, 5.0, x, undefined, y, 1 ); // $ExpectError daxpy( x.length, 5.0, x, [], y, 1 ); // $ExpectError daxpy( x.length, 5.0, x, {}, y, 1 ); // $ExpectError daxpy( x.length, 5.0, x, ( x: number ): number => x, y, 1 ); // $ExpectError } // The compiler throws an error if the function is provided a fifth argument which is not a Float64Array... { const x = new Float64Array( 10 ); daxpy( x.length, 5.0, x, 1, 10, 1 ); // $ExpectError daxpy( x.length, 5.0, x, 1, '10', 1 ); // $ExpectError daxpy( x.length, 5.0, x, 1, true, 1 ); // $ExpectError daxpy( x.length, 5.0, x, 1, false, 1 ); // $ExpectError daxpy( x.length, 5.0, x, 1, null, 1 ); // $ExpectError daxpy( x.length, 5.0, x, 1, undefined, 1 ); // $ExpectError daxpy( x.length, 5.0, x, 1, [], 1 ); // $ExpectError daxpy( x.length, 5.0, x, 1, {}, 1 ); // $ExpectError daxpy( x.length, 5.0, x, 1, ( x: number ): number => x, 1 ); // $ExpectError } // The compiler throws an error if the function is provided a sixth argument which is not a number... { const x = new Float64Array( 10 ); const y = new Float64Array( 10 ); daxpy( x.length, 5.0, x, 1, y, '10' ); // $ExpectError daxpy( x.length, 5.0, x, 1, y, true ); // $ExpectError daxpy( x.length, 5.0, x, 1, y, false ); // $ExpectError daxpy( x.length, 5.0, x, 1, y, null ); // $ExpectError daxpy( x.length, 5.0, x, 1, y, undefined ); // $ExpectError daxpy( x.length, 5.0, x, 1, y, [] ); // $ExpectError daxpy( x.length, 5.0, x, 1, y, {} ); // $ExpectError daxpy( x.length, 5.0, x, 1, y, ( x: number ): number => x ); // $ExpectError } // The compiler throws an error if the function is provided an unsupported number of arguments... { const x = new Float64Array( 10 ); const y = new Float64Array( 10 ); daxpy(); // $ExpectError daxpy( x.length ); // $ExpectError daxpy( x.length, 5.0 ); // $ExpectError daxpy( x.length, 5.0, x ); // $ExpectError daxpy( x.length, 5.0, x, 1 ); // $ExpectError daxpy( x.length, 5.0, x, 1, y ); // $ExpectError daxpy( x.length, 5.0, x, 1, y, 1, 10 ); // $ExpectError } // Attached to main export is an `ndarray` method which returns a Float64Array... { const x = new Float64Array( 10 ); const y = new Float64Array( 10 ); daxpy.ndarray( x.length, 5.0, x, 1, 0, y, 1, 0 ); // $ExpectType Float64Array } // The compiler throws an error if the `ndarray` method is provided a first argument which is not a number... { const x = new Float64Array( 10 ); const y = new Float64Array( 10 ); daxpy.ndarray( '10', 5.0, x, 1, 0, y, 1, 0 ); // $ExpectError daxpy.ndarray( true, 5.0, x, 1, 0, y, 1, 0 ); // $ExpectError daxpy.ndarray( false, 5.0, x, 1, 0, y, 1, 0 ); // $ExpectError daxpy.ndarray( null, 5.0, x, 1, 0, y, 1, 0 ); // $ExpectError daxpy.ndarray( undefined, 5.0, x, 1, 0, y, 1, 0 ); // $ExpectError daxpy.ndarray( [], 5.0, x, 1, 0, y, 1, 0 ); // $ExpectError daxpy.ndarray( {}, 5.0, x, 1, 0, y, 1, 0 ); // $ExpectError daxpy.ndarray( ( x: number ): number => x, 5.0, x, 1, 0, y, 1, 0 ); // $ExpectError } // The compiler throws an error if the `ndarray` method is provided a second argument which is not a number... { const x = new Float64Array( 10 ); const y = new Float64Array( 10 ); daxpy.ndarray( x.length, '10', x, 1, 0, y, 1, 0 ); // $ExpectError daxpy.ndarray( x.length, true, x, 1, 0, y, 1, 0 ); // $ExpectError daxpy.ndarray( x.length, false, x, 1, 0, y, 1, 0 ); // $ExpectError daxpy.ndarray( x.length, null, x, 1, 0, y, 1, 0 ); // $ExpectError daxpy.ndarray( x.length, undefined, x, 1, 0, y, 1, 0 ); // $ExpectError daxpy.ndarray( x.length, [], x, 1, 0, y, 1, 0 ); // $ExpectError daxpy.ndarray( x.length, {}, x, 1, 0, y, 1, 0 ); // $ExpectError daxpy.ndarray( x.length, ( x: number ): number => x, x, 1, 0, y, 1, 0 ); // $ExpectError } // The compiler throws an error if the `ndarray` method is provided a third argument which is not a Float64Array... { const x = new Float64Array( 10 ); const y = new Float64Array( 10 ); daxpy.ndarray( x.length, 5.0, 10, 1, 0, y, 1, 0 ); // $ExpectError daxpy.ndarray( x.length, 5.0, '10', 1, 0, y, 1, 0 ); // $ExpectError daxpy.ndarray( x.length, 5.0, true, 1, 0, y, 1, 0 ); // $ExpectError daxpy.ndarray( x.length, 5.0, false, 1, 0, y, 1, 0 ); // $ExpectError daxpy.ndarray( x.length, 5.0, null, 1, 0, y, 1, 0 ); // $ExpectError daxpy.ndarray( x.length, 5.0, undefined, 1, 0, y, 1, 0 ); // $ExpectError daxpy.ndarray( x.length, 5.0, [], 1, 0, y, 1, 0 ); // $ExpectError daxpy.ndarray( x.length, 5.0, {}, 1, 0, y, 1, 0 ); // $ExpectError daxpy.ndarray( x.length, 5.0, ( x: number ): number => x, 1, 0, y, 1, 0 ); // $ExpectError } // The compiler throws an error if the `ndarray` method is provided a fourth argument which is not a number... { const x = new Float64Array( 10 ); const y = new Float64Array( 10 ); daxpy.ndarray( x.length, 5.0, x, '10', 0, y, 1, 0 ); // $ExpectError daxpy.ndarray( x.length, 5.0, x, true, 0, y, 1, 0 ); // $ExpectError daxpy.ndarray( x.length, 5.0, x, false, 0, y, 1, 0 ); // $ExpectError daxpy.ndarray( x.length, 5.0, x, null, 0, y, 1, 0 ); // $ExpectError daxpy.ndarray( x.length, 5.0, x, undefined, 0, y, 1, 0 ); // $ExpectError daxpy.ndarray( x.length, 5.0, x, [], 0, y, 1, 0 ); // $ExpectError daxpy.ndarray( x.length, 5.0, x, {}, 0, y, 1, 0 ); // $ExpectError daxpy.ndarray( x.length, 5.0, x, ( x: number ): number => x, 0, y, 1, 0 ); // $ExpectError } // The compiler throws an error if the `ndarray` method is provided a fifth argument which is not a number... { const x = new Float64Array( 10 ); const y = new Float64Array( 10 ); daxpy.ndarray( x.length, 5.0, x, 1, '10', y, 1, 0 ); // $ExpectError daxpy.ndarray( x.length, 5.0, x, 1, true, y, 1, 0 ); // $ExpectError daxpy.ndarray( x.length, 5.0, x, 1, false, y, 1, 0 ); // $ExpectError daxpy.ndarray( x.length, 5.0, x, 1, null, y, 1, 0 ); // $ExpectError daxpy.ndarray( x.length, 5.0, x, 1, undefined, y, 1, 0 ); // $ExpectError daxpy.ndarray( x.length, 5.0, x, 1, [], y, 1, 0 ); // $ExpectError daxpy.ndarray( x.length, 5.0, x, 1, {}, y, 1, 0 ); // $ExpectError daxpy.ndarray( x.length, 5.0, x, 1, ( x: number ): number => x, y, 1, 0 ); // $ExpectError } // The compiler throws an error if the `ndarray` method is provided a sixth argument which is not a Float64Array... { const x = new Float64Array( 10 ); daxpy.ndarray( x.length, 5.0, x, 1, 0, 10, 1, 0 ); // $ExpectError daxpy.ndarray( x.length, 5.0, x, 1, 0, '10', 1, 0 ); // $ExpectError daxpy.ndarray( x.length, 5.0, x, 1, 0, true, 1, 0 ); // $ExpectError daxpy.ndarray( x.length, 5.0, x, 1, 0, false, 1, 0 ); // $ExpectError daxpy.ndarray( x.length, 5.0, x, 1, 0, null, 1, 0 ); // $ExpectError daxpy.ndarray( x.length, 5.0, x, 1, 0, undefined, 1, 0 ); // $ExpectError daxpy.ndarray( x.length, 5.0, x, 1, 0, [], 1, 0 ); // $ExpectError daxpy.ndarray( x.length, 5.0, x, 1, 0, {}, 1, 0 ); // $ExpectError daxpy.ndarray( x.length, 5.0, x, 1, 0, ( x: number ): number => x, 1, 0 ); // $ExpectError } // The compiler throws an error if the `ndarray` method is provided a seventh argument which is not a number... { const x = new Float64Array( 10 ); const y = new Float64Array( 10 ); daxpy.ndarray( x.length, 5.0, x, 1, 0, y, '10', 0 ); // $ExpectError daxpy.ndarray( x.length, 5.0, x, 1, 0, y, true, 0 ); // $ExpectError daxpy.ndarray( x.length, 5.0, x, 1, 0, y, false, 0 ); // $ExpectError daxpy.ndarray( x.length, 5.0, x, 1, 0, y, null, 0 ); // $ExpectError daxpy.ndarray( x.length, 5.0, x, 1, 0, y, undefined, 0 ); // $ExpectError daxpy.ndarray( x.length, 5.0, x, 1, 0, y, [], 0 ); // $ExpectError daxpy.ndarray( x.length, 5.0, x, 1, 0, y, {}, 0 ); // $ExpectError daxpy.ndarray( x.length, 5.0, x, 1, 0, y, ( x: number ): number => x, 0 ); // $ExpectError } // The compiler throws an error if the `ndarray` method is provided an eighth argument which is not a number... { const x = new Float64Array( 10 ); const y = new Float64Array( 10 ); daxpy.ndarray( x.length, 5.0, x, 1, 0, y, 1, '10' ); // $ExpectError daxpy.ndarray( x.length, 5.0, x, 1, 0, y, 1, true ); // $ExpectError daxpy.ndarray( x.length, 5.0, x, 1, 0, y, 1, false ); // $ExpectError daxpy.ndarray( x.length, 5.0, x, 1, 0, y, 1, null ); // $ExpectError daxpy.ndarray( x.length, 5.0, x, 1, 0, y, 1, undefined ); // $ExpectError daxpy.ndarray( x.length, 5.0, x, 1, 0, y, 1, [] ); // $ExpectError daxpy.ndarray( x.length, 5.0, x, 1, 0, y, 1, {} ); // $ExpectError daxpy.ndarray( x.length, 5.0, x, 1, 0, y, 1, ( x: number ): number => x ); // $ExpectError } // The compiler throws an error if the `ndarray` method is provided an unsupported number of arguments... { const x = new Float64Array( 10 ); const y = new Float64Array( 10 ); daxpy.ndarray(); // $ExpectError daxpy.ndarray( x.length ); // $ExpectError daxpy.ndarray( x.length, 5.0 ); // $ExpectError daxpy.ndarray( x.length, 5.0, x ); // $ExpectError daxpy.ndarray( x.length, 5.0, x, 1 ); // $ExpectError daxpy.ndarray( x.length, 5.0, x, 1, 0 ); // $ExpectError daxpy.ndarray( x.length, 5.0, x, 1, 0, y ); // $ExpectError daxpy.ndarray( x.length, 5.0, x, 1, 0, y, 1 ); // $ExpectError daxpy.ndarray( x.length, 5.0, x, 1, 0, y, 1, 0, 10 ); // $ExpectError } ```
/content/code_sandbox/lib/node_modules/@stdlib/blas/base/daxpy/docs/types/test.ts
xml
2016-03-24T04:19:52
2024-08-16T09:03:19
stdlib
stdlib-js/stdlib
4,266
4,843
```xml import { build, GluegunToolbox } from '../index' /** * Create the cli and kick it off */ export async function run(argv?: string[] | string): Promise<GluegunToolbox> { // create a CLI runtime const gluegunCLI = build('gluegun') .src(__dirname) .help() .version() .defaultCommand({ run: async (toolbox: GluegunToolbox) => { const { print, meta } = toolbox print.info(`Gluegun version ${meta.version()}`) print.info(``) print.info(` Type gluegun --help for more info`) }, }) .exclude(['http', 'patching']) .checkForUpdates(25) .create() // and run it const toolbox = await gluegunCLI.run(argv) // send it back (for testing, mostly) return toolbox } ```
/content/code_sandbox/src/cli/cli.ts
xml
2016-11-29T00:37:41
2024-08-15T21:55:45
gluegun
infinitered/gluegun
2,937
200
```xml import { loadTasks } from "@xarc/module-dev"; const xrun = loadTasks(); const xsh = require("xsh"); const { concurrent, exec } = xrun; xrun.load("user", { build: () => { xsh.$.rm("-rf", "dist*"); return concurrent( ...[ "tsconfig.node.cjs.json", "tsconfig.node.esm.json", "tsconfig.browser.es5.cjs.json", "tsconfig.browser.es2x.esm.json" ].map(config => exec(`tsc --build ${config} --pretty`)) ); } }); ```
/content/code_sandbox/packages/xarc-react-redux-observable/xrun-tasks.ts
xml
2016-09-06T19:02:39
2024-08-11T11:43:11
electrode
electrode-io/electrode
2,103
135
```xml export * from './Domain' ```
/content/code_sandbox/packages/encryption/src/index.ts
xml
2016-12-05T23:31:33
2024-08-16T06:51:19
app
standardnotes/app
5,180
7
```xml /* * @license Apache-2.0 * * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ import binetBy = require( './index' ); /** * Accessor callback. * * @returns accessed value */ function accessor(): number { return 0.0; } // TESTS // // The function returns a collection... { const x = new Float64Array( 10 ); const y = new Float64Array( 10 ); binetBy( x.length, x, 1, y, 1, accessor ); // $ExpectType Collection<number> binetBy( x.length, x, 1, y, 1, accessor, {} ); // $ExpectType Collection<number> } // The compiler throws an error if the function is provided a first argument which is not a number... { const x = new Float64Array( 10 ); const y = new Float64Array( 10 ); binetBy( '10', x, 1, y, 1, accessor ); // $ExpectError binetBy( true, x, 1, y, 1, accessor ); // $ExpectError binetBy( false, x, 1, y, 1, accessor ); // $ExpectError binetBy( null, x, 1, y, 1, accessor ); // $ExpectError binetBy( undefined, x, 1, y, 1, accessor ); // $ExpectError binetBy( [], x, 1, y, 1, accessor ); // $ExpectError binetBy( {}, x, 1, y, 1, accessor ); // $ExpectError binetBy( ( x: number ): number => x, x, 1, y, 1, accessor ); // $ExpectError } // The compiler throws an error if the function is provided a second argument which is not a collection... { const x = new Float64Array( 10 ); const y = new Float64Array( 10 ); binetBy( x.length, 10, 1, y, 1, accessor ); // $ExpectError binetBy( x.length, true, 1, y, 1, accessor ); // $ExpectError binetBy( x.length, false, 1, y, 1, accessor ); // $ExpectError binetBy( x.length, null, 1, y, 1, accessor ); // $ExpectError binetBy( x.length, undefined, 1, y, 1, accessor ); // $ExpectError binetBy( x.length, {}, 1, y, 1, accessor ); // $ExpectError } // The compiler throws an error if the function is provided a third argument which is not a number... { const x = new Float64Array( 10 ); const y = new Float64Array( 10 ); binetBy( x.length, x, '10', y, 1, accessor ); // $ExpectError binetBy( x.length, x, true, y, 1, accessor ); // $ExpectError binetBy( x.length, x, false, y, 1, accessor ); // $ExpectError binetBy( x.length, x, null, y, 1, accessor ); // $ExpectError binetBy( x.length, x, undefined, y, 1, accessor ); // $ExpectError binetBy( x.length, x, [], y, 1, accessor ); // $ExpectError binetBy( x.length, x, {}, y, 1, accessor ); // $ExpectError binetBy( x.length, x, ( x: number ): number => x, y, 1, accessor ); // $ExpectError } // The compiler throws an error if the function is provided a fourth argument which is not a collection... { const x = new Float64Array( 10 ); binetBy( x.length, x, 1, 10, 1, accessor ); // $ExpectError binetBy( x.length, x, 1, true, 1, accessor ); // $ExpectError binetBy( x.length, x, 1, false, 1, accessor ); // $ExpectError binetBy( x.length, x, 1, null, 1, accessor ); // $ExpectError binetBy( x.length, x, 1, undefined, 1, accessor ); // $ExpectError binetBy( x.length, x, 1, {}, 1, accessor ); // $ExpectError } // The compiler throws an error if the function is provided a fifth argument which is not a number... { const x = new Float64Array( 10 ); const y = new Float64Array( 10 ); binetBy( x.length, x, 1, y, '10', accessor ); // $ExpectError binetBy( x.length, x, 1, y, true, accessor ); // $ExpectError binetBy( x.length, x, 1, y, false, accessor ); // $ExpectError binetBy( x.length, x, 1, y, null, accessor ); // $ExpectError binetBy( x.length, x, 1, y, undefined, accessor ); // $ExpectError binetBy( x.length, x, 1, y, [], accessor ); // $ExpectError binetBy( x.length, x, 1, y, {}, accessor ); // $ExpectError binetBy( x.length, x, 1, y, ( x: number ): number => x, accessor ); // $ExpectError } // The compiler throws an error if the function is provided a sixth argument which is not a function... { const x = new Float64Array( 10 ); const y = new Float64Array( 10 ); binetBy( x.length, x, 1, y, 1, '10' ); // $ExpectError binetBy( x.length, x, 1, y, 1, 0 ); // $ExpectError binetBy( x.length, x, 1, y, 1, true ); // $ExpectError binetBy( x.length, x, 1, y, 1, false ); // $ExpectError binetBy( x.length, x, 1, y, 1, null ); // $ExpectError binetBy( x.length, x, 1, y, 1, undefined ); // $ExpectError binetBy( x.length, x, 1, y, 1, [] ); // $ExpectError binetBy( x.length, x, 1, y, 1, {} ); // $ExpectError } // The compiler throws an error if the function is provided an unsupported number of arguments... { const x = new Float64Array( 10 ); const y = new Float64Array( 10 ); binetBy(); // $ExpectError binetBy( x.length ); // $ExpectError binetBy( x.length, x ); // $ExpectError binetBy( x.length, x, 1 ); // $ExpectError binetBy( x.length, x, 1, y ); // $ExpectError binetBy( x.length, x, 1, y, 1 ); // $ExpectError binetBy( x.length, x, 1, y, 1, accessor, 10, 10 ); // $ExpectError } // Attached to main export is an `ndarray` method which returns a collection... { const x = new Float64Array( 10 ); const y = new Float64Array( 10 ); binetBy.ndarray( x.length, x, 1, 0, y, 1, 0, accessor ); // $ExpectType Collection<number> binetBy.ndarray( x.length, x, 1, 0, y, 1, 0, accessor, {} ); // $ExpectType Collection<number> } // The compiler throws an error if the `ndarray` method is provided a first argument which is not a number... { const x = new Float64Array( 10 ); const y = new Float64Array( 10 ); binetBy.ndarray( '10', x, 1, 0, y, 1, 0, accessor ); // $ExpectError binetBy.ndarray( true, x, 1, 0, y, 1, 0, accessor ); // $ExpectError binetBy.ndarray( false, x, 1, 0, y, 1, 0, accessor ); // $ExpectError binetBy.ndarray( null, x, 1, 0, y, 1, 0, accessor ); // $ExpectError binetBy.ndarray( undefined, x, 1, 0, y, 1, 0, accessor ); // $ExpectError binetBy.ndarray( [], x, 1, 0, y, 1, 0, accessor ); // $ExpectError binetBy.ndarray( {}, x, 1, 0, y, 1, 0, accessor ); // $ExpectError binetBy.ndarray( ( x: number ): number => x, x, 1, 0, y, 1, 0, accessor ); // $ExpectError } // The compiler throws an error if the `ndarray` method is provided a second argument which is not a collection... { const x = new Float64Array( 10 ); const y = new Float64Array( 10 ); binetBy.ndarray( x.length, 10, 1, 0, y, 1, 0, accessor ); // $ExpectError binetBy.ndarray( x.length, true, 1, 0, y, 1, 0, accessor ); // $ExpectError binetBy.ndarray( x.length, false, 1, 0, y, 1, 0, accessor ); // $ExpectError binetBy.ndarray( x.length, null, 1, 0, y, 1, 0, accessor ); // $ExpectError binetBy.ndarray( x.length, undefined, 1, 0, y, 1, 0, accessor ); // $ExpectError binetBy.ndarray( x.length, {}, 1, 0, y, 1, 0, accessor ); // $ExpectError } // The compiler throws an error if the `ndarray` method is provided a third argument which is not a number... { const x = new Float64Array( 10 ); const y = new Float64Array( 10 ); binetBy.ndarray( x.length, x, '10', 0, y, 1, 0, accessor ); // $ExpectError binetBy.ndarray( x.length, x, true, 0, y, 1, 0, accessor ); // $ExpectError binetBy.ndarray( x.length, x, false, 0, y, 1, 0, accessor ); // $ExpectError binetBy.ndarray( x.length, x, null, 0, y, 1, 0, accessor ); // $ExpectError binetBy.ndarray( x.length, x, undefined, 0, y, 1, 0, accessor ); // $ExpectError binetBy.ndarray( x.length, x, [], 0, y, 1, 0, accessor ); // $ExpectError binetBy.ndarray( x.length, x, {}, 0, y, 1, 0, accessor ); // $ExpectError binetBy.ndarray( x.length, x, ( x: number ): number => x, 0, y, 1, 0, accessor ); // $ExpectError } // The compiler throws an error if the `ndarray` method is provided a fourth argument which is not a number... { const x = new Float64Array( 10 ); const y = new Float64Array( 10 ); binetBy.ndarray( x.length, x, 1, '10', y, 1, 0, accessor ); // $ExpectError binetBy.ndarray( x.length, x, 1, true, y, 1, 0, accessor ); // $ExpectError binetBy.ndarray( x.length, x, 1, false, y, 1, 0, accessor ); // $ExpectError binetBy.ndarray( x.length, x, 1, null, y, 1, 0, accessor ); // $ExpectError binetBy.ndarray( x.length, x, 1, undefined, y, 1, 0, accessor ); // $ExpectError binetBy.ndarray( x.length, x, 1, [], y, 1, 0, accessor ); // $ExpectError binetBy.ndarray( x.length, x, 1, {}, y, 1, 0, accessor ); // $ExpectError binetBy.ndarray( x.length, x, 1, ( x: number ): number => x, y, 1, 0, accessor ); // $ExpectError } // The compiler throws an error if the `ndarray` method is provided a fifth argument which is not a collection... { const x = new Float64Array( 10 ); binetBy.ndarray( x.length, x, 1, 0, 10, 1, 0, accessor ); // $ExpectError binetBy.ndarray( x.length, x, 1, 0, true, 1, 0, accessor ); // $ExpectError binetBy.ndarray( x.length, x, 1, 0, false, 1, 0, accessor ); // $ExpectError binetBy.ndarray( x.length, x, 1, 0, null, 1, 0, accessor ); // $ExpectError binetBy.ndarray( x.length, x, 1, 0, undefined, 1, 0, accessor ); // $ExpectError binetBy.ndarray( x.length, x, 1, 0, {}, 1, 0, accessor ); // $ExpectError } // The compiler throws an error if the `ndarray` method is provided a sixth argument which is not a number... { const x = new Float64Array( 10 ); const y = new Float64Array( 10 ); binetBy.ndarray( x.length, x, 1, 0, y, '10', 0, accessor ); // $ExpectError binetBy.ndarray( x.length, x, 1, 0, y, true, 0, accessor ); // $ExpectError binetBy.ndarray( x.length, x, 1, 0, y, false, 0, accessor ); // $ExpectError binetBy.ndarray( x.length, x, 1, 0, y, null, 0, accessor ); // $ExpectError binetBy.ndarray( x.length, x, 1, 0, y, undefined, 0, accessor ); // $ExpectError binetBy.ndarray( x.length, x, 1, 0, y, [], 0, accessor ); // $ExpectError binetBy.ndarray( x.length, x, 1, 0, y, {}, 0, accessor ); // $ExpectError binetBy.ndarray( x.length, x, 1, 0, y, ( x: number ): number => x, 0, accessor ); // $ExpectError } // The compiler throws an error if the `ndarray` method is provided a seventh argument which is not a number... { const x = new Float64Array( 10 ); const y = new Float64Array( 10 ); binetBy.ndarray( x.length, x, 1, 0, y, 1, '10', accessor ); // $ExpectError binetBy.ndarray( x.length, x, 1, 0, y, 1, true, accessor ); // $ExpectError binetBy.ndarray( x.length, x, 1, 0, y, 1, false, accessor ); // $ExpectError binetBy.ndarray( x.length, x, 1, 0, y, 1, null, accessor ); // $ExpectError binetBy.ndarray( x.length, x, 1, 0, y, 1, undefined, accessor ); // $ExpectError binetBy.ndarray( x.length, x, 1, 0, y, 1, [], accessor ); // $ExpectError binetBy.ndarray( x.length, x, 1, 0, y, 1, {}, accessor ); // $ExpectError binetBy.ndarray( x.length, x, 1, 0, y, 1, ( x: number ): number => x, accessor ); // $ExpectError } // The compiler throws an error if the `ndarray` method is provided an eighth argument which is not a function... { const x = new Float64Array( 10 ); const y = new Float64Array( 10 ); binetBy.ndarray( x.length, x, 1, 0, y, 1, 0, '10' ); // $ExpectError binetBy.ndarray( x.length, x, 1, 0, y, 1, 0, 0 ); // $ExpectError binetBy.ndarray( x.length, x, 1, 0, y, 1, 0, true ); // $ExpectError binetBy.ndarray( x.length, x, 1, 0, y, 1, 0, false ); // $ExpectError binetBy.ndarray( x.length, x, 1, 0, y, 1, 0, null ); // $ExpectError binetBy.ndarray( x.length, x, 1, 0, y, 1, 0, undefined ); // $ExpectError binetBy.ndarray( x.length, x, 1, 0, y, 1, 0, [] ); // $ExpectError binetBy.ndarray( x.length, x, 1, 0, y, 1, 0, {} ); // $ExpectError } // The compiler throws an error if the `ndarray` method is provided an unsupported number of arguments... { const x = new Float64Array( 10 ); const y = new Float64Array( 10 ); binetBy.ndarray(); // $ExpectError binetBy.ndarray( x.length ); // $ExpectError binetBy.ndarray( x.length, x ); // $ExpectError binetBy.ndarray( x.length, x, 1 ); // $ExpectError binetBy.ndarray( x.length, x, 1, 0 ); // $ExpectError binetBy.ndarray( x.length, x, 1, 0, y ); // $ExpectError binetBy.ndarray( x.length, x, 1, 0, y, 1 ); // $ExpectError binetBy.ndarray( x.length, x, 1, 0, y, 1, 0 ); // $ExpectError binetBy.ndarray( x.length, x, 1, 0, y, 1, 0, accessor, 10, 10 ); // $ExpectError } ```
/content/code_sandbox/lib/node_modules/@stdlib/math/strided/special/binet-by/docs/types/test.ts
xml
2016-03-24T04:19:52
2024-08-16T09:03:19
stdlib
stdlib-js/stdlib
4,266
4,218
```xml import { unparse } from 'papaparse'; import { DWAccountDisplay } from '@services'; import { Asset } from '@types'; import { bigify, fromTokenBase } from '@utils'; import { uniqBy } from '@vendor'; export const accountsToCSV = (accounts: DWAccountDisplay[], asset: Asset) => { const infos = uniqBy((a) => a.address, accounts).map((account) => ({ address: account.address, 'dpath type': account.pathItem.baseDPath.name, dpath: account.pathItem.path, asset: (account.balance ? bigify(fromTokenBase(bigify(account.balance), asset.decimal)).toFixed(4) : '0.0000') + asset.ticker })); return unparse(infos); }; ```
/content/code_sandbox/src/utils/csv.ts
xml
2016-12-04T01:35:27
2024-08-14T21:41:58
MyCrypto
MyCryptoHQ/MyCrypto
1,347
173
```xml import { Component } from '@angular/core'; import { Code } from '@domain/code'; @Component({ selector: 'custom-theme-doc', template: ` <app-docsectiontext> <p> Themes are created with SASS using the <i>primeng-sass-theme</i> project available at <a href="path_to_url">github</a>. This repository contains all the scss files for the components and the variables of the built-in themes so that you may customize an existing theme or create your own. The scss variables used in a theme are available at the <a href="path_to_url">SASS API</a> documentation. </p> <p> There are 2 alternatives to create your own theme. First option is compiling a theme with command line sass whereas second option is embedding scss files within your project to let your build environment do the compilation. In all cases, the generated theme file should be imported to your project. </p> <h3>Theme SCSS</h3> <p> The theme scss is available as open source at <a href="path_to_url">primeng-sass-theme</a> repository. The <i>theme-base</i> folder contains the theming structure of the components, themes under <i>themes</i> folder import the base and define the SCSS variables. The <i>themes</i> folder also contains all the built-in themes so you can customize their code as well. </p> <p> To create your own theme, <a href="path_to_url">download</a> the release matching your PrimeNG version and access the <i>themes/mytheme</i> folder. The sass variables to customize are available under the <i>variables</i> folder. The <i>_fonts</i> file can be used to define a custom font for your project whereas the optional <i>_extensions</i> file is provided to add overrides to the components designs. The <i>theme.scss</i> file imports the theme files along with the <i>theme-base</i> folder at the root to combine everything together. Next step would be compilation of the scss that can either be command line or within your project. </p> <h3>Compile SCSS Manually</h3> <p>Once your theme is ready run the following command to compile it. Note that <a href="path_to_url">sass</a> command should be available in your terminal.</p> <app-code [code]="code1" [hideToggleCode]="true"></app-code> <p>Then copy and import the theme.css file in your application. For example, in Angular CLI you may place theme.css under assets folder and then import it at <i>styles.css</i>.</p> <app-code [code]="code2" [hideToggleCode]="true"></app-code> <h3>Build Time Compilation</h3> <p> This approach eliminates the manual compilation by delegating it to Angular CLI. Copy the <i>theme-base</i> folder along with <i>themes/mytheme</i> folder to your application where assets reside. At a suitable location like <i>styles.scss</i>, import the <i>theme.scss</i> from <i>assets/themes/mytheme</i>. That would be it, during build time, your project will compile the sass and import the theme. Any changes to your theme will be reflected instantly. </p> </app-docsectiontext> ` }) export class CustomThemeDoc { code1: Code = { basic: `sass --update themes/mytheme/theme.scss:themes/mytheme/theme.css` }; code2: Code = { basic: `@import 'assets/theme.css';` }; } ```
/content/code_sandbox/src/app/showcase/doc/theming/customthemedoc.ts
xml
2016-01-16T09:23:28
2024-08-16T19:58:20
primeng
primefaces/primeng
9,969
831
```xml import { COUPON_CODES, CYCLE, PLANS, PLAN_NAMES } from '@proton/shared/lib/constants'; import { FeatureCode } from '../../../../containers/features'; import { getMailPlusInboxFeatures, getUnlimitedInboxFeatures, getVisionaryInboxFeatures, } from '../../helpers/offerCopies'; import type { OfferConfig } from '../../interface'; import bannerImage from './BF-Mail-App-Modal-996x176.png'; import bannerImage2x from './BF-Mail-App-Modal-1992x352.png'; import Layout from './Layout'; const config: OfferConfig = { ID: 'black-friday-2023-inbox-free', autoPopUp: 'one-time', featureCode: FeatureCode.OfferBlackFriday2023InboxFree, images: { bannerImage, bannerImage2x, }, darkBackground: true, deals: [ { ref: 'eoy_23_mail_free-modal-m12', dealName: PLAN_NAMES[PLANS.MAIL], planIDs: { [PLANS.MAIL]: 1, }, cycle: CYCLE.YEARLY, couponCode: COUPON_CODES.END_OF_YEAR_2023, features: getMailPlusInboxFeatures, }, { ref: 'eoy_23_mail_free-modal-u12', dealName: PLAN_NAMES[PLANS.BUNDLE], planIDs: { [PLANS.BUNDLE]: 1, }, cycle: CYCLE.YEARLY, couponCode: COUPON_CODES.END_OF_YEAR_2023, features: getUnlimitedInboxFeatures, popular: 1, }, { ref: 'eoy_23_mail_free-modal-v12', dealName: PLAN_NAMES[PLANS.VISIONARY], planIDs: { [PLANS.VISIONARY]: 1, }, cycle: CYCLE.YEARLY, couponCode: COUPON_CODES.END_OF_YEAR_2023, features: getVisionaryInboxFeatures, }, ], layout: Layout, }; export default config; ```
/content/code_sandbox/packages/components/containers/offers/operations/blackFridayInbox2023Free/configuration.ts
xml
2016-06-08T11:16:51
2024-08-16T14:14:27
WebClients
ProtonMail/WebClients
4,300
455
```xml import { saveAs } from "file-saver"; import { createLogsHar } from "./converter"; import { Har, RQNetworkLog, HarEntry } from "./types"; export function downloadLogs(logs: RQNetworkLog[]) { const harLogs = createLogsHar(logs); const jsonBlob = new Blob([JSON.stringify(harLogs, null, 2)], { type: "application/json" }); saveAs(jsonBlob, "requestly_logs.har"); } export function downloadHar(har: Har, preferredName?: string) { const jsonBlob = new Blob([JSON.stringify(har, null, 2)], { type: "application/json" }); saveAs(jsonBlob, preferredName ? `${preferredName}.har` : "requestly_logs.har"); } export function getGraphQLDetails(harEntry: HarEntry): RQNetworkLog["metadata"]["GQLDetails"] { const method = harEntry.request.method; let GQLQuery = null, GQLVariables = null, GQLOperationName = null; if (method === "GET" || method === "HEAD") { const urlSearchParams = harEntry.request.queryString; GQLQuery = urlSearchParams.find((param) => param.name === "query")?.value; GQLVariables = urlSearchParams.find((param) => param.name === "variables")?.value; GQLOperationName = urlSearchParams.find((param) => param.name === "operationName")?.value; } else if (method === "POST") { const postData = harEntry.request.postData; if (postData) { const postDataText = postData.text; try { const postDataJson = JSON.parse(postDataText); GQLQuery = postDataJson.query ?? null; GQLVariables = postDataJson.variables ?? null; GQLOperationName = postDataJson.operationName ?? null; } catch (e) { // skip } } } if (GQLQuery || GQLOperationName) { return { query: GQLQuery, variables: GQLVariables, operationName: GQLOperationName, }; } return null; } ```
/content/code_sandbox/app/src/components/mode-specific/desktop/InterceptTraffic/WebTraffic/TrafficExporter/harLogs/utils.ts
xml
2016-12-01T04:36:06
2024-08-16T19:12:19
requestly
requestly/requestly
2,121
467
```xml const IndentIcon = ({ className }: { className?: string }) => ( <svg viewBox="0 0 33 33" fill="none" xmlns="path_to_url" className={className}> <rect x="15.25" y="9.51758" width="14" height="2" rx="1" fill="currentColor" /> <rect x="15.25" y="15.5" width="14" height="2" rx="1" fill="currentColor" /> <rect x="15.25" y="21.4824" width="14" height="2" rx="1" fill="currentColor" /> <rect x="3.25" y="3.5" width="26" height="2" rx="1" fill="currentColor" /> <rect x="3.25" y="27.5" width="26" height="2" rx="1" fill="currentColor" /> <path d="M3.25 13.2795L3.25 19.6259C3.25 20.1594 3.89416 20.4276 4.27275 20.0517L7.51493 16.8325C7.75368 16.5955 7.75087 16.2085 7.50871 15.9749L4.26654 12.8477C3.88555 12.4802 3.25 12.7502 3.25 13.2795Z" fill="currentColor" /> </svg> ) export default IndentIcon ```
/content/code_sandbox/applications/docs-editor/src/app/Icons/IndentIcon.tsx
xml
2016-06-08T11:16:51
2024-08-16T14:14:27
WebClients
ProtonMail/WebClients
4,300
357
```xml <?xml version="1.0" encoding="utf-8"?> <!-- path_to_url Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. --> <vector xmlns:android="path_to_url" android:width="24dp" android:height="24dp" android:viewportWidth="24.0" android:viewportHeight="24.0"> <path android:pathData="M12,8c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2c-1.1,0 -2,0.9 -2,2S10.9,8 12,8z" android:fillColor="@android:color/holo_blue_dark" /> <path android:pathData="M12,10c-1.1,0 -2,0.9 -2,2s0.9,2 2,2c1.1,0 2,-0.9 2,-2S13.1,10 12,10z" android:fillColor="@android:color/holo_blue_dark" /> <path android:pathData="M12,16c-1.1,0 -2,0.9 -2,2s0.9,2 2,2c1.1,0 2,-0.9 2,-2S13.1,16 12,16z" android:fillColor="@android:color/white"/> </vector> ```
/content/code_sandbox/app/src/main/res/drawable/overflow3.xml
xml
2016-11-25T01:39:07
2024-08-13T12:17:17
Hijacker
chrisk44/Hijacker
2,371
346
```xml /* * @license Apache-2.0 * * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ import acosd = require( './index' ); // TESTS // // The function returns a number... { acosd( 0.5 ); // $ExpectType number } // The compiler throws an error if the function is provided a value other than a number... { acosd( true ); // $ExpectError acosd( false ); // $ExpectError acosd( null ); // $ExpectError acosd( undefined ); // $ExpectError acosd( '5' ); // $ExpectError acosd( [] ); // $ExpectError acosd( {} ); // $ExpectError acosd( ( x: number ): number => x ); // $ExpectError } // The compiler throws an error if the function is provided insufficient arguments... { acosd(); // $ExpectError } ```
/content/code_sandbox/lib/node_modules/@stdlib/math/base/special/acosd/docs/types/test.ts
xml
2016-03-24T04:19:52
2024-08-16T09:03:19
stdlib
stdlib-js/stdlib
4,266
230
```xml import type * as express from 'express'; import { type AccountsServer, AccountsJsError } from '@accounts/server'; import { type AccountsPassword, CreateUserErrors } from '@accounts/password'; import { type CreateUserResult, type CreateUserServicePassword } from '@accounts/types'; import { sendError } from '../../utils/send-error'; import { body } from 'express-validator'; import { matchOrThrow } from '../../utils/matchOrTrow'; export const registerPassword = (accountsServer: AccountsServer) => [ body('user').isObject().notEmpty(), body('user.username').optional().isString().notEmpty(), body('user.email').optional().isEmail(), body('user.password').isString().notEmpty(), async (req: express.Request, res: express.Response) => { try { const { user } = matchOrThrow<{ user: CreateUserServicePassword }>(req); const accountsPassword = accountsServer.getServices().password as AccountsPassword; let userId: string; try { userId = await accountsPassword.createUser(user); } catch (error) { // If ambiguousErrorMessages is true we obfuscate the email or username already exist error // to prevent user enumeration during user creation if ( accountsServer.options.ambiguousErrorMessages && error instanceof AccountsJsError && (error.code === CreateUserErrors.EmailAlreadyExists || error.code === CreateUserErrors.UsernameAlreadyExists) ) { return res.json({} as CreateUserResult); } throw error; } if (!accountsServer.options.enableAutologin) { return res.json( accountsServer.options.ambiguousErrorMessages && accountsPassword.options.requireEmailVerification ? ({} as CreateUserResult) : ({ userId, } as CreateUserResult) ); } // When initializing AccountsPassword we check that enableAutologin and requireEmailVerification options // are not enabled at the same time const createdUser = await accountsServer.findUserById(userId); // If we are here - user must be created successfully // Explicitly saying this to Typescript compiler const loginResult = await accountsServer.loginWithUser(createdUser!, req.infos); return res.json({ userId, loginResult, } as CreateUserResult); } catch (err) { sendError(res, err); } }, ]; ```
/content/code_sandbox/packages/rest-express/src/endpoints/password/register.ts
xml
2016-10-07T01:43:23
2024-07-14T11:57:08
accounts
accounts-js/accounts
1,492
495
```xml <?xml version="1.0" encoding="utf-8"?> <Project DefaultTargets="Build" xmlns="path_to_url"> <ItemGroup Label="ProjectConfigurations"> <ProjectConfiguration Include="Debug|Win32"> <Configuration>Debug</Configuration> <Platform>Win32</Platform> </ProjectConfiguration> <ProjectConfiguration Include="Debug|x64"> <Configuration>Debug</Configuration> <Platform>x64</Platform> </ProjectConfiguration> <ProjectConfiguration Include="Release|Win32"> <Configuration>Release</Configuration> <Platform>Win32</Platform> </ProjectConfiguration> <ProjectConfiguration Include="Release|x64"> <Configuration>Release</Configuration> <Platform>x64</Platform> </ProjectConfiguration> </ItemGroup> <ItemGroup> <ClCompile Include="Logger.cpp" /> <ClCompile Include="PebHider.cpp" /> <ClCompile Include="Settings.cpp" /> <ClCompile Include="OsInfo.cpp" /> <ClCompile Include="Peb.cpp" /> <ClCompile Include="User32Loader.cpp" /> <ClCompile Include="Util.cpp" /> <ClCompile Include="Version.cpp" /> </ItemGroup> <ItemGroup> <ClInclude Include="Logger.h" /> <ClInclude Include="NtApiShim.h" /> <ClInclude Include="PebHider.h" /> <ClInclude Include="Resource.h" /> <ClInclude Include="Settings.h" /> <ClInclude Include="OsInfo.h" /> <ClInclude Include="Peb.h" /> <ClInclude Include="User32Loader.h" /> <ClInclude Include="Util.h" /> <ClInclude Include="Version.h" /> <ClInclude Include="Win32kSyscalls.h" /> </ItemGroup> <ItemGroup> <ProjectReference Include="..\SCMRevGen\SCMRevGen.vcxproj"> <Project>{4cef9c8e-91c8-4148-94b1-af2a3b597762}</Project> </ProjectReference> </ItemGroup> <PropertyGroup Label="Globals"> <VCProjectVersion>16.0</VCProjectVersion> <ProjectGuid>{E468DA07-48EA-40EB-A845-FA69C39D3396}</ProjectGuid> <Keyword>Win32Proj</Keyword> <RootNamespace>Scylla</RootNamespace> <WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion> </PropertyGroup> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> <ConfigurationType>StaticLibrary</ConfigurationType> <UseDebugLibraries>true</UseDebugLibraries> <PlatformToolset>v142</PlatformToolset> <CharacterSet>Unicode</CharacterSet> <SpectreMitigation>false</SpectreMitigation> <VcpkgEnabled>false</VcpkgEnabled> <VCToolsVersion Condition="'$(USE_XP_TOOLCHAIN)'!=''">14.27.29110</VCToolsVersion> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> <ConfigurationType>StaticLibrary</ConfigurationType> <UseDebugLibraries>true</UseDebugLibraries> <PlatformToolset>v142</PlatformToolset> <CharacterSet>Unicode</CharacterSet> <SpectreMitigation>false</SpectreMitigation> <VcpkgEnabled>false</VcpkgEnabled> <VCToolsVersion Condition="'$(USE_XP_TOOLCHAIN)'!=''">14.27.29110</VCToolsVersion> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> <ConfigurationType>StaticLibrary</ConfigurationType> <UseDebugLibraries>false</UseDebugLibraries> <PlatformToolset>v142</PlatformToolset> <WholeProgramOptimization>true</WholeProgramOptimization> <CharacterSet>Unicode</CharacterSet> <SpectreMitigation>false</SpectreMitigation> <VcpkgEnabled>false</VcpkgEnabled> <VCToolsVersion Condition="'$(USE_XP_TOOLCHAIN)'!=''">14.27.29110</VCToolsVersion> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> <ConfigurationType>StaticLibrary</ConfigurationType> <UseDebugLibraries>false</UseDebugLibraries> <PlatformToolset>v142</PlatformToolset> <WholeProgramOptimization>true</WholeProgramOptimization> <CharacterSet>Unicode</CharacterSet> <SpectreMitigation>false</SpectreMitigation> <VcpkgEnabled>false</VcpkgEnabled> <VCToolsVersion Condition="'$(USE_XP_TOOLCHAIN)'!=''">14.27.29110</VCToolsVersion> </PropertyGroup> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> <ImportGroup Label="ExtensionSettings"> </ImportGroup> <ImportGroup Label="Shared"> </ImportGroup> <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> <Import Project="$(SolutionDir)Scylla\scylla.props" /> <Import Project="$(SolutionDir)Scylla\scylla.debug.props" /> </ImportGroup> <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> <Import Project="$(SolutionDir)Scylla\scylla.props" /> <Import Project="$(SolutionDir)Scylla\scylla.debug.props" /> </ImportGroup> <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> <Import Project="$(SolutionDir)Scylla\scylla.props" /> <Import Project="$(SolutionDir)Scylla\scylla.release.props" /> </ImportGroup> <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> <Import Project="$(SolutionDir)Scylla\scylla.props" /> <Import Project="$(SolutionDir)Scylla\scylla.release.props" /> </ImportGroup> <PropertyGroup Label="UserMacros" /> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> <LinkIncremental>true</LinkIncremental> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> <LinkIncremental>true</LinkIncremental> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> <LinkIncremental>false</LinkIncremental> <GenerateManifest>false</GenerateManifest> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> <LinkIncremental>false</LinkIncremental> <GenerateManifest>false</GenerateManifest> </PropertyGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> <ClCompile> <PreprocessorDefinitions>WIN32;_DEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions> </ClCompile> <Link> <SubSystem>Windows</SubSystem> </Link> <Lib> <IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries> </Lib> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> <ClCompile> <PreprocessorDefinitions>_DEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions> </ClCompile> <Link> <SubSystem>Windows</SubSystem> </Link> <Lib> <IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries> </Lib> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> <ClCompile> <PreprocessorDefinitions>WIN32;NDEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions> </ClCompile> <Link> <SubSystem>Windows</SubSystem> </Link> <Lib> <IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries> </Lib> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> <ClCompile> <PreprocessorDefinitions>NDEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions> </ClCompile> <Link> <SubSystem>Windows</SubSystem> </Link> <Lib> <IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries> </Lib> </ItemDefinitionGroup> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> </Project> ```
/content/code_sandbox/Scylla/Scylla.vcxproj
xml
2016-01-27T05:26:30
2024-08-16T08:06:22
ScyllaHide
x64dbg/ScyllaHide
3,365
2,194
```xml <Project Sdk="Microsoft.NET.Sdk.Web"> <PropertyGroup> <TargetFramework>net8.0</TargetFramework> <Nullable>enable</Nullable> <ImplicitUsings>enable</ImplicitUsings> </PropertyGroup> <ItemGroup> <PackageReference Include="LokiLoggingProvider" Version="1.0.0" /> </ItemGroup> </Project> ```
/content/code_sandbox/projects/logging/logging-Loki/logging-Loki.csproj
xml
2016-07-27T08:23:40
2024-08-16T19:15:21
practical-aspnetcore
dodyg/practical-aspnetcore
9,106
86
```xml import { Provider } from "@angular/core"; import { Constructor, Opaque } from "type-fest"; import { SafeInjectionToken } from "../../services/injection-tokens"; /** * The return type of the {@link safeProvider} helper function. * Used to distinguish a type safe provider definition from a non-type safe provider definition. */ export type SafeProvider = Opaque<Provider>; // TODO: type-fest also provides a type like this when we upgrade >= 3.7.0 type AbstractConstructor<T> = abstract new (...args: any) => T; type MapParametersToDeps<T> = { [K in keyof T]: AbstractConstructor<T[K]> | SafeInjectionToken<T[K]>; }; type SafeInjectionTokenType<T> = T extends SafeInjectionToken<infer J> ? J : never; /** * Gets the instance type from a constructor, abstract constructor, or SafeInjectionToken */ type ProviderInstanceType<T> = T extends SafeInjectionToken<any> ? InstanceType<SafeInjectionTokenType<T>> : T extends Constructor<any> | AbstractConstructor<any> ? InstanceType<T> : never; /** * Represents a dependency provided with the useClass option. */ type SafeClassProvider< A extends AbstractConstructor<any> | SafeInjectionToken<any>, I extends Constructor<ProviderInstanceType<A>>, D extends MapParametersToDeps<ConstructorParameters<I>>, > = { provide: A; useClass: I; deps: D; }; /** * Represents a dependency provided with the useValue option. */ type SafeValueProvider<A extends SafeInjectionToken<any>, V extends SafeInjectionTokenType<A>> = { provide: A; useValue: V; }; /** * Represents a dependency provided with the useFactory option. */ type SafeFactoryProvider< A extends AbstractConstructor<any> | SafeInjectionToken<any>, I extends (...args: any) => ProviderInstanceType<A>, D extends MapParametersToDeps<Parameters<I>>, > = { provide: A; useFactory: I; deps: D; multi?: boolean; }; /** * Represents a dependency provided with the useExisting option. */ type SafeExistingProvider< A extends Constructor<any> | AbstractConstructor<any> | SafeInjectionToken<any>, I extends Constructor<ProviderInstanceType<A>> | AbstractConstructor<ProviderInstanceType<A>>, > = { provide: A; useExisting: I; }; /** * Represents a dependency where there is no abstract token, the token is the implementation */ type SafeConcreteProvider< I extends Constructor<any>, D extends MapParametersToDeps<ConstructorParameters<I>>, > = { provide: I; deps: D; }; /** * If useAngularDecorators: true is specified, do not require a deps array. * This is a manual override for where @Injectable decorators are used */ type UseAngularDecorators<T extends { deps: any }> = Omit<T, "deps"> & { useAngularDecorators: true; }; /** * Represents a type with a deps array that may optionally be overridden with useAngularDecorators */ type AllowAngularDecorators<T extends { deps: any }> = T | UseAngularDecorators<T>; /** * A factory function that creates a provider for the ngModule providers array. * This (almost) guarantees type safety for your provider definition. It does nothing at runtime. * Warning: the useAngularDecorators option provides an override where your class uses the Injectable decorator, * however this cannot be enforced by the type system and will not cause an error if the decorator is not used. * @example safeProvider({ provide: MyService, useClass: DefaultMyService, deps: [AnotherService] }) * @param provider Your provider object in the usual shape (e.g. using useClass, useValue, useFactory, etc.) * @returns The exact same object without modification (pass-through). */ export const safeProvider = < // types for useClass AClass extends AbstractConstructor<any> | SafeInjectionToken<any>, IClass extends Constructor<ProviderInstanceType<AClass>>, DClass extends MapParametersToDeps<ConstructorParameters<IClass>>, // types for useValue AValue extends SafeInjectionToken<any>, VValue extends SafeInjectionTokenType<AValue>, // types for useFactory AFactory extends AbstractConstructor<any> | SafeInjectionToken<any>, IFactory extends (...args: any) => ProviderInstanceType<AFactory>, DFactory extends MapParametersToDeps<Parameters<IFactory>>, // types for useExisting AExisting extends Constructor<any> | AbstractConstructor<any> | SafeInjectionToken<any>, IExisting extends | Constructor<ProviderInstanceType<AExisting>> | AbstractConstructor<ProviderInstanceType<AExisting>>, // types for no token IConcrete extends Constructor<any>, DConcrete extends MapParametersToDeps<ConstructorParameters<IConcrete>>, >( provider: | AllowAngularDecorators<SafeClassProvider<AClass, IClass, DClass>> | SafeValueProvider<AValue, VValue> | AllowAngularDecorators<SafeFactoryProvider<AFactory, IFactory, DFactory>> | SafeExistingProvider<AExisting, IExisting> | AllowAngularDecorators<SafeConcreteProvider<IConcrete, DConcrete>> | Constructor<unknown>, ): SafeProvider => provider as SafeProvider; ```
/content/code_sandbox/libs/angular/src/platform/utils/safe-provider.ts
xml
2016-03-09T23:14:01
2024-08-16T15:07:51
clients
bitwarden/clients
8,877
1,121
```xml import { ScaleTime, scaleTime } from 'd3-scale'; import { useTranslation } from 'react-i18next'; import PulseLoader from 'react-spinners/PulseLoader'; import useResizeObserver from 'use-resize-observer/polyfilled'; import { TimeAverages } from 'utils/constants'; import { formatDateTick } from '../../utils/formatting'; // Frequency at which values are displayed for a tick const TIME_TO_TICK_FREQUENCY = { hourly: 6, daily: 6, monthly: 1, yearly: 1, }; const renderTick = ( scale: ScaleTime<number, number, never>, value: Date, index: number, displayLive: boolean, lang: string, selectedTimeAggregate: TimeAverages, isLoading: boolean ) => { const shouldShowValue = index % TIME_TO_TICK_FREQUENCY[selectedTimeAggregate] === 0 && !isLoading; return ( <g key={`timeaxis-tick-${index}`} className="text-xs" opacity={1} transform={`translate(${scale(value)},0)`} > <line stroke="currentColor" y2="6" opacity={shouldShowValue ? 0.5 : 0.2} /> {shouldShowValue && renderTickValue(value, index, displayLive, lang, selectedTimeAggregate)} </g> ); }; const renderTickValue = ( v: Date, index: number, displayLive: boolean, lang: string, selectedTimeAggregate: TimeAverages ) => { const shouldDisplayLive = index === 24 && displayLive; const textOffset = selectedTimeAggregate === TimeAverages.HOURLY ? 5 : 0; return shouldDisplayLive ? ( <g> <circle cx="-1em" cy="1.15em" r="2" fill="red" /> <text fill="#DE3054" y="9" x="5" dy="0.71em" fontWeight="bold"> LIVE </text> </g> ) : ( <text fill="currentColor" y="9" x={textOffset} dy="0.71em" fontSize={'0.65rem'}> {formatDateTick(v, lang, selectedTimeAggregate)} </text> ); }; const getTimeScale = (rangeEnd: number, startDate: Date, endDate: Date) => scaleTime().domain([startDate, endDate]).range([0, rangeEnd]); interface TimeAxisProps { selectedTimeAggregate: TimeAverages; datetimes: Date[] | undefined; isLoading: boolean; scale?: ScaleTime<number, number>; isLiveDisplay?: boolean; transform?: string; scaleWidth?: number; className?: string; } function TimeAxis({ selectedTimeAggregate, datetimes, isLoading, transform, scaleWidth, isLiveDisplay, className, }: TimeAxisProps) { const { i18n } = useTranslation(); const { ref, width: observerWidth = 0 } = useResizeObserver<SVGSVGElement>(); const width = observerWidth - 24; if (datetimes === undefined || isLoading) { return ( <div className="flex h-[22px] w-full justify-center"> <PulseLoader size={6} color={'#135836'} /> </div> ); } const scale = getTimeScale(scaleWidth ?? width, datetimes[0], datetimes.at(-1) as Date); const [x1, x2] = scale.range(); return ( <svg className={className} ref={ref}> <g fill="none" textAnchor="middle" transform={transform} style={{ pointerEvents: 'none' }} > <path stroke="none" d={`M${x1 + 0.5},6V0.5H${x2 + 0.5}V6`} /> {datetimes.map((v, index) => renderTick( scale, v, index, isLiveDisplay ?? false, i18n.language, selectedTimeAggregate, isLoading ) )} </g> </svg> ); } export default TimeAxis; ```
/content/code_sandbox/web/src/features/time/TimeAxis.tsx
xml
2016-05-21T16:36:17
2024-08-16T17:56:07
electricitymaps-contrib
electricitymaps/electricitymaps-contrib
3,437
921
```xml import "reflect-metadata" import { createTestingConnections, closeTestingConnections, } from "../../utils/test-utils" import { DataSource } from "../../../src" import { User } from "./entity/UserEntity" import { expect } from "chai" describe("github issues > #8370 Add support for Postgres GENERATED ALWAYS AS IDENTITY", () => { let connections: DataSource[] before( async () => (connections = await createTestingConnections({ entities: [User], schemaCreate: false, dropSchema: true, enabledDrivers: ["postgres"], })), ) after(() => closeTestingConnections(connections)) it("should produce proper SQL for creating a column with `BY DEFAULT` identity column", () => Promise.all( connections.map(async (connection) => { const sqlInMemory = await connection.driver .createSchemaBuilder() .log() expect(sqlInMemory) .to.have.property("upQueries") .that.is.an("array") .and.has.length(1) // primary key expect(sqlInMemory.upQueries[0]) .to.have.property("query") .that.contains( `"id" integer GENERATED ALWAYS AS IDENTITY NOT NULL`, ) // second id expect(sqlInMemory.upQueries[0]) .to.have.property("query") .that.contains( `"secondId" bigint GENERATED ALWAYS AS IDENTITY NOT NULL`, ) // third id expect(sqlInMemory.upQueries[0]) .to.have.property("query") .that.contains( `"thirdId" integer GENERATED BY DEFAULT AS IDENTITY NOT NULL`, ) // fourth id expect(sqlInMemory.upQueries[0]) .to.have.property("query") .that.contains( `"fourthId" integer GENERATED BY DEFAULT AS IDENTITY NOT NULL`, ) }), )) }) ```
/content/code_sandbox/test/github-issues/8370/issue-8370.ts
xml
2016-02-29T07:41:14
2024-08-16T18:28:52
typeorm
typeorm/typeorm
33,875
402
```xml // Extract the payload from the response, export default function extractPayload(response: any): any { // eslint-disable-next-line @typescript-eslint/no-unsafe-argument const keys = Object.keys(response); if (keys.length !== 1) { return response; } return response[keys[0]]; } ```
/content/code_sandbox/client/src/core/client/framework/lib/relay/extractPayload.ts
xml
2016-10-31T16:14:05
2024-08-06T16:15:57
talk
coralproject/talk
1,881
67
```xml /** * This file is part of OpenMediaVault. * * @license path_to_url GPL Version 3 * @author Volker Theile <volker.theile@openmediavault.org> * * OpenMediaVault is free software: you can redistribute it and/or modify * any later version. * * OpenMediaVault is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */ import { Component, EventEmitter, Input, OnChanges, OnDestroy, OnInit, Output, SimpleChange, SimpleChanges, TemplateRef, ViewChild, ViewEncapsulation } from '@angular/core'; import { MatButtonToggleChange } from '@angular/material/button-toggle'; import { marker as gettext } from '@ngneat/transloco-keys-manager/marker'; import { DatatableComponent as NgxDatatableComponent } from '@siemens/ngx-datatable'; import * as _ from 'lodash'; import { Subscription, timer } from 'rxjs'; import { CoerceBoolean, Throttle, Unsubscribe } from '~/app/decorators'; import { translate } from '~/app/i18n.helper'; import { Icon } from '~/app/shared/enum/icon.enum'; import { Datatable } from '~/app/shared/models/datatable.interface'; import { DatatableColumn } from '~/app/shared/models/datatable-column.type'; import { DatatableData } from '~/app/shared/models/datatable-data.type'; import { DatatableSelection } from '~/app/shared/models/datatable-selection.model'; import { Sorter } from '~/app/shared/models/sorter.type'; import { ClipboardService } from '~/app/shared/services/clipboard.service'; import { UserLocalStorageService } from '~/app/shared/services/user-local-storage.service'; export type DataTableLoadParams = { dir?: 'asc' | 'desc'; prop?: string; offset?: number; limit?: number; search?: any; }; export type DataTableCellChanged = { value: any; prop: string | number; row: Record<string, DatatableData | null>; column: DatatableColumn; }; @Component({ selector: 'omv-datatable', templateUrl: './datatable.component.html', styleUrls: ['./datatable.component.scss'], encapsulation: ViewEncapsulation.None }) export class DatatableComponent implements Datatable, OnInit, OnDestroy, OnChanges { @ViewChild('table', { static: true }) table: NgxDatatableComponent; @ViewChild('textTpl', { static: true }) textTpl: TemplateRef<any>; @ViewChild('htmlTpl', { static: true }) htmlTpl: TemplateRef<any>; @ViewChild('imageTpl', { static: true }) imageTpl: TemplateRef<any>; @ViewChild('checkIconTpl', { static: true }) checkIconTpl: TemplateRef<any>; @ViewChild('checkBoxTpl', { static: true }) checkBoxTpl: TemplateRef<any>; @ViewChild('joinTpl', { static: true }) joinTpl: TemplateRef<any>; @ViewChild('truncateTpl', { static: true }) truncateTpl: TemplateRef<any>; @ViewChild('placeholderTpl', { static: true }) placeholderTpl: TemplateRef<any>; @ViewChild('progressBarTpl', { static: true }) progressBarTpl: TemplateRef<any>; @ViewChild('notAvailableTpl', { static: true }) notAvailableTpl: TemplateRef<any>; @ViewChild('shapeShifterTpl', { static: true }) shapeShifterTpl: TemplateRef<any>; @ViewChild('localeDateTimeTpl', { static: true }) localeDateTimeTpl: TemplateRef<any>; @ViewChild('relativeTimeTpl', { static: true }) relativeTimeTpl: TemplateRef<any>; @ViewChild('chipTpl', { static: true }) chipTpl: TemplateRef<any>; @ViewChild('binaryUnitTpl', { static: true }) binaryUnitTpl: TemplateRef<any>; @ViewChild('unsortedListTpl', { static: true }) unsortedListTpl: TemplateRef<any>; @ViewChild('templateTpl', { static: true }) templateTpl: TemplateRef<any>; @ViewChild('buttonToggleTpl', { static: true }) buttonToggleTpl: TemplateRef<any>; @ViewChild('copyToClipboardTpl', { static: true }) copyToClipboardTpl: TemplateRef<any>; @ViewChild('cronToHumanTpl', { static: true }) cronToHumanTpl: TemplateRef<any>; // Define a query selector if the datatable is used in an // overflow container. @Input() ownerContainer?: string; // The data to be shown. @Input() data: DatatableData[]; // Show the linear loading bar. @CoerceBoolean() @Input() loadingIndicator? = false; // An identifier, e.g. a UUID, which identifies this datatable // uniquely. This is used to store/restore the column state. @Input() stateId?: string; // The name of the property that identifies a row uniquely. @Input() rowId?: string; @Input() columnMode?: 'standard' | 'flex' | 'force' = 'flex'; @CoerceBoolean() @Input() reorderable? = false; // Display the toolbar above the datatable that includes // the custom and default (e.g. 'Reload') action buttons? @CoerceBoolean() @Input() hasActionBar? = true; // Use a fixed action bar so that it does not leave the viewport // even when scrolled. @CoerceBoolean() @Input() hasStickyActionBar? = false; // Show/Hide the reload button. If 'autoReload' is set to `true`, // then the button is automatically hidden. @CoerceBoolean() @Input() hasReloadButton? = true; // Show/Hide the search field. Defaults to `false`. @CoerceBoolean() @Input() hasSearchField? = false; // Display the datatable header? @CoerceBoolean() @Input() hasHeader? = true; // Display the datatable footer? @CoerceBoolean() @Input() hasFooter? = true; @Input() selectionType?: 'none' | 'single' | 'multi' = 'multi'; // By default, selected items will be updated on reload. @Input() updateSelectionOnReload: 'always' | 'onChange' | 'never' = 'always'; // Automatically load the data after datatable has been // initialized. If set to false, the autoReload configuration // is not taken into action. Defaults to `true`. @CoerceBoolean() @Input() autoLoad? = true; // The frequency in milliseconds with which the data // should be reloaded. Defaults to `false`. @Input() autoReload?: boolean | number = false; // Page size to show. To disable paging, set the limit to 0. // Defaults to 25. @Input() limit? = 25; // Total count of all rows. @Input() count? = 0; // Use remote paging instead of client-side. @CoerceBoolean() @Input() remotePaging = false; // Use remote sorting instead of client-side. @CoerceBoolean() @Input() remoteSorting = false; // Use remote searching instead of client-side. @CoerceBoolean() @Input() remoteSearching = false; // Sorting mode. In "single" mode, clicking on a column name will // reset the existing sorting before sorting by the new selection. // In multi selection mode, additional clicks on column names will // add sorting using multiple columns. @Input() sortType?: 'single' | 'multi' = 'single'; // Ordered array of objects used to determine sorting by column. @Input() sorters?: Sorter[] = []; // Event emitted when the data must be loaded. @Output() readonly loadDataEvent = new EventEmitter<DataTableLoadParams>(); // Event emitted when the selection has been changed. // Note, the `DatatableSelection` event object is a deep copy of // the internal object, so manipulations of the object will not // affect the data displayed in the table. @Output() readonly selectionChangeEvent = new EventEmitter<DatatableSelection>(); // Event emitted when the cell data has been changed. // This applies only to columns of type 'buttonToggle'. @Output() readonly cellDataChangedEvent = new EventEmitter<DataTableCellChanged>(); @Unsubscribe() private subscriptions = new Subscription(); // Internal public icon = Icon; public rows = []; public offset = 0; public selection = new DatatableSelection(); public filteredColumns: DatatableColumn[]; public messages: { emptyMessage: string; totalMessage: string; selectedMessage: string; }; public searchFilter = ''; private cellTemplates: { [key: string]: TemplateRef<any> }; private rawColumns: DatatableColumn[] = []; constructor( private clipboardService: ClipboardService, private userLocalStorageService: UserLocalStorageService ) { this.messages = { emptyMessage: translate(gettext('No data to display.')), totalMessage: translate(gettext('total')), selectedMessage: translate(gettext('selected')) }; } // The column configuration. @Input() get columns(): DatatableColumn[] { return this.rawColumns; } set columns(columns: DatatableColumn[]) { this.sanitizeColumns(columns); this.rawColumns = [...columns]; } @Throttle(1000) onSearchFilterChange(): void { if (!this.remoteSearching) { this.applySearchFilter(); } else { this.reloadData(); } } ngOnInit(): void { // Init cell templates. this.initTemplates(); // Sanitize configuration. this.sanitizeConfig(); // Initialize timer or simply load the data once. // Note, we'll also use the RxJS timer when loading the data only once, // that's because this will prevent us from getting an 'Expression has // changed after it was checked' error. if (this.autoLoad) { const period = _.isNumber(this.autoReload) ? (this.autoReload as number) : null; this.subscriptions.add( timer(0, period).subscribe(() => { this.reloadData(); }) ); } this.updateColumns(); } ngOnDestroy(): void { (this.onSearchFilterChange as any).cancel?.(); } ngOnChanges(changes: SimpleChanges): void { _.forIn(changes, (_change: SimpleChange, propName: string) => { switch (propName) { case 'data': { if (!this.data) { return; } if (!this.remoteSearching && this.searchFilter !== '') { this.applySearchFilter(); } else { this.rows = [...this.data]; } this.updateSelection(); } } }); } /** * Reload the data to be shown by emitting the 'loadDataEvent' event. */ reloadData(): void { const params: DataTableLoadParams = {}; if (this.remotePaging) { _.merge(params, { offset: this.offset, limit: this.limit }); } if (this.remoteSorting && !_.isEmpty(this.sorters)) { _.merge(params, { dir: this.sorters[0].dir, prop: this.sorters[0].prop }); } if (this.remoteSearching) { _.merge(params, { search: this.searchFilter }); } this.loadDataEvent.emit(params); } /** * Update the data to be shown. * The internal data structures are updated and the table will * be redrawn. */ updateData(data: DatatableData[]): void { this.data.splice(0, this.data.length, ...data); this.rows = [...this.data]; } updateSelection(): void { if (this.updateSelectionOnReload === 'never') { return; } // Get the new selected rows. const newSelected: any[] = []; _.forEach(this.selection.selected, (item) => { const row = _.find(this.data, [this.rowId, _.get(item, this.rowId)]); if (!_.isUndefined(row)) { newSelected.push(row); } }); if ( this.updateSelectionOnReload === 'onChange' && _.isEqual(this.selection.selected, newSelected) ) { return; } this.selection.set(newSelected); this.onSelect(); } onSelect(): void { // Make a deep copy of the selection and emit it to the subscribers. this.selectionChangeEvent.emit(_.cloneDeep(this.selection)); } onSort({ sorts }): void { if (this.remotePaging) { this.offset = 0; } if (this.remoteSorting) { this.sorters = sorts; this.reloadData(); } } onPage({ count, pageSize, limit, offset }): void { if (this.remotePaging) { this.offset = offset; this.reloadData(); } } onToggleColumn(column: DatatableColumn): void { column.hidden = !column.hidden; this.saveColumnState(); this.updateColumns(); } onCopyToClipboard(event: Event, value: any): void { event.stopPropagation(); this.clipboardService.copy(value); } updateColumns(): void { // Load the custom column configuration from the browser // local store and filter hidden columns. this.loadColumnState(); this.filteredColumns = this.rawColumns.filter((column) => !column.hidden); } clearSearchFilter(): void { this.searchFilter = ''; if (!this.remoteSearching) { this.rows = [...this.data]; } else { this.reloadData(); } } applySearchFilter(): void { this.rows = _.filter(this.data, (o) => _.some(this.columns, (column) => { let value = _.get(o, column.prop); if (!_.isUndefined(column.pipe)) { value = column.pipe.transform(value); } if (value === '' || _.isUndefined(value) || _.isNull(value)) { return false; } if (_.isObjectLike(value)) { value = JSON.stringify(value); } else if (_.isArray(value)) { value = _.join(value, ' '); } else if (_.isNumber(value) || _.isBoolean(value)) { value = value.toString(); } return _.includes(_.lowerCase(value), _.lowerCase(this.searchFilter)); }) ); this.offset = 0; } onButtonToggleChange( event: MatButtonToggleChange, row: Record<string, any>, column: DatatableColumn ): void { const allowNone = _.get(column, 'cellTemplateConfig.allowNone', true); // eslint-disable-next-line eqeqeq if (allowNone && row[column.prop] == event.value) { row[column.prop] = null; } else { row[column.prop] = event.value; } this.cellDataChangedEvent.emit({ value: row[column.prop], prop: column.prop, row, column }); } protected initTemplates(): void { this.cellTemplates = { text: this.textTpl, html: this.htmlTpl, image: this.imageTpl, checkIcon: this.checkIconTpl, checkBox: this.checkBoxTpl, join: this.joinTpl, truncate: this.truncateTpl, placeholder: this.placeholderTpl, progressBar: this.progressBarTpl, notAvailable: this.notAvailableTpl, shapeShifter: this.shapeShifterTpl, localeDateTime: this.localeDateTimeTpl, relativeTime: this.relativeTimeTpl, chip: this.chipTpl, binaryUnit: this.binaryUnitTpl, unsortedList: this.unsortedListTpl, template: this.templateTpl, buttonToggle: this.buttonToggleTpl, copyToClipboard: this.copyToClipboardTpl, cronToHuman: this.cronToHumanTpl }; } protected sanitizeConfig(): void { // Always hide the 'Reload' action button if 'autoReload' // is enabled. if (this.autoReload) { this.hasReloadButton = false; } this.sanitizeColumns(this.columns); } /** * Sanitize the column configuration, e.g. * - convert cellTemplateName => cellTemplate * - translate the column headers */ protected sanitizeColumns(columns: DatatableColumn[]): void { if (!this.cellTemplates) { return; } columns.forEach((column: DatatableColumn) => { column.hidden = !!column.hidden; column.sortable = !!column.sortable; // Convert column configuration. if (_.isString(column.cellTemplateName) && column.cellTemplateName.length) { column.cellTemplate = this.cellTemplates[column.cellTemplateName]; } // Translate the column header. if (_.isString(column.name) && column.name.length) { column.name = translate(column.name); } // Disable column resizing if mode is `flex`. if ('flex' === this.columnMode) { column.resizeable = false; } }); } private loadColumnState(): void { if (!this.stateId) { return; } const value = this.userLocalStorageService.get(`datatable_state_${this.stateId}`); if (_.isString(value)) { const columnsConfig = JSON.parse(value); _.forEach(columnsConfig, (columnConfig: Record<string, any>) => { const column = _.find(this.columns, ['name', _.get(columnConfig, 'name')]); if (column) { _.merge(column, columnConfig); } }); } } private saveColumnState(): void { if (!this.stateId) { return; } const columnsConfig = []; _.forEach(this.columns, (column: DatatableColumn) => { columnsConfig.push({ name: column.name, hidden: column.hidden }); }); this.userLocalStorageService.set( `datatable_state_${this.stateId}`, JSON.stringify(columnsConfig) ); } } ```
/content/code_sandbox/deb/openmediavault/workbench/src/app/shared/components/datatable/datatable.component.ts
xml
2016-05-03T10:35:34
2024-08-16T08:03:04
openmediavault
openmediavault/openmediavault
4,954
3,971
```xml import { call, put } from 'redux-saga-test-plan/matchers'; import { expectSaga, mockAppState } from 'test-utils'; import { fLocalStorage } from '@fixtures'; import { marshallState } from '@services/Store/DataManager/utils'; import { omit } from '@vendor'; import importSlice from './import.slice'; import { APP_PERSIST_CONFIG, migrate } from './persist.config'; import { appReset, exportState, importSaga, importState } from './root.reducer'; describe('Import - Export', () => { it('exportState(): returns the persistable state as a deMarshalled string', () => { const expected = fLocalStorage; const actual = exportState(mockAppState()); expect(omit(['mtime'], actual)).toEqual(omit(['mtime'], expected)); }); it('importSaga(): updates the app state with the provided data', async () => { const importable = JSON.stringify(fLocalStorage); const migrated = await migrate( // @ts-expect-error: We don't provide _persist object to migrate marshallState(JSON.parse(importable)), APP_PERSIST_CONFIG.version! ); return expectSaga(importSaga) .withState(mockAppState()) .dispatch(importState(importable)) .silentRun() .then(({ effects }) => { expect(effects.put).toHaveLength(3); expect(effects.call[0]).toEqual( call(migrate, marshallState(JSON.parse(importable)), APP_PERSIST_CONFIG.version!) ); expect(effects.put[1]).toEqual(put(appReset(migrated))); expect(effects.put[2]).toEqual(put(importSlice.actions.success())); }); }); it('importSaga(): sets error state on failure', () => { const errorMessage = new TypeError('Cannot convert undefined or null to object'); const importable = JSON.stringify({ foo: 'made to fail' }); return expectSaga(importSaga) .withState(mockAppState()) .put(importSlice.actions.error(errorMessage)) .dispatch(importState(importable)) .silentRun(); }); }); ```
/content/code_sandbox/src/services/Store/store/root.reducer.test.ts
xml
2016-12-04T01:35:27
2024-08-14T21:41:58
MyCrypto
MyCryptoHQ/MyCrypto
1,347
438
```xml <!-- LibreSprite --> <gui> <grid columns="2" id="controls"> <label text="Width:" /> <entry id="width" maxsize="4" cell_align="horizontal" /> <label text="Height:" /> <entry id="height" maxsize="4" cell_align="horizontal" /> </grid> </gui> ```
/content/code_sandbox/data/widgets/despeckle.xml
xml
2016-08-31T17:26:42
2024-08-16T11:45:24
LibreSprite
LibreSprite/LibreSprite
4,717
78
```xml /* * one or more contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright ownership. */ import {shallow} from 'enzyme'; import {Prompt} from 'react-router-dom'; import {Button} from '@carbon/react'; import {Modal} from 'components'; import {default as SaveGuard, nowDirty} from './SaveGuard'; it('should pass dirty state to Prompt', () => { const node = shallow(<SaveGuard />); expect(node.find(Prompt)).toExist(); expect(node.find(Prompt).prop('when')).toBe(false); nowDirty(); expect(node.find(Prompt).prop('when')).toBe(true); }); it('should show a confirmation modal when user confirmation is required and state is dirty', () => { const cb = jest.fn(); const node = shallow(<SaveGuard />); nowDirty(); SaveGuard.getUserConfirmation('', cb); expect(node.find(Modal).prop('open')).toBeTruthy(); }); it('should call the provided save handler', () => { const cb = jest.fn(); const save = jest.fn(); const node = shallow(<SaveGuard />); nowDirty('report', save); SaveGuard.getUserConfirmation('', cb); node.find(Modal).find(Button).last().simulate('click'); expect(save).toHaveBeenCalled(); }); it('should allow abortion of navigation', () => { const cb = jest.fn(); const save = jest.fn(); const node = shallow(<SaveGuard />); nowDirty('report', save); SaveGuard.getUserConfirmation('', cb); node.find(Modal).simulate('close'); expect(save).not.toHaveBeenCalled(); expect(cb).toHaveBeenCalledWith(false); }); ```
/content/code_sandbox/optimize/client/src/modules/saveGuard/SaveGuard.test.tsx
xml
2016-03-20T03:38:04
2024-08-16T19:59:58
camunda
camunda/camunda
3,172
359
```xml /* eslint-disable no-sync */ /// <reference path="./globals.d.ts" /> import * as path from 'path' import * as cp from 'child_process' import * as os from 'os' import packager, { OfficialArch, OsxNotarizeOptions } from 'electron-packager' import frontMatter from 'front-matter' import { externals } from '../app/webpack.common' readonly title: string readonly nickname?: string readonly featured?: boolean readonly hidden?: boolean } readonly name: string readonly featured: boolean readonly body: string readonly hidden: boolean } import { getBundleID, getCompanyName, getProductName, } from '../app/package-info' import { getChannel, getDistRoot, getExecutableName, isPublishable, getIconFileName, getDistArchitecture, } from './dist-info' import { isGitHubActions } from './build-platforms' import { verifyInjectedSassVariables } from './validate-sass/validate-all' import { existsSync, mkdirSync, readdirSync, readFileSync, rmSync, unlinkSync, writeFileSync, } from 'fs' import { copySync } from 'fs-extra' const isPublishableBuild = isPublishable() const isDevelopmentBuild = getChannel() === 'development' const projectRoot = path.join(__dirname, '..') const entitlementsSuffix = isDevelopmentBuild ? '-dev' : '' const entitlementsPath = `${projectRoot}/script/entitlements${entitlementsSuffix}.plist` const extendInfoPath = `${projectRoot}/script/info.plist` const outRoot = path.join(projectRoot, 'out') console.log(`Building for ${getChannel()}`) console.log('Removing old distribution') rmSync(getDistRoot(), { recursive: true, force: true }) console.log('Copying dependencies') copyDependencies() console.log('Packaging emoji') copyEmoji() console.log('Copying static resources') copyStaticResources() console.log('Parsing license metadata') moveAnalysisFiles() if (isGitHubActions() && process.platform === 'darwin' && isPublishableBuild) { console.log('Setting up keychain') cp.execSync(path.join(__dirname, 'setup-macos-keychain')) } verifyInjectedSassVariables(outRoot) .catch(err => { console.error( 'Error verifying the Sass variables in the rendered app. This is fatal for a published build.' ) if (!isDevelopmentBuild) { process.exit(1) } }) .then(() => { console.log('Updating our licenses dump') console.error( 'Error updating the license dump. This is fatal for a published build.' ) console.error(err) if (!isDevelopmentBuild) { process.exit(1) } }) }) .then(() => { console.log('Packaging') return packageApp() }) .catch(err => { console.error(err) process.exit(1) }) .then(appPaths => { console.log(`Built to ${appPaths}`) }) function packageApp() { // not sure if this is needed anywhere, so I'm just going to inline it here // for now and see what the future brings... const toPackagePlatform = (platform: NodeJS.Platform) => { if (platform === 'win32' || platform === 'darwin' || platform === 'linux') { return platform } throw new Error( `Unable to convert to platform for electron-packager: '${process.platform}` ) } const toPackageArch = (targetArch: string | undefined): OfficialArch => { if (targetArch === undefined) { targetArch = os.arch() } if (targetArch === 'arm64' || targetArch === 'x64') { return targetArch } throw new Error( `Building Desktop for architecture '${targetArch}' is not supported` ) } // get notarization deets, unless we're not going to publish this const osxNotarize = isPublishableBuild ? getNotarizationOptions() : undefined if ( isPublishableBuild && isGitHubActions() && process.platform === 'darwin' && osxNotarize === undefined ) { // we can't publish a mac build without these throw new Error( 'Unable to retreive appleId and/or appleIdPassword to notarize macOS build' ) } return packager({ name: getExecutableName(), platform: toPackagePlatform(process.platform), arch: toPackageArch(process.env.TARGET_ARCH), asar: false, // TODO: Probably wanna enable this down the road. out: getDistRoot(), icon: path.join(projectRoot, 'app', 'static', 'logos', getIconFileName()), dir: outRoot, overwrite: true, tmpdir: false, derefSymlinks: false, prune: false, // We'll prune them ourselves below. ignore: [ new RegExp('/node_modules/electron($|/)'), new RegExp('/node_modules/electron-packager($|/)'), new RegExp('/\\.git($|/)'), new RegExp('/node_modules/\\.bin($|/)'), ], // macOS appBundleId: getBundleID(), appCategoryType: 'public.app-category.developer-tools', darwinDarkModeSupport: true, osxSign: { optionsForFile: (path: string) => ({ hardenedRuntime: true, entitlements: entitlementsPath, }), type: isPublishableBuild ? 'distribution' : 'development', // For development, we will use '-' as the identifier so that codesign // will sign the app to run locally. We need to disable 'identity-validation' // or otherwise it will replace '-' with one of the regular codesigning // identities in our system. identity: isDevelopmentBuild ? '-' : undefined, identityValidation: !isDevelopmentBuild, }, osxNotarize, protocols: [ { name: getBundleID(), schemes: [ !isDevelopmentBuild ? 'x-github-desktop-auth' : 'x-github-desktop-dev-auth', 'x-github-client', 'github-mac', ], }, ], extendInfo: extendInfoPath, // Windows win32metadata: { CompanyName: getCompanyName(), FileDescription: '', OriginalFilename: '', ProductName: getProductName(), InternalName: getProductName(), }, }) } function removeAndCopy(source: string, destination: string) { rmSync(destination, { recursive: true, force: true }) copySync(source, destination) } function copyEmoji() { const emojiImages = path.join(projectRoot, 'gemoji', 'images', 'emoji') const emojiImagesDestination = path.join(outRoot, 'emoji') removeAndCopy(emojiImages, emojiImagesDestination) const emojiJSON = path.join(projectRoot, 'gemoji', 'db', 'emoji.json') const emojiJSONDestination = path.join(outRoot, 'emoji.json') removeAndCopy(emojiJSON, emojiJSONDestination) } function copyStaticResources() { const dirName = process.platform const platformSpecific = path.join(projectRoot, 'app', 'static', dirName) const common = path.join(projectRoot, 'app', 'static', 'common') const destination = path.join(outRoot, 'static') rmSync(destination, { recursive: true, force: true }) if (existsSync(platformSpecific)) { copySync(platformSpecific, destination) } copySync(common, destination, { overwrite: false }) } function moveAnalysisFiles() { const rendererReport = 'renderer.report.html' const analysisSource = path.join(outRoot, rendererReport) if (existsSync(analysisSource)) { const distRoot = getDistRoot() const destination = path.join(distRoot, rendererReport) mkdirSync(distRoot, { recursive: true }) // there's no moveSync API here, so let's do it the old fashioned way // // unlinkSync below ensures that the analysis file isn't bundled into // the app by accident copySync(analysisSource, destination, { overwrite: true }) unlinkSync(analysisSource) } } function copyDependencies() { const pkg: Package = require(path.join(projectRoot, 'app', 'package.json')) const filterExternals = (dependencies: Record<string, string>) => Object.fromEntries( Object.entries(dependencies).filter(([k]) => externals.includes(k)) ) // The product name changes depending on whether it's a prod build or dev // build, so that we can have them running side by side. pkg.productName = getProductName() pkg.dependencies = filterExternals(pkg.dependencies) pkg.devDependencies = isDevelopmentBuild && pkg.devDependencies ? filterExternals(pkg.devDependencies) : {} writeFileSync(path.join(outRoot, 'package.json'), JSON.stringify(pkg)) rmSync(path.resolve(outRoot, 'node_modules'), { recursive: true, force: true, }) console.log(' Installing dependencies via yarn') cp.execSync('yarn install', { cwd: outRoot, env: process.env }) console.log(' Copying desktop-askpass-trampoline') const trampolineSource = path.resolve( projectRoot, 'app/node_modules/desktop-trampoline/build/Release' ) const desktopTrampolineDir = path.resolve(outRoot, 'desktop-trampoline') const desktopAskpassTrampolineFile = process.platform === 'win32' ? 'desktop-askpass-trampoline.exe' : 'desktop-askpass-trampoline' rmSync(desktopTrampolineDir, { recursive: true, force: true }) mkdirSync(desktopTrampolineDir, { recursive: true }) copySync( path.resolve(trampolineSource, desktopAskpassTrampolineFile), path.resolve(desktopTrampolineDir, desktopAskpassTrampolineFile) ) // Dev builds for macOS require a SSH wrapper to use SSH_ASKPASS if (process.platform === 'darwin' && isDevelopmentBuild) { console.log(' Copying ssh-wrapper') const sshWrapperFile = 'ssh-wrapper' copySync( path.resolve( projectRoot, 'app/node_modules/desktop-trampoline/build/Release', sshWrapperFile ), path.resolve(desktopTrampolineDir, sshWrapperFile) ) } console.log(' Copying git environment') const gitDir = path.resolve(outRoot, 'git') rmSync(gitDir, { recursive: true, force: true }) mkdirSync(gitDir, { recursive: true }) copySync(path.resolve(projectRoot, 'app/node_modules/dugite/git'), gitDir) console.log(' Copying desktop credential helper') const mingw = getDistArchitecture() === 'x64' ? 'mingw64' : 'mingw32' const gitCoreDir = process.platform === 'win32' ? path.resolve(outRoot, 'git', mingw, 'libexec', 'git-core') : path.resolve(outRoot, 'git', 'libexec', 'git-core') const desktopCredentialHelperTrampolineFile = process.platform === 'win32' ? 'desktop-credential-helper-trampoline.exe' : 'desktop-credential-helper-trampoline' const desktopCredentialHelperFile = `git-credential-desktop${ process.platform === 'win32' ? '.exe' : '' }` copySync( path.resolve(trampolineSource, desktopCredentialHelperTrampolineFile), path.resolve(gitCoreDir, desktopCredentialHelperFile) ) if (process.platform === 'darwin') { console.log(' Copying app-path binary') const appPathMain = path.resolve(outRoot, 'main') rmSync(appPathMain, { recursive: true, force: true }) copySync( path.resolve(projectRoot, 'app/node_modules/app-path/main'), appPathMain ) } } const files = readdirSync(licensesDir) for (const file of files) { const fullPath = path.join(licensesDir, file) const contents = readFileSync(fullPath, 'utf8') const licenseText = result.body.trim() // ensure that any license file created in the app does not trigger the // "no newline at end of file" warning when viewing diffs const licenseTextWithNewLine = `${licenseText}\n` name: result.attributes.nickname || result.attributes.title, featured: result.attributes.featured || false, hidden: result.attributes.hidden === undefined || result.attributes.hidden, body: licenseTextWithNewLine, } if (!license.hidden) { licenses.push(license) } } const licensePayload = path.join(outRoot, 'static', 'available-licenses.json') const text = JSON.stringify(licenses) writeFileSync(licensePayload, text, 'utf8') // embed the license alongside the generated license payload const licenseDestination = path.join( outRoot, 'static', 'LICENSE.choosealicense.md' ) const licenseWithHeader = `GitHub Desktop uses licensing information provided by choosealicense.com. The bundle in available-licenses.json has been generated from a source list provided at path_to_url which is made available under the below license: ------------ ${licenseText}` writeFileSync(licenseDestination, licenseWithHeader, 'utf8') // sweep up the choosealicense directory as the important bits have been bundled in the app } function getNotarizationOptions(): OsxNotarizeOptions | undefined { const { APPLE_ID: appleId, APPLE_ID_PASSWORD: appleIdPassword, APPLE_TEAM_ID: teamId, } = process.env return appleId && appleIdPassword && teamId ? { tool: 'notarytool', appleId, appleIdPassword, teamId } : undefined } ```
/content/code_sandbox/script/build.ts
xml
2016-05-11T15:59:00
2024-08-16T17:00:41
desktop
desktop/desktop
19,544
3,039
```xml import findProcess from 'find-process' import pathlib from 'path' import * as uuid from 'uuid' import impl from '../../src/command-implementations' import defaults from '../defaults' import { Test } from '../typings' import * as utils from '../utils' const handleExitCode = ({ exitCode }: { exitCode: number }) => { if (exitCode !== 0) { throw new Error(`Command exited with code ${exitCode}`) } } const PORT = 8075 export const devBot: Test = { name: 'cli should allow creating and running a bot locally', handler: async ({ tmpDir, tunnelUrl, dependencies, ...creds }) => { const botpressHomeDir = pathlib.join(tmpDir, '.botpresshome') const baseDir = pathlib.join(tmpDir, 'bots') const botName = uuid.v4() const botDir = pathlib.join(baseDir, botName) const argv = { ...defaults, botpressHome: botpressHomeDir, confirm: true, ...creds, } await impl.init({ ...argv, workDir: baseDir, name: botName, type: 'bot' }).then(handleExitCode) await utils.fixBotpressDependencies({ workDir: botDir, target: dependencies }) await utils.npmInstall({ workDir: botDir }).then(handleExitCode) await impl.login({ ...argv }).then(handleExitCode) const cmdPromise = impl.dev({ ...argv, workDir: botDir, port: PORT, tunnelUrl }).then(handleExitCode) await utils.sleep(5000) const allProcess = await findProcess('port', PORT) const [botProcess] = allProcess if (allProcess.length > 1) { throw new Error(`Expected to find only one process listening on port ${PORT}`) } if (!botProcess) { throw new Error(`Expected to find a process listening on port ${PORT}`) } /** * TODO: * - try calling the Bot locally to see if it works * - allow listing dev bots in API and find the one we just created (by name) */ process.kill(botProcess.pid) await cmdPromise }, } ```
/content/code_sandbox/packages/cli/e2e/tests/dev-bot.ts
xml
2016-11-16T21:57:59
2024-08-16T18:45:35
botpress
botpress/botpress
12,401
478
```xml import { global as globalThis } from '@storybook/global'; import { linkTo } from '@storybook/addon-links'; export default { component: globalThis.Components.Button, title: 'linkTo', args: { label: 'Click Me!', }, parameters: { chromatic: { disable: true }, }, }; export const Target = { args: { label: 'This is just a story to target with the links', }, parameters: { chromatic: { disable: true }, }, }; export const Id = { args: { onClick: linkTo('addons-links-linkto--target'), label: 'addons-links-linkto--target', }, }; export const TitleOnly = { args: { onClick: linkTo('addons/links/linkTo'), label: 'addons/links/linkTo', }, }; export const NormalizedTitleOnly = { args: { onClick: linkTo('addons-links-linkto'), label: 'addons-links-linkto', }, }; export const TitleAndName = { args: { onClick: linkTo('addons/links/linkTo', 'Target'), label: 'addons/links/linkTo, Target', }, }; export const NormalizedTitleAndName = { args: { onClick: linkTo('addons-links-linkto', 'target'), label: 'addons-links-linkto, target', }, }; export const Callback = { args: { onClick: linkTo( (event: Event) => 'addons-links-linkto', (event: Event) => 'target' ), }, }; export const ToMDXDocs = { args: { onClick: linkTo('Configure Your Project'), label: 'Configure Your Project', }, }; export const ToAutodocs = { args: { onClick: linkTo('Example Button', 'Docs'), label: 'Example Button, Docs', }, }; ```
/content/code_sandbox/code/addons/links/template/stories/linkto.stories.ts
xml
2016-03-18T04:23:44
2024-08-16T19:22:08
storybook
storybookjs/storybook
83,755
414
```xml import { EngravingRules } from "./EngravingRules"; import { StaffLine } from "./StaffLine"; import { PointF2D } from "../../Common/DataObjects/PointF2D"; import { VexFlowMeasure } from "./VexFlow/VexFlowMeasure"; import { unitInPixels } from "./VexFlow/VexFlowMusicSheetDrawer"; import log from "loglevel"; import { BoundingBox } from "./BoundingBox"; import { SkyBottomLineCalculationResult } from "./SkyBottomLineCalculationResult"; import { CanvasVexFlowBackend } from "./VexFlow/CanvasVexFlowBackend"; /** * This class calculates and holds the skyline and bottom line information. * It also has functions to update areas of the two lines if new elements are * added to the staffline (e.g. measure number, annotations, ...) */ export class SkyBottomLineCalculator { /** Parent Staffline where the skyline and bottom line is attached */ private mStaffLineParent: StaffLine; /** Internal array for the skyline */ private mSkyLine: number[]; /** Internal array for the bottomline */ private mBottomLine: number[]; /** Engraving rules for formatting */ private mRules: EngravingRules; /** * Create a new object of the calculator * @param staffLineParent staffline where the calculator should be attached */ constructor(staffLineParent: StaffLine) { this.mStaffLineParent = staffLineParent; this.mRules = staffLineParent.ParentMusicSystem.rules; } /** * This method updates the skylines and bottomlines for mStaffLineParent. * @param calculationResults the skylines and bottomlines of mStaffLineParent's measures calculated by SkyBottomLineBatchCalculator */ public updateLines(calculationResults: SkyBottomLineCalculationResult[]): void { const measures: VexFlowMeasure[] = this.StaffLineParent.Measures as VexFlowMeasure[]; if (calculationResults.length !== measures.length) { log.warn("SkyBottomLineCalculator: lengths of calculation result array and measure array do not match"); if (calculationResults.length < measures.length) { while (calculationResults.length < measures.length) { calculationResults.push(new SkyBottomLineCalculationResult([], [])); } } else { calculationResults = calculationResults.slice(0, measures.length); } } const arrayLength: number = Math.max(Math.ceil(this.StaffLineParent.PositionAndShape.Size.width * this.SamplingUnit), 1); this.mSkyLine = []; this.mBottomLine = []; for (const { skyLine, bottomLine } of calculationResults) { this.mSkyLine.push(...skyLine); this.mBottomLine.push(...bottomLine); } // Subsampling: // The pixel width is bigger than the measure size in units. So we split the array into // chunks with the size of MeasurePixelWidth/measureUnitWidth and reduce the value to its // average const arrayChunkSize: number = this.mSkyLine.length / arrayLength; const subSampledSkyLine: number[] = []; const subSampledBottomLine: number[] = []; for (let chunkIndex: number = 0; chunkIndex < this.mSkyLine.length; chunkIndex += arrayChunkSize) { if (subSampledSkyLine.length === arrayLength) { break; // TODO find out why skyline.length becomes arrayLength + 1. see log.debug below } const endIndex: number = Math.min(this.mSkyLine.length, chunkIndex + arrayChunkSize); let chunk: number[] = this.mSkyLine.slice(chunkIndex, endIndex + 1); // slice does not include end index // TODO chunkIndex + arrayChunkSize is sometimes bigger than this.mSkyLine.length -> out of bounds // TODO chunkIndex + arrayChunkSize is often a non-rounded float as well. is that ok to use with slice? /*const diff: number = this.mSkyLine.length - (chunkIndex + arrayChunkSize); if (diff < 0) { // out of bounds console.log("length - slice end index: " + diff); }*/ subSampledSkyLine.push(Math.min(...chunk)); chunk = this.mBottomLine.slice(chunkIndex, endIndex + 1); // slice does not include end index subSampledBottomLine.push(Math.max(...chunk)); } this.mSkyLine = subSampledSkyLine; this.mBottomLine = subSampledBottomLine; if (this.mSkyLine.length !== arrayLength) { // bottomline will always be same length as well log.debug(`SkyLine calculation was not correct (${this.mSkyLine.length} instead of ${arrayLength})`); } // Remap the values from 0 to +/- height in units const lowestSkyLine: number = Math.max(...this.mSkyLine); this.mSkyLine = this.mSkyLine.map(v => (v - lowestSkyLine) / unitInPixels + this.StaffLineParent.TopLineOffset); const highestBottomLine: number = Math.min(...this.mBottomLine); this.mBottomLine = this.mBottomLine.map(v => (v - highestBottomLine) / unitInPixels + this.StaffLineParent.BottomLineOffset); } /** * This method calculates the Sky- and BottomLines for a StaffLine. */ public calculateLines(): void { const samplingUnit: number = this.mRules.SamplingUnit; const results: SkyBottomLineCalculationResult[] = []; // Create a temporary canvas outside the DOM to draw the measure in. const tmpCanvas: any = new CanvasVexFlowBackend(this.mRules); // search through all Measures for (const measure of this.StaffLineParent.Measures as VexFlowMeasure[]) { // must calculate first AbsolutePositions measure.PositionAndShape.calculateAbsolutePositionsRecursive(0, 0); // Pre initialize and get stuff for more performance const vsStaff: any = measure.getVFStave(); let width: number = vsStaff.getWidth(); if (!(width > 0) && !measure.IsExtraGraphicalMeasure) { log.warn("SkyBottomLineCalculator: width not > 0 in measure " + measure.MeasureNumber); width = 50; } // Headless because we are outside the DOM tmpCanvas.initializeHeadless(width); const ctx: any = tmpCanvas.getContext(); const canvas: any = tmpCanvas.getCanvas(); width = canvas.width; const height: number = canvas.height; // This magic number is an offset from the top image border so that // elements above the staffline can be drawn correctly. vsStaff.setY(vsStaff.y + 100); const oldMeasureWidth: number = vsStaff.getWidth(); // We need to tell the VexFlow stave about the canvas width. This looks // redundant because it should know the canvas but somehow it doesn't. // Maybe I am overlooking something but for now this does the trick vsStaff.setWidth(width); measure.format(); vsStaff.setWidth(oldMeasureWidth); try { measure.draw(ctx); // Vexflow errors can happen here, then our complete rendering loop would halt without catching errors. } catch (ex) { log.warn("SkyBottomLineCalculator.calculateLines.draw", ex); } // imageData.data is a Uint8ClampedArray representing a one-dimensional array containing the data in the RGBA order // RGBA is 32 bit word with 8 bits red, 8 bits green, 8 bits blue and 8 bit alpha. Alpha should be 0 for all background colors. // Since we are only interested in black or white we can take 32bit words at once const imageData: any = ctx.getImageData(0, 0, width, height); const rgbaLength: number = 4; const measureArrayLength: number = Math.max(Math.ceil(measure.PositionAndShape.Size.width * samplingUnit), 1); const tmpSkyLine: number[] = new Array(measureArrayLength); const tmpBottomLine: number[] = new Array(measureArrayLength); for (let x: number = 0; x < width; x++) { // SkyLine for (let y: number = 0; y < height; y++) { const yOffset: number = y * width * rgbaLength; const bufIndex: number = yOffset + x * rgbaLength; const alpha: number = imageData.data[bufIndex + 3]; if (alpha > 0) { tmpSkyLine[x] = y; break; } } // BottomLine for (let y: number = height; y > 0; y--) { const yOffset: number = y * width * rgbaLength; const bufIndex: number = yOffset + x * rgbaLength; const alpha: number = imageData.data[bufIndex + 3]; if (alpha > 0) { tmpBottomLine[x] = y; break; } } } for (let idx: number = 0; idx < tmpSkyLine.length; idx++) { if (tmpSkyLine[idx] === undefined) { tmpSkyLine[idx] = Math.max(this.findPreviousValidNumber(idx, tmpSkyLine), this.findNextValidNumber(idx, tmpSkyLine)); } } for (let idx: number = 0; idx < tmpBottomLine.length; idx++) { if (tmpBottomLine[idx] === undefined) { tmpBottomLine[idx] = Math.max(this.findPreviousValidNumber(idx, tmpBottomLine), this.findNextValidNumber(idx, tmpBottomLine)); } } results.push(new SkyBottomLineCalculationResult(tmpSkyLine, tmpBottomLine)); // Set to true to only show the "mini canvases" and the corresponding skylines const debugTmpCanvas: boolean = false; if (debugTmpCanvas) { tmpSkyLine.forEach((y, x) => this.drawPixel(new PointF2D(x, y), tmpCanvas)); tmpBottomLine.forEach((y, x) => this.drawPixel(new PointF2D(x, y), tmpCanvas, "blue")); const img: any = canvas.toDataURL("image/png"); document.write('<img src="' + img + '"/>'); } tmpCanvas.clear(); } this.updateLines(results); } public updateSkyLineWithLine(start: PointF2D, end: PointF2D, value: number): void { const startIndex: number = Math.floor(start.x * this.SamplingUnit); const endIndex: number = Math.ceil(end.x * this.SamplingUnit); for (let i: number = startIndex + 1; i < Math.min(endIndex, this.SkyLine.length); i++) { this.SkyLine[i] = value; } } /** * This method updates the SkyLine for a given Wedge. * @param start Start point of the wedge (the point where both lines meet) * @param end End point of the wedge (the end of the most extreme line: upper line for skyline, lower line for bottomline) */ public updateSkyLineWithWedge(start: PointF2D, end: PointF2D): void { // FIXME: Refactor if wedges will be added. Current status is that vexflow will be used for this let startIndex: number = Math.floor(start.x * this.SamplingUnit); let endIndex: number = Math.ceil(end.x * this.SamplingUnit); let slope: number = (end.y - start.y) / (end.x - start.x); if (endIndex - startIndex <= 1) { endIndex++; slope = 0; } if (startIndex < 0) { startIndex = 0; } if (startIndex >= this.BottomLine.length) { startIndex = this.BottomLine.length - 1; } if (endIndex < 0) { endIndex = 0; } if (endIndex >= this.BottomLine.length) { endIndex = this.BottomLine.length; } this.SkyLine[startIndex] = start.y; for (let i: number = startIndex + 1; i < Math.min(endIndex, this.SkyLine.length); i++) { this.SkyLine[i] = this.SkyLine[i - 1] + slope / this.SamplingUnit; } } /** * This method updates the BottomLine for a given Wedge. * @param start Start point of the wedge * @param end End point of the wedge */ public updateBottomLineWithWedge(start: PointF2D, end: PointF2D): void { // FIXME: Refactor if wedges will be added. Current status is that vexflow will be used for this let startIndex: number = Math.floor(start.x * this.SamplingUnit); let endIndex: number = Math.ceil(end.x * this.SamplingUnit); let slope: number = (end.y - start.y) / (end.x - start.x); if (endIndex - startIndex <= 1) { endIndex++; slope = 0; } if (startIndex < 0) { startIndex = 0; } if (startIndex >= this.BottomLine.length) { startIndex = this.BottomLine.length - 1; } if (endIndex < 0) { endIndex = 0; } if (endIndex >= this.BottomLine.length) { endIndex = this.BottomLine.length; } this.BottomLine[startIndex] = start.y; for (let i: number = startIndex + 1; i < endIndex; i++) { this.BottomLine[i] = this.BottomLine[i - 1] + slope / this.SamplingUnit; } } /** * This method updates the SkyLine for a given range with a given value * //param to update the SkyLine for * @param startIndex Start index of the range * @param endIndex End index of the range * @param value ?? */ public updateSkyLineInRange(startIndex: number, endIndex: number, value: number): void { this.updateInRange(this.mSkyLine, startIndex, endIndex, value); } /** * This method updates the BottomLine for a given range with a given value * @param startIndex Start index of the range * @param endIndex End index of the range (excluding) * @param value ?? */ public updateBottomLineInRange(startIndex: number, endIndex: number, value: number): void { this.updateInRange(this.BottomLine, startIndex, endIndex, value); } /** * Resets a SkyLine in a range to its original value * @param startIndex Start index of the range * @param endIndex End index of the range (excluding) */ public resetSkyLineInRange(startIndex: number, endIndex: number): void { this.updateInRange(this.SkyLine, startIndex, endIndex); } /** * Resets a bottom line in a range to its original value * @param startIndex Start index of the range * @param endIndex End index of the range */ public resetBottomLineInRange(startIndex: number, endIndex: number): void { this.setInRange(this.BottomLine, startIndex, endIndex); } /** * Update the whole skyline with a certain value * @param value value to be set */ public setSkyLineWithValue(value: number): void { this.SkyLine.forEach(sl => sl = value); } /** * Update the whole bottomline with a certain value * @param value value to be set */ public setBottomLineWithValue(value: number): void { this.BottomLine.forEach(bl => bl = value); } public getLeftIndexForPointX(x: number, length: number): number { const index: number = Math.floor(x * this.SamplingUnit); if (index < 0) { return 0; } if (index >= length) { return length - 1; } return index; } public getRightIndexForPointX(x: number, length: number): number { const index: number = Math.ceil(x * this.SamplingUnit); if (index < 0) { return 0; } if (index >= length) { return length - 1; } return index; } /** * This method updates the StaffLine Borders with the Sky- and BottomLines Min- and MaxValues. */ public updateStaffLineBorders(): void { this.mStaffLineParent.PositionAndShape.BorderTop = this.getSkyLineMin(); this.mStaffLineParent.PositionAndShape.BorderMarginTop = this.getSkyLineMin(); this.mStaffLineParent.PositionAndShape.BorderBottom = this.getBottomLineMax(); this.mStaffLineParent.PositionAndShape.BorderMarginBottom = this.getBottomLineMax(); } /** * This method finds the minimum value of the SkyLine. */ public getSkyLineMin(): number { return Math.min(...this.SkyLine.filter(s => !isNaN(s))); } public getSkyLineMinAtPoint(point: number): number { const index: number = Math.round(point * this.SamplingUnit); return this.mSkyLine[index]; } /** * This method finds the SkyLine's minimum value within a given range. * @param startIndex Starting index * @param endIndex End index (including) */ public getSkyLineMinInRange(startIndex: number, endIndex: number): number { return this.getMinInRange(this.SkyLine, startIndex, endIndex); } /** * This method finds the maximum value of the BottomLine. */ public getBottomLineMax(): number { return Math.max(...this.BottomLine.filter(s => !isNaN(s))); } public getBottomLineMaxAtPoint(point: number): number { const index: number = Math.round(point * this.SamplingUnit); return this.mBottomLine[index]; } /** * This method finds the BottomLine's maximum value within a given range. * @param startIndex Start index of the range * @param endIndex End index of the range (excluding) */ public getBottomLineMaxInRange(startIndex: number, endIndex: number): number { return this.getMaxInRange(this.BottomLine, startIndex, endIndex); } /** * This method returns the maximum value of the bottom line around a specific * bounding box. Will return undefined if the bounding box is not valid or inside staffline * @param boundingBox Bounding box where the maximum should be retrieved from * @returns Maximum value inside bounding box boundaries or undefined if not possible */ public getBottomLineMaxInBoundingBox(boundingBox: BoundingBox): number { //TODO: Actually it should be the margin. But that one is not implemented const startPoint: number = Math.floor(boundingBox.AbsolutePosition.x + boundingBox.BorderLeft); const endPoint: number = Math.ceil(boundingBox.AbsolutePosition.x + boundingBox.BorderRight); return this.getMaxInRange(this.mBottomLine, startPoint, endPoint); } /** * Updates sky- and bottom line with a boundingBox and its children * @param boundingBox Bounding box to be added */ public updateWithBoundingBoxRecursively(boundingBox: BoundingBox): void { if (boundingBox.ChildElements && boundingBox.ChildElements.length > 0) { this.updateWithBoundingBoxRecursively(boundingBox); } else { const currentTopBorder: number = boundingBox.BorderTop + boundingBox.AbsolutePosition.y; const currentBottomBorder: number = boundingBox.BorderBottom + boundingBox.AbsolutePosition.y; if (currentTopBorder < 0) { const startPoint: number = Math.floor(boundingBox.AbsolutePosition.x + boundingBox.BorderLeft); const endPoint: number = Math.ceil(boundingBox.AbsolutePosition.x + boundingBox.BorderRight) ; this.updateInRange(this.mSkyLine, startPoint, endPoint, currentTopBorder); } else if (currentBottomBorder > this.StaffLineParent.StaffHeight) { const startPoint: number = Math.floor(boundingBox.AbsolutePosition.x + boundingBox.BorderLeft); const endPoint: number = Math.ceil(boundingBox.AbsolutePosition.x + boundingBox.BorderRight); this.updateInRange(this.mBottomLine, startPoint, endPoint, currentBottomBorder); } } } //#region Private methods /** * go backwards through the skyline array and find a number so that * we can properly calculate the average * @param start the starting index of the search * @param tSkyLine the skyline to search through */ private findPreviousValidNumber(start: number, tSkyLine: number[]): number { for (let idx: number = start; idx >= 0; idx--) { if (!isNaN(tSkyLine[idx])) { return tSkyLine[idx]; } } return 0; } /** * go forward through the skyline array and find a number so that * we can properly calculate the average * @param start the starting index of the search * @param tSkyLine the skyline to search through */ private findNextValidNumber(start: number, tSkyLine: Array<number>): number { if (start >= tSkyLine.length) { return tSkyLine[start - 1]; } for (let idx: number = start; idx < tSkyLine.length; idx++) { if (!isNaN(tSkyLine[idx])) { return tSkyLine[idx]; } } return 0; } /** * Debugging drawing function that can draw single pixels * @param coord Point to draw to * @param backend the backend to be used * @param color the color to be used, default is red */ private drawPixel(coord: PointF2D, backend: CanvasVexFlowBackend, color: string = "#FF0000FF"): void { const ctx: any = backend.getContext(); const oldStyle: string = ctx.fillStyle; ctx.fillStyle = color; ctx.fillRect(coord.x, coord.y, 2, 2); ctx.fillStyle = oldStyle; } /** * Update an array with the value given inside a range. NOTE: will only be updated if value > oldValue * @param array Array to fill in the new value * @param startIndex start index to begin with (default: 0) * @param endIndex end index of array (excluding, default: array length) * @param value value to fill in (default: 0) */ private updateInRange(array: number[], startIndex: number = 0, endIndex: number = array.length, value: number = 0): void { startIndex = Math.floor(startIndex * this.SamplingUnit); endIndex = Math.ceil(endIndex * this.SamplingUnit); if (endIndex < startIndex) { throw new Error("start index of line is greater than the end index"); } if (startIndex < 0) { startIndex = 0; } if (endIndex > array.length) { endIndex = array.length; } for (let i: number = startIndex; i < endIndex; i++) { array[i] = Math.abs(value) > Math.abs(array[i]) ? value : array[i]; } } /** * Sets the value given to the range inside the array. NOTE: will always update the value * @param array Array to fill in the new value * @param startIndex start index to begin with (default: 0) * @param endIndex end index of array (excluding, default: array length) * @param value value to fill in (default: 0) */ private setInRange(array: number[], startIndex: number = 0, endIndex: number = array.length, value: number = 0): void { startIndex = Math.floor(startIndex * this.SamplingUnit); endIndex = Math.ceil(endIndex * this.SamplingUnit); if (endIndex < startIndex) { throw new Error("start index of line is greater then the end index"); } if (startIndex < 0) { startIndex = 0; } if (endIndex > array.length) { endIndex = array.length; } for (let i: number = startIndex; i < endIndex; i++) { array[i] = value; } } /** * Get all values of the selected line inside the given range * @param skyBottomArray Skyline or bottom line * @param startIndex start index * @param endIndex end index (including) */ private getMinInRange(skyBottomArray: number[], startIndex: number, endIndex: number): number { startIndex = Math.floor(startIndex * this.SamplingUnit); endIndex = Math.ceil(endIndex * this.SamplingUnit); if (!skyBottomArray) { // Highly questionable return Number.MAX_VALUE; } if (startIndex < 0) { startIndex = 0; } if (startIndex >= skyBottomArray.length) { startIndex = skyBottomArray.length - 1; } if (endIndex < 0) { endIndex = 0; } if (endIndex >= skyBottomArray.length) { endIndex = skyBottomArray.length; } if (startIndex >= 0 && endIndex <= skyBottomArray.length) { return Math.min(...skyBottomArray.slice(startIndex, endIndex + 1)); // slice does not include end (index) } } /** * Get the maximum value inside the given indices * @param skyBottomArray Skyline or bottom line * @param startIndex start index * @param endIndex end index (including) */ private getMaxInRange(skyBottomArray: number[], startIndex: number, endIndex: number): number { startIndex = Math.floor(startIndex * this.SamplingUnit); endIndex = Math.ceil(endIndex * this.SamplingUnit); if (!skyBottomArray) { // Highly questionable return Number.MIN_VALUE; } if (startIndex < 0) { startIndex = 0; } if (startIndex >= skyBottomArray.length) { startIndex = skyBottomArray.length - 1; } if (endIndex < 0) { endIndex = 0; } if (endIndex >= skyBottomArray.length) { endIndex = skyBottomArray.length; } if (startIndex >= 0 && endIndex <= skyBottomArray.length) { return Math.max(...skyBottomArray.slice(startIndex, endIndex + 1)); // slice does not include end (index) } } // FIXME: What does this do here? // private isStaffLineUpper(): boolean { // const instrument: Instrument = this.StaffLineParent.ParentStaff.ParentInstrument; // if (this.StaffLineParent.ParentStaff === instrument.Staves[0]) { // return true; // } else { // return false; // } // } // #endregion //#region Getter Setter /** Sampling units that are used to quantize the sky and bottom line */ get SamplingUnit(): number { return this.mRules.SamplingUnit; } /** Parent staffline where the skybottomline calculator is attached to */ get StaffLineParent(): StaffLine { return this.mStaffLineParent; } /** Get the plain skyline array */ get SkyLine(): number[] { return this.mSkyLine; } /** Get the plain bottomline array */ get BottomLine(): number[] { return this.mBottomLine; } //#endregion } ```
/content/code_sandbox/src/MusicalScore/Graphical/SkyBottomLineCalculator.ts
xml
2016-02-08T15:47:01
2024-08-16T17:49:53
opensheetmusicdisplay
opensheetmusicdisplay/opensheetmusicdisplay
1,416
6,005
```xml { "!" = "Generated by ProjectCenter, do not edit"; ApplicationDescription = "Sound Mixer for NEXTSPACE"; ApplicationName = Mixer; ApplicationRelease = "0.1"; ApplicationIcon = Sound.tiff; Authors = ( "Sergii Stoian <stoyan255@gmail.com>" ); FullVersionID = "0.1"; NSExecutable = Mixer; NSMainNibFile = "Mixer.gorm"; NSIcon = Sound.tiff; NSPrincipalClass = NSApplication; NSRole = Application; } ```
/content/code_sandbox/Frameworks/SoundKit/Tests/Mixer/MixerInfo.plist
xml
2016-10-28T07:02:49
2024-08-16T14:14:55
nextspace
trunkmaster/nextspace
1,872
121
```xml <?xml version="1.0" encoding="UTF-8"?> <!-- path_to_url Unless required by applicable law or agreed to in writing, "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY specific language governing permissions and limitations --> <!DOCTYPE suite SYSTEM "path_to_url" > <suite name="bal-shell-service-test-suite"> <test name="openapi-cli-test-suite"> <packages> <package name="io.ballerina.shell.service.test.*"/> <package name="io.ballerina.shell.service.test.unittests.*"/> </packages> </test> </suite> ```
/content/code_sandbox/misc/ls-extensions/modules/bal-shell-service/src/test/resources/testng.xml
xml
2016-11-16T14:58:44
2024-08-15T15:15:21
ballerina-lang
ballerina-platform/ballerina-lang
3,561
130
```xml <?xml version="1.0" encoding="utf-8"?> <!-- path_to_url Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. --> <com.google.android.material.tabs.TabLayout android:id="@+id/tabs" xmlns:android="path_to_url" android:layout_width="match_parent" android:layout_height="wrap_content" /> ```
/content/code_sandbox/testing/java/com/google/android/material/testapp/res/layout/design_tabs.xml
xml
2016-12-05T16:11:29
2024-08-16T17:51:42
material-components-android
material-components/material-components-android
16,176
97
```xml import { test } from '../../playwright/test'; test.describe('Plugins', async () => { test('Open plugins menu and generate plugin', async ({ page }) => { // Opening settings await page.locator('[data-testid="settings-button"]').click(); // Switching to Plugins tab await page.locator('div[role="tab"]:has-text("Plugins")').click(); // Generate new plugin await page.locator('text=Generate New Plugin').click(); await page.locator('text=Generate').first().click(); // check if the plugin shows up on the plugin list await page.getByRole('cell', { name: 'insomnia-plugin-demo-example' }).click(); }); }); ```
/content/code_sandbox/packages/insomnia-smoke-test/tests/smoke/plugins-interactions.test.ts
xml
2016-04-23T03:54:26
2024-08-16T16:50:44
insomnia
Kong/insomnia
34,054
154
```xml /*your_sha256_hash----------------------------- *your_sha256_hash----------------------------*/ import { registerLanguage } from '../_.contribution'; declare var AMD: any; declare var require: any; registerLanguage({ id: 'qsharp', extensions: ['.qs'], aliases: ['Q#', 'qsharp'], loader: () => { if (AMD) { return new Promise((resolve, reject) => { require(['vs/basic-languages/qsharp/qsharp'], resolve, reject); }); } else { return import('./qsharp'); } } }); ```
/content/code_sandbox/src/basic-languages/qsharp/qsharp.contribution.ts
xml
2016-06-07T16:56:31
2024-08-16T17:17:05
monaco-editor
microsoft/monaco-editor
39,508
124
```xml <?xml version="1.0" encoding="utf-8"?> <resources> <color name="colorPrimary">#3F51B5</color> <color name="colorPrimaryDark">#303F9F</color> <color name="colorAccent">#FF4081</color> <color name="can_login">#DF9517</color> <color name="not_login">#C5C0C0</color> <color name="red">#eb676b</color> <color name="blue">#488cef</color> <color name="green">#3bc4a2</color> <color name="gray">#cfcfcf</color> </resources> ```
/content/code_sandbox/app/src/main/res/values/colors.xml
xml
2016-03-24T06:08:39
2024-07-07T04:51:03
rxjava_for_android
cn-ljb/rxjava_for_android
1,063
152
```xml /* * @license Apache-2.0 * * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ // TypeScript Version: 4.1 /// <reference types="@stdlib/types"/> import { NumericArray } from '@stdlib/types/array'; /** * Interface defining function options. */ interface Options { /** * Significance level (default: 0.05). */ alpha?: number; /** * Array of group indicators. */ groups?: Array<any>; } /** * Test result. */ interface Results { /** * Used significance level. */ alpha: number; /** * Test decision. */ rejected: boolean; /** * p-value of the test. */ pValue: number; /** * Value of test statistic. */ statistic: number; /** * Name of test. */ method: string; /** * Degrees of freedom. */ df: number; /** * Function to print formatted output. */ print: Function; } /** * Compute Bartletts test for equal variances. * * @param arr0 - numeric array * @param options - function options * @param options.alpha - significance level (default: 0.05) * @param options.groups - array of group indicators * @throws must provide at least two array-like arguments if `groups` is not set * @throws must provide valid options * @returns test results * * @example * var arr = [ * 2.9, 3.0, 2.5, 2.6, 3.2, * 3.8, 2.7, 4.0, 2.4, * 2.8, 3.4, 3.7, 2.2, 2.0 * ]; * var groups = [ * 'a', 'a', 'a', 'a', 'a', * 'b', 'b', 'b', 'b', * 'c', 'c', 'c', 'c', 'c' * ]; * varout = bartlettTest( arr, { * 'groups': groups * }); * // returns {...} */ declare function bartlettTest( arr0: NumericArray, options?: Options ): Results; /** * Compute Bartletts test for equal variances. * * @param arr0 - first numeric array * @param arr1 - second numeric array * @param options - function options * @param options.alpha - significance level (default: 0.05) * @throws must provide valid options * @returns test results * * @example * // Data from Hollander & Wolfe (1973), p. 116: * var x = [ 2.9, 3.0, 2.5, 2.6, 3.2 ]; * var y = [ 3.8, 2.7, 4.0, 2.4 ]; * * var out = bartlettTest( x, y ); * // returns {...} */ declare function bartlettTest( arr0: NumericArray, arr1: NumericArray, options?: Options ): Results; /** * Compute Bartletts test for equal variances. * * @param arr0 - first numeric array * @param arr1 - second numeric array * @param arr2 - third numeric array * @param options - function options * @param options.alpha - significance level (default: 0.05) * @throws must provide valid options * @returns test results * * @example * // Data from Hollander & Wolfe (1973), p. 116: * var x = [ 2.9, 3.0, 2.5, 2.6, 3.2 ]; * var y = [ 3.8, 2.7, 4.0, 2.4 ]; * var z = [ 2.8, 3.4, 3.7, 2.2, 2.0 ]; * * var out = bartlettTest( x, y, z ); * // returns {...} */ declare function bartlettTest( arr0: NumericArray, arr1: NumericArray, arr2: NumericArray, options?: Options ): Results; /** * Compute Bartletts test for equal variances. * * @param arr0 - first numeric array * @param arr1 - second numeric array * @param arr2 - third numeric array * @param arr3 - fourth numeric array * @param options - function options * @param options.alpha - significance level (default: 0.05) * @throws must provide valid options * @returns test results */ declare function bartlettTest( arr0: NumericArray, arr1: NumericArray, arr2: NumericArray, arr3: NumericArray, options?: Options ): Results; /** * Compute Bartletts test for equal variances. * * @param arr0 - first numeric array * @param args - subsequent numeric arrays and an optional options object * @throws must provide valid options * @returns test results */ declare function bartlettTest( arr0: NumericArray, ...args: Array<NumericArray | Options> ): Results; // EXPORTS // export = bartlettTest; ```
/content/code_sandbox/lib/node_modules/@stdlib/stats/bartlett-test/docs/types/index.d.ts
xml
2016-03-24T04:19:52
2024-08-16T09:03:19
stdlib
stdlib-js/stdlib
4,266
1,165
```xml import * as mongoose from 'mongoose'; import * as strip from 'strip'; import { IUserDocument } from './types'; import { IPermissionDocument } from './definitions/permissions'; import { randomAlphanumeric } from '@erxes/api-utils/src/random'; import { isEnabled } from '@erxes/api-utils/src/serviceDiscovery'; import * as messageBroker from './messageBroker'; import type { InterMessage } from './messageBroker'; import { connect } from './mongo-connection'; import { coreModelOrganizations, getCoreConnection } from './saas/saas'; export const getEnv = ({ name, defaultValue, subdomain, }: { name: string; defaultValue?: string; subdomain?: string; }): string => { let value = process.env[name] || ''; if (!value && typeof defaultValue !== 'undefined') { return defaultValue; } if (subdomain) { value = value.replace('<subdomain>', subdomain); } return value || ''; }; /** * Returns user's name or email */ export const getUserDetail = (user: IUserDocument) => { if (user.details) { return `${user.details.firstName} ${user.details.lastName}`; } return user.email; }; export const paginate = ( collection, params: { ids?: string[]; page?: number; perPage?: number; excludeIds?: boolean; }, ) => { const { page = 0, perPage = 0, ids, excludeIds } = params || { ids: null }; const _page = Number(page || '1'); const _limit = Number(perPage || '20'); if (ids && ids.length > 0) { return excludeIds ? collection.limit(_limit) : collection; } return collection.limit(_limit).skip((_page - 1) * _limit); }; export const validSearchText = (values: string[]) => { const value = values.join(' '); if (value.length < 512) { return value; } return value.substring(0, 511); }; const stringToRegex = (value: string) => { const specialChars = '{}[]\\^$.|?*+()'.split(''); const val = value.split(''); const result = val.map((char) => specialChars.includes(char) ? '.?\\' + char : '.?' + char, ); return '.*' + result.join('').substring(2) + '.*'; }; export const regexSearchText = ( searchValue: string, searchKey = 'searchText', ) => { const result: any[] = []; searchValue = searchValue.replace(/\s\s+/g, ' '); const words = searchValue.split(' '); for (const word of words) { result.push({ [searchKey]: { $regex: `${stringToRegex(word)}`, $options: 'mui' }, }); } return { $and: result }; }; /* * Converts given value to date or if value in valid date * then returns default value */ export const fixDate = (value, defaultValue = new Date()): Date => { const date = new Date(value); if (!isNaN(date.getTime())) { return date; } return defaultValue; }; export const getDate = (date: Date, day: number): Date => { const currentDate = new Date(); date.setDate(currentDate.getDate() + day + 1); date.setHours(0, 0, 0, 0); return date; }; export const getToday = (date: Date): Date => { return new Date( Date.UTC( date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate(), 0, 0, 0, ), ); }; export const getPureDate = (date: Date, multiplier = 1) => { const ndate = new Date(date); const diffTimeZone = multiplier * Number(process.env.TIMEZONE || 0) * 1000 * 60 * 60; return new Date(ndate.getTime() - diffTimeZone); }; export const getTomorrow = (date: Date) => { return getToday(new Date(date.getTime() + 24 * 60 * 60 * 1000)); }; export const getNextMonth = (date: Date): { start: number; end: number } => { const today = getToday(date); const currentMonth = new Date().getMonth(); if (currentMonth === 11) { today.setFullYear(today.getFullYear() + 1); } const month = (currentMonth + 1) % 12; const start = today.setMonth(month, 1); const end = today.setMonth(month + 1, 0); return { start, end }; }; /** * Check user ids whether its added or removed from array of ids */ export const checkUserIds = ( oldUserIds: string[] = [], newUserIds: string[] = [], ) => { const removedUserIds = oldUserIds.filter((e) => !newUserIds.includes(e)); const addedUserIds = newUserIds.filter((e) => !oldUserIds.includes(e)); return { addedUserIds, removedUserIds }; }; export const chunkArray = (myArray, chunkSize: number) => { let index = 0; const arrayLength = myArray.length; const tempArray: any[] = []; for (index = 0; index < arrayLength; index += chunkSize) { const myChunk = myArray.slice(index, index + chunkSize); // Do something if you want with the group tempArray.push(myChunk); } return tempArray; }; export const cleanHtml = (content?: string) => strip(content || '').substring(0, 100); /** * Splits text into chunks of strings limited by given character count * .{1,100}(\s|$) * . - matches any character (except for line terminators) * {1,100} - matches the previous token between 1 and 100 times, as many times as possible, giving back as needed (greedy) * (\s|$) - capturing group * \s - matches any whitespace character * $ - asserts position at the end of the string * * @param str text to be split * @param size character length of each chunk */ export const splitStr = (str: string, size: number): string[] => { const cleanStr = strip(str); return cleanStr.match(new RegExp(new RegExp(`.{1,${size}}(\s|$)`, 'g'))); }; const generateRandomEmail = () => { let chars = 'abcdefghijklmnopqrstuvwxyz1234567890'; let string = ''; for (let ii = 0; ii < 15; ii++) { string += chars[Math.floor(Math.random() * chars.length)]; } return string + '@gmail.com'; }; export const getUniqueValue = async ( collection: any, fieldName: string = 'code', defaultValue?: string, ) => { const getRandomValue = (type: string) => type === 'email' ? generateRandomEmail() : randomAlphanumeric(); let uniqueValue = defaultValue || getRandomValue(fieldName); let duplicated = await collection.findOne({ [fieldName]: uniqueValue }); while (duplicated) { uniqueValue = getRandomValue(fieldName); duplicated = await collection.findOne({ [fieldName]: uniqueValue }); } return uniqueValue; }; export const escapeRegExp = (str: string) => { return str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); }; export interface MessageArgs extends MessageArgsOmitService { serviceName: string; } export interface MessageArgsOmitService extends InterMessage { action: string; isRPC?: boolean; isMQ?: boolean; } export const sendMessage = async (args: MessageArgs): Promise<any> => { const { serviceName, subdomain, action, data, defaultValue, isRPC, isMQ, timeout, } = args; if (serviceName && !(await isEnabled(serviceName))) { if (isRPC && defaultValue === undefined) { throw new Error(`${serviceName} service is not enabled`); } else { return defaultValue; } } const queueName = serviceName + (serviceName ? ':' : '') + action; return messageBroker[ isRPC ? (isMQ ? 'sendRPCMessageMq' : 'sendRPCMessage') : 'sendMessage' ](queueName, { subdomain, data, defaultValue, timeout, thirdService: data && data.thirdService, }); }; interface IActionMap { [key: string]: boolean; } export const userActionsMap = async ( userPermissions: IPermissionDocument[], groupPermissions: IPermissionDocument[], user: any, ): Promise<IActionMap> => { const totalPermissions: IPermissionDocument[] = [ ...userPermissions, ...groupPermissions, ...(user.customPermissions || []), ]; const allowedActions: IActionMap = {}; const check = (name: string, allowed: boolean) => { if (typeof allowedActions[name] === 'undefined') { allowedActions[name] = allowed; } // if a specific permission is denied elsewhere, follow that rule if (allowedActions[name] && !allowed) { allowedActions[name] = false; } }; for (const { requiredActions, allowed, action } of totalPermissions) { if (requiredActions.length > 0) { for (const actionName of requiredActions) { check(actionName, allowed); } } else { check(action, allowed); } } return allowedActions; }; /* * Generate url depending on given file upload publicly or not */ export const generateAttachmentUrl = (urlOrName: string) => { const DOMAIN = getEnv({ name: 'DOMAIN' }); if (urlOrName.startsWith('http')) { return urlOrName; } return `${DOMAIN}/gateway/pl:core/read-file?key=${urlOrName}`; }; export const getSubdomain = (req): string => { const hostname = req.headers['nginx-hostname'] || req.headers.hostname || req.hostname; const subdomain = hostname.replace(/(^\w+:|^)\/\//, '').split('.')[0]; return subdomain; }; export const connectionOptions: mongoose.ConnectOptions = { family: 4, }; export const createGenerateModels = <IModels>( loadClasses: ( db: mongoose.Connection, subdomain: string, ) => IModels | Promise<IModels>, ): ((hostnameOrSubdomain: string) => Promise<IModels>) => { const VERSION = getEnv({ name: 'VERSION' }); connect(); if (VERSION && VERSION !== 'saas') { let models: IModels | null = null; return async function genereteModels( hostnameOrSubdomain: string, ): Promise<IModels> { if (models) { return models; } models = await loadClasses(mongoose.connection, hostnameOrSubdomain); return models; }; } else { return async function genereteModels( hostnameOrSubdomain: string = '', ): Promise<IModels> { let subdomain: string = hostnameOrSubdomain; if (!subdomain) { throw new Error(`Subdomain is \`${subdomain}\``); } // means hostname if (subdomain && subdomain.includes('.')) { subdomain = getSubdomain(hostnameOrSubdomain); } await getCoreConnection(); const organization = await coreModelOrganizations.findOne({ subdomain }); if (!organization) { throw new Error( `Organization with subdomain = ${subdomain} is not found`, ); } const DB_NAME = getEnv({ name: 'DB_NAME' }); const GE_MONGO_URL = (DB_NAME || 'erxes_<organizationId>').replace( '<organizationId>', organization._id, ); // @ts-ignore const tenantCon = mongoose.connection.useDb(GE_MONGO_URL, { // so that conn.model method can use cached connection useCache: true, noListener: true, }); return await loadClasses(tenantCon, subdomain); }; } }; export const authCookieOptions = (options: any = {}) => { const NODE_ENV = getEnv({ name: 'NODE_ENV' }); const maxAge = options.expires || 14 * 24 * 60 * 60 * 1000; const secure = !['test', 'development'].includes(NODE_ENV); if (!secure && options.sameSite) { delete options.sameSite; } const cookieOptions = { httpOnly: true, expires: new Date(Date.now() + maxAge), maxAge, secure, ...options, }; return cookieOptions; }; export const stripHtml = (string: any) => { if (typeof string === 'undefined' || string === null) { return; } else { const regex = /(&nbsp;|<([^>]+)>)/gi; let result = string.replace(regex, ''); result = result.replace(/&#[0-9][0-9][0-9][0-9];/gi, ' '); const cut = result.slice(0, 70); return cut; } }; const DATE_OPTIONS = { d: 1000 * 60 * 60 * 24, h: 1000 * 60 * 60, m: 1000 * 60, s: 1000, ms: 1, }; const CHARACTERS = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~!@#$%^&*()-=+{}[]<>.,:;"`|/?'; const BEGIN_DIFF = 1577836800000; // new Date('2020-01-01').getTime(); export const dateToShortStr = ( date?: Date | string | number, scale?: 10 | 16 | 62 | 92 | number, kind?: 'd' | 'h' | 'm' | 's' | 'ms', ) => { date = new Date(date || new Date()); if (!scale) { scale = 62; } if (!kind) { kind = 'd'; } const divider = DATE_OPTIONS[kind]; const chars = CHARACTERS.substring(0, scale); let intgr = Math.round((date.getTime() - BEGIN_DIFF) / divider); let short = ''; while (intgr > 0) { const preInt = intgr; intgr = Math.floor(intgr / scale); const strInd = preInt - intgr * scale; short = `${chars[strInd]}${short}`; } return short; }; export const shortStrToDate = ( shortStr: string, scale?: 10 | 16 | 62 | 92 | number, kind?: 'd' | 'h' | 'm' | 's' | 'ms', resultType?: 'd' | 'n', ) => { if (!shortStr) return; if (!scale) { scale = 62; } if (!kind) { kind = 'd'; } const chars = CHARACTERS.substring(0, scale); const multiplier = DATE_OPTIONS[kind]; let intgr = 0; let scaler = 1; for (let i = shortStr.length; i--; i >= 0) { const char = shortStr[i]; intgr = intgr + scaler * chars.indexOf(char); scaler = scaler * scale; } intgr = intgr * multiplier + BEGIN_DIFF; if (resultType === 'd') return new Date(intgr); return intgr; }; ```
/content/code_sandbox/packages/api-utils/src/core.ts
xml
2016-11-11T06:54:50
2024-08-16T10:26:06
erxes
erxes/erxes
3,479
3,436
```xml <?xml version="1.0" encoding="UTF-8"?> <!-- ~ ~ ~ path_to_url ~ ~ Unless required by applicable law or agreed to in writing, software ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ~ --> <project xmlns="path_to_url" xmlns:xsi="path_to_url" xsi:schemaLocation="path_to_url path_to_url"> <parent> <artifactId>apollo-audit</artifactId> <groupId>com.ctrip.framework.apollo</groupId> <version>${revision}</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>apollo-audit-impl</artifactId> <version>${revision}</version> <dependencies> <dependency> <groupId>com.ctrip.framework.apollo</groupId> <artifactId>apollo-audit-annotation</artifactId> </dependency> <dependency> <groupId>com.ctrip.framework.apollo</groupId> <artifactId>apollo-audit-api</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-jpa</artifactId> </dependency> <dependency> <groupId>org.springframework.security</groupId> <artifactId>spring-security-core</artifactId> </dependency> </dependencies> </project> ```
/content/code_sandbox/apollo-audit/apollo-audit-impl/pom.xml
xml
2016-03-04T10:24:23
2024-08-16T07:42:30
apollo
apolloconfig/apollo
29,011
348
```xml <?xml version="1.0" encoding="UTF-8"?> <!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ ~ ~ path_to_url ~ ~ Unless required by applicable law or agreed to in writing, software ~ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~--> <project xmlns="path_to_url" xmlns:xsi="path_to_url" xsi:schemaLocation="path_to_url path_to_url"> <modelVersion>4.0.0</modelVersion> <groupId>com.google.cloud.training.flights</groupId> <artifactId>chapter10</artifactId> <version>[1.0.0,2.0.0]</version> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> <repositories> <repository> <id>ossrh.snapshots</id> <name>Sonatype OSS Repository Hosting</name> <url>path_to_url <releases> <enabled>false</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </repository> </repositories> <packaging>jar</packaging> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.7.0</version> <configuration> <source>1.8</source> <target>1.8</target> <compilerArgument>-Xlint:unchecked</compilerArgument> </configuration> </plugin> </plugins> <pluginManagement> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>1.6.0</version> <configuration> <cleanupDaemonThreads>false</cleanupDaemonThreads> </configuration> </plugin> </plugins> </pluginManagement> </build> <dependencies> <!-- Dataflow SDK deprecated , now included in core Apache Beam SDK--> <dependency> <groupId>org.apache.beam</groupId> <artifactId>beam-sdks-java-core</artifactId> <version>[2.15.0, 2.99)</version> </dependency> <!-- path_to_url --> <dependency> <groupId>org.apache.beam</groupId> <artifactId>beam-runners-google-cloud-dataflow-java</artifactId> <version>2.15.0</version> </dependency> <dependency> <groupId>org.apache.beam</groupId> <artifactId>beam-runners-direct-java</artifactId> <version>2.15.0</version> <scope>runtime</scope> </dependency> <!-- discovery API needed for ml prediction --> <dependency> <groupId>com.google.apis</groupId> <artifactId>google-api-services-discovery</artifactId> <version>v1-rev20190129-1.30.1</version> </dependency> <!-- slf4j API frontend binding with JUL backend --> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <version>2.0.0-alpha0</version> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-jdk14</artifactId> <version>2.0.0-alpha0</version> </dependency> </dependencies> </project> ```
/content/code_sandbox/quests/data-science-on-gcp-edition1_tf2/10_realtime/chapter10/pom.xml
xml
2016-04-17T21:39:27
2024-08-16T17:22:27
training-data-analyst
GoogleCloudPlatform/training-data-analyst
7,726
813
```xml import { mat4, vec3 } from 'gl-matrix'; import { GfxClipSpaceNearZ, GfxDevice } from '../gfx/platform/GfxPlatform.js'; import { GfxRenderInstManager } from "../gfx/render/GfxRenderInstManager.js"; import { GfxrAttachmentSlot, GfxrGraphBuilder, GfxrRenderTargetDescription, GfxrRenderTargetID } from '../gfx/render/GfxRenderGraph.js'; import { TDDraw } from "../SuperMarioGalaxy/DDraw.js"; import * as GX from '../gx/gx_enum.js'; import * as GX_Material from '../gx/gx_material.js'; import { GXMaterialBuilder } from '../gx/GXMaterialBuilder.js'; import { DrawParams, GXMaterialHelperGfx, MaterialParams, fillSceneParamsDataOnTemplate, SceneParams, fillSceneParams, fillSceneParamsData, GXRenderHelperGfx } from '../gx/gx_render.js'; import { getMatrixAxisZ } from '../MathHelpers.js'; import { ObjectRenderContext } from './objects.js'; import { SceneRenderContext, SFARenderLists, setGXMaterialOnRenderInst } from './render.js'; import { vecPitch } from './util.js'; import { getCamPos } from './util.js'; import { World } from './world.js'; import { projectionMatrixConvertClipSpaceNearZ } from '../gfx/helpers/ProjectionHelpers.js'; const materialParams = new MaterialParams(); const drawParams = new DrawParams(); const scratchVec0 = vec3.create(); const scratchSceneParams = new SceneParams(); export class Sky { private skyddraw = new TDDraw(); private materialHelperSky: GXMaterialHelperGfx; constructor(private world: World) { this.skyddraw.setVtxDesc(GX.Attr.POS, true); this.skyddraw.setVtxDesc(GX.Attr.TEX0, true); const mb = new GXMaterialBuilder(); mb.setTexCoordGen(GX.TexCoordID.TEXCOORD0, GX.TexGenType.MTX2x4, GX.TexGenSrc.TEX0, GX.TexGenMatrix.IDENTITY); mb.setTevDirect(0); mb.setTevOrder(0, GX.TexCoordID.TEXCOORD0, GX.TexMapID.TEXMAP0, GX.RasColorChannelID.COLOR_ZERO); mb.setTevColorIn(0, GX.CC.ZERO, GX.CC.ZERO, GX.CC.ZERO, GX.CC.TEXC); mb.setTevColorOp(0, GX.TevOp.ADD, GX.TevBias.ZERO, GX.TevScale.SCALE_1, true, GX.Register.PREV); mb.setTevAlphaIn(0, GX.CA.ZERO, GX.CA.ZERO, GX.CA.ZERO, GX.CA.TEXA); mb.setTevAlphaOp(0, GX.TevOp.ADD, GX.TevBias.ZERO, GX.TevScale.SCALE_1, true, GX.Register.PREV); mb.setBlendMode(GX.BlendMode.NONE, GX.BlendFactor.ONE, GX.BlendFactor.ZERO); mb.setZMode(false, GX.CompareType.ALWAYS, false); mb.setCullMode(GX.CullMode.NONE); mb.setUsePnMtxIdx(false); this.materialHelperSky = new GXMaterialHelperGfx(mb.finish('atmosphere')); } private renderAtmosphere(device: GfxDevice, renderHelper: GXRenderHelperGfx, builder: GfxrGraphBuilder, renderInstManager: GfxRenderInstManager, mainColorTargetID: GfxrRenderTargetID, sceneCtx: SceneRenderContext) { // Draw atmosphere const tex = this.world.envfxMan.getAtmosphereTexture(); if (tex === null || tex === undefined) return; // Call renderHelper.pushTemplateRenderInst (not renderInstManager.pushTemplateRenderInst) // to obtain a local SceneParams buffer const template = renderHelper.pushTemplateRenderInst(); // Setup to draw in clip space fillSceneParams(scratchSceneParams, mat4.create(), sceneCtx.viewerInput.backbufferWidth, sceneCtx.viewerInput.backbufferHeight); projectionMatrixConvertClipSpaceNearZ(scratchSceneParams.u_Projection, device.queryVendorInfo().clipSpaceNearZ, GfxClipSpaceNearZ.NegativeOne); let offs = template.getUniformBufferOffset(GX_Material.GX_Program.ub_SceneParams); const d = template.mapUniformBufferF32(GX_Material.GX_Program.ub_SceneParams); fillSceneParamsData(d, offs, scratchSceneParams); materialParams.m_TextureMapping[0].gfxTexture = tex.gfxTexture; materialParams.m_TextureMapping[0].gfxSampler = tex.gfxSampler; materialParams.m_TextureMapping[0].width = tex.width; materialParams.m_TextureMapping[0].height = tex.height; materialParams.m_TextureMapping[0].lodBias = 0.0; mat4.identity(materialParams.u_TexMtx[0]); // Extract pitch const cameraFwd = scratchVec0; getMatrixAxisZ(cameraFwd, sceneCtx.viewerInput.camera.worldMatrix); vec3.negate(cameraFwd, cameraFwd); const camPitch = vecPitch(cameraFwd); const camRoll = Math.PI / 2; // FIXME: We should probably use a different technique since this one is poorly suited to VR. // TODO: Implement precise time of day. The game blends textures on the CPU to produce // an atmosphere texture for a given time of day. const fovRollFactor = 3.0 * (tex.height * 0.5 * sceneCtx.viewerInput.camera.fovY / Math.PI) * Math.sin(-camRoll); const pitchFactor = (0.5 * tex.height - 6.0) - (3.0 * tex.height * -camPitch / Math.PI); const t0 = (pitchFactor + fovRollFactor) / tex.height; const t1 = t0 - (fovRollFactor * 2.0) / tex.height; this.skyddraw.beginDraw(renderInstManager.gfxRenderCache); this.skyddraw.begin(GX.Command.DRAW_QUADS); this.skyddraw.position3f32(-1, -1, -1); this.skyddraw.texCoord2f32(GX.Attr.TEX0, 1.0, t0); this.skyddraw.position3f32(-1, 1, -1); this.skyddraw.texCoord2f32(GX.Attr.TEX0, 1.0, t1); this.skyddraw.position3f32(1, 1, -1); this.skyddraw.texCoord2f32(GX.Attr.TEX0, 1.0, t1); this.skyddraw.position3f32(1, -1, -1); this.skyddraw.texCoord2f32(GX.Attr.TEX0, 1.0, t0); this.skyddraw.end(); const renderInst = this.skyddraw.endDrawAndMakeRenderInst(renderInstManager); drawParams.clear(); setGXMaterialOnRenderInst(renderInstManager, renderInst, this.materialHelperSky, materialParams, drawParams); renderInstManager.popTemplateRenderInst(); builder.pushPass((pass) => { pass.setDebugName('Atmosphere'); pass.attachRenderTargetID(GfxrAttachmentSlot.Color0, mainColorTargetID); pass.exec((passRenderer) => { renderInst.drawOnPass(renderInstManager.gfxRenderCache, passRenderer); }); }); } public addSkyRenderInsts(device: GfxDevice, renderInstManager: GfxRenderInstManager, renderLists: SFARenderLists, sceneCtx: SceneRenderContext) { // Draw skyscape if (this.world.envfxMan.skyscape.objects.length !== 0) { renderInstManager.setCurrentRenderInstList(renderLists.skyscape); const template = renderInstManager.pushTemplateRenderInst(); fillSceneParamsDataOnTemplate(template, sceneCtx.viewerInput); const objectCtx: ObjectRenderContext = { sceneCtx, showDevGeometry: false, setupLights: () => {}, // Lights are not used when rendering skyscape objects (?) } const eyePos = scratchVec0; getCamPos(eyePos, sceneCtx.viewerInput.camera); for (let i = 0; i < this.world.envfxMan.skyscape.objects.length; i++) { const obj = this.world.envfxMan.skyscape.objects[i]; obj.setPosition(eyePos); obj.addRenderInsts(device, renderInstManager, null, objectCtx); } renderInstManager.popTemplateRenderInst(); } } public addSkyRenderPasses(device: GfxDevice, renderHelper: GXRenderHelperGfx, builder: GfxrGraphBuilder, renderInstManager: GfxRenderInstManager, renderLists: SFARenderLists, mainColorTargetID: GfxrRenderTargetID, depthDesc: GfxrRenderTargetDescription, sceneCtx: SceneRenderContext) { this.renderAtmosphere(device, renderHelper, builder, renderInstManager, mainColorTargetID, sceneCtx); builder.pushPass((pass) => { pass.setDebugName('Skyscape'); pass.attachRenderTargetID(GfxrAttachmentSlot.Color0, mainColorTargetID); const skyDepthTargetID = builder.createRenderTargetID(depthDesc, 'Skyscape Depth'); pass.attachRenderTargetID(GfxrAttachmentSlot.DepthStencil, skyDepthTargetID); pass.exec((passRenderer) => { renderLists.skyscape.drawOnPassRenderer(renderInstManager.gfxRenderCache, passRenderer); }); }); } public destroy(device: GfxDevice) { this.skyddraw.destroy(device); } } ```
/content/code_sandbox/src/StarFoxAdventures/Sky.ts
xml
2016-10-06T21:43:45
2024-08-16T17:03:52
noclip.website
magcius/noclip.website
3,206
2,130
```xml import { ObjectType } from './Constants'; import { vtkAlgorithm, vtkObject } from '../../../interfaces'; /** * Interface for initial values of BufferObject */ export interface IBufferObjectInitialValues { objectType?: ObjectType; context?: WebGLRenderingContext | WebGL2RenderingContext; allocatedGPUMemoryInBytes?: number; } /** * Interface for OpenGL Buffer Object */ export interface vtkOpenGLBufferObject extends vtkObject { /** * Uploads data to the buffer object. * @param data The data to be uploaded. * @param type The type of the data. * @returns {boolean} Whether the upload was successful. */ upload(data: any, type: any): boolean; /** * Binds the buffer object. * @returns {boolean} Whether the binding was successful. */ bind(): boolean; /** * Releases the buffer object. * @returns {boolean} Whether the release was successful. */ release(): boolean; /** * Releases graphics resources associated with the buffer object. */ releaseGraphicsResources(): void; /** * Sets the OpenGL render window. * @param renWin The render window to set. */ setOpenGLRenderWindow(renWin: any): void; /** * Retrieves the error message, if any. * @returns {string} The error message. */ getError(): string; } /** * Extends the given object with the properties and methods of vtkOpenGLBufferObject. * @param publicAPI The public API to extend. * @param model The model to extend. * @param initialValues The initial values to apply. */ export function extend( publicAPI: object, model: object, initialValues?: IBufferObjectInitialValues ): void; /** * Creates a new instance of vtkOpenGLBufferObject with the given initial values. * @param initialValues The initial values to use. * @returns {vtkOpenGLBufferObject} The new instance. */ export function newInstance( initialValues?: IBufferObjectInitialValues ): vtkOpenGLBufferObject; /** * Object containing the newInstance and extend functions for vtkOpenGLBufferObject. */ export declare const vtkOpenGLBufferObject: { newInstance: typeof newInstance; extend: typeof extend; }; export default vtkOpenGLBufferObject; ```
/content/code_sandbox/Sources/Rendering/OpenGL/BufferObject/index.d.ts
xml
2016-05-02T15:44:11
2024-08-15T19:53:44
vtk-js
Kitware/vtk-js
1,200
476
```xml class Progress { tick: Function; terminate: Function; constructor() { this.tick = jest.fn(); this.terminate = jest.fn(); } } export default Progress; ```
/content/code_sandbox/packages/@expo/cli/__mocks__/progress.ts
xml
2016-08-15T17:14:25
2024-08-16T19:54:44
expo
expo/expo
32,004
39
```xml <?xml version="1.0" encoding="UTF-8"?> <schema targetNamespace="urn:ietf:params:xml:ns:rdeRegistrar-1.0" xmlns:rdeRegistrar="urn:ietf:params:xml:ns:rdeRegistrar-1.0" xmlns:rde="urn:ietf:params:xml:ns:rde-1.0" xmlns:contact="urn:ietf:params:xml:ns:contact-1.0" xmlns:domain="urn:ietf:params:xml:ns:domain-1.0" xmlns:eppcom="urn:ietf:params:xml:ns:eppcom-1.0" xmlns="path_to_url" elementFormDefault="qualified"> <!-- Import common element types. --> <import namespace="urn:ietf:params:xml:ns:eppcom-1.0" schemaLocation="eppcom.xsd"/> <import namespace="urn:ietf:params:xml:ns:domain-1.0" schemaLocation="domain.xsd"/> <import namespace="urn:ietf:params:xml:ns:contact-1.0" schemaLocation="contact.xsd"/> <import namespace="urn:ietf:params:xml:ns:rde-1.0" schemaLocation="rde.xsd"/> <annotation> <documentation> Registry Data Escrow registrar provisioning schema </documentation> </annotation> <element name="abstractRegistrar" type="rdeRegistrar:abstractContentType" substitutionGroup="rde:content" abstract="true"/> <element name="registrar" substitutionGroup="rdeRegistrar:abstractRegistrar"/> <element name="delete" type="rdeRegistrar:deleteType" substitutionGroup="rde:delete"/> <!-- Content Type --> <complexType name="abstractContentType"> <complexContent> <extension base="rde:contentType"> <sequence> <element name="id" type="eppcom:clIDType"/> <element name="name" type="rdeRegistrar:nameType"/> <element name="gurid" type="positiveInteger" minOccurs="0"/> <element name="status" type="rdeRegistrar:statusType"/> <element name="postalInfo" type="rdeRegistrar:postalInfoType" maxOccurs="2"/> <element name="voice" type="contact:e164Type" minOccurs="0"/> <element name="fax" type="contact:e164Type" minOccurs="0"/> <element name="email" type="eppcom:minTokenType"/> <element name="url" type="anyURI" minOccurs="0"/> <element name="whoisInfo" type="rdeRegistrar:whoisInfoType" minOccurs="0"/> <element name="crDate" type="dateTime"/> <element name="upDate" type="dateTime" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType> <simpleType name="nameType"> <restriction base="normalizedString"> <minLength value="1" /> <maxLength value="255" /> </restriction> </simpleType> <simpleType name="statusType"> <restriction base="token"> <enumeration value="ok"/> <enumeration value="readonly"/> <enumeration value="terminated"/> </restriction> </simpleType> <complexType name="postalInfoType"> <sequence> <element name="addr" type="rdeRegistrar:addrType" /> </sequence> <attribute name="type" type="rdeRegistrar:postalInfoEnumType" use="required" /> </complexType> <simpleType name="postalInfoEnumType"> <restriction base="token"> <enumeration value="loc" /> <enumeration value="int" /> </restriction> </simpleType> <complexType name="addrType"> <sequence> <element name="street" type="rdeRegistrar:optPostalLineType" minOccurs="0" maxOccurs="3" /> <element name="city" type="rdeRegistrar:postalLineType" /> <element name="sp" type="rdeRegistrar:optPostalLineType" minOccurs="0" /> <element name="pc" type="rdeRegistrar:pcType" minOccurs="0" /> <element name="cc" type="rdeRegistrar:ccType" /> </sequence> </complexType> <simpleType name="postalLineType"> <restriction base="normalizedString"> <minLength value="1" /> <maxLength value="255" /> </restriction> </simpleType> <simpleType name="optPostalLineType"> <restriction base="normalizedString"> <maxLength value="255" /> </restriction> </simpleType> <simpleType name="pcType"> <restriction base="token"> <maxLength value="16" /> </restriction> </simpleType> <simpleType name="ccType"> <restriction base="token"> <length value="2" /> </restriction> </simpleType> <complexType name="whoisInfoType"> <sequence> <element name="name" type="eppcom:labelType" minOccurs="0"/> <element name="url" type="anyURI" minOccurs="0"/> </sequence> </complexType> <!-- Delete Type --> <complexType name="deleteType"> <complexContent> <extension base="rde:deleteType"> <sequence> <element name="id" type="eppcom:clIDType" minOccurs="0" maxOccurs="unbounded"/> </sequence> </extension> </complexContent> </complexType> </schema> ```
/content/code_sandbox/core/src/main/java/google/registry/xml/xsd/rde-registrar.xsd
xml
2016-02-29T20:16:48
2024-08-15T19:49:29
nomulus
google/nomulus
1,685
1,267
```xml <!-- ~ contributor license agreements. See the NOTICE file distributed with ~ this work for additional information regarding copyright ownership. ~ ~ path_to_url ~ ~ Unless required by applicable law or agreed to in writing, software ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. --> <dataset> <metadata> <column name="Tables_in_distsql_rdl" /> </metadata> <row values="t_order_item_2" /> <row values="t_order_item_3" /> <row values="t_country" /> <row values="t_order_item_0" /> <row values="t_order_item_1" /> <row values="t_order" /> <row values="t_user" /> <row values="t_order_2" /> <row values="t_order_3" /> <row values="t_product_category" /> </dataset> ```
/content/code_sandbox/test/e2e/sql/src/test/resources/cases/rdl/dataset/distsql_rdl/create_sharding_rules_show_tables.xml
xml
2016-01-18T12:49:26
2024-08-16T15:48:11
shardingsphere
apache/shardingsphere
19,707
207
```xml /* * path_to_url * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either */ /** * An interface for user-created handler logic to add to {@link CustomSkillRequestMapper}. */ export interface RequestHandler<Input, Output> { canHandle(input: Input): Promise<boolean> | boolean; handle(input: Input): Promise<Output> | Output; } ```
/content/code_sandbox/ask-sdk-runtime/lib/dispatcher/request/handler/RequestHandler.ts
xml
2016-06-24T06:26:05
2024-08-14T12:39:19
alexa-skills-kit-sdk-for-nodejs
alexa/alexa-skills-kit-sdk-for-nodejs
3,118
102
```xml import { hasNext, noNext } from '../asynciterablehelpers.js'; import { share, take } from 'ix/asynciterable/operators/index.js'; import { range, toArray } from 'ix/asynciterable/index.js'; import { sequenceEqual } from 'ix/iterable/index.js'; test('AsyncIterable#share single', async () => { const rng = share()(range(0, 5)); const it = rng[Symbol.asyncIterator](); await hasNext(it, 0); await hasNext(it, 1); await hasNext(it, 2); await hasNext(it, 3); await hasNext(it, 4); await noNext(it); }); test('AsyncIterable#share shared exhausts in the beginning', async () => { const rng = range(0, 5).pipe(share()); const it1 = rng[Symbol.asyncIterator](); const it2 = rng[Symbol.asyncIterator](); await hasNext(it1, 0); await hasNext(it2, 1); await hasNext(it1, 2); await hasNext(it2, 3); await hasNext(it1, 4); await noNext(it1); await noNext(it2); }); test('AsyncIterable#share shared exhausts any time', async () => { const rng = range(0, 5).pipe(share()); const it1 = rng[Symbol.asyncIterator](); await hasNext(it1, 0); await hasNext(it1, 1); await hasNext(it1, 2); const it2 = rng[Symbol.asyncIterator](); await hasNext(it2, 3); await hasNext(it2, 4); await noNext(it1); await noNext(it2); }); test('AsyncIterable#share shared does not interrupt', async () => { const rng = range(0, 5).pipe(share()); const res1 = await rng.pipe(take(3)).pipe(toArray); expect(sequenceEqual(res1, [0, 1, 2])).toBe(true); const res2 = await toArray(rng); expect(sequenceEqual(res2, [3, 4])).toBe(true); }); ```
/content/code_sandbox/spec/asynciterable-operators/share-spec.ts
xml
2016-02-22T20:04:19
2024-08-09T18:46:41
IxJS
ReactiveX/IxJS
1,319
469
```xml <?xml version="1.0" encoding="utf-8"?> <Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="path_to_url"> <ItemGroup Label="ProjectConfigurations"> <ProjectConfiguration Include="Dynamic|ARM"> <Configuration>Dynamic</Configuration> <Platform>ARM</Platform> </ProjectConfiguration> <ProjectConfiguration Include="Dynamic|ARM64"> <Configuration>Dynamic</Configuration> <Platform>ARM64</Platform> </ProjectConfiguration> <ProjectConfiguration Include="Dynamic|Win32"> <Configuration>Dynamic</Configuration> <Platform>Win32</Platform> </ProjectConfiguration> <ProjectConfiguration Include="Dynamic|x64"> <Configuration>Dynamic</Configuration> <Platform>x64</Platform> </ProjectConfiguration> <ProjectConfiguration Include="Static_WinXP|ARM"> <Configuration>Static_WinXP</Configuration> <Platform>ARM</Platform> </ProjectConfiguration> <ProjectConfiguration Include="Static_WinXP|ARM64"> <Configuration>Static_WinXP</Configuration> <Platform>ARM64</Platform> </ProjectConfiguration> <ProjectConfiguration Include="Static_WinXP|Win32"> <Configuration>Static_WinXP</Configuration> <Platform>Win32</Platform> </ProjectConfiguration> <ProjectConfiguration Include="Static_WinXP|x64"> <Configuration>Static_WinXP</Configuration> <Platform>x64</Platform> </ProjectConfiguration> <ProjectConfiguration Include="Static|ARM"> <Configuration>Static</Configuration> <Platform>ARM</Platform> </ProjectConfiguration> <ProjectConfiguration Include="Static|ARM64"> <Configuration>Static</Configuration> <Platform>ARM64</Platform> </ProjectConfiguration> <ProjectConfiguration Include="Static|Win32"> <Configuration>Static</Configuration> <Platform>Win32</Platform> </ProjectConfiguration> <ProjectConfiguration Include="Static|x64"> <Configuration>Static</Configuration> <Platform>x64</Platform> </ProjectConfiguration> </ItemGroup> <PropertyGroup Label="Globals"> <VCProjectVersion>15.0</VCProjectVersion> <ProjectGuid>{CB9502D7-50B1-4159-A5D2-08EDE3F38BC3}</ProjectGuid> <Keyword>Win32Proj</Keyword> <RootNamespace>ltlbuild</RootNamespace> <WindowsTargetPlatformVersion>$([Microsoft.Build.Utilities.ToolLocationHelper]::GetLatestSDKTargetPlatformVersion('Windows', '10.0'))</WindowsTargetPlatformVersion> </PropertyGroup> <Import Project="$(MSBuildThisFileDirectory)..\Shared.props" /> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Static|Win32'" Label="Configuration"> <ConfigurationType>StaticLibrary</ConfigurationType> <UseDebugLibraries>false</UseDebugLibraries> <PlatformToolset>v141</PlatformToolset> <WholeProgramOptimization>true</WholeProgramOptimization> <CharacterSet>Unicode</CharacterSet> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Static|ARM'" Label="Configuration"> <ConfigurationType>StaticLibrary</ConfigurationType> <UseDebugLibraries>false</UseDebugLibraries> <PlatformToolset>v141</PlatformToolset> <WholeProgramOptimization>true</WholeProgramOptimization> <CharacterSet>Unicode</CharacterSet> <WindowsSDKDesktopARMSupport>true</WindowsSDKDesktopARMSupport> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Static|ARM64'" Label="Configuration"> <ConfigurationType>StaticLibrary</ConfigurationType> <UseDebugLibraries>false</UseDebugLibraries> <PlatformToolset>v141</PlatformToolset> <WholeProgramOptimization>true</WholeProgramOptimization> <CharacterSet>Unicode</CharacterSet> <WindowsSDKDesktopARM64Support>true</WindowsSDKDesktopARM64Support> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Dynamic|Win32'" Label="Configuration"> <ConfigurationType>StaticLibrary</ConfigurationType> <UseDebugLibraries>false</UseDebugLibraries> <PlatformToolset>v141</PlatformToolset> <WholeProgramOptimization>true</WholeProgramOptimization> <CharacterSet>Unicode</CharacterSet> <DisableStaticLibSupport>true</DisableStaticLibSupport> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Dynamic|ARM'" Label="Configuration"> <ConfigurationType>StaticLibrary</ConfigurationType> <UseDebugLibraries>false</UseDebugLibraries> <PlatformToolset>v141</PlatformToolset> <WholeProgramOptimization>true</WholeProgramOptimization> <CharacterSet>Unicode</CharacterSet> <DisableStaticLibSupport>true</DisableStaticLibSupport> <WindowsSDKDesktopARMSupport>true</WindowsSDKDesktopARMSupport> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Dynamic|ARM64'" Label="Configuration"> <ConfigurationType>StaticLibrary</ConfigurationType> <UseDebugLibraries>false</UseDebugLibraries> <PlatformToolset>v141</PlatformToolset> <WholeProgramOptimization>true</WholeProgramOptimization> <CharacterSet>Unicode</CharacterSet> <DisableStaticLibSupport>true</DisableStaticLibSupport> <WindowsSDKDesktopARM64Support>true</WindowsSDKDesktopARM64Support> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Static_WinXP|Win32'" Label="Configuration"> <ConfigurationType>StaticLibrary</ConfigurationType> <UseDebugLibraries>false</UseDebugLibraries> <PlatformToolset>v141</PlatformToolset> <WholeProgramOptimization>true</WholeProgramOptimization> <CharacterSet>Unicode</CharacterSet> <SupportWinXP>true</SupportWinXP> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Static_WinXP|ARM'" Label="Configuration"> <ConfigurationType>StaticLibrary</ConfigurationType> <UseDebugLibraries>false</UseDebugLibraries> <PlatformToolset>v141</PlatformToolset> <WholeProgramOptimization>true</WholeProgramOptimization> <CharacterSet>Unicode</CharacterSet> <SupportWinXP>true</SupportWinXP> <WindowsSDKDesktopARMSupport>true</WindowsSDKDesktopARMSupport> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Static_WinXP|ARM64'" Label="Configuration"> <ConfigurationType>StaticLibrary</ConfigurationType> <UseDebugLibraries>false</UseDebugLibraries> <PlatformToolset>v141</PlatformToolset> <WholeProgramOptimization>true</WholeProgramOptimization> <CharacterSet>Unicode</CharacterSet> <SupportWinXP>true</SupportWinXP> <WindowsSDKDesktopARM64Support>true</WindowsSDKDesktopARM64Support> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Static|x64'" Label="Configuration"> <ConfigurationType>StaticLibrary</ConfigurationType> <UseDebugLibraries>false</UseDebugLibraries> <PlatformToolset>v141</PlatformToolset> <WholeProgramOptimization>true</WholeProgramOptimization> <CharacterSet>Unicode</CharacterSet> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Dynamic|x64'" Label="Configuration"> <ConfigurationType>StaticLibrary</ConfigurationType> <UseDebugLibraries>false</UseDebugLibraries> <PlatformToolset>v141</PlatformToolset> <WholeProgramOptimization>true</WholeProgramOptimization> <CharacterSet>Unicode</CharacterSet> <DisableStaticLibSupport>true</DisableStaticLibSupport> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Static_WinXP|x64'" Label="Configuration"> <ConfigurationType>StaticLibrary</ConfigurationType> <UseDebugLibraries>false</UseDebugLibraries> <PlatformToolset>v141</PlatformToolset> <WholeProgramOptimization>true</WholeProgramOptimization> <CharacterSet>Unicode</CharacterSet> <SupportWinXP>true</SupportWinXP> </PropertyGroup> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> <ImportGroup Label="ExtensionSettings"> <Import Project="$(VCTargetsPath)\BuildCustomizations\masm.props" /> </ImportGroup> <ImportGroup Label="Shared" /> <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Static|Win32'" Label="PropertySheets"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> <Import Project="$(SolutionDir)..\VC-LTL helper for Visual Studio.props" /> <Import Project="..\..\..\VC-LTL_Global.props" /> </ImportGroup> <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Static|ARM'" Label="PropertySheets"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> <Import Project="$(SolutionDir)..\VC-LTL helper for Visual Studio.props" /> <Import Project="..\..\..\VC-LTL_Global.props" /> </ImportGroup> <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Static|ARM64'" Label="PropertySheets"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> <Import Project="$(SolutionDir)..\VC-LTL helper for Visual Studio.props" /> <Import Project="..\..\..\VC-LTL_Global.props" /> </ImportGroup> <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Dynamic|Win32'" Label="PropertySheets"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> <Import Project="$(SolutionDir)..\VC-LTL helper for Visual Studio.props" /> <Import Project="..\..\..\VC-LTL_Global.props" /> </ImportGroup> <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Dynamic|ARM'" Label="PropertySheets"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> <Import Project="$(SolutionDir)..\VC-LTL helper for Visual Studio.props" /> <Import Project="..\..\..\VC-LTL_Global.props" /> </ImportGroup> <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Dynamic|ARM64'" Label="PropertySheets"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> <Import Project="$(SolutionDir)..\VC-LTL helper for Visual Studio.props" /> <Import Project="..\..\..\VC-LTL_Global.props" /> </ImportGroup> <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Static_WinXP|Win32'" Label="PropertySheets"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> <Import Project="$(SolutionDir)..\VC-LTL helper for Visual Studio.props" /> <Import Project="..\..\..\VC-LTL_Global.props" /> </ImportGroup> <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Static_WinXP|ARM'" Label="PropertySheets"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> <Import Project="$(SolutionDir)..\VC-LTL helper for Visual Studio.props" /> <Import Project="..\..\..\VC-LTL_Global.props" /> </ImportGroup> <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Static_WinXP|ARM64'" Label="PropertySheets"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> <Import Project="$(SolutionDir)..\VC-LTL helper for Visual Studio.props" /> <Import Project="..\..\..\VC-LTL_Global.props" /> </ImportGroup> <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Static|x64'" Label="PropertySheets"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> <Import Project="$(SolutionDir)..\VC-LTL helper for Visual Studio.props" /> <Import Project="..\..\..\VC-LTL_Global.props" /> </ImportGroup> <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Dynamic|x64'" Label="PropertySheets"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> <Import Project="$(SolutionDir)..\VC-LTL helper for Visual Studio.props" /> <Import Project="..\..\..\VC-LTL_Global.props" /> </ImportGroup> <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Static_WinXP|x64'" Label="PropertySheets"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> <Import Project="$(SolutionDir)..\VC-LTL helper for Visual Studio.props" /> <Import Project="..\..\..\VC-LTL_Global.props" /> </ImportGroup> <PropertyGroup Label="UserMacros" /> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Static|Win32'"> <IncludePath>$(SolutionDir)$(VC-LTLUsedToolsVersion)\vcruntime;$(SolutionDir)ucrt\inc;$(SolutionDir)$(VC-LTLUsedToolsVersion);$(SolutionDir);$(IncludePath)</IncludePath> <TargetName>libcmt</TargetName> <OutDir>$(SolutionDir)..\VC\$(VC-LTLUsedToolsVersion)\lib\$(PlatformShortName)\Vista\</OutDir> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Static|ARM'"> <IncludePath>$(SolutionDir)$(VC-LTLUsedToolsVersion)\vcruntime;$(SolutionDir)ucrt\inc;$(SolutionDir)$(VC-LTLUsedToolsVersion);$(SolutionDir);$(IncludePath)</IncludePath> <TargetName>libcmt</TargetName> <OutDir>$(SolutionDir)..\VC\$(VC-LTLUsedToolsVersion)\lib\$(PlatformShortName)\Vista\</OutDir> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Static|ARM64'"> <IncludePath>$(SolutionDir)$(VC-LTLUsedToolsVersion)\vcruntime;$(SolutionDir)ucrt\inc;$(SolutionDir)$(VC-LTLUsedToolsVersion);$(SolutionDir);$(IncludePath)</IncludePath> <TargetName>libcmt</TargetName> <OutDir>$(SolutionDir)..\VC\$(VC-LTLUsedToolsVersion)\lib\$(PlatformShortName)\Vista\</OutDir> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Dynamic|Win32'"> <IncludePath>$(SolutionDir)$(VC-LTLUsedToolsVersion)\vcruntime;$(SolutionDir)ucrt\inc;$(SolutionDir)$(VC-LTLUsedToolsVersion);$(SolutionDir);$(IncludePath)</IncludePath> <TargetName>msvcrt</TargetName> <OutDir>$(SolutionDir)..\VC\$(VC-LTLUsedToolsVersion)\lib\$(PlatformShortName)\Vista\</OutDir> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Dynamic|ARM'"> <IncludePath>$(SolutionDir)$(VC-LTLUsedToolsVersion)\vcruntime;$(SolutionDir)ucrt\inc;$(SolutionDir)$(VC-LTLUsedToolsVersion);$(SolutionDir);$(IncludePath)</IncludePath> <TargetName>msvcrt</TargetName> <OutDir>$(SolutionDir)..\VC\$(VC-LTLUsedToolsVersion)\lib\$(PlatformShortName)\Vista\</OutDir> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Dynamic|ARM64'"> <IncludePath>$(SolutionDir)$(VC-LTLUsedToolsVersion)\vcruntime;$(SolutionDir)ucrt\inc;$(SolutionDir)$(VC-LTLUsedToolsVersion);$(SolutionDir);$(IncludePath)</IncludePath> <TargetName>msvcrt</TargetName> <OutDir>$(SolutionDir)..\VC\$(VC-LTLUsedToolsVersion)\lib\$(PlatformShortName)\Vista\</OutDir> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Static_WinXP|Win32'"> <IncludePath>$(SolutionDir)$(VC-LTLUsedToolsVersion)\vcruntime;$(SolutionDir)ucrt\inc;$(SolutionDir)$(VC-LTLUsedToolsVersion);$(SolutionDir);$(IncludePath)</IncludePath> <TargetName>libcmt</TargetName> <OutDir>$(SolutionDir)..\VC\$(VC-LTLUsedToolsVersion)\lib\$(PlatformShortName)\WinXP\</OutDir> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Static_WinXP|ARM'"> <IncludePath>$(SolutionDir)$(VC-LTLUsedToolsVersion)\vcruntime;$(SolutionDir)ucrt\inc;$(SolutionDir)$(VC-LTLUsedToolsVersion);$(SolutionDir);$(IncludePath)</IncludePath> <TargetName>libcmt</TargetName> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Static_WinXP|ARM64'"> <IncludePath>$(SolutionDir)$(VC-LTLUsedToolsVersion)\vcruntime;$(SolutionDir)ucrt\inc;$(SolutionDir)$(VC-LTLUsedToolsVersion);$(SolutionDir);$(IncludePath)</IncludePath> <TargetName>libcmt</TargetName> <OutDir>$(SolutionDir)..\VC\$(VC-LTLUsedToolsVersion)\lib\$(PlatformShortName)\Vista\</OutDir> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Static|x64'"> <IncludePath>$(SolutionDir)$(VC-LTLUsedToolsVersion)\vcruntime;$(SolutionDir)ucrt\inc;$(SolutionDir)$(VC-LTLUsedToolsVersion);$(SolutionDir);$(IncludePath)</IncludePath> <TargetName>libcmt</TargetName> <OutDir>$(SolutionDir)..\VC\$(VC-LTLUsedToolsVersion)\lib\$(PlatformShortName)\Vista\</OutDir> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Dynamic|x64'"> <IncludePath>$(SolutionDir)$(VC-LTLUsedToolsVersion)\vcruntime;$(SolutionDir)ucrt\inc;$(SolutionDir)$(VC-LTLUsedToolsVersion);$(SolutionDir);$(IncludePath)</IncludePath> <TargetName>msvcrt</TargetName> <OutDir>$(SolutionDir)..\VC\$(VC-LTLUsedToolsVersion)\lib\$(PlatformShortName)\Vista\</OutDir> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Static_WinXP|x64'"> <IncludePath>$(SolutionDir)$(VC-LTLUsedToolsVersion)\vcruntime;$(SolutionDir)ucrt\inc;$(SolutionDir)$(VC-LTLUsedToolsVersion);$(SolutionDir);$(IncludePath)</IncludePath> <TargetName>libcmt</TargetName> <OutDir>$(SolutionDir)..\VC\$(VC-LTLUsedToolsVersion)\lib\$(PlatformShortName)\WinXP\</OutDir> </PropertyGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Static|Win32'"> <ClCompile> <WarningLevel>Level3</WarningLevel> <PrecompiledHeader>NotUsing</PrecompiledHeader> <Optimization>MaxSpeed</Optimization> <FunctionLevelLinking>true</FunctionLevelLinking> <IntrinsicFunctions>true</IntrinsicFunctions> <PreprocessorDefinitions>_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH;_DISABLE_DEPRECATE_LTL_MESSAGE;_CRT_BEST_PRACTICES_USAGE;_CRT_SECURE_NO_WARNINGS;__Build_LTL;_CRTBLD;_MBCS;_CRT_DECLARE_GLOBAL_VARIABLES_DIRECTLY;_VCRT_ALLOW_INTERNALS;_NO__LTL_Initialization;WIN32;NDEBUG;_LIB;_CORECRT_BUILD;_CTIME_;%(PreprocessorDefinitions)</PreprocessorDefinitions> <WholeProgramOptimization>false</WholeProgramOptimization> <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed> <RuntimeTypeInfo>false</RuntimeTypeInfo> <ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName> <EnableEnhancedInstructionSet>NoExtensions</EnableEnhancedInstructionSet> <LanguageStandard>stdcpp17</LanguageStandard> <MultiProcessorCompilation>true</MultiProcessorCompilation> <ForcedIncludeFiles>suppress.h;%(ForcedIncludeFiles)</ForcedIncludeFiles> <RuntimeLibrary>MultiThreaded</RuntimeLibrary> </ClCompile> <Link> <SubSystem>Windows</SubSystem> <EnableCOMDATFolding>true</EnableCOMDATFolding> <OptimizeReferences>true</OptimizeReferences> </Link> <MASM> <ObjectFileName>$(IntDir)%(FileName).asm.obj</ObjectFileName> <UseSafeExceptionHandlers>true</UseSafeExceptionHandlers> </MASM> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Static|ARM'"> <ClCompile> <WarningLevel>Level3</WarningLevel> <PrecompiledHeader>NotUsing</PrecompiledHeader> <Optimization>MaxSpeed</Optimization> <FunctionLevelLinking>true</FunctionLevelLinking> <IntrinsicFunctions>true</IntrinsicFunctions> <PreprocessorDefinitions>_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH;_DISABLE_DEPRECATE_LTL_MESSAGE;_CRT_BEST_PRACTICES_USAGE;_CRT_SECURE_NO_WARNINGS;__Build_LTL;_CRTBLD;_MBCS;_CRT_DECLARE_GLOBAL_VARIABLES_DIRECTLY;_VCRT_ALLOW_INTERNALS;_NO__LTL_Initialization;WIN32;NDEBUG;_LIB;_CORECRT_BUILD;_CTIME_;%(PreprocessorDefinitions)</PreprocessorDefinitions> <WholeProgramOptimization>false</WholeProgramOptimization> <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed> <RuntimeTypeInfo>false</RuntimeTypeInfo> <ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName> <LanguageStandard>stdcpp17</LanguageStandard> <MultiProcessorCompilation>true</MultiProcessorCompilation> <ForcedIncludeFiles>suppress.h;%(ForcedIncludeFiles)</ForcedIncludeFiles> <RuntimeLibrary>MultiThreaded</RuntimeLibrary> </ClCompile> <Link> <SubSystem>Windows</SubSystem> <EnableCOMDATFolding>true</EnableCOMDATFolding> <OptimizeReferences>true</OptimizeReferences> </Link> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Static|ARM64'"> <ClCompile> <WarningLevel>Level3</WarningLevel> <PrecompiledHeader>NotUsing</PrecompiledHeader> <Optimization>MaxSpeed</Optimization> <FunctionLevelLinking>true</FunctionLevelLinking> <IntrinsicFunctions>true</IntrinsicFunctions> <PreprocessorDefinitions>_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH;_DISABLE_DEPRECATE_LTL_MESSAGE;_CRT_BEST_PRACTICES_USAGE;_CRT_SECURE_NO_WARNINGS;__Build_LTL;_CRTBLD;_MBCS;_CRT_DECLARE_GLOBAL_VARIABLES_DIRECTLY;_VCRT_ALLOW_INTERNALS;_NO__LTL_Initialization;NDEBUG;_LIB;_CORECRT_BUILD;_CTIME_;%(PreprocessorDefinitions)</PreprocessorDefinitions> <WholeProgramOptimization>false</WholeProgramOptimization> <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed> <RuntimeTypeInfo>false</RuntimeTypeInfo> <ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName> <LanguageStandard>stdcpp17</LanguageStandard> <MultiProcessorCompilation>true</MultiProcessorCompilation> <ForcedIncludeFiles>suppress.h;%(ForcedIncludeFiles)</ForcedIncludeFiles> <RuntimeLibrary>MultiThreaded</RuntimeLibrary> </ClCompile> <Link> <SubSystem>Windows</SubSystem> <EnableCOMDATFolding>true</EnableCOMDATFolding> <OptimizeReferences>true</OptimizeReferences> </Link> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Dynamic|Win32'"> <ClCompile> <WarningLevel>Level3</WarningLevel> <PrecompiledHeader>NotUsing</PrecompiledHeader> <Optimization>MaxSpeed</Optimization> <FunctionLevelLinking>true</FunctionLevelLinking> <IntrinsicFunctions>true</IntrinsicFunctions> <PreprocessorDefinitions>_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH;CRTDLL;_LTL_Using_Dynamic_Lib;__Bulib_Dynamic_Lib;_DISABLE_DEPRECATE_LTL_MESSAGE;_CRT_SECURE_NO_WARNINGS;__Build_LTL;_CRTBLD;_MBCS;_CRT_DECLARE_GLOBAL_VARIABLES_DIRECTLY;_VCRT_ALLOW_INTERNALS;_NO__LTL_Initialization;WIN32;NDEBUG;_LIB;_CORECRT_BUILD;_CTIME_;%(PreprocessorDefinitions)</PreprocessorDefinitions> <WholeProgramOptimization>false</WholeProgramOptimization> <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed> <RuntimeTypeInfo>false</RuntimeTypeInfo> <EnableEnhancedInstructionSet>NoExtensions</EnableEnhancedInstructionSet> <LanguageStandard>stdcpp17</LanguageStandard> <MultiProcessorCompilation>true</MultiProcessorCompilation> <ForcedIncludeFiles>suppress.h;%(ForcedIncludeFiles)</ForcedIncludeFiles> <ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName> </ClCompile> <Link> <SubSystem>Windows</SubSystem> <EnableCOMDATFolding>true</EnableCOMDATFolding> <OptimizeReferences>true</OptimizeReferences> <IgnoreSpecificDefaultLibraries>ltl.lib;%(IgnoreSpecificDefaultLibraries)</IgnoreSpecificDefaultLibraries> <LinkTimeCodeGeneration>Default</LinkTimeCodeGeneration> <ImportLibrary>$(OutDir)ltl.lib</ImportLibrary> <ProgramDatabaseFile>$(OutDir)ltl.pdb</ProgramDatabaseFile> </Link> <MASM> <ObjectFileName>$(IntDir)%(FileName).asm.obj</ObjectFileName> <UseSafeExceptionHandlers>true</UseSafeExceptionHandlers> </MASM> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Dynamic|ARM'"> <ClCompile> <WarningLevel>Level3</WarningLevel> <PrecompiledHeader>NotUsing</PrecompiledHeader> <Optimization>MaxSpeed</Optimization> <FunctionLevelLinking>true</FunctionLevelLinking> <IntrinsicFunctions>true</IntrinsicFunctions> <PreprocessorDefinitions>_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH;CRTDLL;_LTL_Using_Dynamic_Lib;__Bulib_Dynamic_Lib;_DISABLE_DEPRECATE_LTL_MESSAGE;_CRT_SECURE_NO_WARNINGS;__Build_LTL;_CRTBLD;_MBCS;_CRT_DECLARE_GLOBAL_VARIABLES_DIRECTLY;_VCRT_ALLOW_INTERNALS;_NO__LTL_Initialization;WIN32;NDEBUG;_LIB;_CORECRT_BUILD;_CTIME_;%(PreprocessorDefinitions)</PreprocessorDefinitions> <WholeProgramOptimization>false</WholeProgramOptimization> <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed> <RuntimeTypeInfo>false</RuntimeTypeInfo> <LanguageStandard>stdcpp17</LanguageStandard> <MultiProcessorCompilation>true</MultiProcessorCompilation> <ForcedIncludeFiles>suppress.h;%(ForcedIncludeFiles)</ForcedIncludeFiles> <ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName> </ClCompile> <Link> <SubSystem>Windows</SubSystem> <EnableCOMDATFolding>true</EnableCOMDATFolding> <OptimizeReferences>true</OptimizeReferences> <IgnoreSpecificDefaultLibraries>ltl.lib;%(IgnoreSpecificDefaultLibraries)</IgnoreSpecificDefaultLibraries> <LinkTimeCodeGeneration>Default</LinkTimeCodeGeneration> <ImportLibrary>$(OutDir)ltl.lib</ImportLibrary> <ProgramDatabaseFile>$(OutDir)ltl.pdb</ProgramDatabaseFile> </Link> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Dynamic|ARM64'"> <ClCompile> <WarningLevel>Level3</WarningLevel> <PrecompiledHeader>NotUsing</PrecompiledHeader> <Optimization>MaxSpeed</Optimization> <FunctionLevelLinking>true</FunctionLevelLinking> <IntrinsicFunctions>true</IntrinsicFunctions> <PreprocessorDefinitions>_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH;CRTDLL;_LTL_Using_Dynamic_Lib;__Bulib_Dynamic_Lib;_DISABLE_DEPRECATE_LTL_MESSAGE;_CRT_SECURE_NO_WARNINGS;__Build_LTL;_CRTBLD;_MBCS;_CRT_DECLARE_GLOBAL_VARIABLES_DIRECTLY;_VCRT_ALLOW_INTERNALS;_NO__LTL_Initialization;NDEBUG;_LIB;_CORECRT_BUILD;_CTIME_;%(PreprocessorDefinitions)</PreprocessorDefinitions> <WholeProgramOptimization>false</WholeProgramOptimization> <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed> <RuntimeTypeInfo>false</RuntimeTypeInfo> <LanguageStandard>stdcpp17</LanguageStandard> <MultiProcessorCompilation>true</MultiProcessorCompilation> <ForcedIncludeFiles>suppress.h;%(ForcedIncludeFiles)</ForcedIncludeFiles> <ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName> </ClCompile> <Link> <SubSystem>Windows</SubSystem> <EnableCOMDATFolding>true</EnableCOMDATFolding> <OptimizeReferences>true</OptimizeReferences> <IgnoreSpecificDefaultLibraries>ltl.lib;%(IgnoreSpecificDefaultLibraries)</IgnoreSpecificDefaultLibraries> <LinkTimeCodeGeneration>Default</LinkTimeCodeGeneration> <ImportLibrary>$(OutDir)ltl.lib</ImportLibrary> <ProgramDatabaseFile>$(OutDir)ltl.pdb</ProgramDatabaseFile> </Link> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Static_WinXP|Win32'"> <ClCompile> <WarningLevel>Level3</WarningLevel> <PrecompiledHeader>NotUsing</PrecompiledHeader> <Optimization>MaxSpeed</Optimization> <FunctionLevelLinking>true</FunctionLevelLinking> <IntrinsicFunctions>true</IntrinsicFunctions> <PreprocessorDefinitions>_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH;_DISABLE_DEPRECATE_LTL_MESSAGE;_CRT_SECURE_NO_WARNINGS;__Build_LTL;_CRTBLD;_MBCS;_CRT_DECLARE_GLOBAL_VARIABLES_DIRECTLY;_VCRT_ALLOW_INTERNALS;_NO__LTL_Initialization;_ATL_XP_TARGETING;WIN32;NDEBUG;_LIB;_CORECRT_BUILD;_CTIME_;%(PreprocessorDefinitions)</PreprocessorDefinitions> <WholeProgramOptimization>false</WholeProgramOptimization> <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed> <RuntimeTypeInfo>false</RuntimeTypeInfo> <ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName> <EnableEnhancedInstructionSet>NoExtensions</EnableEnhancedInstructionSet> <LanguageStandard>stdcpp17</LanguageStandard> <MultiProcessorCompilation>true</MultiProcessorCompilation> <ForcedIncludeFiles>suppress.h;%(ForcedIncludeFiles)</ForcedIncludeFiles> <RuntimeLibrary>MultiThreaded</RuntimeLibrary> </ClCompile> <Link> <SubSystem>Windows</SubSystem> <EnableCOMDATFolding>true</EnableCOMDATFolding> <OptimizeReferences>true</OptimizeReferences> </Link> <MASM> <ObjectFileName>$(IntDir)%(FileName).asm.obj</ObjectFileName> <UseSafeExceptionHandlers>true</UseSafeExceptionHandlers> </MASM> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Static_WinXP|ARM'"> <ClCompile> <WarningLevel>Level3</WarningLevel> <PrecompiledHeader>NotUsing</PrecompiledHeader> <Optimization>MaxSpeed</Optimization> <FunctionLevelLinking>true</FunctionLevelLinking> <IntrinsicFunctions>true</IntrinsicFunctions> <PreprocessorDefinitions>_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH;_DISABLE_DEPRECATE_LTL_MESSAGE;_CRT_SECURE_NO_WARNINGS;__Build_LTL;_CRTBLD;_MBCS;_CRT_DECLARE_GLOBAL_VARIABLES_DIRECTLY;_VCRT_ALLOW_INTERNALS;_NO__LTL_Initialization;_ATL_XP_TARGETING;WIN32;NDEBUG;_LIB;_CORECRT_BUILD;_CTIME_;%(PreprocessorDefinitions)</PreprocessorDefinitions> <WholeProgramOptimization>false</WholeProgramOptimization> <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed> <RuntimeTypeInfo>false</RuntimeTypeInfo> <ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName> <LanguageStandard>stdcpp17</LanguageStandard> <MultiProcessorCompilation>true</MultiProcessorCompilation> <ForcedIncludeFiles>suppress.h;%(ForcedIncludeFiles)</ForcedIncludeFiles> <RuntimeLibrary>MultiThreaded</RuntimeLibrary> </ClCompile> <Link> <SubSystem>Windows</SubSystem> <EnableCOMDATFolding>true</EnableCOMDATFolding> <OptimizeReferences>true</OptimizeReferences> </Link> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Static_WinXP|ARM64'"> <ClCompile> <WarningLevel>Level3</WarningLevel> <PrecompiledHeader>NotUsing</PrecompiledHeader> <Optimization>MaxSpeed</Optimization> <FunctionLevelLinking>true</FunctionLevelLinking> <IntrinsicFunctions>true</IntrinsicFunctions> <PreprocessorDefinitions>_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH;_DISABLE_DEPRECATE_LTL_MESSAGE;_CRT_SECURE_NO_WARNINGS;__Build_LTL;_CRTBLD;_MBCS;_CRT_DECLARE_GLOBAL_VARIABLES_DIRECTLY;_VCRT_ALLOW_INTERNALS;_NO__LTL_Initialization;_ATL_XP_TARGETING;NDEBUG;_LIB;_CORECRT_BUILD;_CTIME_;%(PreprocessorDefinitions)</PreprocessorDefinitions> <WholeProgramOptimization>false</WholeProgramOptimization> <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed> <RuntimeTypeInfo>false</RuntimeTypeInfo> <ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName> <LanguageStandard>stdcpp17</LanguageStandard> <MultiProcessorCompilation>true</MultiProcessorCompilation> <ForcedIncludeFiles>suppress.h;%(ForcedIncludeFiles)</ForcedIncludeFiles> <RuntimeLibrary>MultiThreaded</RuntimeLibrary> </ClCompile> <Link> <SubSystem>Windows</SubSystem> <EnableCOMDATFolding>true</EnableCOMDATFolding> <OptimizeReferences>true</OptimizeReferences> </Link> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Static|x64'"> <ClCompile> <WarningLevel>Level3</WarningLevel> <PrecompiledHeader>NotUsing</PrecompiledHeader> <Optimization>MaxSpeed</Optimization> <FunctionLevelLinking>true</FunctionLevelLinking> <IntrinsicFunctions>true</IntrinsicFunctions> <PreprocessorDefinitions>_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH;_DISABLE_DEPRECATE_LTL_MESSAGE;_CRT_BEST_PRACTICES_USAGE;_CRT_SECURE_NO_WARNINGS;__Build_LTL;_CRTBLD;_MBCS;_CRT_DECLARE_GLOBAL_VARIABLES_DIRECTLY;_VCRT_ALLOW_INTERNALS;_NO__LTL_Initialization;NDEBUG;_LIB;_CORECRT_BUILD;_CTIME_;%(PreprocessorDefinitions)</PreprocessorDefinitions> <WholeProgramOptimization>false</WholeProgramOptimization> <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed> <RuntimeTypeInfo>false</RuntimeTypeInfo> <ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName> <LanguageStandard>stdcpp17</LanguageStandard> <MultiProcessorCompilation>true</MultiProcessorCompilation> <ForcedIncludeFiles>suppress.h;%(ForcedIncludeFiles)</ForcedIncludeFiles> <RuntimeLibrary>MultiThreaded</RuntimeLibrary> </ClCompile> <Link> <SubSystem>Windows</SubSystem> <EnableCOMDATFolding>true</EnableCOMDATFolding> <OptimizeReferences>true</OptimizeReferences> </Link> <MASM> <ObjectFileName>$(IntDir)%(FileName).asm.obj</ObjectFileName> </MASM> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Dynamic|x64'"> <ClCompile> <WarningLevel>Level3</WarningLevel> <PrecompiledHeader>NotUsing</PrecompiledHeader> <Optimization>MaxSpeed</Optimization> <FunctionLevelLinking>true</FunctionLevelLinking> <IntrinsicFunctions>true</IntrinsicFunctions> <PreprocessorDefinitions>_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH;CRTDLL;_LTL_Using_Dynamic_Lib;__Bulib_Dynamic_Lib;_DISABLE_DEPRECATE_LTL_MESSAGE;_CRT_SECURE_NO_WARNINGS;__Build_LTL;_CRTBLD;_MBCS;_CRT_DECLARE_GLOBAL_VARIABLES_DIRECTLY;_VCRT_ALLOW_INTERNALS;_NO__LTL_Initialization;NDEBUG;_LIB;_CORECRT_BUILD;_CTIME_;%(PreprocessorDefinitions)</PreprocessorDefinitions> <WholeProgramOptimization>false</WholeProgramOptimization> <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed> <RuntimeTypeInfo>false</RuntimeTypeInfo> <MultiProcessorCompilation>true</MultiProcessorCompilation> <ForcedIncludeFiles>suppress.h;%(ForcedIncludeFiles)</ForcedIncludeFiles> <LanguageStandard>stdcpp17</LanguageStandard> <ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName> </ClCompile> <Link> <SubSystem>Windows</SubSystem> <EnableCOMDATFolding>true</EnableCOMDATFolding> <OptimizeReferences>true</OptimizeReferences> <ProgramDatabaseFile>$(OutDir)ltl.pdb</ProgramDatabaseFile> <IgnoreSpecificDefaultLibraries>ltl.lib;%(IgnoreSpecificDefaultLibraries)</IgnoreSpecificDefaultLibraries> <ImportLibrary>$(OutDir)ltl.lib</ImportLibrary> </Link> <MASM> <ObjectFileName>$(IntDir)%(FileName).asm.obj</ObjectFileName> </MASM> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Static_WinXP|x64'"> <ClCompile> <WarningLevel>Level3</WarningLevel> <PrecompiledHeader>NotUsing</PrecompiledHeader> <Optimization>MaxSpeed</Optimization> <FunctionLevelLinking>true</FunctionLevelLinking> <IntrinsicFunctions>true</IntrinsicFunctions> <PreprocessorDefinitions>_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH;_DISABLE_DEPRECATE_LTL_MESSAGE;_CRT_SECURE_NO_WARNINGS;__Build_LTL;_CRTBLD;_MBCS;_CRT_DECLARE_GLOBAL_VARIABLES_DIRECTLY;_VCRT_ALLOW_INTERNALS;_NO__LTL_Initialization;_ATL_XP_TARGETING;NDEBUG;_LIB;_CORECRT_BUILD;_CTIME_;%(PreprocessorDefinitions)</PreprocessorDefinitions> <WholeProgramOptimization>false</WholeProgramOptimization> <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed> <RuntimeTypeInfo>false</RuntimeTypeInfo> <ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName> <LanguageStandard>stdcpp17</LanguageStandard> <MultiProcessorCompilation>true</MultiProcessorCompilation> <ForcedIncludeFiles>suppress.h;%(ForcedIncludeFiles)</ForcedIncludeFiles> <RuntimeLibrary>MultiThreaded</RuntimeLibrary> </ClCompile> <Link> <SubSystem>Windows</SubSystem> <EnableCOMDATFolding>true</EnableCOMDATFolding> <OptimizeReferences>true</OptimizeReferences> </Link> <MASM> <ObjectFileName>$(IntDir)%(FileName).asm.obj</ObjectFileName> </MASM> </ItemDefinitionGroup> <ItemGroup> <ClCompile Include="..\..\..\ftol2_downlevel.cpp"> <ExcludedFromBuild Condition="'$(Platform)'!='Win32'">true</ExcludedFromBuild> <ExcludedFromBuild Condition="'$(SupportWinXP)'!='true'">true</ExcludedFromBuild> </ClCompile> <ClCompile Include="..\..\arm64\gshandlereh.c"> <ExcludedFromBuild Condition="'$(Platform)'!='ARM64'">true</ExcludedFromBuild> </ClCompile> <ClCompile Include="..\..\arm\gshandlereh.c"> <ExcludedFromBuild Condition="'$(Platform)'!='ARM'">true</ExcludedFromBuild> </ClCompile> <ClCompile Include="..\..\i386\chandler4.c"> <ExcludedFromBuild Condition="'$(Platform)'!='Win32'">true</ExcludedFromBuild> <ExcludedFromBuild Condition="'$(SupportWinXP)'!='true'">true</ExcludedFromBuild> </ClCompile> <ClCompile Include="..\..\i386\ehprolg2.c"> <ExcludedFromBuild Condition="'$(Platform)'!='Win32'">true</ExcludedFromBuild> </ClCompile> <ClCompile Include="..\..\i386\ehprolg3.c"> <ExcludedFromBuild Condition="'$(Platform)'!='Win32'">true</ExcludedFromBuild> </ClCompile> <ClCompile Include="..\..\i386\ehprolg3a.c"> <ExcludedFromBuild Condition="'$(Platform)'!='Win32'">true</ExcludedFromBuild> </ClCompile> <ClCompile Include="..\..\vcruntime\argv_mode.cpp" /> <ClCompile Include="..\..\vcruntime\checkcfg.c" /> <ClCompile Include="..\..\vcruntime\commit_mode.cpp" /> <ClCompile Include="..\..\vcruntime\default_precision.cpp"> <ExcludedFromBuild Condition="'$(Platform)'!='Win32'">true</ExcludedFromBuild> </ClCompile> <ClCompile Include="..\..\vcruntime\denormal_control.cpp" /> <ClCompile Include="..\..\vcruntime\dll_dllmain.cpp" /> <ClCompile Include="..\..\vcruntime\dll_dllmain_stub.cpp" /> <ClCompile Include="..\..\vcruntime\dyn_tls_init.c" /> <ClCompile Include="..\..\vcruntime\ehvccctr.cpp" /> <ClCompile Include="..\..\vcruntime\ehvcccvb.cpp" /> <ClCompile Include="..\..\vcruntime\ehvecctr.cpp" /> <ClCompile Include="..\..\vcruntime\ehveccvb.cpp" /> <ClCompile Include="..\..\vcruntime\ehvecdtr.cpp" /> <ClCompile Include="..\..\vcruntime\env_mode.cpp" /> <ClCompile Include="..\..\vcruntime\exe_main.cpp"> <RemoveUnreferencedCodeData>false</RemoveUnreferencedCodeData> </ClCompile> <ClCompile Include="..\..\vcruntime\exe_winmain.cpp"> <RemoveUnreferencedCodeData>false</RemoveUnreferencedCodeData> </ClCompile> <ClCompile Include="..\..\vcruntime\exe_wmain.cpp"> <RemoveUnreferencedCodeData>false</RemoveUnreferencedCodeData> </ClCompile> <ClCompile Include="..\..\vcruntime\exe_wwinmain.cpp"> <RemoveUnreferencedCodeData>false</RemoveUnreferencedCodeData> </ClCompile> <ClCompile Include="..\..\vcruntime\file_mode.cpp" /> <ClCompile Include="..\..\vcruntime\fltused.cpp" /> <ClCompile Include="..\..\vcruntime\gs_cookie.c" /> <ClCompile Include="..\..\vcruntime\gs_report.c" /> <ClCompile Include="..\..\vcruntime\gs_support.c" /> <ClCompile Include="..\..\vcruntime\guard_support.c" /> <ClCompile Include="..\..\vcruntime\huge.c" /> <ClCompile Include="..\..\vcruntime\initializers.cpp" /> <ClCompile Include="..\..\vcruntime\invalid_parameter_handler.cpp" /> <ClCompile Include="..\..\vcruntime\loadcfg.c" /> <ClCompile Include="..\..\vcruntime\matherr.cpp" /> <ClCompile Include="..\..\vcruntime\matherr_detection.c" /> <ClCompile Include="..\..\vcruntime\mpxinit.c"> <ExcludedFromBuild Condition="('$(Platform)'!='Win32') And('$(Platform)'!='x64') ">true</ExcludedFromBuild> </ClCompile> <ClCompile Include="..\..\vcruntime\new_array_nothrow.cpp" /> <ClCompile Include="..\..\vcruntime\new_mode.cpp" /> <ClCompile Include="..\..\vcruntime\new_scalar_nothrow.cpp" /> <ClCompile Include="..\..\vcruntime\pesect.c" /> <ClCompile Include="..\..\..\vc_msvcrt.cpp" /> <ClCompile Include="..\..\vcruntime\std_type_info_static.cpp" /> <ClCompile Include="..\..\vcruntime\thread_locale.cpp" /> <ClCompile Include="..\..\vcruntime\thread_safe_statics.cpp"> <RemoveUnreferencedCodeData>false</RemoveUnreferencedCodeData> </ClCompile> <ClCompile Include="..\..\vcruntime\tlsdtor.cpp"> <RemoveUnreferencedCodeData>false</RemoveUnreferencedCodeData> </ClCompile> <ClCompile Include="..\..\vcruntime\tlsdyn.cpp"> <RemoveUnreferencedCodeData>false</RemoveUnreferencedCodeData> </ClCompile> <ClCompile Include="..\..\vcruntime\tlssup.cpp" /> <ClCompile Include="..\..\vcruntime\tncleanup.cpp" /> <ClCompile Include="..\..\vcruntime\ucrt_detection.c" /> <ClCompile Include="..\..\vcruntime\ucrt_stubs.cpp" /> <ClCompile Include="..\..\vcruntime\delete_array_align.cpp"> <AssemblerListingLocation>$(IntDir)objs\</AssemblerListingLocation> <ObjectFileName>$(IntDir)objs\</ObjectFileName> </ClCompile> <ClCompile Include="..\..\vcruntime\delete_array_align_nothrow.cpp"> <AssemblerListingLocation>$(IntDir)objs\</AssemblerListingLocation> <ObjectFileName>$(IntDir)objs\</ObjectFileName> </ClCompile> <ClCompile Include="..\..\vcruntime\delete_array_size_align.cpp"> <AssemblerListingLocation>$(IntDir)objs\</AssemblerListingLocation> <ObjectFileName>$(IntDir)objs\</ObjectFileName> </ClCompile> <ClCompile Include="..\..\vcruntime\delete_scalar_align.cpp"> <AssemblerListingLocation>$(IntDir)objs\</AssemblerListingLocation> <ObjectFileName>$(IntDir)objs\</ObjectFileName> </ClCompile> <ClCompile Include="..\..\vcruntime\delete_scalar_align_nothrow.cpp"> <AssemblerListingLocation>$(IntDir)objs\</AssemblerListingLocation> <ObjectFileName>$(IntDir)objs\</ObjectFileName> </ClCompile> <ClCompile Include="..\..\vcruntime\delete_scalar_size_align.cpp"> <AssemblerListingLocation>$(IntDir)objs\</AssemblerListingLocation> <ObjectFileName>$(IntDir)objs\</ObjectFileName> </ClCompile> <ClCompile Include="..\..\vcruntime\new_array_align.cpp"> <AssemblerListingLocation>$(IntDir)objs\</AssemblerListingLocation> <ObjectFileName>$(IntDir)objs\</ObjectFileName> </ClCompile> <ClCompile Include="..\..\vcruntime\new_array_align_nothrow.cpp"> <AssemblerListingLocation>$(IntDir)objs\</AssemblerListingLocation> <ObjectFileName>$(IntDir)objs\</ObjectFileName> </ClCompile> <ClCompile Include="..\..\vcruntime\new_scalar_align.cpp"> <AssemblerListingLocation>$(IntDir)objs\</AssemblerListingLocation> <ObjectFileName>$(IntDir)objs\</ObjectFileName> </ClCompile> <ClCompile Include="..\..\vcruntime\new_scalar_align_nothrow.cpp"> <AssemblerListingLocation>$(IntDir)objs\</AssemblerListingLocation> <ObjectFileName>$(IntDir)objs\</ObjectFileName> </ClCompile> <ClCompile Include="..\..\vcruntime\std_nothrow.cpp"> <AssemblerListingLocation>$(IntDir)objs\</AssemblerListingLocation> <ObjectFileName>$(IntDir)objs\</ObjectFileName> </ClCompile> <ClCompile Include="..\..\vcruntime\throw_bad_alloc.cpp"> <AssemblerListingLocation>$(IntDir)objs\</AssemblerListingLocation> <ObjectFileName>$(IntDir)objs\</ObjectFileName> </ClCompile> <ClCompile Include="..\..\vcruntime\utility.cpp" /> <ClCompile Include="..\..\vcruntime\utility_desktop.cpp"> <AssemblerListingLocation>$(IntDir)objs\</AssemblerListingLocation> <ObjectFileName>$(IntDir)objs\</ObjectFileName> </ClCompile> <ClCompile Include="..\..\vcruntime\vcruntime_stubs.cpp" /> <ClCompile Include="..\..\x64\gshandlereh.c"> <ExcludedFromBuild Condition="'$(Platform)'!='x64'">true</ExcludedFromBuild> </ClCompile> </ItemGroup> <ItemGroup> <ResourceCompile Include="ltlbuild.rc"> <ExcludedFromBuild Condition="'$(Configuration)'!='Redist'">true</ExcludedFromBuild> </ResourceCompile> </ItemGroup> <ItemGroup> <MASM Include="..\..\..\amd64\exception.asm"> <ExcludedFromBuild Condition="'$(Platform)'!='x64'">true</ExcludedFromBuild> </MASM> <CustomBuild Include="..\..\..\arm64\exception.asm"> <FileType>Document</FileType> <Command>armasm64 -o "$(IntDir)%(fileName).asm.obj" "%(FullPath)"</Command> <Outputs>$(IntDir)%(fileName).asm.obj</Outputs> <ExcludedFromBuild Condition="'$(Platform)'!='ARM64'">true</ExcludedFromBuild> </CustomBuild> <CustomBuild Include="..\..\..\arm\exception.asm"> <FileType>Document</FileType> <Command>armasm -o "$(IntDir)%(fileName).asm.obj" "%(FullPath)"</Command> <Outputs>$(IntDir)%(fileName).asm.obj</Outputs> <ExcludedFromBuild Condition="'$(Platform)'!='ARM'">true</ExcludedFromBuild> </CustomBuild> <MASM Include="..\..\..\i386\exception.asm"> <ExcludedFromBuild Condition="'$(Platform)'!='Win32'">true</ExcludedFromBuild> </MASM> <MASM Include="..\..\i386\dllsupp.asm"> <ExcludedFromBuild Condition="'$(Platform)'!='Win32'">true</ExcludedFromBuild> </MASM> <MASM Include="..\..\i386\ehprolog.asm"> <ExcludedFromBuild Condition="'$(Platform)'!='Win32'">true</ExcludedFromBuild> </MASM> </ItemGroup> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> <ImportGroup Label="ExtensionTargets"> <Import Project="$(VCTargetsPath)\BuildCustomizations\masm.targets" /> </ImportGroup> </Project> ```
/content/code_sandbox/src/14.12.25827/Build/ltlbuild/ltlbuild.vcxproj
xml
2016-06-14T03:01:16
2024-08-12T19:23:19
VC-LTL
Chuyu-Team/VC-LTL
1,052
12,099
```xml // types/node-plugin/index.d.ts /// <reference types="node" /> export function foo(p: NodeJS.Process): string; ```
/content/code_sandbox/examples/declaration-files/29-triple-slash-directives-global/types/node-plugin/index.d.ts
xml
2016-05-11T03:02:41
2024-08-16T12:59:57
typescript-tutorial
xcatliu/typescript-tutorial
10,361
28
```xml // See LICENSE.txt for license information. import type ClientBase from './base'; export interface ClientPreferencesMix { savePreferences: (userId: string, preferences: PreferenceType[]) => Promise<any>; deletePreferences: (userId: string, preferences: PreferenceType[]) => Promise<any>; getMyPreferences: () => Promise<PreferenceType[]>; } const ClientPreferences = <TBase extends Constructor<ClientBase>>(superclass: TBase) => class extends superclass { savePreferences = async (userId: string, preferences: PreferenceType[]) => { return this.doFetch( `${this.getPreferencesRoute(userId)}`, {method: 'put', body: preferences}, ); }; getMyPreferences = async () => { return this.doFetch( `${this.getPreferencesRoute('me')}`, {method: 'get'}, ); }; deletePreferences = async (userId: string, preferences: PreferenceType[]) => { return this.doFetch( `${this.getPreferencesRoute(userId)}/delete`, {method: 'post', body: preferences}, ); }; }; export default ClientPreferences; ```
/content/code_sandbox/app/client/rest/preferences.ts
xml
2016-10-07T16:52:32
2024-08-16T12:08:38
mattermost-mobile
mattermost/mattermost-mobile
2,155
234
```xml import * as React from 'react'; import Types from './Types'; import States from './States'; import Slots from './Slots'; import Usage from './Usage'; import Visual from './Visual'; const SplitButtonExamples = () => ( <> <Types /> <States /> <Slots /> <Usage /> <Visual /> </> ); export default SplitButtonExamples; ```
/content/code_sandbox/packages/fluentui/docs/src/examples/components/SplitButton/index.tsx
xml
2016-06-06T15:03:44
2024-08-16T18:49:29
fluentui
microsoft/fluentui
18,221
78
```xml <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="path_to_url" android:shape="rectangle"> <solid android:color="@color/red_btn" /> <corners android:radius="5dp" /> <padding android:bottom="2dp" android:left="4dp" android:right="4dp" android:top="2dp" /> </shape> ```
/content/code_sandbox/app/src/main/res/drawable-xxhdpi/shape_cycle_rectangle.xml
xml
2016-10-19T04:06:54
2024-08-12T03:29:20
SuperTextView
lygttpod/SuperTextView
3,768
94
```xml <?xml version="1.0" encoding="UTF-8"?> <!-- contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. path_to_url Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. --> <!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN" "path_to_url"> <!--Refer path_to_url#s2.2-file-encoding --> <module name="Checker"> <property name="localeLanguage" value="en"/> <!--To configure the check to report on the first instance in each file--> <module name="FileTabCharacter"/> <!-- header --> <module name="RegexpHeader"> <property name="fileExtensions" value="java"/> </module> <module name="RegexpHeader"> <property name="fileExtensions" value="properties"/> </module> <module name="RegexpSingleline"> <property name="format" value="System\.out\.println"/> <property name="message" value="Prohibit invoking System.out.println in source code !"/> </module> <module name="RegexpSingleline"> <property name="format" value="//FIXME"/> <property name="message" value="Recommended fix FIXME task !"/> </module> <module name="RegexpSingleline"> <property name="format" value="//TODO"/> <property name="message" value="Recommended fix TODO task !"/> </module> <module name="RegexpSingleline"> <property name="format" value="@alibaba"/> <property name="message" value="Recommended remove @alibaba keyword!"/> </module> <module name="RegexpSingleline"> <property name="format" value="@taobao"/> <property name="message" value="Recommended remove @taobao keyword!"/> </module> <module name="RegexpSingleline"> <property name="format" value="@author"/> <property name="message" value="Recommended remove @author tag in javadoc!"/> </module> <module name="RegexpSingleline"> <property name="format" value=".*[\u3400-\u4DB5\u4E00-\u9FA5\u9FA6-\u9FBB\uF900-\uFA2D\uFA30-\uFA6A\uFA70-\uFAD9\uFF00-\uFFEF\u2E80-\u2EFF\u3000-\u303F\u31C0-\u31EF]+.*"/> <property name="message" value="Not allow chinese character !"/> </module> <module name="FileLength"> <property name="max" value="3000"/> </module> <module name="TreeWalker"> <module name="UnusedImports"> <property name="processJavadoc" value="true"/> </module> <module name="RedundantImport"/> <!--<module name="IllegalImport" />--> <!--Checks that classes that override equals() also override hashCode()--> <module name="EqualsHashCode"/> <!--Checks for over-complicated boolean expressions. Currently finds code like if (topic == true), topic || true, !false, etc.--> <module name="SimplifyBooleanExpression"/> <module name="OneStatementPerLine"/> <module name="UnnecessaryParentheses"/> <!--Checks for over-complicated boolean return statements. For example the following code--> <module name="SimplifyBooleanReturn"/> <!--Check that the default is after all the cases in producerGroup switch statement--> <module name="DefaultComesLast"/> <!--Detects empty statements (standalone ";" semicolon)--> <module name="EmptyStatement"/> <!--Checks that long constants are defined with an upper ell--> <module name="UpperEll"/> <module name="ConstantName"> <property name="format" value="(^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$)|(^log$)"/> </module> <!--Checks that local, non-final variable names conform to producerGroup format specified by the format property--> <module name="LocalVariableName"/> <!--Validates identifiers for local, final variables, including catch parameters--> <module name="LocalFinalVariableName"/> <!--Validates identifiers for non-static fields--> <module name="MemberName"/> <!--Validates identifiers for class type parameters--> <module name="ClassTypeParameterName"> <property name="format" value="^[A-Z0-9]*$"/> </module> <!--Validates identifiers for method type parameters--> <module name="MethodTypeParameterName"> <property name="format" value="^[A-Z0-9]*$"/> </module> <module name="PackageName"/> <module name="ParameterName"/> <module name="StaticVariableName"/> <module name="TypeName"/> <!--Checks that there are no import statements that use the * notation--> <module name="AvoidStarImport"/> <!--whitespace--> <module name="GenericWhitespace"/> <!--<module name="NoWhitespaceBefore"/>--> <!--<module name="NoWhitespaceAfter"/>--> <module name="WhitespaceAround"> <property name="allowEmptyConstructors" value="true"/> <property name="allowEmptyMethods" value="true"/> </module> <module name="Indentation"/> <module name="MethodParamPad"/> <module name="ParenPad"/> <module name="TypecastParenPad"/> </module> </module> ```
/content/code_sandbox/style/rmq_checkstyle.xml
xml
2016-06-15T08:56:27
2024-07-22T17:20:00
RocketMQC
ProgrammerAnthony/RocketMQC
1,072
1,226
```xml <shape xmlns:android="path_to_url"> <solid android:color="@color/white_050_grey_050" /> <corners android:topLeftRadius="12dp" android:topRightRadius="12dp" /> </shape> ```
/content/code_sandbox/app/src/main/res/drawable/shape_location_chat_transparent.xml
xml
2016-05-04T11:46:20
2024-08-15T16:29:10
android
meganz/android
1,537
58
```xml /** * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import { ConfigAPI, NodePath, types } from '@babel/core'; export default function minifyPlatformSelectPlugin({ types: t, }: ConfigAPI & { types: typeof types }): babel.PluginObj { return { visitor: { CallExpression(path, state) { const node = path.node; const arg = node.arguments[0]; const opts = state.opts as { platform: string }; if (isPlatformSelect(path) && types.isObjectExpression(arg)) { if (hasStaticProperties(arg)) { let fallback: any; if (opts.platform === 'web') { fallback = () => findProperty(arg, 'default', () => t.identifier('undefined')); } else { fallback = () => findProperty(arg, 'native', () => findProperty(arg, 'default', () => t.identifier('undefined')) ); } path.replaceWith(findProperty(arg, opts.platform, fallback)); } } }, }, }; } function isPlatformSelect(path: NodePath<types.CallExpression>): boolean { return ( types.isMemberExpression(path.node.callee) && types.isIdentifier(path.node.callee.object) && types.isIdentifier(path.node.callee.property) && path.node.callee.object.name === 'Platform' && path.node.callee.property.name === 'select' && types.isObjectExpression(path.node.arguments[0]) ); } function findProperty(objectExpression: types.ObjectExpression, key: string, fallback: () => any) { let value = null; for (const p of objectExpression.properties) { if (!types.isObjectProperty(p) && !types.isObjectMethod(p)) { continue; } if ( (types.isIdentifier(p.key) && p.key.name === key) || (types.isStringLiteral(p.key) && p.key.value === key) ) { if (types.isObjectProperty(p)) { value = p.value; break; } else if (types.isObjectMethod(p)) { value = types.toExpression(p); break; } } } return value ?? fallback(); } function hasStaticProperties(objectExpression: types.ObjectExpression) { return objectExpression.properties.every((p) => { if (('computed' in p && p.computed) || types.isSpreadElement(p)) { return false; } if (types.isObjectMethod(p) && p.kind !== 'method') { return false; } return types.isIdentifier(p.key) || types.isStringLiteral(p.key); }); } ```
/content/code_sandbox/packages/babel-preset-expo/src/minify-platform-select-plugin.ts
xml
2016-08-15T17:14:25
2024-08-16T19:54:44
expo
expo/expo
32,004
572
```xml export const appScheme = process.mas === true || process.windowsStore === true ? "jp.codingcafe.signal" : "jp.codingcafe.signal.dev" export const authCallbackUrl = `${appScheme}://auth-callback` ```
/content/code_sandbox/electron/src/scheme.ts
xml
2016-03-06T15:19:53
2024-08-15T14:27:10
signal
ryohey/signal
1,238
54
```xml <UserControl xmlns="path_to_url" xmlns:x="path_to_url" xmlns:mc="path_to_url" xmlns:d="path_to_url" xmlns:local="clr-namespace:Hawk.ETL.Controls.Properties" xmlns:Hawk_Core_Utils="clr-namespace:Hawk.Core.Utils;assembly=Hawk.Core" x:Class="Hawk.ETL.Controls.AnalyzerUI" mc:Ignorable="d" d:DesignHeight="370.4" d:DesignWidth="461.6"> <UserControl.Resources> <BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/> <Hawk_Core_Utils:GroupConverter x:Key="GroupConverter"/> <Hawk_Core_Utils:IndexConverter x:Key="idxcvt"/> <DataTemplate x:Key="NameTemplate"> <Grid Height="Auto" Width="Auto"> <Border BorderBrush="Red" BorderThickness="2" Visibility="{Binding MightError, Converter={StaticResource BooleanToVisibilityConverter}}" Margin="0"/> <TextBlock Text="{Binding Process.TypeName}" d:LayoutOverrides="Width, Height" /> </Grid> </DataTemplate> </UserControl.Resources> <Grid Background="{DynamicResource NormalBorderBrush}"> <ListView ToolTip="{DynamicResource debug_desc}" SelectionMode="Single" DataContext="{Binding}" ItemsSource="{Binding Items}" Margin="8,10,8,40" > <ListView.View> <GridView> <GridViewColumn Header="{DynamicResource key_568}"> <GridViewColumn.CellTemplate> <DataTemplate> <CheckBox IsChecked="{Binding Process.Enabled}" HorizontalAlignment="Center" /> </DataTemplate> </GridViewColumn.CellTemplate> </GridViewColumn> <GridViewColumn Header="{DynamicResource key_745}" DisplayMemberBinding="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ListViewItem}}, Converter={StaticResource idxcvt}}" /> <GridViewColumn Header="{DynamicResource key_12}" DisplayMemberBinding="{Binding Process.Attribute,Converter={StaticResource GroupConverter}}" /> <GridViewColumn Header="{DynamicResource key_18}" CellTemplate="{StaticResource NameTemplate}" > </GridViewColumn> <GridViewColumn Header="{DynamicResource key_717}" DisplayMemberBinding="{Binding Process.Column}" Width="60"/> <GridViewColumn Header="{DynamicResource key_433}" DisplayMemberBinding="{Binding Process.NewColumn}" /> <GridViewColumn Header="{DynamicResource key_718}" DisplayMemberBinding="{Binding HasInit}" /> <GridViewColumn Header="{DynamicResource key_719}" DisplayMemberBinding="{Binding Input}" /> <GridViewColumn Header="{DynamicResource key_720}" DisplayMemberBinding="{Binding Output}" /> <GridViewColumn Header="{DynamicResource key_721}" DisplayMemberBinding="{Binding Error}" /> <GridViewColumn Header="{DynamicResource key_722}" DisplayMemberBinding="{Binding EmptyInput}" /> <GridViewColumn Header="{DynamicResource average_time}" DisplayMemberBinding="{Binding RunningTime}" /> <GridViewColumn Header="{DynamicResource key_16}" DisplayMemberBinding="{Binding Process.KeyConfig}" /> </GridView> </ListView.View> </ListView> </Grid> </UserControl> ```
/content/code_sandbox/Hawk.ETL.Controls/AnalyzerUI.xaml
xml
2016-04-02T07:54:41
2024-08-13T22:54:43
Hawk
ferventdesert/Hawk
3,150
740
```xml import type { Key } from 'react'; import { Fragment, useEffect, useRef, useState } from 'react'; import useInstance from '@proton/hooks/useInstance'; import clsx from '@proton/utils/clsx'; import noop from '@proton/utils/noop'; import Notification from './Notification'; import type { NotificationOffset, Notification as NotificationType } from './interfaces'; const notificationGap = 4; const getRects = (notifications: Map<Key, HTMLDivElement>) => { const map = new Map<Key, DOMRect>(); for (const [key, el] of notifications.entries()) { if (!el) { continue; } map.set(key, el.getBoundingClientRect()); } return map; }; type Position = number; const getPositions = (notifications: NotificationType[], rects: ReturnType<typeof getRects>) => { let top = 0; const map = new Map<Key, Position>(); notifications.forEach((notification) => { map.set(notification.key, top); const height = rects.get(notification.key)?.height; if (height === undefined) { return; } top += height + notificationGap; }); return map; }; interface Props { notifications: NotificationType[]; removeNotification: (id: number) => void; hideNotification: (id: number) => void; removeDuplicate: (id: number) => void; offset?: NotificationOffset; } const NotificationsContainer = ({ notifications, removeNotification, hideNotification, removeDuplicate, offset, }: Props) => { const containerRef = useRef<HTMLDivElement>(null); const notificationRefs = useInstance(() => { return new Map<Key, HTMLDivElement>(); }); const [rects, setRects] = useState(() => { return new Map<Key, DOMRect>(); }); const resizeObserverRef = useRef<ResizeObserver | null>(null); const callbackRefs = useInstance(() => { return new Map<Key, (el: HTMLDivElement | null) => void>(); }); useEffect(() => { const observer = new ResizeObserver(() => { setRects(getRects(notificationRefs)); }); resizeObserverRef.current = observer; for (const el of notificationRefs.values()) { observer.observe(el); } return () => { observer.disconnect(); resizeObserverRef.current = null; }; }, [notificationRefs]); useEffect(() => { const notificationIds = new Set(notifications.map((notification) => notification.key)); for (const callbackKey of callbackRefs.keys()) { if (!notificationIds.has(callbackKey)) { callbackRefs.delete(callbackKey); } } }, [notifications, callbackRefs]); const positions = getPositions(notifications, rects); const list = notifications.map(({ id, key, type, text, isClosing, showCloseButton, icon, duplicate }) => { if (!callbackRefs.has(key)) { callbackRefs.set(key, (el: HTMLDivElement | null) => { if (el === null) { const oldEl = notificationRefs.get(key); if (oldEl) { resizeObserverRef.current?.unobserve(oldEl); } notificationRefs.delete(key); } else { resizeObserverRef.current?.observe(el); notificationRefs.set(key, el); } }); } return ( <Fragment key={key}> {duplicate.old && ( <Notification top={positions.get(key)} isClosing={true} isDuplicate={true} icon={duplicate.old.icon} type={duplicate.old.type} onClose={noop} onEnter={noop} onExit={noop} showCloseButton={duplicate.old.showCloseButton} > {text} </Notification> )} <Notification key={duplicate.key} onEnter={() => removeDuplicate(id)} top={positions.get(key)} ref={callbackRefs.get(key)} isClosing={isClosing} icon={icon} type={type} onClose={() => hideNotification(id)} onExit={() => removeNotification(id)} showCloseButton={showCloseButton} > {text} </Notification> </Fragment> ); }); return ( <div ref={containerRef} className={clsx( 'notifications-container flex flex-column items-center no-print', offset?.y || offset?.x || 0 > 0 ? 'notifications-container--shifted' : undefined )} style={{ ...(offset?.y && { '--shift-custom-y': `${offset.y}px` }), ...(offset?.x && { '--shift-custom-x': `${offset.x}px` }), }} > {list} </div> ); }; export default NotificationsContainer; ```
/content/code_sandbox/packages/components/containers/notifications/Container.tsx
xml
2016-06-08T11:16:51
2024-08-16T14:14:27
WebClients
ProtonMail/WebClients
4,300
1,012
```xml /** * `app` -> app dir * `pages` -> pages dir * `root` -> middleware / instrumentation * `assets` -> assets */ export type EntryKeyType = 'app' | 'pages' | 'root' | 'assets' export type EntryKeySide = 'client' | 'server' // custom type to make sure you can't accidentally use a "generic" string export type EntryKey = `{"type":"${EntryKeyType}","side":"${EntryKeyType}","page":"${string}"}` /** * Get a key that's unique across all entrypoints. */ export function getEntryKey( type: EntryKeyType, side: EntryKeySide, page: string ): EntryKey { return JSON.stringify({ type, side, page }) as EntryKey } /** * Split an `EntryKey` up into its components. */ export function splitEntryKey(key: EntryKey): { type: EntryKeyType side: EntryKeySide page: string } { return JSON.parse(key) } ```
/content/code_sandbox/packages/next/src/server/dev/turbopack/entry-key.ts
xml
2016-10-05T23:32:51
2024-08-16T19:44:30
next.js
vercel/next.js
124,056
224
```xml export { createMigrationBuilder, waitForMigrations, CURRENT_VERSION } from "./migrate"; ```
/content/code_sandbox/libs/common/src/state-migrations/index.ts
xml
2016-03-09T23:14:01
2024-08-16T15:07:51
clients
bitwarden/clients
8,877
19
```xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "path_to_url"> <plist version="1.0"> <dict> <key>BuildMachineOSBuild</key> <string>12F45</string> <key>CFBundleDevelopmentRegion</key> <string>English</string> <key>CFBundleExecutable</key> <string>RealtekRTL8100</string> <key>CFBundleIdentifier</key> <string>com.insanelymac.RealtekRTL8100</string> <key>CFBundleInfoDictionaryVersion</key> <string>6.0</string> <key>CFBundleName</key> <string>RealtekRTL8100</string> <key>CFBundlePackageType</key> <string>KEXT</string> <key>CFBundleShortVersionString</key> <string>1.0.0</string> <key>CFBundleSignature</key> <string>????</string> <key>CFBundleVersion</key> <string>1.0.0</string> <key>DTCompiler</key> <string>com.apple.compilers.llvm.clang.1_0</string> <key>DTPlatformBuild</key> <string>4H1503</string> <key>DTPlatformVersion</key> <string>GM</string> <key>DTSDKBuild</key> <string>12D75</string> <key>DTSDKName</key> <string>macosx10.8</string> <key>DTXcode</key> <string>0463</string> <key>DTXcodeBuild</key> <string>4H1503</string> <key>IOKitPersonalities</key> <dict> <key>RTL8100 PCIe Adapter</key> <dict> <key>CFBundleIdentifier</key> <string>com.insanelymac.RealtekRTL8100</string> <key>IOClass</key> <string>RTL8100</string> <key>IOPCIMatch</key> <string>0x813610ec</string> <key>IOProbeScore</key> <integer>1000</integer> <key>IOProviderClass</key> <string>IOPCIDevice</string> <key>Model</key> <string>RTL8111</string> <key>Vendor</key> <string>Realtek</string> <key>enableCSO6</key> <true/> <key>enableEEE</key> <true/> <key>enableTSO4</key> <true/> <key>intrMitigate</key> <integer>0</integer> </dict> </dict> <key>OSBundleLibraries</key> <dict> <key>com.apple.iokit.IONetworkingFamily</key> <string>1.5.0</string> <key>com.apple.iokit.IOPCIFamily</key> <string>1.7</string> <key>com.apple.kpi.bsd</key> <string>8.10.0</string> <key>com.apple.kpi.iokit</key> <string>8.10.0</string> <key>com.apple.kpi.libkern</key> <string>8.10.0</string> <key>com.apple.kpi.mach</key> <string>8.10.0</string> </dict> <key>OSBundleRequired</key> <string>Network-Root</string> </dict> </plist> ```
/content/code_sandbox/Clover-Configs/XiaoMi/13.3-without-fingerprint/CLOVER/kexts/Other/RealtekRTL8100.kext/Contents/Info.plist
xml
2016-11-05T04:22:54
2024-08-12T19:25:53
Hackintosh-Installer-University
huangyz0918/Hackintosh-Installer-University
3,937
865
```xml import { StateDB } from '@jupyterlab/statedb'; import { PromiseDelegate, ReadonlyJSONObject } from '@lumino/coreutils'; describe('StateDB', () => { describe('#constructor()', () => { it('should create a state database', () => { const db = new StateDB(); expect(db).toBeInstanceOf(StateDB); }); it('should allow an overwrite data transformation', async () => { const connector = new StateDB.Connector(); const key = 'foo'; const correct = 'bar'; const incorrect = 'baz'; expect(await connector.fetch(key)).toBeUndefined(); await connector.save(key, `{ "v": "${incorrect}"}`); expect(JSON.parse(await connector.fetch(key)).v).toBe(incorrect); const transform = new PromiseDelegate<StateDB.DataTransform>(); const db = new StateDB({ connector, transform: transform.promise }); const transformation: StateDB.DataTransform = { type: 'overwrite', contents: { [key]: correct } }; transform.resolve(transformation); await transform.promise; expect(await db.fetch(key)).toBe(correct); expect(JSON.parse(await connector.fetch(key)).v).toBe(correct); }); it('should allow a merge data transformation', async () => { const connector = new StateDB.Connector(); const k1 = 'foo'; const v1 = 'bar'; const k2 = 'baz'; const v2 = 'qux'; expect(await connector.fetch(k1)).toBeUndefined(); expect(await connector.fetch(k2)).toBeUndefined(); await connector.save(k1, `{ "v": "${v1}"}`); expect(JSON.parse(await connector.fetch(k1)).v).toBe(v1); const transform = new PromiseDelegate<StateDB.DataTransform>(); const db = new StateDB({ connector, transform: transform.promise }); const transformation: StateDB.DataTransform = { type: 'merge', contents: { [k2]: v2 } }; transform.resolve(transformation); await transform.promise; expect(await db.fetch(k1)).toBe(v1); expect(await db.fetch(k2)).toBe(v2); }); }); describe('#changed', () => { it('should emit changes when the database is updated', async () => { const db = new StateDB(); const changes: StateDB.Change[] = [ { id: 'foo', type: 'save' }, { id: 'foo', type: 'remove' }, { id: 'bar', type: 'save' }, { id: 'bar', type: 'remove' } ]; const recorded: StateDB.Change[] = []; db.changed.connect((_, change) => { recorded.push(change); }); await db.save('foo', 0); await db.remove('foo'); await db.save('bar', 1); await db.remove('bar'); expect(recorded).toEqual(changes); }); }); describe('#clear()', () => { it('should empty the items in a state database', async () => { const connector = new StateDB.Connector(); const db = new StateDB({ connector }); expect((await connector.list()).ids).toHaveLength(0); await db.save('foo', 'bar'); expect((await connector.list()).ids).toHaveLength(1); await db.clear(); expect((await connector.list()).ids).toHaveLength(0); }); }); describe('#fetch()', () => { it('should fetch a stored key', async () => { const db = new StateDB(); const key = 'foo:bar'; const value = { baz: 'qux' }; expect(await db.fetch(key)).toBeUndefined(); await db.save(key, value); expect(await db.fetch(key)).toEqual(value); }); }); describe('#list()', () => { it('should fetch a stored namespace', async () => { const db = new StateDB(); const keys = [ 'foo:bar', 'foo:baz', 'foo:qux', 'abc:def', 'abc:ghi', 'abc:jkl', 'foo-two:bar', 'foo-two:baz', 'foo-two:qux' ]; await Promise.all(keys.map(key => db.save(key, { value: key }))); let fetched = await db.list('foo'); expect(fetched.ids.length).toBe(3); expect(fetched.values.length).toBe(3); let sorted = fetched.ids.sort((a, b) => a.localeCompare(b)); expect(sorted[0]).toBe(keys[0]); expect(sorted[1]).toBe(keys[1]); expect(sorted[2]).toBe(keys[2]); fetched = await db.list('abc'); expect(fetched.ids.length).toBe(3); expect(fetched.values.length).toBe(3); sorted = fetched.ids.sort((a, b) => a.localeCompare(b)); expect(sorted[0]).toBe(keys[3]); expect(sorted[1]).toBe(keys[4]); expect(sorted[2]).toBe(keys[5]); }); }); describe('#remove()', () => { it('should remove a stored key', async () => { const db = new StateDB(); const key = 'foo:bar'; const value = { baz: 'qux' }; expect(await db.fetch(key)).toBeUndefined(); await db.save(key, value); expect(await db.fetch(key)).toEqual(value); await db.remove(key); expect(await db.fetch(key)).toBeUndefined(); }); }); describe('#save()', () => { it('should save a key and a value', async () => { const db = new StateDB(); const key = 'foo:bar'; const value = { baz: 'qux' }; await db.save(key, value); expect(await db.fetch(key)).toEqual(value); }); }); describe('#toJSON()', () => { it('return the full contents of a state database', async () => { const db = new StateDB(); const contents: ReadonlyJSONObject = { abc: 'def', ghi: 'jkl', mno: 1, pqr: { foo: { bar: { baz: 'qux' } } } }; await Promise.all( Object.keys(contents).map(key => db.save(key, contents[key])) ); const serialized = await db.toJSON(); expect(serialized).toEqual(contents); }); }); }); ```
/content/code_sandbox/packages/statedb/test/statedb.spec.ts
xml
2016-06-03T20:09:17
2024-08-16T19:12:44
jupyterlab
jupyterlab/jupyterlab
14,019
1,392
```xml abstract class A { } var AAA: new() => A; AAA = A; AAA = "asdf"; ```
/content/code_sandbox/tests/format/typescript/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractAssignabilityConstructorFunction.ts
xml
2016-11-29T17:13:37
2024-08-16T17:29:57
prettier
prettier/prettier
48,913
23
```xml // // // path_to_url // // Unless required by applicable law or agreed to in writing, software // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. import { Component, OnDestroy, OnInit, ViewChild } from '@angular/core'; import { CreateProjectComponent } from './create-project/create-project.component'; import { ListProjectComponent } from './list-project/list-project.component'; import { ConfigurationService } from '../../../services/config.service'; import { SessionService } from '../../../shared/services/session.service'; import { ProjectService, QuotaHardInterface } from '../../../shared/services'; import { Configuration } from '../config/config'; import { FilterComponent } from '../../../shared/components/filter/filter.component'; import { Subscription } from 'rxjs'; import { debounceTime, distinctUntilChanged, finalize, switchMap, } from 'rxjs/operators'; import { Project } from '../../project/project'; import { MessageHandlerService } from '../../../shared/services/message-handler.service'; import { ProjectTypes } from '../../../shared/entities/shared.const'; import { getSortingString } from '../../../shared/units/utils'; @Component({ selector: 'projects', templateUrl: 'projects.component.html', styleUrls: ['./projects.component.scss'], }) export class ProjectsComponent implements OnInit, OnDestroy { projectTypes = ProjectTypes; quotaObj: QuotaHardInterface; @ViewChild(CreateProjectComponent) creationProject: CreateProjectComponent; @ViewChild(ListProjectComponent) listProject: ListProjectComponent; currentFilteredType: number = 0; // all projects projectName: string = ''; get selecteType(): string { return this.currentFilteredType + ''; } set selecteType(_project: string) { this.currentFilteredType = +_project; if (window.sessionStorage) { window.sessionStorage['projectTypeValue'] = +_project; } } @ViewChild(FilterComponent, { static: true }) filterComponent: FilterComponent; searchSub: Subscription; constructor( public configService: ConfigurationService, private session: SessionService, private proService: ProjectService, private msgHandler: MessageHandlerService ) {} ngOnInit(): void { if ( window.sessionStorage && window.sessionStorage['projectTypeValue'] && window.sessionStorage['fromDetails'] ) { this.currentFilteredType = +window.sessionStorage['projectTypeValue']; window.sessionStorage.removeItem('fromDetails'); } if (this.isSystemAdmin) { this.getConfigration(); } if (!this.searchSub) { this.searchSub = this.filterComponent.filterTerms .pipe( debounceTime(500), distinctUntilChanged(), switchMap(projectName => { // reset project list this.listProject.currentPage = 1; this.listProject.searchKeyword = projectName; this.listProject.selectedRow = []; this.listProject.loading = true; let passInFilteredType: number = undefined; if (this.listProject.filteredType > 0) { passInFilteredType = this.listProject.filteredType - 1; } return this.proService .listProjects( this.listProject.searchKeyword, passInFilteredType, this.listProject.currentPage, this.listProject.pageSize, getSortingString(this.listProject.state) ) .pipe( finalize(() => { this.listProject.loading = false; }) ); }) ) .subscribe( response => { // Get total count if (response.headers) { let xHeader: string = response.headers.get('X-Total-Count'); if (xHeader) { this.listProject.totalCount = parseInt( xHeader, 0 ); } } this.listProject.projects = response.body as Project[]; }, error => { this.msgHandler.handleError(error); } ); } } ngOnDestroy() { if (this.searchSub) { this.searchSub.unsubscribe(); this.searchSub = null; } } getConfigration() { this.configService .getConfiguration() .subscribe((configurations: Configuration) => { this.quotaObj = { storage_per_project: configurations.storage_per_project ? configurations.storage_per_project.value : -1, }; }); } public get isSystemAdmin(): boolean { let account = this.session.getCurrentUser(); return account != null && account.has_admin_role; } openModal(): void { this.creationProject.newProject(); } createProject(created: boolean) { if (created) { this.refresh(); } } doFilterProjects(): void { this.listProject.doFilterProject(+this.selecteType); } refresh(): void { this.currentFilteredType = 0; this.projectName = ''; this.listProject.refresh(); } } ```
/content/code_sandbox/src/portal/src/app/base/left-side-nav/projects/projects.component.ts
xml
2016-01-28T21:10:28
2024-08-16T15:28:34
harbor
goharbor/harbor
23,335
1,030
```xml import Link from '@docusaurus/Link' import { translate } from '@docusaurus/Translate' import useBaseUrl from '@docusaurus/useBaseUrl' import useDocusaurusContext from '@docusaurus/useDocusaurusContext' import Layout from '@theme/Layout' import clsx from 'clsx' import React from 'react' import styles from './styles.module.css' const features = [ { title: 'Easy to Use', description: <>Several Jest presets to let you start quickly with testing.</>, }, { title: 'Full TypeScript features', description: <>Support all available TypeScript features including type checking.</>, }, { title: 'Babel support', description: <>Support working in combination with Babel</>, }, ] // eslint-disable-next-line no-unused-vars function Feature({ imageUrl, title, description }) { const imgUrl = useBaseUrl(imageUrl) return ( <div className={clsx('col', styles.section)}> {imgUrl && ( <div className="text--center"> <img className={styles.featureImage} src={imgUrl} alt={title} /> </div> )} <h3 className={clsx(styles.featureHeading)}>{title}</h3> <p className="padding-horiz--md">{description}</p> </div> ) } function Home() { const context = useDocusaurusContext() const { siteConfig: { tagline } = {} } = context return ( <Layout title={tagline} description={tagline}> <header> <div className={styles.hero}> <div className={styles.heroInner}> <h1 className={styles.heroProjectTagline}> <img alt={translate({ message: 'Docusaurus with Keytar' })} className={styles.heroLogo} src={useBaseUrl('/img/logo.svg')} /> <span className={styles.heroTitleTextHtml}> Delightful testing with <b>Jest</b> and <b>TypeScript</b> </span> </h1> <div className={styles.indexCtas}> <Link className={clsx('button button--primary button--lg')} to={useBaseUrl('docs/')}> Get Started </Link> <span className={styles.indexCtasGitHubButtonWrapper}> <iframe className={styles.indexCtasGitHubButton} src="path_to_url" width={160} height={30} title="GitHub Stars" /> </span> </div> </div> </div> <div className={clsx(styles.announcement, styles.announcementDark)}> <div className={styles.announcementInner}> Coming from v23.10? Check out our <Link to="/docs/migration">v23.10 to latest version migration guide</Link> . </div> </div> </header> <main> {features && features.length > 0 && ( <section className={styles.section}> <div className="container text--center"> <div className="row"> {features.map((props, idx) => ( <Feature imageUrl={''} key={idx} {...props} /> ))} </div> </div> </section> )} </main> </Layout> ) } export default Home ```
/content/code_sandbox/website/src/pages/index.tsx
xml
2016-08-30T13:47:17
2024-08-16T15:05:40
ts-jest
kulshekhar/ts-jest
6,902
726
```xml import { act, renderHook } from '@testing-library/react'; import { useMediaQuery } from './styling'; const BELOW_MIN_WIDTH = 599; const MIN_WITDH = 600; describe('useMediaQuery', () => { it('renders', () => { window.resizeTo(BELOW_MIN_WIDTH, 0); const { result } = renderHook(() => useMediaQuery(`(min-width: ${MIN_WITDH}px)`)); expect(result.current).to.be.false; act(() => window.resizeTo(MIN_WITDH, 0)); expect(result.current).to.be.true; }); }); ```
/content/code_sandbox/web/src/utils/styling.test.ts
xml
2016-05-21T16:36:17
2024-08-16T17:56:07
electricitymaps-contrib
electricitymaps/electricitymaps-contrib
3,437
135
```xml <Project xmlns="path_to_url"> <PropertyGroup> <OutDirName>Tests\$(MSBuildProjectName)</OutDirName> </PropertyGroup> <Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" /> <PropertyGroup> <TargetFramework>$(ToolsetTargetFramework)</TargetFramework> <OutputType>Exe</OutputType> <StrongNameKeyId>MicrosoftAspNetCore</StrongNameKeyId> </PropertyGroup> <ItemGroup> <ProjectReference Include="..\..\src\Cli\Microsoft.DotNet.Cli.Sln.Internal\Microsoft.DotNet.Cli.Sln.Internal.csproj" /> <ProjectReference Include="..\Microsoft.NET.TestFramework\Microsoft.NET.TestFramework.csproj" /> </ItemGroup> <Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" /> </Project> ```
/content/code_sandbox/test/Microsoft.DotNet.Cli.Sln.Internal.Tests/Microsoft.DotNet.Cli.Sln.Internal.Tests.csproj
xml
2016-07-22T21:26:02
2024-08-16T17:23:58
sdk
dotnet/sdk
2,627
183
```xml import React, { useMemo, useState } from 'react'; import { ICollateralProperty, ICollateralTypeConfig, ICollateralTypeDocument } from '../types'; import Form from '@erxes/ui/src/components/form/Form'; import { FormColumn, ModalFooter, ScrollWrapper } from '@erxes/ui/src/styles/main'; import FormControl from '@erxes/ui/src/components/form/Control'; import FormGroup from '@erxes/ui/src/components/form/Group'; import ControlLabel from '@erxes/ui/src/components/form/Label'; import Button from '@erxes/ui/src/components/Button'; import { IFormProps } from '@erxes/ui/src/types'; import { __ } from '@erxes/ui/src/utils/core'; import { TabTitle, Tabs } from '@erxes/ui/src/components/tabs'; import { CenterContent } from '@erxes/ui/src'; interface IProps { data?: ICollateralTypeDocument; renderButton: any; closeModal: any; } function CollateralTypeForm({ data, renderButton, closeModal }: IProps) { const [collateralType, setCollateralType] = useState< ICollateralTypeDocument | undefined >(data); const [collateralTypeConfig, setCollateralTypeConfig] = useState< ICollateralTypeConfig | undefined >(data?.config); const [collateralTypeProperty, setCollateralTypeProperty] = useState< ICollateralProperty | undefined >(data?.property); const [tabName, setTabName] = useState<'main' | 'config' | 'property'>( 'main' ); function renderFormGroup( formProps: IFormProps, { label, componentProps, value, ...props }: { label: string; name: string; componentclass: string; onChange: any; componentProps?: any; value: any; } ) { if (props.componentclass === 'checkbox') return ( <FormGroup> <FormControl {...formProps} {...props} {...componentProps} checked={value?.[props.name]} /> <ControlLabel>{label}</ControlLabel> </FormGroup> ); return ( <FormGroup> <ControlLabel>{label}</ControlLabel> <FormControl {...formProps} {...props} {...componentProps} value={value?.[props.name]} /> </FormGroup> ); } const renderMainForm = (formProps: IFormProps) => { const onChange = (e: React.ChangeEvent<HTMLInputElement>) => { setCollateralType((v: any) => ({ ...(v ?? {}), [e.target.name]: e.target.value })); }; const renderForm = (props) => { return renderFormGroup(formProps, { ...props, onChange, value: collateralType }); }; return ( <ScrollWrapper> <FormColumn> {renderForm({ label: 'Code', name: 'code', componentclass: 'input' })} {renderForm({ label: 'Name', name: 'name', componentclass: 'input' })} {renderForm({ label: 'Description', name: 'description', componentclass: 'textarea' })} {renderForm({ label: 'Type', name: 'type', componentclass: 'select', componentProps: { options: ['car', 'realState', 'savings', 'other'].map((v) => ({ value: v, label: v })) } })} {renderForm({ label: 'Status', name: 'status', componentclass: 'input' })} {renderForm({ label: 'Currency', name: 'currency', componentclass: 'input' })} </FormColumn> </ScrollWrapper> ); }; const renderConfigForm = (formProps: IFormProps) => { const onChange = (e: React.ChangeEvent<HTMLInputElement>) => { setCollateralTypeConfig((v: any) => ({ ...(v ?? {}), [e.target.name]: e.target.value })); }; const renderForm = (props) => { return renderFormGroup(formProps, { ...props, onChange, value: collateralTypeConfig }); }; return ( <ScrollWrapper> <FormColumn> {renderForm({ label: 'minPercent', name: 'minPercent', type: 'number', max: 100, useNumberFormat: true })} {renderForm({ label: 'maxPercent', name: 'maxPercent', type: 'number', max: 100, useNumberFormat: true })} {renderForm({ label: 'defaultPercent', name: 'defaultPercent', type: 'number', max: 100, useNumberFormat: true })} {renderForm({ label: 'riskClosePercent', name: 'riskClosePercent', type: 'number', max: 100, useNumberFormat: true })} {renderForm({ label: 'collateralType', name: 'collateralType', componentclass: 'input' })} </FormColumn> </ScrollWrapper> ); }; const renderPropertyForm = (formProps: IFormProps) => { const onChange = (e: React.ChangeEvent<HTMLInputElement>) => { setCollateralTypeProperty((v: any) => ({ ...(v ?? {}), [e.target.name]: e.target.checked })); }; const renderForm = (props) => { return renderFormGroup(formProps, { ...props, onChange, componentclass: 'checkbox', value: collateralTypeProperty }); }; return ( <ScrollWrapper> <FormColumn> {renderForm({ label: 'sizeSquare', name: 'sizeSquare' })} {renderForm({ label: 'sizeSquareUnit', name: 'sizeSquareUnit' })} {renderForm({ label: 'cntRoom', name: 'cntRoom' })} {renderForm({ label: 'startDate', name: 'startDate' })} {renderForm({ label: 'endDate', name: 'endDate' })} {renderForm({ label: 'purpose', name: 'purpose' })} {renderForm({ label: 'mark', name: 'mark' })} {renderForm({ label: 'color', name: 'color' })} {renderForm({ label: 'power', name: 'power' })} {renderForm({ label: 'frameNumber', name: 'frameNumber' })} {renderForm({ label: 'importedDate', name: 'importedDate' })} {renderForm({ label: 'factoryDate', name: 'factoryDate' })} {renderForm({ label: 'courtOrderDate', name: 'courtOrderDate' })} </FormColumn> </ScrollWrapper> ); }; const saveData = useMemo(() => { const mainData = collateralType || { _id: undefined }; return { id: mainData?._id, ...mainData, config: collateralTypeConfig, property: collateralTypeProperty }; }, [collateralType, collateralTypeConfig, collateralTypeProperty]); const renderContent = (formProps: IFormProps) => { const { isSubmitted } = formProps; const renderForm = () => { if (tabName == 'main') { return renderMainForm(formProps); } else if (tabName == 'config') { return renderConfigForm(formProps); } else if (tabName == 'property') { return renderPropertyForm(formProps); } }; return ( <> {renderForm()} <ModalFooter> <Button btnStyle="simple" onClick={closeModal} icon="cancel-1"> {__('Close')} </Button> {renderButton({ name: 'contract', values: saveData, isSubmitted, object: data })} </ModalFooter> </> ); }; return ( <> <CenterContent> <Tabs full> <TabTitle className={tabName === 'main' ? 'active' : ''} onClick={() => setTabName('main')} > {__('Main')} </TabTitle> <TabTitle className={tabName === 'config' ? 'active' : ''} onClick={() => setTabName('config')} > {__('Settings')} </TabTitle> {/* <TabTitle className={tabName === 'property' ? 'active' : ''} onClick={() => setTabName('property')} > {__('Property')} </TabTitle> */} </Tabs> </CenterContent> <div style={{ padding: 5 }}></div> <Form renderContent={renderContent} /> </> ); } export default CollateralTypeForm; ```
/content/code_sandbox/packages/plugin-loans-ui/src/collaterals/components/CollateralTypeForm.tsx
xml
2016-11-11T06:54:50
2024-08-16T10:26:06
erxes
erxes/erxes
3,479
1,996
```xml <?xml version="1.0" encoding="UTF-8"?> <!-- This program is free software; you can redistribute it and/or modify This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --> <project xmlns="path_to_url"> <type>org.netbeans.modules.java.j2seproject</type> <configuration> <data xmlns="path_to_url"> <name>tws</name> <source-roots> <root id="src.dir"/> </source-roots> <test-roots> <root id="test.src.dir"/> </test-roots> </data> </configuration> </project> ```
/content/code_sandbox/storage/ndb/test/crund/tws/tws_java/nbproject/project.xml
xml
2016-07-27T08:05:00
2024-08-13T18:56:19
AliSQL
alibaba/AliSQL
4,695
209
```xml import { exec } from 'child_process'; import debug from 'debug'; const d = debug('electron-forge:init:git'); export const initGit = async (dir: string): Promise<void> => { await new Promise<void>((resolve, reject) => { exec( 'git rev-parse --show-toplevel', { cwd: dir, }, (err) => { if (err) { // not run within a Git repository d('executing "git init" in directory:', dir); exec('git init', { cwd: dir }, (initErr) => (initErr ? reject(initErr) : resolve())); } else { d('.git directory already exists, skipping git initialization'); resolve(); } } ); }); }; ```
/content/code_sandbox/packages/api/core/src/api/init-scripts/init-git.ts
xml
2016-10-05T14:51:53
2024-08-15T20:08:12
forge
electron/forge
6,380
168
```xml import { ProtocolVersion } from '../../../Local/Protocol/ProtocolVersion' import { EncryptedPayloadInterface } from '../../Payload/Interfaces/EncryptedPayload' import { ItemInterface } from './ItemInterface' export interface EncryptedItemInterface extends ItemInterface<EncryptedPayloadInterface> { content: string version: ProtocolVersion errorDecrypting: boolean waitingForKey?: boolean auth_hash?: string } ```
/content/code_sandbox/packages/models/src/Domain/Abstract/Item/Interfaces/EncryptedItem.ts
xml
2016-12-05T23:31:33
2024-08-16T06:51:19
app
standardnotes/app
5,180
89
```xml <!-- path_to_url Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. --> <resources> <string name="app_name">Github Query</string> <string name="search">Search</string> <!--COMPLETED (1) Add a string stating that an error has occurred--> <string name="error_message"> Failed to get results. Please try again. </string> </resources> ```
/content/code_sandbox/Lesson02-GitHub-Repo-Search/T02.06-Solution-AddPolish/app/src/main/res/values/strings.xml
xml
2016-11-02T04:41:25
2024-08-12T19:38:05
ud851-Exercises
udacity/ud851-Exercises
2,039
106
```xml import { Component } from '@angular/core'; import { Code } from '@domain/code'; @Component({ selector: 'icon-doc', template: ` <app-docsectiontext> <p>A font icon next to the value can be displayed with the <i>icon</i> property.</p> </app-docsectiontext> <div class="card flex justify-content-center gap-2"> <p-tag icon="pi pi-user" value="Primary" /> <p-tag icon="pi pi-check" severity="success" value="Success" /> <p-tag icon="pi pi-info-circle" severity="info" value="Info" /> <p-tag icon="pi pi-exclamation-triangle" severity="warning" value="Warning" /> <p-tag icon="pi pi-times" severity="danger" value="Danger" /> </div> <app-code [code]="code" selector="tag-icon-demo"></app-code> ` }) export class IconDoc { code: Code = { basic: `<p-tag icon="pi pi-user" value="Primary" />`, html: ` <div class="card flex justify-content-center gap-2"> <p-tag icon="pi pi-user" value="Primary" /> <p-tag icon="pi pi-check" severity="success" value="Success" /> <p-tag icon="pi pi-info-circle" severity="info" value="Info" /> <p-tag icon="pi pi-exclamation-triangle" severity="warning" value="Warning" /> <p-tag icon="pi pi-times" severity="danger" value="Danger" /> </div>`, typescript: `import { Component } from '@angular/core'; import { TagModule } from 'primeng/tag'; @Component({ selector: 'tag-icon-demo', templateUrl: './tag-icon-demo.html', standalone: true, imports: [TagModule] }) export class TagIconDemo {}` }; } ```
/content/code_sandbox/src/app/showcase/doc/tag/icondoc.ts
xml
2016-01-16T09:23:28
2024-08-16T19:58:20
primeng
primefaces/primeng
9,969
417
```xml import { isPlatformServer } from '@angular/common'; import { Component, Input, OnChanges, SimpleChanges, ChangeDetectionStrategy, PLATFORM_ID, Inject } from '@angular/core'; import { arc, DefaultArcObject } from 'd3-shape'; import { trimLabel } from '../common/trim-label.helper'; import { TextAnchor } from '../common/types/text-anchor.enum'; import { DataItem } from '../models/chart-data.model'; export interface PieData extends DefaultArcObject { data: DataItem; index: number; pos: [number, number]; value: number; } @Component({ selector: 'g[ngx-charts-pie-label]', template: ` <title>{{ label }}</title> <svg:g [attr.transform]="attrTransform" [style.transform]="styleTransform" [style.transition]="textTransition"> <svg:text class="pie-label" [class.animation]="animations" dy=".35em" [style.textAnchor]="textAnchor()" [style.shapeRendering]="'crispEdges'" > {{ labelTrim ? trimLabel(label, labelTrimSize) : label }} </svg:text> </svg:g> <svg:path [attr.d]="line" [attr.stroke]="color" fill="none" class="pie-label-line line" [class.animation]="animations" ></svg:path> `, changeDetection: ChangeDetectionStrategy.OnPush }) export class PieLabelComponent implements OnChanges { @Input() data: PieData; @Input() radius: number; @Input() label: string; @Input() color: string; @Input() max: number; @Input() value: number; @Input() explodeSlices: boolean; @Input() animations: boolean = true; @Input() labelTrim: boolean = true; @Input() labelTrimSize: number = 10; trimLabel: (label: string, max?: number) => string; line: string; styleTransform: string; attrTransform: string; textTransition: string; constructor(@Inject(PLATFORM_ID) public platformId: any) { this.trimLabel = trimLabel; } ngOnChanges(changes: SimpleChanges): void { this.setTransforms(); this.update(); } setTransforms() { if (isPlatformServer(this.platformId)) { this.styleTransform = `translate3d(${this.textX}px,${this.textY}px, 0)`; this.attrTransform = `translate(${this.textX},${this.textY})`; this.textTransition = !this.animations ? null : 'transform 0.75s'; } else { const isIE = /(edge|msie|trident)/i.test(navigator.userAgent); this.styleTransform = isIE ? null : `translate3d(${this.textX}px,${this.textY}px, 0)`; this.attrTransform = !isIE ? null : `translate(${this.textX},${this.textY})`; this.textTransition = isIE || !this.animations ? null : 'transform 0.75s'; } } update(): void { let startRadius = this.radius; if (this.explodeSlices) { startRadius = (this.radius * this.value) / this.max; } const innerArc = arc().innerRadius(startRadius).outerRadius(startRadius); // Calculate innerPos then scale outer position to match label position const innerPos = innerArc.centroid(this.data); let scale = this.data.pos[1] / innerPos[1]; if (this.data.pos[1] === 0 || innerPos[1] === 0) { scale = 1; } const outerPos = [scale * innerPos[0], scale * innerPos[1]]; this.line = `M${innerPos}L${outerPos}L${this.data.pos}`; } get textX(): number { return this.data.pos[0]; } get textY(): number { return this.data.pos[1]; } textAnchor(): TextAnchor { return this.midAngle(this.data) < Math.PI ? TextAnchor.Start : TextAnchor.End; } midAngle(d): number { return d.startAngle + (d.endAngle - d.startAngle) / 2; } } ```
/content/code_sandbox/projects/swimlane/ngx-charts/src/lib/pie-chart/pie-label.component.ts
xml
2016-07-22T15:58:41
2024-08-02T15:56:24
ngx-charts
swimlane/ngx-charts
4,284
948
```xml import { FieldType, CipherType } from "@bitwarden/common/vault/enums"; import { CipherView } from "@bitwarden/common/vault/models/view/cipher.view"; import { FieldView } from "@bitwarden/common/vault/models/view/field.view"; import { OnePasswordWinCsvImporter } from "../src/importers"; import { data as creditCardData } from "./test-data/onepassword-csv/credit-card.windows.csv"; import { data as identityData } from "./test-data/onepassword-csv/identity.windows.csv"; import { data as multiTypeData } from "./test-data/onepassword-csv/multiple-items.windows.csv"; function expectIdentity(cipher: CipherView) { expect(cipher.type).toBe(CipherType.Identity); expect(cipher.identity).toEqual( expect.objectContaining({ firstName: "first name", middleName: "mi", lastName: "last name", username: "userNam3", company: "bitwarden", phone: "8005555555", email: "email@bitwarden.com", }), ); expect(cipher.fields).toEqual( expect.arrayContaining([ Object.assign(new FieldView(), { type: FieldType.Text, name: "address", value: "address city state zip us", }), ]), ); } function expectCreditCard(cipher: CipherView) { expect(cipher.type).toBe(CipherType.Card); expect(cipher.card).toEqual( expect.objectContaining({ number: "4111111111111111", code: "111", cardholderName: "test", expMonth: "1", expYear: "1970", }), ); } describe("1Password windows CSV Importer", () => { let importer: OnePasswordWinCsvImporter; beforeEach(() => { importer = new OnePasswordWinCsvImporter(); }); it("should parse identity records", async () => { const result = await importer.parse(identityData); expect(result).not.toBeNull(); expect(result.success).toBe(true); expect(result.ciphers.length).toBe(1); const cipher = result.ciphers[0]; expectIdentity(cipher); }); it("should parse credit card records", async () => { const result = await importer.parse(creditCardData); expect(result).not.toBeNull(); expect(result.success).toBe(true); expect(result.ciphers.length).toBe(1); const cipher = result.ciphers[0]; expectCreditCard(cipher); }); it("should parse csv's with multiple record types", async () => { const result = await importer.parse(multiTypeData); expect(result).not.toBeNull(); expect(result.success).toBe(true); expect(result.ciphers.length).toBe(4); expectIdentity(result.ciphers[1]); expectCreditCard(result.ciphers[2]); }); }); ```
/content/code_sandbox/libs/importer/spec/onepassword-win-csv-importer.spec.ts
xml
2016-03-09T23:14:01
2024-08-16T15:07:51
clients
bitwarden/clients
8,877
619
```xml <Project Sdk="Microsoft.NET.Sdk.Web"> <PropertyGroup> <TargetFramework>net8.0</TargetFramework> <RootNamespace>Volo.CmsKit</RootNamespace> <PreserveCompilationReferences>true</PreserveCompilationReferences> <UserSecretsId>Volo.CmsKit-c2d31439-b723-48e2-b061-5ebd7aeb6010</UserSecretsId> </PropertyGroup> <ItemGroup> <PackageReference Include="Serilog.AspNetCore" /> <PackageReference Include="Serilog.Sinks.File" /> <PackageReference Include="Swashbuckle.AspNetCore" /> <PackageReference Include="Microsoft.AspNetCore.DataProtection.StackExchangeRedis" /> <PackageReference Include="Microsoft.EntityFrameworkCore.Tools" /> <ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.AspNetCore.Authentication.JwtBearer\Volo.Abp.AspNetCore.Authentication.JwtBearer.csproj" /> <ProjectReference Include="..\..\..\..\modules\basic-theme\src\Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic\Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic.csproj" /> <ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.AspNetCore.Mvc\Volo.Abp.AspNetCore.Mvc.csproj" /> <ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy\Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy.csproj" /> <ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.Autofac\Volo.Abp.Autofac.csproj" /> <ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.Caching.StackExchangeRedis\Volo.Abp.Caching.StackExchangeRedis.csproj" /> <ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.EntityFrameworkCore.SqlServer\Volo.Abp.EntityFrameworkCore.SqlServer.csproj" /> <ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.AspNetCore.Serilog\Volo.Abp.AspNetCore.Serilog.csproj" /> <ProjectReference Include="..\..\..\..\modules\account\src\Volo.Abp.Account.Web.IdentityServer\Volo.Abp.Account.Web.IdentityServer.csproj" /> <ProjectReference Include="..\..\..\..\modules\account\src\Volo.Abp.Account.Application\Volo.Abp.Account.Application.csproj" /> <ProjectReference Include="..\..\..\..\modules\account\src\Volo.Abp.Account.HttpApi\Volo.Abp.Account.HttpApi.csproj" /> <ProjectReference Include="..\..\..\..\modules\setting-management\src\Volo.Abp.SettingManagement.EntityFrameworkCore\Volo.Abp.SettingManagement.EntityFrameworkCore.csproj" /> <ProjectReference Include="..\..\..\..\modules\audit-logging\src\Volo.Abp.AuditLogging.EntityFrameworkCore\Volo.Abp.AuditLogging.EntityFrameworkCore.csproj" /> <ProjectReference Include="..\..\..\..\modules\identityserver\src\Volo.Abp.IdentityServer.EntityFrameworkCore\Volo.Abp.IdentityServer.EntityFrameworkCore.csproj" /> <ProjectReference Include="..\..\..\..\modules\permission-management\src\Volo.Abp.PermissionManagement.EntityFrameworkCore\Volo.Abp.PermissionManagement.EntityFrameworkCore.csproj" /> <ProjectReference Include="..\..\..\..\modules\permission-management\src\Volo.Abp.PermissionManagement.Application\Volo.Abp.PermissionManagement.Application.csproj" /> <ProjectReference Include="..\..\..\..\modules\permission-management\src\Volo.Abp.PermissionManagement.HttpApi\Volo.Abp.PermissionManagement.HttpApi.csproj" /> <ProjectReference Include="..\..\..\..\modules\identity\src\Volo.Abp.Identity.EntityFrameworkCore\Volo.Abp.Identity.EntityFrameworkCore.csproj" /> <ProjectReference Include="..\..\..\..\modules\identity\src\Volo.Abp.Identity.Application\Volo.Abp.Identity.Application.csproj" /> <ProjectReference Include="..\..\..\..\modules\identity\src\Volo.Abp.Identity.HttpApi\Volo.Abp.Identity.HttpApi.csproj" /> <ProjectReference Include="..\..\..\..\modules\identity\src\Volo.Abp.PermissionManagement.Domain.Identity\Volo.Abp.PermissionManagement.Domain.Identity.csproj" /> <ProjectReference Include="..\..\..\..\modules\feature-management\src\Volo.Abp.FeatureManagement.EntityFrameworkCore\Volo.Abp.FeatureManagement.EntityFrameworkCore.csproj" /> <ProjectReference Include="..\..\..\..\modules\feature-management\src\Volo.Abp.FeatureManagement.Application\Volo.Abp.FeatureManagement.Application.csproj" /> <ProjectReference Include="..\..\..\..\modules\feature-management\src\Volo.Abp.FeatureManagement.HttpApi\Volo.Abp.FeatureManagement.HttpApi.csproj" /> <ProjectReference Include="..\..\..\..\modules\tenant-management\src\Volo.Abp.TenantManagement.EntityFrameworkCore\Volo.Abp.TenantManagement.EntityFrameworkCore.csproj" /> <ProjectReference Include="..\..\..\..\modules\tenant-management\src\Volo.Abp.TenantManagement.Application\Volo.Abp.TenantManagement.Application.csproj" /> <ProjectReference Include="..\..\..\..\modules\tenant-management\src\Volo.Abp.TenantManagement.HttpApi\Volo.Abp.TenantManagement.HttpApi.csproj" /> <ProjectReference Include="..\..\src\Volo.CmsKit.Application.Contracts\Volo.CmsKit.Application.Contracts.csproj" /> <ProjectReference Include="..\Volo.CmsKit.Host.Shared\Volo.CmsKit.Host.Shared.csproj" /> </ItemGroup> <ItemGroup> <Compile Remove="Logs\**" /> <Content Remove="Logs\**" /> <EmbeddedResource Remove="Logs\**" /> <None Remove="Logs\**" /> </ItemGroup> <ItemGroup> <None Update="Pages\**\*.js"> <CopyToOutputDirectory>Always</CopyToOutputDirectory> </None> <None Update="Pages\**\*.css"> <CopyToOutputDirectory>Always</CopyToOutputDirectory> </None> </ItemGroup> </Project> ```
/content/code_sandbox/modules/cms-kit/host/Volo.CmsKit.IdentityServer/Volo.CmsKit.IdentityServer.csproj
xml
2016-12-03T22:56:24
2024-08-16T16:24:05
abp
abpframework/abp
12,657
1,272
```xml <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <NoWarn>$(NoWarn);1591</NoWarn> <Description>Data components for Entity Framework Core</Description> </PropertyGroup> <ItemGroup> <AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleToAttribute"> <_Parameter1>Piranha.Tests</_Parameter1> </AssemblyAttribute> </ItemGroup> <PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'"> <ContinuousIntegrationBuild>true</ContinuousIntegrationBuild> </PropertyGroup> <ItemGroup> <PackageReference Include="AutoMapper" Version="12.0.1" /> <ProjectReference Include="..\..\core\Piranha\Piranha.csproj" /> </ItemGroup> <ItemGroup> <PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.0" PrivateAssets="all" /> </ItemGroup> </Project> ```
/content/code_sandbox/data/Piranha.Data.EF/Piranha.Data.EF.csproj
xml
2016-03-21T09:53:44
2024-08-16T17:06:43
piranha.core
PiranhaCMS/piranha.core
1,944
206
```xml <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup Label="Project"> <TargetFramework>net8.0</TargetFramework> <OutputType>WinExe</OutputType> <AssemblyName>FlappyDon</AssemblyName> <ApplicationIcon>game.ico</ApplicationIcon> <ApplicationManifest>app.manifest</ApplicationManifest> <Version>0.0.0</Version> <FileVersion>0.0.0</FileVersion> </PropertyGroup> <ItemGroup Label="Project References"> <ProjectReference Include="..\FlappyDon.Game\FlappyDon.Game.csproj" /> </ItemGroup> <ItemGroup Label="Resources"> <EmbeddedResource Include="game.ico" /> </ItemGroup> </Project> ```
/content/code_sandbox/osu.Framework.Templates/templates/template-flappy/FlappyDon.Desktop/FlappyDon.Desktop.csproj
xml
2016-08-26T03:45:35
2024-08-16T05:03:32
osu-framework
ppy/osu-framework
1,618
166
```xml <?xml version="1.0" encoding="UTF-8"?> <GL_MarketDocument xmlns="urn:iec62325.351:tc57wg16:451-6:generationloaddocument:3:0"> <mRID>28000bea51054c1ab24f5b666b28d511</mRID> <revisionNumber>1</revisionNumber> <type>A75</type> <process.processType>A16</process.processType> <sender_MarketParticipant.mRID codingScheme="A01">10X1001A1001A450</sender_MarketParticipant.mRID> <sender_MarketParticipant.marketRole.type>A32</sender_MarketParticipant.marketRole.type> <receiver_MarketParticipant.mRID codingScheme="A01">10X1001A1001A450</receiver_MarketParticipant.mRID> <receiver_MarketParticipant.marketRole.type>A33</receiver_MarketParticipant.marketRole.type> <createdDateTime>2024-05-24T10:25:00Z</createdDateTime> <time_Period.timeInterval> <start>2024-05-21T10:00Z</start> <end>2024-05-24T10:00Z</end> </time_Period.timeInterval> <TimeSeries> <mRID>1</mRID> <businessType>A01</businessType> <objectAggregation>A08</objectAggregation> <inBiddingZone_Domain.mRID codingScheme="A01">10YLU-CEGEDEL-NQ</inBiddingZone_Domain.mRID> <quantity_Measure_Unit.name>MAW</quantity_Measure_Unit.name> <curveType>A01</curveType> <MktPSRType> <psrType>B01</psrType> </MktPSRType> <Period> <timeInterval> <start>2024-05-21T10:00Z</start> <end>2024-05-24T03:45Z</end> </timeInterval> <resolution>PT15M</resolution> <Point> <position>1</position> <quantity>17</quantity> </Point> <Point> <position>2</position> <quantity>17</quantity> </Point> <Point> <position>3</position> <quantity>17</quantity> </Point> <Point> <position>4</position> <quantity>18</quantity> </Point> <Point> <position>5</position> <quantity>18</quantity> </Point> <Point> <position>6</position> <quantity>18</quantity> </Point> <Point> <position>7</position> <quantity>18</quantity> </Point> <Point> <position>8</position> <quantity>18</quantity> </Point> <Point> <position>9</position> <quantity>19</quantity> </Point> <Point> <position>10</position> <quantity>19</quantity> </Point> <Point> <position>11</position> <quantity>19</quantity> </Point> <Point> <position>12</position> <quantity>22</quantity> </Point> <Point> <position>13</position> <quantity>23</quantity> </Point> <Point> <position>14</position> <quantity>24</quantity> </Point> <Point> <position>15</position> <quantity>29</quantity> </Point> <Point> <position>16</position> <quantity>34</quantity> </Point> <Point> <position>17</position> <quantity>38</quantity> </Point> <Point> <position>18</position> <quantity>39</quantity> </Point> <Point> <position>19</position> <quantity>27</quantity> </Point> <Point> <position>20</position> <quantity>21</quantity> </Point> <Point> <position>21</position> <quantity>21</quantity> </Point> <Point> <position>22</position> <quantity>21</quantity> </Point> <Point> <position>23</position> <quantity>21</quantity> </Point> <Point> <position>24</position> <quantity>18</quantity> </Point> <Point> <position>25</position> <quantity>17</quantity> </Point> <Point> <position>26</position> <quantity>17</quantity> </Point> <Point> <position>27</position> <quantity>17</quantity> </Point> <Point> <position>28</position> <quantity>18</quantity> </Point> <Point> <position>29</position> <quantity>19</quantity> </Point> <Point> <position>30</position> <quantity>18</quantity> </Point> <Point> <position>31</position> <quantity>19</quantity> </Point> <Point> <position>32</position> <quantity>18</quantity> </Point> <Point> <position>33</position> <quantity>17</quantity> </Point> <Point> <position>34</position> <quantity>17</quantity> </Point> <Point> <position>35</position> <quantity>15</quantity> </Point> <Point> <position>36</position> <quantity>17</quantity> </Point> <Point> <position>37</position> <quantity>18</quantity> </Point> <Point> <position>38</position> <quantity>19</quantity> </Point> <Point> <position>39</position> <quantity>19</quantity> </Point> <Point> <position>40</position> <quantity>19</quantity> </Point> <Point> <position>41</position> <quantity>19</quantity> </Point> <Point> <position>42</position> <quantity>19</quantity> </Point> <Point> <position>43</position> <quantity>19</quantity> </Point> <Point> <position>44</position> <quantity>19</quantity> </Point> <Point> <position>45</position> <quantity>19</quantity> </Point> <Point> <position>46</position> <quantity>18</quantity> </Point> <Point> <position>47</position> <quantity>19</quantity> </Point> <Point> <position>48</position> <quantity>19</quantity> </Point> <Point> <position>49</position> <quantity>19</quantity> </Point> <Point> <position>50</position> <quantity>19</quantity> </Point> <Point> <position>51</position> <quantity>18</quantity> </Point> <Point> <position>52</position> <quantity>18</quantity> </Point> <Point> <position>53</position> <quantity>18</quantity> </Point> <Point> <position>54</position> <quantity>18</quantity> </Point> <Point> <position>55</position> <quantity>19</quantity> </Point> <Point> <position>56</position> <quantity>20</quantity> </Point> <Point> <position>57</position> <quantity>20</quantity> </Point> <Point> <position>58</position> <quantity>21</quantity> </Point> <Point> <position>59</position> <quantity>20</quantity> </Point> <Point> <position>60</position> <quantity>19</quantity> </Point> <Point> <position>61</position> <quantity>18</quantity> </Point> <Point> <position>62</position> <quantity>21</quantity> </Point> <Point> <position>63</position> <quantity>22</quantity> </Point> <Point> <position>64</position> <quantity>22</quantity> </Point> <Point> <position>65</position> <quantity>22</quantity> </Point> <Point> <position>66</position> <quantity>22</quantity> </Point> <Point> <position>67</position> <quantity>22</quantity> </Point> <Point> <position>68</position> <quantity>21</quantity> </Point> <Point> <position>69</position> <quantity>21</quantity> </Point> <Point> <position>70</position> <quantity>21</quantity> </Point> <Point> <position>71</position> <quantity>21</quantity> </Point> <Point> <position>72</position> <quantity>21</quantity> </Point> <Point> <position>73</position> <quantity>21</quantity> </Point> <Point> <position>74</position> <quantity>21</quantity> </Point> <Point> <position>75</position> <quantity>21</quantity> </Point> <Point> <position>76</position> <quantity>21</quantity> </Point> <Point> <position>77</position> <quantity>21</quantity> </Point> <Point> <position>78</position> <quantity>21</quantity> </Point> <Point> <position>79</position> <quantity>21</quantity> </Point> <Point> <position>80</position> <quantity>21</quantity> </Point> <Point> <position>81</position> <quantity>21</quantity> </Point> <Point> <position>82</position> <quantity>21</quantity> </Point> <Point> <position>83</position> <quantity>21</quantity> </Point> <Point> <position>84</position> <quantity>19</quantity> </Point> <Point> <position>85</position> <quantity>18</quantity> </Point> <Point> <position>86</position> <quantity>19</quantity> </Point> <Point> <position>87</position> <quantity>20</quantity> </Point> <Point> <position>88</position> <quantity>25</quantity> </Point> <Point> <position>89</position> <quantity>32</quantity> </Point> <Point> <position>90</position> <quantity>39</quantity> </Point> <Point> <position>91</position> <quantity>41</quantity> </Point> <Point> <position>92</position> <quantity>39</quantity> </Point> <Point> <position>93</position> <quantity>39</quantity> </Point> <Point> <position>94</position> <quantity>40</quantity> </Point> <Point> <position>95</position> <quantity>43</quantity> </Point> <Point> <position>96</position> <quantity>44</quantity> </Point> <Point> <position>97</position> <quantity>44</quantity> </Point> <Point> <position>98</position> <quantity>44</quantity> </Point> <Point> <position>99</position> <quantity>43</quantity> </Point> <Point> <position>100</position> <quantity>41</quantity> </Point> <Point> <position>101</position> <quantity>41</quantity> </Point> <Point> <position>102</position> <quantity>38</quantity> </Point> <Point> <position>103</position> <quantity>19</quantity> </Point> <Point> <position>104</position> <quantity>17</quantity> </Point> <Point> <position>105</position> <quantity>18</quantity> </Point> <Point> <position>106</position> <quantity>24</quantity> </Point> <Point> <position>107</position> <quantity>18</quantity> </Point> <Point> <position>108</position> <quantity>18</quantity> </Point> <Point> <position>109</position> <quantity>27</quantity> </Point> <Point> <position>110</position> <quantity>27</quantity> </Point> <Point> <position>111</position> <quantity>27</quantity> </Point> <Point> <position>112</position> <quantity>27</quantity> </Point> <Point> <position>113</position> <quantity>34</quantity> </Point> <Point> <position>114</position> <quantity>24</quantity> </Point> <Point> <position>115</position> <quantity>19</quantity> </Point> <Point> <position>116</position> <quantity>18</quantity> </Point> <Point> <position>117</position> <quantity>18</quantity> </Point> <Point> <position>118</position> <quantity>18</quantity> </Point> <Point> <position>119</position> <quantity>18</quantity> </Point> <Point> <position>120</position> <quantity>18</quantity> </Point> <Point> <position>121</position> <quantity>18</quantity> </Point> <Point> <position>122</position> <quantity>17</quantity> </Point> <Point> <position>123</position> <quantity>16</quantity> </Point> <Point> <position>124</position> <quantity>16</quantity> </Point> <Point> <position>125</position> <quantity>16</quantity> </Point> <Point> <position>126</position> <quantity>16</quantity> </Point> <Point> <position>127</position> <quantity>16</quantity> </Point> <Point> <position>128</position> <quantity>16</quantity> </Point> <Point> <position>129</position> <quantity>15</quantity> </Point> <Point> <position>130</position> <quantity>16</quantity> </Point> <Point> <position>131</position> <quantity>16</quantity> </Point> <Point> <position>132</position> <quantity>18</quantity> </Point> <Point> <position>133</position> <quantity>18</quantity> </Point> <Point> <position>134</position> <quantity>18</quantity> </Point> <Point> <position>135</position> <quantity>19</quantity> </Point> <Point> <position>136</position> <quantity>19</quantity> </Point> <Point> <position>137</position> <quantity>19</quantity> </Point> <Point> <position>138</position> <quantity>19</quantity> </Point> <Point> <position>139</position> <quantity>20</quantity> </Point> <Point> <position>140</position> <quantity>21</quantity> </Point> <Point> <position>141</position> <quantity>20</quantity> </Point> <Point> <position>142</position> <quantity>18</quantity> </Point> <Point> <position>143</position> <quantity>17</quantity> </Point> <Point> <position>144</position> <quantity>18</quantity> </Point> <Point> <position>145</position> <quantity>13</quantity> </Point> <Point> <position>146</position> <quantity>13</quantity> </Point> <Point> <position>147</position> <quantity>13</quantity> </Point> <Point> <position>148</position> <quantity>13</quantity> </Point> <Point> <position>149</position> <quantity>13</quantity> </Point> <Point> <position>150</position> <quantity>13</quantity> </Point> <Point> <position>151</position> <quantity>14</quantity> </Point> <Point> <position>152</position> <quantity>13</quantity> </Point> <Point> <position>153</position> <quantity>13</quantity> </Point> <Point> <position>154</position> <quantity>13</quantity> </Point> <Point> <position>155</position> <quantity>13</quantity> </Point> <Point> <position>156</position> <quantity>13</quantity> </Point> <Point> <position>157</position> <quantity>13</quantity> </Point> <Point> <position>158</position> <quantity>13</quantity> </Point> <Point> <position>159</position> <quantity>19</quantity> </Point> <Point> <position>160</position> <quantity>21</quantity> </Point> <Point> <position>161</position> <quantity>20</quantity> </Point> <Point> <position>162</position> <quantity>21</quantity> </Point> <Point> <position>163</position> <quantity>21</quantity> </Point> <Point> <position>164</position> <quantity>21</quantity> </Point> <Point> <position>165</position> <quantity>22</quantity> </Point> <Point> <position>166</position> <quantity>22</quantity> </Point> <Point> <position>167</position> <quantity>20</quantity> </Point> <Point> <position>168</position> <quantity>18</quantity> </Point> <Point> <position>169</position> <quantity>15</quantity> </Point> <Point> <position>170</position> <quantity>15</quantity> </Point> <Point> <position>171</position> <quantity>15</quantity> </Point> <Point> <position>172</position> <quantity>16</quantity> </Point> <Point> <position>173</position> <quantity>17</quantity> </Point> <Point> <position>174</position> <quantity>17</quantity> </Point> <Point> <position>175</position> <quantity>18</quantity> </Point> <Point> <position>176</position> <quantity>18</quantity> </Point> <Point> <position>177</position> <quantity>19</quantity> </Point> <Point> <position>178</position> <quantity>18</quantity> </Point> <Point> <position>179</position> <quantity>17</quantity> </Point> <Point> <position>180</position> <quantity>16</quantity> </Point> <Point> <position>181</position> <quantity>16</quantity> </Point> <Point> <position>182</position> <quantity>17</quantity> </Point> <Point> <position>183</position> <quantity>18</quantity> </Point> <Point> <position>184</position> <quantity>19</quantity> </Point> <Point> <position>185</position> <quantity>19</quantity> </Point> <Point> <position>186</position> <quantity>18</quantity> </Point> <Point> <position>187</position> <quantity>18</quantity> </Point> <Point> <position>188</position> <quantity>17</quantity> </Point> <Point> <position>189</position> <quantity>19</quantity> </Point> <Point> <position>190</position> <quantity>26</quantity> </Point> <Point> <position>191</position> <quantity>32</quantity> </Point> <Point> <position>192</position> <quantity>35</quantity> </Point> <Point> <position>193</position> <quantity>18</quantity> </Point> <Point> <position>194</position> <quantity>19</quantity> </Point> <Point> <position>195</position> <quantity>19</quantity> </Point> <Point> <position>196</position> <quantity>19</quantity> </Point> <Point> <position>197</position> <quantity>19</quantity> </Point> <Point> <position>198</position> <quantity>19</quantity> </Point> <Point> <position>199</position> <quantity>16</quantity> </Point> <Point> <position>200</position> <quantity>14</quantity> </Point> <Point> <position>201</position> <quantity>21</quantity> </Point> <Point> <position>202</position> <quantity>29</quantity> </Point> <Point> <position>203</position> <quantity>40</quantity> </Point> <Point> <position>204</position> <quantity>41</quantity> </Point> <Point> <position>205</position> <quantity>31</quantity> </Point> <Point> <position>206</position> <quantity>33</quantity> </Point> <Point> <position>207</position> <quantity>39</quantity> </Point> <Point> <position>208</position> <quantity>39</quantity> </Point> <Point> <position>209</position> <quantity>23</quantity> </Point> <Point> <position>210</position> <quantity>18</quantity> </Point> <Point> <position>211</position> <quantity>17</quantity> </Point> <Point> <position>212</position> <quantity>17</quantity> </Point> <Point> <position>213</position> <quantity>18</quantity> </Point> <Point> <position>214</position> <quantity>17</quantity> </Point> <Point> <position>215</position> <quantity>17</quantity> </Point> <Point> <position>216</position> <quantity>17</quantity> </Point> <Point> <position>217</position> <quantity>17</quantity> </Point> <Point> <position>218</position> <quantity>16</quantity> </Point> <Point> <position>219</position> <quantity>15</quantity> </Point> <Point> <position>220</position> <quantity>16</quantity> </Point> <Point> <position>221</position> <quantity>18</quantity> </Point> <Point> <position>222</position> <quantity>18</quantity> </Point> <Point> <position>223</position> <quantity>18</quantity> </Point> <Point> <position>224</position> <quantity>18</quantity> </Point> <Point> <position>225</position> <quantity>18</quantity> </Point> <Point> <position>226</position> <quantity>18</quantity> </Point> <Point> <position>227</position> <quantity>17</quantity> </Point> <Point> <position>228</position> <quantity>18</quantity> </Point> <Point> <position>229</position> <quantity>18</quantity> </Point> <Point> <position>230</position> <quantity>18</quantity> </Point> <Point> <position>231</position> <quantity>17</quantity> </Point> <Point> <position>232</position> <quantity>19</quantity> </Point> <Point> <position>233</position> <quantity>19</quantity> </Point> <Point> <position>234</position> <quantity>18</quantity> </Point> <Point> <position>235</position> <quantity>18</quantity> </Point> <Point> <position>236</position> <quantity>17</quantity> </Point> <Point> <position>237</position> <quantity>18</quantity> </Point> <Point> <position>238</position> <quantity>18</quantity> </Point> <Point> <position>239</position> <quantity>19</quantity> </Point> <Point> <position>240</position> <quantity>19</quantity> </Point> <Point> <position>241</position> <quantity>46</quantity> </Point> <Point> <position>242</position> <quantity>44</quantity> </Point> <Point> <position>243</position> <quantity>43</quantity> </Point> <Point> <position>244</position> <quantity>43</quantity> </Point> <Point> <position>245</position> <quantity>44</quantity> </Point> <Point> <position>246</position> <quantity>45</quantity> </Point> <Point> <position>247</position> <quantity>43</quantity> </Point> <Point> <position>248</position> <quantity>44</quantity> </Point> <Point> <position>249</position> <quantity>46</quantity> </Point> <Point> <position>250</position> <quantity>44</quantity> </Point> <Point> <position>251</position> <quantity>43</quantity> </Point> <Point> <position>252</position> <quantity>41</quantity> </Point> <Point> <position>253</position> <quantity>42</quantity> </Point> <Point> <position>254</position> <quantity>41</quantity> </Point> <Point> <position>255</position> <quantity>41</quantity> </Point> <Point> <position>256</position> <quantity>41</quantity> </Point> <Point> <position>257</position> <quantity>41</quantity> </Point> <Point> <position>258</position> <quantity>41</quantity> </Point> <Point> <position>259</position> <quantity>41</quantity> </Point> <Point> <position>260</position> <quantity>42</quantity> </Point> <Point> <position>261</position> <quantity>43</quantity> </Point> <Point> <position>262</position> <quantity>42</quantity> </Point> <Point> <position>263</position> <quantity>42</quantity> </Point> </Period> </TimeSeries> <TimeSeries> <mRID>2</mRID> <businessType>A01</businessType> <objectAggregation>A08</objectAggregation> <inBiddingZone_Domain.mRID codingScheme="A01">10YLU-CEGEDEL-NQ</inBiddingZone_Domain.mRID> <quantity_Measure_Unit.name>MAW</quantity_Measure_Unit.name> <curveType>A01</curveType> <MktPSRType> <psrType>B01</psrType> </MktPSRType> <Period> <timeInterval> <start>2024-05-24T04:00Z</start> <end>2024-05-24T10:00Z</end> </timeInterval> <resolution>PT15M</resolution> <Point> <position>1</position> <quantity>45</quantity> </Point> <Point> <position>2</position> <quantity>43</quantity> </Point> <Point> <position>3</position> <quantity>41</quantity> </Point> <Point> <position>4</position> <quantity>42</quantity> </Point> <Point> <position>5</position> <quantity>45</quantity> </Point> <Point> <position>6</position> <quantity>43</quantity> </Point> <Point> <position>7</position> <quantity>41</quantity> </Point> <Point> <position>8</position> <quantity>43</quantity> </Point> <Point> <position>9</position> <quantity>42</quantity> </Point> <Point> <position>10</position> <quantity>40</quantity> </Point> <Point> <position>11</position> <quantity>38</quantity> </Point> <Point> <position>12</position> <quantity>37</quantity> </Point> <Point> <position>13</position> <quantity>39</quantity> </Point> <Point> <position>14</position> <quantity>45</quantity> </Point> <Point> <position>15</position> <quantity>33</quantity> </Point> <Point> <position>16</position> <quantity>28</quantity> </Point> <Point> <position>17</position> <quantity>30</quantity> </Point> <Point> <position>18</position> <quantity>32</quantity> </Point> <Point> <position>19</position> <quantity>31</quantity> </Point> <Point> <position>20</position> <quantity>31</quantity> </Point> <Point> <position>21</position> <quantity>33</quantity> </Point> <Point> <position>22</position> <quantity>32</quantity> </Point> <Point> <position>23</position> <quantity>32</quantity> </Point> <Point> <position>24</position> <quantity>32</quantity> </Point> </Period> </TimeSeries> <TimeSeries> <mRID>3</mRID> <businessType>A01</businessType> <objectAggregation>A08</objectAggregation> <inBiddingZone_Domain.mRID codingScheme="A01">10YLU-CEGEDEL-NQ</inBiddingZone_Domain.mRID> <quantity_Measure_Unit.name>MAW</quantity_Measure_Unit.name> <curveType>A01</curveType> <MktPSRType> <psrType>B04</psrType> </MktPSRType> <Period> <timeInterval> <start>2024-05-21T10:00Z</start> <end>2024-05-24T03:45Z</end> </timeInterval> <resolution>PT15M</resolution> <Point> <position>1</position> <quantity>6</quantity> </Point> <Point> <position>2</position> <quantity>6</quantity> </Point> <Point> <position>3</position> <quantity>6</quantity> </Point> <Point> <position>4</position> <quantity>6</quantity> </Point> <Point> <position>5</position> <quantity>6</quantity> </Point> <Point> <position>6</position> <quantity>6</quantity> </Point> <Point> <position>7</position> <quantity>7</quantity> </Point> <Point> <position>8</position> <quantity>7</quantity> </Point> <Point> <position>9</position> <quantity>7</quantity> </Point> <Point> <position>10</position> <quantity>7</quantity> </Point> <Point> <position>11</position> <quantity>8</quantity> </Point> <Point> <position>12</position> <quantity>8</quantity> </Point> <Point> <position>13</position> <quantity>6</quantity> </Point> <Point> <position>14</position> <quantity>5</quantity> </Point> <Point> <position>15</position> <quantity>5</quantity> </Point> <Point> <position>16</position> <quantity>4</quantity> </Point> <Point> <position>17</position> <quantity>6</quantity> </Point> <Point> <position>18</position> <quantity>6</quantity> </Point> <Point> <position>19</position> <quantity>5</quantity> </Point> <Point> <position>20</position> <quantity>5</quantity> </Point> <Point> <position>21</position> <quantity>5</quantity> </Point> <Point> <position>22</position> <quantity>5</quantity> </Point> <Point> <position>23</position> <quantity>6</quantity> </Point> <Point> <position>24</position> <quantity>6</quantity> </Point> <Point> <position>25</position> <quantity>6</quantity> </Point> <Point> <position>26</position> <quantity>5</quantity> </Point> <Point> <position>27</position> <quantity>5</quantity> </Point> <Point> <position>28</position> <quantity>4</quantity> </Point> <Point> <position>29</position> <quantity>6</quantity> </Point> <Point> <position>30</position> <quantity>6</quantity> </Point> <Point> <position>31</position> <quantity>6</quantity> </Point> <Point> <position>32</position> <quantity>6</quantity> </Point> <Point> <position>33</position> <quantity>7</quantity> </Point> <Point> <position>34</position> <quantity>7</quantity> </Point> <Point> <position>35</position> <quantity>6</quantity> </Point> <Point> <position>36</position> <quantity>7</quantity> </Point> <Point> <position>37</position> <quantity>7</quantity> </Point> <Point> <position>38</position> <quantity>7</quantity> </Point> <Point> <position>39</position> <quantity>7</quantity> </Point> <Point> <position>40</position> <quantity>8</quantity> </Point> <Point> <position>41</position> <quantity>4</quantity> </Point> <Point> <position>42</position> <quantity>2</quantity> </Point> <Point> <position>43</position> <quantity>0</quantity> </Point> <Point> <position>44</position> <quantity>0</quantity> </Point> <Point> <position>45</position> <quantity>0</quantity> </Point> <Point> <position>46</position> <quantity>0</quantity> </Point> <Point> <position>47</position> <quantity>0</quantity> </Point> <Point> <position>48</position> <quantity>0</quantity> </Point> <Point> <position>49</position> <quantity>0</quantity> </Point> <Point> <position>50</position> <quantity>0</quantity> </Point> <Point> <position>51</position> <quantity>0</quantity> </Point> <Point> <position>52</position> <quantity>0</quantity> </Point> <Point> <position>53</position> <quantity>0</quantity> </Point> <Point> <position>54</position> <quantity>0</quantity> </Point> <Point> <position>55</position> <quantity>0</quantity> </Point> <Point> <position>56</position> <quantity>0</quantity> </Point> <Point> <position>57</position> <quantity>0</quantity> </Point> <Point> <position>58</position> <quantity>0</quantity> </Point> <Point> <position>59</position> <quantity>0</quantity> </Point> <Point> <position>60</position> <quantity>0</quantity> </Point> <Point> <position>61</position> <quantity>0</quantity> </Point> <Point> <position>62</position> <quantity>0</quantity> </Point> <Point> <position>63</position> <quantity>0</quantity> </Point> <Point> <position>64</position> <quantity>0</quantity> </Point> <Point> <position>65</position> <quantity>0</quantity> </Point> <Point> <position>66</position> <quantity>0</quantity> </Point> <Point> <position>67</position> <quantity>0</quantity> </Point> <Point> <position>68</position> <quantity>0</quantity> </Point> <Point> <position>69</position> <quantity>0</quantity> </Point> <Point> <position>70</position> <quantity>0</quantity> </Point> <Point> <position>71</position> <quantity>0</quantity> </Point> <Point> <position>72</position> <quantity>1</quantity> </Point> <Point> <position>73</position> <quantity>4</quantity> </Point> <Point> <position>74</position> <quantity>6</quantity> </Point> <Point> <position>75</position> <quantity>9</quantity> </Point> <Point> <position>76</position> <quantity>10</quantity> </Point> <Point> <position>77</position> <quantity>9</quantity> </Point> <Point> <position>78</position> <quantity>9</quantity> </Point> <Point> <position>79</position> <quantity>9</quantity> </Point> <Point> <position>80</position> <quantity>10</quantity> </Point> <Point> <position>81</position> <quantity>10</quantity> </Point> <Point> <position>82</position> <quantity>11</quantity> </Point> <Point> <position>83</position> <quantity>10</quantity> </Point> <Point> <position>84</position> <quantity>10</quantity> </Point> <Point> <position>85</position> <quantity>10</quantity> </Point> <Point> <position>86</position> <quantity>10</quantity> </Point> <Point> <position>87</position> <quantity>9</quantity> </Point> <Point> <position>88</position> <quantity>9</quantity> </Point> <Point> <position>89</position> <quantity>9</quantity> </Point> <Point> <position>90</position> <quantity>9</quantity> </Point> <Point> <position>91</position> <quantity>8</quantity> </Point> <Point> <position>92</position> <quantity>8</quantity> </Point> <Point> <position>93</position> <quantity>7</quantity> </Point> <Point> <position>94</position> <quantity>6</quantity> </Point> <Point> <position>95</position> <quantity>5</quantity> </Point> <Point> <position>96</position> <quantity>5</quantity> </Point> <Point> <position>97</position> <quantity>6</quantity> </Point> <Point> <position>98</position> <quantity>7</quantity> </Point> <Point> <position>99</position> <quantity>8</quantity> </Point> <Point> <position>100</position> <quantity>9</quantity> </Point> <Point> <position>101</position> <quantity>9</quantity> </Point> <Point> <position>102</position> <quantity>8</quantity> </Point> <Point> <position>103</position> <quantity>8</quantity> </Point> <Point> <position>104</position> <quantity>7</quantity> </Point> <Point> <position>105</position> <quantity>6</quantity> </Point> <Point> <position>106</position> <quantity>5</quantity> </Point> <Point> <position>107</position> <quantity>4</quantity> </Point> <Point> <position>108</position> <quantity>3</quantity> </Point> <Point> <position>109</position> <quantity>3</quantity> </Point> <Point> <position>110</position> <quantity>3</quantity> </Point> <Point> <position>111</position> <quantity>4</quantity> </Point> <Point> <position>112</position> <quantity>5</quantity> </Point> <Point> <position>113</position> <quantity>5</quantity> </Point> <Point> <position>114</position> <quantity>6</quantity> </Point> <Point> <position>115</position> <quantity>6</quantity> </Point> <Point> <position>116</position> <quantity>5</quantity> </Point> <Point> <position>117</position> <quantity>4</quantity> </Point> <Point> <position>118</position> <quantity>4</quantity> </Point> <Point> <position>119</position> <quantity>4</quantity> </Point> <Point> <position>120</position> <quantity>4</quantity> </Point> <Point> <position>121</position> <quantity>4</quantity> </Point> <Point> <position>122</position> <quantity>3</quantity> </Point> <Point> <position>123</position> <quantity>3</quantity> </Point> <Point> <position>124</position> <quantity>4</quantity> </Point> <Point> <position>125</position> <quantity>4</quantity> </Point> <Point> <position>126</position> <quantity>5</quantity> </Point> <Point> <position>127</position> <quantity>5</quantity> </Point> <Point> <position>128</position> <quantity>5</quantity> </Point> <Point> <position>129</position> <quantity>5</quantity> </Point> <Point> <position>130</position> <quantity>5</quantity> </Point> <Point> <position>131</position> <quantity>6</quantity> </Point> <Point> <position>132</position> <quantity>6</quantity> </Point> <Point> <position>133</position> <quantity>6</quantity> </Point> <Point> <position>134</position> <quantity>6</quantity> </Point> <Point> <position>135</position> <quantity>6</quantity> </Point> <Point> <position>136</position> <quantity>5</quantity> </Point> <Point> <position>137</position> <quantity>2</quantity> </Point> <Point> <position>138</position> <quantity>1</quantity> </Point> <Point> <position>139</position> <quantity>0</quantity> </Point> <Point> <position>140</position> <quantity>1</quantity> </Point> <Point> <position>141</position> <quantity>0</quantity> </Point> <Point> <position>142</position> <quantity>0</quantity> </Point> <Point> <position>143</position> <quantity>0</quantity> </Point> <Point> <position>144</position> <quantity>0</quantity> </Point> <Point> <position>145</position> <quantity>0</quantity> </Point> <Point> <position>146</position> <quantity>0</quantity> </Point> <Point> <position>147</position> <quantity>0</quantity> </Point> <Point> <position>148</position> <quantity>0</quantity> </Point> <Point> <position>149</position> <quantity>0</quantity> </Point> <Point> <position>150</position> <quantity>0</quantity> </Point> <Point> <position>151</position> <quantity>0</quantity> </Point> <Point> <position>152</position> <quantity>0</quantity> </Point> <Point> <position>153</position> <quantity>0</quantity> </Point> <Point> <position>154</position> <quantity>0</quantity> </Point> <Point> <position>155</position> <quantity>0</quantity> </Point> <Point> <position>156</position> <quantity>0</quantity> </Point> <Point> <position>157</position> <quantity>0</quantity> </Point> <Point> <position>158</position> <quantity>0</quantity> </Point> <Point> <position>159</position> <quantity>0</quantity> </Point> <Point> <position>160</position> <quantity>0</quantity> </Point> <Point> <position>161</position> <quantity>0</quantity> </Point> <Point> <position>162</position> <quantity>0</quantity> </Point> <Point> <position>163</position> <quantity>0</quantity> </Point> <Point> <position>164</position> <quantity>0</quantity> </Point> <Point> <position>165</position> <quantity>0</quantity> </Point> <Point> <position>166</position> <quantity>0</quantity> </Point> <Point> <position>167</position> <quantity>0</quantity> </Point> <Point> <position>168</position> <quantity>0</quantity> </Point> <Point> <position>169</position> <quantity>4</quantity> </Point> <Point> <position>170</position> <quantity>7</quantity> </Point> <Point> <position>171</position> <quantity>10</quantity> </Point> <Point> <position>172</position> <quantity>11</quantity> </Point> <Point> <position>173</position> <quantity>11</quantity> </Point> <Point> <position>174</position> <quantity>10</quantity> </Point> <Point> <position>175</position> <quantity>10</quantity> </Point> <Point> <position>176</position> <quantity>10</quantity> </Point> <Point> <position>177</position> <quantity>11</quantity> </Point> <Point> <position>178</position> <quantity>11</quantity> </Point> <Point> <position>179</position> <quantity>11</quantity> </Point> <Point> <position>180</position> <quantity>11</quantity> </Point> <Point> <position>181</position> <quantity>11</quantity> </Point> <Point> <position>182</position> <quantity>11</quantity> </Point> <Point> <position>183</position> <quantity>9</quantity> </Point> <Point> <position>184</position> <quantity>8</quantity> </Point> <Point> <position>185</position> <quantity>7</quantity> </Point> <Point> <position>186</position> <quantity>6</quantity> </Point> <Point> <position>187</position> <quantity>5</quantity> </Point> <Point> <position>188</position> <quantity>5</quantity> </Point> <Point> <position>189</position> <quantity>5</quantity> </Point> <Point> <position>190</position> <quantity>5</quantity> </Point> <Point> <position>191</position> <quantity>4</quantity> </Point> <Point> <position>192</position> <quantity>3</quantity> </Point> <Point> <position>193</position> <quantity>4</quantity> </Point> <Point> <position>194</position> <quantity>4</quantity> </Point> <Point> <position>195</position> <quantity>4</quantity> </Point> <Point> <position>196</position> <quantity>5</quantity> </Point> <Point> <position>197</position> <quantity>5</quantity> </Point> <Point> <position>198</position> <quantity>4</quantity> </Point> <Point> <position>199</position> <quantity>4</quantity> </Point> <Point> <position>200</position> <quantity>4</quantity> </Point> <Point> <position>201</position> <quantity>4</quantity> </Point> <Point> <position>202</position> <quantity>4</quantity> </Point> <Point> <position>203</position> <quantity>3</quantity> </Point> <Point> <position>204</position> <quantity>4</quantity> </Point> <Point> <position>205</position> <quantity>4</quantity> </Point> <Point> <position>206</position> <quantity>4</quantity> </Point> <Point> <position>207</position> <quantity>4</quantity> </Point> <Point> <position>208</position> <quantity>3</quantity> </Point> <Point> <position>209</position> <quantity>4</quantity> </Point> <Point> <position>210</position> <quantity>5</quantity> </Point> <Point> <position>211</position> <quantity>5</quantity> </Point> <Point> <position>212</position> <quantity>5</quantity> </Point> <Point> <position>213</position> <quantity>6</quantity> </Point> <Point> <position>214</position> <quantity>5</quantity> </Point> <Point> <position>215</position> <quantity>4</quantity> </Point> <Point> <position>216</position> <quantity>3</quantity> </Point> <Point> <position>217</position> <quantity>3</quantity> </Point> <Point> <position>218</position> <quantity>4</quantity> </Point> <Point> <position>219</position> <quantity>4</quantity> </Point> <Point> <position>220</position> <quantity>4</quantity> </Point> <Point> <position>221</position> <quantity>4</quantity> </Point> <Point> <position>222</position> <quantity>4</quantity> </Point> <Point> <position>223</position> <quantity>4</quantity> </Point> <Point> <position>224</position> <quantity>4</quantity> </Point> <Point> <position>225</position> <quantity>5</quantity> </Point> <Point> <position>226</position> <quantity>5</quantity> </Point> <Point> <position>227</position> <quantity>6</quantity> </Point> <Point> <position>228</position> <quantity>6</quantity> </Point> <Point> <position>229</position> <quantity>6</quantity> </Point> <Point> <position>230</position> <quantity>7</quantity> </Point> <Point> <position>231</position> <quantity>7</quantity> </Point> <Point> <position>232</position> <quantity>6</quantity> </Point> <Point> <position>233</position> <quantity>3</quantity> </Point> <Point> <position>234</position> <quantity>1</quantity> </Point> <Point> <position>235</position> <quantity>0</quantity> </Point> <Point> <position>236</position> <quantity>1</quantity> </Point> <Point> <position>237</position> <quantity>0</quantity> </Point> <Point> <position>238</position> <quantity>0</quantity> </Point> <Point> <position>239</position> <quantity>0</quantity> </Point> <Point> <position>240</position> <quantity>0</quantity> </Point> <Point> <position>241</position> <quantity>6</quantity> </Point> <Point> <position>242</position> <quantity>3</quantity> </Point> <Point> <position>243</position> <quantity>1</quantity> </Point> <Point> <position>244</position> <quantity>0</quantity> </Point> <Point> <position>245</position> <quantity>0</quantity> </Point> <Point> <position>246</position> <quantity>0</quantity> </Point> <Point> <position>247</position> <quantity>0</quantity> </Point> <Point> <position>248</position> <quantity>0</quantity> </Point> <Point> <position>249</position> <quantity>0</quantity> </Point> <Point> <position>250</position> <quantity>0</quantity> </Point> <Point> <position>251</position> <quantity>0</quantity> </Point> <Point> <position>252</position> <quantity>0</quantity> </Point> <Point> <position>253</position> <quantity>0</quantity> </Point> <Point> <position>254</position> <quantity>0</quantity> </Point> <Point> <position>255</position> <quantity>0</quantity> </Point> <Point> <position>256</position> <quantity>0</quantity> </Point> <Point> <position>257</position> <quantity>0</quantity> </Point> <Point> <position>258</position> <quantity>0</quantity> </Point> <Point> <position>259</position> <quantity>0</quantity> </Point> <Point> <position>260</position> <quantity>0</quantity> </Point> <Point> <position>261</position> <quantity>0</quantity> </Point> <Point> <position>262</position> <quantity>0</quantity> </Point> <Point> <position>263</position> <quantity>0</quantity> </Point> </Period> </TimeSeries> <TimeSeries> <mRID>4</mRID> <businessType>A01</businessType> <objectAggregation>A08</objectAggregation> <inBiddingZone_Domain.mRID codingScheme="A01">10YLU-CEGEDEL-NQ</inBiddingZone_Domain.mRID> <quantity_Measure_Unit.name>MAW</quantity_Measure_Unit.name> <curveType>A01</curveType> <MktPSRType> <psrType>B04</psrType> </MktPSRType> <Period> <timeInterval> <start>2024-05-24T04:00Z</start> <end>2024-05-24T10:00Z</end> </timeInterval> <resolution>PT15M</resolution> <Point> <position>1</position> <quantity>7</quantity> </Point> <Point> <position>2</position> <quantity>15</quantity> </Point> <Point> <position>3</position> <quantity>26</quantity> </Point> <Point> <position>4</position> <quantity>31</quantity> </Point> <Point> <position>5</position> <quantity>35</quantity> </Point> <Point> <position>6</position> <quantity>48</quantity> </Point> <Point> <position>7</position> <quantity>23</quantity> </Point> <Point> <position>8</position> <quantity>25</quantity> </Point> <Point> <position>9</position> <quantity>37</quantity> </Point> <Point> <position>10</position> <quantity>13</quantity> </Point> <Point> <position>11</position> <quantity>20</quantity> </Point> <Point> <position>12</position> <quantity>21</quantity> </Point> <Point> <position>13</position> <quantity>18</quantity> </Point> <Point> <position>14</position> <quantity>29</quantity> </Point> <Point> <position>15</position> <quantity>0</quantity> </Point> <Point> <position>16</position> <quantity>14</quantity> </Point> <Point> <position>17</position> <quantity>12</quantity> </Point> <Point> <position>18</position> <quantity>13</quantity> </Point> <Point> <position>19</position> <quantity>17</quantity> </Point> <Point> <position>20</position> <quantity>3</quantity> </Point> <Point> <position>21</position> <quantity>10</quantity> </Point> <Point> <position>22</position> <quantity>4</quantity> </Point> <Point> <position>23</position> <quantity>3</quantity> </Point> <Point> <position>24</position> <quantity>6</quantity> </Point> </Period> </TimeSeries> <TimeSeries> <mRID>5</mRID> <businessType>A01</businessType> <objectAggregation>A08</objectAggregation> <inBiddingZone_Domain.mRID codingScheme="A01">10YLU-CEGEDEL-NQ</inBiddingZone_Domain.mRID> <quantity_Measure_Unit.name>MAW</quantity_Measure_Unit.name> <curveType>A01</curveType> <MktPSRType> <psrType>B11</psrType> </MktPSRType> <Period> <timeInterval> <start>2024-05-21T10:00Z</start> <end>2024-05-24T03:45Z</end> </timeInterval> <resolution>PT15M</resolution> <Point> <position>1</position> <quantity>9</quantity> </Point> <Point> <position>2</position> <quantity>9</quantity> </Point> <Point> <position>3</position> <quantity>9</quantity> </Point> <Point> <position>4</position> <quantity>9</quantity> </Point> <Point> <position>5</position> <quantity>9</quantity> </Point> <Point> <position>6</position> <quantity>9</quantity> </Point> <Point> <position>7</position> <quantity>9</quantity> </Point> <Point> <position>8</position> <quantity>9</quantity> </Point> <Point> <position>9</position> <quantity>9</quantity> </Point> <Point> <position>10</position> <quantity>9</quantity> </Point> <Point> <position>11</position> <quantity>9</quantity> </Point> <Point> <position>12</position> <quantity>9</quantity> </Point> <Point> <position>13</position> <quantity>9</quantity> </Point> <Point> <position>14</position> <quantity>9</quantity> </Point> <Point> <position>15</position> <quantity>9</quantity> </Point> <Point> <position>16</position> <quantity>8</quantity> </Point> <Point> <position>17</position> <quantity>8</quantity> </Point> <Point> <position>18</position> <quantity>9</quantity> </Point> <Point> <position>19</position> <quantity>9</quantity> </Point> <Point> <position>20</position> <quantity>9</quantity> </Point> <Point> <position>21</position> <quantity>8</quantity> </Point> <Point> <position>22</position> <quantity>8</quantity> </Point> <Point> <position>23</position> <quantity>8</quantity> </Point> <Point> <position>24</position> <quantity>8</quantity> </Point> <Point> <position>25</position> <quantity>8</quantity> </Point> <Point> <position>26</position> <quantity>8</quantity> </Point> <Point> <position>27</position> <quantity>8</quantity> </Point> <Point> <position>28</position> <quantity>8</quantity> </Point> <Point> <position>29</position> <quantity>8</quantity> </Point> <Point> <position>30</position> <quantity>8</quantity> </Point> <Point> <position>31</position> <quantity>8</quantity> </Point> <Point> <position>32</position> <quantity>9</quantity> </Point> <Point> <position>33</position> <quantity>9</quantity> </Point> <Point> <position>34</position> <quantity>9</quantity> </Point> <Point> <position>35</position> <quantity>9</quantity> </Point> <Point> <position>36</position> <quantity>9</quantity> </Point> <Point> <position>37</position> <quantity>9</quantity> </Point> <Point> <position>38</position> <quantity>9</quantity> </Point> <Point> <position>39</position> <quantity>9</quantity> </Point> <Point> <position>40</position> <quantity>9</quantity> </Point> <Point> <position>41</position> <quantity>9</quantity> </Point> <Point> <position>42</position> <quantity>9</quantity> </Point> <Point> <position>43</position> <quantity>9</quantity> </Point> <Point> <position>44</position> <quantity>9</quantity> </Point> <Point> <position>45</position> <quantity>9</quantity> </Point> <Point> <position>46</position> <quantity>9</quantity> </Point> <Point> <position>47</position> <quantity>9</quantity> </Point> <Point> <position>48</position> <quantity>9</quantity> </Point> <Point> <position>49</position> <quantity>9</quantity> </Point> <Point> <position>50</position> <quantity>9</quantity> </Point> <Point> <position>51</position> <quantity>9</quantity> </Point> <Point> <position>52</position> <quantity>9</quantity> </Point> <Point> <position>53</position> <quantity>9</quantity> </Point> <Point> <position>54</position> <quantity>9</quantity> </Point> <Point> <position>55</position> <quantity>9</quantity> </Point> <Point> <position>56</position> <quantity>9</quantity> </Point> <Point> <position>57</position> <quantity>9</quantity> </Point> <Point> <position>58</position> <quantity>9</quantity> </Point> <Point> <position>59</position> <quantity>9</quantity> </Point> <Point> <position>60</position> <quantity>9</quantity> </Point> <Point> <position>61</position> <quantity>9</quantity> </Point> <Point> <position>62</position> <quantity>9</quantity> </Point> <Point> <position>63</position> <quantity>9</quantity> </Point> <Point> <position>64</position> <quantity>9</quantity> </Point> <Point> <position>65</position> <quantity>9</quantity> </Point> <Point> <position>66</position> <quantity>9</quantity> </Point> <Point> <position>67</position> <quantity>9</quantity> </Point> <Point> <position>68</position> <quantity>9</quantity> </Point> <Point> <position>69</position> <quantity>9</quantity> </Point> <Point> <position>70</position> <quantity>9</quantity> </Point> <Point> <position>71</position> <quantity>9</quantity> </Point> <Point> <position>72</position> <quantity>9</quantity> </Point> <Point> <position>73</position> <quantity>9</quantity> </Point> <Point> <position>74</position> <quantity>9</quantity> </Point> <Point> <position>75</position> <quantity>9</quantity> </Point> <Point> <position>76</position> <quantity>9</quantity> </Point> <Point> <position>77</position> <quantity>9</quantity> </Point> <Point> <position>78</position> <quantity>9</quantity> </Point> <Point> <position>79</position> <quantity>8</quantity> </Point> <Point> <position>80</position> <quantity>8</quantity> </Point> <Point> <position>81</position> <quantity>8</quantity> </Point> <Point> <position>82</position> <quantity>9</quantity> </Point> <Point> <position>83</position> <quantity>8</quantity> </Point> <Point> <position>84</position> <quantity>8</quantity> </Point> <Point> <position>85</position> <quantity>8</quantity> </Point> <Point> <position>86</position> <quantity>8</quantity> </Point> <Point> <position>87</position> <quantity>8</quantity> </Point> <Point> <position>88</position> <quantity>8</quantity> </Point> <Point> <position>89</position> <quantity>8</quantity> </Point> <Point> <position>90</position> <quantity>8</quantity> </Point> <Point> <position>91</position> <quantity>8</quantity> </Point> <Point> <position>92</position> <quantity>8</quantity> </Point> <Point> <position>93</position> <quantity>8</quantity> </Point> <Point> <position>94</position> <quantity>8</quantity> </Point> <Point> <position>95</position> <quantity>9</quantity> </Point> <Point> <position>96</position> <quantity>9</quantity> </Point> <Point> <position>97</position> <quantity>9</quantity> </Point> <Point> <position>98</position> <quantity>9</quantity> </Point> <Point> <position>99</position> <quantity>9</quantity> </Point> <Point> <position>100</position> <quantity>9</quantity> </Point> <Point> <position>101</position> <quantity>9</quantity> </Point> <Point> <position>102</position> <quantity>8</quantity> </Point> <Point> <position>103</position> <quantity>9</quantity> </Point> <Point> <position>104</position> <quantity>9</quantity> </Point> <Point> <position>105</position> <quantity>9</quantity> </Point> <Point> <position>106</position> <quantity>9</quantity> </Point> <Point> <position>107</position> <quantity>9</quantity> </Point> <Point> <position>108</position> <quantity>8</quantity> </Point> <Point> <position>109</position> <quantity>9</quantity> </Point> <Point> <position>110</position> <quantity>9</quantity> </Point> <Point> <position>111</position> <quantity>9</quantity> </Point> <Point> <position>112</position> <quantity>9</quantity> </Point> <Point> <position>113</position> <quantity>9</quantity> </Point> <Point> <position>114</position> <quantity>9</quantity> </Point> <Point> <position>115</position> <quantity>9</quantity> </Point> <Point> <position>116</position> <quantity>9</quantity> </Point> <Point> <position>117</position> <quantity>9</quantity> </Point> <Point> <position>118</position> <quantity>9</quantity> </Point> <Point> <position>119</position> <quantity>9</quantity> </Point> <Point> <position>120</position> <quantity>9</quantity> </Point> <Point> <position>121</position> <quantity>9</quantity> </Point> <Point> <position>122</position> <quantity>9</quantity> </Point> <Point> <position>123</position> <quantity>9</quantity> </Point> <Point> <position>124</position> <quantity>9</quantity> </Point> <Point> <position>125</position> <quantity>9</quantity> </Point> <Point> <position>126</position> <quantity>9</quantity> </Point> <Point> <position>127</position> <quantity>9</quantity> </Point> <Point> <position>128</position> <quantity>9</quantity> </Point> <Point> <position>129</position> <quantity>9</quantity> </Point> <Point> <position>130</position> <quantity>9</quantity> </Point> <Point> <position>131</position> <quantity>9</quantity> </Point> <Point> <position>132</position> <quantity>9</quantity> </Point> <Point> <position>133</position> <quantity>9</quantity> </Point> <Point> <position>134</position> <quantity>9</quantity> </Point> <Point> <position>135</position> <quantity>9</quantity> </Point> <Point> <position>136</position> <quantity>9</quantity> </Point> <Point> <position>137</position> <quantity>9</quantity> </Point> <Point> <position>138</position> <quantity>9</quantity> </Point> <Point> <position>139</position> <quantity>9</quantity> </Point> <Point> <position>140</position> <quantity>9</quantity> </Point> <Point> <position>141</position> <quantity>9</quantity> </Point> <Point> <position>142</position> <quantity>9</quantity> </Point> <Point> <position>143</position> <quantity>9</quantity> </Point> <Point> <position>144</position> <quantity>9</quantity> </Point> <Point> <position>145</position> <quantity>9</quantity> </Point> <Point> <position>146</position> <quantity>9</quantity> </Point> <Point> <position>147</position> <quantity>9</quantity> </Point> <Point> <position>148</position> <quantity>9</quantity> </Point> <Point> <position>149</position> <quantity>9</quantity> </Point> <Point> <position>150</position> <quantity>9</quantity> </Point> <Point> <position>151</position> <quantity>9</quantity> </Point> <Point> <position>152</position> <quantity>9</quantity> </Point> <Point> <position>153</position> <quantity>9</quantity> </Point> <Point> <position>154</position> <quantity>9</quantity> </Point> <Point> <position>155</position> <quantity>9</quantity> </Point> <Point> <position>156</position> <quantity>9</quantity> </Point> <Point> <position>157</position> <quantity>9</quantity> </Point> <Point> <position>158</position> <quantity>9</quantity> </Point> <Point> <position>159</position> <quantity>9</quantity> </Point> <Point> <position>160</position> <quantity>9</quantity> </Point> <Point> <position>161</position> <quantity>9</quantity> </Point> <Point> <position>162</position> <quantity>10</quantity> </Point> <Point> <position>163</position> <quantity>10</quantity> </Point> <Point> <position>164</position> <quantity>10</quantity> </Point> <Point> <position>165</position> <quantity>10</quantity> </Point> <Point> <position>166</position> <quantity>10</quantity> </Point> <Point> <position>167</position> <quantity>10</quantity> </Point> <Point> <position>168</position> <quantity>9</quantity> </Point> <Point> <position>169</position> <quantity>10</quantity> </Point> <Point> <position>170</position> <quantity>10</quantity> </Point> <Point> <position>171</position> <quantity>10</quantity> </Point> <Point> <position>172</position> <quantity>10</quantity> </Point> <Point> <position>173</position> <quantity>10</quantity> </Point> <Point> <position>174</position> <quantity>10</quantity> </Point> <Point> <position>175</position> <quantity>10</quantity> </Point> <Point> <position>176</position> <quantity>10</quantity> </Point> <Point> <position>177</position> <quantity>10</quantity> </Point> <Point> <position>178</position> <quantity>10</quantity> </Point> <Point> <position>179</position> <quantity>10</quantity> </Point> <Point> <position>180</position> <quantity>10</quantity> </Point> <Point> <position>181</position> <quantity>10</quantity> </Point> <Point> <position>182</position> <quantity>10</quantity> </Point> <Point> <position>183</position> <quantity>10</quantity> </Point> <Point> <position>184</position> <quantity>10</quantity> </Point> <Point> <position>185</position> <quantity>10</quantity> </Point> <Point> <position>186</position> <quantity>10</quantity> </Point> <Point> <position>187</position> <quantity>10</quantity> </Point> <Point> <position>188</position> <quantity>10</quantity> </Point> <Point> <position>189</position> <quantity>10</quantity> </Point> <Point> <position>190</position> <quantity>10</quantity> </Point> <Point> <position>191</position> <quantity>10</quantity> </Point> <Point> <position>192</position> <quantity>10</quantity> </Point> <Point> <position>193</position> <quantity>10</quantity> </Point> <Point> <position>194</position> <quantity>10</quantity> </Point> <Point> <position>195</position> <quantity>10</quantity> </Point> <Point> <position>196</position> <quantity>10</quantity> </Point> <Point> <position>197</position> <quantity>10</quantity> </Point> <Point> <position>198</position> <quantity>10</quantity> </Point> <Point> <position>199</position> <quantity>10</quantity> </Point> <Point> <position>200</position> <quantity>10</quantity> </Point> <Point> <position>201</position> <quantity>10</quantity> </Point> <Point> <position>202</position> <quantity>10</quantity> </Point> <Point> <position>203</position> <quantity>10</quantity> </Point> <Point> <position>204</position> <quantity>10</quantity> </Point> <Point> <position>205</position> <quantity>10</quantity> </Point> <Point> <position>206</position> <quantity>10</quantity> </Point> <Point> <position>207</position> <quantity>10</quantity> </Point> <Point> <position>208</position> <quantity>10</quantity> </Point> <Point> <position>209</position> <quantity>10</quantity> </Point> <Point> <position>210</position> <quantity>10</quantity> </Point> <Point> <position>211</position> <quantity>10</quantity> </Point> <Point> <position>212</position> <quantity>10</quantity> </Point> <Point> <position>213</position> <quantity>10</quantity> </Point> <Point> <position>214</position> <quantity>10</quantity> </Point> <Point> <position>215</position> <quantity>10</quantity> </Point> <Point> <position>216</position> <quantity>10</quantity> </Point> <Point> <position>217</position> <quantity>10</quantity> </Point> <Point> <position>218</position> <quantity>10</quantity> </Point> <Point> <position>219</position> <quantity>10</quantity> </Point> <Point> <position>220</position> <quantity>10</quantity> </Point> <Point> <position>221</position> <quantity>10</quantity> </Point> <Point> <position>222</position> <quantity>10</quantity> </Point> <Point> <position>223</position> <quantity>10</quantity> </Point> <Point> <position>224</position> <quantity>10</quantity> </Point> <Point> <position>225</position> <quantity>11</quantity> </Point> <Point> <position>226</position> <quantity>10</quantity> </Point> <Point> <position>227</position> <quantity>10</quantity> </Point> <Point> <position>228</position> <quantity>10</quantity> </Point> <Point> <position>229</position> <quantity>10</quantity> </Point> <Point> <position>230</position> <quantity>10</quantity> </Point> <Point> <position>231</position> <quantity>10</quantity> </Point> <Point> <position>232</position> <quantity>10</quantity> </Point> <Point> <position>233</position> <quantity>10</quantity> </Point> <Point> <position>234</position> <quantity>10</quantity> </Point> <Point> <position>235</position> <quantity>11</quantity> </Point> <Point> <position>236</position> <quantity>11</quantity> </Point> <Point> <position>237</position> <quantity>11</quantity> </Point> <Point> <position>238</position> <quantity>11</quantity> </Point> <Point> <position>239</position> <quantity>11</quantity> </Point> <Point> <position>240</position> <quantity>11</quantity> </Point> <Point> <position>241</position> <quantity>15</quantity> </Point> <Point> <position>242</position> <quantity>13</quantity> </Point> <Point> <position>243</position> <quantity>12</quantity> </Point> <Point> <position>244</position> <quantity>13</quantity> </Point> <Point> <position>245</position> <quantity>14</quantity> </Point> <Point> <position>246</position> <quantity>12</quantity> </Point> <Point> <position>247</position> <quantity>14</quantity> </Point> <Point> <position>248</position> <quantity>12</quantity> </Point> <Point> <position>249</position> <quantity>14</quantity> </Point> <Point> <position>250</position> <quantity>14</quantity> </Point> <Point> <position>251</position> <quantity>12</quantity> </Point> <Point> <position>252</position> <quantity>14</quantity> </Point> <Point> <position>253</position> <quantity>14</quantity> </Point> <Point> <position>254</position> <quantity>13</quantity> </Point> <Point> <position>255</position> <quantity>12</quantity> </Point> <Point> <position>256</position> <quantity>14</quantity> </Point> <Point> <position>257</position> <quantity>12</quantity> </Point> <Point> <position>258</position> <quantity>14</quantity> </Point> <Point> <position>259</position> <quantity>11</quantity> </Point> <Point> <position>260</position> <quantity>11</quantity> </Point> <Point> <position>261</position> <quantity>14</quantity> </Point> <Point> <position>262</position> <quantity>14</quantity> </Point> <Point> <position>263</position> <quantity>11</quantity> </Point> </Period> </TimeSeries> <TimeSeries> <mRID>6</mRID> <businessType>A01</businessType> <objectAggregation>A08</objectAggregation> <inBiddingZone_Domain.mRID codingScheme="A01">10YLU-CEGEDEL-NQ</inBiddingZone_Domain.mRID> <quantity_Measure_Unit.name>MAW</quantity_Measure_Unit.name> <curveType>A01</curveType> <MktPSRType> <psrType>B11</psrType> </MktPSRType> <Period> <timeInterval> <start>2024-05-24T04:00Z</start> <end>2024-05-24T10:00Z</end> </timeInterval> <resolution>PT15M</resolution> <Point> <position>1</position> <quantity>12</quantity> </Point> <Point> <position>2</position> <quantity>12</quantity> </Point> <Point> <position>3</position> <quantity>12</quantity> </Point> <Point> <position>4</position> <quantity>12</quantity> </Point> <Point> <position>5</position> <quantity>14</quantity> </Point> <Point> <position>6</position> <quantity>14</quantity> </Point> <Point> <position>7</position> <quantity>12</quantity> </Point> <Point> <position>8</position> <quantity>14</quantity> </Point> <Point> <position>9</position> <quantity>14</quantity> </Point> <Point> <position>10</position> <quantity>14</quantity> </Point> <Point> <position>11</position> <quantity>13</quantity> </Point> <Point> <position>12</position> <quantity>13</quantity> </Point> <Point> <position>13</position> <quantity>13</quantity> </Point> <Point> <position>14</position> <quantity>13</quantity> </Point> <Point> <position>15</position> <quantity>0</quantity> </Point> <Point> <position>16</position> <quantity>14</quantity> </Point> <Point> <position>17</position> <quantity>14</quantity> </Point> <Point> <position>18</position> <quantity>14</quantity> </Point> <Point> <position>19</position> <quantity>14</quantity> </Point> <Point> <position>20</position> <quantity>12</quantity> </Point> <Point> <position>21</position> <quantity>13</quantity> </Point> <Point> <position>22</position> <quantity>14</quantity> </Point> <Point> <position>23</position> <quantity>14</quantity> </Point> <Point> <position>24</position> <quantity>12</quantity> </Point> </Period> </TimeSeries> <TimeSeries> <mRID>7</mRID> <businessType>A01</businessType> <objectAggregation>A08</objectAggregation> <inBiddingZone_Domain.mRID codingScheme="A01">10YLU-CEGEDEL-NQ</inBiddingZone_Domain.mRID> <quantity_Measure_Unit.name>MAW</quantity_Measure_Unit.name> <curveType>A01</curveType> <MktPSRType> <psrType>B12</psrType> </MktPSRType> <Period> <timeInterval> <start>2024-05-21T10:00Z</start> <end>2024-05-24T03:45Z</end> </timeInterval> <resolution>PT15M</resolution> <Point> <position>1</position> <quantity>5</quantity> </Point> <Point> <position>2</position> <quantity>5</quantity> </Point> <Point> <position>3</position> <quantity>5</quantity> </Point> <Point> <position>4</position> <quantity>5</quantity> </Point> <Point> <position>5</position> <quantity>5</quantity> </Point> <Point> <position>6</position> <quantity>5</quantity> </Point> <Point> <position>7</position> <quantity>5</quantity> </Point> <Point> <position>8</position> <quantity>5</quantity> </Point> <Point> <position>9</position> <quantity>5</quantity> </Point> <Point> <position>10</position> <quantity>5</quantity> </Point> <Point> <position>11</position> <quantity>5</quantity> </Point> <Point> <position>12</position> <quantity>5</quantity> </Point> <Point> <position>13</position> <quantity>5</quantity> </Point> <Point> <position>14</position> <quantity>5</quantity> </Point> <Point> <position>15</position> <quantity>5</quantity> </Point> <Point> <position>16</position> <quantity>5</quantity> </Point> <Point> <position>17</position> <quantity>5</quantity> </Point> <Point> <position>18</position> <quantity>5</quantity> </Point> <Point> <position>19</position> <quantity>5</quantity> </Point> <Point> <position>20</position> <quantity>5</quantity> </Point> <Point> <position>21</position> <quantity>5</quantity> </Point> <Point> <position>22</position> <quantity>5</quantity> </Point> <Point> <position>23</position> <quantity>5</quantity> </Point> <Point> <position>24</position> <quantity>5</quantity> </Point> <Point> <position>25</position> <quantity>5</quantity> </Point> <Point> <position>26</position> <quantity>5</quantity> </Point> <Point> <position>27</position> <quantity>5</quantity> </Point> <Point> <position>28</position> <quantity>5</quantity> </Point> <Point> <position>29</position> <quantity>5</quantity> </Point> <Point> <position>30</position> <quantity>5</quantity> </Point> <Point> <position>31</position> <quantity>5</quantity> </Point> <Point> <position>32</position> <quantity>5</quantity> </Point> <Point> <position>33</position> <quantity>5</quantity> </Point> <Point> <position>34</position> <quantity>5</quantity> </Point> <Point> <position>35</position> <quantity>5</quantity> </Point> <Point> <position>36</position> <quantity>5</quantity> </Point> <Point> <position>37</position> <quantity>5</quantity> </Point> <Point> <position>38</position> <quantity>5</quantity> </Point> <Point> <position>39</position> <quantity>5</quantity> </Point> <Point> <position>40</position> <quantity>5</quantity> </Point> <Point> <position>41</position> <quantity>5</quantity> </Point> <Point> <position>42</position> <quantity>5</quantity> </Point> <Point> <position>43</position> <quantity>5</quantity> </Point> <Point> <position>44</position> <quantity>5</quantity> </Point> <Point> <position>45</position> <quantity>5</quantity> </Point> <Point> <position>46</position> <quantity>5</quantity> </Point> <Point> <position>47</position> <quantity>5</quantity> </Point> <Point> <position>48</position> <quantity>5</quantity> </Point> <Point> <position>49</position> <quantity>5</quantity> </Point> <Point> <position>50</position> <quantity>5</quantity> </Point> <Point> <position>51</position> <quantity>5</quantity> </Point> <Point> <position>52</position> <quantity>5</quantity> </Point> <Point> <position>53</position> <quantity>5</quantity> </Point> <Point> <position>54</position> <quantity>5</quantity> </Point> <Point> <position>55</position> <quantity>5</quantity> </Point> <Point> <position>56</position> <quantity>5</quantity> </Point> <Point> <position>57</position> <quantity>5</quantity> </Point> <Point> <position>58</position> <quantity>5</quantity> </Point> <Point> <position>59</position> <quantity>5</quantity> </Point> <Point> <position>60</position> <quantity>5</quantity> </Point> <Point> <position>61</position> <quantity>5</quantity> </Point> <Point> <position>62</position> <quantity>5</quantity> </Point> <Point> <position>63</position> <quantity>5</quantity> </Point> <Point> <position>64</position> <quantity>5</quantity> </Point> <Point> <position>65</position> <quantity>5</quantity> </Point> <Point> <position>66</position> <quantity>5</quantity> </Point> <Point> <position>67</position> <quantity>5</quantity> </Point> <Point> <position>68</position> <quantity>5</quantity> </Point> <Point> <position>69</position> <quantity>5</quantity> </Point> <Point> <position>70</position> <quantity>5</quantity> </Point> <Point> <position>71</position> <quantity>5</quantity> </Point> <Point> <position>72</position> <quantity>5</quantity> </Point> <Point> <position>73</position> <quantity>5</quantity> </Point> <Point> <position>74</position> <quantity>5</quantity> </Point> <Point> <position>75</position> <quantity>5</quantity> </Point> <Point> <position>76</position> <quantity>5</quantity> </Point> <Point> <position>77</position> <quantity>5</quantity> </Point> <Point> <position>78</position> <quantity>5</quantity> </Point> <Point> <position>79</position> <quantity>5</quantity> </Point> <Point> <position>80</position> <quantity>5</quantity> </Point> <Point> <position>81</position> <quantity>5</quantity> </Point> <Point> <position>82</position> <quantity>5</quantity> </Point> <Point> <position>83</position> <quantity>5</quantity> </Point> <Point> <position>84</position> <quantity>5</quantity> </Point> <Point> <position>85</position> <quantity>5</quantity> </Point> <Point> <position>86</position> <quantity>5</quantity> </Point> <Point> <position>87</position> <quantity>5</quantity> </Point> <Point> <position>88</position> <quantity>5</quantity> </Point> <Point> <position>89</position> <quantity>5</quantity> </Point> <Point> <position>90</position> <quantity>5</quantity> </Point> <Point> <position>91</position> <quantity>5</quantity> </Point> <Point> <position>92</position> <quantity>5</quantity> </Point> <Point> <position>93</position> <quantity>5</quantity> </Point> <Point> <position>94</position> <quantity>5</quantity> </Point> <Point> <position>95</position> <quantity>5</quantity> </Point> <Point> <position>96</position> <quantity>5</quantity> </Point> <Point> <position>97</position> <quantity>5</quantity> </Point> <Point> <position>98</position> <quantity>5</quantity> </Point> <Point> <position>99</position> <quantity>5</quantity> </Point> <Point> <position>100</position> <quantity>5</quantity> </Point> <Point> <position>101</position> <quantity>5</quantity> </Point> <Point> <position>102</position> <quantity>5</quantity> </Point> <Point> <position>103</position> <quantity>5</quantity> </Point> <Point> <position>104</position> <quantity>5</quantity> </Point> <Point> <position>105</position> <quantity>5</quantity> </Point> <Point> <position>106</position> <quantity>5</quantity> </Point> <Point> <position>107</position> <quantity>5</quantity> </Point> <Point> <position>108</position> <quantity>5</quantity> </Point> <Point> <position>109</position> <quantity>5</quantity> </Point> <Point> <position>110</position> <quantity>5</quantity> </Point> <Point> <position>111</position> <quantity>5</quantity> </Point> <Point> <position>112</position> <quantity>5</quantity> </Point> <Point> <position>113</position> <quantity>5</quantity> </Point> <Point> <position>114</position> <quantity>5</quantity> </Point> <Point> <position>115</position> <quantity>5</quantity> </Point> <Point> <position>116</position> <quantity>5</quantity> </Point> <Point> <position>117</position> <quantity>5</quantity> </Point> <Point> <position>118</position> <quantity>5</quantity> </Point> <Point> <position>119</position> <quantity>5</quantity> </Point> <Point> <position>120</position> <quantity>5</quantity> </Point> <Point> <position>121</position> <quantity>5</quantity> </Point> <Point> <position>122</position> <quantity>5</quantity> </Point> <Point> <position>123</position> <quantity>5</quantity> </Point> <Point> <position>124</position> <quantity>5</quantity> </Point> <Point> <position>125</position> <quantity>5</quantity> </Point> <Point> <position>126</position> <quantity>5</quantity> </Point> <Point> <position>127</position> <quantity>5</quantity> </Point> <Point> <position>128</position> <quantity>5</quantity> </Point> <Point> <position>129</position> <quantity>5</quantity> </Point> <Point> <position>130</position> <quantity>5</quantity> </Point> <Point> <position>131</position> <quantity>5</quantity> </Point> <Point> <position>132</position> <quantity>5</quantity> </Point> <Point> <position>133</position> <quantity>5</quantity> </Point> <Point> <position>134</position> <quantity>5</quantity> </Point> <Point> <position>135</position> <quantity>5</quantity> </Point> <Point> <position>136</position> <quantity>5</quantity> </Point> <Point> <position>137</position> <quantity>5</quantity> </Point> <Point> <position>138</position> <quantity>5</quantity> </Point> <Point> <position>139</position> <quantity>5</quantity> </Point> <Point> <position>140</position> <quantity>5</quantity> </Point> <Point> <position>141</position> <quantity>5</quantity> </Point> <Point> <position>142</position> <quantity>5</quantity> </Point> <Point> <position>143</position> <quantity>5</quantity> </Point> <Point> <position>144</position> <quantity>5</quantity> </Point> <Point> <position>145</position> <quantity>5</quantity> </Point> <Point> <position>146</position> <quantity>5</quantity> </Point> <Point> <position>147</position> <quantity>5</quantity> </Point> <Point> <position>148</position> <quantity>5</quantity> </Point> <Point> <position>149</position> <quantity>5</quantity> </Point> <Point> <position>150</position> <quantity>5</quantity> </Point> <Point> <position>151</position> <quantity>5</quantity> </Point> <Point> <position>152</position> <quantity>5</quantity> </Point> <Point> <position>153</position> <quantity>5</quantity> </Point> <Point> <position>154</position> <quantity>5</quantity> </Point> <Point> <position>155</position> <quantity>5</quantity> </Point> <Point> <position>156</position> <quantity>5</quantity> </Point> <Point> <position>157</position> <quantity>5</quantity> </Point> <Point> <position>158</position> <quantity>5</quantity> </Point> <Point> <position>159</position> <quantity>5</quantity> </Point> <Point> <position>160</position> <quantity>5</quantity> </Point> <Point> <position>161</position> <quantity>5</quantity> </Point> <Point> <position>162</position> <quantity>5</quantity> </Point> <Point> <position>163</position> <quantity>5</quantity> </Point> <Point> <position>164</position> <quantity>5</quantity> </Point> <Point> <position>165</position> <quantity>5</quantity> </Point> <Point> <position>166</position> <quantity>5</quantity> </Point> <Point> <position>167</position> <quantity>5</quantity> </Point> <Point> <position>168</position> <quantity>5</quantity> </Point> <Point> <position>169</position> <quantity>5</quantity> </Point> <Point> <position>170</position> <quantity>5</quantity> </Point> <Point> <position>171</position> <quantity>5</quantity> </Point> <Point> <position>172</position> <quantity>5</quantity> </Point> <Point> <position>173</position> <quantity>5</quantity> </Point> <Point> <position>174</position> <quantity>5</quantity> </Point> <Point> <position>175</position> <quantity>5</quantity> </Point> <Point> <position>176</position> <quantity>5</quantity> </Point> <Point> <position>177</position> <quantity>5</quantity> </Point> <Point> <position>178</position> <quantity>5</quantity> </Point> <Point> <position>179</position> <quantity>5</quantity> </Point> <Point> <position>180</position> <quantity>5</quantity> </Point> <Point> <position>181</position> <quantity>5</quantity> </Point> <Point> <position>182</position> <quantity>5</quantity> </Point> <Point> <position>183</position> <quantity>5</quantity> </Point> <Point> <position>184</position> <quantity>5</quantity> </Point> <Point> <position>185</position> <quantity>5</quantity> </Point> <Point> <position>186</position> <quantity>5</quantity> </Point> <Point> <position>187</position> <quantity>5</quantity> </Point> <Point> <position>188</position> <quantity>5</quantity> </Point> <Point> <position>189</position> <quantity>5</quantity> </Point> <Point> <position>190</position> <quantity>5</quantity> </Point> <Point> <position>191</position> <quantity>5</quantity> </Point> <Point> <position>192</position> <quantity>5</quantity> </Point> <Point> <position>193</position> <quantity>5</quantity> </Point> <Point> <position>194</position> <quantity>5</quantity> </Point> <Point> <position>195</position> <quantity>5</quantity> </Point> <Point> <position>196</position> <quantity>5</quantity> </Point> <Point> <position>197</position> <quantity>5</quantity> </Point> <Point> <position>198</position> <quantity>5</quantity> </Point> <Point> <position>199</position> <quantity>5</quantity> </Point> <Point> <position>200</position> <quantity>5</quantity> </Point> <Point> <position>201</position> <quantity>5</quantity> </Point> <Point> <position>202</position> <quantity>5</quantity> </Point> <Point> <position>203</position> <quantity>5</quantity> </Point> <Point> <position>204</position> <quantity>5</quantity> </Point> <Point> <position>205</position> <quantity>5</quantity> </Point> <Point> <position>206</position> <quantity>5</quantity> </Point> <Point> <position>207</position> <quantity>5</quantity> </Point> <Point> <position>208</position> <quantity>5</quantity> </Point> <Point> <position>209</position> <quantity>5</quantity> </Point> <Point> <position>210</position> <quantity>5</quantity> </Point> <Point> <position>211</position> <quantity>5</quantity> </Point> <Point> <position>212</position> <quantity>5</quantity> </Point> <Point> <position>213</position> <quantity>5</quantity> </Point> <Point> <position>214</position> <quantity>5</quantity> </Point> <Point> <position>215</position> <quantity>5</quantity> </Point> <Point> <position>216</position> <quantity>5</quantity> </Point> <Point> <position>217</position> <quantity>5</quantity> </Point> <Point> <position>218</position> <quantity>5</quantity> </Point> <Point> <position>219</position> <quantity>5</quantity> </Point> <Point> <position>220</position> <quantity>5</quantity> </Point> <Point> <position>221</position> <quantity>5</quantity> </Point> <Point> <position>222</position> <quantity>5</quantity> </Point> <Point> <position>223</position> <quantity>5</quantity> </Point> <Point> <position>224</position> <quantity>5</quantity> </Point> <Point> <position>225</position> <quantity>5</quantity> </Point> <Point> <position>226</position> <quantity>5</quantity> </Point> <Point> <position>227</position> <quantity>5</quantity> </Point> <Point> <position>228</position> <quantity>5</quantity> </Point> <Point> <position>229</position> <quantity>5</quantity> </Point> <Point> <position>230</position> <quantity>5</quantity> </Point> <Point> <position>231</position> <quantity>5</quantity> </Point> <Point> <position>232</position> <quantity>5</quantity> </Point> <Point> <position>233</position> <quantity>5</quantity> </Point> <Point> <position>234</position> <quantity>5</quantity> </Point> <Point> <position>235</position> <quantity>5</quantity> </Point> <Point> <position>236</position> <quantity>5</quantity> </Point> <Point> <position>237</position> <quantity>5</quantity> </Point> <Point> <position>238</position> <quantity>5</quantity> </Point> <Point> <position>239</position> <quantity>5</quantity> </Point> <Point> <position>240</position> <quantity>5</quantity> </Point> <Point> <position>241</position> <quantity>0</quantity> </Point> <Point> <position>242</position> <quantity>0</quantity> </Point> <Point> <position>243</position> <quantity>0</quantity> </Point> <Point> <position>244</position> <quantity>0</quantity> </Point> <Point> <position>245</position> <quantity>0</quantity> </Point> <Point> <position>246</position> <quantity>0</quantity> </Point> <Point> <position>247</position> <quantity>0</quantity> </Point> <Point> <position>248</position> <quantity>0</quantity> </Point> <Point> <position>249</position> <quantity>0</quantity> </Point> <Point> <position>250</position> <quantity>0</quantity> </Point> <Point> <position>251</position> <quantity>0</quantity> </Point> <Point> <position>252</position> <quantity>0</quantity> </Point> <Point> <position>253</position> <quantity>0</quantity> </Point> <Point> <position>254</position> <quantity>0</quantity> </Point> <Point> <position>255</position> <quantity>0</quantity> </Point> <Point> <position>256</position> <quantity>0</quantity> </Point> <Point> <position>257</position> <quantity>0</quantity> </Point> <Point> <position>258</position> <quantity>0</quantity> </Point> <Point> <position>259</position> <quantity>0</quantity> </Point> <Point> <position>260</position> <quantity>0</quantity> </Point> <Point> <position>261</position> <quantity>0</quantity> </Point> <Point> <position>262</position> <quantity>0</quantity> </Point> <Point> <position>263</position> <quantity>0</quantity> </Point> </Period> </TimeSeries> <TimeSeries> <mRID>8</mRID> <businessType>A01</businessType> <objectAggregation>A08</objectAggregation> <inBiddingZone_Domain.mRID codingScheme="A01">10YLU-CEGEDEL-NQ</inBiddingZone_Domain.mRID> <quantity_Measure_Unit.name>MAW</quantity_Measure_Unit.name> <curveType>A01</curveType> <MktPSRType> <psrType>B12</psrType> </MktPSRType> <Period> <timeInterval> <start>2024-05-24T04:00Z</start> <end>2024-05-24T10:00Z</end> </timeInterval> <resolution>PT15M</resolution> <Point> <position>1</position> <quantity>0</quantity> </Point> <Point> <position>2</position> <quantity>0</quantity> </Point> <Point> <position>3</position> <quantity>0</quantity> </Point> <Point> <position>4</position> <quantity>0</quantity> </Point> <Point> <position>5</position> <quantity>0</quantity> </Point> <Point> <position>6</position> <quantity>0</quantity> </Point> <Point> <position>7</position> <quantity>0</quantity> </Point> <Point> <position>8</position> <quantity>0</quantity> </Point> <Point> <position>9</position> <quantity>0</quantity> </Point> <Point> <position>10</position> <quantity>0</quantity> </Point> <Point> <position>11</position> <quantity>0</quantity> </Point> <Point> <position>12</position> <quantity>0</quantity> </Point> <Point> <position>13</position> <quantity>0</quantity> </Point> <Point> <position>14</position> <quantity>0</quantity> </Point> <Point> <position>15</position> <quantity>0</quantity> </Point> <Point> <position>16</position> <quantity>0</quantity> </Point> <Point> <position>17</position> <quantity>0</quantity> </Point> <Point> <position>18</position> <quantity>0</quantity> </Point> <Point> <position>19</position> <quantity>0</quantity> </Point> <Point> <position>20</position> <quantity>0</quantity> </Point> <Point> <position>21</position> <quantity>0</quantity> </Point> <Point> <position>22</position> <quantity>0</quantity> </Point> <Point> <position>23</position> <quantity>0</quantity> </Point> <Point> <position>24</position> <quantity>0</quantity> </Point> </Period> </TimeSeries> <TimeSeries> <mRID>9</mRID> <businessType>A94</businessType> <objectAggregation>A08</objectAggregation> <inBiddingZone_Domain.mRID codingScheme="A01">10YLU-CEGEDEL-NQ</inBiddingZone_Domain.mRID> <quantity_Measure_Unit.name>MAW</quantity_Measure_Unit.name> <curveType>A01</curveType> <MktPSRType> <psrType>B16</psrType> </MktPSRType> <Period> <timeInterval> <start>2024-05-21T10:00Z</start> <end>2024-05-24T10:00Z</end> </timeInterval> <resolution>PT15M</resolution> <Point> <position>1</position> <quantity>51</quantity> </Point> <Point> <position>2</position> <quantity>50</quantity> </Point> <Point> <position>3</position> <quantity>51</quantity> </Point> <Point> <position>4</position> <quantity>51</quantity> </Point> <Point> <position>5</position> <quantity>47</quantity> </Point> <Point> <position>6</position> <quantity>46</quantity> </Point> <Point> <position>7</position> <quantity>44</quantity> </Point> <Point> <position>8</position> <quantity>42</quantity> </Point> <Point> <position>9</position> <quantity>37</quantity> </Point> <Point> <position>10</position> <quantity>36</quantity> </Point> <Point> <position>11</position> <quantity>39</quantity> </Point> <Point> <position>12</position> <quantity>41</quantity> </Point> <Point> <position>13</position> <quantity>46</quantity> </Point> <Point> <position>14</position> <quantity>48</quantity> </Point> <Point> <position>15</position> <quantity>52</quantity> </Point> <Point> <position>16</position> <quantity>54</quantity> </Point> <Point> <position>17</position> <quantity>59</quantity> </Point> <Point> <position>18</position> <quantity>62</quantity> </Point> <Point> <position>19</position> <quantity>65</quantity> </Point> <Point> <position>20</position> <quantity>68</quantity> </Point> <Point> <position>21</position> <quantity>67</quantity> </Point> <Point> <position>22</position> <quantity>64</quantity> </Point> <Point> <position>23</position> <quantity>56</quantity> </Point> <Point> <position>24</position> <quantity>47</quantity> </Point> <Point> <position>25</position> <quantity>42</quantity> </Point> <Point> <position>26</position> <quantity>42</quantity> </Point> <Point> <position>27</position> <quantity>43</quantity> </Point> <Point> <position>28</position> <quantity>40</quantity> </Point> <Point> <position>29</position> <quantity>34</quantity> </Point> <Point> <position>30</position> <quantity>28</quantity> </Point> <Point> <position>31</position> <quantity>22</quantity> </Point> <Point> <position>32</position> <quantity>18</quantity> </Point> <Point> <position>33</position> <quantity>13</quantity> </Point> <Point> <position>34</position> <quantity>9</quantity> </Point> <Point> <position>35</position> <quantity>6</quantity> </Point> <Point> <position>36</position> <quantity>3</quantity> </Point> <Point> <position>37</position> <quantity>1</quantity> </Point> <Point> <position>38</position> <quantity>0</quantity> </Point> <Point> <position>39</position> <quantity>0</quantity> </Point> <Point> <position>40</position> <quantity>0</quantity> </Point> <Point> <position>41</position> <quantity>0</quantity> </Point> <Point> <position>42</position> <quantity>0</quantity> </Point> <Point> <position>43</position> <quantity>0</quantity> </Point> <Point> <position>44</position> <quantity>0</quantity> </Point> <Point> <position>45</position> <quantity>0</quantity> </Point> <Point> <position>46</position> <quantity>0</quantity> </Point> <Point> <position>47</position> <quantity>0</quantity> </Point> <Point> <position>48</position> <quantity>0</quantity> </Point> <Point> <position>49</position> <quantity>0</quantity> </Point> <Point> <position>50</position> <quantity>0</quantity> </Point> <Point> <position>51</position> <quantity>0</quantity> </Point> <Point> <position>52</position> <quantity>0</quantity> </Point> <Point> <position>53</position> <quantity>0</quantity> </Point> <Point> <position>54</position> <quantity>0</quantity> </Point> <Point> <position>55</position> <quantity>0</quantity> </Point> <Point> <position>56</position> <quantity>0</quantity> </Point> <Point> <position>57</position> <quantity>0</quantity> </Point> <Point> <position>58</position> <quantity>0</quantity> </Point> <Point> <position>59</position> <quantity>0</quantity> </Point> <Point> <position>60</position> <quantity>0</quantity> </Point> <Point> <position>61</position> <quantity>0</quantity> </Point> <Point> <position>62</position> <quantity>0</quantity> </Point> <Point> <position>63</position> <quantity>0</quantity> </Point> <Point> <position>64</position> <quantity>0</quantity> </Point> <Point> <position>65</position> <quantity>0</quantity> </Point> <Point> <position>66</position> <quantity>0</quantity> </Point> <Point> <position>67</position> <quantity>0</quantity> </Point> <Point> <position>68</position> <quantity>0</quantity> </Point> <Point> <position>69</position> <quantity>0</quantity> </Point> <Point> <position>70</position> <quantity>0</quantity> </Point> <Point> <position>71</position> <quantity>0</quantity> </Point> <Point> <position>72</position> <quantity>0</quantity> </Point> <Point> <position>73</position> <quantity>1</quantity> </Point> <Point> <position>74</position> <quantity>2</quantity> </Point> <Point> <position>75</position> <quantity>4</quantity> </Point> <Point> <position>76</position> <quantity>6</quantity> </Point> <Point> <position>77</position> <quantity>7</quantity> </Point> <Point> <position>78</position> <quantity>7</quantity> </Point> <Point> <position>79</position> <quantity>9</quantity> </Point> <Point> <position>80</position> <quantity>11</quantity> </Point> <Point> <position>81</position> <quantity>12</quantity> </Point> <Point> <position>82</position> <quantity>16</quantity> </Point> <Point> <position>83</position> <quantity>20</quantity> </Point> <Point> <position>84</position> <quantity>23</quantity> </Point> <Point> <position>85</position> <quantity>27</quantity> </Point> <Point> <position>86</position> <quantity>31</quantity> </Point> <Point> <position>87</position> <quantity>38</quantity> </Point> <Point> <position>88</position> <quantity>44</quantity> </Point> <Point> <position>89</position> <quantity>45</quantity> </Point> <Point> <position>90</position> <quantity>47</quantity> </Point> <Point> <position>91</position> <quantity>48</quantity> </Point> <Point> <position>92</position> <quantity>50</quantity> </Point> <Point> <position>93</position> <quantity>55</quantity> </Point> <Point> <position>94</position> <quantity>58</quantity> </Point> <Point> <position>95</position> <quantity>61</quantity> </Point> <Point> <position>96</position> <quantity>63</quantity> </Point> <Point> <position>97</position> <quantity>71</quantity> </Point> <Point> <position>98</position> <quantity>65</quantity> </Point> <Point> <position>99</position> <quantity>72</quantity> </Point> <Point> <position>100</position> <quantity>82</quantity> </Point> <Point> <position>101</position> <quantity>74</quantity> </Point> <Point> <position>102</position> <quantity>84</quantity> </Point> <Point> <position>103</position> <quantity>94</quantity> </Point> <Point> <position>104</position> <quantity>103</quantity> </Point> <Point> <position>105</position> <quantity>116</quantity> </Point> <Point> <position>106</position> <quantity>139</quantity> </Point> <Point> <position>107</position> <quantity>165</quantity> </Point> <Point> <position>108</position> <quantity>180</quantity> </Point> <Point> <position>109</position> <quantity>177</quantity> </Point> <Point> <position>110</position> <quantity>164</quantity> </Point> <Point> <position>111</position> <quantity>158</quantity> </Point> <Point> <position>112</position> <quantity>151</quantity> </Point> <Point> <position>113</position> <quantity>140</quantity> </Point> <Point> <position>114</position> <quantity>132</quantity> </Point> <Point> <position>115</position> <quantity>122</quantity> </Point> <Point> <position>116</position> <quantity>116</quantity> </Point> <Point> <position>117</position> <quantity>115</quantity> </Point> <Point> <position>118</position> <quantity>111</quantity> </Point> <Point> <position>119</position> <quantity>103</quantity> </Point> <Point> <position>120</position> <quantity>101</quantity> </Point> <Point> <position>121</position> <quantity>90</quantity> </Point> <Point> <position>122</position> <quantity>77</quantity> </Point> <Point> <position>123</position> <quantity>57</quantity> </Point> <Point> <position>124</position> <quantity>46</quantity> </Point> <Point> <position>125</position> <quantity>42</quantity> </Point> <Point> <position>126</position> <quantity>39</quantity> </Point> <Point> <position>127</position> <quantity>28</quantity> </Point> <Point> <position>128</position> <quantity>19</quantity> </Point> <Point> <position>129</position> <quantity>14</quantity> </Point> <Point> <position>130</position> <quantity>13</quantity> </Point> <Point> <position>131</position> <quantity>11</quantity> </Point> <Point> <position>132</position> <quantity>7</quantity> </Point> <Point> <position>133</position> <quantity>3</quantity> </Point> <Point> <position>134</position> <quantity>1</quantity> </Point> <Point> <position>135</position> <quantity>0</quantity> </Point> <Point> <position>136</position> <quantity>0</quantity> </Point> <Point> <position>137</position> <quantity>0</quantity> </Point> <Point> <position>138</position> <quantity>0</quantity> </Point> <Point> <position>139</position> <quantity>0</quantity> </Point> <Point> <position>140</position> <quantity>0</quantity> </Point> <Point> <position>141</position> <quantity>0</quantity> </Point> <Point> <position>142</position> <quantity>0</quantity> </Point> <Point> <position>143</position> <quantity>0</quantity> </Point> <Point> <position>144</position> <quantity>0</quantity> </Point> <Point> <position>145</position> <quantity>0</quantity> </Point> <Point> <position>146</position> <quantity>0</quantity> </Point> <Point> <position>147</position> <quantity>0</quantity> </Point> <Point> <position>148</position> <quantity>0</quantity> </Point> <Point> <position>149</position> <quantity>0</quantity> </Point> <Point> <position>150</position> <quantity>0</quantity> </Point> <Point> <position>151</position> <quantity>0</quantity> </Point> <Point> <position>152</position> <quantity>0</quantity> </Point> <Point> <position>153</position> <quantity>0</quantity> </Point> <Point> <position>154</position> <quantity>0</quantity> </Point> <Point> <position>155</position> <quantity>0</quantity> </Point> <Point> <position>156</position> <quantity>0</quantity> </Point> <Point> <position>157</position> <quantity>0</quantity> </Point> <Point> <position>158</position> <quantity>0</quantity> </Point> <Point> <position>159</position> <quantity>0</quantity> </Point> <Point> <position>160</position> <quantity>0</quantity> </Point> <Point> <position>161</position> <quantity>0</quantity> </Point> <Point> <position>162</position> <quantity>0</quantity> </Point> <Point> <position>163</position> <quantity>0</quantity> </Point> <Point> <position>164</position> <quantity>0</quantity> </Point> <Point> <position>165</position> <quantity>0</quantity> </Point> <Point> <position>166</position> <quantity>0</quantity> </Point> <Point> <position>167</position> <quantity>0</quantity> </Point> <Point> <position>168</position> <quantity>1</quantity> </Point> <Point> <position>169</position> <quantity>4</quantity> </Point> <Point> <position>170</position> <quantity>7</quantity> </Point> <Point> <position>171</position> <quantity>12</quantity> </Point> <Point> <position>172</position> <quantity>19</quantity> </Point> <Point> <position>173</position> <quantity>27</quantity> </Point> <Point> <position>174</position> <quantity>36</quantity> </Point> <Point> <position>175</position> <quantity>47</quantity> </Point> <Point> <position>176</position> <quantity>58</quantity> </Point> <Point> <position>177</position> <quantity>70</quantity> </Point> <Point> <position>178</position> <quantity>82</quantity> </Point> <Point> <position>179</position> <quantity>95</quantity> </Point> <Point> <position>180</position> <quantity>109</quantity> </Point> <Point> <position>181</position> <quantity>122</quantity> </Point> <Point> <position>182</position> <quantity>133</quantity> </Point> <Point> <position>183</position> <quantity>142</quantity> </Point> <Point> <position>184</position> <quantity>151</quantity> </Point> <Point> <position>185</position> <quantity>158</quantity> </Point> <Point> <position>186</position> <quantity>157</quantity> </Point> <Point> <position>187</position> <quantity>162</quantity> </Point> <Point> <position>188</position> <quantity>152</quantity> </Point> <Point> <position>189</position> <quantity>150</quantity> </Point> <Point> <position>190</position> <quantity>152</quantity> </Point> <Point> <position>191</position> <quantity>151</quantity> </Point> <Point> <position>192</position> <quantity>152</quantity> </Point> <Point> <position>193</position> <quantity>157</quantity> </Point> <Point> <position>194</position> <quantity>164</quantity> </Point> <Point> <position>195</position> <quantity>164</quantity> </Point> <Point> <position>196</position> <quantity>159</quantity> </Point> <Point> <position>197</position> <quantity>154</quantity> </Point> <Point> <position>198</position> <quantity>146</quantity> </Point> <Point> <position>199</position> <quantity>138</quantity> </Point> <Point> <position>200</position> <quantity>139</quantity> </Point> <Point> <position>201</position> <quantity>143</quantity> </Point> <Point> <position>202</position> <quantity>146</quantity> </Point> <Point> <position>203</position> <quantity>141</quantity> </Point> <Point> <position>204</position> <quantity>134</quantity> </Point> <Point> <position>205</position> <quantity>125</quantity> </Point> <Point> <position>206</position> <quantity>122</quantity> </Point> <Point> <position>207</position> <quantity>124</quantity> </Point> <Point> <position>208</position> <quantity>129</quantity> </Point> <Point> <position>209</position> <quantity>132</quantity> </Point> <Point> <position>210</position> <quantity>124</quantity> </Point> <Point> <position>211</position> <quantity>118</quantity> </Point> <Point> <position>212</position> <quantity>112</quantity> </Point> <Point> <position>213</position> <quantity>105</quantity> </Point> <Point> <position>214</position> <quantity>99</quantity> </Point> <Point> <position>215</position> <quantity>88</quantity> </Point> <Point> <position>216</position> <quantity>75</quantity> </Point> <Point> <position>217</position> <quantity>65</quantity> </Point> <Point> <position>218</position> <quantity>55</quantity> </Point> <Point> <position>219</position> <quantity>44</quantity> </Point> <Point> <position>220</position> <quantity>35</quantity> </Point> <Point> <position>221</position> <quantity>28</quantity> </Point> <Point> <position>222</position> <quantity>22</quantity> </Point> <Point> <position>223</position> <quantity>18</quantity> </Point> <Point> <position>224</position> <quantity>13</quantity> </Point> <Point> <position>225</position> <quantity>9</quantity> </Point> <Point> <position>226</position> <quantity>5</quantity> </Point> <Point> <position>227</position> <quantity>3</quantity> </Point> <Point> <position>228</position> <quantity>1</quantity> </Point> <Point> <position>229</position> <quantity>1</quantity> </Point> <Point> <position>230</position> <quantity>0</quantity> </Point> <Point> <position>231</position> <quantity>0</quantity> </Point> <Point> <position>232</position> <quantity>0</quantity> </Point> <Point> <position>233</position> <quantity>0</quantity> </Point> <Point> <position>234</position> <quantity>0</quantity> </Point> <Point> <position>235</position> <quantity>0</quantity> </Point> <Point> <position>236</position> <quantity>0</quantity> </Point> <Point> <position>237</position> <quantity>0</quantity> </Point> <Point> <position>238</position> <quantity>0</quantity> </Point> <Point> <position>239</position> <quantity>0</quantity> </Point> <Point> <position>240</position> <quantity>0</quantity> </Point> <Point> <position>241</position> <quantity>0</quantity> </Point> <Point> <position>242</position> <quantity>0</quantity> </Point> <Point> <position>243</position> <quantity>0</quantity> </Point> <Point> <position>244</position> <quantity>0</quantity> </Point> <Point> <position>245</position> <quantity>0</quantity> </Point> <Point> <position>246</position> <quantity>0</quantity> </Point> <Point> <position>247</position> <quantity>0</quantity> </Point> <Point> <position>248</position> <quantity>0</quantity> </Point> <Point> <position>249</position> <quantity>0</quantity> </Point> <Point> <position>250</position> <quantity>0</quantity> </Point> <Point> <position>251</position> <quantity>0</quantity> </Point> <Point> <position>252</position> <quantity>0</quantity> </Point> <Point> <position>253</position> <quantity>0</quantity> </Point> <Point> <position>254</position> <quantity>0</quantity> </Point> <Point> <position>255</position> <quantity>0</quantity> </Point> <Point> <position>256</position> <quantity>0</quantity> </Point> <Point> <position>257</position> <quantity>0</quantity> </Point> <Point> <position>258</position> <quantity>0</quantity> </Point> <Point> <position>259</position> <quantity>0</quantity> </Point> <Point> <position>260</position> <quantity>0</quantity> </Point> <Point> <position>261</position> <quantity>0</quantity> </Point> <Point> <position>262</position> <quantity>0</quantity> </Point> <Point> <position>263</position> <quantity>0</quantity> </Point> <Point> <position>264</position> <quantity>0</quantity> </Point> <Point> <position>265</position> <quantity>0</quantity> </Point> <Point> <position>266</position> <quantity>0</quantity> </Point> <Point> <position>267</position> <quantity>1</quantity> </Point> <Point> <position>268</position> <quantity>2</quantity> </Point> <Point> <position>269</position> <quantity>2</quantity> </Point> <Point> <position>270</position> <quantity>3</quantity> </Point> <Point> <position>271</position> <quantity>4</quantity> </Point> <Point> <position>272</position> <quantity>5</quantity> </Point> <Point> <position>273</position> <quantity>6</quantity> </Point> <Point> <position>274</position> <quantity>6</quantity> </Point> <Point> <position>275</position> <quantity>7</quantity> </Point> <Point> <position>276</position> <quantity>9</quantity> </Point> <Point> <position>277</position> <quantity>11</quantity> </Point> <Point> <position>278</position> <quantity>13</quantity> </Point> <Point> <position>279</position> <quantity>13</quantity> </Point> <Point> <position>280</position> <quantity>17</quantity> </Point> <Point> <position>281</position> <quantity>21</quantity> </Point> <Point> <position>282</position> <quantity>25</quantity> </Point> <Point> <position>283</position> <quantity>28</quantity> </Point> <Point> <position>284</position> <quantity>29</quantity> </Point> <Point> <position>285</position> <quantity>31</quantity> </Point> <Point> <position>286</position> <quantity>34</quantity> </Point> <Point> <position>287</position> <quantity>38</quantity> </Point> <Point> <position>288</position> <quantity>39</quantity> </Point> </Period> </TimeSeries> <TimeSeries> <mRID>10</mRID> <businessType>A01</businessType> <objectAggregation>A08</objectAggregation> <inBiddingZone_Domain.mRID codingScheme="A01">10YLU-CEGEDEL-NQ</inBiddingZone_Domain.mRID> <quantity_Measure_Unit.name>MAW</quantity_Measure_Unit.name> <curveType>A01</curveType> <MktPSRType> <psrType>B17</psrType> </MktPSRType> <Period> <timeInterval> <start>2024-05-21T10:00Z</start> <end>2024-05-24T03:45Z</end> </timeInterval> <resolution>PT15M</resolution> <Point> <position>1</position> <quantity>13</quantity> </Point> <Point> <position>2</position> <quantity>12</quantity> </Point> <Point> <position>3</position> <quantity>12</quantity> </Point> <Point> <position>4</position> <quantity>13</quantity> </Point> <Point> <position>5</position> <quantity>12</quantity> </Point> <Point> <position>6</position> <quantity>13</quantity> </Point> <Point> <position>7</position> <quantity>13</quantity> </Point> <Point> <position>8</position> <quantity>12</quantity> </Point> <Point> <position>9</position> <quantity>12</quantity> </Point> <Point> <position>10</position> <quantity>12</quantity> </Point> <Point> <position>11</position> <quantity>12</quantity> </Point> <Point> <position>12</position> <quantity>13</quantity> </Point> <Point> <position>13</position> <quantity>12</quantity> </Point> <Point> <position>14</position> <quantity>12</quantity> </Point> <Point> <position>15</position> <quantity>10</quantity> </Point> <Point> <position>16</position> <quantity>13</quantity> </Point> <Point> <position>17</position> <quantity>13</quantity> </Point> <Point> <position>18</position> <quantity>12</quantity> </Point> <Point> <position>19</position> <quantity>13</quantity> </Point> <Point> <position>20</position> <quantity>12</quantity> </Point> <Point> <position>21</position> <quantity>13</quantity> </Point> <Point> <position>22</position> <quantity>12</quantity> </Point> <Point> <position>23</position> <quantity>13</quantity> </Point> <Point> <position>24</position> <quantity>13</quantity> </Point> <Point> <position>25</position> <quantity>13</quantity> </Point> <Point> <position>26</position> <quantity>12</quantity> </Point> <Point> <position>27</position> <quantity>13</quantity> </Point> <Point> <position>28</position> <quantity>12</quantity> </Point> <Point> <position>29</position> <quantity>13</quantity> </Point> <Point> <position>30</position> <quantity>13</quantity> </Point> <Point> <position>31</position> <quantity>13</quantity> </Point> <Point> <position>32</position> <quantity>13</quantity> </Point> <Point> <position>33</position> <quantity>13</quantity> </Point> <Point> <position>34</position> <quantity>13</quantity> </Point> <Point> <position>35</position> <quantity>13</quantity> </Point> <Point> <position>36</position> <quantity>13</quantity> </Point> <Point> <position>37</position> <quantity>13</quantity> </Point> <Point> <position>38</position> <quantity>13</quantity> </Point> <Point> <position>39</position> <quantity>13</quantity> </Point> <Point> <position>40</position> <quantity>13</quantity> </Point> <Point> <position>41</position> <quantity>13</quantity> </Point> <Point> <position>42</position> <quantity>13</quantity> </Point> <Point> <position>43</position> <quantity>13</quantity> </Point> <Point> <position>44</position> <quantity>13</quantity> </Point> <Point> <position>45</position> <quantity>13</quantity> </Point> <Point> <position>46</position> <quantity>13</quantity> </Point> <Point> <position>47</position> <quantity>12</quantity> </Point> <Point> <position>48</position> <quantity>13</quantity> </Point> <Point> <position>49</position> <quantity>13</quantity> </Point> <Point> <position>50</position> <quantity>13</quantity> </Point> <Point> <position>51</position> <quantity>12</quantity> </Point> <Point> <position>52</position> <quantity>12</quantity> </Point> <Point> <position>53</position> <quantity>12</quantity> </Point> <Point> <position>54</position> <quantity>13</quantity> </Point> <Point> <position>55</position> <quantity>13</quantity> </Point> <Point> <position>56</position> <quantity>13</quantity> </Point> <Point> <position>57</position> <quantity>12</quantity> </Point> <Point> <position>58</position> <quantity>11</quantity> </Point> <Point> <position>59</position> <quantity>12</quantity> </Point> <Point> <position>60</position> <quantity>12</quantity> </Point> <Point> <position>61</position> <quantity>12</quantity> </Point> <Point> <position>62</position> <quantity>12</quantity> </Point> <Point> <position>63</position> <quantity>13</quantity> </Point> <Point> <position>64</position> <quantity>12</quantity> </Point> <Point> <position>65</position> <quantity>12</quantity> </Point> <Point> <position>66</position> <quantity>11</quantity> </Point> <Point> <position>67</position> <quantity>12</quantity> </Point> <Point> <position>68</position> <quantity>12</quantity> </Point> <Point> <position>69</position> <quantity>13</quantity> </Point> <Point> <position>70</position> <quantity>12</quantity> </Point> <Point> <position>71</position> <quantity>12</quantity> </Point> <Point> <position>72</position> <quantity>11</quantity> </Point> <Point> <position>73</position> <quantity>12</quantity> </Point> <Point> <position>74</position> <quantity>11</quantity> </Point> <Point> <position>75</position> <quantity>10</quantity> </Point> <Point> <position>76</position> <quantity>10</quantity> </Point> <Point> <position>77</position> <quantity>12</quantity> </Point> <Point> <position>78</position> <quantity>12</quantity> </Point> <Point> <position>79</position> <quantity>11</quantity> </Point> <Point> <position>80</position> <quantity>12</quantity> </Point> <Point> <position>81</position> <quantity>12</quantity> </Point> <Point> <position>82</position> <quantity>12</quantity> </Point> <Point> <position>83</position> <quantity>12</quantity> </Point> <Point> <position>84</position> <quantity>12</quantity> </Point> <Point> <position>85</position> <quantity>12</quantity> </Point> <Point> <position>86</position> <quantity>12</quantity> </Point> <Point> <position>87</position> <quantity>13</quantity> </Point> <Point> <position>88</position> <quantity>12</quantity> </Point> <Point> <position>89</position> <quantity>13</quantity> </Point> <Point> <position>90</position> <quantity>13</quantity> </Point> <Point> <position>91</position> <quantity>13</quantity> </Point> <Point> <position>92</position> <quantity>12</quantity> </Point> <Point> <position>93</position> <quantity>12</quantity> </Point> <Point> <position>94</position> <quantity>12</quantity> </Point> <Point> <position>95</position> <quantity>13</quantity> </Point> <Point> <position>96</position> <quantity>13</quantity> </Point> <Point> <position>97</position> <quantity>12</quantity> </Point> <Point> <position>98</position> <quantity>12</quantity> </Point> <Point> <position>99</position> <quantity>12</quantity> </Point> <Point> <position>100</position> <quantity>12</quantity> </Point> <Point> <position>101</position> <quantity>12</quantity> </Point> <Point> <position>102</position> <quantity>13</quantity> </Point> <Point> <position>103</position> <quantity>13</quantity> </Point> <Point> <position>104</position> <quantity>13</quantity> </Point> <Point> <position>105</position> <quantity>12</quantity> </Point> <Point> <position>106</position> <quantity>12</quantity> </Point> <Point> <position>107</position> <quantity>12</quantity> </Point> <Point> <position>108</position> <quantity>13</quantity> </Point> <Point> <position>109</position> <quantity>13</quantity> </Point> <Point> <position>110</position> <quantity>13</quantity> </Point> <Point> <position>111</position> <quantity>12</quantity> </Point> <Point> <position>112</position> <quantity>11</quantity> </Point> <Point> <position>113</position> <quantity>10</quantity> </Point> <Point> <position>114</position> <quantity>12</quantity> </Point> <Point> <position>115</position> <quantity>12</quantity> </Point> <Point> <position>116</position> <quantity>11</quantity> </Point> <Point> <position>117</position> <quantity>10</quantity> </Point> <Point> <position>118</position> <quantity>12</quantity> </Point> <Point> <position>119</position> <quantity>13</quantity> </Point> <Point> <position>120</position> <quantity>12</quantity> </Point> <Point> <position>121</position> <quantity>11</quantity> </Point> <Point> <position>122</position> <quantity>10</quantity> </Point> <Point> <position>123</position> <quantity>10</quantity> </Point> <Point> <position>124</position> <quantity>12</quantity> </Point> <Point> <position>125</position> <quantity>13</quantity> </Point> <Point> <position>126</position> <quantity>13</quantity> </Point> <Point> <position>127</position> <quantity>12</quantity> </Point> <Point> <position>128</position> <quantity>12</quantity> </Point> <Point> <position>129</position> <quantity>13</quantity> </Point> <Point> <position>130</position> <quantity>13</quantity> </Point> <Point> <position>131</position> <quantity>12</quantity> </Point> <Point> <position>132</position> <quantity>12</quantity> </Point> <Point> <position>133</position> <quantity>13</quantity> </Point> <Point> <position>134</position> <quantity>13</quantity> </Point> <Point> <position>135</position> <quantity>13</quantity> </Point> <Point> <position>136</position> <quantity>13</quantity> </Point> <Point> <position>137</position> <quantity>12</quantity> </Point> <Point> <position>138</position> <quantity>13</quantity> </Point> <Point> <position>139</position> <quantity>12</quantity> </Point> <Point> <position>140</position> <quantity>13</quantity> </Point> <Point> <position>141</position> <quantity>13</quantity> </Point> <Point> <position>142</position> <quantity>13</quantity> </Point> <Point> <position>143</position> <quantity>13</quantity> </Point> <Point> <position>144</position> <quantity>13</quantity> </Point> <Point> <position>145</position> <quantity>13</quantity> </Point> <Point> <position>146</position> <quantity>12</quantity> </Point> <Point> <position>147</position> <quantity>12</quantity> </Point> <Point> <position>148</position> <quantity>12</quantity> </Point> <Point> <position>149</position> <quantity>13</quantity> </Point> <Point> <position>150</position> <quantity>13</quantity> </Point> <Point> <position>151</position> <quantity>13</quantity> </Point> <Point> <position>152</position> <quantity>13</quantity> </Point> <Point> <position>153</position> <quantity>13</quantity> </Point> <Point> <position>154</position> <quantity>13</quantity> </Point> <Point> <position>155</position> <quantity>13</quantity> </Point> <Point> <position>156</position> <quantity>13</quantity> </Point> <Point> <position>157</position> <quantity>12</quantity> </Point> <Point> <position>158</position> <quantity>12</quantity> </Point> <Point> <position>159</position> <quantity>12</quantity> </Point> <Point> <position>160</position> <quantity>12</quantity> </Point> <Point> <position>161</position> <quantity>12</quantity> </Point> <Point> <position>162</position> <quantity>12</quantity> </Point> <Point> <position>163</position> <quantity>12</quantity> </Point> <Point> <position>164</position> <quantity>13</quantity> </Point> <Point> <position>165</position> <quantity>12</quantity> </Point> <Point> <position>166</position> <quantity>12</quantity> </Point> <Point> <position>167</position> <quantity>12</quantity> </Point> <Point> <position>168</position> <quantity>12</quantity> </Point> <Point> <position>169</position> <quantity>11</quantity> </Point> <Point> <position>170</position> <quantity>12</quantity> </Point> <Point> <position>171</position> <quantity>12</quantity> </Point> <Point> <position>172</position> <quantity>11</quantity> </Point> <Point> <position>173</position> <quantity>11</quantity> </Point> <Point> <position>174</position> <quantity>10</quantity> </Point> <Point> <position>175</position> <quantity>11</quantity> </Point> <Point> <position>176</position> <quantity>10</quantity> </Point> <Point> <position>177</position> <quantity>10</quantity> </Point> <Point> <position>178</position> <quantity>10</quantity> </Point> <Point> <position>179</position> <quantity>10</quantity> </Point> <Point> <position>180</position> <quantity>10</quantity> </Point> <Point> <position>181</position> <quantity>10</quantity> </Point> <Point> <position>182</position> <quantity>9</quantity> </Point> <Point> <position>183</position> <quantity>10</quantity> </Point> <Point> <position>184</position> <quantity>10</quantity> </Point> <Point> <position>185</position> <quantity>10</quantity> </Point> <Point> <position>186</position> <quantity>9</quantity> </Point> <Point> <position>187</position> <quantity>10</quantity> </Point> <Point> <position>188</position> <quantity>9</quantity> </Point> <Point> <position>189</position> <quantity>9</quantity> </Point> <Point> <position>190</position> <quantity>10</quantity> </Point> <Point> <position>191</position> <quantity>11</quantity> </Point> <Point> <position>192</position> <quantity>12</quantity> </Point> <Point> <position>193</position> <quantity>13</quantity> </Point> <Point> <position>194</position> <quantity>13</quantity> </Point> <Point> <position>195</position> <quantity>13</quantity> </Point> <Point> <position>196</position> <quantity>13</quantity> </Point> <Point> <position>197</position> <quantity>12</quantity> </Point> <Point> <position>198</position> <quantity>13</quantity> </Point> <Point> <position>199</position> <quantity>12</quantity> </Point> <Point> <position>200</position> <quantity>12</quantity> </Point> <Point> <position>201</position> <quantity>12</quantity> </Point> <Point> <position>202</position> <quantity>12</quantity> </Point> <Point> <position>203</position> <quantity>13</quantity> </Point> <Point> <position>204</position> <quantity>12</quantity> </Point> <Point> <position>205</position> <quantity>12</quantity> </Point> <Point> <position>206</position> <quantity>12</quantity> </Point> <Point> <position>207</position> <quantity>13</quantity> </Point> <Point> <position>208</position> <quantity>12</quantity> </Point> <Point> <position>209</position> <quantity>11</quantity> </Point> <Point> <position>210</position> <quantity>12</quantity> </Point> <Point> <position>211</position> <quantity>12</quantity> </Point> <Point> <position>212</position> <quantity>12</quantity> </Point> <Point> <position>213</position> <quantity>13</quantity> </Point> <Point> <position>214</position> <quantity>13</quantity> </Point> <Point> <position>215</position> <quantity>12</quantity> </Point> <Point> <position>216</position> <quantity>13</quantity> </Point> <Point> <position>217</position> <quantity>12</quantity> </Point> <Point> <position>218</position> <quantity>12</quantity> </Point> <Point> <position>219</position> <quantity>13</quantity> </Point> <Point> <position>220</position> <quantity>13</quantity> </Point> <Point> <position>221</position> <quantity>13</quantity> </Point> <Point> <position>222</position> <quantity>13</quantity> </Point> <Point> <position>223</position> <quantity>12</quantity> </Point> <Point> <position>224</position> <quantity>13</quantity> </Point> <Point> <position>225</position> <quantity>13</quantity> </Point> <Point> <position>226</position> <quantity>13</quantity> </Point> <Point> <position>227</position> <quantity>13</quantity> </Point> <Point> <position>228</position> <quantity>12</quantity> </Point> <Point> <position>229</position> <quantity>12</quantity> </Point> <Point> <position>230</position> <quantity>11</quantity> </Point> <Point> <position>231</position> <quantity>13</quantity> </Point> <Point> <position>232</position> <quantity>12</quantity> </Point> <Point> <position>233</position> <quantity>12</quantity> </Point> <Point> <position>234</position> <quantity>13</quantity> </Point> <Point> <position>235</position> <quantity>13</quantity> </Point> <Point> <position>236</position> <quantity>13</quantity> </Point> <Point> <position>237</position> <quantity>12</quantity> </Point> <Point> <position>238</position> <quantity>13</quantity> </Point> <Point> <position>239</position> <quantity>12</quantity> </Point> <Point> <position>240</position> <quantity>13</quantity> </Point> <Point> <position>241</position> <quantity>13</quantity> </Point> <Point> <position>242</position> <quantity>12</quantity> </Point> <Point> <position>243</position> <quantity>12</quantity> </Point> <Point> <position>244</position> <quantity>13</quantity> </Point> <Point> <position>245</position> <quantity>13</quantity> </Point> <Point> <position>246</position> <quantity>13</quantity> </Point> <Point> <position>247</position> <quantity>13</quantity> </Point> <Point> <position>248</position> <quantity>12</quantity> </Point> <Point> <position>249</position> <quantity>13</quantity> </Point> <Point> <position>250</position> <quantity>13</quantity> </Point> <Point> <position>251</position> <quantity>13</quantity> </Point> <Point> <position>252</position> <quantity>12</quantity> </Point> <Point> <position>253</position> <quantity>13</quantity> </Point> <Point> <position>254</position> <quantity>12</quantity> </Point> <Point> <position>255</position> <quantity>12</quantity> </Point> <Point> <position>256</position> <quantity>12</quantity> </Point> <Point> <position>257</position> <quantity>11</quantity> </Point> <Point> <position>258</position> <quantity>13</quantity> </Point> <Point> <position>259</position> <quantity>12</quantity> </Point> <Point> <position>260</position> <quantity>12</quantity> </Point> <Point> <position>261</position> <quantity>12</quantity> </Point> <Point> <position>262</position> <quantity>12</quantity> </Point> <Point> <position>263</position> <quantity>12</quantity> </Point> </Period> </TimeSeries> <TimeSeries> <mRID>11</mRID> <businessType>A01</businessType> <objectAggregation>A08</objectAggregation> <inBiddingZone_Domain.mRID codingScheme="A01">10YLU-CEGEDEL-NQ</inBiddingZone_Domain.mRID> <quantity_Measure_Unit.name>MAW</quantity_Measure_Unit.name> <curveType>A01</curveType> <MktPSRType> <psrType>B17</psrType> </MktPSRType> <Period> <timeInterval> <start>2024-05-24T04:00Z</start> <end>2024-05-24T10:00Z</end> </timeInterval> <resolution>PT15M</resolution> <Point> <position>1</position> <quantity>12</quantity> </Point> <Point> <position>2</position> <quantity>11</quantity> </Point> <Point> <position>3</position> <quantity>12</quantity> </Point> <Point> <position>4</position> <quantity>12</quantity> </Point> <Point> <position>5</position> <quantity>12</quantity> </Point> <Point> <position>6</position> <quantity>12</quantity> </Point> <Point> <position>7</position> <quantity>12</quantity> </Point> <Point> <position>8</position> <quantity>12</quantity> </Point> <Point> <position>9</position> <quantity>12</quantity> </Point> <Point> <position>10</position> <quantity>12</quantity> </Point> <Point> <position>11</position> <quantity>12</quantity> </Point> <Point> <position>12</position> <quantity>11</quantity> </Point> <Point> <position>13</position> <quantity>11</quantity> </Point> <Point> <position>14</position> <quantity>11</quantity> </Point> <Point> <position>15</position> <quantity>0</quantity> </Point> <Point> <position>16</position> <quantity>13</quantity> </Point> <Point> <position>17</position> <quantity>13</quantity> </Point> <Point> <position>18</position> <quantity>12</quantity> </Point> <Point> <position>19</position> <quantity>12</quantity> </Point> <Point> <position>20</position> <quantity>12</quantity> </Point> <Point> <position>21</position> <quantity>12</quantity> </Point> <Point> <position>22</position> <quantity>12</quantity> </Point> <Point> <position>23</position> <quantity>11</quantity> </Point> <Point> <position>24</position> <quantity>12</quantity> </Point> </Period> </TimeSeries> <TimeSeries> <mRID>12</mRID> <businessType>A93</businessType> <objectAggregation>A08</objectAggregation> <inBiddingZone_Domain.mRID codingScheme="A01">10YLU-CEGEDEL-NQ</inBiddingZone_Domain.mRID> <quantity_Measure_Unit.name>MAW</quantity_Measure_Unit.name> <curveType>A01</curveType> <MktPSRType> <psrType>B19</psrType> </MktPSRType> <Period> <timeInterval> <start>2024-05-21T10:00Z</start> <end>2024-05-24T10:00Z</end> </timeInterval> <resolution>PT15M</resolution> <Point> <position>1</position> <quantity>2</quantity> </Point> <Point> <position>2</position> <quantity>2</quantity> </Point> <Point> <position>3</position> <quantity>4</quantity> </Point> <Point> <position>4</position> <quantity>3</quantity> </Point> <Point> <position>5</position> <quantity>2</quantity> </Point> <Point> <position>6</position> <quantity>3</quantity> </Point> <Point> <position>7</position> <quantity>5</quantity> </Point> <Point> <position>8</position> <quantity>5</quantity> </Point> <Point> <position>9</position> <quantity>5</quantity> </Point> <Point> <position>10</position> <quantity>4</quantity> </Point> <Point> <position>11</position> <quantity>3</quantity> </Point> <Point> <position>12</position> <quantity>3</quantity> </Point> <Point> <position>13</position> <quantity>3</quantity> </Point> <Point> <position>14</position> <quantity>3</quantity> </Point> <Point> <position>15</position> <quantity>1</quantity> </Point> <Point> <position>16</position> <quantity>0</quantity> </Point> <Point> <position>17</position> <quantity>0</quantity> </Point> <Point> <position>18</position> <quantity>1</quantity> </Point> <Point> <position>19</position> <quantity>1</quantity> </Point> <Point> <position>20</position> <quantity>2</quantity> </Point> <Point> <position>21</position> <quantity>3</quantity> </Point> <Point> <position>22</position> <quantity>4</quantity> </Point> <Point> <position>23</position> <quantity>5</quantity> </Point> <Point> <position>24</position> <quantity>4</quantity> </Point> <Point> <position>25</position> <quantity>3</quantity> </Point> <Point> <position>26</position> <quantity>4</quantity> </Point> <Point> <position>27</position> <quantity>6</quantity> </Point> <Point> <position>28</position> <quantity>6</quantity> </Point> <Point> <position>29</position> <quantity>6</quantity> </Point> <Point> <position>30</position> <quantity>6</quantity> </Point> <Point> <position>31</position> <quantity>8</quantity> </Point> <Point> <position>32</position> <quantity>9</quantity> </Point> <Point> <position>33</position> <quantity>10</quantity> </Point> <Point> <position>34</position> <quantity>10</quantity> </Point> <Point> <position>35</position> <quantity>11</quantity> </Point> <Point> <position>36</position> <quantity>10</quantity> </Point> <Point> <position>37</position> <quantity>8</quantity> </Point> <Point> <position>38</position> <quantity>6</quantity> </Point> <Point> <position>39</position> <quantity>6</quantity> </Point> <Point> <position>40</position> <quantity>6</quantity> </Point> <Point> <position>41</position> <quantity>8</quantity> </Point> <Point> <position>42</position> <quantity>10</quantity> </Point> <Point> <position>43</position> <quantity>14</quantity> </Point> <Point> <position>44</position> <quantity>15</quantity> </Point> <Point> <position>45</position> <quantity>16</quantity> </Point> <Point> <position>46</position> <quantity>17</quantity> </Point> <Point> <position>47</position> <quantity>16</quantity> </Point> <Point> <position>48</position> <quantity>16</quantity> </Point> <Point> <position>49</position> <quantity>16</quantity> </Point> <Point> <position>50</position> <quantity>17</quantity> </Point> <Point> <position>51</position> <quantity>20</quantity> </Point> <Point> <position>52</position> <quantity>22</quantity> </Point> <Point> <position>53</position> <quantity>26</quantity> </Point> <Point> <position>54</position> <quantity>34</quantity> </Point> <Point> <position>55</position> <quantity>44</quantity> </Point> <Point> <position>56</position> <quantity>41</quantity> </Point> <Point> <position>57</position> <quantity>31</quantity> </Point> <Point> <position>58</position> <quantity>28</quantity> </Point> <Point> <position>59</position> <quantity>25</quantity> </Point> <Point> <position>60</position> <quantity>29</quantity> </Point> <Point> <position>61</position> <quantity>33</quantity> </Point> <Point> <position>62</position> <quantity>33</quantity> </Point> <Point> <position>63</position> <quantity>30</quantity> </Point> <Point> <position>64</position> <quantity>37</quantity> </Point> <Point> <position>65</position> <quantity>46</quantity> </Point> <Point> <position>66</position> <quantity>54</quantity> </Point> <Point> <position>67</position> <quantity>61</quantity> </Point> <Point> <position>68</position> <quantity>66</quantity> </Point> <Point> <position>69</position> <quantity>70</quantity> </Point> <Point> <position>70</position> <quantity>69</quantity> </Point> <Point> <position>71</position> <quantity>70</quantity> </Point> <Point> <position>72</position> <quantity>60</quantity> </Point> <Point> <position>73</position> <quantity>45</quantity> </Point> <Point> <position>74</position> <quantity>37</quantity> </Point> <Point> <position>75</position> <quantity>37</quantity> </Point> <Point> <position>76</position> <quantity>35</quantity> </Point> <Point> <position>77</position> <quantity>38</quantity> </Point> <Point> <position>78</position> <quantity>38</quantity> </Point> <Point> <position>79</position> <quantity>37</quantity> </Point> <Point> <position>80</position> <quantity>38</quantity> </Point> <Point> <position>81</position> <quantity>41</quantity> </Point> <Point> <position>82</position> <quantity>44</quantity> </Point> <Point> <position>83</position> <quantity>42</quantity> </Point> <Point> <position>84</position> <quantity>41</quantity> </Point> <Point> <position>85</position> <quantity>41</quantity> </Point> <Point> <position>86</position> <quantity>44</quantity> </Point> <Point> <position>87</position> <quantity>51</quantity> </Point> <Point> <position>88</position> <quantity>53</quantity> </Point> <Point> <position>89</position> <quantity>54</quantity> </Point> <Point> <position>90</position> <quantity>61</quantity> </Point> <Point> <position>91</position> <quantity>72</quantity> </Point> <Point> <position>92</position> <quantity>74</quantity> </Point> <Point> <position>93</position> <quantity>65</quantity> </Point> <Point> <position>94</position> <quantity>52</quantity> </Point> <Point> <position>95</position> <quantity>53</quantity> </Point> <Point> <position>96</position> <quantity>62</quantity> </Point> <Point> <position>97</position> <quantity>64</quantity> </Point> <Point> <position>98</position> <quantity>60</quantity> </Point> <Point> <position>99</position> <quantity>61</quantity> </Point> <Point> <position>100</position> <quantity>54</quantity> </Point> <Point> <position>101</position> <quantity>47</quantity> </Point> <Point> <position>102</position> <quantity>52</quantity> </Point> <Point> <position>103</position> <quantity>45</quantity> </Point> <Point> <position>104</position> <quantity>39</quantity> </Point> <Point> <position>105</position> <quantity>33</quantity> </Point> <Point> <position>106</position> <quantity>31</quantity> </Point> <Point> <position>107</position> <quantity>28</quantity> </Point> <Point> <position>108</position> <quantity>24</quantity> </Point> <Point> <position>109</position> <quantity>25</quantity> </Point> <Point> <position>110</position> <quantity>20</quantity> </Point> <Point> <position>111</position> <quantity>25</quantity> </Point> <Point> <position>112</position> <quantity>27</quantity> </Point> <Point> <position>113</position> <quantity>30</quantity> </Point> <Point> <position>114</position> <quantity>29</quantity> </Point> <Point> <position>115</position> <quantity>32</quantity> </Point> <Point> <position>116</position> <quantity>36</quantity> </Point> <Point> <position>117</position> <quantity>34</quantity> </Point> <Point> <position>118</position> <quantity>23</quantity> </Point> <Point> <position>119</position> <quantity>19</quantity> </Point> <Point> <position>120</position> <quantity>14</quantity> </Point> <Point> <position>121</position> <quantity>15</quantity> </Point> <Point> <position>122</position> <quantity>16</quantity> </Point> <Point> <position>123</position> <quantity>18</quantity> </Point> <Point> <position>124</position> <quantity>19</quantity> </Point> <Point> <position>125</position> <quantity>24</quantity> </Point> <Point> <position>126</position> <quantity>24</quantity> </Point> <Point> <position>127</position> <quantity>28</quantity> </Point> <Point> <position>128</position> <quantity>42</quantity> </Point> <Point> <position>129</position> <quantity>46</quantity> </Point> <Point> <position>130</position> <quantity>42</quantity> </Point> <Point> <position>131</position> <quantity>38</quantity> </Point> <Point> <position>132</position> <quantity>30</quantity> </Point> <Point> <position>133</position> <quantity>26</quantity> </Point> <Point> <position>134</position> <quantity>19</quantity> </Point> <Point> <position>135</position> <quantity>14</quantity> </Point> <Point> <position>136</position> <quantity>9</quantity> </Point> <Point> <position>137</position> <quantity>7</quantity> </Point> <Point> <position>138</position> <quantity>9</quantity> </Point> <Point> <position>139</position> <quantity>9</quantity> </Point> <Point> <position>140</position> <quantity>8</quantity> </Point> <Point> <position>141</position> <quantity>9</quantity> </Point> <Point> <position>142</position> <quantity>10</quantity> </Point> <Point> <position>143</position> <quantity>11</quantity> </Point> <Point> <position>144</position> <quantity>9</quantity> </Point> <Point> <position>145</position> <quantity>9</quantity> </Point> <Point> <position>146</position> <quantity>9</quantity> </Point> <Point> <position>147</position> <quantity>10</quantity> </Point> <Point> <position>148</position> <quantity>11</quantity> </Point> <Point> <position>149</position> <quantity>11</quantity> </Point> <Point> <position>150</position> <quantity>11</quantity> </Point> <Point> <position>151</position> <quantity>15</quantity> </Point> <Point> <position>152</position> <quantity>18</quantity> </Point> <Point> <position>153</position> <quantity>23</quantity> </Point> <Point> <position>154</position> <quantity>33</quantity> </Point> <Point> <position>155</position> <quantity>49</quantity> </Point> <Point> <position>156</position> <quantity>75</quantity> </Point> <Point> <position>157</position> <quantity>77</quantity> </Point> <Point> <position>158</position> <quantity>77</quantity> </Point> <Point> <position>159</position> <quantity>75</quantity> </Point> <Point> <position>160</position> <quantity>70</quantity> </Point> <Point> <position>161</position> <quantity>67</quantity> </Point> <Point> <position>162</position> <quantity>62</quantity> </Point> <Point> <position>163</position> <quantity>54</quantity> </Point> <Point> <position>164</position> <quantity>41</quantity> </Point> <Point> <position>165</position> <quantity>39</quantity> </Point> <Point> <position>166</position> <quantity>49</quantity> </Point> <Point> <position>167</position> <quantity>57</quantity> </Point> <Point> <position>168</position> <quantity>61</quantity> </Point> <Point> <position>169</position> <quantity>56</quantity> </Point> <Point> <position>170</position> <quantity>52</quantity> </Point> <Point> <position>171</position> <quantity>48</quantity> </Point> <Point> <position>172</position> <quantity>58</quantity> </Point> <Point> <position>173</position> <quantity>61</quantity> </Point> <Point> <position>174</position> <quantity>52</quantity> </Point> <Point> <position>175</position> <quantity>38</quantity> </Point> <Point> <position>176</position> <quantity>25</quantity> </Point> <Point> <position>177</position> <quantity>17</quantity> </Point> <Point> <position>178</position> <quantity>13</quantity> </Point> <Point> <position>179</position> <quantity>9</quantity> </Point> <Point> <position>180</position> <quantity>5</quantity> </Point> <Point> <position>181</position> <quantity>3</quantity> </Point> <Point> <position>182</position> <quantity>2</quantity> </Point> <Point> <position>183</position> <quantity>2</quantity> </Point> <Point> <position>184</position> <quantity>2</quantity> </Point> <Point> <position>185</position> <quantity>2</quantity> </Point> <Point> <position>186</position> <quantity>2</quantity> </Point> <Point> <position>187</position> <quantity>3</quantity> </Point> <Point> <position>188</position> <quantity>5</quantity> </Point> <Point> <position>189</position> <quantity>6</quantity> </Point> <Point> <position>190</position> <quantity>6</quantity> </Point> <Point> <position>191</position> <quantity>6</quantity> </Point> <Point> <position>192</position> <quantity>8</quantity> </Point> <Point> <position>193</position> <quantity>8</quantity> </Point> <Point> <position>194</position> <quantity>7</quantity> </Point> <Point> <position>195</position> <quantity>5</quantity> </Point> <Point> <position>196</position> <quantity>5</quantity> </Point> <Point> <position>197</position> <quantity>7</quantity> </Point> <Point> <position>198</position> <quantity>9</quantity> </Point> <Point> <position>199</position> <quantity>10</quantity> </Point> <Point> <position>200</position> <quantity>10</quantity> </Point> <Point> <position>201</position> <quantity>9</quantity> </Point> <Point> <position>202</position> <quantity>9</quantity> </Point> <Point> <position>203</position> <quantity>9</quantity> </Point> <Point> <position>204</position> <quantity>9</quantity> </Point> <Point> <position>205</position> <quantity>6</quantity> </Point> <Point> <position>206</position> <quantity>5</quantity> </Point> <Point> <position>207</position> <quantity>4</quantity> </Point> <Point> <position>208</position> <quantity>3</quantity> </Point> <Point> <position>209</position> <quantity>1</quantity> </Point> <Point> <position>210</position> <quantity>1</quantity> </Point> <Point> <position>211</position> <quantity>1</quantity> </Point> <Point> <position>212</position> <quantity>0</quantity> </Point> <Point> <position>213</position> <quantity>0</quantity> </Point> <Point> <position>214</position> <quantity>0</quantity> </Point> <Point> <position>215</position> <quantity>0</quantity> </Point> <Point> <position>216</position> <quantity>0</quantity> </Point> <Point> <position>217</position> <quantity>0</quantity> </Point> <Point> <position>218</position> <quantity>0</quantity> </Point> <Point> <position>219</position> <quantity>0</quantity> </Point> <Point> <position>220</position> <quantity>1</quantity> </Point> <Point> <position>221</position> <quantity>1</quantity> </Point> <Point> <position>222</position> <quantity>2</quantity> </Point> <Point> <position>223</position> <quantity>3</quantity> </Point> <Point> <position>224</position> <quantity>3</quantity> </Point> <Point> <position>225</position> <quantity>5</quantity> </Point> <Point> <position>226</position> <quantity>8</quantity> </Point> <Point> <position>227</position> <quantity>9</quantity> </Point> <Point> <position>228</position> <quantity>9</quantity> </Point> <Point> <position>229</position> <quantity>7</quantity> </Point> <Point> <position>230</position> <quantity>5</quantity> </Point> <Point> <position>231</position> <quantity>4</quantity> </Point> <Point> <position>232</position> <quantity>6</quantity> </Point> <Point> <position>233</position> <quantity>6</quantity> </Point> <Point> <position>234</position> <quantity>5</quantity> </Point> <Point> <position>235</position> <quantity>3</quantity> </Point> <Point> <position>236</position> <quantity>1</quantity> </Point> <Point> <position>237</position> <quantity>1</quantity> </Point> <Point> <position>238</position> <quantity>1</quantity> </Point> <Point> <position>239</position> <quantity>1</quantity> </Point> <Point> <position>240</position> <quantity>1</quantity> </Point> <Point> <position>241</position> <quantity>4</quantity> </Point> <Point> <position>242</position> <quantity>1</quantity> </Point> <Point> <position>243</position> <quantity>1</quantity> </Point> <Point> <position>244</position> <quantity>1</quantity> </Point> <Point> <position>245</position> <quantity>1</quantity> </Point> <Point> <position>246</position> <quantity>1</quantity> </Point> <Point> <position>247</position> <quantity>1</quantity> </Point> <Point> <position>248</position> <quantity>1</quantity> </Point> <Point> <position>249</position> <quantity>1</quantity> </Point> <Point> <position>250</position> <quantity>1</quantity> </Point> <Point> <position>251</position> <quantity>1</quantity> </Point> <Point> <position>252</position> <quantity>1</quantity> </Point> <Point> <position>253</position> <quantity>1</quantity> </Point> <Point> <position>254</position> <quantity>0</quantity> </Point> <Point> <position>255</position> <quantity>0</quantity> </Point> <Point> <position>256</position> <quantity>0</quantity> </Point> <Point> <position>257</position> <quantity>0</quantity> </Point> <Point> <position>258</position> <quantity>0</quantity> </Point> <Point> <position>259</position> <quantity>0</quantity> </Point> <Point> <position>260</position> <quantity>0</quantity> </Point> <Point> <position>261</position> <quantity>0</quantity> </Point> <Point> <position>262</position> <quantity>0</quantity> </Point> <Point> <position>263</position> <quantity>0</quantity> </Point> <Point> <position>264</position> <quantity>0</quantity> </Point> <Point> <position>265</position> <quantity>0</quantity> </Point> <Point> <position>266</position> <quantity>0</quantity> </Point> <Point> <position>267</position> <quantity>0</quantity> </Point> <Point> <position>268</position> <quantity>0</quantity> </Point> <Point> <position>269</position> <quantity>0</quantity> </Point> <Point> <position>270</position> <quantity>0</quantity> </Point> <Point> <position>271</position> <quantity>0</quantity> </Point> <Point> <position>272</position> <quantity>0</quantity> </Point> <Point> <position>273</position> <quantity>0</quantity> </Point> <Point> <position>274</position> <quantity>0</quantity> </Point> <Point> <position>275</position> <quantity>0</quantity> </Point> <Point> <position>276</position> <quantity>0</quantity> </Point> <Point> <position>277</position> <quantity>0</quantity> </Point> <Point> <position>278</position> <quantity>0</quantity> </Point> <Point> <position>279</position> <quantity>0</quantity> </Point> <Point> <position>280</position> <quantity>0</quantity> </Point> <Point> <position>281</position> <quantity>0</quantity> </Point> <Point> <position>282</position> <quantity>0</quantity> </Point> <Point> <position>283</position> <quantity>0</quantity> </Point> <Point> <position>284</position> <quantity>0</quantity> </Point> <Point> <position>285</position> <quantity>0</quantity> </Point> <Point> <position>286</position> <quantity>0</quantity> </Point> <Point> <position>287</position> <quantity>0</quantity> </Point> <Point> <position>288</position> <quantity>0</quantity> </Point> </Period> </TimeSeries> </GL_MarketDocument> ```
/content/code_sandbox/parsers/test/mocks/ENTSOE/LU_production.xml
xml
2016-05-21T16:36:17
2024-08-16T17:56:07
electricitymaps-contrib
electricitymaps/electricitymaps-contrib
3,437
50,949
```xml import { QueryResponse } from "@erxes/ui/src/types"; export interface IAccountHolder { number: string; custLastName: string; custFirstName: string; currency: string; } export interface IGolomtBankAccount { requestId: string; accountId: string; accountName: string; shortName: string; currency: string; branchId: string; isSocialPayConnected: string; accountType: { schemeCode: string; schemeType: string; }; } export interface IGolomtBankAccountDetail { requestId: string; accountNumber: string; currency: string; customerName: string; titlePrefix: string; accountName: string; accountShortName: string; freezeStatusCode: string; freezeReasonCode: string; openDate: string; status: string; productName: string; type: string; intRate: string; isRelParty: string; branchId: string; } export interface IGolomtBankAccountBalance { currency: string; balanceLL?: [any]; } export type AccountsListQueryResponse = { golomtBankAccounts: [any]; loading: boolean; refetch: () => void; } & QueryResponse; export type AccountDetailQueryResponse = { golomtBankAccountDetail: IGolomtBankAccountDetail; loading: boolean; refetch: () => void; } & QueryResponse; export type AccountBalanceQueryResponse = { golomtBankAccountBalance: IGolomtBankAccountBalance; loader: boolean; refetch: () => void; } & QueryResponse; ```
/content/code_sandbox/packages/plugin-golomtbank-ui/src/types/IGolomtAccount.ts
xml
2016-11-11T06:54:50
2024-08-16T10:26:06
erxes
erxes/erxes
3,479
361
```xml 'use strict'; import { instance, mock, verify } from 'ts-mockito'; import { EnvironmentVariablesService } from '../../../client/common/variables/environment'; import { EnvironmentVariablesProvider } from '../../../client/common/variables/environmentVariablesProvider'; import { registerTypes } from '../../../client/common/variables/serviceRegistry'; import { IEnvironmentVariablesProvider, IEnvironmentVariablesService } from '../../../client/common/variables/types'; import { ServiceManager } from '../../../client/ioc/serviceManager'; import { IServiceManager } from '../../../client/ioc/types'; suite('Common variables Service Registry', () => { let serviceManager: IServiceManager; setup(() => { serviceManager = mock(ServiceManager); }); test('Ensure services are registered', async () => { registerTypes(instance(serviceManager)); verify( serviceManager.addSingleton<IEnvironmentVariablesService>( IEnvironmentVariablesService, EnvironmentVariablesService, ), ).once(); verify( serviceManager.addSingleton<IEnvironmentVariablesProvider>( IEnvironmentVariablesProvider, EnvironmentVariablesProvider, ), ).once(); }); }); ```
/content/code_sandbox/src/test/common/variables/serviceRegistry.unit.test.ts
xml
2016-01-19T10:50:01
2024-08-12T21:05:24
pythonVSCode
DonJayamanne/pythonVSCode
2,078
224
```xml <!-- ~ contributor license agreements. See the NOTICE file distributed with ~ this work for additional information regarding copyright ownership. ~ ~ path_to_url ~ ~ Unless required by applicable law or agreed to in writing, software ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. --> <dataset> <metadata> <column name="constraint_catalog" /> <column name="constraint_schema" /> <column name="constraint_name" /> <column name="specific_catalog" /> <column name="specific_schema" /> <column name="specific_name" /> </metadata> </dataset> ```
/content/code_sandbox/test/e2e/sql/src/test/resources/cases/dql/dataset/empty_storage_units/postgresql/select_postgresql_information_schema_check_constraint_routine_usage.xml
xml
2016-01-18T12:49:26
2024-08-16T15:48:11
shardingsphere
apache/shardingsphere
19,707
140
```xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "path_to_url"> <plist version="1.0"> <dict> <key>CFBundleDevelopmentRegion</key> <string>en</string> <key>CFBundleExecutable</key> <string>$(EXECUTABLE_NAME)</string> <key>CFBundleIdentifier</key> <string>org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)</string> <key>CFBundleInfoDictionaryVersion</key> <string>6.0</string> <key>CFBundleName</key> <string>$(PRODUCT_NAME)</string> <key>CFBundlePackageType</key> <string>BNDL</string> <key>CFBundleShortVersionString</key> <string>1.0</string> <key>CFBundleSignature</key> <string>????</string> <key>CFBundleVersion</key> <string>1</string> </dict> </plist> ```
/content/code_sandbox/demo/ts/ios/VictoryDemoTS-tvOSTests/Info.plist
xml
2016-07-22T21:45:58
2024-08-15T14:56:19
victory-native
FormidableLabs/victory-native
2,004
238
```xml import { vtkAlgorithm, vtkObject } from '../../../interfaces'; /** * */ export interface IITKImageReaderInitialValues { fileName?: string; arrayName?: string; } type vtkITKImageReaderBase = vtkObject & Omit< vtkAlgorithm, | 'getInputData' | 'setInputData' | 'setInputConnection' | 'getInputConnection' | 'addInputConnection' | 'addInputData' >; export interface vtkITKImageReader extends vtkITKImageReaderBase { /** * Get the array name. */ getArrayName(): string; /** * Get the filename. */ getFileName(): string; /** * Parse data as array buffer. * @param {ArrayBuffer} arrayBuffer The array buffer to parse. */ parseAsArrayBuffer(arrayBuffer: ArrayBuffer): void; /** * * @param inData * @param outData */ requestData(inData: any, outData: any): void; /** * Set the array name. * @param {String} arrayName The name of the array. */ setArrayName(arrayName: string): boolean; /** * Set the filename. * @param {String} filename */ setFileName(filename: string): boolean; } /** * Method used to decorate a given object (publicAPI+model) with vtkITKImageReader characteristics. * * @param publicAPI object on which methods will be bounds (public) * @param model object on which data structure will be bounds (protected) * @param {IITKImageReaderInitialValues} [initialValues] (default: {}) */ export function extend( publicAPI: object, model: object, initialValues?: IITKImageReaderInitialValues ): void; /** * Method used to create a new instance of vtkITKImageReader * @param {IITKImageReaderInitialValues} [initialValues] for pre-setting some of its content */ export function newInstance( initialValues?: IITKImageReaderInitialValues ): vtkITKImageReader; /** * * @param {*} fn */ export function setReadImageArrayBufferFromITK(fn: any): Promise<any>; /** * The vtkITKImageReader aims to read a ITK file format. */ export declare const vtkITKImageReader: { newInstance: typeof newInstance; extend: typeof extend; setReadImageArrayBufferFromITK: typeof setReadImageArrayBufferFromITK; }; export default vtkITKImageReader; ```
/content/code_sandbox/Sources/IO/Misc/ITKImageReader/index.d.ts
xml
2016-05-02T15:44:11
2024-08-15T19:53:44
vtk-js
Kitware/vtk-js
1,200
553
```xml import * as React from 'react'; import { styled } from '../../Utilities'; import { MessageBarBase } from './MessageBar.base'; import { getStyles } from './MessageBar.styles'; import type { IMessageBarProps, IMessageBarStyleProps, IMessageBarStyles } from './MessageBar.types'; export const MessageBar: React.FunctionComponent<IMessageBarProps> = styled< IMessageBarProps, IMessageBarStyleProps, IMessageBarStyles >(MessageBarBase, getStyles, undefined, { scope: 'MessageBar', }); ```
/content/code_sandbox/packages/react/src/components/MessageBar/MessageBar.tsx
xml
2016-06-06T15:03:44
2024-08-16T18:49:29
fluentui
microsoft/fluentui
18,221
113
```xml import {OS3MediaType, OS3Response} from "@tsed/openspec"; import {JsonHeader} from "../interfaces/JsonOpenSpec.js"; import {mapHeaders} from "../utils/mapHeaders.js"; import {toJsonMapCollection} from "../utils/toJsonMapCollection.js"; import {JsonMap} from "./JsonMap.js"; import {JsonMedia} from "./JsonMedia.js"; import {JsonSchema} from "./JsonSchema.js"; export type JsonResponseOptions = OS3Response<JsonSchema, string | JsonHeader>; export class JsonResponse extends JsonMap<JsonResponseOptions> { $kind: string = "operationResponse"; status: number; constructor(obj: Partial<JsonResponseOptions> = {}) { super(obj); this.content(obj.content || ({} as any)); } description(description: string): this { this.set("description", description); return this; } headers(headers: Record<string, string | JsonHeader>): this { this.set("headers", mapHeaders(headers)); return this; } content(content: Record<string, OS3MediaType<JsonSchema>>) { this.set("content", toJsonMapCollection(content, JsonMedia)); return this; } getContent(): JsonMap<JsonMedia> { return this.get("content")!; } getMedia(mediaType: string, create = true): JsonMedia { create && this.addMedia(mediaType); return this.getContent()?.get(mediaType) as any; } addMedia(mediaType: string) { const content = this.get("content"); if (!content.has(mediaType)) { content.set(mediaType, new JsonMedia()); } return this; } isBinary() { return this.getContent().has("application/octet-stream"); } } ```
/content/code_sandbox/packages/specs/schema/src/domain/JsonResponse.ts
xml
2016-02-21T18:38:47
2024-08-14T21:19:48
tsed
tsedio/tsed
2,817
376
```xml <mxfile userAgent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36" version="7.9.5" editor="www.draw.io" type="github"><diagram name="Page-1" id="3e8102d1-ef87-2e61-34e1-82d9a586fe2e">5ZlZb+M2EMc/jR9r6Lb1uHGOFmiBRVO0jwJN0RKxFClQlI9++your_sha256_hash8YsRs6z80V6Wx+p53cvxKaFGaoZexcawR/lZI0XIz3iwIN8dP565Q35ep35QoF7uRKXyahSsphOqeqv2KMB3bPmxdu+c3vMN7S8LVJQ0WXpIkizjBy2i9TkP8i+lhi1hL+ikcX1Qd+uBAD6ADFB52JVXktUZYe3aAAthKVTEo+fB4jAPRI3lQGqaqC1hUFPcOJcW3Ic664UZw9YwqyjQ+your_sha256_hashyour_sha256_hashGPwhp1t4LPTjQ9tQTpqmd8F4I6+jgflau2vfIRNauouYMN/your_sha256_hashRqB8KOkNrwr6KhioqOPgw0dSCQ8eTQg7+/your_sha256_hash520EsZTOqLIpiNKXFnlBmwkNhttA+EHhewM8UrkFmJ9YY74wVGC2izrRshg+your_sha256_hash6h46SAqugFRSztRwcwkYq6dDISqIJWe+aWbn58ktTXdNCG7dcHLqiFUmfHdO5T+YgJl6Ehzsf8/your_sha256_hashAVz9aXNE118ElxymXhwcgK20RBB/pMibh77PQxhuJZxf5gpejf8gqSs63your_sha512_hash/1Fe3nzwJDVwVEA2SUT0IJ/d+Towif4KW77p+your_sha256_hashyour_sha256_hashNfMMOn/wA=</diagram></mxfile> ```
/content/code_sandbox/Untitled Diagram.xml
xml
2016-03-06T11:54:46
2024-08-01T03:54:04
funiture
kanwangzjm/funiture
1,878
568
```xml import { Alert, AlertProps, Box, Button, InputAdornment, Link, Menu, MenuItem, Paper, SxProps, TextField, Theme, Tooltip, } from "@mui/material"; import React, { useContext, useEffect, useState } from "react"; import { BiRefresh, BiTime } from "react-icons/bi"; import { RiExternalLinkLine } from "react-icons/ri"; import { GlobalContext } from "../../App"; import { CollapsibleSection } from "../../common/CollapsibleSection"; import { ClassNameProps } from "../../common/props"; import { HelpInfo } from "../../components/Tooltip"; import { MainNavPageInfo } from "../layout/mainNavContext"; import { MAIN_NAV_HEIGHT } from "../layout/MainNavLayout"; export enum RefreshOptions { OFF = "off", FIVE_SECONDS = "5s", TEN_SECONDS = "10s", THIRTY_SECONDS = "30s", ONE_MIN = "1m", FIVE_MINS = "5m", FIFTEEN_MINS = "15m", THIRTY_MINS = "30m", ONE_HOUR = "1h", TWO_HOURS = "2h", ONE_DAY = "1d", } export enum TimeRangeOptions { FIVE_MINS = "Last 5 minutes", THIRTY_MINS = "Last 30 minutes", ONE_HOUR = "Last 1 hour", THREE_HOURS = "Last 3 hours", SIX_HOURS = "Last 6 hours", TWELVE_HOURS = "Last 12 hours", ONE_DAY = "Last 1 day", TWO_DAYS = "Last 2 days", SEVEN_DAYS = "Last 7 days", } export const REFRESH_VALUE: Record<RefreshOptions, string> = { [RefreshOptions.OFF]: "", [RefreshOptions.FIVE_SECONDS]: "5s", [RefreshOptions.TEN_SECONDS]: "10s", [RefreshOptions.THIRTY_SECONDS]: "30s", [RefreshOptions.ONE_MIN]: "1m", [RefreshOptions.FIVE_MINS]: "5m", [RefreshOptions.FIFTEEN_MINS]: "15m", [RefreshOptions.THIRTY_MINS]: "30m", [RefreshOptions.ONE_HOUR]: "1h", [RefreshOptions.TWO_HOURS]: "2h", [RefreshOptions.ONE_DAY]: "1d", }; export const TIME_RANGE_TO_FROM_VALUE: Record<TimeRangeOptions, string> = { [TimeRangeOptions.FIVE_MINS]: "now-5m", [TimeRangeOptions.THIRTY_MINS]: "now-30m", [TimeRangeOptions.ONE_HOUR]: "now-1h", [TimeRangeOptions.THREE_HOURS]: "now-3h", [TimeRangeOptions.SIX_HOURS]: "now-6h", [TimeRangeOptions.TWELVE_HOURS]: "now-12h", [TimeRangeOptions.ONE_DAY]: "now-1d", [TimeRangeOptions.TWO_DAYS]: "now-2d", [TimeRangeOptions.SEVEN_DAYS]: "now-7d", }; export type MetricConfig = { title: string; pathParams: string; }; export type MetricsSectionConfig = { title: string; contents: MetricConfig[]; }; // NOTE: please keep the titles here in sync with dashboard/modules/metrics/dashboards/default_dashboard_panels.py const METRICS_CONFIG: MetricsSectionConfig[] = [ { title: "Tasks and Actors", contents: [ { title: "Scheduler Task State", pathParams: "orgId=1&theme=light&panelId=26", }, { title: "Active Tasks by Name", pathParams: "orgId=1&theme=light&panelId=35", }, { title: "Scheduler Actor State", pathParams: "orgId=1&theme=light&panelId=33", }, { title: "Active Actors by Name", pathParams: "orgId=1&theme=light&panelId=36", }, { title: "Out of Memory Failures by Name", pathParams: "orgId=1&theme=light&panelId=44", }, ], }, { title: "Ray Resource Usage", contents: [ { title: "Scheduler CPUs (logical slots)", pathParams: "orgId=1&theme=light&panelId=27", }, { title: "Scheduler GPUs (logical slots)", pathParams: "orgId=1&theme=light&panelId=28", }, { title: "Object Store Memory", pathParams: "orgId=1&theme=light&panelId=29", }, { title: "Placement Groups", pathParams: "orgId=1&theme=light&panelId=40", }, ], }, { title: "Hardware Utilization", contents: [ { title: "Node Count", pathParams: "orgId=1&theme=light&panelId=24", }, { title: "Node CPU (hardware utilization)", pathParams: "orgId=1&theme=light&panelId=2", }, { title: "Node Memory (heap + object store)", pathParams: "orgId=1&theme=light&panelId=4", }, { title: "Node GPU (hardware utilization)", pathParams: "orgId=1&theme=light&panelId=8", }, { title: "Node GPU Memory (GRAM)", pathParams: "orgId=1&theme=light&panelId=18", }, { title: "Node Disk", pathParams: "orgId=1&theme=light&panelId=6", }, { title: "Node Disk IO Speed", pathParams: "orgId=1&theme=light&panelId=32", }, { title: "Node Network", pathParams: "orgId=1&theme=light&panelId=20", }, { title: "Node CPU by Component", pathParams: "orgId=1&theme=light&panelId=37", }, { title: "Node Memory by Component", pathParams: "orgId=1&theme=light&panelId=34", }, ], }, ]; const DATA_METRICS_CONFIG: MetricsSectionConfig[] = [ { title: "Ray Data Metrics (Overview)", contents: [ { title: "Bytes Spilled", pathParams: "orgId=1&theme=light&panelId=1", }, { title: "Bytes Allocated", pathParams: "orgId=1&theme=light&panelId=2", }, { title: "Bytes Freed", pathParams: "orgId=1&theme=light&panelId=3", }, { title: "Object Store Memory", pathParams: "orgId=1&theme=light&panelId=4", }, { title: "CPUs (logical slots)", pathParams: "orgId=1&theme=light&panelId=5", }, { title: "GPUs (logical slots)", pathParams: "orgId=1&theme=light&panelId=6", }, { title: "Bytes Outputted", pathParams: "orgId=1&theme=light&panelId=7", }, { title: "Rows Outputted", pathParams: "orgId=1&theme=light&panelId=11", }, ], }, { title: "Ray Data Metrics (Inputs)", contents: [ { title: "Input Blocks Received by Operator", pathParams: "orgId=1&theme=light&panelId=17", }, { title: "Input Blocks Processed by Tasks", pathParams: "orgId=1&theme=light&panelId=19", }, { title: "Input Bytes Processed by Tasks", pathParams: "orgId=1&theme=light&panelId=20", }, { title: "Input Bytes Submitted to Tasks", pathParams: "orgId=1&theme=light&panelId=21", }, ], }, { title: "Ray Data Metrics (Outputs)", contents: [ { title: "Blocks Generated by Tasks", pathParams: "orgId=1&theme=light&panelId=22", }, { title: "Bytes Generated by Tasks", pathParams: "orgId=1&theme=light&panelId=23", }, { title: "Rows Generated by Tasks", pathParams: "orgId=1&theme=light&panelId=24", }, { title: "Output Blocks Taken by Downstream Operators", pathParams: "orgId=1&theme=light&panelId=25", }, { title: "Output Bytes Taken by Downstream Operators", pathParams: "orgId=1&theme=light&panelId=26", }, ], }, { title: "Ray Data Metrics (Tasks)", contents: [ { title: "Submitted Tasks", pathParams: "orgId=1&theme=light&panelId=29", }, { title: "Running Tasks", pathParams: "orgId=1&theme=light&panelId=30", }, { title: "Tasks with output blocks", pathParams: "orgId=1&theme=light&panelId=31", }, { title: "Finished Tasks", pathParams: "orgId=1&theme=light&panelId=32", }, { title: "Failed Tasks", pathParams: "orgId=1&theme=light&panelId=33", }, { title: "Block Generation Time", pathParams: "orgId=1&theme=light&panelId=8", }, { title: "Task Submission Backpressure Time", pathParams: "orgId=1&theme=light&panelId=37", }, ], }, { title: "Ray Data Metrics (Object Store Memory)", contents: [ { title: "Operator Internal Inqueue Size (Blocks)", pathParams: "orgId=1&theme=light&panelId=13", }, { title: "Operator Internal Inqueue Size (Bytes)", pathParams: "orgId=1&theme=light&panelId=14", }, { title: "Operator Internal Outqueue Size (Blocks)", pathParams: "orgId=1&theme=light&panelId=15", }, { title: "Operator Internal Outqueue Size (Bytes)", pathParams: "orgId=1&theme=light&panelId=16", }, { title: "Size of Blocks used in Pending Tasks (Bytes)", pathParams: "orgId=1&theme=light&panelId=34", }, { title: "Freed Memory in Object Store (Bytes)", pathParams: "orgId=1&theme=light&panelId=35", }, { title: "Spilled Memory in Object Store (Bytes)", pathParams: "orgId=1&theme=light&panelId=36", }, ], }, { title: "Ray Data Metrics (Iteration)", contents: [ { title: "Iteration Initialization Time", pathParams: "orgId=1&theme=light&panelId=12", }, { title: "Iteration Blocked Time", pathParams: "orgId=1&theme=light&panelId=9", }, { title: "Iteration User Time", pathParams: "orgId=1&theme=light&panelId=10", }, ], }, // Add metrics with `metrics_group: "misc"` here. // { // title: "Ray Data Metrics (Miscellaneous)", // contents: [], // }, ]; export const Metrics = () => { const { grafanaHost, prometheusHealth, dashboardUids, dashboardDatasource } = useContext(GlobalContext); const grafanaDefaultDashboardUid = dashboardUids?.default ?? "rayDefaultDashboard"; const grafanaDefaultDatasource = dashboardDatasource ?? "Prometheus"; const [refreshOption, setRefreshOption] = useState<RefreshOptions>( RefreshOptions.FIVE_SECONDS, ); const [timeRangeOption, setTimeRangeOption] = useState<TimeRangeOptions>( TimeRangeOptions.FIVE_MINS, ); const [refresh, setRefresh] = useState<string | null>(null); const [[from, to], setTimeRange] = useState<[string | null, string | null]>([ null, null, ]); useEffect(() => { setRefresh(REFRESH_VALUE[refreshOption]); }, [refreshOption]); useEffect(() => { const from = TIME_RANGE_TO_FROM_VALUE[timeRangeOption]; setTimeRange([from, "now"]); }, [timeRangeOption]); const [viewInGrafanaMenuRef, setViewInGrafanaMenuRef] = useState<HTMLButtonElement | null>(null); const fromParam = from !== null ? `&from=${from}` : ""; const toParam = to !== null ? `&to=${to}` : ""; const timeRangeParams = `${fromParam}${toParam}`; const refreshParams = refresh ? `&refresh=${refresh}` : ""; return ( <div> <MainNavPageInfo pageInfo={{ id: "metrics", title: "Metrics", path: "/metrics", }} /> {grafanaHost === undefined || !prometheusHealth ? ( <GrafanaNotRunningAlert sx={{ marginTop: "30px" }} /> ) : ( <div> <Paper sx={{ position: "sticky", top: MAIN_NAV_HEIGHT, width: "100%", display: "flex", flexDirection: "row", alignItems: "center", justifyContent: "flex-end", padding: 1, boxShadow: "0px 1px 0px #D2DCE6", zIndex: 1, height: 36, }} > <Button onClick={({ currentTarget }) => { setViewInGrafanaMenuRef(currentTarget); }} endIcon={<RiExternalLinkLine />} > View in Grafana </Button> {viewInGrafanaMenuRef && ( <Menu open anchorEl={viewInGrafanaMenuRef} anchorOrigin={{ vertical: "bottom", horizontal: "right" }} transformOrigin={{ vertical: "top", horizontal: "right" }} onClose={() => { setViewInGrafanaMenuRef(null); }} > <MenuItem component="a" href={`${grafanaHost}/d/${grafanaDefaultDashboardUid}/?var-datasource=${grafanaDefaultDatasource}`} target="_blank" rel="noopener noreferrer" > Core Dashboard </MenuItem> {dashboardUids?.["data"] && ( <Tooltip title="The Ray Data dashboard has a dropdown to filter the data metrics by Dataset ID"> <MenuItem component="a" href={`${grafanaHost}/d/${dashboardUids["data"]}/?var-datasource=${grafanaDefaultDatasource}`} target="_blank" rel="noopener noreferrer" > Ray Data Dashboard </MenuItem> </Tooltip> )} </Menu> )} <TextField sx={{ marginLeft: 2, width: 80 }} select size="small" value={refreshOption} onChange={({ target: { value } }) => { setRefreshOption(value as RefreshOptions); }} variant="standard" InputProps={{ startAdornment: ( <InputAdornment position="start"> <BiRefresh style={{ fontSize: 25, paddingBottom: 5 }} /> </InputAdornment> ), }} > {Object.entries(RefreshOptions).map(([key, value]) => ( <MenuItem key={key} value={value}> {value} </MenuItem> ))} </TextField> <HelpInfo>Auto-refresh interval</HelpInfo> <TextField sx={{ marginLeft: 2, width: 140 }} select size="small" value={timeRangeOption} onChange={({ target: { value } }) => { setTimeRangeOption(value as TimeRangeOptions); }} variant="standard" InputProps={{ startAdornment: ( <InputAdornment position="start"> <BiTime style={{ fontSize: 22, paddingBottom: 5 }} /> </InputAdornment> ), }} > {Object.entries(TimeRangeOptions).map(([key, value]) => ( <MenuItem key={key} value={value}> {value} </MenuItem> ))} </TextField> <HelpInfo>Time range picker</HelpInfo> </Paper> <Alert severity="info"> Tip: You can click on the legend to focus on a specific line in the time-series graph. You can use control/cmd + click to filter out a line in the time-series graph. </Alert> <Box sx={{ margin: 1 }}> {METRICS_CONFIG.map((config) => ( <MetricsSection key={config.title} metricConfig={config} refreshParams={refreshParams} timeRangeParams={timeRangeParams} dashboardUid={grafanaDefaultDashboardUid} dashboardDatasource={grafanaDefaultDatasource} /> ))} {dashboardUids?.["data"] && DATA_METRICS_CONFIG.map((config) => ( <MetricsSection key={config.title} metricConfig={config} refreshParams={refreshParams} timeRangeParams={timeRangeParams} dashboardUid={dashboardUids["data"]} dashboardDatasource={grafanaDefaultDatasource} /> ))} </Box> </div> )} </div> ); }; type MetricsSectionProps = { metricConfig: MetricsSectionConfig; refreshParams: string; timeRangeParams: string; dashboardUid: string; dashboardDatasource: string; }; const MetricsSection = ({ metricConfig: { title, contents }, refreshParams, timeRangeParams, dashboardUid, dashboardDatasource, }: MetricsSectionProps) => { const { grafanaHost, sessionName } = useContext(GlobalContext); return ( <CollapsibleSection key={title} title={title} startExpanded sx={{ marginTop: 3 }} keepRendered > <Box sx={{ display: "flex", flexDirection: "row", flexWrap: "wrap", gap: 3, marginTop: 2, }} > {contents.map(({ title, pathParams }) => { const path = `/d-solo/${dashboardUid}?${pathParams}` + `&${refreshParams}${timeRangeParams}&var-SessionName=${sessionName}&var-datasource=${dashboardDatasource}`; return ( <Paper key={pathParams} sx={(theme) => ({ width: "100%", height: 400, overflow: "hidden", [theme.breakpoints.up("md")]: { // Calculate max width based on 1/3 of the total width minus padding between cards width: `calc((100% - ${theme.spacing(3)} * 2) / 3)`, }, })} variant="outlined" elevation={0} > <Box component="iframe" key={title} title={title} sx={{ width: "100%", height: "100%" }} src={`${grafanaHost}${path}`} frameBorder="0" /> </Paper> ); })} </Box> </CollapsibleSection> ); }; export type GrafanaNotRunningAlertProps = { severity?: AlertProps["severity"]; sx?: SxProps<Theme>; } & ClassNameProps; export const GrafanaNotRunningAlert = ({ className, severity = "warning", sx, }: GrafanaNotRunningAlertProps) => { const { grafanaHost, prometheusHealth } = useContext(GlobalContext); return grafanaHost === undefined || !prometheusHealth ? ( <Alert className={className} sx={sx} severity={severity}> <Box component="span" sx={{ fontWeight: 500 }}> Set up Prometheus and Grafana for better Ray Dashboard experience </Box> <br /> <br /> Time-series charts are hidden because either Prometheus or Grafana server is not detected. Follow{" "} <Link href="path_to_url" target="_blank" rel="noreferrer" > these instructions </Link>{" "} to set them up and refresh this page. </Alert> ) : null; }; ```
/content/code_sandbox/python/ray/dashboard/client/src/pages/metrics/Metrics.tsx
xml
2016-10-25T19:38:30
2024-08-16T19:46:34
ray
ray-project/ray
32,670
4,673
```xml import { CSSProperties } from 'react'; import { COLORS } from '@theme'; import { TCurrencySymbol, TTicker, TUuid } from '@types'; import Box from './Box'; import Currency from './Currency'; import { Text } from './NewTypography'; interface Props { text?: string; // Allow the caller to format text. eg. SwapQuote asset?: { // Formatted Currency display amount: string; ticker: TTicker; uuid?: TUuid; }; fiat?: { // Converted Fiat amount: string; symbol: TCurrencySymbol; ticker: TTicker; }; // When sending a token we display the equivalent baseAsset value. baseAssetValue?: string; fiatColor?: string; bold?: boolean; style?: CSSProperties; alignLeft?: boolean; } // @todo: // - accept BN instead of string for asset and fiat // - define default decimals export default function Amount({ asset, text, baseAssetValue, fiat, fiatColor = COLORS.BLUE_SKY, bold = false, alignLeft = false, ...rest }: Props) { return ( <Box display="flex" flexDirection="column" alignItems={alignLeft ? 'flex-start' : 'flex-end'} {...rest} > {asset && ( <Currency amount={asset.amount} ticker={asset.ticker} icon={true} uuid={asset.uuid} /> )} {text && ( <Text as="span" isBold={bold}> {text} </Text> )} {baseAssetValue && ( <Text as="span" isDiscrete={true} fontSize="0.9em"> {baseAssetValue} </Text> )} {fiat && ( <Currency amount={fiat.amount} symbol={fiat.symbol} ticker={fiat.ticker} decimals={2} color={fiatColor} fontSize="0.9em" /> )} </Box> ); } ```
/content/code_sandbox/src/components/Amount.tsx
xml
2016-12-04T01:35:27
2024-08-14T21:41:58
MyCrypto
MyCryptoHQ/MyCrypto
1,347
447
```xml import { validation } from './validation'; import { toRequest } from './toRequest'; import { toViewModel, getDefaultViewModel } from './toViewModel'; export { LabelsTab } from './LabelsTab'; export { type Values as LabelsTabValues } from './types'; export const labelsTabUtils = { toRequest, toViewModel, validation, getDefaultViewModel, }; ```
/content/code_sandbox/app/react/docker/containers/CreateView/LabelsTab/index.ts
xml
2016-05-19T20:15:28
2024-08-16T19:15:14
portainer
portainer/portainer
30,083
78
```xml <?xml version="1.0"?> <doc> <assembly> <name>Microsoft.Deployment.Compression</name> </assembly> <members> <member name="T:Microsoft.Deployment.Compression.ArchiveException"> <summary> Base exception class for compression operations. Compression libraries should derive subclass exceptions with more specific error information relevent to the file format. </summary> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveException.#ctor(System.String,System.Exception)"> <summary> Creates a new ArchiveException with a specified error message and a reference to the inner exception that is the cause of this exception. </summary> <param name="message">The message that describes the error.</param> <param name="innerException">The exception that is the cause of the current exception. If the innerException parameter is not a null reference (Nothing in Visual Basic), the current exception is raised in a catch block that handles the inner exception.</param> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveException.#ctor(System.String)"> <summary> Creates a new ArchiveException with a specified error message. </summary> <param name="message">The message that describes the error.</param> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveException.#ctor"> <summary> Creates a new ArchiveException. </summary> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveException.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)"> <summary> Initializes a new instance of the ArchiveException class with serialized data. </summary> <param name="info">The SerializationInfo that holds the serialized object data about the exception being thrown.</param> <param name="context">The StreamingContext that contains contextual information about the source or destination.</param> </member> <member name="T:Microsoft.Deployment.Compression.ArchiveFileInfo"> <summary> Abstract object representing a compressed file within an archive; provides operations for getting the file properties and unpacking the file. </summary> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveFileInfo.#ctor(Microsoft.Deployment.Compression.ArchiveInfo,System.String)"> <summary> Creates a new ArchiveFileInfo object representing a file within an archive in a specified path. </summary> <param name="archiveInfo">An object representing the archive containing the file.</param> <param name="filePath">The path to the file within the archive. Usually, this is a simple file name, but if the archive contains a directory structure this may include the directory.</param> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveFileInfo.#ctor(System.String,System.Int32,System.IO.FileAttributes,System.DateTime,System.Int64)"> <summary> Creates a new ArchiveFileInfo object with all parameters specified; used by subclasses when reading the metadata out of an archive. </summary> <param name="filePath">The internal path and name of the file in the archive.</param> <param name="archiveNumber">The archive number where the file starts.</param> <param name="attributes">The stored attributes of the file.</param> <param name="lastWriteTime">The stored last write time of the file.</param> <param name="length">The uncompressed size of the file.</param> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveFileInfo.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)"> <summary> Initializes a new instance of the ArchiveFileInfo class with serialized data. </summary> <param name="info">The SerializationInfo that holds the serialized object data about the exception being thrown.</param> <param name="context">The StreamingContext that contains contextual information about the source or destination.</param> </member> <member name="P:Microsoft.Deployment.Compression.ArchiveFileInfo.Name"> <summary> Gets the name of the file. </summary> <value>The name of the file, not including any path.</value> </member> <member name="P:Microsoft.Deployment.Compression.ArchiveFileInfo.Path"> <summary> Gets the internal path of the file in the archive. </summary> <value>The internal path of the file in the archive, not including the file name.</value> </member> <member name="P:Microsoft.Deployment.Compression.ArchiveFileInfo.FullName"> <summary> Gets the full path to the file. </summary> <value>The full path to the file, including the full path to the archive, the internal path in the archive, and the file name.</value> <remarks> For example, the path <c>"C:\archive.cab\file.txt"</c> refers to a file "file.txt" inside the archive "archive.cab". </remarks> </member> <member name="P:Microsoft.Deployment.Compression.ArchiveFileInfo.Archive"> <summary> Gets or sets the archive that contains this file. </summary> <value> The ArchiveInfo instance that retrieved this file information -- this may be null if the ArchiveFileInfo object was returned directly from a stream. </value> </member> <member name="P:Microsoft.Deployment.Compression.ArchiveFileInfo.ArchiveName"> <summary> Gets the full path of the archive that contains this file. </summary> <value>The full path of the archive that contains this file.</value> </member> <member name="P:Microsoft.Deployment.Compression.ArchiveFileInfo.ArchiveNumber"> <summary> Gets the number of the archive where this file starts. </summary> <value>The number of the archive where this file starts.</value> <remarks>A single archive or the first archive in a chain is numbered 0.</remarks> </member> <member name="P:Microsoft.Deployment.Compression.ArchiveFileInfo.Exists"> <summary> Checks if the file exists within the archive. </summary> <value>True if the file exists, false otherwise.</value> </member> <member name="P:Microsoft.Deployment.Compression.ArchiveFileInfo.Length"> <summary> Gets the uncompressed size of the file. </summary> <value>The uncompressed size of the file in bytes.</value> </member> <member name="P:Microsoft.Deployment.Compression.ArchiveFileInfo.Attributes"> <summary> Gets the attributes of the file. </summary> <value>The attributes of the file as stored in the archive.</value> </member> <member name="P:Microsoft.Deployment.Compression.ArchiveFileInfo.LastWriteTime"> <summary> Gets the last modification time of the file. </summary> <value>The last modification time of the file as stored in the archive.</value> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveFileInfo.GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)"> <summary> Sets the SerializationInfo with information about the archive. </summary> <param name="info">The SerializationInfo that holds the serialized object data.</param> <param name="context">The StreamingContext that contains contextual information about the source or destination.</param> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveFileInfo.ToString"> <summary> Gets the full path to the file. </summary> <returns>The same as <see cref="P:Microsoft.Deployment.Compression.ArchiveFileInfo.FullName"/></returns> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveFileInfo.Delete"> <summary> Deletes the file. NOT SUPPORTED. </summary> <exception cref="T:System.NotSupportedException">Files cannot be deleted from an existing archive.</exception> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveFileInfo.Refresh"> <summary> Refreshes the attributes and other cached information about the file, by re-reading the information from the archive. </summary> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveFileInfo.CopyTo(System.String)"> <summary> Extracts the file. </summary> <param name="destFileName">The destination path where the file will be extracted.</param> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveFileInfo.CopyTo(System.String,System.Boolean)"> <summary> Extracts the file, optionally overwriting any existing file. </summary> <param name="destFileName">The destination path where the file will be extracted.</param> <param name="overwrite">If true, <paramref name="destFileName"/> will be overwritten if it exists.</param> <exception cref="T:System.IO.IOException"><paramref name="overwrite"/> is false and <paramref name="destFileName"/> exists.</exception> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveFileInfo.OpenRead"> <summary> Opens the archive file for reading without actually extracting the file to disk. </summary> <returns> A stream for reading directly from the packed file. Like any stream this should be closed/disposed as soon as it is no longer needed. </returns> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveFileInfo.OpenText"> <summary> Opens the archive file reading text with UTF-8 encoding without actually extracting the file to disk. </summary> <returns> A reader for reading text directly from the packed file. Like any reader this should be closed/disposed as soon as it is no longer needed. </returns> <remarks> To open an archived text file with different encoding, use the <see cref="M:Microsoft.Deployment.Compression.ArchiveFileInfo.OpenRead" /> method and pass the returned stream to one of the <see cref="T:System.IO.StreamReader" /> constructor overloads. </remarks> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveFileInfo.Refresh(Microsoft.Deployment.Compression.ArchiveFileInfo)"> <summary> Refreshes the information in this object with new data retrieved from an archive. </summary> <param name="newFileInfo">Fresh instance for the same file just read from the archive.</param> <remarks> Subclasses may override this method to refresh sublcass fields. However they should always call the base implementation first. </remarks> </member> <member name="T:Microsoft.Deployment.Compression.ArchiveInfo"> <summary> Abstract object representing a compressed archive on disk; provides access to file-based operations on the archive. </summary> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveInfo.#ctor(System.String)"> <summary> Creates a new ArchiveInfo object representing an archive in a specified path. </summary> <param name="path">The path to the archive. When creating an archive, this file does not necessarily exist yet.</param> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveInfo.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)"> <summary> Initializes a new instance of the ArchiveInfo class with serialized data. </summary> <param name="info">The SerializationInfo that holds the serialized object data about the exception being thrown.</param> <param name="context">The StreamingContext that contains contextual information about the source or destination.</param> </member> <member name="P:Microsoft.Deployment.Compression.ArchiveInfo.Directory"> <summary> Gets the directory that contains the archive. </summary> <value>A DirectoryInfo object representing the parent directory of the archive.</value> </member> <member name="P:Microsoft.Deployment.Compression.ArchiveInfo.DirectoryName"> <summary> Gets the full path of the directory that contains the archive. </summary> <value>The full path of the directory that contains the archive.</value> </member> <member name="P:Microsoft.Deployment.Compression.ArchiveInfo.Length"> <summary> Gets the size of the archive. </summary> <value>The size of the archive in bytes.</value> </member> <member name="P:Microsoft.Deployment.Compression.ArchiveInfo.Name"> <summary> Gets the file name of the archive. </summary> <value>The file name of the archive, not including any path.</value> </member> <member name="P:Microsoft.Deployment.Compression.ArchiveInfo.Exists"> <summary> Checks if the archive exists. </summary> <value>True if the archive exists; else false.</value> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveInfo.ToString"> <summary> Gets the full path of the archive. </summary> <returns>The full path of the archive.</returns> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveInfo.Delete"> <summary> Deletes the archive. </summary> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveInfo.CopyTo(System.String)"> <summary> Copies an existing archive to another location. </summary> <param name="destFileName">The destination file path.</param> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveInfo.CopyTo(System.String,System.Boolean)"> <summary> Copies an existing archive to another location, optionally overwriting the destination file. </summary> <param name="destFileName">The destination file path.</param> <param name="overwrite">If true, the destination file will be overwritten if it exists.</param> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveInfo.MoveTo(System.String)"> <summary> Moves an existing archive to another location. </summary> <param name="destFileName">The destination file path.</param> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveInfo.IsValid"> <summary> Checks if the archive contains a valid archive header. </summary> <returns>True if the file is a valid archive; false otherwise.</returns> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveInfo.GetFiles"> <summary> Gets information about the files contained in the archive. </summary> <returns>A list of <see cref="T:Microsoft.Deployment.Compression.ArchiveFileInfo"/> objects, each containing information about a file in the archive.</returns> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveInfo.GetFiles(System.String)"> <summary> Gets information about the certain files contained in the archive file. </summary> <param name="searchPattern">The search string, such as &quot;*.txt&quot;.</param> <returns>A list of <see cref="T:Microsoft.Deployment.Compression.ArchiveFileInfo"/> objects, each containing information about a file in the archive.</returns> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveInfo.Unpack(System.String)"> <summary> Extracts all files from an archive to a destination directory. </summary> <param name="destDirectory">Directory where the files are to be extracted.</param> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveInfo.Unpack(System.String,System.EventHandler{Microsoft.Deployment.Compression.ArchiveProgressEventArgs})"> <summary> Extracts all files from an archive to a destination directory, optionally extracting only newer files. </summary> <param name="destDirectory">Directory where the files are to be extracted.</param> <param name="progressHandler">Handler for receiving progress information; this may be null if progress is not desired.</param> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveInfo.UnpackFile(System.String,System.String)"> <summary> Extracts a single file from the archive. </summary> <param name="fileName">The name of the file in the archive. Also includes the internal path of the file, if any. File name matching is case-insensitive.</param> <param name="destFileName">The path where the file is to be extracted on disk.</param> <remarks>If <paramref name="destFileName"/> already exists, it will be overwritten.</remarks> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveInfo.UnpackFiles(System.Collections.Generic.IList{System.String},System.String,System.Collections.Generic.IList{System.String})"> <summary> Extracts multiple files from the archive. </summary> <param name="fileNames">The names of the files in the archive. Each name includes the internal path of the file, if any. File name matching is case-insensitive.</param> <param name="destDirectory">This parameter may be null, but if specified it is the root directory for any relative paths in <paramref name="destFileNames"/>.</param> <param name="destFileNames">The paths where the files are to be extracted on disk. If this parameter is null, the files will be extracted with the names from the archive.</param> <remarks> If any extracted files already exist on disk, they will be overwritten. <p>The <paramref name="destDirectory"/> and <paramref name="destFileNames"/> parameters cannot both be null.</p> </remarks> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveInfo.UnpackFiles(System.Collections.Generic.IList{System.String},System.String,System.Collections.Generic.IList{System.String},System.EventHandler{Microsoft.Deployment.Compression.ArchiveProgressEventArgs})"> <summary> Extracts multiple files from the archive, optionally extracting only newer files. </summary> <param name="fileNames">The names of the files in the archive. Each name includes the internal path of the file, if any. File name matching is case-insensitive.</param> <param name="destDirectory">This parameter may be null, but if specified it is the root directory for any relative paths in <paramref name="destFileNames"/>.</param> <param name="destFileNames">The paths where the files are to be extracted on disk. If this parameter is null, the files will be extracted with the names from the archive.</param> <param name="progressHandler">Handler for receiving progress information; this may be null if progress is not desired.</param> <remarks> If any extracted files already exist on disk, they will be overwritten. <p>The <paramref name="destDirectory"/> and <paramref name="destFileNames"/> parameters cannot both be null.</p> </remarks> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveInfo.UnpackFileSet(System.Collections.Generic.IDictionary{System.String,System.String},System.String)"> <summary> Extracts multiple files from the archive. </summary> <param name="fileNames">A mapping from internal file paths to external file paths. Case-senstivity when matching internal paths depends on the IDictionary implementation.</param> <param name="destDirectory">This parameter may be null, but if specified it is the root directory for any relative external paths in <paramref name="fileNames"/>.</param> <remarks> If any extracted files already exist on disk, they will be overwritten. </remarks> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveInfo.UnpackFileSet(System.Collections.Generic.IDictionary{System.String,System.String},System.String,System.EventHandler{Microsoft.Deployment.Compression.ArchiveProgressEventArgs})"> <summary> Extracts multiple files from the archive. </summary> <param name="fileNames">A mapping from internal file paths to external file paths. Case-senstivity when matching internal paths depends on the IDictionary implementation.</param> <param name="destDirectory">This parameter may be null, but if specified it is the root directory for any relative external paths in <paramref name="fileNames"/>.</param> <param name="progressHandler">Handler for receiving progress information; this may be null if progress is not desired.</param> <remarks> If any extracted files already exist on disk, they will be overwritten. </remarks> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveInfo.OpenRead(System.String)"> <summary> Opens a file inside the archive for reading without actually extracting the file to disk. </summary> <param name="fileName">The name of the file in the archive. Also includes the internal path of the file, if any. File name matching is case-insensitive.</param> <returns> A stream for reading directly from the packed file. Like any stream this should be closed/disposed as soon as it is no longer needed. </returns> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveInfo.OpenText(System.String)"> <summary> Opens a file inside the archive for reading text with UTF-8 encoding without actually extracting the file to disk. </summary> <param name="fileName">The name of the file in the archive. Also includes the internal path of the file, if any. File name matching is case-insensitive.</param> <returns> A reader for reading text directly from the packed file. Like any reader this should be closed/disposed as soon as it is no longer needed. </returns> <remarks> To open an archived text file with different encoding, use the <see cref="M:Microsoft.Deployment.Compression.ArchiveInfo.OpenRead(System.String)" /> method and pass the returned stream to one of the <see cref="T:System.IO.StreamReader" /> constructor overloads. </remarks> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveInfo.Pack(System.String)"> <summary> Compresses all files in a directory into the archive. Does not include subdirectories. </summary> <param name="sourceDirectory">The directory containing the files to be included.</param> <remarks> Uses maximum compression level. </remarks> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveInfo.Pack(System.String,System.Boolean,Microsoft.Deployment.Compression.CompressionLevel,System.EventHandler{Microsoft.Deployment.Compression.ArchiveProgressEventArgs})"> <summary> Compresses all files in a directory into the archive, optionally including subdirectories. </summary> <param name="sourceDirectory">This is the root directory for to pack all files.</param> <param name="includeSubdirectories">If true, recursively include files in subdirectories.</param> <param name="compLevel">The compression level used when creating the archive.</param> <param name="progressHandler">Handler for receiving progress information; this may be null if progress is not desired.</param> <remarks> The files are stored in the archive using their relative file paths in the directory tree, if supported by the archive file format. </remarks> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveInfo.PackFiles(System.String,System.Collections.Generic.IList{System.String},System.Collections.Generic.IList{System.String})"> <summary> Compresses files into the archive, specifying the names used to store the files in the archive. </summary> <param name="sourceDirectory">This parameter may be null, but if specified it is the root directory for any relative paths in <paramref name="sourceFileNames"/>.</param> <param name="sourceFileNames">The list of files to be included in the archive.</param> <param name="fileNames">The names of the files as they are stored in the archive. Each name includes the internal path of the file, if any. This parameter may be null, in which case the files are stored in the archive with their source file names and no path information.</param> <remarks> Uses maximum compression level. <p>Duplicate items in the <paramref name="fileNames"/> array will cause an <see cref="T:Microsoft.Deployment.Compression.ArchiveException"/>.</p> </remarks> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveInfo.PackFiles(System.String,System.Collections.Generic.IList{System.String},System.Collections.Generic.IList{System.String},Microsoft.Deployment.Compression.CompressionLevel,System.EventHandler{Microsoft.Deployment.Compression.ArchiveProgressEventArgs})"> <summary> Compresses files into the archive, specifying the names used to store the files in the archive. </summary> <param name="sourceDirectory">This parameter may be null, but if specified it is the root directory for any relative paths in <paramref name="sourceFileNames"/>.</param> <param name="sourceFileNames">The list of files to be included in the archive.</param> <param name="fileNames">The names of the files as they are stored in the archive. Each name includes the internal path of the file, if any. This parameter may be null, in which case the files are stored in the archive with their source file names and no path information.</param> <param name="compLevel">The compression level used when creating the archive.</param> <param name="progressHandler">Handler for receiving progress information; this may be null if progress is not desired.</param> <remarks> Duplicate items in the <paramref name="fileNames"/> array will cause an <see cref="T:Microsoft.Deployment.Compression.ArchiveException"/>. </remarks> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveInfo.PackFileSet(System.String,System.Collections.Generic.IDictionary{System.String,System.String})"> <summary> Compresses files into the archive, specifying the names used to store the files in the archive. </summary> <param name="sourceDirectory">This parameter may be null, but if specified it is the root directory for any relative paths in <paramref name="fileNames"/>.</param> <param name="fileNames">A mapping from internal file paths to external file paths.</param> <remarks> Uses maximum compression level. </remarks> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveInfo.PackFileSet(System.String,System.Collections.Generic.IDictionary{System.String,System.String},Microsoft.Deployment.Compression.CompressionLevel,System.EventHandler{Microsoft.Deployment.Compression.ArchiveProgressEventArgs})"> <summary> Compresses files into the archive, specifying the names used to store the files in the archive. </summary> <param name="sourceDirectory">This parameter may be null, but if specified it is the root directory for any relative paths in <paramref name="fileNames"/>.</param> <param name="fileNames">A mapping from internal file paths to external file paths.</param> <param name="compLevel">The compression level used when creating the archive.</param> <param name="progressHandler">Handler for receiving progress information; this may be null if progress is not desired.</param> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveInfo.GetRelativeFilePathsInDirectoryTree(System.String,System.Boolean)"> <summary> Given a directory, gets the relative paths of all files in the directory, optionally including all subdirectories. </summary> <param name="dir">The directory to search.</param> <param name="includeSubdirectories">True to include subdirectories in the search.</param> <returns>A list of file paths relative to the directory.</returns> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveInfo.GetFile(System.String)"> <summary> Retrieves information about one file from this archive. </summary> <param name="path">Path of the file in the archive.</param> <returns>File information, or null if the file was not found in the archive.</returns> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveInfo.CreateCompressionEngine"> <summary> Creates a compression engine that does the low-level work for this object. </summary> <returns>A new compression engine instance that matches the specific subclass of archive.</returns> <remarks> Each instance will be <see cref="M:Microsoft.Deployment.Compression.CompressionEngine.Dispose"/>d immediately after use. </remarks> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveInfo.CreateStringDictionary(System.Collections.Generic.IList{System.String},System.Collections.Generic.IList{System.String})"> <summary> Creates a case-insensitive dictionary mapping from one list of strings to the other. </summary> <param name="keys">List of keys.</param> <param name="values">List of values that are mapped 1-to-1 to the keys.</param> <returns>A filled dictionary of the strings.</returns> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveInfo.RecursiveGetRelativeFilePathsInDirectoryTree(System.String,System.String,System.Boolean,System.Collections.Generic.IList{System.String})"> <summary> Recursive-descent helper function for GetRelativeFilePathsInDirectoryTree. </summary> <param name="dir">The root directory of the search.</param> <param name="relativeDir">The relative directory to be processed now.</param> <param name="includeSubdirectories">True to descend into subdirectories.</param> <param name="fileList">List of files found so far.</param> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveInfo.InternalGetFiles(System.Predicate{System.String})"> <summary> Uses a CompressionEngine to get ArchiveFileInfo objects from this archive, and then associates them with this ArchiveInfo instance. </summary> <param name="fileFilter">Optional predicate that can determine which files to process.</param> <returns>A list of <see cref="T:Microsoft.Deployment.Compression.ArchiveFileInfo"/> objects, each containing information about a file in the archive.</returns> </member> <member name="T:Microsoft.Deployment.Compression.ArchiveProgressEventArgs"> <summary> Contains the data reported in an archive progress event. </summary> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveProgressEventArgs.#ctor(Microsoft.Deployment.Compression.ArchiveProgressType,System.String,System.Int32,System.Int32,System.Int64,System.Int64,System.String,System.Int32,System.Int32,System.Int64,System.Int64,System.Int64,System.Int64)"> <summary> Creates a new ArchiveProgressEventArgs object from specified event parameters. </summary> <param name="progressType">type of status message</param> <param name="currentFileName">name of the file being processed</param> <param name="currentFileNumber">number of the current file being processed</param> <param name="totalFiles">total number of files to be processed</param> <param name="currentFileBytesProcessed">number of bytes processed so far when compressing or extracting a file</param> <param name="currentFileTotalBytes">total number of bytes in the current file</param> <param name="currentArchiveName">name of the current Archive</param> <param name="currentArchiveNumber">current Archive number, when processing a chained set of Archives</param> <param name="totalArchives">total number of Archives in a chained set</param> <param name="currentArchiveBytesProcessed">number of compressed bytes processed so far during an extraction</param> <param name="currentArchiveTotalBytes">total number of compressed bytes to be processed during an extraction</param> <param name="fileBytesProcessed">number of uncompressed file bytes processed so far</param> <param name="totalFileBytes">total number of uncompressed file bytes to be processed</param> </member> <member name="P:Microsoft.Deployment.Compression.ArchiveProgressEventArgs.ProgressType"> <summary> Gets the type of status message. </summary> <value>A <see cref="T:Microsoft.Deployment.Compression.ArchiveProgressType"/> value indicating what type of progress event occurred.</value> <remarks> The handler may choose to ignore some types of progress events. For example, if the handler will only list each file as it is compressed/extracted, it can ignore events that are not of type <see cref="F:Microsoft.Deployment.Compression.ArchiveProgressType.FinishFile"/>. </remarks> </member> <member name="P:Microsoft.Deployment.Compression.ArchiveProgressEventArgs.CurrentFileName"> <summary> Gets the name of the file being processed. (The name of the file within the Archive; not the external file path.) Also includes the internal path of the file, if any. Valid for <see cref="F:Microsoft.Deployment.Compression.ArchiveProgressType.StartFile"/>, <see cref="F:Microsoft.Deployment.Compression.ArchiveProgressType.PartialFile"/>, and <see cref="F:Microsoft.Deployment.Compression.ArchiveProgressType.FinishFile"/> messages. </summary> <value>The name of the file currently being processed, or null if processing is currently at the stream or archive level.</value> </member> <member name="P:Microsoft.Deployment.Compression.ArchiveProgressEventArgs.CurrentFileNumber"> <summary> Gets the number of the current file being processed. The first file is number 0, and the last file is <see cref="P:Microsoft.Deployment.Compression.ArchiveProgressEventArgs.TotalFiles"/>-1. Valid for <see cref="F:Microsoft.Deployment.Compression.ArchiveProgressType.StartFile"/>, <see cref="F:Microsoft.Deployment.Compression.ArchiveProgressType.PartialFile"/>, and <see cref="F:Microsoft.Deployment.Compression.ArchiveProgressType.FinishFile"/> messages. </summary> <value>The number of the file currently being processed, or the most recent file processed if processing is currently at the stream or archive level.</value> </member> <member name="P:Microsoft.Deployment.Compression.ArchiveProgressEventArgs.TotalFiles"> <summary> Gets the total number of files to be processed. Valid for all message types. </summary> <value>The total number of files to be processed that are known so far.</value> </member> <member name="P:Microsoft.Deployment.Compression.ArchiveProgressEventArgs.CurrentFileBytesProcessed"> <summary> Gets the number of bytes processed so far when compressing or extracting a file. Valid for <see cref="F:Microsoft.Deployment.Compression.ArchiveProgressType.StartFile"/>, <see cref="F:Microsoft.Deployment.Compression.ArchiveProgressType.PartialFile"/>, and <see cref="F:Microsoft.Deployment.Compression.ArchiveProgressType.FinishFile"/> messages. </summary> <value>The number of uncompressed bytes processed so far for the current file, or 0 if processing is currently at the stream or archive level.</value> </member> <member name="P:Microsoft.Deployment.Compression.ArchiveProgressEventArgs.CurrentFileTotalBytes"> <summary> Gets the total number of bytes in the current file. Valid for <see cref="F:Microsoft.Deployment.Compression.ArchiveProgressType.StartFile"/>, <see cref="F:Microsoft.Deployment.Compression.ArchiveProgressType.PartialFile"/>, and <see cref="F:Microsoft.Deployment.Compression.ArchiveProgressType.FinishFile"/> messages. </summary> <value>The uncompressed size of the current file being processed, or 0 if processing is currently at the stream or archive level.</value> </member> <member name="P:Microsoft.Deployment.Compression.ArchiveProgressEventArgs.CurrentArchiveName"> <summary> Gets the name of the current archive. Not necessarily the name of the archive on disk. Valid for all message types. </summary> <value>The name of the current archive, or an empty string if no name was specified.</value> </member> <member name="P:Microsoft.Deployment.Compression.ArchiveProgressEventArgs.CurrentArchiveNumber"> <summary> Gets the current archive number, when processing a chained set of archives. Valid for all message types. </summary> <value>The number of the current archive.</value> <remarks>The first archive is number 0, and the last archive is <see cref="P:Microsoft.Deployment.Compression.ArchiveProgressEventArgs.TotalArchives"/>-1.</remarks> </member> <member name="P:Microsoft.Deployment.Compression.ArchiveProgressEventArgs.TotalArchives"> <summary> Gets the total number of known archives in a chained set. Valid for all message types. </summary> <value>The total number of known archives in a chained set.</value> <remarks> When using the compression option to auto-split into multiple archives based on data size, this value will not be accurate until the end. </remarks> </member> <member name="P:Microsoft.Deployment.Compression.ArchiveProgressEventArgs.CurrentArchiveBytesProcessed"> <summary> Gets the number of compressed bytes processed so far during extraction of the current archive. Valid for all extraction messages. </summary> <value>The number of compressed bytes processed so far during extraction of the current archive.</value> </member> <member name="P:Microsoft.Deployment.Compression.ArchiveProgressEventArgs.CurrentArchiveTotalBytes"> <summary> Gets the total number of compressed bytes to be processed during extraction of the current archive. Valid for all extraction messages. </summary> <value>The total number of compressed bytes to be processed during extraction of the current archive.</value> </member> <member name="P:Microsoft.Deployment.Compression.ArchiveProgressEventArgs.FileBytesProcessed"> <summary> Gets the number of uncompressed bytes processed so far among all files. Valid for all message types. </summary> <value>The number of uncompressed file bytes processed so far among all files.</value> <remarks> When compared to <see cref="P:Microsoft.Deployment.Compression.ArchiveProgressEventArgs.TotalFileBytes"/>, this can be used as a measure of overall progress. </remarks> </member> <member name="P:Microsoft.Deployment.Compression.ArchiveProgressEventArgs.TotalFileBytes"> <summary> Gets the total number of uncompressed file bytes to be processed. Valid for all message types. </summary> <value>The total number of uncompressed bytes to be processed among all files.</value> </member> <member name="T:Microsoft.Deployment.Compression.ArchiveProgressType"> <summary> The type of progress event. </summary> <remarks> <p>PACKING EXAMPLE: The following sequence of events might be received when extracting a simple archive file with 2 files.</p> <list type="table"> <listheader><term>Message Type</term><description>Description</description></listheader> <item><term>StartArchive</term> <description>Begin extracting archive</description></item> <item><term>StartFile</term> <description>Begin extracting first file</description></item> <item><term>PartialFile</term> <description>Extracting first file</description></item> <item><term>PartialFile</term> <description>Extracting first file</description></item> <item><term>FinishFile</term> <description>Finished extracting first file</description></item> <item><term>StartFile</term> <description>Begin extracting second file</description></item> <item><term>PartialFile</term> <description>Extracting second file</description></item> <item><term>FinishFile</term> <description>Finished extracting second file</description></item> <item><term>FinishArchive</term><description>Finished extracting archive</description></item> </list> <p></p> <p>UNPACKING EXAMPLE: Packing 3 files into 2 archive chunks, where the second file is continued to the second archive chunk.</p> <list type="table"> <listheader><term>Message Type</term><description>Description</description></listheader> <item><term>StartFile</term> <description>Begin compressing first file</description></item> <item><term>FinishFile</term> <description>Finished compressing first file</description></item> <item><term>StartFile</term> <description>Begin compressing second file</description></item> <item><term>PartialFile</term> <description>Compressing second file</description></item> <item><term>PartialFile</term> <description>Compressing second file</description></item> <item><term>FinishFile</term> <description>Finished compressing second file</description></item> <item><term>StartArchive</term> <description>Begin writing first archive</description></item> <item><term>PartialArchive</term><description>Writing first archive</description></item> <item><term>FinishArchive</term> <description>Finished writing first archive</description></item> <item><term>StartFile</term> <description>Begin compressing third file</description></item> <item><term>PartialFile</term> <description>Compressing third file</description></item> <item><term>FinishFile</term> <description>Finished compressing third file</description></item> <item><term>StartArchive</term> <description>Begin writing second archive</description></item> <item><term>PartialArchive</term><description>Writing second archive</description></item> <item><term>FinishArchive</term> <description>Finished writing second archive</description></item> </list> </remarks> </member> <member name="F:Microsoft.Deployment.Compression.ArchiveProgressType.StartFile"> <summary>Status message before beginning the packing or unpacking an individual file.</summary> </member> <member name="F:Microsoft.Deployment.Compression.ArchiveProgressType.PartialFile"> <summary>Status message (possibly reported multiple times) during the process of packing or unpacking a file.</summary> </member> <member name="F:Microsoft.Deployment.Compression.ArchiveProgressType.FinishFile"> <summary>Status message after completion of the packing or unpacking an individual file.</summary> </member> <member name="F:Microsoft.Deployment.Compression.ArchiveProgressType.StartArchive"> <summary>Status message before beginning the packing or unpacking an archive.</summary> </member> <member name="F:Microsoft.Deployment.Compression.ArchiveProgressType.PartialArchive"> <summary>Status message (possibly reported multiple times) during the process of packing or unpacking an archiv.</summary> </member> <member name="F:Microsoft.Deployment.Compression.ArchiveProgressType.FinishArchive"> <summary>Status message after completion of the packing or unpacking of an archive.</summary> </member> <member name="T:Microsoft.Deployment.Compression.ArchiveFileStreamContext"> <summary> Provides a basic implementation of the archive pack and unpack stream context interfaces, based on a list of archive files, a default directory, and an optional mapping from internal to external file paths. </summary> <remarks> This class can also handle creating or extracting chained archive packages. </remarks> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveFileStreamContext.#ctor(System.String)"> <summary> Creates a new ArchiveFileStreamContext with a archive file and no default directory or file mapping. </summary> <param name="archiveFile">The path to a archive file that will be created or extracted.</param> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveFileStreamContext.#ctor(System.String,System.String,System.Collections.Generic.IDictionary{System.String,System.String})"> <summary> Creates a new ArchiveFileStreamContext with a archive file, default directory and mapping from internal to external file paths. </summary> <param name="archiveFile">The path to a archive file that will be created or extracted.</param> <param name="directory">The default root directory where files will be located, optional.</param> <param name="files">A mapping from internal file paths to external file paths, optional.</param> <remarks> If the mapping is not null and a file is not included in the mapping, the file will be skipped. <para>If the external path in the mapping is a simple file name or relative file path, it will be concatenated onto the default directory, if one was specified.</para> <para>For more about how the default directory and files mapping are used, see <see cref="M:Microsoft.Deployment.Compression.ArchiveFileStreamContext.OpenFileReadStream(System.String,System.IO.FileAttributes@,System.DateTime@)"/> and <see cref="M:Microsoft.Deployment.Compression.ArchiveFileStreamContext.OpenFileWriteStream(System.String,System.Int64,System.DateTime)"/>.</para> </remarks> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveFileStreamContext.#ctor(System.Collections.Generic.IList{System.String},System.String,System.Collections.Generic.IDictionary{System.String,System.String})"> <summary> Creates a new ArchiveFileStreamContext with a list of archive files, a default directory and a mapping from internal to external file paths. </summary> <param name="archiveFiles">A list of paths to archive files that will be created or extracted.</param> <param name="directory">The default root directory where files will be located, optional.</param> <param name="files">A mapping from internal file paths to external file paths, optional.</param> <remarks> When creating chained archives, the <paramref name="archiveFiles"/> list should include at least enough archives to handle the entire set of input files, based on the maximum archive size that is passed to the <see cref="T:Microsoft.Deployment.Compression.CompressionEngine"/>.<see cref="M:Microsoft.Deployment.Compression.CompressionEngine.Pack(Microsoft.Deployment.Compression.IPackStreamContext,System.Collections.Generic.IEnumerable{System.String},System.Int64)"/>. <para>If the mapping is not null and a file is not included in the mapping, the file will be skipped.</para> <para>If the external path in the mapping is a simple file name or relative file path, it will be concatenated onto the default directory, if one was specified.</para> <para>For more about how the default directory and files mapping are used, see <see cref="M:Microsoft.Deployment.Compression.ArchiveFileStreamContext.OpenFileReadStream(System.String,System.IO.FileAttributes@,System.DateTime@)"/> and <see cref="M:Microsoft.Deployment.Compression.ArchiveFileStreamContext.OpenFileWriteStream(System.String,System.Int64,System.DateTime)"/>.</para> </remarks> </member> <member name="P:Microsoft.Deployment.Compression.ArchiveFileStreamContext.ArchiveFiles"> <summary> Gets or sets the list of archive files that are created or extracted. </summary> <value>The list of archive files that are created or extracted.</value> </member> <member name="P:Microsoft.Deployment.Compression.ArchiveFileStreamContext.Directory"> <summary> Gets or sets the default root directory where files are located. </summary> <value>The default root directory where files are located.</value> <remarks> For details about how the default directory is used, see <see cref="M:Microsoft.Deployment.Compression.ArchiveFileStreamContext.OpenFileReadStream(System.String,System.IO.FileAttributes@,System.DateTime@)"/> and <see cref="M:Microsoft.Deployment.Compression.ArchiveFileStreamContext.OpenFileWriteStream(System.String,System.Int64,System.DateTime)"/>. </remarks> </member> <member name="P:Microsoft.Deployment.Compression.ArchiveFileStreamContext.Files"> <summary> Gets or sets the mapping from internal file paths to external file paths. </summary> <value>A mapping from internal file paths to external file paths.</value> <remarks> For details about how the files mapping is used, see <see cref="M:Microsoft.Deployment.Compression.ArchiveFileStreamContext.OpenFileReadStream(System.String,System.IO.FileAttributes@,System.DateTime@)"/> and <see cref="M:Microsoft.Deployment.Compression.ArchiveFileStreamContext.OpenFileWriteStream(System.String,System.Int64,System.DateTime)"/>. </remarks> </member> <member name="P:Microsoft.Deployment.Compression.ArchiveFileStreamContext.ExtractOnlyNewerFiles"> <summary> Gets or sets a flag that can prevent extracted files from overwriting newer files that already exist. </summary> <value>True to prevent overwriting newer files that already exist during extraction; false to always extract from the archive regardless of existing files.</value> </member> <member name="P:Microsoft.Deployment.Compression.ArchiveFileStreamContext.EnableOffsetOpen"> <summary> Gets or sets a flag that enables creating or extracting an archive at an offset within an existing file. (This is typically used to open archive-based self-extracting packages.) </summary> <value>True to search an existing package file for an archive offset or the end of the file;/ false to always create or open a plain archive file.</value> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveFileStreamContext.GetArchiveName(System.Int32)"> <summary> Gets the name of the archive with a specified number. </summary> <param name="archiveNumber">The 0-based index of the archive within the chain.</param> <returns>The name of the requested archive. May be an empty string for non-chained archives, but may never be null.</returns> <remarks>This method returns the file name of the archive from the <see cref="F:Microsoft.Deployment.Compression.ArchiveFileStreamContext.archiveFiles"/> list with the specified index, or an empty string if the archive number is outside the bounds of the list. The file name should not include any directory path.</remarks> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveFileStreamContext.OpenArchiveWriteStream(System.Int32,System.String,System.Boolean,Microsoft.Deployment.Compression.CompressionEngine)"> <summary> Opens a stream for writing an archive. </summary> <param name="archiveNumber">The 0-based index of the archive within the chain.</param> <param name="archiveName">The name of the archive that was returned by <see cref="M:Microsoft.Deployment.Compression.ArchiveFileStreamContext.GetArchiveName(System.Int32)"/>.</param> <param name="truncate">True if the stream should be truncated when opened (if it already exists); false if an existing stream is being re-opened for writing additional data.</param> <param name="compressionEngine">Instance of the compression engine doing the operations.</param> <returns>A writable Stream where the compressed archive bytes will be written, or null to cancel the archive creation.</returns> <remarks> This method opens the file from the <see cref="P:Microsoft.Deployment.Compression.ArchiveFileStreamContext.ArchiveFiles"/> list with the specified index. If the archive number is outside the bounds of the list, this method returns null. <para>If the <see cref="P:Microsoft.Deployment.Compression.ArchiveFileStreamContext.EnableOffsetOpen"/> flag is set, this method will seek to the start of any existing archive in the file, or to the end of the file if the existing file is not an archive.</para> </remarks> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveFileStreamContext.CloseArchiveWriteStream(System.Int32,System.String,System.IO.Stream)"> <summary> Closes a stream where an archive package was written. </summary> <param name="archiveNumber">The 0-based index of the archive within the chain.</param> <param name="archiveName">The name of the archive that was previously returned by <see cref="M:Microsoft.Deployment.Compression.ArchiveFileStreamContext.GetArchiveName(System.Int32)"/>.</param> <param name="stream">A stream that was previously returned by <see cref="M:Microsoft.Deployment.Compression.ArchiveFileStreamContext.OpenArchiveWriteStream(System.Int32,System.String,System.Boolean,Microsoft.Deployment.Compression.CompressionEngine)"/> and is now ready to be closed.</param> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveFileStreamContext.OpenFileReadStream(System.String,System.IO.FileAttributes@,System.DateTime@)"> <summary> Opens a stream to read a file that is to be included in an archive. </summary> <param name="path">The path of the file within the archive.</param> <param name="attributes">The returned attributes of the opened file, to be stored in the archive.</param> <param name="lastWriteTime">The returned last-modified time of the opened file, to be stored in the archive.</param> <returns>A readable Stream where the file bytes will be read from before they are compressed, or null to skip inclusion of the file and continue to the next file.</returns> <remarks> This method opens a file using the following logic: <list> <item>If the <see cref="P:Microsoft.Deployment.Compression.ArchiveFileStreamContext.Directory"/> and the <see cref="P:Microsoft.Deployment.Compression.ArchiveFileStreamContext.Files"/> mapping are both null, the path is treated as relative to the current directory, and that file is opened.</item> <item>If the <see cref="P:Microsoft.Deployment.Compression.ArchiveFileStreamContext.Directory"/> is not null but the <see cref="P:Microsoft.Deployment.Compression.ArchiveFileStreamContext.Files"/> mapping is null, the path is treated as relative to that directory, and that file is opened.</item> <item>If the <see cref="P:Microsoft.Deployment.Compression.ArchiveFileStreamContext.Directory"/> is null but the <see cref="P:Microsoft.Deployment.Compression.ArchiveFileStreamContext.Files"/> mapping is not null, the path parameter is used as a key into the mapping, and the resulting value is the file path that is opened, relative to the current directory (or it may be an absolute path). If no mapping exists, the file is skipped.</item> <item>If both the <see cref="P:Microsoft.Deployment.Compression.ArchiveFileStreamContext.Directory"/> and the <see cref="P:Microsoft.Deployment.Compression.ArchiveFileStreamContext.Files"/> mapping are specified, the path parameter is used as a key into the mapping, and the resulting value is the file path that is opened, relative to the specified directory (or it may be an absolute path). If no mapping exists, the file is skipped.</item> </list> </remarks> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveFileStreamContext.CloseFileReadStream(System.String,System.IO.Stream)"> <summary> Closes a stream that has been used to read a file. </summary> <param name="path">The path of the file within the archive; the same as the path provided when the stream was opened.</param> <param name="stream">A stream that was previously returned by <see cref="M:Microsoft.Deployment.Compression.ArchiveFileStreamContext.OpenFileReadStream(System.String,System.IO.FileAttributes@,System.DateTime@)"/> and is now ready to be closed.</param> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveFileStreamContext.GetOption(System.String,System.Object[])"> <summary> Gets extended parameter information specific to the compression format being used. </summary> <param name="optionName">Name of the option being requested.</param> <param name="parameters">Parameters for the option; for per-file options, the first parameter is typically the internal file path.</param> <returns>Option value, or null to use the default behavior.</returns> <remarks> This implementation does not handle any options. Subclasses may override this method to allow for non-default behavior. </remarks> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveFileStreamContext.OpenArchiveReadStream(System.Int32,System.String,Microsoft.Deployment.Compression.CompressionEngine)"> <summary> Opens the archive stream for reading. </summary> <param name="archiveNumber">The zero-based index of the archive to open.</param> <param name="archiveName">The name of the archive being opened.</param> <param name="compressionEngine">Instance of the compression engine doing the operations.</param> <returns>A stream from which archive bytes are read, or null to cancel extraction of the archive.</returns> <remarks> This method opens the file from the <see cref="P:Microsoft.Deployment.Compression.ArchiveFileStreamContext.ArchiveFiles"/> list with the specified index. If the archive number is outside the bounds of the list, this method returns null. <para>If the <see cref="P:Microsoft.Deployment.Compression.ArchiveFileStreamContext.EnableOffsetOpen"/> flag is set, this method will seek to the start of any existing archive in the file, or to the end of the file if the existing file is not an archive.</para> </remarks> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveFileStreamContext.CloseArchiveReadStream(System.Int32,System.String,System.IO.Stream)"> <summary> Closes a stream where an archive was read. </summary> <param name="archiveNumber">The archive number of the stream to close.</param> <param name="archiveName">The name of the archive being closed.</param> <param name="stream">The stream that was previously returned by <see cref="M:Microsoft.Deployment.Compression.ArchiveFileStreamContext.OpenArchiveReadStream(System.Int32,System.String,Microsoft.Deployment.Compression.CompressionEngine)"/> and is now ready to be closed.</param> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveFileStreamContext.OpenFileWriteStream(System.String,System.Int64,System.DateTime)"> <summary> Opens a stream for writing extracted file bytes. </summary> <param name="path">The path of the file within the archive.</param> <param name="fileSize">The uncompressed size of the file to be extracted.</param> <param name="lastWriteTime">The last write time of the file to be extracted.</param> <returns>A stream where extracted file bytes are to be written, or null to skip extraction of the file and continue to the next file.</returns> <remarks> This method opens a file using the following logic: <list> <item>If the <see cref="P:Microsoft.Deployment.Compression.ArchiveFileStreamContext.Directory"/> and the <see cref="P:Microsoft.Deployment.Compression.ArchiveFileStreamContext.Files"/> mapping are both null, the path is treated as relative to the current directory, and that file is opened.</item> <item>If the <see cref="P:Microsoft.Deployment.Compression.ArchiveFileStreamContext.Directory"/> is not null but the <see cref="P:Microsoft.Deployment.Compression.ArchiveFileStreamContext.Files"/> mapping is null, the path is treated as relative to that directory, and that file is opened.</item> <item>If the <see cref="P:Microsoft.Deployment.Compression.ArchiveFileStreamContext.Directory"/> is null but the <see cref="P:Microsoft.Deployment.Compression.ArchiveFileStreamContext.Files"/> mapping is not null, the path parameter is used as a key into the mapping, and the resulting value is the file path that is opened, relative to the current directory (or it may be an absolute path). If no mapping exists, the file is skipped.</item> <item>If both the <see cref="P:Microsoft.Deployment.Compression.ArchiveFileStreamContext.Directory"/> and the <see cref="P:Microsoft.Deployment.Compression.ArchiveFileStreamContext.Files"/> mapping are specified, the path parameter is used as a key into the mapping, and the resulting value is the file path that is opened, relative to the specified directory (or it may be an absolute path). If no mapping exists, the file is skipped.</item> </list> <para>If the <see cref="P:Microsoft.Deployment.Compression.ArchiveFileStreamContext.ExtractOnlyNewerFiles"/> flag is set, the file is skipped if a file currently exists in the same path with an equal or newer write time.</para> </remarks> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveFileStreamContext.CloseFileWriteStream(System.String,System.IO.Stream,System.IO.FileAttributes,System.DateTime)"> <summary> Closes a stream where an extracted file was written. </summary> <param name="path">The path of the file within the archive.</param> <param name="stream">The stream that was previously returned by <see cref="M:Microsoft.Deployment.Compression.ArchiveFileStreamContext.OpenFileWriteStream(System.String,System.Int64,System.DateTime)"/> and is now ready to be closed.</param> <param name="attributes">The attributes of the extracted file.</param> <param name="lastWriteTime">The last write time of the file.</param> <remarks> After closing the extracted file stream, this method applies the date and attributes to that file. </remarks> </member> <member name="M:Microsoft.Deployment.Compression.ArchiveFileStreamContext.TranslateFilePath(System.String)"> <summary> Translates an internal file path to an external file path using the <see cref="P:Microsoft.Deployment.Compression.ArchiveFileStreamContext.Directory"/> and the <see cref="P:Microsoft.Deployment.Compression.ArchiveFileStreamContext.Files"/> mapping, according to rules documented in <see cref="M:Microsoft.Deployment.Compression.ArchiveFileStreamContext.OpenFileReadStream(System.String,System.IO.FileAttributes@,System.DateTime@)"/> and <see cref="M:Microsoft.Deployment.Compression.ArchiveFileStreamContext.OpenFileWriteStream(System.String,System.Int64,System.DateTime)"/>. </summary> <param name="path">The path of the file with the archive.</param> <returns>The external path of the file, or null if there is no valid translation.</returns> </member> <member name="T:Microsoft.Deployment.Compression.BasicUnpackStreamContext"> <summary> Stream context used to extract a single file from an archive into a memory stream. </summary> </member> <member name="M:Microsoft.Deployment.Compression.BasicUnpackStreamContext.#ctor(System.IO.Stream)"> <summary> Creates a new BasicExtractStreamContext that reads from the specified archive stream. </summary> <param name="archiveStream">Archive stream to read from.</param> </member> <member name="P:Microsoft.Deployment.Compression.BasicUnpackStreamContext.FileStream"> <summary> Gets the stream for the extracted file, or null if no file was extracted. </summary> </member> <member name="M:Microsoft.Deployment.Compression.BasicUnpackStreamContext.OpenArchiveReadStream(System.Int32,System.String,Microsoft.Deployment.Compression.CompressionEngine)"> <summary> Opens the archive stream for reading. Returns a DuplicateStream instance, so the stream may be virtually opened multiple times. </summary> <param name="archiveNumber">The archive number to open (ignored; 0 is assumed).</param> <param name="archiveName">The name of the archive being opened.</param> <param name="compressionEngine">Instance of the compression engine doing the operations.</param> <returns>A stream from which archive bytes are read.</returns> </member> <member name="M:Microsoft.Deployment.Compression.BasicUnpackStreamContext.CloseArchiveReadStream(System.Int32,System.String,System.IO.Stream)"> <summary> Does *not* close the stream. The archive stream should be managed by the code that invokes the archive extraction. </summary> <param name="archiveNumber">The archive number of the stream to close.</param> <param name="archiveName">The name of the archive being closed.</param> <param name="stream">The stream being closed.</param> </member> <member name="M:Microsoft.Deployment.Compression.BasicUnpackStreamContext.OpenFileWriteStream(System.String,System.Int64,System.DateTime)"> <summary> Opens a stream for writing extracted file bytes. The returned stream is a MemoryStream instance, so the file is extracted straight into memory. </summary> <param name="path">Path of the file within the archive.</param> <param name="fileSize">The uncompressed size of the file to be extracted.</param> <param name="lastWriteTime">The last write time of the file.</param> <returns>A stream where extracted file bytes are to be written.</returns> </member> <member name="M:Microsoft.Deployment.Compression.BasicUnpackStreamContext.CloseFileWriteStream(System.String,System.IO.Stream,System.IO.FileAttributes,System.DateTime)"> <summary> Does *not* close the file stream. The file stream is saved in memory so it can be read later. </summary> <param name="path">Path of the file within the archive.</param> <param name="stream">The file stream to be closed.</param> <param name="attributes">The attributes of the extracted file.</param> <param name="lastWriteTime">The last write time of the file.</param> </member> <member name="T:Microsoft.Deployment.Compression.CompressionEngine"> <summary> Base class for an engine capable of packing and unpacking a particular compressed file format. </summary> </member> <member name="M:Microsoft.Deployment.Compression.CompressionEngine.#ctor"> <summary> Creates a new instance of the compression engine base class. </summary> </member> <member name="M:Microsoft.Deployment.Compression.CompressionEngine.Finalize"> <summary> Disposes the compression engine. </summary> </member> <member name="E:Microsoft.Deployment.Compression.CompressionEngine.Progress"> <summary> Occurs when the compression engine reports progress in packing or unpacking an archive. </summary> <seealso cref="T:Microsoft.Deployment.Compression.ArchiveProgressType"/> </member> <member name="P:Microsoft.Deployment.Compression.CompressionEngine.UseTempFiles"> <summary> Gets or sets a flag indicating whether temporary files are created and used during compression. </summary> <value>True if temporary files are used; false if compression is done entirely in-memory.</value> <remarks>The value of this property is true by default. Using temporary files can greatly reduce the memory requirement of compression, especially when compressing large archives. However, setting this property to false may yield slightly better performance when creating small archives. Or it may be necessary if the process does not have sufficient privileges to create temporary files.</remarks> </member> <member name="P:Microsoft.Deployment.Compression.CompressionEngine.CompressionLevel"> <summary> Compression level to use when compressing files. </summary> <value>A compression level ranging from minimum to maximum compression, or no compression.</value> </member> <member name="M:Microsoft.Deployment.Compression.CompressionEngine.Dispose"> <summary> Disposes of resources allocated by the compression engine. </summary> </member> <member name="M:Microsoft.Deployment.Compression.CompressionEngine.Pack(Microsoft.Deployment.Compression.IPackStreamContext,System.Collections.Generic.IEnumerable{System.String})"> <summary> Creates an archive. </summary> <param name="streamContext">A context interface to handle opening and closing of archive and file streams.</param> <param name="files">The paths of the files in the archive (not external file paths).</param> <exception cref="T:Microsoft.Deployment.Compression.ArchiveException">The archive could not be created.</exception> <remarks> The stream context implementation may provide a mapping from the file paths within the archive to the external file paths. </remarks> </member> <member name="M:Microsoft.Deployment.Compression.CompressionEngine.Pack(Microsoft.Deployment.Compression.IPackStreamContext,System.Collections.Generic.IEnumerable{System.String},System.Int64)"> <summary> Creates an archive or chain of archives. </summary> <param name="streamContext">A context interface to handle opening and closing of archive and file streams.</param> <param name="files">The paths of the files in the archive (not external file paths).</param> <param name="maxArchiveSize">The maximum number of bytes for one archive before the contents are chained to the next archive, or zero for unlimited archive size.</param> <exception cref="T:Microsoft.Deployment.Compression.ArchiveException">The archive could not be created.</exception> <remarks> The stream context implementation may provide a mapping from the file paths within the archive to the external file paths. </remarks> </member> <member name="M:Microsoft.Deployment.Compression.CompressionEngine.IsArchive(System.IO.Stream)"> <summary> Checks whether a Stream begins with a header that indicates it is a valid archive. </summary> <param name="stream">Stream for reading the archive file.</param> <returns>True if the stream is a valid archive (with no offset); false otherwise.</returns> </member> <member name="M:Microsoft.Deployment.Compression.CompressionEngine.FindArchiveOffset(System.IO.Stream)"> <summary> Gets the offset of an archive that is positioned 0 or more bytes from the start of the Stream. </summary> <param name="stream">A stream for reading the archive.</param> <returns>The offset in bytes of the archive, or -1 if no archive is found in the Stream.</returns> <remarks>The archive must begin on a 4-byte boundary.</remarks> </member> <member name="M:Microsoft.Deployment.Compression.CompressionEngine.GetFileInfo(System.IO.Stream)"> <summary> Gets information about all files in an archive stream. </summary> <param name="stream">A stream for reading the archive.</param> <returns>Information about all files in the archive stream.</returns> <exception cref="T:Microsoft.Deployment.Compression.ArchiveException">The stream is not a valid archive.</exception> </member> <member name="M:Microsoft.Deployment.Compression.CompressionEngine.GetFileInfo(Microsoft.Deployment.Compression.IUnpackStreamContext,System.Predicate{System.String})"> <summary> Gets information about files in an archive or archive chain. </summary> <param name="streamContext">A context interface to handle opening and closing of archive and file streams.</param> <param name="fileFilter">A predicate that can determine which files to process, optional.</param> <returns>Information about files in the archive stream.</returns> <exception cref="T:Microsoft.Deployment.Compression.ArchiveException">The archive provided by the stream context is not valid.</exception> <remarks> The <paramref name="fileFilter"/> predicate takes an internal file path and returns true to include the file or false to exclude it. </remarks> </member> <member name="M:Microsoft.Deployment.Compression.CompressionEngine.GetFiles(System.IO.Stream)"> <summary> Gets the list of files in an archive Stream. </summary> <param name="stream">A stream for reading the archive.</param> <returns>A list of the paths of all files contained in the archive.</returns> <exception cref="T:Microsoft.Deployment.Compression.ArchiveException">The stream is not a valid archive.</exception> </member> <member name="M:Microsoft.Deployment.Compression.CompressionEngine.GetFiles(Microsoft.Deployment.Compression.IUnpackStreamContext,System.Predicate{System.String})"> <summary> Gets the list of files in an archive or archive chain. </summary> <param name="streamContext">A context interface to handle opening and closing of archive and file streams.</param> <param name="fileFilter">A predicate that can determine which files to process, optional.</param> <returns>An array containing the names of all files contained in the archive or archive chain.</returns> <exception cref="T:Microsoft.Deployment.Compression.ArchiveException">The archive provided by the stream context is not valid.</exception> <remarks> The <paramref name="fileFilter"/> predicate takes an internal file path and returns true to include the file or false to exclude it. </remarks> </member> <member name="M:Microsoft.Deployment.Compression.CompressionEngine.Unpack(System.IO.Stream,System.String)"> <summary> Reads a single file from an archive stream. </summary> <param name="stream">A stream for reading the archive.</param> <param name="path">The path of the file within the archive (not the external file path).</param> <returns>A stream for reading the extracted file, or null if the file does not exist in the archive.</returns> <exception cref="T:Microsoft.Deployment.Compression.ArchiveException">The stream is not a valid archive.</exception> <remarks>The entire extracted file is cached in memory, so this method requires enough free memory to hold the file.</remarks> </member> <member name="M:Microsoft.Deployment.Compression.CompressionEngine.Unpack(Microsoft.Deployment.Compression.IUnpackStreamContext,System.Predicate{System.String})"> <summary> Extracts files from an archive or archive chain. </summary> <param name="streamContext">A context interface to handle opening and closing of archive and file streams.</param> <param name="fileFilter">An optional predicate that can determine which files to process.</param> <exception cref="T:Microsoft.Deployment.Compression.ArchiveException">The archive provided by the stream context is not valid.</exception> <remarks> The <paramref name="fileFilter"/> predicate takes an internal file path and returns true to include the file or false to exclude it. </remarks> </member> <member name="M:Microsoft.Deployment.Compression.CompressionEngine.OnProgress(Microsoft.Deployment.Compression.ArchiveProgressEventArgs)"> <summary> Called by sublcasses to distribute a packing or unpacking progress event to listeners. </summary> <param name="e">Event details.</param> </member> <member name="M:Microsoft.Deployment.Compression.CompressionEngine.Dispose(System.Boolean)"> <summary> Disposes of resources allocated by the compression engine. </summary> <param name="disposing">If true, the method has been called directly or indirectly by a user's code, so managed and unmanaged resources will be disposed. If false, the method has been called by the runtime from inside the finalizer, and only unmanaged resources will be disposed.</param> </member> <member name="M:Microsoft.Deployment.Compression.CompressionEngine.DosDateAndTimeToDateTime(System.Int16,System.Int16,System.DateTime@)"> <summary> Compresion utility function for converting old-style date and time values to a DateTime structure. </summary> </member> <member name="M:Microsoft.Deployment.Compression.CompressionEngine.DateTimeToDosDateAndTime(System.DateTime,System.Int16@,System.Int16@)"> <summary> Compresion utility function for converting a DateTime structure to old-style date and time values. </summary> </member> <member name="T:Microsoft.Deployment.Compression.CompressionLevel"> <summary> Specifies the compression level ranging from minimum compresion to maximum compression, or no compression at all. </summary> <remarks> Although only four values are enumerated, any integral value between <see cref="F:Microsoft.Deployment.Compression.CompressionLevel.Min"/> and <see cref="F:Microsoft.Deployment.Compression.CompressionLevel.Max"/> can also be used. </remarks> </member> <member name="F:Microsoft.Deployment.Compression.CompressionLevel.None"> <summary>Do not compress files, only store.</summary> </member> <member name="F:Microsoft.Deployment.Compression.CompressionLevel.Min"> <summary>Minimum compression; fastest.</summary> </member> <member name="F:Microsoft.Deployment.Compression.CompressionLevel.Normal"> <summary>A compromize between speed and compression efficiency.</summary> </member> <member name="F:Microsoft.Deployment.Compression.CompressionLevel.Max"> <summary>Maximum compression; slowest.</summary> </member> <member name="T:Microsoft.Deployment.Compression.CargoStream"> <summary> Wraps a source stream and carries additional items that are disposed when the stream is closed. </summary> </member> <member name="M:Microsoft.Deployment.Compression.CargoStream.#ctor(System.IO.Stream,System.IDisposable[])"> <summary> Creates a new a cargo stream. </summary> <param name="source">source of the stream</param> <param name="cargo">List of additional items that are disposed when the stream is closed. The order of the list is the order in which the items are disposed.</param> </member> <member name="P:Microsoft.Deployment.Compression.CargoStream.Source"> <summary> Gets the source stream of the cargo stream. </summary> </member> <member name="P:Microsoft.Deployment.Compression.CargoStream.Cargo"> <summary> Gets the list of additional items that are disposed when the stream is closed. The order of the list is the order in which the items are disposed. The contents can be modified any time. </summary> </member> <member name="P:Microsoft.Deployment.Compression.CargoStream.CanRead"> <summary> Gets a value indicating whether the source stream supports reading. </summary> <value>true if the stream supports reading; otherwise, false.</value> </member> <member name="P:Microsoft.Deployment.Compression.CargoStream.CanWrite"> <summary> Gets a value indicating whether the source stream supports writing. </summary> <value>true if the stream supports writing; otherwise, false.</value> </member> <member name="P:Microsoft.Deployment.Compression.CargoStream.CanSeek"> <summary> Gets a value indicating whether the source stream supports seeking. </summary> <value>true if the stream supports seeking; otherwise, false.</value> </member> <member name="P:Microsoft.Deployment.Compression.CargoStream.Length"> <summary> Gets the length of the source stream. </summary> </member> <member name="P:Microsoft.Deployment.Compression.CargoStream.Position"> <summary> Gets or sets the position of the source stream. </summary> </member> <member name="M:Microsoft.Deployment.Compression.CargoStream.Flush"> <summary> Flushes the source stream. </summary> </member> <member name="M:Microsoft.Deployment.Compression.CargoStream.SetLength(System.Int64)"> <summary> Sets the length of the source stream. </summary> <param name="value">The desired length of the stream in bytes.</param> </member> <member name="M:Microsoft.Deployment.Compression.CargoStream.Close"> <summary> Closes the source stream and also closes the additional objects that are carried. </summary> </member> <member name="M:Microsoft.Deployment.Compression.CargoStream.Read(System.Byte[],System.Int32,System.Int32)"> <summary> Reads from the source stream. </summary> <param name="buffer">An array of bytes. When this method returns, the buffer contains the specified byte array with the values between offset and (offset + count - 1) replaced by the bytes read from the source.</param> <param name="offset">The zero-based byte offset in buffer at which to begin storing the data read from the stream.</param> <param name="count">The maximum number of bytes to be read from the stream.</param> <returns>The total number of bytes read into the buffer. This can be less than the number of bytes requested if that many bytes are not currently available, or zero (0) if the end of the stream has been reached.</returns> </member> <member name="M:Microsoft.Deployment.Compression.CargoStream.Write(System.Byte[],System.Int32,System.Int32)"> <summary> Writes to the source stream. </summary> <param name="buffer">An array of bytes. This method copies count bytes from buffer to the stream.</param> <param name="offset">The zero-based byte offset in buffer at which to begin copying bytes to the stream.</param> <param name="count">The number of bytes to be written to the stream.</param> </member> <member name="M:Microsoft.Deployment.Compression.CargoStream.Seek(System.Int64,System.IO.SeekOrigin)"> <summary> Changes the position of the source stream. </summary> <param name="offset">A byte offset relative to the origin parameter.</param> <param name="origin">A value of type SeekOrigin indicating the reference point used to obtain the new position.</param> <returns>The new position within the stream.</returns> </member> <member name="T:Microsoft.Deployment.Compression.DuplicateStream"> <summary> Duplicates a source stream by maintaining a separate position. </summary> <remarks> WARNING: duplicate streams are not thread-safe with respect to each other or the original stream. If multiple threads use duplicate copies of the same stream, they must synchronize for any operations. </remarks> </member> <member name="M:Microsoft.Deployment.Compression.DuplicateStream.#ctor(System.IO.Stream)"> <summary> Creates a new duplicate of a stream. </summary> <param name="source">source of the duplicate</param> </member> <member name="P:Microsoft.Deployment.Compression.DuplicateStream.Source"> <summary> Gets the original stream that was used to create the duplicate. </summary> </member> <member name="P:Microsoft.Deployment.Compression.DuplicateStream.CanRead"> <summary> Gets a value indicating whether the source stream supports reading. </summary> <value>true if the stream supports reading; otherwise, false.</value> </member> <member name="P:Microsoft.Deployment.Compression.DuplicateStream.CanWrite"> <summary> Gets a value indicating whether the source stream supports writing. </summary> <value>true if the stream supports writing; otherwise, false.</value> </member> <member name="P:Microsoft.Deployment.Compression.DuplicateStream.CanSeek"> <summary> Gets a value indicating whether the source stream supports seeking. </summary> <value>true if the stream supports seeking; otherwise, false.</value> </member> <member name="P:Microsoft.Deployment.Compression.DuplicateStream.Length"> <summary> Gets the length of the source stream. </summary> </member> <member name="P:Microsoft.Deployment.Compression.DuplicateStream.Position"> <summary> Gets or sets the position of the current stream, ignoring the position of the source stream. </summary> </member> <member name="M:Microsoft.Deployment.Compression.DuplicateStream.OriginalStream(System.IO.Stream)"> <summary> Retrieves the original stream from a possible duplicate stream. </summary> <param name="stream">Possible duplicate stream.</param> <returns>If the stream is a DuplicateStream, returns the duplicate's source; otherwise returns the same stream.</returns> </member> <member name="M:Microsoft.Deployment.Compression.DuplicateStream.Flush"> <summary> Flushes the source stream. </summary> </member> <member name="M:Microsoft.Deployment.Compression.DuplicateStream.SetLength(System.Int64)"> <summary> Sets the length of the source stream. </summary> <param name="value">The desired length of the stream in bytes.</param> </member> <member name="M:Microsoft.Deployment.Compression.DuplicateStream.Close"> <summary> Closes the underlying stream, effectively closing ALL duplicates. </summary> </member> <member name="M:Microsoft.Deployment.Compression.DuplicateStream.Read(System.Byte[],System.Int32,System.Int32)"> <summary> Reads from the source stream while maintaining a separate position and not impacting the source stream's position. </summary> <param name="buffer">An array of bytes. When this method returns, the buffer contains the specified byte array with the values between offset and (offset + count - 1) replaced by the bytes read from the current source.</param> <param name="offset">The zero-based byte offset in buffer at which to begin storing the data read from the current stream.</param> <param name="count">The maximum number of bytes to be read from the current stream.</param> <returns>The total number of bytes read into the buffer. This can be less than the number of bytes requested if that many bytes are not currently available, or zero (0) if the end of the stream has been reached.</returns> </member> <member name="M:Microsoft.Deployment.Compression.DuplicateStream.Write(System.Byte[],System.Int32,System.Int32)"> <summary> Writes to the source stream while maintaining a separate position and not impacting the source stream's position. </summary> <param name="buffer">An array of bytes. This method copies count bytes from buffer to the current stream.</param> <param name="offset">The zero-based byte offset in buffer at which to begin copying bytes to the current stream.</param> <param name="count">The number of bytes to be written to the current stream.</param> </member> <member name="M:Microsoft.Deployment.Compression.DuplicateStream.Seek(System.Int64,System.IO.SeekOrigin)"> <summary> Changes the position of this stream without impacting the source stream's position. </summary> <param name="offset">A byte offset relative to the origin parameter.</param> <param name="origin">A value of type SeekOrigin indicating the reference point used to obtain the new position.</param> <returns>The new position within the current stream.</returns> </member> <member name="T:Microsoft.Deployment.Compression.IPackStreamContext"> <summary> This interface provides the methods necessary for the <see cref="T:Microsoft.Deployment.Compression.CompressionEngine"/> to open and close streams for archives and files. The implementor of this interface can use any kind of logic to determine what kind of streams to open and where. </summary> </member> <member name="M:Microsoft.Deployment.Compression.IPackStreamContext.GetArchiveName(System.Int32)"> <summary> Gets the name of the archive with a specified number. </summary> <param name="archiveNumber">The 0-based index of the archive within the chain.</param> <returns>The name of the requested archive. May be an empty string for non-chained archives, but may never be null.</returns> <remarks>The archive name is the name stored within the archive, used for identification of the archive especially among archive chains. That name is often, but not necessarily the same as the filename of the archive package.</remarks> </member> <member name="M:Microsoft.Deployment.Compression.IPackStreamContext.OpenArchiveWriteStream(System.Int32,System.String,System.Boolean,Microsoft.Deployment.Compression.CompressionEngine)"> <summary> Opens a stream for writing an archive package. </summary> <param name="archiveNumber">The 0-based index of the archive within the chain.</param> <param name="archiveName">The name of the archive that was returned by <see cref="M:Microsoft.Deployment.Compression.IPackStreamContext.GetArchiveName(System.Int32)"/>.</param> <param name="truncate">True if the stream should be truncated when opened (if it already exists); false if an existing stream is being re-opened for writing additional data.</param> <param name="compressionEngine">Instance of the compression engine doing the operations.</param> <returns>A writable Stream where the compressed archive bytes will be written, or null to cancel the archive creation.</returns> <remarks> If this method returns null, the archive engine will throw a FileNotFoundException. </remarks> </member> <member name="M:Microsoft.Deployment.Compression.IPackStreamContext.CloseArchiveWriteStream(System.Int32,System.String,System.IO.Stream)"> <summary> Closes a stream where an archive package was written. </summary> <param name="archiveNumber">The 0-based index of the archive within the chain.</param> <param name="archiveName">The name of the archive that was previously returned by <see cref="M:Microsoft.Deployment.Compression.IPackStreamContext.GetArchiveName(System.Int32)"/>.</param> <param name="stream">A stream that was previously returned by <see cref="M:Microsoft.Deployment.Compression.IPackStreamContext.OpenArchiveWriteStream(System.Int32,System.String,System.Boolean,Microsoft.Deployment.Compression.CompressionEngine)"/> and is now ready to be closed.</param> <remarks> If there is another archive package in the chain, then after this stream is closed a new stream will be opened. </remarks> </member> <member name="M:Microsoft.Deployment.Compression.IPackStreamContext.OpenFileReadStream(System.String,System.IO.FileAttributes@,System.DateTime@)"> <summary> Opens a stream to read a file that is to be included in an archive. </summary> <param name="path">The path of the file within the archive. This is often, but not necessarily, the same as the relative path of the file outside the archive.</param> <param name="attributes">Returned attributes of the opened file, to be stored in the archive.</param> <param name="lastWriteTime">Returned last-modified time of the opened file, to be stored in the archive.</param> <returns>A readable Stream where the file bytes will be read from before they are compressed, or null to skip inclusion of the file and continue to the next file.</returns> </member> <member name="M:Microsoft.Deployment.Compression.IPackStreamContext.CloseFileReadStream(System.String,System.IO.Stream)"> <summary> Closes a stream that has been used to read a file. </summary> <param name="path">The path of the file within the archive; the same as the path provided when the stream was opened.</param> <param name="stream">A stream that was previously returned by <see cref="M:Microsoft.Deployment.Compression.IPackStreamContext.OpenFileReadStream(System.String,System.IO.FileAttributes@,System.DateTime@)"/> and is now ready to be closed.</param> </member> <member name="M:Microsoft.Deployment.Compression.IPackStreamContext.GetOption(System.String,System.Object[])"> <summary> Gets extended parameter information specific to the compression format being used. </summary> <param name="optionName">Name of the option being requested.</param> <param name="parameters">Parameters for the option; for per-file options, the first parameter is typically the internal file path.</param> <returns>Option value, or null to use the default behavior.</returns> <remarks> This method provides a way to set uncommon options during packaging, or a way to handle aspects of compression formats not supported by the base library. <para>For example, this may be used by the zip compression library to specify different compression methods/levels on a per-file basis.</para> <para>The available option names, parameters, and expected return values should be documented by each compression library.</para> </remarks> </member> <member name="T:Microsoft.Deployment.Compression.IUnpackStreamContext"> <summary> This interface provides the methods necessary for the <see cref="T:Microsoft.Deployment.Compression.CompressionEngine"/> to open and close streams for archives and files. The implementor of this interface can use any kind of logic to determine what kind of streams to open and where </summary> </member> <member name="M:Microsoft.Deployment.Compression.IUnpackStreamContext.OpenArchiveReadStream(System.Int32,System.String,Microsoft.Deployment.Compression.CompressionEngine)"> <summary> Opens the archive stream for reading. </summary> <param name="archiveNumber">The zero-based index of the archive to open.</param> <param name="archiveName">The name of the archive being opened.</param> <param name="compressionEngine">Instance of the compression engine doing the operations.</param> <returns>A stream from which archive bytes are read, or null to cancel extraction of the archive.</returns> <remarks> When the first archive in a chain is opened, the name is not yet known, so the provided value will be an empty string. When opening further archives, the provided value is the next-archive name stored in the previous archive. This name is often, but not necessarily, the same as the filename of the archive package to be opened. <para>If this method returns null, the archive engine will throw a FileNotFoundException.</para> </remarks> </member> <member name="M:Microsoft.Deployment.Compression.IUnpackStreamContext.CloseArchiveReadStream(System.Int32,System.String,System.IO.Stream)"> <summary> Closes a stream where an archive package was read. </summary> <param name="archiveNumber">The archive number of the stream to close.</param> <param name="archiveName">The name of the archive being closed.</param> <param name="stream">The stream that was previously returned by <see cref="M:Microsoft.Deployment.Compression.IUnpackStreamContext.OpenArchiveReadStream(System.Int32,System.String,Microsoft.Deployment.Compression.CompressionEngine)"/> and is now ready to be closed.</param> </member> <member name="M:Microsoft.Deployment.Compression.IUnpackStreamContext.OpenFileWriteStream(System.String,System.Int64,System.DateTime)"> <summary> Opens a stream for writing extracted file bytes. </summary> <param name="path">The path of the file within the archive. This is often, but not necessarily, the same as the relative path of the file outside the archive.</param> <param name="fileSize">The uncompressed size of the file to be extracted.</param> <param name="lastWriteTime">The last write time of the file to be extracted.</param> <returns>A stream where extracted file bytes are to be written, or null to skip extraction of the file and continue to the next file.</returns> <remarks> The implementor may use the path, size and date information to dynamically decide whether or not the file should be extracted. </remarks> </member> <member name="M:Microsoft.Deployment.Compression.IUnpackStreamContext.CloseFileWriteStream(System.String,System.IO.Stream,System.IO.FileAttributes,System.DateTime)"> <summary> Closes a stream where an extracted file was written. </summary> <param name="path">The path of the file within the archive.</param> <param name="stream">The stream that was previously returned by <see cref="M:Microsoft.Deployment.Compression.IUnpackStreamContext.OpenFileWriteStream(System.String,System.Int64,System.DateTime)"/> and is now ready to be closed.</param> <param name="attributes">The attributes of the extracted file.</param> <param name="lastWriteTime">The last write time of the file.</param> <remarks> The implementor may wish to apply the attributes and date to the newly-extracted file. </remarks> </member> <member name="T:Microsoft.Deployment.Compression.OffsetStream"> <summary> Wraps a source stream and offsets all read/write/seek calls by a given value. </summary> <remarks> This class is used to trick archive an packing or unpacking process into reading or writing at an offset into a file, primarily for self-extracting packages. </remarks> </member> <member name="M:Microsoft.Deployment.Compression.OffsetStream.#ctor(System.IO.Stream,System.Int64)"> <summary> Creates a new OffsetStream instance from a source stream and using a specified offset. </summary> <param name="source">Underlying stream for which all calls will be offset.</param> <param name="offset">Positive or negative number of bytes to offset.</param> </member> <member name="P:Microsoft.Deployment.Compression.OffsetStream.Source"> <summary> Gets the underlying stream that this OffsetStream calls into. </summary> </member> <member name="P:Microsoft.Deployment.Compression.OffsetStream.Offset"> <summary> Gets the number of bytes to offset all calls before redirecting to the underlying stream. </summary> </member> <member name="P:Microsoft.Deployment.Compression.OffsetStream.CanRead"> <summary> Gets a value indicating whether the source stream supports reading. </summary> <value>true if the stream supports reading; otherwise, false.</value> </member> <member name="P:Microsoft.Deployment.Compression.OffsetStream.CanWrite"> <summary> Gets a value indicating whether the source stream supports writing. </summary> <value>true if the stream supports writing; otherwise, false.</value> </member> <member name="P:Microsoft.Deployment.Compression.OffsetStream.CanSeek"> <summary> Gets a value indicating whether the source stream supports seeking. </summary> <value>true if the stream supports seeking; otherwise, false.</value> </member> <member name="P:Microsoft.Deployment.Compression.OffsetStream.Length"> <summary> Gets the effective length of the stream, which is equal to the length of the source stream minus the offset. </summary> </member> <member name="P:Microsoft.Deployment.Compression.OffsetStream.Position"> <summary> Gets or sets the effective position of the stream, which is equal to the position of the source stream minus the offset. </summary> </member> <member name="M:Microsoft.Deployment.Compression.OffsetStream.Read(System.Byte[],System.Int32,System.Int32)"> <summary> Reads a sequence of bytes from the source stream and advances the position within the stream by the number of bytes read. </summary> <param name="buffer">An array of bytes. When this method returns, the buffer contains the specified byte array with the values between offset and (offset + count - 1) replaced by the bytes read from the current source.</param> <param name="offset">The zero-based byte offset in buffer at which to begin storing the data read from the current stream.</param> <param name="count">The maximum number of bytes to be read from the current stream.</param> <returns>The total number of bytes read into the buffer. This can be less than the number of bytes requested if that many bytes are not currently available, or zero (0) if the end of the stream has been reached.</returns> </member> <member name="M:Microsoft.Deployment.Compression.OffsetStream.Write(System.Byte[],System.Int32,System.Int32)"> <summary> Writes a sequence of bytes to the source stream and advances the current position within this stream by the number of bytes written. </summary> <param name="buffer">An array of bytes. This method copies count bytes from buffer to the current stream.</param> <param name="offset">The zero-based byte offset in buffer at which to begin copying bytes to the current stream.</param> <param name="count">The number of bytes to be written to the current stream.</param> </member> <member name="M:Microsoft.Deployment.Compression.OffsetStream.ReadByte"> <summary> Reads a byte from the stream and advances the position within the source stream by one byte, or returns -1 if at the end of the stream. </summary> <returns>The unsigned byte cast to an Int32, or -1 if at the end of the stream.</returns> </member> <member name="M:Microsoft.Deployment.Compression.OffsetStream.WriteByte(System.Byte)"> <summary> Writes a byte to the current position in the source stream and advances the position within the stream by one byte. </summary> <param name="value">The byte to write to the stream.</param> </member> <member name="M:Microsoft.Deployment.Compression.OffsetStream.Flush"> <summary> Flushes the source stream. </summary> </member> <member name="M:Microsoft.Deployment.Compression.OffsetStream.Seek(System.Int64,System.IO.SeekOrigin)"> <summary> Sets the position within the current stream, which is equal to the position within the source stream minus the offset. </summary> <param name="offset">A byte offset relative to the origin parameter.</param> <param name="origin">A value of type SeekOrigin indicating the reference point used to obtain the new position.</param> <returns>The new position within the current stream.</returns> </member> <member name="M:Microsoft.Deployment.Compression.OffsetStream.SetLength(System.Int64)"> <summary> Sets the effective length of the stream, which is equal to the length of the source stream minus the offset. </summary> <param name="value">The desired length of the current stream in bytes.</param> </member> <member name="M:Microsoft.Deployment.Compression.OffsetStream.Close"> <summary> Closes the underlying stream. </summary> </member> <member name="T:Microsoft.Tools.WindowsInstallerXml.WixDistribution"> <summary> Distribution specific strings. </summary> </member> <member name="F:Microsoft.Tools.WindowsInstallerXml.WixDistribution.NewsUrl"> <summary> News URL for the distribution. </summary> </member> <member name="F:Microsoft.Tools.WindowsInstallerXml.WixDistribution.ShortProduct"> <summary> Short product name for the distribution. </summary> </member> <member name="F:Microsoft.Tools.WindowsInstallerXml.WixDistribution.SupportUrl"> <summary> Support URL for the distribution. </summary> </member> <member name="F:Microsoft.Tools.WindowsInstallerXml.WixDistribution.TelemetryUrlFormat"> <summary> Telemetry URL format for the distribution. </summary> </member> <member name="F:Microsoft.Tools.WindowsInstallerXml.WixDistribution.VSExtensionsLandingUrl"> <summary> VS Extensions Landing page Url for the distribution. </summary> </member> </members> </doc> ```
/content/code_sandbox/Source/src/WixSharp.Samples/Wix_bin/SDK/Microsoft.Deployment.Compression.xml
xml
2016-01-16T05:51:01
2024-08-16T12:26:25
wixsharp
oleg-shilo/wixsharp
1,077
23,249
```xml // See LICENSE.txt for license information. import type ChannelModel from './channel'; import type GroupModel from './group'; import type {Relation, Model} from '@nozbe/watermelondb'; import type {Associations} from '@nozbe/watermelondb/Model'; /** * The GroupChannel model represents the 'association table' where many groups have channels and many channels are in * groups (relationship type N:N) */ declare class GroupChannelModel extends Model { /** table (name) : GroupChannel */ static table: string; /** associations : Describes every relationship to this table. */ static associations: Associations; /** group_id : The foreign key to the related Group record */ groupId: string; /* channel_id : The foreign key to the related User record*/ channelId: string; /** created_at : The timestamp for when it was created */ createdAt: number; /** updated_at : The timestamp for when it was updated */ updatedAt: number; /** deleted_at : The timestamp for when it was deleted */ deletedAt: number; /** group : The related group */ group: Relation<GroupModel>; /** channel : The related channel */ channel: Relation<ChannelModel>; } export default GroupChannelModel; ```
/content/code_sandbox/types/database/models/servers/group_channel.ts
xml
2016-10-07T16:52:32
2024-08-16T12:08:38
mattermost-mobile
mattermost/mattermost-mobile
2,155
266
```xml <?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="path_to_url"> <item android:id="@android:id/background"> <shape> <solid android:color="#4c000000"/> <size android:height="4.0dip"/> <corners android:radius="1.0dip"/> </shape> </item> <item android:id="@android:id/secondaryProgress"> <clip> <shape> <solid android:color="#ffe0e0e0"/> <size android:height="4.0dip"/> <corners android:radius="1.0dip"/> </shape> </clip> </item> <item android:id="@android:id/progress"> <clip> <shape> <solid android:color="#fff85959"/> <size android:height="4.0dip"/> <corners android:radius="1.0dip"/> </shape> </clip> </item> </layer-list> ```
/content/code_sandbox/library/jcvideoplayer/src/main/res/drawable/jc_progress.xml
xml
2016-09-26T09:42:41
2024-08-12T07:09:06
AndroidFire
jaydenxiao2016/AndroidFire
2,634
233
```xml // Styles import './VRating.sass' // Components import { VBtn } from '@/components/VBtn' // Composables import { makeComponentProps } from '@/composables/component' import { makeDensityProps } from '@/composables/density' import { IconValue } from '@/composables/icons' import { useLocale } from '@/composables/locale' import { useProxiedModel } from '@/composables/proxiedModel' import { makeSizeProps } from '@/composables/size' import { makeTagProps } from '@/composables/tag' import { makeThemeProps, provideTheme } from '@/composables/theme' // Utilities import { computed, shallowRef } from 'vue' import { clamp, createRange, genericComponent, getUid, propsFactory, useRender } from '@/util' // Types import type { Prop } from 'vue' import type { Variant } from '@/composables/variant' type VRatingItemSlot = { value: number index: number isFilled: boolean isHovered: boolean icon: IconValue color?: string props: Record<string, unknown> rating: number } type VRatingItemLabelSlot = { value: number index: number label?: string } type VRatingSlots = { item: VRatingItemSlot 'item-label': VRatingItemLabelSlot } export const makeVRatingProps = propsFactory({ name: String, itemAriaLabel: { type: String, default: '$vuetify.rating.ariaLabel.item', }, activeColor: String, color: String, clearable: Boolean, disabled: Boolean, emptyIcon: { type: IconValue, default: '$ratingEmpty', }, fullIcon: { type: IconValue, default: '$ratingFull', }, halfIncrements: Boolean, hover: Boolean, length: { type: [Number, String], default: 5, }, readonly: Boolean, modelValue: { type: [Number, String], default: 0, }, itemLabels: Array as Prop<string[]>, itemLabelPosition: { type: String, default: 'top', validator: (v: any) => ['top', 'bottom'].includes(v), }, ripple: Boolean, ...makeComponentProps(), ...makeDensityProps(), ...makeSizeProps(), ...makeTagProps(), ...makeThemeProps(), }, 'VRating') export const VRating = genericComponent<VRatingSlots>()({ name: 'VRating', props: makeVRatingProps(), emits: { 'update:modelValue': (value: number | string) => true, }, setup (props, { slots }) { const { t } = useLocale() const { themeClasses } = provideTheme(props) const rating = useProxiedModel(props, 'modelValue') const normalizedValue = computed(() => clamp(parseFloat(rating.value), 0, +props.length)) const range = computed(() => createRange(Number(props.length), 1)) const increments = computed(() => range.value.flatMap(v => props.halfIncrements ? [v - 0.5, v] : [v])) const hoverIndex = shallowRef(-1) const itemState = computed(() => increments.value.map(value => { const isHovering = props.hover && hoverIndex.value > -1 const isFilled = normalizedValue.value >= value const isHovered = hoverIndex.value >= value const isFullIcon = isHovering ? isHovered : isFilled const icon = isFullIcon ? props.fullIcon : props.emptyIcon const activeColor = props.activeColor ?? props.color const color = (isFilled || isHovered) ? activeColor : props.color return { isFilled, isHovered, icon, color } })) const eventState = computed(() => [0, ...increments.value].map(value => { function onMouseenter () { hoverIndex.value = value } function onMouseleave () { hoverIndex.value = -1 } function onClick () { if (props.disabled || props.readonly) return rating.value = normalizedValue.value === value && props.clearable ? 0 : value } return { onMouseenter: props.hover ? onMouseenter : undefined, onMouseleave: props.hover ? onMouseleave : undefined, onClick, } })) const name = computed(() => props.name ?? `v-rating-${getUid()}`) function VRatingItem ({ value, index, showStar = true }: { value: number, index: number, showStar?: boolean }) { const { onMouseenter, onMouseleave, onClick } = eventState.value[index + 1] const id = `${name.value}-${String(value).replace('.', '-')}` const btnProps = { color: itemState.value[index]?.color, density: props.density, disabled: props.disabled, icon: itemState.value[index]?.icon, ripple: props.ripple, size: props.size, variant: 'plain' as Variant, } return ( <> <label for={ id } class={{ 'v-rating__item--half': props.halfIncrements && value % 1 > 0, 'v-rating__item--full': props.halfIncrements && value % 1 === 0, }} onMouseenter={ onMouseenter } onMouseleave={ onMouseleave } onClick={ onClick } > <span class="v-rating__hidden">{ t(props.itemAriaLabel, value, props.length) }</span> { !showStar ? undefined : slots.item ? slots.item({ ...itemState.value[index], props: btnProps, value, index, rating: normalizedValue.value, }) : ( <VBtn aria-label={ t(props.itemAriaLabel, value, props.length) } { ...btnProps } /> ) } </label> <input class="v-rating__hidden" name={ name.value } id={ id } type="radio" value={ value } checked={ normalizedValue.value === value } tabindex={ -1 } readonly={ props.readonly } disabled={ props.disabled } /> </> ) } function createLabel (labelProps: { value: number, index: number, label?: string }) { if (slots['item-label']) return slots['item-label'](labelProps) if (labelProps.label) return <span>{ labelProps.label }</span> return <span>&nbsp;</span> } useRender(() => { const hasLabels = !!props.itemLabels?.length || slots['item-label'] return ( <props.tag class={[ 'v-rating', { 'v-rating--hover': props.hover, 'v-rating--readonly': props.readonly, }, themeClasses.value, props.class, ]} style={ props.style } > <VRatingItem value={ 0 } index={ -1 } showStar={ false } /> { range.value.map((value, i) => ( <div class="v-rating__wrapper"> { hasLabels && props.itemLabelPosition === 'top' ? createLabel({ value, index: i, label: props.itemLabels?.[i] }) : undefined } <div class="v-rating__item"> { props.halfIncrements ? ( <> <VRatingItem value={ value - 0.5 } index={ i * 2 } /> <VRatingItem value={ value } index={ (i * 2) + 1 } /> </> ) : ( <VRatingItem value={ value } index={ i } /> )} </div> { hasLabels && props.itemLabelPosition === 'bottom' ? createLabel({ value, index: i, label: props.itemLabels?.[i] }) : undefined } </div> ))} </props.tag> ) }) return {} }, }) export type VRating = InstanceType<typeof VRating> ```
/content/code_sandbox/packages/vuetify/src/components/VRating/VRating.tsx
xml
2016-09-12T00:39:35
2024-08-16T20:06:39
vuetify
vuetifyjs/vuetify
39,539
1,789
```xml const inputTags = ["input", "textarea", "select"]; const labelTags = ["label", "span"]; const attributes = ["id", "name", "label-aria", "placeholder"]; const invalidElement = chrome.i18n.getMessage("copyCustomFieldNameInvalidElement"); const noUniqueIdentifier = chrome.i18n.getMessage("copyCustomFieldNameNotUnique"); let clickedEl: HTMLElement = null; // Find the best attribute to be used as the Name for an element in a custom field. function getClickedElementIdentifier() { if (clickedEl == null) { return invalidElement; } const clickedTag = clickedEl.nodeName.toLowerCase(); let inputEl = null; // Try to identify the input element (which may not be the clicked element) if (labelTags.includes(clickedTag)) { let inputId = null; if (clickedTag === "label") { inputId = clickedEl.getAttribute("for"); } else { inputId = clickedEl.closest("label")?.getAttribute("for"); } inputEl = document.getElementById(inputId); } else { inputEl = clickedEl; } if (inputEl == null || !inputTags.includes(inputEl.nodeName.toLowerCase())) { return invalidElement; } for (const attr of attributes) { const attributeValue = inputEl.getAttribute(attr); const selector = "[" + attr + '="' + attributeValue + '"]'; if (!isNullOrEmpty(attributeValue) && document.querySelectorAll(selector)?.length === 1) { return attributeValue; } } return noUniqueIdentifier; } function isNullOrEmpty(s: string) { return s == null || s === ""; } // We only have access to the element that's been clicked when the context menu is first opened. // Remember it for use later. document.addEventListener("contextmenu", (event) => { clickedEl = event.target as HTMLElement; }); // Runs when the 'Copy Custom Field Name' context menu item is actually clicked. chrome.runtime.onMessage.addListener((event, _sender, sendResponse) => { if (event.command === "getClickedElement") { const identifier = getClickedElementIdentifier(); if (sendResponse) { sendResponse(identifier); } // FIXME: Verify that this floating promise is intentional. If it is, add an explanatory comment and ensure there is proper error handling. // eslint-disable-next-line @typescript-eslint/no-floating-promises chrome.runtime.sendMessage({ command: "getClickedElementResponse", sender: "contextMenuHandler", identifier: identifier, }); } }); ```
/content/code_sandbox/apps/browser/src/autofill/content/context-menu-handler.ts
xml
2016-03-09T23:14:01
2024-08-16T15:07:51
clients
bitwarden/clients
8,877
542
```xml import { Client } from 'prisma-cli-engine' import { buildClientSchema, printSchema, parse, DefinitionNode, print, Kind, } from 'graphql' import { groupBy } from 'lodash' type PrismaDefinitionType = 'model' | 'rest' const typesOrder: PrismaDefinitionType[] = ['model', 'rest'] const descriptions: { [key: string]: string } = { model: `Model Types`, rest: `Other Types`, } export async function fetchAndPrintSchema( client: Client, serviceName: string, stageName: string, token?: string, workspaceSlug?: string, ): Promise<string> { const introspection = await client.introspect( serviceName, stageName, token, workspaceSlug, ) const schema = buildClientSchema(introspection) const sdl = printSchema(schema) const document = parse(sdl) const groupedDefinitions = groupBy(document.definitions, classifyDefinition) let sortedDefinitions: DefinitionNode[] = [] typesOrder.map(type => { const definitions = groupedDefinitions[type] sortedDefinitions = sortedDefinitions.concat(definitions) }) let newSdl = print({ kind: Kind.DOCUMENT, definitions: sortedDefinitions, }) const newDocument = parse(newSdl) // add comments to document let countOffset = 0 let charOffset = 0 typesOrder.forEach((type, index) => { if (!groupedDefinitions[type]) { return } const definitionCount = groupedDefinitions[type].length const definitions = newDocument.definitions.slice( countOffset, definitionCount, ) const start = definitions[0].loc!.start const comment = `\ ${index > 0 ? '\n' : ''}# # ${descriptions[type]} #\n\n` newSdl = newSdl.slice(0, start + charOffset) + comment + newSdl.slice(start + charOffset) charOffset += comment.length countOffset += definitionCount }) const header = `# THIS FILE HAS BEEN AUTO-GENERATED BY "PRISMA DEPLOY" # DO NOT EDIT THIS FILE DIRECTLY\n\n` return header + newSdl } function classifyDefinition(def: DefinitionNode): PrismaDefinitionType { if ( def.kind === 'ObjectTypeDefinition' && def.interfaces && def.interfaces.length > 0 && def.interfaces[0].name.value === 'Node' ) { return 'model' } return 'rest' } ```
/content/code_sandbox/cli/packages/prisma-cli-core/src/commands/deploy/printSchema.ts
xml
2016-09-25T12:54:40
2024-08-16T11:41:23
prisma1
prisma/prisma1
16,549
560
```xml import * as strip from "strip"; import * as _ from "underscore"; import { checkPermission, requireLogin } from "@erxes/api-utils/src/permissions"; import { IUserDocument } from "@erxes/api-utils/src/types"; import { IMessageDocument } from "../../models/definitions/conversationMessages"; import { IConversationDocument } from "../../models/definitions/conversations"; import { AUTO_BOT_MESSAGES } from "../../models/definitions/constants"; import { debugError } from "@erxes/api-utils/src/debuggers"; import { sendContactsMessage, sendCardsMessage, sendCoreMessage, sendNotificationsMessage, sendCommonMessage, sendAutomationsMessage } from "../../messageBroker"; import { putUpdateLog } from "../../logUtils"; import QueryBuilder, { IListArgs } from "../../conversationQueryBuilder"; import { CONVERSATION_STATUSES } from "../../models/definitions/constants"; import { generateModels, IContext, IModels } from "../../connectionResolver"; import { isServiceRunning } from "../../utils"; import { IIntegrationDocument } from "../../models/definitions/integrations"; import graphqlPubsub from "@erxes/api-utils/src/graphqlPubsub"; import { sendToWebhook } from "@erxes/api-utils/src"; export interface IConversationMessageAdd { conversationId: string; content: string; mentionedUserIds?: string[]; internal?: boolean; attachments?: any; userId?: string; extraInfo?: any; } interface IAttachment { name: string; type: string; url: string; size?: number; duration?: number; } interface IConversationConvert { _id: string; type: string; itemId: string; stageId: string; itemName: string; bookingProductId?: string; customFieldsData?: { [key: string]: any }; priority?: string; assignedUserIds?: string[]; labelIds?: string[]; startDate?: Date; closeDate?: Date; attachments?: IAttachment[]; description?: string; } /** * Send conversation to integrations */ const sendConversationToServices = async ( subdomain: string, integration: IIntegrationDocument, serviceName: string, payload: object ) => { try { return sendCommonMessage({ subdomain, isRPC: true, serviceName, action: "api_to_integrations", data: { action: `reply-${integration.kind.split("-")[1]}`, type: serviceName, payload: JSON.stringify(payload), integrationId: integration._id } }); } catch (e) { throw new Error( `Your message not sent Error: ${e.message}. Go to integrations list and fix it` ); } }; /** * conversation notrification receiver ids */ export const conversationNotifReceivers = ( conversation: IConversationDocument, currentUserId: string, exclude: boolean = true ): string[] => { let userIds: string[] = []; // assigned user can get notifications if (conversation.assignedUserId) { userIds.push(conversation.assignedUserId); } // participated users can get notifications if ( conversation.participatedUserIds && conversation.participatedUserIds.length > 0 ) { userIds = _.union(userIds, conversation.participatedUserIds); } // exclude current user if (exclude) { userIds = _.without(userIds, currentUserId); } return userIds; }; /** * Using this subscription to track conversation detail's assignee, tag, status * changes */ export const publishConversationsChanged = async ( subdomain: string, _ids: string[], type: string ): Promise<string[]> => { const models = await generateModels(subdomain); for (const _id of _ids) { graphqlPubsub.publish(`conversationChanged:${_id}`, { conversationChanged: { conversationId: _id, type } }); const conversation = await models.Conversations.findOne({ _id }); sendAutomationsMessage({ subdomain, action: "trigger", data: { type: `inbox:conversation`, targets: [conversation] } }); } return _ids; }; /** * Publish admin's message */ export const publishMessage = async ( models: IModels, message: IMessageDocument, customerId?: string ) => { graphqlPubsub.publish( `conversationMessageInserted:${message.conversationId}`, { conversationMessageInserted: message } ); // widget is listening for this subscription to show notification // customerId available means trying to notify to client if (customerId) { const unreadCount = await models.ConversationMessages.widgetsGetUnreadMessagesCount( message.conversationId ); graphqlPubsub.publish(`conversationAdminMessageInserted:${customerId}`, { conversationAdminMessageInserted: { customerId, unreadCount } }); } }; export const sendNotifications = async ( subdomain: string, { user, conversations, type, mobile, messageContent }: { user: IUserDocument; conversations: IConversationDocument[]; type: string; mobile?: boolean; messageContent?: string; } ) => { for (const conversation of conversations) { if (!conversation || !conversation._id) { throw new Error("Error: Conversation or Conversation ID is undefined"); } if (!user || !user._id) { throw new Error("Error: User or User ID is undefined"); } const doc = { createdUser: user, link: `/inbox/index?_id=${conversation._id}`, title: "Conversation updated", content: messageContent ? messageContent : conversation.content || "Conversation updated", notifType: type, receivers: conversationNotifReceivers(conversation, user._id), action: "updated conversation", contentType: "conversation", contentTypeId: conversation._id }; switch (type) { case "conversationAddMessage": doc.action = `sent you a message`; doc.receivers = conversationNotifReceivers(conversation, user._id); break; case "conversationAssigneeChange": doc.action = "has assigned you to conversation "; break; case "unassign": doc.notifType = "conversationAssigneeChange"; doc.action = "has removed you from conversation"; break; case "conversationStateChange": doc.action = `changed conversation status to ${( conversation.status || "" ).toUpperCase()}`; break; default: break; } await sendNotificationsMessage({ subdomain, action: "send", data: doc }); if (mobile) { try { await sendCoreMessage({ subdomain, action: "sendMobileNotification", data: { title: doc.title, body: strip(doc.content), receivers: conversationNotifReceivers( conversation, user._id, false ), customerId: conversation.customerId, conversationId: conversation._id, data: { type: "messenger", id: conversation._id } } }); } catch (e) { debugError(`Failed to send mobile notification: ${e.message}`); } } } }; const getConversationById = async (models: IModels, selector) => { const oldConversations = await models.Conversations.find(selector).lean(); const oldConversationById = {}; for (const conversation of oldConversations) { oldConversationById[conversation._id] = conversation; } return { oldConversationById, oldConversations }; }; const conversationMutations = { /** * Create new message in conversation */ async conversationMessageAdd( _root, doc: IConversationMessageAdd, { user, models, subdomain }: IContext ) { const conversation = await models.Conversations.getConversation( doc.conversationId ); const integration = await models.Integrations.getIntegration({ _id: conversation.integrationId }); await sendNotifications(subdomain, { user, conversations: [conversation], type: "conversationAddMessage", mobile: true, messageContent: doc.content }); const kind = integration.kind; const customer = await sendContactsMessage({ subdomain, action: "customers.findOne", data: { _id: conversation.customerId }, isRPC: true }); // if conversation's integration kind is form then send reply to // customer's email const email = customer ? customer.primaryEmail : ""; if (!doc.internal && kind === "lead" && email) { await sendCoreMessage({ subdomain, action: "sendEmail", data: { toEmails: [email], title: "Reply", template: { data: doc.content } } }); } const serviceName = integration.kind.split("-")[0]; const serviceRunning = await isServiceRunning(serviceName); if (serviceRunning) { const payload = { integrationId: integration._id, conversationId: conversation._id, content: doc.content || "", internal: doc.internal, attachments: doc.attachments || [], extraInfo: doc.extraInfo, userId: user._id }; const response = await sendConversationToServices( subdomain, integration, serviceName, payload ); // if the service runs separately & returns data, then don't save message inside inbox if (response && response.data) { const { conversationId, content } = response.data; if (!!conversationId && !!content) { await models.Conversations.updateConversation(conversationId, { content: content || "", updatedAt: new Date() }); } return { ...response.data }; } } // do not send internal message to third service integrations if (doc.internal) { const messageObj = await models.ConversationMessages.addMessage( doc, user._id ); // publish new message to conversation detail publishMessage(models, messageObj); return messageObj; } const message = await models.ConversationMessages.addMessage(doc, user._id); const dbMessage = await models.ConversationMessages.getMessage(message._id); await sendToWebhook({ subdomain, data: { action: "create", type: "inbox:userMessages", params: dbMessage } }); // Publishing both admin & client publishMessage(models, dbMessage, conversation.customerId); return dbMessage; }, /** * Assign employee to conversation */ async conversationsAssign( _root, { conversationIds, assignedUserId }: { conversationIds: string[]; assignedUserId: string }, { user, models, subdomain }: IContext ) { const { oldConversationById } = await getConversationById(models, { _id: { $in: conversationIds } }); const conversations: IConversationDocument[] = await models.Conversations.assignUserConversation( conversationIds, assignedUserId ); // notify graphl subscription publishConversationsChanged(subdomain, conversationIds, "assigneeChanged"); await sendNotifications(subdomain, { user, conversations, type: "conversationAssigneeChange" }); for (const conversation of conversations) { await putUpdateLog( models, subdomain, { type: "conversation", description: "assignee Changed", object: oldConversationById[conversation._id], newData: { assignedUserId }, updatedDocument: conversation }, user ); } return conversations; }, /** * Unassign employee from conversation */ async conversationsUnassign( _root, { _ids }: { _ids: string[] }, { user, models, subdomain }: IContext ) { const { oldConversations, oldConversationById } = await getConversationById( models, { _id: { $in: _ids } } ); const updatedConversations = await models.Conversations.unassignUserConversation(_ids); await sendNotifications(subdomain, { user, conversations: oldConversations, type: "unassign" }); // notify graphl subscription publishConversationsChanged(subdomain, _ids, "assigneeChanged"); for (const conversation of updatedConversations) { await putUpdateLog( models, subdomain, { type: "conversation", description: "unassignee", object: oldConversationById[conversation._id], newData: { assignedUserId: "" }, updatedDocument: conversation }, user ); } return updatedConversations; }, /** * Change conversation status */ async conversationsChangeStatus( _root, { _ids, status }: { _ids: string[]; status: string }, { user, models, subdomain, serverTiming }: IContext ) { serverTiming.startTime("changeStatus"); const { oldConversationById } = await getConversationById(models, { _id: { $in: _ids } }); await models.Conversations.changeStatusConversation(_ids, status, user._id); serverTiming.endTime("changeStatus"); serverTiming.startTime("sendNotifications"); // notify graphl subscription publishConversationsChanged(subdomain, _ids, status); const updatedConversations = await models.Conversations.find({ _id: { $in: _ids } }); await sendNotifications(subdomain, { user, conversations: updatedConversations, type: "conversationStateChange" }); for (const conversation of updatedConversations) { await putUpdateLog( models, subdomain, { type: "conversation", description: "change status", object: oldConversationById[conversation._id], newData: { status }, updatedDocument: conversation }, user ); } return updatedConversations; }, /** * Resolve all conversations */ async conversationResolveAll( _root, params: IListArgs, { user, models, subdomain }: IContext ) { // initiate query builder const qb = new QueryBuilder(models, subdomain, params, { _id: user._id }); await qb.buildAllQueries(); const query = qb.mainQuery(); const { oldConversationById } = await getConversationById(models, query); const param = { status: CONVERSATION_STATUSES.CLOSED, closedUserId: user._id, closedAt: new Date() }; const updated = await models.Conversations.resolveAllConversation( query, param ); const updatedConversations = await models.Conversations.find({ _id: { $in: Object.keys(oldConversationById) } }).lean(); for (const conversation of updatedConversations) { await putUpdateLog( models, subdomain, { type: "conversation", description: "resolve all", object: oldConversationById[conversation._id], newData: param, updatedDocument: conversation }, user ); } return updated.nModified || 0; }, /** * Conversation mark as read */ async conversationMarkAsRead( _root, { _id }: { _id: string }, { user, models }: IContext ) { return models.Conversations.markAsReadConversation(_id, user._id); }, async changeConversationOperator( _root, { _id, operatorStatus }: { _id: string; operatorStatus: string }, { models }: IContext ) { const message = await models.ConversationMessages.createMessage({ conversationId: _id, botData: [ { type: "text", text: AUTO_BOT_MESSAGES.CHANGE_OPERATOR } ] }); graphqlPubsub.publish( `conversationMessageInserted:${message.conversationId}`, { conversationMessageInserted: message } ); return models.Conversations.updateOne( { _id }, { $set: { operatorStatus } } ); }, async conversationConvertToCard( _root, params: IConversationConvert, { user, models, subdomain }: IContext ) { const { _id } = params; const conversation = await models.Conversations.getConversation(_id); const args = { ...params, conversation, user }; return sendCardsMessage({ subdomain, action: "conversationConvert", data: args, isRPC: true }); }, async conversationEditCustomFields( _root, { _id, customFieldsData }: { _id: string; customFieldsData: any }, { models }: IContext ) { await models.Conversations.updateConversation(_id, { customFieldsData }); return models.Conversations.getConversation(_id); } }; requireLogin(conversationMutations, "conversationMarkAsRead"); requireLogin(conversationMutations, "conversationConvertToCard"); checkPermission( conversationMutations, "conversationMessageAdd", "conversationMessageAdd" ); checkPermission( conversationMutations, "conversationsAssign", "assignConversation" ); checkPermission( conversationMutations, "conversationsUnassign", "assignConversation" ); checkPermission( conversationMutations, "conversationsChangeStatus", "changeConversationStatus" ); checkPermission( conversationMutations, "conversationResolveAll", "conversationResolveAll" ); export default conversationMutations; ```
/content/code_sandbox/packages/plugin-inbox-api/src/graphql/resolvers/conversationMutations.ts
xml
2016-11-11T06:54:50
2024-08-16T10:26:06
erxes
erxes/erxes
3,479
3,849
```xml <?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="4.0" xmlns="path_to_url"> <ImportGroup Label="PropertySheets" /> <PropertyGroup Label="UserMacros" Condition="'$(CUDA_PATH)' == '$(CUDA_PATH_V8_0)'" > <CUDA_MAJOR_VER>8</CUDA_MAJOR_VER> <CUDA_MINOR_VER>0</CUDA_MINOR_VER> <CUDA_VER>$(CUDA_MAJOR_VER).$(CUDA_MINOR_VER)</CUDA_VER> <CUDA_CODE_GEN>compute_30,sm_30;compute_61,sm_61</CUDA_CODE_GEN> <NVRTC_DLL_NAME>nvrtc64_80.dll</NVRTC_DLL_NAME> </PropertyGroup> <PropertyGroup Label="UserMacros" Condition="'$(CUDA_PATH)' == '$(CUDA_PATH_V9_0)'" > <CUDA_MAJOR_VER>9</CUDA_MAJOR_VER> <CUDA_MINOR_VER>0</CUDA_MINOR_VER> <CUDA_VER>$(CUDA_MAJOR_VER).$(CUDA_MINOR_VER)</CUDA_VER> <CUDA_CODE_GEN>compute_30,sm_30;compute_61,sm_61</CUDA_CODE_GEN> <NVRTC_DLL_NAME>nvrtc64_90.dll</NVRTC_DLL_NAME> </PropertyGroup> <PropertyGroup Label="UserMacros" Condition="'$(CUDA_PATH)' == '$(CUDA_PATH_V9_1)'" > <CUDA_MAJOR_VER>9</CUDA_MAJOR_VER> <CUDA_MINOR_VER>1</CUDA_MINOR_VER> <CUDA_VER>$(CUDA_MAJOR_VER).$(CUDA_MINOR_VER)</CUDA_VER> <CUDA_CODE_GEN>compute_30,sm_30;compute_61,sm_61</CUDA_CODE_GEN> <NVRTC_DLL_NAME>nvrtc64_91.dll</NVRTC_DLL_NAME> </PropertyGroup> <PropertyGroup Label="UserMacros" Condition="'$(CUDA_PATH)' == '$(CUDA_PATH_V9_2)'" > <CUDA_MAJOR_VER>9</CUDA_MAJOR_VER> <CUDA_MINOR_VER>2</CUDA_MINOR_VER> <CUDA_VER>$(CUDA_MAJOR_VER).$(CUDA_MINOR_VER)</CUDA_VER> <CUDA_CODE_GEN>compute_30,sm_30;compute_61,sm_61</CUDA_CODE_GEN> <NVRTC_DLL_NAME>nvrtc64_92.dll</NVRTC_DLL_NAME> </PropertyGroup> <PropertyGroup Label="UserMacros" Condition="'$(CUDA_PATH)' == '$(CUDA_PATH_V10_0)'" > <CUDA_MAJOR_VER>10</CUDA_MAJOR_VER> <CUDA_MINOR_VER>0</CUDA_MINOR_VER> <CUDA_VER>$(CUDA_MAJOR_VER).$(CUDA_MINOR_VER)</CUDA_VER> <CUDA_CODE_GEN>compute_30,sm_30;compute_61,sm_61;compute_75,sm_75</CUDA_CODE_GEN> <NVRTC_DLL_NAME>nvrtc64_100_0.dll</NVRTC_DLL_NAME> </PropertyGroup> <PropertyGroup Label="UserMacros" Condition="'$(CUDA_PATH)' == '$(CUDA_PATH_V10_1)'" > <CUDA_MAJOR_VER>10</CUDA_MAJOR_VER> <CUDA_MINOR_VER>1</CUDA_MINOR_VER> <CUDA_VER>$(CUDA_MAJOR_VER).$(CUDA_MINOR_VER)</CUDA_VER> <CUDA_CODE_GEN>compute_30,sm_30;compute_61,sm_61;compute_75,sm_75</CUDA_CODE_GEN> <NVRTC_DLL_NAME>nvrtc64_101_0.dll</NVRTC_DLL_NAME> </PropertyGroup> <PropertyGroup Label="UserMacros" Condition="'$(CUDA_PATH)' == '$(CUDA_PATH_V10_2)'" > <CUDA_MAJOR_VER>10</CUDA_MAJOR_VER> <CUDA_MINOR_VER>2</CUDA_MINOR_VER> <CUDA_VER>$(CUDA_MAJOR_VER).$(CUDA_MINOR_VER)</CUDA_VER> <CUDA_CODE_GEN>compute_30,sm_30;compute_61,sm_61;compute_75,sm_75</CUDA_CODE_GEN> <NVRTC_DLL_NAME>nvrtc64_102_0.dll</NVRTC_DLL_NAME> </PropertyGroup> <PropertyGroup Label="UserMacros" Condition="'$(CUDA_PATH)' == '$(CUDA_PATH_V11_0)'" > <CUDA_MAJOR_VER>11</CUDA_MAJOR_VER> <CUDA_MINOR_VER>0</CUDA_MINOR_VER> <CUDA_VER>$(CUDA_MAJOR_VER).$(CUDA_MINOR_VER)</CUDA_VER> <CUDA_CODE_GEN>compute_50,sm_50;compute_61,sm_61;compute_75,sm_75</CUDA_CODE_GEN> <NVRTC_DLL_NAME>nvrtc64_110_0.dll</NVRTC_DLL_NAME> </PropertyGroup> <PropertyGroup Label="UserMacros" Condition="'$(CUDA_PATH)' == '$(CUDA_PATH_V11_1)'" > <CUDA_MAJOR_VER>11</CUDA_MAJOR_VER> <CUDA_MINOR_VER>1</CUDA_MINOR_VER> <CUDA_VER>$(CUDA_MAJOR_VER).$(CUDA_MINOR_VER)</CUDA_VER> <CUDA_CODE_GEN>compute_50,sm_50;compute_61,sm_61;compute_75,sm_75;compute_86,sm_86</CUDA_CODE_GEN> <NVRTC_DLL_NAME>nvrtc64_111_0.dll</NVRTC_DLL_NAME> </PropertyGroup> <PropertyGroup Label="UserMacros" Condition="'$(CUDA_PATH)' == '$(CUDA_PATH_V11_2)'" > <CUDA_MAJOR_VER>11</CUDA_MAJOR_VER> <CUDA_MINOR_VER>2</CUDA_MINOR_VER> <CUDA_VER>$(CUDA_MAJOR_VER).$(CUDA_MINOR_VER)</CUDA_VER> <CUDA_CODE_GEN>compute_50,sm_50;compute_61,sm_61;compute_75,sm_75;compute_86,sm_86</CUDA_CODE_GEN> <NVRTC_DLL_NAME>nvrtc64_112_0.dll</NVRTC_DLL_NAME> </PropertyGroup> <PropertyGroup Label="UserMacros" Condition="'$(CUDA_PATH)' == '$(CUDA_PATH_V11_3)'" > <CUDA_MAJOR_VER>11</CUDA_MAJOR_VER> <CUDA_MINOR_VER>3</CUDA_MINOR_VER> <CUDA_VER>$(CUDA_MAJOR_VER).$(CUDA_MINOR_VER)</CUDA_VER> <CUDA_CODE_GEN>compute_50,sm_50;compute_61,sm_61;compute_75,sm_75;compute_86,sm_86</CUDA_CODE_GEN> <NVRTC_DLL_NAME>nvrtc64_112_0.dll</NVRTC_DLL_NAME> </PropertyGroup> <PropertyGroup Label="UserMacros" Condition="'$(CUDA_PATH)' == '$(CUDA_PATH_V11_4)'" > <CUDA_MAJOR_VER>11</CUDA_MAJOR_VER> <CUDA_MINOR_VER>4</CUDA_MINOR_VER> <CUDA_VER>$(CUDA_MAJOR_VER).$(CUDA_MINOR_VER)</CUDA_VER> <CUDA_CODE_GEN>compute_50,sm_50;compute_61,sm_61;compute_75,sm_75;compute_86,sm_86</CUDA_CODE_GEN> <NVRTC_DLL_NAME>nvrtc64_112_0.dll</NVRTC_DLL_NAME> </PropertyGroup> <PropertyGroup Label="UserMacros" Condition="'$(CUDA_PATH)' == '$(CUDA_PATH_V11_5)'" > <CUDA_MAJOR_VER>11</CUDA_MAJOR_VER> <CUDA_MINOR_VER>5</CUDA_MINOR_VER> <CUDA_VER>$(CUDA_MAJOR_VER).$(CUDA_MINOR_VER)</CUDA_VER> <CUDA_CODE_GEN>compute_50,sm_50;compute_61,sm_61;compute_75,sm_75;compute_86,sm_86</CUDA_CODE_GEN> <NVRTC_DLL_NAME>nvrtc64_112_0.dll</NVRTC_DLL_NAME> </PropertyGroup> <PropertyGroup Label="UserMacros" Condition="'$(CUDA_PATH)' == '$(CUDA_PATH_V11_6)'" > <CUDA_MAJOR_VER>11</CUDA_MAJOR_VER> <CUDA_MINOR_VER>6</CUDA_MINOR_VER> <CUDA_VER>$(CUDA_MAJOR_VER).$(CUDA_MINOR_VER)</CUDA_VER> <CUDA_CODE_GEN>compute_50,sm_50;compute_61,sm_61;compute_75,sm_75;compute_86,sm_86</CUDA_CODE_GEN> <NVRTC_DLL_NAME>nvrtc64_112_0.dll</NVRTC_DLL_NAME> </PropertyGroup> <PropertyGroup Label="UserMacros" Condition="'$(CUDA_PATH)' == '$(CUDA_PATH_V11_7)'" > <CUDA_MAJOR_VER>11</CUDA_MAJOR_VER> <CUDA_MINOR_VER>7</CUDA_MINOR_VER> <CUDA_VER>$(CUDA_MAJOR_VER).$(CUDA_MINOR_VER)</CUDA_VER> <CUDA_CODE_GEN>compute_50,sm_50;compute_61,sm_61;compute_75,sm_75;compute_86,sm_86</CUDA_CODE_GEN> <NVRTC_DLL_NAME>nvrtc64_112_0.dll</NVRTC_DLL_NAME> </PropertyGroup> <PropertyGroup Label="UserMacros" Condition="'$(CUDA_PATH)' == '$(CUDA_PATH_V11_8)'" > <CUDA_MAJOR_VER>11</CUDA_MAJOR_VER> <CUDA_MINOR_VER>8</CUDA_MINOR_VER> <CUDA_VER>$(CUDA_MAJOR_VER).$(CUDA_MINOR_VER)</CUDA_VER> <CUDA_CODE_GEN>compute_50,sm_50;compute_61,sm_61;compute_75,sm_75;compute_86,sm_86</CUDA_CODE_GEN> <NVRTC_DLL_NAME>nvrtc64_112_0.dll</NVRTC_DLL_NAME> </PropertyGroup> <PropertyGroup Label="UserMacros" Condition="'$(CUDA_PATH)' == '$(CUDA_PATH_V12_0)'" > <CUDA_MAJOR_VER>12</CUDA_MAJOR_VER> <CUDA_MINOR_VER>0</CUDA_MINOR_VER> <CUDA_VER>$(CUDA_MAJOR_VER).$(CUDA_MINOR_VER)</CUDA_VER> <CUDA_CODE_GEN>compute_50,sm_50;compute_61,sm_61;compute_75,sm_75;compute_86,sm_86</CUDA_CODE_GEN> <NVRTC_DLL_NAME>nvrtc64_120_0.dll</NVRTC_DLL_NAME> </PropertyGroup> <PropertyGroup Label="UserMacros" Condition="'$(CUDA_PATH)' == '$(CUDA_PATH_V12_1)'" > <CUDA_MAJOR_VER>12</CUDA_MAJOR_VER> <CUDA_MINOR_VER>1</CUDA_MINOR_VER> <CUDA_VER>$(CUDA_MAJOR_VER).$(CUDA_MINOR_VER)</CUDA_VER> <CUDA_CODE_GEN>compute_50,sm_50;compute_61,sm_61;compute_75,sm_75;compute_86,sm_86</CUDA_CODE_GEN> <NVRTC_DLL_NAME>nvrtc64_120_0.dll</NVRTC_DLL_NAME> </PropertyGroup> <PropertyGroup Label="UserMacros" Condition="'$(CUDA_PATH)' == '$(CUDA_PATH_V12_2)'" > <CUDA_MAJOR_VER>12</CUDA_MAJOR_VER> <CUDA_MINOR_VER>2</CUDA_MINOR_VER> <CUDA_VER>$(CUDA_MAJOR_VER).$(CUDA_MINOR_VER)</CUDA_VER> <CUDA_CODE_GEN>compute_50,sm_50;compute_61,sm_61;compute_75,sm_75;compute_86,sm_86</CUDA_CODE_GEN> <NVRTC_DLL_NAME>nvrtc64_120_0.dll</NVRTC_DLL_NAME> </PropertyGroup> <PropertyGroup Label="UserMacros" Condition="'$(CUDA_PATH)' == '$(CUDA_PATH_V12_3)'" > <CUDA_MAJOR_VER>12</CUDA_MAJOR_VER> <CUDA_MINOR_VER>3</CUDA_MINOR_VER> <CUDA_VER>$(CUDA_MAJOR_VER).$(CUDA_MINOR_VER)</CUDA_VER> <CUDA_CODE_GEN>compute_50,sm_50;compute_61,sm_61;compute_75,sm_75;compute_86,sm_86</CUDA_CODE_GEN> <NVRTC_DLL_NAME>nvrtc64_120_0.dll</NVRTC_DLL_NAME> </PropertyGroup> <ImportGroup Label="ExtensionSettings"> <Import Project="C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\BuildCustomizations\CUDA $(CUDA_VER).props" /> </ImportGroup> <ImportGroup Label="ExtensionTargets"> <Import Project="C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\BuildCustomizations\CUDA $(CUDA_VER).targets" /> </ImportGroup> <ItemDefinitionGroup Condition="$(CUDA_MAJOR_VER) &gt;= 10 AND '$(Platform)'=='x64'"> <Link> <AdditionalDependencies>nppc.lib;nppif.lib;nppig.lib;nvrtc.lib;%(AdditionalDependencies)</AdditionalDependencies> <!-- <AdditionalIncludeDirectories>;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> --> <DelayLoadDLLs>nppc64_$(CUDA_MAJOR_VER).dll;nppif64_$(CUDA_MAJOR_VER).dll;nppig64_$(CUDA_MAJOR_VER).dll;%(DelayLoadDLLs)</DelayLoadDLLs> </Link> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="$(CUDA_MAJOR_VER) &lt; 10 AND '$(Platform)'=='x64'"> <Link> <AdditionalDependencies>nppi.lib;nvrtc.lib;%(AdditionalDependencies)</AdditionalDependencies> <!-- <AdditionalIncludeDirectories>;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> --> <DelayLoadDLLs>nppc64_$(CUDA_MAJOR_VER)$(CUDA_MINOR_VER).dll;nppi64_$(CUDA_MAJOR_VER)$(CUDA_MINOR_VER).dll;$(NVRTC_DLL_NAME);%(DelayLoadDLLs)</DelayLoadDLLs> </Link> </ItemDefinitionGroup> <ItemGroup /> </Project> ```
/content/code_sandbox/cudaver.debug.props
xml
2016-07-22T14:55:14
2024-08-13T09:36:42
NVEnc
rigaya/NVEnc
1,049
3,115
```xml import React, { useContext, useEffect } from "react"; import * as _ from "lodash"; import strings from "ManageProfileCardPropertiesWebPartStrings"; import { ComboBox, CommandButton, IComboBox, IComboBoxOption, Icon, IIconProps, IIconStyles, ILabelStyles, Label, mergeStyleSets, MessageBar, MessageBarType, Spinner, SpinnerSize, Stack, TextField } from "office-ui-fabric-react"; import { DefaultButton, PrimaryButton } from "office-ui-fabric-react/lib/Button"; import { Panel, PanelType } from "office-ui-fabric-react/lib/Panel"; import { useConstCallback } from "@uifabric/react-hooks"; import { AppContext, IAppContextProps } from "../../Common/AppContextProps"; import { languages } from "../../Common/constants"; import { IAnnotation, ILocalization } from "../../Entities/IAnnotations"; import { ILocalizationExtended } from "../../Entities/IlocalizationExtended"; import { IProfileCardProperty } from "../../Entities/IProfileCardProperty"; import { useProfileCardProperties } from "../../hooks/useProfileCardProperties"; import { IEditProfileCardPropertyProps } from "../EditProfileCardProperty/IEditProfileCardPropertyProps"; import { IEditProfileCardPropertyState } from "../EditProfileCardProperty/IEditProfileCardPropertyState"; // Component // Edit Profile Property Component export const EditProfileCardProperty: React.FunctionComponent<IEditProfileCardPropertyProps> = ( props: IEditProfileCardPropertyProps ) => { const applicationContext: IAppContextProps = useContext(AppContext); // Get React Context const newIcon: IIconProps = { iconName: "Add" }; const { displayPanel, onDismiss } = props; const { getProfileCardProperty, updateProfileCardProperty, } = useProfileCardProperties(); // Get method from hook // Component Styles const compomentStyles = mergeStyleSets({ addButtonContainer: { width: 60, display: "Flex", paddingTop: 15, paddingRight: 10, alignContent: "center", justifyContent: "center", }, }); // Icon styles of labels const iconlabelsStyles: IIconStyles = { root: { fontSize: 26, color: applicationContext.themeVariant.palette.themePrimary, }, }; // Label Styles const labelStyles: ILabelStyles = { root: { fontSize: 16 }, }; // Language Options let _languagesOptions: IComboBoxOption[] = languages.map((language, i) => ({ key: language.languageTag, text: `${language.displayName} (${language.languageTag})`, })); // State const [state, setState] = React.useState<IEditProfileCardPropertyState>({ isloading: true, hasError: false, errorMessage: "", isSaving: false, displayPanel: displayPanel, profileCardProperties: { directoryPropertyName: "", annotations: [{ displayName: "", localizations: [] }], }, disableAdd: true, addLocalizationItem: {} as ILocalizationExtended, languagesOptions: _languagesOptions, }); // Run on Compoment did mount useEffect(() => { (async () => { const { msGraphClient, organizationId } = applicationContext; // Get Profile Property let _profileCardProperty: IProfileCardProperty = await getProfileCardProperty( msGraphClient, organizationId, props.directoryPropertyName ); const _localizations: ILocalization[] = _profileCardProperty.annotations[0].localizations; let _newLaguageOptions: IComboBoxOption[] = _languagesOptions; let _newLocalizations: ILocalizationExtended[] = []; // add to combobox language that already exists (Localization for Property) // the localization array must be fullfil from vaklues of localiz<ation to add the language description , we only get from API the // Langua tag for (const _localization of _localizations) { _newLaguageOptions = _.filter(_newLaguageOptions, (l) => { return l.key !== _localization.languageTag; }); const _selectedLanguage = _.filter(_languagesOptions, (l) => { return l.key == _localization.languageTag; }); _newLocalizations.push({ displayName: _localization.displayName, languageDescription: _selectedLanguage[0].text, languageTag: _localization.languageTag, }); } // set bnew Language Option and Localization with language description _languagesOptions = _newLaguageOptions; _profileCardProperty.annotations[0].localizations = _newLocalizations; // update component State setState({ ...state, isloading: false, languagesOptions: _languagesOptions, profileCardProperties: _profileCardProperty, }); })(); }, []); // Button Styles const buttonStyles = { root: { marginRight: 8 } }; // On dismiss Panel const dismissPanel = useConstCallback(() => { setState({ ...state, displayPanel: false }); onDismiss(false); }); // On Change Display Name const _onChangeDisplayName = ( ev: React.FormEvent<HTMLInputElement | HTMLTextAreaElement>, value: string ) => { ev.preventDefault(); let { profileCardProperties } = state; profileCardProperties.annotations[0].displayName = value; setState({ ...state, profileCardProperties: profileCardProperties }); }; // On Language Change const _onLanguageChange = ( ev: React.FormEvent<IComboBox>, option?: IComboBoxOption ) => { ev.preventDefault(); let { addLocalizationItem } = state; addLocalizationItem = { ...addLocalizationItem, languageTag: option.key.toString(), languageDescription: option.text, }; if (addLocalizationItem.displayName && addLocalizationItem.languageTag) { setState({ ...state, disableAdd: false, addLocalizationItem: addLocalizationItem, }); } else { setState({ ...state, disableAdd: true, addLocalizationItem: addLocalizationItem, }); } }; // On Change LocalizationDisplayName const _onChangeLocalizationisplayName = ( ev: React.FormEvent<HTMLInputElement | HTMLTextAreaElement>, value: string ) => { ev.preventDefault(); let { addLocalizationItem } = state; addLocalizationItem = { ...addLocalizationItem, displayName: value }; if (addLocalizationItem.displayName && addLocalizationItem.languageTag) { setState({ ...state, disableAdd: false, addLocalizationItem: addLocalizationItem, }); } else { setState({ ...state, disableAdd: true, addLocalizationItem: addLocalizationItem, }); } }; // onCLick Add Property const _onUpdateProperty = async (ev: React.MouseEvent<HTMLButtonElement>) => { ev.preventDefault(); const { msGraphClient, organizationId } = applicationContext; const { profileCardProperties } = state; const _localizationsExtended = profileCardProperties.annotations[0].localizations; setState({...state, isSaving: true, disableAdd: true}); let _profileCardProperty: IProfileCardProperty = {} as IProfileCardProperty; let _localizations: ILocalization[] = []; for (const _localizationExtended of _localizationsExtended) { _localizations.push({ displayName: _localizationExtended.displayName, languageTag: _localizationExtended.languageTag, }); } let _annotations: IAnnotation[] = [ { displayName: profileCardProperties.annotations[0].displayName, localizations: _localizations, }, ]; _profileCardProperty = { directoryPropertyName: profileCardProperties.directoryPropertyName, annotations: _annotations, }; try { const updatedProfileCardProperties = await updateProfileCardProperty( msGraphClient, organizationId, _profileCardProperty ); // Return to list and refresh indicator true onDismiss(true); } catch (error) { const _errorMessage:string = error.message ? error.message : strings.DefaultErrorMessageText; setState({ ...state, hasError: true, errorMessage: _errorMessage , isSaving: false, disableAdd: false}); console.log(error); } }; //************************************************************************************************* */ // On Render Footer //************************************************************************************************* */ const _onRenderFooterContent = (): JSX.Element => { const { profileCardProperties, isSaving } = state; let disableAddButton: boolean = true; if ( profileCardProperties.directoryPropertyName && profileCardProperties.annotations[0].displayName ) { disableAddButton = false; } // Render Component return ( <div> <PrimaryButton disabled={disableAddButton} onClick={_onUpdateProperty} styles={buttonStyles} > {isSaving ? ( <Spinner size={SpinnerSize.xSmall}></Spinner> ) : ( strings.SaveButtonText )} </PrimaryButton> <DefaultButton onClick={dismissPanel}> {strings.CancelButtonText} </DefaultButton> </div> ); }; // On add new localization const _onAddNewLocalization = (ev: React.MouseEvent<HTMLButtonElement>) => { ev.preventDefault(); // tslint:disable-next-line: no-shadowed-variable const { profileCardProperties, addLocalizationItem, // tslint:disable-next-line: no-shadowed-variable languagesOptions, } = state; let _localizations = profileCardProperties.annotations[0].localizations; _localizations.push(addLocalizationItem); profileCardProperties.annotations[0].localizations = _localizations; const { languageTag } = addLocalizationItem; const newLaguageOptions: IComboBoxOption[] = _.filter( languagesOptions, (l) => { return l.key !== languageTag; } ); // Update State setState({ ...state, profileCardProperties: profileCardProperties, addLocalizationItem: { displayName: "", languageTag: "", languageDescription: "", }, languagesOptions: newLaguageOptions, }); }; // on Delete Localization const _onDeleteLocalization = (ev: React.MouseEvent<HTMLButtonElement>) => { ev.preventDefault(); // tslint:disable-next-line: no-shadowed-variable let { languagesOptions, profileCardProperties } = state; const _languageTag = ev.currentTarget.getAttribute("data-language-tag"); let _localizations: ILocalization[] = profileCardProperties.annotations[0].localizations; // get all localization without the deleted localization const newlocalizations: ILocalization[] = _.filter(_localizations, (l) => { return l.languageTag !== _languageTag; }); // Add new localization without the deleted localization profileCardProperties.annotations[0].localizations = newlocalizations; // Get Deleted Localization const deletedLocalization: ILocalization[] = _.filter( _localizations, (l) => { return l.languageTag == _languageTag; } ); // Add deleted Localization to combo box of language const _deletedLocalization: ILocalizationExtended = deletedLocalization[0] as ILocalizationExtended; languagesOptions.push({ key: _deletedLocalization.languageTag, text: `${_deletedLocalization.languageDescription}`, }); // Re render component setState({ ...state, profileCardProperties: profileCardProperties, languagesOptions: _.sortBy(languagesOptions, ["text"]), // Sort language Options }); }; // OnChange Localization Display Name const _onChangeLocalizationDisplayName = ( ev: React.FormEvent<HTMLInputElement | HTMLTextAreaElement>, newValue: string ) => { ev.preventDefault(); let { profileCardProperties } = state; let _localizations = profileCardProperties.annotations[0].localizations; const _languageTagIndex: HTMLElement = ev.target as HTMLElement; const _index: number = Number( _languageTagIndex.getAttribute("data-language-tag-index") ); _localizations[_index] = { ..._localizations[_index], displayName: newValue }; profileCardProperties.annotations[0].localizations = _localizations; setState({ ...state, profileCardProperties: profileCardProperties }); console.log(state); }; //************************************************************************************************* */ // Test if there are Profile Card Properties //************************************************************************************************* */ let { annotations, directoryPropertyName } = state.profileCardProperties; let _displayName: string = ""; let localizations: ILocalization[] = []; if (annotations) { _displayName = annotations[0].displayName; if (annotations[0].localizations) { localizations = annotations[0].localizations; } } //************************************************************************************************* */ // Render Control //************************************************************************************************* */ const { isloading, hasError, errorMessage, languagesOptions } = state; // Is loading if (isloading) { return <Spinner size={SpinnerSize.medium} label={strings.LoadingText} />; } // Render return ( <> <Panel isOpen={state.displayPanel} onDismiss={dismissPanel} type={PanelType.custom} customWidth={"600px"} closeButtonAriaLabel="Close" headerText={strings.EditPanelHeaderText} onRenderFooterContent={_onRenderFooterContent} isFooterAtBottom={true} > {hasError && ( <Stack style={{ marginTop: 30, marginBottom: 30 }} tokens={{ childrenGap: 10 }} horizontalAlign="start" verticalAlign="center" > <MessageBar messageBarType={MessageBarType.error}> {errorMessage} </MessageBar> </Stack> )} <Stack style={{ marginTop: 30, marginBottom: 30 }} horizontal={true} tokens={{ childrenGap: 10 }} horizontalAlign="start" verticalAlign="center" > <Icon iconName="EditContact" styles={iconlabelsStyles}></Icon> <Label styles={labelStyles}>{strings.PanelHeaderLabel}</Label> </Stack> <Stack tokens={{ childrenGap: 10 }}> <TextField label="Directory Property Name" defaultValue={directoryPropertyName} readOnly={true} styles={{ field: { backgroundColor: applicationContext.themeVariant.semanticColors .disabledBackground, }, }} /> <TextField required={true} label="Display Name" autoComplete="on" name="displayName" value={_displayName} validateOnLoad={false} validateOnFocusOut={true} onGetErrorMessage={(value: string) => { if (!value) { return "Field is Required"; } else { return; } }} onChange={_onChangeDisplayName} /> <Stack style={{ marginTop: 30 }} horizontal={true} tokens={{ childrenGap: 10 }} horizontalAlign="start" verticalAlign="center" > <Icon iconName="World" styles={iconlabelsStyles}></Icon> <Label styles={labelStyles}>Localization</Label> </Stack> <Stack horizontal={true} tokens={{ childrenGap: 10 }} horizontalAlign="start" verticalAlign="center" > <ComboBox required={true} label="Language" styles={{ root: { width: 300 } }} dropdownWidth={300} allowFreeform autoComplete="on" selectedKey={state.addLocalizationItem.languageTag} options={languagesOptions} onChange={_onLanguageChange} /> <TextField required={true} label="Display Name" styles={{ field: { width: 190 } }} value={state.addLocalizationItem.displayName} onChange={_onChangeLocalizationisplayName} /> <div className={compomentStyles.addButtonContainer}> <CommandButton iconProps={newIcon} title="Add" ariaLabel="Add" onClick={_onAddNewLocalization} styles={{ icon: { fontSize: 26 }, }} disabled={state.disableAdd} /> </div> </Stack> <div style={{ height: "100%", overflow: "auto" }}> {localizations.map( (localization: ILocalizationExtended, index: number) => { return ( <> <Stack horizontal={true} tokens={{ childrenGap: 10 }} horizontalAlign="start" verticalAlign="center" styles={{ root: { marginTop: 5 } }} > <TextField disabled styles={{ root: { width: 300 }, field: { color: applicationContext.themeVariant.semanticColors .inputText, }, }} value={localization.languageDescription} /> <TextField styles={{ field: { color: applicationContext.themeVariant.semanticColors .inputText, width: 190, }, }} data-language-tag-index={index} value={localization.displayName} onChange={_onChangeLocalizationDisplayName} /> <CommandButton iconProps={{ iconName: "Delete" }} data-language-tag={localization.languageTag} title="Delete" ariaLabel="Delete" styles={{ icon: { fontSize: 26 }, }} onClick={_onDeleteLocalization} /> </Stack> </> ); } )} </div> </Stack> </Panel> </> ); }; ```
/content/code_sandbox/samples/react-manage-profile-card-properties/src/components/EditProfileCardProperty/EditProfileCardProperty.tsx
xml
2016-08-30T17:21:43
2024-08-16T18:41:32
sp-dev-fx-webparts
pnp/sp-dev-fx-webparts
2,027
3,829