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 import * as L from "./index"; import { List } from "./index"; // All functions of arity 1 are simply re-exported as they don't require currying export { Node, List, list, isList, length, of, empty, first, head, last, flatten, pop, init, tail, from, toArray, reverse, backwards, sort, group, dropRepeats, isEmpty } from "./index"; export interface Curried2<A, B, R> { (a: A): (b: B) => R; (a: A, b: B): R; } export interface Curried3<A, B, C, R> { (a: A, b: B, c: C): R; (a: A, b: B): (c: C) => R; (a: A): Curried2<B, C, R>; } function curry2(f: Function): any { return function curried(a: any, b: any): any { return arguments.length === 2 ? f(a, b) : (b: any) => f(a, b); }; } function curry3(f: (a: any, b: any, c: any) => any): any { return function curried(a: any, b: any, c: any): any { switch (arguments.length) { case 3: return f(a, b, c); case 2: return (c: any) => f(a, b, c); default: // Assume 1 return curry2((b: any, c: any) => f(a, b, c)); } }; } function curry4(f: (a: any, b: any, c: any, d: any) => any): any { return function curried(a: any, b: any, c: any, d: any): any { switch (arguments.length) { case 4: return f(a, b, c, d); case 3: return (d: any) => f(a, b, c, d); case 2: return curry2((c: any, d: any) => f(a, b, c, d)); default: // Assume 1 return curry3((b, c, d) => f(a, b, c, d)); } }; } // Arity 2 export const prepend: typeof L.prepend & (<A>(value: A) => (l: List<A>) => List<A>) = curry2(L.prepend); export const append: typeof prepend = curry2(L.append); export const pair: typeof L.pair & (<A>(first: A) => (second: A) => List<A>) = curry2(L.pair); export const repeat: typeof L.repeat & (<A>(value: A) => (times: number) => List<A>) = curry2(L.repeat); export const times: typeof L.times & (<A>(func: (index: number) => A) => (times: number) => List<A>) = curry2( L.times ); export const nth: typeof L.nth & ((index: number) => <A>(l: List<A>) => A | undefined) = curry2(L.nth); export const map: typeof L.map & (<A, B>(f: (a: A) => B) => (l: List<A>) => List<B>) = curry2(L.map); export const forEach: typeof L.forEach & (<A>(callback: (a: A) => void) => (l: List<A>) => void) = curry2(L.forEach); export const pluck: typeof L.pluck & (<K extends string>( key: K ) => <C, B extends K & (keyof C)>(l: List<C>) => List<C[B]>) = curry2( L.pluck ); export const intersperse: typeof prepend = curry2(L.intersperse); export const range: typeof L.range & ((start: number) => (end: number) => List<number>) = curry2(L.range); export const filter: typeof L.filter & (<A, B extends A>(predicate: (a: A) => a is B) => (l: List<A>) => List<B>) & (<A>(predicate: (a: A) => boolean) => (l: List<A>) => List<A>) = curry2( L.filter ); export const reject: typeof filter = curry2(L.reject); export const partition: typeof L.partition & (<A>( predicate: (a: A) => boolean ) => (l: List<A>) => [List<A>, List<A>]) = curry2(L.partition); export const join: typeof L.join & ((seperator: string) => (l: List<string>) => List<string>) = curry2(L.join); export const ap: typeof L.ap & (<A, B>(listF: List<(a: A) => B>) => (l: List<A>) => List<B>) = curry2(L.ap); export const flatMap: typeof L.flatMap & (<A, B>(f: (a: A) => List<B>) => (l: List<A>) => List<B>) = curry2(L.flatMap); export const chain = flatMap; export const every: typeof L.every & (<A>(predicate: (a: A) => boolean) => (l: List<A>) => boolean) = curry2( L.every ); export const all: typeof every = curry2(L.all); export const some: typeof every = curry2(L.some); export const any: typeof every = curry2(L.any); export const none: typeof every = curry2(L.none); export const find: typeof L.find & (<A>(predicate: (a: A) => boolean) => (l: List<A>) => A | undefined) = curry2( L.find ); export const findLast: typeof find = curry2(L.findLast); export const indexOf: typeof L.indexOf & (<A>(element: A) => (l: List<A>) => number) = curry2(L.indexOf); export const lastIndexOf: typeof indexOf = curry2(L.lastIndexOf); export const findIndex: typeof L.findIndex & (<A>(predicate: (a: A) => boolean) => (l: List<A>) => number) = curry2( L.findIndex ); export const includes: typeof L.includes & (<A>(element: A) => (l: List<A>) => number) = curry2(L.includes); export const contains = includes; export const equals: typeof L.equals & (<A>(first: List<A>) => (second: List<A>) => boolean) = curry2(L.equals); export const concat: typeof L.concat & (<A>(left: List<A>) => (right: List<A>) => List<A>) = curry2(L.concat); export const take: typeof L.take & ((n: number) => <A>(l: List<A>) => List<A>) = curry2(L.take); export const takeLast: typeof take = curry2(L.takeLast); export const drop: typeof take = curry2(L.drop); export const dropRepeatsWith: typeof L.dropRepeatsWith & (<A>(f: (a: A, b: A) => boolean) => (l: List<A>) => List<A>) = curry2( L.groupWith ); export const dropLast: typeof take = curry2(L.dropLast); export const takeWhile: typeof filter = curry2(L.takeWhile); export const takeLastWhile: typeof filter = curry2(L.takeLastWhile); export const dropWhile: typeof filter = curry2(L.dropWhile); export const splitAt: typeof L.splitAt & ((index: number) => <A>(l: List<A>) => [List<A>, List<A>]) = curry2( L.splitAt ); export const splitWhen: typeof L.splitWhen & (<A>( predicate: (a: A) => boolean ) => (l: List<A>) => [List<A>, List<A>]) = curry2(L.splitWhen); export const splitEvery: typeof L.splitEvery & (<A>(size: number) => (l: List<A>) => List<List<A>>) = curry2(L.splitEvery); export const sortBy: typeof L.sortBy & (<A, B extends L.Comparable>( f: (a: A) => B ) => (l: List<A>) => List<A>) = curry2(L.sortBy); export const sortWith: typeof L.sortWith & (<A>( comparator: (a: A, b: A) => L.Ordering ) => (l: List<A>) => List<A>) = curry2(L.sortWith); export const groupWith: typeof L.groupWith & (<A>(f: (a: A, b: A) => boolean) => (l: List<A>) => List<List<A>>) = curry2( L.groupWith ); export const zip: typeof L.zip & (<A>(as: List<A>) => <B>(bs: List<B>) => List<[A, B]>) = curry2(L.zip); export const sequence: typeof L.sequence & ((ofObj: L.Of) => <A>(l: List<L.Applicative<A>>) => any) = curry2(L.sequence); // Arity 3 export const foldl: typeof L.foldl & { <A, B>(f: (acc: B, value: A) => B): Curried2<B, List<A>, B>; <A, B>(f: (acc: B, value: A) => B, initial: B): (l: List<A>) => B; } = curry3(L.foldl); export const reduce: typeof foldl = foldl; export const scan: typeof L.scan & { <A, B>(f: (acc: B, value: A) => B): Curried2<B, List<A>, List<B>>; <A, B>(f: (acc: B, value: A) => B, initial: B): (l: List<A>) => List<B>; } = curry3(L.scan); export const foldr: typeof L.foldl & { <A, B>(f: (value: A, acc: B) => B): Curried2<B, List<A>, B>; <A, B>(f: (value: A, acc: B) => B, initial: B): (l: List<A>) => B; } = curry3(L.foldr); export const traverse: typeof L.traverse & { (of: L.Of): (<A, B>(f: (a: A) => L.Applicative<B>) => (l: List<B>) => any) & (<A, B>(f: (a: A) => L.Applicative<B>, l: List<B>) => any); <A, B>(of: L.Of, f: (a: A) => L.Applicative<B>): (l: List<B>) => any; } = curry3(L.traverse); export const equalsWith: typeof L.equalsWith & { <A>(f: (a: A, b: A) => boolean): Curried2<List<A>, List<A>, boolean>; <A>(f: (a: A, b: A) => boolean, l1: List<A>): (l2: List<A>) => boolean; } = curry3(L.equalsWith); export const reduceRight: typeof foldr = foldr; export const update: typeof L.update & { <A>(index: number, a: A): (l: List<A>) => List<A>; <A>(index: number): ((a: A, l: List<A>) => List<A>) & ((a: A) => (l: List<A>) => List<A>); } = curry3(L.update); export const adjust: typeof L.adjust & { <A>(index: number, f: (value: A) => A): (l: List<A>) => List<A>; (index: number): <A>( f: (value: A) => A, l: List<A> ) => List<A> & (<A>(f: (value: A) => A) => (l: List<A>) => List<A>); } = curry3(L.adjust); export const slice: typeof L.slice & { (from: number): (<A>(to: number) => (l: List<A>) => List<A>) & (<A>(to: number, l: List<A>) => List<A>); (from: number, to: number): <A>(l: List<A>) => List<A>; } = curry3(L.slice); export const remove: typeof slice = curry3(L.remove); export const insert: typeof update = curry3(L.insert); export const insertAll: typeof L.insertAll & { <A>(index: number, elements: List<A>): (l: List<A>) => List<A>; <A>(index: number): ((elements: List<A>, l: List<A>) => List<A>) & ((elements: List<A>) => (l: List<A>) => List<A>); } = curry3(L.insertAll); export const zipWith: typeof L.zipWith & { <A, B, C>(f: (a: A, b: B) => C, as: List<A>): (bs: List<B>) => List<C>; <A, B, C>(f: (a: A, b: B) => C): Curried2<List<A>, List<B>, List<C>>; } = curry3(L.zipWith); // Arity 4 export const foldlWhile: typeof L.foldlWhile & { // Three arguments <A, B>( predicate: (acc: B, value: A) => boolean, f: (acc: B, value: A) => B, initial: B ): (l: List<A>) => B; // Two arguments <A, B>( predicate: (acc: B, value: A) => boolean, f: (acc: B, value: A) => B ): Curried2<B, List<A>, B>; // One argument <A, B>(predicate: (acc: B, value: A) => boolean): Curried3< (acc: B, value: A) => B, B, List<A>, B >; } = curry4(L.foldlWhile); export const reduceWhile: typeof foldlWhile = foldlWhile; ```
/content/code_sandbox/src/curried.ts
xml
2016-09-14T07:41:40
2024-08-03T07:00:49
list
funkia/list
1,647
3,177
```xml /** * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import { FBSourceFunctionMap, MetroSourceMapSegmentTuple } from 'metro-source-map'; import { JsTransformerConfig } from 'metro-transform-worker'; import { Options as CollectDependenciesOptions } from '../transform-worker/collect-dependencies'; export type JSFileType = 'js/script' | 'js/module' | 'js/module/asset'; export type JsOutput = { data: { code: string; lineCount: number; map: MetroSourceMapSegmentTuple[]; functionMap: FBSourceFunctionMap | null; css?: { code: string; lineCount: number; map: MetroSourceMapSegmentTuple[]; functionMap: FBSourceFunctionMap | null; }; ast?: import('@babel/types').File; hasCjsExports?: boolean; readonly reconcile?: ReconcileTransformSettings; readonly reactClientReference?: string; readonly expoDomComponentReference?: string; }; type: JSFileType; }; export type ExpoJsOutput = Omit<JsOutput, 'data'> & { data: JsOutput['data'] & { profiling?: { start: number; end: number; duration: number; }; css?: { code: string; lineCount: number; map: unknown[]; functionMap: null; skipCache?: boolean; }; }; }; export type ReconcileTransformSettings = { inlineRequires: boolean; importDefault: string; importAll: string; globalPrefix: string; unstable_renameRequire?: boolean; unstable_compactOutput?: boolean; minify?: { minifierPath: string; minifierConfig: JsTransformerConfig['minifierConfig']; }; collectDependenciesOptions: CollectDependenciesOptions; unstable_dependencyMapReservedName?: string; optimizationSizeLimit?: number; unstable_disableNormalizePseudoGlobals?: boolean; normalizePseudoGlobals: boolean; }; export declare function isExpoJsOutput(output: any): output is ExpoJsOutput; export declare function isTransformOptionTruthy(option: any): boolean; ```
/content/code_sandbox/packages/@expo/metro-config/build/serializer/jsOutput.d.ts
xml
2016-08-15T17:14:25
2024-08-16T19:54:44
expo
expo/expo
32,004
466
```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 {CHTMLCharMap, AddCSS} from '../../FontData.js'; import {sansSerifBold as font} from '../../../common/fonts/tex/sans-serif-bold.js'; export const sansSerifBold: CHTMLCharMap = AddCSS(font, { 0x2015: {c: '\\2014'}, 0x2017: {c: '_'}, 0x2044: {c: '/'}, 0x2206: {c: '\\394'}, }); ```
/content/code_sandbox/ts/output/chtml/fonts/tex/sans-serif-bold.ts
xml
2016-02-23T09:52:03
2024-08-16T04:46:50
MathJax-src
mathjax/MathJax-src
2,017
152
```xml import * as pageDetect from 'github-url-detection'; import {wrapFieldSelection} from 'text-field-edit'; import delegate, {DelegateEvent} from 'delegate-it'; import features from '../feature-manager.js'; import {onCommentFieldKeydown, onConversationTitleFieldKeydown, onCommitTitleFieldKeydown} from '../github-events/on-field-keydown.js'; const formattingCharacters = ['`', '\'', '"', '[', '(', '{', '*', '_', '~', '', '']; const matchingCharacters = ['`', '\'', '"', ']', ')', '}', '*', '_', '~', '', '']; const quoteCharacters = new Set(['`', '\'', '"']); function eventHandler(event: DelegateEvent<KeyboardEvent, HTMLTextAreaElement | HTMLInputElement>): void { const field = event.delegateTarget; const formattingChar = event.key; if (!formattingCharacters.includes(formattingChar)) { return; } const [start, end] = [field.selectionStart!, field.selectionEnd!]; // If `start` and `end` of selection are the same, then no text is selected if (start === end) { return; } // Allow replacing quotes #5960 if (quoteCharacters.has(formattingChar) && end - start === 1 && quoteCharacters.has(field.value.at(start)!)) { return; } event.preventDefault(); const matchingEndChar = matchingCharacters[formattingCharacters.indexOf(formattingChar)]; wrapFieldSelection(field, formattingChar, matchingEndChar); } function init(signal: AbortSignal): void { onCommentFieldKeydown(eventHandler, signal); onConversationTitleFieldKeydown(eventHandler, signal); onCommitTitleFieldKeydown(eventHandler, signal); delegate([ 'input[name="commit_title"]', 'input[name="gist[description]"]', '#saved-reply-title-field', ], 'keydown', eventHandler, {signal}); } void features.add(import.meta.url, { include: [ pageDetect.hasRichTextEditor, pageDetect.isGist, pageDetect.isNewFile, pageDetect.isEditingFile, pageDetect.isDeletingFile, ], init, }); /* Test URLs: - Any comment box and issue/PR title: path_to_url - Gist title: path_to_url - Commit title when editing files: path_to_url - Commit title when deleting files: path_to_url */ ```
/content/code_sandbox/source/features/one-key-formatting.tsx
xml
2016-02-15T16:45:02
2024-08-16T18:39:26
refined-github
refined-github/refined-github
24,013
501
```xml interface regReplace { find: RegExp; replace: string; } const regs:regReplace[] = [ // trim and remove Creole in head { find: /\s*[\*#=\|]*\s*(.+?)\s*$/mg, replace: '$1' }, // \t to space // { find: /(?<!\\)\\t/, replace: ' ' }, { find: /([^\\])\\[tn]/g, replace: '$1' }, // \\ to \ { find: /\\\\/g, replace: '\\' }, // *=| { find: /\|(\s*[\*#=\|]*)?\s*/g, replace: ' ' }, // |$ { find: /\|\s*$/g, replace: '' }, // \text\ { find: /\*{2}(.+)\*{2}/g, replace: '$1' }, // __text__ { find: /_{2}(.+)_{2}/g, replace: '$1' }, // //text// { find: /\/{2}(.+)\/{2}/g, replace: '$1' }, // ""text"" { find: /"{2}(.+)"{2}/g, replace: '$1' }, // --text-- { find: /-{2}(.+)-{2}/g, replace: '$1' }, // ~~text~~ { find: /~{2}(.+)~{2}/g, replace: '$1' }, // remove invalid chrs { find: /[\\/:*?"<>|]/g, replace: ' ' } ] export function Deal(value: string): string { let title=value; for (let rp of regs){ title=title.replace(rp.find,rp.replace).trim(); } return title; } ```
/content/code_sandbox/src/plantuml/diagram/title.ts
xml
2016-11-18T14:14:05
2024-08-11T10:43:40
vscode-plantuml
qjebbs/vscode-plantuml
1,078
407
```xml let x: number[] = [] let y: number[] = [] x = [1, 2, 3] ```
/content/code_sandbox/tests/decompile-test/cases/array_default_declaration.ts
xml
2016-01-24T19:35:52
2024-08-16T16:39:39
pxt
microsoft/pxt
2,069
26
```xml <?xml version="1.0" encoding="utf-8"?> <Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="path_to_url"> <ItemGroup Label="ProjectConfigurations"> <ProjectConfiguration Include="debug|Win32"> <Configuration>debug</Configuration> <Platform>Win32</Platform> </ProjectConfiguration> <ProjectConfiguration Include="release|Win32"> <Configuration>release</Configuration> <Platform>Win32</Platform> </ProjectConfiguration> <ProjectConfiguration Include="release-assert|Win32"> <Configuration>release-assert</Configuration> <Platform>Win32</Platform> </ProjectConfiguration> </ItemGroup> <PropertyGroup> <BaseIntermediateOutputPath>$(SolutionDir)..\..\..\..\..\bld\msvc\lib\$(SolutionName)\$(ProjectName)</BaseIntermediateOutputPath> </PropertyGroup> <ItemGroup> <!-- reverge_begin cpps --> <ClInclude Include="..\..\test\minus_m_test.cpp" /> <!-- reverge_end cpps --> </ItemGroup> <PropertyGroup Label="Globals"> <ProjectGuid>{50E8636D-33BE-4F9F-282E-61DC52EF2CD3}</ProjectGuid> <Keyword>MakeFileProj</Keyword> </PropertyGroup> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='release-assert|Win32'" Label="Configuration"> <ConfigurationType>Makefile</ConfigurationType> <UseDebugLibraries>true</UseDebugLibraries> <PlatformToolset>v120</PlatformToolset> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='debug|Win32'" Label="Configuration"> <ConfigurationType>Makefile</ConfigurationType> <UseDebugLibraries>true</UseDebugLibraries> <PlatformToolset>v120</PlatformToolset> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='release|Win32'" Label="Configuration"> <ConfigurationType>Makefile</ConfigurationType> <UseDebugLibraries>true</UseDebugLibraries> <PlatformToolset>v120</PlatformToolset> </PropertyGroup> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> <ImportGroup Label="ExtensionSettings"> </ImportGroup> <ImportGroup Condition="'$(Configuration)|$(Platform)'=='release-assert|Win32'" Label="PropertySheets"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> </ImportGroup> <ImportGroup Condition="'$(Configuration)|$(Platform)'=='debug|Win32'" Label="PropertySheets"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> </ImportGroup> <ImportGroup Condition="'$(Configuration)|$(Platform)'=='release|Win32'" Label="PropertySheets"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> </ImportGroup> <PropertyGroup Label="UserMacros" /> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='debug|Win32'"> <!-- reverge_begin defines(debug) --> <NMakePreprocessorDefinitions>BOOST_ALL_NO_LIB=1;</NMakePreprocessorDefinitions> <!-- reverge_end defines(debug) --> <!-- reverge_begin includes(debug) --> <NMakeIncludeSearchPath>;$(ProjectDir)..\..\..\..</NMakeIncludeSearchPath> <!-- reverge_end includes(debug) --> <!-- reverge_begin options(debug) --> <AdditionalOptions>-TP -c /EHs /GR /MDd /Ob0 /Od /W3 /Z7 /Zc:forScope /Zc:wchar_t /favor:blend /wd4675 </AdditionalOptions> <!-- reverge_end options(debug) --> <OutDir>$(SolutionDir)..\..\..\..\..\bld\lib\$(SolutionName)\libs\$(SolutionName)\test\$(ProjectName).test\msvc-12.0\$(Configuration)\address-model-64\link-static\threading-multi\</OutDir> <IntDir>$(SolutionDir)..\..\..\..\..\bld\lib\$(SolutionName)\libs\$(SolutionName)\test\$(ProjectName).test\msvc-12.0\$(Configuration)\address-model-64\link-static\threading-multi\</IntDir> <ExecutablePath>$(PATH)</ExecutablePath> <IncludePath /> <ReferencePath /> <LibraryPath /> <LibraryWPath /> <SourcePath /> <ExcludePath /> <NMakeBuildCommandLine>cd $(SolutionDir)..\test &amp;&amp; $(SolutionDir)..\..\..\b2 address-model=64 variant=$(configuration) toolset=msvc-14.0 $(ProjectName)</NMakeBuildCommandLine> <NMakeReBuildCommandLine>cd $(SolutionDir)..\test &amp;&amp; $(SolutionDir)..\..\..\b2 address-model=64 variant=$(configuration) toolset=msvc-14.0 $(ProjectName) -a</NMakeReBuildCommandLine> <NMakeCleanCommandLine>cd $(SolutionDir)..\test &amp;&amp; $(SolutionDir)vcxproj.bat msvc-14.0 $(ProjectPath)</NMakeCleanCommandLine> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='release|Win32'"> <!-- reverge_begin defines(release) --> <NMakePreprocessorDefinitions>BOOST_ALL_NO_LIB=1;NDEBUG;</NMakePreprocessorDefinitions> <!-- reverge_end defines(release) --> <!-- reverge_begin includes(release) --> <NMakeIncludeSearchPath>;$(ProjectDir)..\..\..\..</NMakeIncludeSearchPath> <!-- reverge_end includes(release) --> <!-- reverge_begin options(release) --> <AdditionalOptions>-TP -c /EHs /GR /MD /O2 /Ob2 /W3 /Zc:forScope /Zc:wchar_t /favor:blend /wd4675 </AdditionalOptions> <!-- reverge_end options(release) --> <OutDir>$(SolutionDir)..\..\..\..\..\bld\lib\$(SolutionName)\libs\$(SolutionName)\test\$(ProjectName).test\msvc-12.0\$(Configuration)\address-model-64\link-static\threading-multi\</OutDir> <IntDir>$(SolutionDir)..\..\..\..\..\bld\lib\$(SolutionName)\libs\$(SolutionName)\test\$(ProjectName).test\msvc-12.0\$(Configuration)\address-model-64\link-static\threading-multi\</IntDir> <ExecutablePath>$(PATH)</ExecutablePath> <IncludePath /> <ReferencePath /> <LibraryPath /> <LibraryWPath /> <SourcePath /> <ExcludePath /> <NMakeBuildCommandLine>cd $(SolutionDir)..\test &amp;&amp; $(SolutionDir)..\..\..\b2 address-model=64 variant=$(configuration) toolset=msvc-14.0 $(ProjectName)</NMakeBuildCommandLine> <NMakeReBuildCommandLine>cd $(SolutionDir)..\test &amp;&amp; $(SolutionDir)..\..\..\b2 address-model=64 variant=$(configuration) toolset=msvc-14.0 $(ProjectName) -a</NMakeReBuildCommandLine> <NMakeCleanCommandLine>cd $(SolutionDir)..\test &amp;&amp; $(SolutionDir)vcxproj.bat msvc-14.0 $(ProjectPath)</NMakeCleanCommandLine> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='release-assert|Win32'"> <!-- reverge_begin defines(release-assert) --> <NMakePreprocessorDefinitions>BOOST_ALL_NO_LIB=1;</NMakePreprocessorDefinitions> <!-- reverge_end defines(release-assert) --> <!-- reverge_begin includes(release-assert) --> <NMakeIncludeSearchPath>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE;C:\Program Files (x86)\Windows Kits\8.1\include\shared;C:\Program Files (x86)\Windows Kits\8.1\include\um;C:\Program Files (x86)\Windows Kits\8.1\include\winrt;$(ProjectDir)..\..\..\..\..\boost_1_60_0;$(ProjectDir)..\..\include</NMakeIncludeSearchPath> <!-- reverge_end includes(release-assert) --> <!-- reverge_begin options(release-assert) --> <AdditionalOptions>-FC -TP -c -wd4018 -wd4180 -wd4244 -wd4267 -wd4355 -wd4512 -wd4624 -wd4800 -wd4996 /EHs /GR /MD /O2 /Ob2 /W3 /Z7 /Zc:forScope /Zc:wchar_t /favor:blend /wd4675 </AdditionalOptions> <!-- reverge_end options(release-assert) --> <OutDir>$(SolutionDir)..\..\..\..\..\bld\lib\$(SolutionName)\libs\$(SolutionName)\test\$(ProjectName).test\msvc-12.0\$(Configuration)\address-model-64\link-static\threading-multi\</OutDir> <IntDir>$(SolutionDir)..\..\..\..\..\bld\lib\$(SolutionName)\libs\$(SolutionName)\test\$(ProjectName).test\msvc-12.0\$(Configuration)\address-model-64\link-static\threading-multi\</IntDir> <ExecutablePath>$(PATH)</ExecutablePath> <IncludePath /> <ReferencePath /> <LibraryPath /> <LibraryWPath /> <SourcePath /> <ExcludePath /> <NMakeBuildCommandLine>cd $(SolutionDir)..\test &amp;&amp; $(SolutionDir)..\..\..\b2 address-model=64 variant=$(configuration) toolset=msvc-14.0 $(ProjectName)</NMakeBuildCommandLine> <NMakeReBuildCommandLine>cd $(SolutionDir)..\test &amp;&amp; $(SolutionDir)..\..\..\b2 address-model=64 variant=$(configuration) toolset=msvc-14.0 $(ProjectName) -a</NMakeReBuildCommandLine> <NMakeCleanCommandLine>cd $(SolutionDir)..\test &amp;&amp; $(SolutionDir)vcxproj.bat msvc-14.0 $(ProjectPath)</NMakeCleanCommandLine> </PropertyGroup> <ItemDefinitionGroup> </ItemDefinitionGroup> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> <ImportGroup Label="ExtensionTargets"> </ImportGroup> </Project> ```
/content/code_sandbox/deps/boost_1_66_0/libs/qvm/bld/test/minus_m_test.vcxproj
xml
2016-09-05T10:18:44
2024-08-11T13:21:40
LiquidCore
LiquidPlayer/LiquidCore
1,010
2,466
```xml <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="path_to_url" xmlns:app="path_to_url" android:id="@+id/root_layout" android:layout_width="match_parent" android:layout_height="match_parent" android:background="?attr/colorPrimary" android:fitsSystemWindows="true"> <com.google.android.material.appbar.MaterialToolbar android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="wrap_content" android:minHeight="?attr/actionBarSize"/> <androidx.fragment.app.FragmentContainerView android:id="@+id/nav_host_fragment" android:name="androidx.navigation.fragment.NavHostFragment" android:layout_width="match_parent" android:layout_height="match_parent" app:defaultNavHost="true" app:navGraph="@navigation/my_account" android:layout_below="@+id/toolbar"/> </RelativeLayout> ```
/content/code_sandbox/app/src/main/res/layout/activity_my_account.xml
xml
2016-05-04T11:46:20
2024-08-15T16:29:10
android
meganz/android
1,537
210
```xml <?xml version="1.0"?> <!-- --> <info xmlns:xsi= "path_to_url" xsi:noNamespaceSchemaLocation="path_to_url"> <id>files</id> <name>Files</name> <summary>File Management</summary> <description>File Management</description> <version>2.3.0</version> <licence>agpl</licence> <author>John Molakvo</author> <author>Robin Appelman</author> <author>Vincent Petry</author> <types> <filesystem/> </types> <documentation> <user>user-files</user> </documentation> <category>files</category> <bugs>path_to_url <dependencies> <nextcloud min-version="31" max-version="31"/> </dependencies> <background-jobs> <job>OCA\Files\BackgroundJob\ScanFiles</job> <job>OCA\Files\BackgroundJob\DeleteOrphanedItems</job> <job>OCA\Files\BackgroundJob\CleanupFileLocks</job> <job>OCA\Files\BackgroundJob\CleanupDirectEditingTokens</job> <job>OCA\Files\BackgroundJob\DeleteExpiredOpenLocalEditor</job> </background-jobs> <commands> <command>OCA\Files\Command\Scan</command> <command>OCA\Files\Command\DeleteOrphanedFiles</command> <command>OCA\Files\Command\TransferOwnership</command> <command>OCA\Files\Command\ScanAppData</command> <command>OCA\Files\Command\RepairTree</command> <command>OCA\Files\Command\Get</command> <command>OCA\Files\Command\Put</command> <command>OCA\Files\Command\Delete</command> <command>OCA\Files\Command\Copy</command> <command>OCA\Files\Command\Move</command> <command>OCA\Files\Command\Object\Delete</command> <command>OCA\Files\Command\Object\Get</command> <command>OCA\Files\Command\Object\Put</command> </commands> <settings> <personal>OCA\Files\Settings\PersonalSettings</personal> </settings> <activity> <settings> <setting>OCA\Files\Activity\Settings\FavoriteAction</setting> <setting>OCA\Files\Activity\Settings\FileChanged</setting> <setting>OCA\Files\Activity\Settings\FileFavoriteChanged</setting> </settings> <filters> <filter>OCA\Files\Activity\Filter\FileChanges</filter> <filter>OCA\Files\Activity\Filter\Favorites</filter> </filters> <providers> <provider>OCA\Files\Activity\FavoriteProvider</provider> <provider>OCA\Files\Activity\Provider</provider> </providers> </activity> <navigations> <navigation> <name>Files</name> <route>files.view.index</route> <order>0</order> </navigation> </navigations> </info> ```
/content/code_sandbox/apps/files/appinfo/info.xml
xml
2016-06-02T07:44:14
2024-08-16T18:23:54
server
nextcloud/server
26,415
732
```xml import { SourceMetadata } from "@shared/types"; import documentCreator from "@server/commands/documentCreator"; import documentImporter from "@server/commands/documentImporter"; import { User } from "@server/models"; import { sequelize } from "@server/storage/database"; import FileStorage from "@server/storage/files"; import BaseTask, { TaskPriority } from "./BaseTask"; type Props = { userId: string; sourceMetadata: Pick<Required<SourceMetadata>, "fileName" | "mimeType">; publish?: boolean; collectionId?: string; parentDocumentId?: string; ip: string; key: string; }; export type DocumentImportTaskResponse = | { documentId: string; } | { error: string; }; export default class DocumentImportTask extends BaseTask<Props> { public async perform({ key, sourceMetadata, ip, publish, collectionId, parentDocumentId, userId, }: Props): Promise<DocumentImportTaskResponse> { try { const content = await FileStorage.getFileBuffer(key); const document = await sequelize.transaction(async (transaction) => { const user = await User.findByPk(userId, { rejectOnEmpty: true, transaction, }); const { text, state, title, icon } = await documentImporter({ user, fileName: sourceMetadata.fileName, mimeType: sourceMetadata.mimeType, content, ip, transaction, }); return documentCreator({ sourceMetadata, title, icon, text, state, publish, collectionId, parentDocumentId, user, ip, transaction, }); }); return { documentId: document.id }; } catch (err) { return { error: err.message }; } finally { await FileStorage.deleteFile(key); } } public get options() { return { attempts: 1, priority: TaskPriority.Normal, }; } } ```
/content/code_sandbox/server/queues/tasks/DocumentImportTask.ts
xml
2016-05-22T21:31:47
2024-08-16T19:57:22
outline
outline/outline
26,751
421
```xml /** * @license * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at path_to_url */ import { TooltipAutoHideExample, TooltipCustomClassExample, TooltipDelayExample, TooltipDisabledExample, TooltipHarnessExample, TooltipManualExample, TooltipMessageExample, TooltipModifiedDefaultsExample, TooltipOverviewExample, TooltipPositionAtOriginExample, TooltipPositionExample, } from '@angular/components-examples/material/tooltip'; import {ChangeDetectionStrategy, Component} from '@angular/core'; @Component({ selector: 'tooltip-demo', templateUrl: 'tooltip-demo.html', standalone: true, imports: [ TooltipAutoHideExample, TooltipCustomClassExample, TooltipDelayExample, TooltipDisabledExample, TooltipManualExample, TooltipMessageExample, TooltipModifiedDefaultsExample, TooltipOverviewExample, TooltipPositionExample, TooltipPositionAtOriginExample, TooltipHarnessExample, ], changeDetection: ChangeDetectionStrategy.OnPush, }) export class TooltipDemo {} ```
/content/code_sandbox/src/dev-app/tooltip/tooltip-demo.ts
xml
2016-01-04T18:50:02
2024-08-16T11:21:13
components
angular/components
24,263
226
```xml import React, {PureComponent, MouseEvent} from 'react' import classnames from 'classnames' import FunctionSelector from 'src/shared/components/FunctionSelector' import {ErrorHandling} from 'src/shared/decorators/errors' import {ApplyFuncsToFieldArgs, Field, FieldFunc, FuncArg} from 'src/types' interface Props { fieldName: string fieldFuncs: FieldFunc[] isSelected: boolean onToggleField: (field: Field) => void onApplyFuncsToField: (args: ApplyFuncsToFieldArgs) => void isKapacitorRule: boolean funcs: string[] isDisabled: boolean } interface State { isOpen: boolean } class FieldListItem extends PureComponent<Props, State> { constructor(props) { super(props) this.state = { isOpen: false, } } public render() { const { isKapacitorRule, isSelected, fieldName, funcs, isDisabled, } = this.props const {isOpen} = this.state let fieldFuncsLabel const num = funcs.length switch (num) { case 0: fieldFuncsLabel = '0 Functions' break case 1: fieldFuncsLabel = `${num} Function` break default: fieldFuncsLabel = `${num} Functions` break } return ( <div> <div className={classnames('query-builder--list-item', { active: isSelected, disabled: isDisabled, })} onClick={this.handleToggleField} data-test={`query-builder-list-item-field-${fieldName}`} > <span> <div className="query-builder--checkbox" /> {fieldName} </span> {isSelected ? ( <div className={classnames('btn btn-xs', { active: isOpen, 'btn-default': !num, 'btn-primary': num, disabled: isDisabled, })} onClick={this.toggleFunctionsMenu} data-test={`query-builder-list-item-function-${fieldName}`} > {fieldFuncsLabel} </div> ) : null} </div> {isSelected && isOpen ? ( <FunctionSelector onApply={this.handleApplyFunctions} selectedItems={funcs} singleSelect={isKapacitorRule} /> ) : null} </div> ) } private toggleFunctionsMenu = (e: MouseEvent<HTMLElement>) => { e.stopPropagation() const {isDisabled} = this.props if (isDisabled) { return } this.setState({isOpen: !this.state.isOpen}) } private close = (): void => { this.setState({isOpen: false}) } private handleToggleField = (): void => { const {onToggleField, fieldName} = this.props onToggleField({value: fieldName, type: 'field'}) this.close() } private handleApplyFunctions = (selectedFuncs: string[]) => { const {onApplyFuncsToField, fieldName} = this.props const field: Field = {value: fieldName, type: 'field'} onApplyFuncsToField({ field, funcs: selectedFuncs.map(val => this.makeFuncArg(val)), }) this.close() } private makeFuncArg = (value: string): FuncArg => ({ value, type: 'func', }) } export default ErrorHandling(FieldListItem) ```
/content/code_sandbox/ui/src/data_explorer/components/FieldListItem.tsx
xml
2016-08-24T23:28:56
2024-08-13T19:50:03
chronograf
influxdata/chronograf
1,494
761
```xml import type { Metadata } from "next"; import { Inter } from "next/font/google"; import "./globals.css"; const inter = Inter({ subsets: ["latin"] }); export const metadata: Metadata = { title: "Next.js + Turso", description: "Next.js Server Actions Demo + Turso", }; export default function RootLayout({ children, }: Readonly<{ children: React.ReactNode; }>) { return ( <html lang="en"> <body className={inter.className}>{children}</body> </html> ); } ```
/content/code_sandbox/examples/with-turso/app/layout.tsx
xml
2016-10-05T23:32:51
2024-08-16T19:44:30
next.js
vercel/next.js
124,056
117
```xml export default defineNuxtRouteMiddleware((to) => { to.meta.override = 'This middleware should be overridden by bar' }) ```
/content/code_sandbox/test/fixtures/basic-types/extends/node_modules/foo/middleware/override.ts
xml
2016-10-26T11:18:47
2024-08-16T19:32:46
nuxt
nuxt/nuxt
53,705
28
```xml interface ImportMetaEnv { __STORYBOOK_URL__?: string; } interface ImportMeta { readonly env: ImportMetaEnv; } ```
/content/code_sandbox/code/addons/vitest/typings.d.ts
xml
2016-03-18T04:23:44
2024-08-16T19:22:08
storybook
storybookjs/storybook
83,755
30
```xml /* This file is a part of @mdn/browser-compat-data * See LICENSE file for more information. */ import assert from 'node:assert/strict'; import { ConsistencyChecker } from './test-consistency.js'; const check = new ConsistencyChecker(); describe('ConsistencyChecker.getVersionAdded()', () => { it('returns null for non-real values', () => { assert.equal( check.getVersionAdded({ chrome: { version_added: null } }, 'chrome'), null, ); }); it('returns null for "preview" values', () => { assert.equal( check.getVersionAdded({ chrome: { version_added: 'preview' } }, 'chrome'), null, ); }); it('returns the value for real and ranged values', () => { assert.equal( check.getVersionAdded({ chrome: { version_added: '12' } }, 'chrome'), '12', ); assert.equal( check.getVersionAdded({ chrome: { version_added: '11' } }, 'chrome'), '11', ); }); it('returns the earliest real value for an array support statement', () => { assert.equal( check.getVersionAdded( { chrome: [{ version_added: '11' }, { version_added: '101' }] }, 'chrome', ), '11', ); assert.equal( check.getVersionAdded( { chrome: [ { version_added: 'preview' }, { version_added: '11', flags: [] }, ], }, 'chrome', ), null, ); assert.equal( check.getVersionAdded( { chrome: [ { version_added: true }, { version_added: '11', flags: [] }, ], }, 'chrome', ), null, ); assert.equal( check.getVersionAdded( { chrome: [{ version_added: '87' }, { version_added: true, flags: [] }], }, 'chrome', ), '87', ); }); }); ```
/content/code_sandbox/lint/linter/test-consistency.test.ts
xml
2016-03-29T18:50:07
2024-08-16T11:36:33
browser-compat-data
mdn/browser-compat-data
4,876
435
```xml import { InsightsBox } from '@@/InsightsBox'; export function HelmInsightsBox() { return ( <InsightsBox header="Helm option" content={ <span> From 2.20 and on, the Helm menu sidebar option has moved to the{' '} <strong>Create from manifest screen</strong> - accessed via the button above. </span> } insightCloseId="k8s-helm" /> ); } ```
/content/code_sandbox/app/react/kubernetes/applications/ListView/ApplicationsDatatable/HelmInsightsBox.tsx
xml
2016-05-19T20:15:28
2024-08-16T19:15:14
portainer
portainer/portainer
30,083
106
```xml import type { VueFireAppCheckOptions } from 'vuefire' /** * @internal */ export interface _NuxtVueFireAppCheckOptionsBase extends Omit<VueFireAppCheckOptions, 'provider'> { provider: 'ReCaptchaV3' | 'ReCaptchaEnterprise' | 'Custom' } export interface NuxtVueFireAppCheckOptionsReCaptchaV3 extends _NuxtVueFireAppCheckOptionsBase { provider: 'ReCaptchaV3' key: string } export interface NuxtVueFireAppCheckOptionsReCaptchaEnterprise extends _NuxtVueFireAppCheckOptionsBase { provider: 'ReCaptchaEnterprise' key: string } // TODO: Custom provider export type NuxtVueFireAppCheckOptions = | NuxtVueFireAppCheckOptionsReCaptchaV3 | NuxtVueFireAppCheckOptionsReCaptchaEnterprise ```
/content/code_sandbox/packages/nuxt/src/runtime/app-check/index.ts
xml
2016-01-07T22:57:53
2024-08-16T14:23:27
vuefire
vuejs/vuefire
3,833
199
```xml import * as React from 'react'; import AccquireInformation from '../components/AccquireInformation'; import { AppConsumer } from './AppContext'; export default class extends React.Component { render() { return ( <AppConsumer> {({ saveGetNotified, getColor, isSavingNotified, getUiOptions }) => { return ( <AccquireInformation color={getColor()} textColor={getUiOptions().textColor || '#fff'} save={saveGetNotified} loading={isSavingNotified} showTitle={true} /> ); }} </AppConsumer> ); } } ```
/content/code_sandbox/widgets/client/messenger/containers/AccquireInformation.tsx
xml
2016-11-11T06:54:50
2024-08-16T10:26:06
erxes
erxes/erxes
3,479
136
```xml <?xml version="1.0" encoding="utf-8" ?> <SignConfigXML> <job configuration="Release" dest="__OUTPATHROOT__" jobname="CppWinRT NuGet" approvers=""> <file src="__INPATHROOT__\Microsoft.Windows.CppWinRT.*.nupkg" signType="CP-401405" dest="__OUTPATHROOT__\Microsoft.Windows.CppWinRT.*.nupkg" /> </job> </SignConfigXML> ```
/content/code_sandbox/nuget/SignConfig.xml
xml
2016-09-14T16:28:57
2024-08-13T13:14:47
cppwinrt
microsoft/cppwinrt
1,628
112
```xml import { RedisQueryResultCache } from "./RedisQueryResultCache" import { DbQueryResultCache } from "./DbQueryResultCache" import { QueryResultCache } from "./QueryResultCache" import { DataSource } from "../data-source/DataSource" import { TypeORMError } from "../error/TypeORMError" /** * Caches query result into Redis database. */ export class QueryResultCacheFactory { // your_sha256_hash--------- // Constructor // your_sha256_hash--------- constructor(protected connection: DataSource) {} // your_sha256_hash--------- // Public Methods // your_sha256_hash--------- /** * Creates a new query result cache based on connection options. */ create(): QueryResultCache { if (!this.connection.options.cache) throw new TypeORMError( `To use cache you need to enable it in connection options by setting cache: true or providing some caching options. Example: { host: ..., username: ..., cache: true }`, ) const cache: any = this.connection.options.cache if (cache.provider && typeof cache.provider === "function") { return cache.provider(this.connection) } if ( cache.type === "redis" || cache.type === "ioredis" || cache.type === "ioredis/cluster" ) { return new RedisQueryResultCache(this.connection, cache.type) } else { return new DbQueryResultCache(this.connection) } } } ```
/content/code_sandbox/src/cache/QueryResultCacheFactory.ts
xml
2016-02-29T07:41:14
2024-08-16T18:28:52
typeorm
typeorm/typeorm
33,875
310
```xml 'use strict'; import { Position, Range, TextDocument } from 'vscode'; import { isNumber } from './sysTypes'; export function getWindowsLineEndingCount(document: TextDocument, offset: number): number { // const eolPattern = new RegExp('\r\n', 'g'); const eolPattern = /\r\n/g; const readBlock = 1024; let count = 0; let offsetDiff = offset.valueOf(); // In order to prevent the one-time loading of large files from taking up too much memory for (let pos = 0; pos < offset; pos += readBlock) { const startAt = document.positionAt(pos); let endAt: Position; if (offsetDiff >= readBlock) { endAt = document.positionAt(pos + readBlock); offsetDiff = offsetDiff - readBlock; } else { endAt = document.positionAt(pos + offsetDiff); } const text = document.getText(new Range(startAt, endAt!)); const cr = text.match(eolPattern); count += cr ? cr.length : 0; } return count; } /** * Return the range represented by the given string. * * If a number is provided then it is used as both lines and the * character are set to 0. * * Examples: * '1:5-3:5' -> Range(1, 5, 3, 5) * '1-3' -> Range(1, 0, 3, 0) * '1:3-1:5' -> Range(1, 3, 1, 5) * '1-1' -> Range(1, 0, 1, 0) * '1' -> Range(1, 0, 1, 0) * '1:3-' -> Range(1, 3, 1, 0) * '1:3' -> Range(1, 3, 1, 0) * '' -> Range(0, 0, 0, 0) * '3-1' -> Range(1, 0, 3, 0) */ export function parseRange(raw: string | number): Range { if (isNumber(raw)) { return new Range(raw, 0, raw, 0); } if (raw === '') { return new Range(0, 0, 0, 0); } const parts = raw.split('-'); if (parts.length > 2) { throw new Error(`invalid range ${raw}`); } const start = parsePosition(parts[0]); let end = start; if (parts.length === 2) { end = parsePosition(parts[1]); } return new Range(start, end); } /** * Return the line/column represented by the given string. * * If a number is provided then it is used as the line and the character * is set to 0. * * Examples: * '1:5' -> Position(1, 5) * '1' -> Position(1, 0) * '' -> Position(0, 0) */ export function parsePosition(raw: string | number): Position { if (isNumber(raw)) { return new Position(raw, 0); } if (raw === '') { return new Position(0, 0); } const parts = raw.split(':'); if (parts.length > 2) { throw new Error(`invalid position ${raw}`); } let line = 0; if (parts[0] !== '') { if (!/^\d+$/.test(parts[0])) { throw new Error(`invalid position ${raw}`); } line = +parts[0]; } let col = 0; if (parts.length === 2 && parts[1] !== '') { if (!/^\d+$/.test(parts[1])) { throw new Error(`invalid position ${raw}`); } col = +parts[1]; } return new Position(line, col); } /** * Return the indentation part of the given line. */ export function getIndent(line: string): string { const found = line.match(/^ */); return found![0]; } /** * Return the dedented lines in the given text. * * This is used to represent text concisely and readably, which is * particularly useful for declarative definitions (e.g. in tests). * * (inspired by Python's `textwrap.dedent()`) */ export function getDedentedLines(text: string): string[] { const linesep = text.includes('\r') ? '\r\n' : '\n'; const lines = text.split(linesep); if (!lines) { return [text]; } if (lines[0] !== '') { throw Error('expected actual first line to be blank'); } lines.shift(); if (lines.length === 0) { return []; } if (lines[0] === '') { throw Error('expected "first" line to not be blank'); } const leading = getIndent(lines[0]).length; for (let i = 0; i < lines.length; i += 1) { const line = lines[i]; if (getIndent(line).length < leading) { throw Error(`line ${i} has less indent than the "first" line`); } lines[i] = line.substring(leading); } return lines; } /** * Extract a tree based on the given text. * * The tree is derived from the indent level of each line. The caller * is responsible for applying any meaning to the text of each node * in the tree. * * Blank lines and comments (with a leading `#`) are ignored. Also, * the full text is automatically dedented until at least one line * has no indent (i.e. is treated as a root). * * @returns - the list of nodes in the tree (pairs of text & parent index) * (note that the parent index of roots is `-1`) * * Example: * * parseTree(` * # This comment and the following blank line are ignored. * * this is a root * the first branch * a sub-branch # This comment is ignored. * this is the first leaf node! * another leaf node... * middle * * the second main branch * # indents do not have to be consistent across the full text. * # ...and the indent of comments is not relevant. * node 1 * node 2 * * the last leaf node! * * another root * nothing to see here! * * # this comment is ignored * `.trim()) * * would produce the following: * * [ * ['this is a root', -1], * ['the first branch', 0], * ['a sub-branch', 1], * ['this is the first leaf node!', 2], * ['another leaf node...', 1], * ['middle', 1], * ['the second main branch', 0], * ['node 1', 6], * ['node 2', 6], * ['the last leaf node!', 0], * ['another root', -1], * ['nothing to see here!', 10], * ] */ export function parseTree(text: string): [string, number][] { const parsed: [string, number][] = []; const parents: [string, number][] = []; const lines = getDedentedLines(text) .map((l) => l.split(' #')[0].split(' //')[0].trimEnd()) .filter((l) => l.trim() !== ''); lines.forEach((line) => { const indent = getIndent(line); const entry = line.trim(); let parentIndex: number; if (indent === '') { parentIndex = -1; parents.push([indent, parsed.length]); } else if (parsed.length === 0) { throw Error(`expected non-indented line, got ${line}`); } else { let parentIndent: string; [parentIndent, parentIndex] = parents[parents.length - 1]; while (indent.length <= parentIndent.length) { parents.pop(); [parentIndent, parentIndex] = parents[parents.length - 1]; } if (parentIndent.length < indent.length) { parents.push([indent, parsed.length]); } } parsed.push([entry, parentIndex!]); }); return parsed; } ```
/content/code_sandbox/src/client/common/utils/text.ts
xml
2016-01-19T10:50:01
2024-08-12T21:05:24
pythonVSCode
DonJayamanne/pythonVSCode
2,078
1,905
```xml import type { ActionFlightResponse, ActionResult, FlightData, } from '../../../../server/app-render/types' import { callServer } from '../../../app-call-server' import { ACTION_HEADER, NEXT_ROUTER_STATE_TREE_HEADER, NEXT_URL, RSC_CONTENT_TYPE_HEADER, } from '../../app-router-headers' // // eslint-disable-next-line import/no-extraneous-dependencies // import { createFromFetch } from 'react-server-dom-webpack/client' // // eslint-disable-next-line import/no-extraneous-dependencies // import { encodeReply } from 'react-server-dom-webpack/client' const { createFromFetch, encodeReply } = ( !!process.env.NEXT_RUNTIME ? // eslint-disable-next-line import/no-extraneous-dependencies require('react-server-dom-webpack/client.edge') : // eslint-disable-next-line import/no-extraneous-dependencies require('react-server-dom-webpack/client') ) as typeof import('react-server-dom-webpack/client') import type { ReadonlyReducerState, ReducerState, ServerActionAction, ServerActionMutable, } from '../router-reducer-types' import { addBasePath } from '../../../add-base-path' import { createHrefFromUrl } from '../create-href-from-url' import { handleExternalUrl } from './navigate-reducer' import { applyRouterStatePatchToTree } from '../apply-router-state-patch-to-tree' import { isNavigatingToNewRootLayout } from '../is-navigating-to-new-root-layout' import type { CacheNode } from '../../../../shared/lib/app-router-context.shared-runtime' import { handleMutable } from '../handle-mutable' import { fillLazyItemsTillLeafWithHead } from '../fill-lazy-items-till-leaf-with-head' import { createEmptyCacheNode } from '../../app-router' import { hasInterceptionRouteInCurrentTree } from './has-interception-route-in-current-tree' import { handleSegmentMismatch } from '../handle-segment-mismatch' import { refreshInactiveParallelSegments } from '../refetch-inactive-parallel-segments' type FetchServerActionResult = { redirectLocation: URL | undefined actionResult?: ActionResult actionFlightData?: FlightData | undefined | null revalidatedParts: { tag: boolean cookie: boolean paths: string[] } } async function fetchServerAction( state: ReadonlyReducerState, nextUrl: ReadonlyReducerState['nextUrl'], { actionId, actionArgs }: ServerActionAction ): Promise<FetchServerActionResult> { const body = await encodeReply(actionArgs) const res = await fetch('', { method: 'POST', headers: { Accept: RSC_CONTENT_TYPE_HEADER, [ACTION_HEADER]: actionId, [NEXT_ROUTER_STATE_TREE_HEADER]: encodeURIComponent( JSON.stringify(state.tree) ), ...(process.env.NEXT_DEPLOYMENT_ID ? { 'x-deployment-id': process.env.NEXT_DEPLOYMENT_ID, } : {}), ...(nextUrl ? { [NEXT_URL]: nextUrl, } : {}), }, body, }) const location = res.headers.get('x-action-redirect') let revalidatedParts: FetchServerActionResult['revalidatedParts'] try { const revalidatedHeader = JSON.parse( res.headers.get('x-action-revalidated') || '[[],0,0]' ) revalidatedParts = { paths: revalidatedHeader[0] || [], tag: !!revalidatedHeader[1], cookie: revalidatedHeader[2], } } catch (e) { revalidatedParts = { paths: [], tag: false, cookie: false, } } const redirectLocation = location ? new URL( addBasePath(location), // Ensure relative redirects in Server Actions work, e.g. redirect('./somewhere-else') new URL(state.canonicalUrl, window.location.href) ) : undefined const contentType = res.headers.get('content-type') if (contentType === RSC_CONTENT_TYPE_HEADER) { const response: ActionFlightResponse = await createFromFetch( Promise.resolve(res), { callServer, } ) if (location) { // if it was a redirection, then result is just a regular RSC payload return { actionFlightData: response.f, redirectLocation, revalidatedParts, } } return { actionResult: response.a, actionFlightData: response.f, redirectLocation, revalidatedParts, } } // Handle invalid server action responses if (res.status >= 400) { // The server can respond with a text/plain error message, but we'll fallback to something generic // if there isn't one. const error = contentType === 'text/plain' ? await res.text() : 'An unexpected response was received from the server.' throw new Error(error) } return { redirectLocation, revalidatedParts, } } /* * This reducer is responsible for calling the server action and processing any side-effects from the server action. * It does not mutate the state by itself but rather delegates to other reducers to do the actual mutation. */ export function serverActionReducer( state: ReadonlyReducerState, action: ServerActionAction ): ReducerState { const { resolve, reject } = action const mutable: ServerActionMutable = {} const href = state.canonicalUrl let currentTree = state.tree mutable.preserveCustomHistoryState = false // only pass along the `nextUrl` param (used for interception routes) if the current route was intercepted. // If the route has been intercepted, the action should be as well. // Otherwise the server action might be intercepted with the wrong action id // (ie, one that corresponds with the intercepted route) const nextUrl = state.nextUrl && hasInterceptionRouteInCurrentTree(state.tree) ? state.nextUrl : null return fetchServerAction(state, nextUrl, action).then( async ({ actionResult, actionFlightData: flightData, redirectLocation, }) => { // Make sure the redirection is a push instead of a replace. // Issue: path_to_url if (redirectLocation) { state.pushRef.pendingPush = true mutable.pendingPush = true } if (!flightData) { resolve(actionResult) // If there is a redirect but no flight data we need to do a mpaNavigation. if (redirectLocation) { return handleExternalUrl( state, mutable, redirectLocation.href, state.pushRef.pendingPush ) } return state } if (typeof flightData === 'string') { // Handle case when navigating to page in `pages` from `app` return handleExternalUrl( state, mutable, flightData, state.pushRef.pendingPush ) } if (redirectLocation) { const newHref = createHrefFromUrl(redirectLocation, false) mutable.canonicalUrl = newHref } for (const flightDataPath of flightData) { // FlightDataPath with more than two items means unexpected Flight data was returned if (flightDataPath.length !== 3) { // TODO-APP: handle this case better console.log('SERVER ACTION APPLY FAILED') return state } // Given the path can only have two items the items are only the router state and rsc for the root. const [treePatch] = flightDataPath const newTree = applyRouterStatePatchToTree( // TODO-APP: remove '' [''], currentTree, treePatch, redirectLocation ? createHrefFromUrl(redirectLocation) : state.canonicalUrl ) if (newTree === null) { return handleSegmentMismatch(state, action, treePatch) } if (isNavigatingToNewRootLayout(currentTree, newTree)) { return handleExternalUrl( state, mutable, href, state.pushRef.pendingPush ) } // The one before last item is the router state tree patch const [cacheNodeSeedData, head] = flightDataPath.slice(-2) const rsc = cacheNodeSeedData !== null ? cacheNodeSeedData[1] : null // Handles case where prefetch only returns the router tree patch without rendered components. if (rsc !== null) { const cache: CacheNode = createEmptyCacheNode() cache.rsc = rsc cache.prefetchRsc = null cache.loading = cacheNodeSeedData[3] fillLazyItemsTillLeafWithHead( cache, // Existing cache is not passed in as `router.refresh()` has to invalidate the entire cache. undefined, treePatch, cacheNodeSeedData, head ) await refreshInactiveParallelSegments({ state, updatedTree: newTree, updatedCache: cache, includeNextUrl: Boolean(nextUrl), canonicalUrl: mutable.canonicalUrl || state.canonicalUrl, }) mutable.cache = cache mutable.prefetchCache = new Map() } mutable.patchedTree = newTree currentTree = newTree } resolve(actionResult) return handleMutable(state, mutable) }, (e: any) => { // When the server action is rejected we don't update the state and instead call the reject handler of the promise. reject(e) return state } ) } ```
/content/code_sandbox/packages/next/src/client/components/router-reducer/reducers/server-action-reducer.ts
xml
2016-10-05T23:32:51
2024-08-16T19:44:30
next.js
vercel/next.js
124,056
2,059
```xml <?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="4.0" xmlns="path_to_url"> <ItemGroup> <Filter Include="tutorials"> <UniqueIdentifier>{BADE550F-9172-1744-9456-1FB9D91253B4}</UniqueIdentifier> </Filter> <Filter Include="tutorials\tutorial_1_2"> <UniqueIdentifier>{EA53F30E-ED11-624B-A544-EF891545A109}</UniqueIdentifier> </Filter> <Filter Include="tutorials\tutorial_1_2\cpp"> <UniqueIdentifier>{28AEC898-A9EC-2243-8506-0816ADE27D01}</UniqueIdentifier> </Filter> <Filter Include="tutorials\tutorial_1_2\cpp\behaviac_generated"> <UniqueIdentifier>{CB19C92B-4646-6E4E-9068-CCA5D632C006}</UniqueIdentifier> </Filter> <Filter Include="tutorials\tutorial_1_2\cpp\behaviac_generated\types"> <UniqueIdentifier>{63E91188-8C5B-B14D-B26F-040B398F78A8}</UniqueIdentifier> </Filter> <Filter Include="tutorials\tutorial_1_2\cpp\behaviac_generated\types\internal"> <UniqueIdentifier>{F530AF60-F1D8-2147-BB71-AEE615A28FC8}</UniqueIdentifier> </Filter> </ItemGroup> <ItemGroup> <ClInclude Include="..\..\tutorials\tutorial_1_2\cpp\SecondAgent.h"> <Filter>tutorials\tutorial_1_2\cpp</Filter> </ClInclude> <ClInclude Include="..\..\tutorials\tutorial_1_2\cpp\behaviac_generated\types\behaviac_types.h"> <Filter>tutorials\tutorial_1_2\cpp\behaviac_generated\types</Filter> </ClInclude> <ClInclude Include="..\..\tutorials\tutorial_1_2\cpp\behaviac_generated\types\internal\behaviac_agent_headers.h"> <Filter>tutorials\tutorial_1_2\cpp\behaviac_generated\types\internal</Filter> </ClInclude> <ClInclude Include="..\..\tutorials\tutorial_1_2\cpp\behaviac_generated\types\internal\behaviac_agent_member_visitor.h"> <Filter>tutorials\tutorial_1_2\cpp\behaviac_generated\types\internal</Filter> </ClInclude> <ClInclude Include="..\..\tutorials\tutorial_1_2\cpp\behaviac_generated\types\internal\behaviac_agent_meta.h"> <Filter>tutorials\tutorial_1_2\cpp\behaviac_generated\types\internal</Filter> </ClInclude> <ClInclude Include="..\..\tutorials\tutorial_1_2\cpp\behaviac_generated\types\internal\behaviac_headers.h"> <Filter>tutorials\tutorial_1_2\cpp\behaviac_generated\types\internal</Filter> </ClInclude> </ItemGroup> <ItemGroup> <ClCompile Include="..\..\tutorials\tutorial_1_2\cpp\SecondAgent.cpp"> <Filter>tutorials\tutorial_1_2\cpp</Filter> </ClCompile> <ClCompile Include="..\..\tutorials\tutorial_1_2\cpp\tutorial_1_2.cpp"> <Filter>tutorials\tutorial_1_2\cpp</Filter> </ClCompile> <ClCompile Include="..\..\tutorials\tutorial_1_2\cpp\behaviac_generated\types\internal\behaviac_agent_meta.cpp"> <Filter>tutorials\tutorial_1_2\cpp\behaviac_generated\types\internal</Filter> </ClCompile> </ItemGroup> </Project> ```
/content/code_sandbox/projects/vs2010/tutorial_1_2.vcxproj.filters
xml
2016-11-21T05:08:08
2024-08-16T07:18:30
behaviac
Tencent/behaviac
2,831
895
```xml <resources> <!-- Base application theme. --> <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> <!-- Customize your theme here. --> <item name="colorPrimary">@color/colorPrimary</item> <item name="colorPrimaryDark">@color/colorPrimaryDark</item> <item name="colorAccent">@color/colorAccent</item> </style> <!-- Button Item --> <style name="AppButtonGreen"> <item name="android:background">@drawable/selector_btn_default_green</item> <item name="android:textColor">@drawable/selector_btn_green_text</item> </style> <style name="AppTheme.NoActionBar"> <item name="windowActionBar">false</item> <item name="windowNoTitle">true</item> </style> </resources> ```
/content/code_sandbox/app/src/main/res/values/styles.xml
xml
2016-08-08T10:52:58
2024-07-13T02:47:52
Onboarding
eoinfogarty/Onboarding
1,491
181
```xml <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>net6.0</TargetFramework> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> </PropertyGroup> <ItemGroup> <PackageReference Include="AWSSDK.Extensions.NETCore.Setup" Version="3.7.2" /> <PackageReference Include="AWSSDK.Scheduler" Version="3.7.300.98" /> <PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="6.0.0" /> <PackageReference Include="Microsoft.Extensions.Hosting" Version="6.0.1" /> </ItemGroup> </Project> ```
/content/code_sandbox/dotnetv3/EventBridge Scheduler/Actions/ServiceActions.csproj
xml
2016-08-18T19:06:57
2024-08-16T18:59:44
aws-doc-sdk-examples
awsdocs/aws-doc-sdk-examples
9,298
160
```xml import { initialize } from './chargebee-entry'; import { addCheckpoint } from './checkpoints'; import { getMessageBus } from './message-bus'; document.addEventListener('DOMContentLoaded', () => initialize()); window.addEventListener('error', (event) => { addCheckpoint('window_error', { event, error: event.error, }); event.preventDefault(); getMessageBus().sendUnhandledErrorMessage(event.error); }); ```
/content/code_sandbox/packages/chargebee/src/main.ts
xml
2016-06-08T11:16:51
2024-08-16T14:14:27
WebClients
ProtonMail/WebClients
4,300
85
```xml <NotepadPlus> <UserLang name="Ring" ext="ring" udlVersion="2.1"> <Settings> <Global caseIgnored="yes" allowFoldOfComments="no" foldCompact="no" forcePureLC="0" decimalSeparator="0" /> <Prefix Keywords1="yes" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" /> </Settings> <KeywordLists> <Keywords name="Comments">00// 00# 01 02 03/* 04*/</Keywords> <Keywords name="Numbers, prefix1"></Keywords> <Keywords name="Numbers, prefix2"></Keywords> <Keywords name="Numbers, extras1"></Keywords> <Keywords name="Numbers, extras2"></Keywords> <Keywords name="Numbers, suffix1"></Keywords> <Keywords name="Numbers, suffix2"></Keywords> <Keywords name="Numbers, range"></Keywords> <Keywords name="Operators1">+ - * / % = , ( ) != &gt; &lt; &gt;= &lt;= | ^ ~ &lt;&lt; &gt;&gt; . [ ] &amp; &apos;</Keywords> <Keywords name="Operators2">and or not</Keywords> <Keywords name="Folders in code1, open">{</Keywords> <Keywords name="Folders in code1, middle"></Keywords> <Keywords name="Folders in code1, close">}</Keywords> <Keywords name="Folders in code2, open">if</Keywords> <Keywords name="Folders in code2, middle">but else</Keywords> <Keywords name="Folders in code2, close">ok</Keywords> <Keywords name="Folders in comment, open"></Keywords> <Keywords name="Folders in comment, middle"></Keywords> <Keywords name="Folders in comment, close"></Keywords> <Keywords name="Keywords1">:</Keywords> <Keywords name="Keywords2">len add del get clock lower upper input&#x000D;&#x000A; ascii char date time filename getchar &#x000D;&#x000A;system random timelist adddays diffdays&#x000D;&#x000A; isstring isnumbeFr islist type isnull&#x000D;&#x000A; isobject hex dec number string str2hex&#x000D;&#x000A; hex2str str2list list2str left right&#x000D;&#x000A; trim copy substr lines strcmp eval&#x000D;&#x000A; raise assert isalnum isalpha iscntrl &#x000D;&#x000A;isdigit isgraph islower isprint ispunct&#x000D;&#x000A; isspace isupper isxdigit locals globals&#x000D;&#x000A; functions cfunctions islocal isglobal &#x000D;&#x000A;isfunction iscfunction packages ispackage&#x000D;&#x000A; classes isclass packageclasses ispackageclass&#x000D;&#x000A; classname objectid attributes methods&#x000D;&#x000A; isattribute ismethod isprivateattribute &#x000D;&#x000A;isprivatemethod addattribute addmethod&#x000D;&#x000A; getattribute setattribute mergemethods&#x000D;&#x000A; list find min max insert sort&#x000D;&#x000A; reverse binarysearch sin cos tan&#x000D;&#x000A; asin acos atan atan2 sinh cosh &#x000D;&#x000A;tanh exp log log10 ceil floor fabs&#x000D;&#x000A; pow sqrt unsigned decimals murmur3hash &#x000D;&#x000A;fopen fclose fflush freopen tempfile&#x000D;&#x000A; tempname fseek ftell rewind fgetpos&#x000D;&#x000A; fsetpos clearerr feof ferror perror &#x000D;&#x000A;rename remove fgetc fgets fputc fputs&#x000D;&#x000A; ungetc fread fwrite dir read write&#x000D;&#x000A; fexists ismsdos iswindows iswindows64&#x000D;&#x000A; isunix ismacosx islinux isfreebsd&#x000D;&#x000A; isandroid windowsnl mysql_info &#x000D;&#x000A;mysql_init mysql_error mysql_connect&#x000D;&#x000A; mysql_close mysql_query mysql_result &#x000D;&#x000A;mysql_insert_id mysql_columns mysql_result2 &#x000D;&#x000A;mysql_next_result mysql_escape_string&#x000D;&#x000A; mysql_autocommit mysql_commit mysql_rollback&#x000D;&#x000A; odbc_init odbc_drivers odbc_datasources&#x000D;&#x000A; odbc_close odbc_connect odbc_disconnect &#x000D;&#x000A;odbc_execute odbc_colcount odbc_fetch&#x000D;&#x000A; odbc_getdata odbc_tables odbc_columns&#x000D;&#x000A; odbc_autocommit odbc_commit odbc_rollback&#x000D;&#x000A; md5 sha1 sha256 sha512 sha384 sha224&#x000D;&#x000A; encrypt decrypt randbytes download &#x000D;&#x000A;sendemail loadlib closelib callgc &#x000D;&#x000A;varptr intvalue see give&#x000D;&#x000A;</Keywords> <Keywords name="Keywords3">TO FOR FOREACH NEW FUNC FROM NEXT LOAD ELSE SEE WHILE OK CLASS BREAK RETURN BUT END GIVE BYE EXIT TRY CATCH DONE SWITCH ON OTHER OFF IN LOOP PACKAGE IMPORT PRIVATE STEP DO AGAIN CALL ENDIF ENDFOR ENDWHILE ENDSWITCH ENDTRY BREAK CONTINUE FUNCTION ENDFUNCTION LOADSYNTAX CHANGERINGKEYWORD CHANGERINGOPERATOR ENABLEHASHCOMMENTS DISABLEHASHCOMMENTS NULL nl&#x000D;&#x000A;true false</Keywords> <Keywords name="Keywords4"></Keywords> <Keywords name="Keywords5"></Keywords> <Keywords name="Keywords6"></Keywords> <Keywords name="Keywords7"></Keywords> <Keywords name="Keywords8"></Keywords> <Keywords name="Delimiters">00&quot; 00&apos; 00` 01 02&quot; 02&apos; 02` 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23</Keywords> </KeywordLists> <Styles> <WordsStyle name="DEFAULT" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> <WordsStyle name="COMMENTS" fgColor="008000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> <WordsStyle name="LINE COMMENTS" fgColor="008000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> <WordsStyle name="NUMBERS" fgColor="FF8000" bgColor="FFFFFF" fontName="" fontStyle="1" nesting="0" /> <WordsStyle name="KEYWORDS1" fgColor="800000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> <WordsStyle name="KEYWORDS2" fgColor="6B6B6B" bgColor="FFFFFF" fontName="" fontStyle="1" fontSize="10" nesting="0" /> <WordsStyle name="KEYWORDS3" fgColor="0000FF" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> <WordsStyle name="KEYWORDS4" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> <WordsStyle name="KEYWORDS5" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> <WordsStyle name="KEYWORDS6" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> <WordsStyle name="KEYWORDS7" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> <WordsStyle name="KEYWORDS8" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> <WordsStyle name="OPERATORS" fgColor="000080" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> <WordsStyle name="FOLDER IN CODE1" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> <WordsStyle name="FOLDER IN CODE2" fgColor="0000FF" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> <WordsStyle name="FOLDER IN COMMENT" fgColor="00FF40" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> <WordsStyle name="DELIMITERS1" fgColor="800000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> <WordsStyle name="DELIMITERS2" fgColor="0000FF" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> <WordsStyle name="DELIMITERS3" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> <WordsStyle name="DELIMITERS4" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> <WordsStyle name="DELIMITERS5" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> <WordsStyle name="DELIMITERS6" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> <WordsStyle name="DELIMITERS7" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> <WordsStyle name="DELIMITERS8" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> </Styles> </UserLang> </NotepadPlus> ```
/content/code_sandbox/tools/editors/notepad_plus_plus/Syntax/Ring.xml
xml
2016-03-24T10:29:27
2024-08-16T12:53:07
ring
ring-lang/ring
1,262
2,245
```xml import * as React from 'react'; import { CSSModule } from './utils'; export interface CardTitleProps extends React.HTMLAttributes<HTMLElement> { [key: string]: any; tag?: React.ElementType; cssModule?: CSSModule; } declare class CardTitle extends React.Component<CardTitleProps> {} export default CardTitle; ```
/content/code_sandbox/types/lib/CardTitle.d.ts
xml
2016-02-19T08:01:36
2024-08-16T11:48:48
reactstrap
reactstrap/reactstrap
10,591
71
```xml import { assert } from "../../util.js"; import { DataStream, readTHeader } from "../util.js"; function readStrip(data: DataStream) { return { vertex_ids: data.readArrayDynamic(data.readUint32, data.readUint16), material_index: data.readUint32(), tri_order: data.readUint32(), } } export function readMesh(data: DataStream) { const header = readTHeader(data); let coords = { vertices: data.readArrayDynamic(data.readUint32, data.readVec3), texcoords: data.readArrayDynamic(data.readUint32, data.readVec2), normals: data.readArrayDynamic(data.readUint32, data.readVec3), }; const numStrips = data.readUint32(); const strips = data.readArrayStatic(readStrip, numStrips); if ((header.flags & 4) !== 0) { data.skip(4 * numStrips); // skip vertex groups (I think?) } assert(numStrips === data.readUint32(), "Strip has incorrect number of stripext"); const stripsFull = strips.map((strip) => ({ elements: (() => { const numElements = data.readUint32(); assert(numElements === strip.vertex_ids.length, "Bad elements >:("); return strip.vertex_ids.map((vertex_id) => ([ vertex_id,// POSITION data.readUint16(),// UV data.readUint16(),// NORMAL ])); })(), material_index: strip.material_index, tri_order: strip.tri_order, })); return { header, ...coords, strips: stripsFull, materials: data.readArrayDynamic(data.readUint32, data.readInt32), // Rest doesn't matter // sphere_shapes: // cuboid_shapes: // cylinder_shapes: // unk_shapes: // strip_order: }; } export type TotemMesh = ReturnType<typeof readMesh>; ```
/content/code_sandbox/src/SpongebobRevengeOfTheFlyingDutchman/types/mesh.ts
xml
2016-10-06T21:43:45
2024-08-16T17:03:52
noclip.website
magcius/noclip.website
3,206
419
```xml <?xml version="1.0" encoding="utf-8"?><HelpTOCNode Title="CSharpParser.CmdScriptInfo Class" Url="html/4fceaaff-ad51-713d-8099-042988f73527.htm"><HelpTOCNode Title="CSharpParser.CmdScriptInfo Constructor " Url="html/2393b5e9-ba1f-8f10-f735-8de2026b1240.htm" /><HelpTOCNode Title="CmdScriptInfo Methods" Url="html/4459e9ea-c190-a6fe-432a-faab31f6e212.htm" /><HelpTOCNode Title="CmdScriptInfo Fields" Url="html/a2e65ef3-844b-3034-6509-8a991d4e12eb.htm" HasChildren="true" /></HelpTOCNode> ```
/content/code_sandbox/docs/help/toc/4fceaaff-ad51-713d-8099-042988f73527.xml
xml
2016-01-16T05:50:23
2024-08-14T17:35:38
cs-script
oleg-shilo/cs-script
1,583
188
```xml import * as React from 'react'; import { isConformant } from 'test/specs/commonTests'; import { Carousel, CarouselProps, carouselSlotClassNames } from 'src/components/Carousel/Carousel'; import { getAnimationName } from 'src/components/Carousel/utils'; import { Button } from 'src/components/Button/Button'; import { carouselNavigationClassName } from 'src/components/Carousel/CarouselNavigation'; import { carouselNavigationItemClassName } from 'src/components/Carousel/CarouselNavigationItem'; import { Text } from 'src/components/Text/Text'; import { ReactWrapper, CommonWrapper } from 'enzyme'; import { createTestContainer, findIntrinsicElement, mountWithProvider } from 'test/utils'; const buttonName = 'button-to-test'; const items = [ { key: 'item1', content: ( <div> <Text content={'item1'} /> <Button id={buttonName} content={buttonName} /> </div> ), }, { key: 'item2', content: <Text content={'item2'} />, }, { key: 'item3', content: <Text content={'item3'} />, }, { key: 'item4', content: <Text content={'item4'} />, }, ]; function renderCarousel(props?: CarouselProps, attachTo?: HTMLElement): ReactWrapper { return mountWithProvider( <Carousel items={items} getItemPositionText={(index: number, length: number) => `${index + 1} of ${length}`} {...props} />, { attachTo }, ); } const getItemsContainer = (wrapper: ReactWrapper): CommonWrapper => findIntrinsicElement(wrapper, `.${carouselSlotClassNames.itemsContainer}`); const getPaddleNextWrapper = (wrapper: ReactWrapper): CommonWrapper => findIntrinsicElement(wrapper, `.${carouselSlotClassNames.paddleNext}`); const getPaddlePreviousWrapper = (wrapper: ReactWrapper): CommonWrapper => findIntrinsicElement(wrapper, `.${carouselSlotClassNames.paddlePrevious}`); const getPaginationWrapper = (wrapper: ReactWrapper): CommonWrapper => findIntrinsicElement(wrapper, `.${carouselSlotClassNames.pagination}`); const getNavigationNavigationWrapper = (wrapper: ReactWrapper): CommonWrapper => findIntrinsicElement(wrapper, `.${carouselNavigationClassName}`); const getNavigationNavigationItemAtIndexWrapper = (wrapper: ReactWrapper, index: number): CommonWrapper => findIntrinsicElement(wrapper, `.${carouselNavigationItemClassName}`).at(index); const getButtonWrapper = (wrapper: ReactWrapper): CommonWrapper => findIntrinsicElement(wrapper, `#${buttonName}`); describe('Carousel', () => { isConformant(Carousel, { testPath: __filename, constructorName: 'Carousel', autoControlledProps: ['activeIndex'], disabledTests: ['kebab-aria-attributes'], }); describe('activeIndex', () => { it('should increase at paddle next press', () => { const wrapper = renderCarousel(); const paddleNext = getPaddleNextWrapper(wrapper); const pagination = getPaginationWrapper(wrapper); paddleNext.simulate('click'); expect(pagination.getDOMNode().textContent).toBe(`2 of ${items.length}`); }); it('should pass activeIndex onActiveIndexChange', () => { const onActiveIndexChange = jest.fn(); const wrapper = renderCarousel({ onActiveIndexChange }); const paddleNext = getPaddleNextWrapper(wrapper); paddleNext.simulate('click'); expect(onActiveIndexChange).toHaveBeenCalledWith( expect.objectContaining({ type: 'click' }), expect.objectContaining({ activeIndex: 1 }), ); }); it('should decrese at paddle previous press', () => { const wrapper = renderCarousel({ defaultActiveIndex: 3 }); const paddlePrevious = getPaddlePreviousWrapper(wrapper); const pagination = getPaginationWrapper(wrapper); paddlePrevious.simulate('click'); expect(pagination.getDOMNode().textContent).toBe(`3 of ${items.length}`); }); it('should wrap at paddle next press if last and circular', () => { const wrapper = renderCarousel({ circular: true, defaultActiveIndex: 3 }); const paddleNext = getPaddleNextWrapper(wrapper); const pagination = getPaginationWrapper(wrapper); paddleNext.simulate('click'); expect(pagination.getDOMNode().textContent).toBe(`1 of ${items.length}`); }); it('should wrap at paddle previous press if first and circular', () => { const wrapper = renderCarousel({ circular: true }); const paddlePrevious = getPaddlePreviousWrapper(wrapper); const pagination = getPaginationWrapper(wrapper); paddlePrevious.simulate('click'); expect(pagination.getDOMNode().textContent).toBe(`4 of ${items.length}`); }); it('should increment at arrow right', () => { const wrapper = renderCarousel({ circular: true }); const pagination = getPaginationWrapper(wrapper); const itemsContainer = getItemsContainer(wrapper); itemsContainer.simulate('keydown', { key: 'ArrowRight' }); expect(pagination.getDOMNode().textContent).toBe(`2 of ${items.length}`); }); it('should decrement at arrow left', () => { const wrapper = renderCarousel({ circular: true, defaultActiveIndex: 3 }); const pagination = getPaginationWrapper(wrapper); const itemsContainer = getItemsContainer(wrapper); itemsContainer.simulate('keydown', { key: 'ArrowLeft' }); expect(pagination.getDOMNode().textContent).toBe(`3 of ${items.length}`); }); it('should not increment at arrow right if last and not circular', () => { const wrapper = renderCarousel({ defaultActiveIndex: 3 }); const pagination = getPaginationWrapper(wrapper); const itemsContainer = getItemsContainer(wrapper); itemsContainer.simulate('keydown', { key: 'ArrowRight' }); expect(pagination.getDOMNode().textContent).toBe(`4 of ${items.length}`); }); it('should not decrement at arrow left if first and not circular', () => { const wrapper = renderCarousel(); const pagination = getPaginationWrapper(wrapper); const itemsContainer = getItemsContainer(wrapper); itemsContainer.simulate('keydown', { key: 'ArrowLeft' }); expect(pagination.getDOMNode().textContent).toBe(`1 of ${items.length}`); }); it('should not change at arrow left if event is invoked on child element', () => { const wrapper = renderCarousel({ circular: true }); const button = getButtonWrapper(wrapper); const pagination = getPaginationWrapper(wrapper); button.simulate('keydown', { key: 'ArrowLeft' }); expect(pagination.getDOMNode().textContent).toBe(`1 of ${items.length}`); }); it('should not change at arrow right if event is invoked on child element', () => { const wrapper = renderCarousel(); const button = getButtonWrapper(wrapper); const pagination = getPaginationWrapper(wrapper); button.simulate('keydown', { key: 'ArrowRight' }); expect(pagination.getDOMNode().textContent).toBe(`1 of ${items.length}`); }); }); describe('paddle', () => { it('next should be hidden on last element if not circular', () => { const wrapper = renderCarousel({ defaultActiveIndex: 3, circular: true }); expect(!wrapper.exists(`.${carouselSlotClassNames.paddleNext}`)); expect(wrapper.exists(`.${carouselSlotClassNames.paddlePrevious}`)); }); it('previous should be hidden on last element if not circular', () => { const wrapper = renderCarousel({ circular: true }); expect(!wrapper.exists(`.${carouselSlotClassNames.paddlePrevious}`)); expect(wrapper.exists(`.${carouselSlotClassNames.paddleNext}`)); }); it('next should not be hidden on last element if circular', () => { const wrapper = renderCarousel({ defaultActiveIndex: 3, circular: true }); expect(wrapper.exists(`.${carouselSlotClassNames.paddleNext}`)); expect(wrapper.exists(`.${carouselSlotClassNames.paddlePrevious}`)); }); it('previous should not be hidden on last element if circular', () => { const wrapper = renderCarousel({ circular: true }); expect(wrapper.exists(`.${carouselSlotClassNames.paddlePrevious}`)); expect(wrapper.exists(`.${carouselSlotClassNames.paddleNext}`)); }); it('next should be focused on last slide transition if pagination and not circular', () => { const { testContainer, removeTestContainer } = createTestContainer(); const wrapper = renderCarousel({ defaultActiveIndex: 1 }, testContainer); const paddleNext = getPaddleNextWrapper(wrapper); const paddlePrevios = getPaddlePreviousWrapper(wrapper); paddlePrevios.simulate('keydown', { key: 'Enter' }); expect(document.activeElement).toEqual(paddleNext.getDOMNode()); removeTestContainer(); }); it('previous should be focused on first slide transition if pagination and not circular', () => { const { testContainer, removeTestContainer } = createTestContainer(); const wrapper = renderCarousel({ defaultActiveIndex: 2 }, testContainer); const paddleNext = getPaddleNextWrapper(wrapper); const paddlePrevios = getPaddlePreviousWrapper(wrapper); paddleNext.simulate('keydown', { key: 'Enter' }); expect(document.activeElement).toEqual(paddlePrevios.getDOMNode()); removeTestContainer(); }); }); describe('navigation', () => { const navigation = { items: items.map(item => ({ key: item.key, icon: { name: 'icon-circle' } })), }; jest.useFakeTimers(); afterEach(() => { jest.runAllTimers(); }); it('should not show pagination if navigation prop is passed', () => { const wrapper = renderCarousel({ navigation }); const navigationWrapper = getNavigationNavigationWrapper(wrapper); const paginationWrapper = getPaginationWrapper(wrapper); expect(paginationWrapper.exists()).toBe(false); expect(navigationWrapper.exists()).toBe(true); expect(navigationWrapper.getDOMNode().children.length).toBe(4); }); it('should show pagination if navigation prop is not passed', () => { const wrapper = renderCarousel(); const navigationWrapper = getNavigationNavigationWrapper(wrapper); const paginationWrapper = getPaginationWrapper(wrapper); expect(paginationWrapper.exists()).toBe(true); expect(navigationWrapper.exists()).toBe(false); }); it('should show and focus the appropriate slide when clicked', () => { const { testContainer, removeTestContainer } = createTestContainer(); const wrapper = renderCarousel({ navigation }, testContainer); const secondNavigationItemWrapper = getNavigationNavigationItemAtIndexWrapper(wrapper, 1); secondNavigationItemWrapper.simulate('click'); jest.runAllTimers(); expect(document.activeElement.firstElementChild.innerHTML).toEqual('item2'); removeTestContainer(); }); it('should show no pagination if getItemPositionText is not passed', () => { const wrapper = renderCarousel({ getItemPositionText: undefined }); const paginationWrapper = getPaginationWrapper(wrapper); expect(paginationWrapper.exists()).toBe(false); }); }); describe('animation', () => { const animationEnterFromPrev = 'animationEnterFromPrev'; const animationEnterFromNext = 'animationEnterFromNext'; const animationExitToPrev = 'animationExitToPrev'; const animationExitToNext = 'animationExitToNext'; it('should return animation for exiting left when item is not active', () => { expect( getAnimationName({ active: false, dir: 'start', animationEnterFromPrev, animationEnterFromNext, animationExitToPrev, animationExitToNext, }), ).toBe(animationExitToPrev); }); it('should return animation for exiting right when item is not active', () => { expect( getAnimationName({ active: false, dir: 'end', animationEnterFromPrev, animationEnterFromNext, animationExitToPrev, animationExitToNext, }), ).toBe(animationExitToNext); }); it('should return animation for enter from left when item is active', () => { expect( getAnimationName({ active: true, dir: 'end', animationEnterFromPrev, animationEnterFromNext, animationExitToPrev, animationExitToNext, }), ).toBe(animationEnterFromPrev); }); it('should return animation for enter from right when item is active', () => { expect( getAnimationName({ active: true, dir: 'start', animationEnterFromPrev, animationEnterFromNext, animationExitToPrev, animationExitToNext, }), ).toBe(animationEnterFromNext); }); }); describe('focus zone "visible" attribute', () => { it('should has data-is-visible=false when previous paddle is hidden', () => { const wrapper = renderCarousel({ defaultActiveIndex: 0 }); const paddlePrevios = getPaddlePreviousWrapper(wrapper).getDOMNode(); const paddleNext = getPaddleNextWrapper(wrapper).getDOMNode(); expect(paddlePrevios).toHaveAttribute('data-is-visible'); expect(paddlePrevios.getAttribute('data-is-visible')).toEqual('false'); expect(paddleNext).not.toHaveAttribute('data-is-visible'); }); it('should has data-is-visible=false when next paddle is hidden', () => { const wrapper = renderCarousel({ defaultActiveIndex: 3 }); const paddleNext = getPaddleNextWrapper(wrapper).getDOMNode(); const paddlePrevios = getPaddlePreviousWrapper(wrapper).getDOMNode(); expect(paddleNext).toHaveAttribute('data-is-visible'); expect(paddleNext.getAttribute('data-is-visible')).toEqual('false'); expect(paddlePrevios).not.toHaveAttribute('data-is-visible'); }); }); }); ```
/content/code_sandbox/packages/fluentui/react-northstar/test/specs/components/Carousel/Carousel-test.tsx
xml
2016-06-06T15:03:44
2024-08-16T18:49:29
fluentui
microsoft/fluentui
18,221
2,941
```xml // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import {assert} from 'chai'; import type * as puppeteer from 'puppeteer-core'; import {expectError} from '../../conductor/events.js'; import { $textContent, getBrowserAndPages, setDevToolsSettings, waitFor, waitForElementWithTextContent, } from '../../shared/helper.js'; import {describe} from '../../shared/mocha-extensions.js'; import { clickStartButton, getAuditsBreakdown, getServiceWorkerCount, interceptNextFileSave, navigateToLighthouseTab, registerServiceWorker, renderHtmlInIframe, selectCategories, selectDevice, setThrottlingMethod, setToolbarCheckboxWithText, waitForResult, } from '../helpers/lighthouse-helpers.js'; // This test will fail (by default) in headful mode, as the target page never gets painted. // To resolve this when debugging, just make sure the target page is visible during the lighthouse run. describe('Navigation', function() { // The tests in this suite are particularly slow if (this.timeout() !== 0) { this.timeout(60_000); } let consoleLog: string[] = []; const consoleListener = (e: puppeteer.ConsoleMessage) => { consoleLog.push(e.text()); }; beforeEach(async () => { // path_to_url expectError(/Request CacheStorage\.requestCacheNames failed/); // path_to_url expectError(/Protocol Error: the message with wrong session id/); expectError(/Protocol Error: the message with wrong session id/); expectError(/Protocol Error: the message with wrong session id/); expectError(/Protocol Error: the message with wrong session id/); expectError(/Protocol Error: the message with wrong session id/); consoleLog = []; const {frontend} = await getBrowserAndPages(); frontend.on('console', consoleListener); }); afterEach(async function() { const {frontend} = getBrowserAndPages(); frontend.off('console', consoleListener); if (this.currentTest?.isFailed()) { console.error(consoleLog.join('\n')); } }); it('successfully returns a Lighthouse report', async () => { await navigateToLighthouseTab('lighthouse/hello.html'); await registerServiceWorker(); await waitFor('.lighthouse-start-view'); // We don't call selectCategories explicitly, but it's implied we leave all the checkboxes checked let numNavigations = 0; const {target} = getBrowserAndPages(); target.on('framenavigated', () => { ++numNavigations; }); await clickStartButton(); const {lhr, artifacts, reportEl} = await waitForResult(); const receivedCategories = Array.from(Object.keys(lhr.categories)).sort(); const sentCategories = Array.from(lhr.configSettings.onlyCategories).sort(); assert.deepStrictEqual(receivedCategories, sentCategories); // 1 initial about:blank jump // 1 navigation for the actual page load // 2 navigations to go to chrome://terms and back testing bfcache // 1 refresh after auditing to reset state assert.strictEqual(numNavigations, 5); assert.strictEqual(lhr.lighthouseVersion, '12.2.0'); assert.match(lhr.finalUrl, /^https:\/\/localhost:[0-9]+\/test\/e2e\/resources\/lighthouse\/hello.html/); assert.strictEqual(lhr.configSettings.throttlingMethod, 'simulate'); assert.strictEqual(lhr.configSettings.disableStorageReset, false); assert.strictEqual(lhr.configSettings.formFactor, 'mobile'); assert.strictEqual(lhr.configSettings.throttling.rttMs, 150); assert.strictEqual(lhr.configSettings.screenEmulation.disabled, true); assert.include(lhr.configSettings.emulatedUserAgent, 'Mobile'); assert.include(lhr.environment.networkUserAgent, 'Mobile'); const trace = artifacts.Trace; assert.notOk( trace.traceEvents.some((e: Record<string, unknown>) => e.cat === 'disabled-by-default-v8.cpu_profiler'), 'Trace contained v8 profiler events', ); assert.deepStrictEqual(artifacts.ViewportDimensions, { innerHeight: 823, innerWidth: 412, outerHeight: 823, outerWidth: 412, devicePixelRatio: 1.75, }); const {auditResults, erroredAudits, failedAudits} = getAuditsBreakdown(lhr, ['max-potential-fid']); assert.strictEqual(auditResults.length, 155); assert.deepStrictEqual(erroredAudits, []); assert.deepStrictEqual(failedAudits.map(audit => audit.id), [ 'document-title', 'html-has-lang', 'render-blocking-resources', 'meta-description', ]); const viewTraceButton = await $textContent('View Trace', reportEl); assert.ok(!viewTraceButton); // Test view trace button behavior // For some reason the CDP click command doesn't work here even if the tools menu is open. await reportEl.$eval( 'a[data-action="view-unthrottled-trace"]:not(.hidden)', saveJsonEl => (saveJsonEl as HTMLElement).click()); let selectedTab = await waitFor('.tabbed-pane-header-tab.selected[aria-label="Performance"]'); let selectedTabText = await selectedTab.evaluate(selectedTabEl => { return selectedTabEl.textContent; }); assert.strictEqual(selectedTabText, 'Performance'); await navigateToLighthouseTab(); // Test element link behavior const lcpElementAudit = await waitForElementWithTextContent('Largest Contentful Paint element', reportEl); await lcpElementAudit.click(); const lcpElementLink = await waitForElementWithTextContent('button'); await lcpElementLink.click(); selectedTab = await waitFor('.tabbed-pane-header-tab.selected[aria-label="Elements"]'); selectedTabText = await selectedTab.evaluate(selectedTabEl => { return selectedTabEl.textContent; }); assert.strictEqual(selectedTabText, 'Elements'); const waitForJson = await interceptNextFileSave(); // For some reason the CDP click command doesn't work here even if the tools menu is open. await reportEl.$eval('a[data-action="save-json"]:not(.hidden)', saveJsonEl => (saveJsonEl as HTMLElement).click()); const jsonContent = await waitForJson(); assert.strictEqual(jsonContent, JSON.stringify(lhr, null, 2)); const waitForHtml = await interceptNextFileSave(); // For some reason the CDP click command doesn't work here even if the tools menu is open. await reportEl.$eval('a[data-action="save-html"]:not(.hidden)', saveHtmlEl => (saveHtmlEl as HTMLElement).click()); const htmlContent = await waitForHtml(); const iframeHandle = await renderHtmlInIframe(htmlContent); const iframeAuditDivs = await iframeHandle.$$('.lh-audit'); const frontendAuditDivs = await reportEl.$$('.lh-audit'); assert.strictEqual(frontendAuditDivs.length, iframeAuditDivs.length); // Ensure service worker was cleared. assert.strictEqual(await getServiceWorkerCount(), 0); }); it('successfully returns a Lighthouse report with DevTools throttling', async () => { await navigateToLighthouseTab('lighthouse/hello.html'); await setThrottlingMethod('devtools'); await clickStartButton(); const {lhr, reportEl} = await waitForResult(); assert.strictEqual(lhr.configSettings.throttlingMethod, 'devtools'); // [crbug.com/1347220] DevTools throttling can force resources to load slow enough for these audits to fail sometimes. const flakyAudits = [ 'server-response-time', 'render-blocking-resources', 'max-potential-fid', ]; const {auditResults, erroredAudits, failedAudits} = getAuditsBreakdown(lhr, flakyAudits); assert.strictEqual(auditResults.length, 155); assert.deepStrictEqual(erroredAudits, []); assert.deepStrictEqual(failedAudits.map(audit => audit.id), [ 'document-title', 'html-has-lang', 'meta-description', ]); const viewTraceButton = await $textContent('View Trace', reportEl); assert.ok(viewTraceButton); }); it('successfully returns a Lighthouse report when settings changed', async () => { await setDevToolsSettings({language: 'es'}); await navigateToLighthouseTab('lighthouse/hello.html'); await registerServiceWorker(); await setToolbarCheckboxWithText(true, 'Habilitar muestreo de JS'); await setToolbarCheckboxWithText(false, 'Borrar almacenamiento'); await selectCategories(['performance', 'best-practices']); await selectDevice('desktop'); await clickStartButton(); const {reportEl, lhr, artifacts} = await waitForResult(); const trace = artifacts.Trace; assert.ok( trace.traceEvents.some((e: Record<string, unknown>) => e.cat === 'disabled-by-default-v8.cpu_profiler'), 'Trace did not contain any v8 profiler events', ); const {innerWidth, innerHeight, devicePixelRatio} = artifacts.ViewportDimensions; // TODO: Figure out why outerHeight can be different depending on OS assert.strictEqual(innerHeight, 720); assert.strictEqual(innerWidth, 1280); assert.strictEqual(devicePixelRatio, 1); const {erroredAudits} = getAuditsBreakdown(lhr); assert.deepStrictEqual(erroredAudits, []); assert.deepStrictEqual(Object.keys(lhr.categories), ['performance', 'best-practices']); assert.strictEqual(lhr.configSettings.disableStorageReset, true); assert.strictEqual(lhr.configSettings.formFactor, 'desktop'); assert.strictEqual(lhr.configSettings.throttling.rttMs, 40); assert.strictEqual(lhr.configSettings.screenEmulation.disabled, true); assert.notInclude(lhr.configSettings.emulatedUserAgent, 'Mobile'); assert.notInclude(lhr.environment.networkUserAgent, 'Mobile'); const viewTreemapButton = await $textContent('Ver grfico de rectngulos', reportEl); assert.ok(viewTreemapButton); const footerIssueText = await reportEl.$eval('.lh-footer__version_issue', footerIssueEl => { return footerIssueEl.textContent; }); assert.strictEqual(lhr.i18n.rendererFormattedStrings.footerIssue, 'Notificar un problema'); assert.strictEqual(footerIssueText, 'Notificar un problema'); // Ensure service worker is not cleared because we disable the storage reset. assert.strictEqual(await getServiceWorkerCount(), 1); }); }); ```
/content/code_sandbox/third-party/devtools-tests/e2e/lighthouse/navigation_test.ts
xml
2016-03-08T01:03:11
2024-08-16T10:56:56
lighthouse
GoogleChrome/lighthouse
28,125
2,323
```xml <?xml version="1.0" encoding="UTF-8"?> <definitions xmlns="path_to_url" xmlns:bpmndi="path_to_url" xmlns:omgdc="path_to_url" xmlns:omgdi="path_to_url" typeLanguage="path_to_url" expressionLanguage="path_to_url" targetNamespace="path_to_url"> <process id="a"> <startEvent id="start"/> <sequenceFlow id="flow1" sourceRef="start" targetRef="end"/> <endEvent id="end"/> </process> <bpmndi:BPMNDiagram id="BPMNDiagram_MyProcess"> <bpmndi:BPMNPlane bpmnElement="a" id="BPMNPlane_MyProcess"> <bpmndi:BPMNShape bpmnElement="start" id="BPMNShape_start"> <omgdc:Bounds height="35" width="35" x="130" y="180"></omgdc:Bounds> </bpmndi:BPMNShape> <bpmndi:BPMNShape bpmnElement="end" id="BPMNShape_end"> <omgdc:Bounds height="35" width="35" x="250" y="180"></omgdc:Bounds> </bpmndi:BPMNShape> <bpmndi:BPMNEdge bpmnElement="flow1" id="BPMNEdge_flow1"> <omgdi:waypoint x="165" y="197"></omgdi:waypoint> <omgdi:waypoint x="250" y="197"></omgdi:waypoint> </bpmndi:BPMNEdge> </bpmndi:BPMNPlane> </bpmndi:BPMNDiagram> </definitions> ```
/content/code_sandbox/modules/flowable5-spring-test/src/test/resources/org/activiti/spring/test/autodeployment/autodeploy.a.bpmn20.xml
xml
2016-10-13T07:21:43
2024-08-16T15:23:14
flowable-engine
flowable/flowable-engine
7,715
410
```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 {println} from './logger'; export class ExtensionConfig { /** Path to the repository that will be used. */ ossFuzzPepositoryWorkPath: string = '/tmp/oss-fuzz'; /** The directory where crash info is stored. */ crashesDirectory = process.env.HOME + '/oss-fuzz-crashes'; /** Number of seconds used for running quick test fuzzers */ numberOfSecondsForTestRuns = 20; async printConfig() { println('Config:'); println('- OSS-Fuzz repository path: ' + this.ossFuzzPepositoryWorkPath); println('- Crashes directory: ' + this.crashesDirectory); println('- numberOfSecondsForTestRuns: ' + this.numberOfSecondsForTestRuns); } } export const extensionConfig = new ExtensionConfig(); ```
/content/code_sandbox/tools/vscode-extension/src/config.ts
xml
2016-07-20T19:39:50
2024-08-16T10:54:09
oss-fuzz
google/oss-fuzz
10,251
213
```xml <linker> <assembly fullname="UnityEngine"> <type fullname="UnityEngine.Light" preserve="all" /> </assembly> </linker> ```
/content/code_sandbox/Assets/link.xml
xml
2016-01-11T07:40:06
2024-08-12T19:20:52
Klak
keijiro/Klak
1,869
32
```xml import { createContext, FC, useContext, useEffect } from 'react'; import { useDispatch, useSelector } from '@store'; import { FeatureFlag, getFeatureFlags, resetFeatureFlags as resetFeatureFlagsAction, setFeatureFlag as setFeatureFlagAction } from './slice'; export interface IFeatureFlagContext { featureFlags: ReturnType<typeof getFeatureFlags>; isFeatureActive(f: FeatureFlag): boolean; setFeatureFlag(key: FeatureFlag, value: boolean): void; resetFeatureFlags(): void; } export const FeatureFlagContext = createContext({} as IFeatureFlagContext); export const FeatureFlagProvider: FC = ({ children }) => { const dispatch = useDispatch(); const featureFlags = useSelector(getFeatureFlags); const setFeatureFlag: IFeatureFlagContext['setFeatureFlag'] = (key, value) => dispatch(setFeatureFlagAction({ feature: key, isActive: value })); const resetFeatureFlags: IFeatureFlagContext['resetFeatureFlags'] = () => dispatch(resetFeatureFlagsAction()); const isFeatureActive: IFeatureFlagContext['isFeatureActive'] = (f) => !!featureFlags[f]; useEffect(() => { // For use in E2E testing (window as CustomWindow).setFeatureFlag = setFeatureFlag; (window as CustomWindow).resetFeatureFlags = resetFeatureFlags; }); const stateContext: IFeatureFlagContext = { featureFlags, isFeatureActive, setFeatureFlag, resetFeatureFlags }; return <FeatureFlagContext.Provider value={stateContext}>{children}</FeatureFlagContext.Provider>; }; export function useFeatureFlags() { const context = useContext(FeatureFlagContext); if (context === undefined) { throw new Error('useFeatureFlags must be used with a Feature Flag Provider'); } return context; } ```
/content/code_sandbox/src/services/FeatureFlag/FeatureFlagProvider.tsx
xml
2016-12-04T01:35:27
2024-08-14T21:41:58
MyCrypto
MyCryptoHQ/MyCrypto
1,347
392
```xml import { NgZone } from '@angular/core'; export function checkVisibility(element: any, callback: any, zone: NgZone) { let timeout: any; function check() { // path_to_url const { offsetHeight, offsetWidth } = element; if (offsetHeight && offsetWidth) { clearTimeout(timeout); if (callback) zone.run(() => callback()); } else { clearTimeout(timeout); zone.runOutsideAngular(() => { timeout = setTimeout(() => check(), 50); }); } } check(); } ```
/content/code_sandbox/projects/swimlane/ngx-datatable/src/lib/utils/visibility-observer.ts
xml
2016-05-31T19:25:47
2024-08-06T15:02:47
ngx-datatable
swimlane/ngx-datatable
4,624
120
```xml import { OrganizationKeysRequest } from "./organization-keys.request"; export class OrganizationUpdateRequest { name: string; businessName: string; billingEmail: string; keys: OrganizationKeysRequest; } ```
/content/code_sandbox/libs/common/src/admin-console/models/request/organization-update.request.ts
xml
2016-03-09T23:14:01
2024-08-16T15:07:51
clients
bitwarden/clients
8,877
44
```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. */ --> <Keyboard xmlns:android="path_to_url" android:keyWidth="10%p" android:horizontalGap="0px" android:verticalGap="@dimen/key_bottom_gap" > <Row android:rowEdgeFlags="top" > <Key android:keyLabel="1" android:popupKeyboard="@xml/kbd_popup_template" android:popupCharacters="" android:keyEdgeFlags="left" /> <Key android:keyLabel="2" android:popupKeyboard="@xml/kbd_popup_template" android:popupCharacters="" /> <Key android:keyLabel="3" android:popupKeyboard="@xml/kbd_popup_template" android:popupCharacters="" /> <Key android:keyLabel="4" android:popupKeyboard="@xml/kbd_popup_template" android:popupCharacters="" /> <Key android:keyLabel="5" android:popupKeyboard="@xml/kbd_popup_template" android:popupCharacters="" /> <Key android:keyLabel="6" /> <Key android:keyLabel="7" android:popupKeyboard="@xml/kbd_popup_template" android:popupCharacters="" /> <Key android:keyLabel="8" /> <Key android:keyLabel="9" /> <Key android:keyLabel="0" android:popupKeyboard="@xml/kbd_popup_template" android:popupCharacters="" android:keyEdgeFlags="right" /> </Row> <Row> <Key android:keyLabel="\@" android:keyEdgeFlags="left" /> <Key android:keyLabel="\#" /> <Key android:keyLabel="$" android:popupKeyboard="@xml/kbd_popup_template" android:popupCharacters="" /> <Key android:keyLabel="%" android:popupKeyboard="@xml/kbd_popup_template" android:popupCharacters="" /> <Key android:keyLabel="&amp;" /> <Key android:keyLabel="*" android:popupKeyboard="@xml/kbd_popup_template" android:popupCharacters="" /> <Key android:keyLabel="-" android:popupKeyboard="@xml/kbd_popup_template" android:popupCharacters="_" /> <Key android:keyLabel="+" android:popupKeyboard="@xml/kbd_popup_template" android:popupCharacters="" /> <Key android:keyLabel="(" android:popupKeyboard="@xml/kbd_popup_template" android:popupCharacters="[{&lt;" /> <Key android:keyLabel=")" android:popupKeyboard="@xml/kbd_popup_template" android:popupCharacters="]}&gt;" android:keyEdgeFlags="right" /> </Row> <Row> <Key android:codes="@integer/key_shift" android:keyLabel="@string/label_alt_key" android:keyWidth="15%p" android:isModifier="true" android:isSticky="true" android:keyEdgeFlags="left" /> <Key android:keyLabel="!" android:popupKeyboard="@xml/kbd_popup_template" android:popupCharacters="" /> <Key android:keyLabel="&quot;" android:popupKeyboard="@xml/kbd_popup_template" android:popupCharacters="" /> <Key android:keyLabel="\'" android:popupKeyboard="@xml/kbd_popup_template" android:popupCharacters="" /> <Key android:keyLabel=":" /> <Key android:keyLabel=";" /> <Key android:keyLabel="/" /> <Key android:keyLabel="\?" android:popupKeyboard="@xml/kbd_popup_template" android:popupCharacters="" /> <Key android:codes="@integer/key_delete" android:keyIcon="@drawable/sym_keyboard_delete" android:iconPreview="@drawable/sym_keyboard_feedback_delete" android:keyWidth="15%p" android:isModifier="true" android:isRepeatable="true" android:keyEdgeFlags="right" /> </Row> <Row android:keyboardMode="@+id/mode_symbols" android:rowEdgeFlags="bottom" > <Key android:codes="@integer/key_symbol" android:keyLabel="@string/label_alpha_key" android:keyWidth="20%p" android:isModifier="true" android:keyEdgeFlags="left" /> <Key android:codes="@integer/key_f1" android:isModifier="true" /> <Key android:codes="@integer/key_space" android:keyIcon="@drawable/sym_keyboard_space" android:iconPreview="@drawable/sym_keyboard_feedback_space" android:keyWidth="40%p" android:isModifier="true" /> <Key android:keyLabel="." android:keyIcon="@drawable/hint_popup" android:popupKeyboard="@xml/popup_punctuation" android:isModifier="true" /> <Key android:codes="@integer/key_return" android:keyIcon="@drawable/sym_keyboard_return" android:iconPreview="@drawable/sym_keyboard_feedback_return" android:keyWidth="20%p" android:isModifier="true" android:keyEdgeFlags="right" /> </Row> <Row android:keyboardMode="@+id/mode_symbols_with_settings_key" android:rowEdgeFlags="bottom" > <Key android:codes="@integer/key_symbol" android:keyLabel="@string/label_alpha_key" android:keyWidth="15%p" android:isModifier="true" android:keyEdgeFlags="left" /> <Key android:codes="@integer/key_settings" android:keyIcon="@drawable/sym_keyboard_settings" android:iconPreview="@drawable/sym_keyboard_feedback_settings" android:isModifier="true" /> <Key android:codes="@integer/key_f1" android:isModifier="true" /> <Key android:codes="@integer/key_space" android:keyIcon="@drawable/sym_keyboard_space" android:iconPreview="@drawable/sym_keyboard_feedback_space" android:keyWidth="30%p" android:isModifier="true" /> <Key android:keyLabel="." android:keyIcon="@drawable/hint_popup" android:popupKeyboard="@xml/popup_punctuation" android:isModifier="true" /> <Key android:codes="@integer/key_return" android:keyIcon="@drawable/sym_keyboard_return" android:iconPreview="@drawable/sym_keyboard_feedback_return" android:keyWidth="25%p" android:isModifier="true" android:keyEdgeFlags="right" /> </Row> </Keyboard> ```
/content/code_sandbox/app/src/main/res/xml/kbd_symbols.xml
xml
2016-01-22T21:40:54
2024-08-16T11:54:30
hackerskeyboard
klausw/hackerskeyboard
1,807
1,514
```xml <?xml version="1.0" encoding="utf-8"?> <layout> <androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="path_to_url" xmlns:app="path_to_url" xmlns:tools="path_to_url" android:layout_width="match_parent" android:layout_height="match_parent" tools:context="com.eventyay.organizer.core.main.MainActivity"> <com.google.android.material.appbar.AppBarLayout android:id="@+id/main_app_bar" android:layout_width="match_parent" android:layout_height="wrap_content" android:theme="@style/AppTheme.AppBarOverlay"> <androidx.appcompat.widget.Toolbar android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" android:background="?attr/colorPrimary" app:popupTheme="@style/AppTheme.PopupOverlay" app:subtitleTextAppearance="@style/ToolbarSubtitleAppearance"/> </com.google.android.material.appbar.AppBarLayout> <FrameLayout android:id="@+id/fragment_container" android:layout_width="match_parent" android:layout_height="match_parent" app:layout_behavior="@string/appbar_scrolling_view_behavior" /> </androidx.coordinatorlayout.widget.CoordinatorLayout> </layout> ```
/content/code_sandbox/app/src/main/res/layout/main_app_bar.xml
xml
2016-08-13T08:08:39
2024-08-06T13:58:48
open-event-organizer-android
fossasia/open-event-organizer-android
1,783
286
```xml import { Component, Input, Output, EventEmitter, OnChanges, ViewChild, SimpleChanges, ChangeDetectionStrategy } from '@angular/core'; import { YAxisTicksComponent } from './y-axis-ticks.component'; import { Orientation } from '../types/orientation.enum'; import { ViewDimensions } from '../types/view-dimension.interface'; @Component({ selector: 'g[ngx-charts-y-axis]', template: ` <svg:g [attr.class]="yAxisClassName" [attr.transform]="transform"> <svg:g ngx-charts-y-axis-ticks *ngIf="yScale" [trimTicks]="trimTicks" [maxTickLength]="maxTickLength" [tickFormatting]="tickFormatting" [tickArguments]="tickArguments" [tickValues]="ticks" [tickStroke]="tickStroke" [scale]="yScale" [orient]="yOrient" [showGridLines]="showGridLines" [gridLineWidth]="dims.width" [referenceLines]="referenceLines" [showRefLines]="showRefLines" [showRefLabels]="showRefLabels" [height]="dims.height" [wrapTicks]="wrapTicks" (dimensionsChanged)="emitTicksWidth($event)" /> <svg:g ngx-charts-axis-label *ngIf="showLabel" [label]="labelText" [offset]="labelOffset" [orient]="yOrient" [height]="dims.height" [width]="dims.width" ></svg:g> </svg:g> `, changeDetection: ChangeDetectionStrategy.OnPush }) export class YAxisComponent implements OnChanges { @Input() yScale; @Input() dims: ViewDimensions; @Input() trimTicks: boolean; @Input() maxTickLength: number; @Input() tickFormatting; @Input() ticks: any[]; @Input() showGridLines: boolean = false; @Input() showLabel: boolean; @Input() labelText: string; @Input() yAxisTickCount: any; @Input() yOrient: Orientation = Orientation.Left; @Input() referenceLines; @Input() showRefLines: boolean; @Input() showRefLabels: boolean; @Input() yAxisOffset: number = 0; @Input() wrapTicks = false; @Output() dimensionsChanged = new EventEmitter(); yAxisClassName: string = 'y axis'; tickArguments: number[]; offset: number; transform: string; labelOffset: number = 15; fill: string = 'none'; stroke: string = '#CCC'; tickStroke: string = '#CCC'; strokeWidth: number = 1; padding: number = 5; @ViewChild(YAxisTicksComponent) ticksComponent: YAxisTicksComponent; ngOnChanges(changes: SimpleChanges): void { this.update(); } update(): void { this.offset = -(this.yAxisOffset + this.padding); if (this.yOrient === Orientation.Right) { this.labelOffset = 65; this.transform = `translate(${this.offset + this.dims.width} , 0)`; } else { this.transform = `translate(${this.offset} , 0)`; } if (this.yAxisTickCount !== undefined) { this.tickArguments = [this.yAxisTickCount]; } } emitTicksWidth({ width }): void { if (width !== this.labelOffset && this.yOrient === Orientation.Right) { this.labelOffset = width + this.labelOffset; setTimeout(() => { this.dimensionsChanged.emit({ width }); }, 0); } else if (width !== this.labelOffset) { this.labelOffset = width; setTimeout(() => { this.dimensionsChanged.emit({ width }); }, 0); } } } ```
/content/code_sandbox/projects/swimlane/ngx-charts/src/lib/common/axes/y-axis.component.ts
xml
2016-07-22T15:58:41
2024-08-02T15:56:24
ngx-charts
swimlane/ngx-charts
4,284
831
```xml import { Column, Entity, PrimaryColumn } from "../../../../src" import { Order } from "./order" @Entity({ name: "order_test" }) export class OrderTestEntity { @PrimaryColumn() id: number @Column({ type: "enum", enum: Order, default: Order.FIRST }) order: Order @Column({ type: "enum", enum: Order, default: [Order.FIRST], array: true }) orders: Order[] } ```
/content/code_sandbox/test/github-issues/7651/entity/order-test.entity.ts
xml
2016-02-29T07:41:14
2024-08-16T18:28:52
typeorm
typeorm/typeorm
33,875
101
```xml /* * Squidex Headless CMS * * @license */ import { AsyncPipe, SlicePipe } from '@angular/common'; import { ChangeDetectionStrategy, Component } from '@angular/core'; import { StringColorPipe, TooltipDirective } from '@app/framework'; import { CollaborationService } from '@app/shared/internal'; import { UserPicturePipe } from './pipes'; @Component({ standalone: true, selector: 'sqx-watching-users', styleUrls: ['./watching-users.component.scss'], templateUrl: './watching-users.component.html', changeDetection: ChangeDetectionStrategy.OnPush, imports: [ AsyncPipe, SlicePipe, StringColorPipe, TooltipDirective, UserPicturePipe, ], }) export class WatchingUsersComponent { constructor( public readonly collaboration: CollaborationService, ) { } } ```
/content/code_sandbox/frontend/src/app/shared/components/watching-users.component.ts
xml
2016-08-29T05:53:40
2024-08-16T17:39:38
squidex
Squidex/squidex
2,222
176
```xml /** * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import type {ReactNode} from 'react'; import {T} from '../i18n'; import {Button} from 'isl-components/Button'; import {Icon} from 'isl-components/Icon'; import {useLayoutEffect, useState, useRef} from 'react'; import './SeeMoreContainer.css'; const MAX_NON_EXPANDBLE_HEIGHT_PX = 375; export function SeeMoreContainer({ children, maxHeight = MAX_NON_EXPANDBLE_HEIGHT_PX, className, }: { children: ReactNode; maxHeight?: number; className?: string; }) { const ref = useRef<null | HTMLDivElement>(null); const [shouldShowExpandButton, setShouldShowExpandbutton] = useState(false); const [isExpanded, setIsExpanded] = useState(false); useLayoutEffect(() => { const element = ref.current; if (element != null && element.scrollHeight > maxHeight) { shouldShowExpandButton === false && setShouldShowExpandbutton(true); } else { shouldShowExpandButton === true && setShouldShowExpandbutton(false); } // Weird: we pass children to trick it to rerun this effect when the selected commit changes // We could also do this by passing a new key to <SeeMoreContainer> in the caller }, [ref, shouldShowExpandButton, children, maxHeight]); return ( <div className={'see-more-container ' + (className ?? '')}> <div className={`see-more-container-${isExpanded ? 'expanded' : 'collapsed'}`} ref={ref} style={{maxHeight: isExpanded ? undefined : maxHeight}}> {children} </div> {shouldShowExpandButton ? ( <div className={`see-${isExpanded ? 'less' : 'more'}-button`}> <Button icon onClick={() => setIsExpanded(val => !val)}> <Icon icon={isExpanded ? 'fold-up' : 'fold-down'} slot="start" /> {isExpanded ? <T>See less</T> : <T>See more</T>} </Button> </div> ) : null} </div> ); } ```
/content/code_sandbox/addons/isl/src/CommitInfoView/SeeMoreContainer.tsx
xml
2016-05-05T16:53:47
2024-08-16T19:12:02
sapling
facebook/sapling
5,987
488
```xml import { useEffect, useMemo, useRef, useState } from 'react'; import { c, msgid } from 'ttag'; import { Button } from '@proton/atoms'; import { Icon, Tooltip } from '@proton/components'; import clsx from '@proton/utils/clsx'; import { calculateProgress, isTransferActive, isTransferCanceled, isTransferDone, isTransferError, isTransferManuallyPaused, isTransferSkipped, } from '../../utils/transfer'; import type { Download, TransfersStats, Upload } from './transfer'; interface Props { downloads: Download[]; uploads: Upload[]; stats: TransfersStats; minimized: boolean; onToggleMinimize: () => void; onClose: () => void; } const Header = ({ downloads, uploads, stats, onClose, onToggleMinimize, minimized = false }: Props) => { const [uploadsInSession, setUploadsInSession] = useState<Upload[]>([]); const [downloadsInSession, setDownloadsInSession] = useState<Download[]>([]); const minimizeRef = useRef<HTMLButtonElement>(null); const transfers = useMemo(() => [...downloads, ...uploads], [uploads, downloads]); const activeUploads = useMemo(() => uploads.filter(isTransferActive), [uploads]); const activeDownloads = useMemo(() => downloads.filter(isTransferActive), [downloads]); const doneUploads = useMemo(() => uploads.filter(isTransferDone), [uploads]); const doneDownloads = useMemo(() => downloads.filter(isTransferDone), [downloads]); const pausedTransfers = useMemo(() => transfers.filter(isTransferManuallyPaused), [transfers]); const failedTransfers = useMemo(() => transfers.filter(isTransferError), [transfers]); const canceledTransfers = useMemo(() => transfers.filter(isTransferCanceled), [transfers]); const skippedTransfers = useMemo(() => transfers.filter(isTransferSkipped), [transfers]); const activeUploadsCount = activeUploads.length; const activeDownloadsCount = activeDownloads.length; useEffect(() => { if (activeUploadsCount) { setUploadsInSession((uploadsInSession) => [ ...doneUploads.filter((done) => uploadsInSession.some(({ id }) => id === done.id)), ...activeUploads, ]); } else { setUploadsInSession([]); } }, [activeUploads, doneUploads, activeUploadsCount]); useEffect(() => { if (activeDownloadsCount) { setDownloadsInSession((downloadsInSession) => [ ...doneDownloads.filter((done) => downloadsInSession.some(({ id }) => id === done.id)), ...activeDownloads, ]); } else { setDownloadsInSession([]); } }, [activeDownloads, activeDownloadsCount]); const getHeadingText = () => { const headingElements: string[] = []; const activeCount = activeUploadsCount + activeDownloadsCount; const doneUploadsCount = doneUploads.length; const doneDownloadsCount = doneDownloads.length; const doneCount = doneUploadsCount + doneDownloadsCount; const errorCount = failedTransfers.length; const canceledCount = canceledTransfers.length; const skippedCount = skippedTransfers.length; const pausedCount = pausedTransfers.length; if (!activeCount) { if (doneUploadsCount && doneDownloadsCount) { headingElements.push( c('Info').ngettext(msgid`${doneCount} finished`, `${doneCount} finished`, doneCount) ); } else { if (doneUploadsCount) { headingElements.push( c('Info').ngettext( msgid`${doneUploadsCount} uploaded`, `${doneUploadsCount} uploaded`, doneUploadsCount ) ); } if (doneDownloadsCount) { headingElements.push( c('Info').ngettext( msgid`${doneDownloadsCount} downloaded`, `${doneDownloadsCount} downloaded`, doneDownloadsCount ) ); } } } if (activeUploadsCount) { const uploadProgress = calculateProgress(stats, uploadsInSession); headingElements.push( c('Info').ngettext( msgid`${activeUploadsCount} uploading (${uploadProgress}%)`, `${activeUploadsCount} uploading (${uploadProgress}%)`, activeUploadsCount ) ); } if (activeDownloadsCount) { if (downloadsInSession.some(({ meta: { size } }) => size === undefined)) { headingElements.push( c('Info').ngettext( msgid`${activeDownloadsCount} downloading`, `${activeDownloadsCount} downloading`, activeDownloadsCount ) ); } else { const downloadProgress = calculateProgress(stats, downloadsInSession); headingElements.push( c('Info').ngettext( msgid`${activeDownloadsCount} downloading (${downloadProgress}%)`, `${activeDownloadsCount} downloading (${downloadProgress}%)`, activeDownloadsCount ) ); } } if (pausedCount) { headingElements.push( c('Info').ngettext(msgid`${pausedCount} paused`, `${pausedCount} paused`, pausedCount) ); } if (canceledCount) { headingElements.push( c('Info').ngettext(msgid`${canceledCount} canceled`, `${canceledCount} canceled`, canceledCount) ); } if (skippedCount) { headingElements.push( // translator: Shown in the transfer manager header - ex. "3 skipped" c('Info').ngettext(msgid`${skippedCount} skipped`, `${skippedCount} skipped`, skippedCount) ); } if (errorCount) { headingElements.push(c('Info').ngettext(msgid`${errorCount} failed`, `${errorCount} failed`, errorCount)); } return headingElements.join(', '); }; const minMaxTitle = minimized ? c('Action').t`Maximize transfers` : c('Action').t`Minimize transfers`; const closeTitle = c('Action').t`Close transfers`; return ( <div className="transfers-manager-heading ui-prominent flex items-center flex-nowrap px-2"> <div role="presentation" className="flex-1 p-2" aria-atomic="true" aria-live="polite" data-testid="drive-transfers-manager:header" onClick={minimized ? onToggleMinimize : undefined} > {getHeadingText()} </div> <Tooltip title={minMaxTitle}> <Button icon ref={minimizeRef} type="button" shape="ghost" onClick={() => { onToggleMinimize(); minimizeRef.current?.blur(); }} aria-expanded={!minimized} aria-controls="transfer-manager" > <Icon className={clsx(['m-auto', minimized && 'rotateX-180'])} name="low-dash" /> <span className="sr-only">{minMaxTitle}</span> </Button> </Tooltip> <Tooltip title={closeTitle}> <Button icon type="button" shape="ghost" data-testid="drive-transfers-manager:close" onClick={onClose}> <Icon className="m-auto" name="cross" alt={closeTitle} /> </Button> </Tooltip> </div> ); }; export default Header; ```
/content/code_sandbox/applications/drive/src/app/components/TransferManager/Header.tsx
xml
2016-06-08T11:16:51
2024-08-16T14:14:27
WebClients
ProtonMail/WebClients
4,300
1,590
```xml export const postgres: Record<string, string> = { control: `import { MigrationInterface, QueryRunner } from "typeorm"; export class TestMigration1610975184784 implements MigrationInterface { name = 'TestMigration1610975184784' public async up(queryRunner: QueryRunner): Promise<void> { await queryRunner.query(\`CREATE TABLE "post" ("id" SERIAL NOT NULL, "title" character varying NOT NULL, "createdAt" TIMESTAMP NOT NULL DEFAULT now(), CONSTRAINT "PK_be5fda3aac270b134ff9c21cdee" PRIMARY KEY ("id"))\`); } public async down(queryRunner: QueryRunner): Promise<void> { await queryRunner.query(\`DROP TABLE "post"\`); } }`, javascript: `const { MigrationInterface, QueryRunner } = require("typeorm"); module.exports = class TestMigration1610975184784 { name = 'TestMigration1610975184784' async up(queryRunner) { await queryRunner.query(\`CREATE TABLE "post" ("id" SERIAL NOT NULL, "title" character varying NOT NULL, "createdAt" TIMESTAMP NOT NULL DEFAULT now(), CONSTRAINT "PK_be5fda3aac270b134ff9c21cdee" PRIMARY KEY ("id"))\`); } async down(queryRunner) { await queryRunner.query(\`DROP TABLE "post"\`); } }`, timestamp: `import { MigrationInterface, QueryRunner } from "typeorm"; export class TestMigration1641163894670 implements MigrationInterface { name = 'TestMigration1641163894670' public async up(queryRunner: QueryRunner): Promise<void> { await queryRunner.query(\`CREATE TABLE "post" ("id" SERIAL NOT NULL, "title" character varying NOT NULL, "createdAt" TIMESTAMP NOT NULL DEFAULT now(), CONSTRAINT "PK_be5fda3aac270b134ff9c21cdee" PRIMARY KEY ("id"))\`); } public async down(queryRunner: QueryRunner): Promise<void> { await queryRunner.query(\`DROP TABLE "post"\`); } }`, } ```
/content/code_sandbox/test/functional/commands/templates/generate/postgres.ts
xml
2016-02-29T07:41:14
2024-08-16T18:28:52
typeorm
typeorm/typeorm
33,875
446
```xml /* * This software is released under MIT license. * The full license information can be found in LICENSE in the root directory of this project. */ import { renderIcon } from '../icon.renderer.js'; import { IconShapeTuple } from '../interfaces/icon.interfaces.js'; const icon = { outline: '<path d="M30.4,17.6c-1.8-1.9-4.2-3.2-6.7-3.7c-1.1-0.3-2.2-0.5-3.3-0.6c2.8-3.3,2.3-8.3-1-11.1s-8.3-2.3-11.1,1s-2.3,8.3,1,11.1c0.6,0.5,1.2,0.9,1.8,1.1v2.2l-1.6-1.5c-1.4-1.4-3.7-1.4-5.2,0c-1.4,1.4-1.5,3.6-0.1,5l4.6,5.4c0.2,1.4,0.7,2.7,1.4,3.9c0.5,0.9,1.2,1.8,1.9,2.5v1.9c0,0.6,0.4,1,1,1h13.6c0.5,0,1-0.5,1-1v-2.6c1.9-2.3,2.9-5.2,2.9-8.1v-5.8C30.7,17.9,30.6,17.7,30.4,17.6z M8.4,8.2c0-3.3,2.7-5.9,6-5.8c3.3,0,5.9,2.7,5.8,6c0,1.8-0.8,3.4-2.2,4.5V7.9c-0.1-1.8-1.6-3.2-3.4-3.2c-1.8-0.1-3.4,1.4-3.4,3.2v5.2C9.5,12.1,8.5,10.2,8.4,8.2L8.4,8.2z M28.7,24c0.1,2.6-0.8,5.1-2.5,7.1c-0.2,0.2-0.4,0.4-0.4,0.7v2.1H14.2v-1.4c0-0.3-0.2-0.6-0.4-0.8c-0.7-0.6-1.3-1.3-1.8-2.2c-0.6-1-1-2.2-1.2-3.4c0-0.2-0.1-0.4-0.2-0.6l-4.8-5.7c-0.3-0.3-0.5-0.7-0.5-1.2c0-0.4,0.2-0.9,0.5-1.2c0.7-0.6,1.7-0.6,2.4,0l2.9,2.9v3l1.9-1V7.9c0.1-0.7,0.7-1.3,1.5-1.2c0.7,0,1.4,0.5,1.4,1.2v11.5l2,0.4v-4.6c0.1-0.1,0.2-0.1,0.3-0.2c0.7,0,1.4,0.1,2.1,0.2v5.1l1.6,0.3v-5.2l1.2,0.3c0.5,0.1,1,0.3,1.5,0.5v5l1.6,0.3v-4.6c0.9,0.4,1.7,1,2.4,1.7L28.7,24z"/>', }; export const cursorHandClickIconName = 'cursor-hand-click'; export const cursorHandClickIcon: IconShapeTuple = [cursorHandClickIconName, renderIcon(icon)]; ```
/content/code_sandbox/packages/core/src/icon/shapes/cursor-hand-click.ts
xml
2016-09-29T17:24:17
2024-08-11T17:06:15
clarity
vmware-archive/clarity
6,431
1,067
```xml export interface IListItem { Title?: string; Id: number; } ```
/content/code_sandbox/samples/sharepoint-crud/src/webparts/reactCrud/components/IListItem.ts
xml
2016-08-30T17:21:43
2024-08-16T18:41:32
sp-dev-fx-webparts
pnp/sp-dev-fx-webparts
2,027
18
```xml <?xml version="1.0" encoding="UTF-8"?> <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="12121" systemVersion="16G29" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" colorMatched="NO"> <dependencies> <development version="7000" identifier="xcode"/> <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12089"/> </dependencies> <objects> <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="FTRNetworkTestViewController"> <connections> <outlet property="requestCompletedLabel" destination="5ew-SP-2TH" id="yyD-1q-hkw"/> <outlet property="responseVerifiedLabel" destination="JrE-Fn-4nL" id="cKy-Ad-dag"/> <outlet property="retryIndicator" destination="nG6-bQ-LiZ" id="QCN-5e-7Mi"/> <outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/> </connections> </placeholder> <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/> <view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="i5M-Pr-FkT"> <rect key="frame" x="0.0" y="0.0" width="320" height="480"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <subviews> <label hidden="YES" opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Retry Detected" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="nG6-bQ-LiZ"> <rect key="frame" x="129.5" y="573" width="116" height="21"/> <fontDescription key="fontDescription" type="system" pointSize="17"/> <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/> <nil key="highlightedColor"/> </label> <label hidden="YES" opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Request completed" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="5ew-SP-2TH"> <rect key="frame" x="113" y="621" width="149" height="21"/> <fontDescription key="fontDescription" type="system" pointSize="17"/> <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/> <nil key="highlightedColor"/> <userDefinedRuntimeAttributes> <userDefinedRuntimeAttribute type="string" keyPath="accessibilityIdentifier" value="FTRRequestCompletedLabel"/> </userDefinedRuntimeAttributes> </label> <label hidden="YES" opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Response Verified" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="JrE-Fn-4nL"> <rect key="frame" x="118" y="537" width="139" height="21"/> <fontDescription key="fontDescription" type="system" pointSize="17"/> <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/> <nil key="highlightedColor"/> <userDefinedRuntimeAttributes> <userDefinedRuntimeAttribute type="string" keyPath="accessibilityIdentifier" value="FTRResponseVerifiedLabel"/> </userDefinedRuntimeAttributes> </label> <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="IY4-Z9-CL1"> <rect key="frame" x="123.5" y="123" width="128" height="30"/> <state key="normal" title="NSURLConnection"> <color key="titleShadowColor" red="0.5" green="0.5" blue="0.5" alpha="1" colorSpace="calibratedRGB"/> </state> <userDefinedRuntimeAttributes> <userDefinedRuntimeAttribute type="string" keyPath="accessibilityIdentifier" value="NSURLConnectionTest"/> </userDefinedRuntimeAttributes> <connections> <action selector="testNetworkClick:" destination="-1" eventType="touchUpInside" id="xep-rS-Xbd"/> </connections> </button> <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="DLm-KL-uJZ"> <rect key="frame" x="136" y="161" width="103" height="30"/> <state key="normal" title="NSURLSession"> <color key="titleShadowColor" red="0.5" green="0.5" blue="0.5" alpha="1" colorSpace="calibratedRGB"/> </state> <userDefinedRuntimeAttributes> <userDefinedRuntimeAttribute type="string" keyPath="accessibilityIdentifier" value="NSURLSessionTest"/> </userDefinedRuntimeAttributes> <connections> <action selector="userDidTapNSURLSessionTest:" destination="-1" eventType="touchUpInside" id="uY0-VC-Lgx"/> </connections> </button> <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="K1j-Ud-aT7"> <rect key="frame" x="93" y="199" width="189" height="30"/> <state key="normal" title="NSURLSession + Delegates"> <color key="titleShadowColor" red="0.5" green="0.5" blue="0.5" alpha="1" colorSpace="calibratedRGB"/> </state> <userDefinedRuntimeAttributes> <userDefinedRuntimeAttribute type="string" keyPath="accessibilityIdentifier" value="NSURLSessionDelegateTest"/> </userDefinedRuntimeAttributes> <connections> <action selector="userDidTapNSURLSessionDelegateTest:" destination="-1" eventType="touchUpInside" id="xkq-0o-fXe"/> </connections> </button> <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="RT5-ns-7Ck"> <rect key="frame" x="86" y="237" width="203" height="30"/> <state key="normal" title="NSURLSession + No Callback"> <color key="titleShadowColor" red="0.5" green="0.5" blue="0.5" alpha="1" colorSpace="calibratedRGB"/> </state> <userDefinedRuntimeAttributes> <userDefinedRuntimeAttribute type="string" keyPath="accessibilityIdentifier" value="NSURLSessionNoCallbackTest"/> </userDefinedRuntimeAttributes> <connections> <action selector="userDidTapNSURLSessionNoCallbackTest:" destination="-1" eventType="touchUpInside" id="l9e-BD-m7k"/> </connections> </button> </subviews> <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="calibratedRGB"/> <constraints> <constraint firstItem="RT5-ns-7Ck" firstAttribute="centerX" secondItem="i5M-Pr-FkT" secondAttribute="centerX" id="1Ai-zp-maS"/> <constraint firstItem="K1j-Ud-aT7" firstAttribute="top" secondItem="DLm-KL-uJZ" secondAttribute="bottom" constant="8" id="1Tp-vV-8PX"/> <constraint firstAttribute="bottom" secondItem="5ew-SP-2TH" secondAttribute="bottom" constant="25" id="1d5-Nx-YXb"/> <constraint firstItem="IY4-Z9-CL1" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="top" constant="123" id="8Co-mI-fmZ"/> <constraint firstItem="nG6-bQ-LiZ" firstAttribute="top" secondItem="JrE-Fn-4nL" secondAttribute="bottom" constant="15" id="Ahj-bh-fMV"/> <constraint firstAttribute="centerX" secondItem="5ew-SP-2TH" secondAttribute="centerX" id="IUr-p0-WPV"/> <constraint firstItem="RT5-ns-7Ck" firstAttribute="top" secondItem="K1j-Ud-aT7" secondAttribute="bottom" constant="8" id="Q6R-po-bdF"/> <constraint firstItem="5ew-SP-2TH" firstAttribute="top" secondItem="nG6-bQ-LiZ" secondAttribute="bottom" constant="27" id="fRg-ie-AON"/> <constraint firstAttribute="centerX" secondItem="JrE-Fn-4nL" secondAttribute="centerX" id="ft2-fA-F1V"/> <constraint firstItem="K1j-Ud-aT7" firstAttribute="centerX" secondItem="i5M-Pr-FkT" secondAttribute="centerX" id="g6a-oN-fNU"/> <constraint firstAttribute="centerX" secondItem="nG6-bQ-LiZ" secondAttribute="centerX" id="hLl-iO-q2F"/> <constraint firstAttribute="centerX" secondItem="IY4-Z9-CL1" secondAttribute="centerX" id="oFl-Fw-iVK"/> <constraint firstItem="DLm-KL-uJZ" firstAttribute="top" secondItem="IY4-Z9-CL1" secondAttribute="bottom" constant="8" id="rXD-a1-kjQ"/> <constraint firstAttribute="centerX" secondItem="DLm-KL-uJZ" secondAttribute="centerX" id="wHX-5C-XgP"/> </constraints> </view> </objects> <simulatedMetricsContainer key="defaultSimulatedMetrics"> <simulatedStatusBarMetrics key="statusBar"/> <simulatedOrientationMetrics key="orientation"/> <simulatedScreenMetrics key="destination"/> </simulatedMetricsContainer> </document> ```
/content/code_sandbox/Tests/FunctionalTests/TestRig/Sources/FTRNetworkTestViewController.xib
xml
2016-02-04T17:55:29
2024-08-08T03:33:02
EarlGrey
google/EarlGrey
5,612
2,570
```xml import { colors } from '../../styles'; import styled from 'styled-components'; import styledTS from 'styled-components-ts'; const RichEditorRoot = styledTS<{ bordered: boolean }>(styled.div)` font-size: 14px; position: relative; padding-top: 36px; border: ${props => props.bordered && `1px solid ${colors.borderDarker}`}; margin-top: ${props => props.bordered && '10px'}; img { max-width: 100%; } .RichEditor-editor { border-top: 1px solid ${colors.borderPrimary}; cursor: text; .public-DraftEditorPlaceholder-root { padding: 15px 20px; position: absolute; color: ${colors.colorCoreGray}; font-size: 13px; } .public-DraftEditorPlaceholder-inner { color: ${colors.colorCoreLightGray}; } blockquote { border-left: 5px solid #DEE4E7; color: #888; font-style: italic; padding: 10px 20px; } .public-DraftEditor-content { font-size: 13px; min-height: ${props => (props.bordered ? '180px' : '100px')}; padding: 15px 20px; overflow-y: auto; max-height: 60vh; a { text-decoration: underline; } } } `; const RichEditorControlsRoot = styledTS<{ isTopPopup: boolean }>(styled.div)` position: absolute; top: 0; right: 0; left: 0; padding: 0 7px; background: ${colors.colorWhite}; max-height: 36px; > div { box-shadow: none; background: none; border: 0; border-radius: 0; input { width: 100%; height: 36px; font-size: 14px; } button { color: ${colors.colorCoreGray}; height: 36px; width: 36px; padding: 0; background: none; font-size: 16px; font-weight: 500; vertical-align: bottom; border: none; border-radius: 0; transition: background 0.3s ease; &:hover { cursor: pointer; } svg { height: 36px; width: 18px; } } } select { background: none; border: none; height: 36px; outline: 0; color: ${colors.colorCoreGray}; position: absolute; top: 0; right: 10px; background: ${colors.colorWhite}; } .draftJsEmojiPlugin__emojiSelectPopover__1J1s0 { margin: 0; bottom: ${props => props.isTopPopup && '100%'}; border-color: ${colors.borderPrimary}; box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.1); h3 { background: #fafafa; margin: 3px 0 0 0; font-weight: 500; } > div { height: 160px; margin: 0; } } `; const Char = styledTS<{ count: number }>(styled.div)` color: ${props => props.count > 10 ? props.count < 30 && colors.colorCoreOrange : colors.colorCoreRed}; font-weight: bold; display:flex; justify-content:flex-end; padding-top:10px; padding-right:15px; font-size:12px; `; export { RichEditorRoot, RichEditorControlsRoot, Char }; ```
/content/code_sandbox/packages/erxes-ui/src/components/editor/styles.ts
xml
2016-11-11T06:54:50
2024-08-16T10:26:06
erxes
erxes/erxes
3,479
848
```xml import axios, { CancelToken, AxiosInstance } from 'axios'; import { showErrorNotification } from './notification-manager'; export class ApiRequest { axiosInstance: AxiosInstance; constructor(params) { this.axiosInstance = axios.create({ ...params, }); } async get<T, B>(path: string, query?: { params: B; cancelToken?: CancelToken }): Promise<T> { return this.axiosInstance .get<T>(path, query) .then((response): T => response.data) .catch((e) => { showErrorNotification({ message: e.message }); throw e; }); } async post<T, B>( path: string, body: B, disableNotifications = false, cancelToken?: CancelToken, ): Promise<T> { return this.axiosInstance .post<T>(path, body, { cancelToken }) .then((response): T => response.data) .catch((e) => { if (!disableNotifications && !axios.isCancel(e)) { showErrorNotification({ message: e.response.data?.message ?? 'Unknown error' }); } throw e; }); } async delete<T>(path: string): Promise<T> { return this.axiosInstance .delete<T>(path) .then((response): T => response.data) .catch((e) => { showErrorNotification({ message: e.message }); throw e; }); } async patch<T, B>(path: string, body: B): Promise<T> { return this.axiosInstance .patch<T>(path, body) .then((response): T => response.data) .catch((e) => { showErrorNotification({ message: e.message }); throw e; }); } } export const apiRequest = new ApiRequest({}); export const apiRequestQAN = new ApiRequest({ baseURL: '/v0/qan' }); export const apiRequestManagement = new ApiRequest({ baseURL: '/v1/management' }); export const apiRequestInventory = new ApiRequest({ baseURL: '/v1/inventory' }); export const apiRequestSettings = new ApiRequest({ baseURL: '/v1/Settings' }); ```
/content/code_sandbox/pmm-app/src/shared/components/helpers/api.ts
xml
2016-01-22T07:14:23
2024-08-13T13:01:59
grafana-dashboards
percona/grafana-dashboards
2,661
475
```xml "use client" import * as React from "react" import * as TooltipPrimitive from "@radix-ui/react-tooltip" import { cn } from "@/lib/utils" const TooltipProvider = TooltipPrimitive.Provider const Tooltip = TooltipPrimitive.Root const TooltipTrigger = TooltipPrimitive.Trigger const TooltipContent = React.forwardRef< React.ElementRef<typeof TooltipPrimitive.Content>, React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content> >(({ className, sideOffset = 4, ...props }, ref) => ( <TooltipPrimitive.Content ref={ref} sideOffset={sideOffset} className={cn( "bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 overflow-hidden rounded-md px-3 py-1.5 text-xs", className )} {...props} /> )) TooltipContent.displayName = TooltipPrimitive.Content.displayName export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider } ```
/content/code_sandbox/web/components/ui/tooltip.tsx
xml
2016-08-08T16:09:17
2024-08-16T16:23:04
learn-anything.xyz
learn-anything/learn-anything.xyz
15,943
275
```xml import { SharedModule } from '../../../app/shared.module'; import { CountdownPage } from './countdown'; import { NgModule } from '@angular/core'; import { IonicPageModule } from 'ionic-angular'; @NgModule({ declarations: [ CountdownPage, ], imports: [ IonicPageModule.forChild(CountdownPage), SharedModule, ], exports: [ CountdownPage ] }) export class CountdownPageModule { } ```
/content/code_sandbox/src/pages/miscellaneous/countdown/countdown.module.ts
xml
2016-11-04T05:48:23
2024-08-03T05:22:54
ionic3-components
yannbf/ionic3-components
1,679
88
```xml <baseviews:TracksViewBase x:Class="Dopamine.Views.FullPlayer.Collection.CollectionGenres" xmlns="path_to_url" xmlns:x="path_to_url" xmlns:dc="clr-namespace:Digimezzo.Foundation.WPF.Controls;assembly=Digimezzo.Foundation.WPF" xmlns:pc="clr-namespace:Dopamine.Controls" xmlns:baseviews="clr-namespace:Dopamine.Views.Common.Base" xmlns:prismMvvm="clr-namespace:Prism.Mvvm;assembly=Prism.Wpf" xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" prismMvvm:ViewModelLocator.AutoWireViewModel="True"> <i:Interaction.Triggers> <i:EventTrigger EventName="Loaded"> <i:InvokeCommandAction Command="{Binding LoadedCommand}" /> </i:EventTrigger> <i:EventTrigger EventName="Unloaded"> <i:InvokeCommandAction Command="{Binding UnloadedCommand}" /> </i:EventTrigger> </i:Interaction.Triggers> <baseviews:TracksViewBase.Resources> <Storyboard x:Key="ShowSemanticZoom"> <Storyboard> <DoubleAnimation Storyboard.TargetProperty="Opacity" BeginTime="0:0:0" From="0" To="1" Duration="0:0:0.25" /> <ThicknessAnimation Storyboard.TargetProperty="Margin" BeginTime="0:0:0" From="-50" To="0" Duration="0:0:0.15" /> </Storyboard> </Storyboard> <Storyboard x:Key="HideSemanticZoom"> <Storyboard> <DoubleAnimation Storyboard.TargetProperty="Opacity" BeginTime="0:0:0" From="1" To="0" Duration="0:0:0" /> <ThicknessAnimation Storyboard.TargetProperty="Margin" BeginTime="0:0:0" From="0" To="-50" Duration="0:0:0" /> </Storyboard> </Storyboard> </baseviews:TracksViewBase.Resources> <dc:MultiPanePanel ContentResizeDelay="25" LeftPaneWidthPercent="{Binding LeftPaneWidthPercent, Mode=TwoWay}" RightPaneWidthPercent="{Binding RightPaneWidthPercent, Mode=TwoWay}" LeftPaneMinimumWidth="250" MiddlePaneMinimumWidth="250" RightPaneMinimumWidth="250"> <dc:MultiPanePanel.LeftPaneContent> <Border Background="{DynamicResource Brush_PaneBackground}"> <DockPanel Margin="10,20,10,26"> <DockPanel DockPanel.Dock="Top" Margin="10,0,10,20"> <TextBlock Text="{Binding GenresCount}" FontSize="13" Foreground="{DynamicResource Brush_Accent}" DockPanel.Dock="Left"/> <Button x:Name="ShuffleAllButton" DockPanel.Dock="Right" Margin="0,1,0,0" FontSize="13" Style="{StaticResource TransparentButton}" VerticalContentAlignment="Center" ToolTip="{DynamicResource Language_Shuffle_All}" Command="{Binding DataContext.ShuffleAllCommand,RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}"> <TextBlock Text="&#xE8B1;" Style="{StaticResource SegoeAssets}" FontSize="16" Foreground="{DynamicResource Brush_SecondaryText}" /> </Button> <Button x:Name="GenresButton" Content="{DynamicResource Language_Genres}" Style="{StaticResource TransparentButton}" FontSize="13" Margin="10,0,0,0" Foreground="{DynamicResource Brush_PrimaryText}" Click="GenresButton_Click" ToolTip="{DynamicResource Language_Select_None}"> </Button> </DockPanel> <Grid> <Border Panel.ZIndex="0" Visibility="{Binding IsGenresZoomVisible,Converter={StaticResource InvertingBooleanToCollapsedConverter}}"> <dc:MultiSelectListBox x:Name="ListBoxGenres" VirtualizingStackPanel.IsVirtualizing="True" VirtualizingPanel.IsVirtualizingWhenGrouping="True" VirtualizingStackPanel.VirtualizationMode="Recycling" Style="{StaticResource ListBoxGenres}" ItemsSource="{Binding GenresCvs.View}" BorderThickness="0" MouseDoubleClick="ListBoxGenres_MouseDoubleClick" PreviewKeyDown="ListBoxGenres_PreviewKeyDown" SelectionMode="Extended"> <i:Interaction.Triggers> <i:EventTrigger EventName="SelectionChanged"> <i:InvokeCommandAction Command="{Binding SelectedGenresCommand}" CommandParameter="{Binding RelativeSource={RelativeSource AncestorType={x:Type ListBox}}, Path=SelectedItems}"/> </i:EventTrigger> </i:Interaction.Triggers> </dc:MultiSelectListBox> </Border> <Border Panel.ZIndex="1" Visibility="{Binding IsGenresZoomVisible,Converter={StaticResource BooleanToCollapsedConverter}}" MaxWidth="300" MaxHeight="600"> <Border Opacity="0" Panel.ZIndex="1" Background="#00000000" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"> <Border.Style> <Style> <Style.Triggers> <DataTrigger Binding="{Binding IsGenresZoomVisible}" Value="True"> <DataTrigger.EnterActions> <BeginStoryboard Storyboard ="{StaticResource ShowSemanticZoom}"/> </DataTrigger.EnterActions> <DataTrigger.ExitActions> <BeginStoryboard Storyboard ="{StaticResource HideSemanticZoom}"/> </DataTrigger.ExitActions> </DataTrigger> </Style.Triggers> </Style> </Border.Style> <ListBox HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Style="{StaticResource ListBoxSemanticZoom}" ItemsSource="{Binding GenresZoomSelectors}"/> </Border> </Border> </Grid> </DockPanel> </Border> </dc:MultiPanePanel.LeftPaneContent> <dc:MultiPanePanel.MiddlePaneContent> <DockPanel Margin="10,20,10,26"> <DockPanel DockPanel.Dock="Top" Margin="10,0,10,20"> <TextBlock Text="{Binding AlbumsCount}" FontSize="13" Foreground="{DynamicResource Brush_Accent}" DockPanel.Dock="Left"/> <Button DockPanel.Dock="Right" Content="{Binding AlbumOrderText}" Style="{StaticResource TransparentButton}" FontSize="13" Margin="10,0,0,0" Foreground="{DynamicResource Brush_SecondaryText}" Command="{Binding ToggleAlbumOrderCommand}" ToolTip="{DynamicResource Language_Toggle_Album_Order}"/> <Button x:Name="AlbumsButton" Content="{DynamicResource Language_Albums}" FontSize="13" Margin="10,0,0,0" Style="{StaticResource TransparentButton}" Foreground="{DynamicResource Brush_PrimaryText}" Click="AlbumsButton_Click" ToolTip="{DynamicResource Language_Select_None}"/> </DockPanel> <dc:MultiSelectListBox x:Name="ListBoxAlbums" Style="{StaticResource ListBoxAlbums}" ItemsSource="{Binding AlbumsCvs.View}" BorderThickness="0" MouseDoubleClick="ListBoxAlbums_MouseDoubleClick" PreviewKeyDown="ListBoxAlbums_PreviewKeyDown" SelectionMode="Extended" HorizontalAlignment="Left" VerticalAlignment="Top"> <i:Interaction.Triggers> <i:EventTrigger EventName="SelectionChanged"> <i:InvokeCommandAction Command="{Binding SelectedAlbumsCommand}" CommandParameter="{Binding RelativeSource={RelativeSource AncestorType={x:Type ListBox}}, Path=SelectedItems}"/> </i:EventTrigger> <i:EventTrigger EventName="PreviewMouseRightButtonDown"> <i:InvokeCommandAction Command="{Binding DelaySelectedAlbumsCommand}"/> </i:EventTrigger> </i:Interaction.Triggers> </dc:MultiSelectListBox> </DockPanel> </dc:MultiPanePanel.MiddlePaneContent> <dc:MultiPanePanel.RightPaneContent> <Border Background="{DynamicResource Brush_PaneBackground}"> <DockPanel Margin="10,20,10,26"> <DockPanel DockPanel.Dock="Top" Margin="10,0,10,20"> <TextBlock Text="{Binding TracksCount}" FontSize="13" Foreground="{DynamicResource Brush_Accent}" DockPanel.Dock="Left"/> <Button DockPanel.Dock="Right" Content="{Binding TrackOrderText}" Style="{StaticResource TransparentButton}" FontSize="13" Margin="10,0,0,0" Foreground="{DynamicResource Brush_SecondaryText}" Command="{Binding ToggleTrackOrderCommand}" ToolTip="{DynamicResource Language_Toggle_Track_Order}"/> <TextBlock Text="{DynamicResource Language_Songs}" FontSize="13" Margin="10,0,0,0" Foreground="{DynamicResource Brush_PrimaryText}" /> </DockPanel> <DockPanel> <pc:TotalsInformation DockPanel.Dock="Bottom" Margin="10,20,10,0" Foreground="{DynamicResource Brush_SecondaryText}" FontSize="13" TotalDurationInformation="{Binding TotalDurationInformation}" TotalSizeInformation="{Binding TotalSizeInformation}"/> <dc:MultiSelectListBox x:Name="ListBoxTracks" VirtualizingStackPanel.IsVirtualizing="True" VirtualizingPanel.IsVirtualizingWhenGrouping="True" VirtualizingStackPanel.VirtualizationMode="Recycling" Style="{StaticResource ListBoxTracks}" ItemsSource="{Binding TracksCvs.View}" MouseDoubleClick="ListBoxTracks_MouseDoubleClick" PreviewKeyDown="ListBoxTracks_PreviewKeyDown" KeyUp="ListBoxTracks_KeyUp" BorderThickness="0" SelectionMode="Extended"> <dc:MultiSelectListBox.InputBindings> <KeyBinding Key="Delete" Command="{Binding RemoveSelectedTracksCommand}" /> </dc:MultiSelectListBox.InputBindings> <dc:MultiSelectListBox.GroupStyle> <GroupStyle ContainerStyle="{StaticResource TracksHeader}" /> </dc:MultiSelectListBox.GroupStyle> <i:Interaction.Triggers> <i:EventTrigger EventName="SelectionChanged"> <i:InvokeCommandAction Command="{Binding SelectedTracksCommand}" CommandParameter="{Binding RelativeSource={RelativeSource AncestorType={x:Type ListBox}}, Path=SelectedItems}"/> </i:EventTrigger> </i:Interaction.Triggers> </dc:MultiSelectListBox> </DockPanel> </DockPanel> </Border> </dc:MultiPanePanel.RightPaneContent> </dc:MultiPanePanel> </baseviews:TracksViewBase> ```
/content/code_sandbox/Dopamine/Views/FullPlayer/Collection/CollectionGenres.xaml
xml
2016-07-13T21:34:42
2024-08-15T03:30:43
dopamine-windows
digimezzo/dopamine-windows
1,786
2,321
```xml import { describe, expect, it } from '@jest/globals'; import fetch from 'node-fetch'; import { ApolloServer } from '../..'; import { startStandaloneServer } from '../../standalone'; describe('Typings: TContext inference', () => { it('correctly infers BaseContext when no `context` function is provided', async () => { const server = new ApolloServer({ typeDefs: `type Query { foo: String}`, }); // HTTPApolloServer<BaseContext> await startStandaloneServer(server, { listen: { port: 0 } }); await server.stop(); }); // `context` function can provide a superset of the `TContext` inferred by or // provided to the ApolloServer instance it('infers BaseContext when no TContext is provided to ApolloServer, even if a `context` function is provided', async () => { const server = new ApolloServer({ typeDefs: `type Query { foo: String}`, }); // HTTPApolloServer<BaseContext> await startStandaloneServer(server, { async context() { return { foo: 'bar' }; }, listen: { port: 0 }, }); await server.stop(); }); it('correctly infers `MyContext` when generic and `context` function are both provided', async () => { interface MyContext { foo: string; } const server = new ApolloServer<MyContext>({ typeDefs: `type Query { foo: String}`, resolvers: { Query: { foo: (_, __, context) => { return context.foo; }, }, }, }); // HTTPApolloServer<MyContext> await startStandaloneServer(server, { async context() { return { foo: 'bar' }; }, listen: { port: 0 }, }); await server.stop(); }); it('errors when `MyContext` is provided without a `context` function', async () => { interface MyContext { foo: string; } const server = new ApolloServer<MyContext>({ typeDefs: `type Query { foo: String}`, resolvers: { Query: { foo: (_, __, context) => { return context.foo; }, }, }, }); // @ts-expect-error await startStandaloneServer(server, { listen: { port: 0 } }); await server.stop(); }); it('errors when `MyContext` is provided without a compatible `context` function', async () => { interface MyContext { foo: string; } const server = new ApolloServer<MyContext>({ typeDefs: `type Query { foo: String}`, resolvers: { Query: { foo: (_, __, context) => { return context.foo; }, }, }, }); // @ts-expect-error await startStandaloneServer(server, { async context() { return { notFoo: 'oops' }; }, listen: { port: 0 }, }); await server.stop(); }); }); describe('Configuration', () => { it('allows > 100KiB bodies to be sent (body-parser default)', async () => { const server = new ApolloServer({ typeDefs: `type Query { hello: String }`, resolvers: { Query: { hello: () => 'hello world!', }, }, }); const { url } = await startStandaloneServer(server, { listen: { port: 0 }, }); const excessivelyLargeBody = JSON.stringify({ query: `{hello}`, variables: { foo: 'a'.repeat(102400) }, }); // 100kib limit = 102400 bytes expect(Buffer.byteLength(excessivelyLargeBody)).toBeGreaterThan(102400); const result = await fetch(url, { method: 'POST', headers: { 'Content-Type': 'application/json', }, body: excessivelyLargeBody, }); const { data } = await result.json(); expect(data.hello).toEqual('hello world!'); await server.stop(); }); }); ```
/content/code_sandbox/packages/server/src/__tests__/standalone/standaloneSpecific.test.ts
xml
2016-04-21T09:26:01
2024-08-16T19:32:15
apollo-server
apollographql/apollo-server
13,742
902
```xml import * as React from 'react'; import { StoryWright } from 'storywright'; import { Meta } from '@storybook/react'; import { Checkbox } from '@fluentui/react-northstar'; import StoryWrightSteps from './commonStoryWrightSteps'; import CheckboxExampleToggle from '../../examples/components/Checkbox/Types/CheckboxExampleToggle.shorthand'; export default { component: Checkbox, title: 'Checkbox', decorators: [story => <StoryWright steps={StoryWrightSteps}>{story()}</StoryWright>], } as Meta<typeof Checkbox>; export { CheckboxExampleToggle }; ```
/content/code_sandbox/packages/fluentui/docs/src/vr-tests/Checkbox/CheckboxExampleToggle.stories.tsx
xml
2016-06-06T15:03:44
2024-08-16T18:49:29
fluentui
microsoft/fluentui
18,221
125
```xml import React from 'react'; import { BrowserRouter as Router } from 'react-router-dom'; import NotificationsRoutes from './routes'; const Routes = () => ( <Router> <NotificationsRoutes /> </Router> ); export default Routes; ```
/content/code_sandbox/packages/plugin-notifications-ui/src/generalRoutes.tsx
xml
2016-11-11T06:54:50
2024-08-16T10:26:06
erxes
erxes/erxes
3,479
50
```xml import pkg from 'rs-module-lexer'; import MagicString from 'magic-string'; import type { ImportSpecifier, ExportSpecifier } from 'rs-module-lexer'; const { parseAsync, parse } = pkg; interface TransformOptions { libraryName: string; style: ((name: string) => string) | Boolean; sourceMap?: Boolean; kebabCase?: Boolean; } export async function importStyle(code: string, id: string, options: TransformOptions): Promise<null | { code: string; map: ReturnType<MagicString['generateMap']>; }> { const { style, libraryName, sourceMap, kebabCase = true } = options; if (!style) { return null; } let imports: readonly ImportSpecifier[] = []; try { const { output } = await parseAsync({ input: [{ code, filename: id, }], }); imports = output[0].imports; } catch (e) { console.log(e); return null; } if (!imports.length) { return null; } let s: MagicString | undefined; const str = () => s || (s = new MagicString(code)); imports.forEach(({ n, se, ss }) => { if (n && n === libraryName) { const importStr = code.slice(ss, se); let styleStatements = []; // Get specifiers by export statement (es-module-lexer can analyze name exported). if (importStr) { const exportSource = importStr.replace('import ', 'export ').replace(/\s+as\s+\w+,?/g, ','); // Namespace export is not supported. if (exportSource.includes('*')) { return; } let exports: ExportSpecifier[] = []; try { const { output } = parse({ input: [{ // Use static filename to mark the source is written by js. filename: 'export.js', code: exportSource, }], }); exports = output[0].exports; } catch (e) { console.log(`error occur when analyze code: ${importStr}`); console.log(e); return; } exports.forEach(({ n }) => { const toKebabCase = (str: string) => str.replace(/^[A-Z]/, $1 => $1.toLowerCase()).replace(/([A-Z])/g, $1 => `-${$1.toLowerCase()}`); let importName = n; if (kebabCase) { importName = toKebabCase(importName); } const stylePath = typeof style === 'function' ? style(importName) : `${libraryName}/es/${importName}/style`; if (stylePath) { styleStatements.push(`import '${stylePath}';`); } }); } if (styleStatements.length > 0) { str().prependRight( se + 1, `\n${styleStatements.join( '\n', )}`, ); } } }); return { code: str().toString(), map: sourceMap ? str().generateMap({ hires: true }) : null, }; } export default function importStylePlugin(options: TransformOptions) { return { name: 'transform-import-style', // Add plugin as a post plugin, so we do not need to deal with ts language. enforce: 'post', transformInclude(id: string) { // Only transform source code. return id.match(/\.(js|jsx|ts|tsx)$/) && !id.match(/node_modules/); }, async transform(code: string, id: string, transformOption: { isServer: Boolean }) { if (transformOption.isServer || !code) { return null; } return await importStyle(code, id, options); }, }; } ```
/content/code_sandbox/packages/style-import/src/index.ts
xml
2016-11-03T06:59:15
2024-08-16T10:11:29
ice
alibaba/ice
17,815
829
```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>16G1114</string> <key>CFBundleDevelopmentRegion</key> <string>en</string> <key>CFBundleExecutable</key> <string>AppleALC</string> <key>CFBundleIdentifier</key> <string>as.vit9696.AppleALC</string> <key>CFBundleInfoDictionaryVersion</key> <string>6.0</string> <key>CFBundleName</key> <string>AppleALC</string> <key>CFBundlePackageType</key> <string>KEXT</string> <key>CFBundleShortVersionString</key> <string>1.2.2</string> <key>CFBundleSignature</key> <string>????</string> <key>CFBundleSupportedPlatforms</key> <array> <string>MacOSX</string> </array> <key>CFBundleVersion</key> <string>1.2.2</string> <key>DTCompiler</key> <string>com.apple.compilers.llvm.clang.1_0</string> <key>DTPlatformBuild</key> <string>9C40b</string> <key>DTPlatformVersion</key> <string>GM</string> <key>DTSDKBuild</key> <string>17C76</string> <key>DTSDKName</key> <string>macosx10.13</string> <key>DTXcode</key> <string>0920</string> <key>DTXcodeBuild</key> <string>9C40b</string> <key>IOKitPersonalities</key> <dict> <key>as.vit9696.AppleALC</key> <dict> <key>CFBundleIdentifier</key> <string>as.vit9696.AppleALC</string> <key>IOClass</key> <string>AppleALC</string> <key>IOMatchCategory</key> <string>AppleALC</string> <key>IOProviderClass</key> <string>IOResources</string> <key>IOResourceMatch</key> <string>IOKit</string> </dict> </dict> <key>OSBundleCompatibleVersion</key> <string>1.0</string> <key>OSBundleLibraries</key> <dict> <key>as.vit9696.Lilu</key> <string>1.2.0</string> <key>as.vit9696.PinConfigs</key> <string>1.0.0</string> <key>com.apple.kpi.bsd</key> <string>12.0.0</string> <key>com.apple.kpi.dsep</key> <string>12.0.0</string> <key>com.apple.kpi.iokit</key> <string>12.0.0</string> <key>com.apple.kpi.libkern</key> <string>12.0.0</string> <key>com.apple.kpi.mach</key> <string>12.0.0</string> <key>com.apple.kpi.unsupported</key> <string>12.0.0</string> </dict> <key>OSBundleRequired</key> <string>Root</string> </dict> </plist> ```
/content/code_sandbox/Clover-Configs/XiaoMi/i5-with-fingerprint/CLOVER/kexts/Other/AppleALC.kext/Contents/Info.plist
xml
2016-11-05T04:22:54
2024-08-12T19:25:53
Hackintosh-Installer-University
huangyz0918/Hackintosh-Installer-University
3,937
853
```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" translatable="false">CatchUp</string> <string name="retry">Ressayer</string> <string name="pref_clear_cache">Vider le cache</string> <string name="pref_clear_cache_summary">Vide le cache courant</string> <string name="about"> propos</string> <string name="licenses">Licences</string> <string name="changelog">Changelog</string> <string name="pref_reports">Statistiques et rapports de plantage</string> <string name="pref_reports_summary">Laissez moi vous aider ! Activer pour autoriser l\'envoi de statistiques et de rapports de plantage anonymes.</string> <string name="general">Gnral</string> <string name="prefs_theme">Thme</string> <string name="pref_smart_linking_title">Activer "Smart linking"</string> <string name="pref_smart_linking_summary">"Smart linking" permet d\'ouvrir les liens dans l\'application ddie si disponible, sinon dans un onglet personnalis Chrome ou dans un navigateur.</string> <string name="title_activity_settings">Paramtres</string> <string name="clear_cache_success">%s vid</string> <string name="about_description">Une application pour rester jour sur divers sujets.</string> <string name="about_version">Version %1s</string> <string name="about_by">Par</string> <string name="about_source_code">Code source</string> <string name="icon_attribution">Icne par Michael Cook</string> <string name="changelog_error">Impossible de charger le changelog.</string> <string name="licenses_error">Impossible de charger les licences open source.</string> <string name="settings_error_cleaning_cache">Une erreur est survenue lors du vidage du cache</string> <string name="settings_reset">Prendra effet lors du prochain redmarrage de l\'application</string> <string name="pref_force_dark_theme">Forcer le thme fonc.</string> <string name="pref_dark_theme_enabled">Le thme fonc est activ</string> <string name="pref_dark_theme_disabled">Le thme fonc est dsactiv, le thme clair est celui par dfaut.</string> <string name="pref_auto_set_theme">Thme automatique</string> <string name="pref_auto_set_theme_summary">Le thme sera dfini automatiquement en fonction de l\'heure de la journe (via DayNight).</string> </resources> ```
/content/code_sandbox/app-scaffold/src/main/res/values-fr/strings.xml
xml
2016-04-25T09:33:27
2024-08-16T02:22:21
CatchUp
ZacSweers/CatchUp
1,958
634
```xml export class Aluno { constructor( public id: number, public nome: string, public email: string ){} } ```
/content/code_sandbox/rotas/src/app/alunos/aluno.ts
xml
2016-07-02T18:58:48
2024-08-15T23:36:46
curso-angular
loiane/curso-angular
1,910
32
```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 { Complex128Array } from '@stdlib/types/array'; /** * Interface describing `zcopy`. */ interface Routine { /** * Copies values from one complex double-precision floating-point vector to another complex double-precision floating-point vector. * * @param N - number of indexed elements * @param x - input array * @param strideX - `x` stride length * @param y - output array * @param strideY - `y` stride length * @returns output array * * @example * var Complex128Array = require( '@stdlib/array/complex128' ); * var real = require( '@stdlib/complex/float64/real' ); * var imag = require( '@stdlib/complex/float64/imag' ); * * var x = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); * var y = new Complex128Array( [ 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] ); * * zcopy( x.length, x, 1, y, 1 ); * * var z = y.get( 0 ); * // returns <Complex128> * * var re = real( z ); * // returns 1.0 * * var im = imag( z ); * // returns 2.0 */ ( N: number, x: Complex128Array, strideX: number, y: Complex128Array, strideY: number ): Complex128Array; /** * Copies values from one complex double-precision floating-point vector to another complex double-precision floating-point vector using alternative indexing semantics. * * @param N - number of indexed elements * @param x - input array * @param strideX - `x` stride length * @param offsetX - starting index for `x` * @param y - output array * @param strideY - `y` stride length * @param offsetY - starting index for `y` * @returns output array * * @example * var Complex128Array = require( '@stdlib/array/complex128' ); * var real = require( '@stdlib/complex/float64/real' ); * var imag = require( '@stdlib/complex/float64/imag' ); * * var x = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); * var y = new Complex128Array( [ 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] ); * * zcopy.ndarray( x.length, x, 1, 0, y, 1, 0 ); * * var z = y.get( 0 ); * // returns <Complex128> * * var re = real( z ); * // returns 1.0 * * var im = imag( z ); * // returns 2.0 */ ndarray( N: number, x: Complex128Array, strideX: number, offsetX: number, y: Complex128Array, strideY: number, offsetY: number ): Complex128Array; } /** * Copies values from one complex double-precision floating-point vector to another complex double-precision floating-point vector. * * @param N - number of indexed elements * @param x - input array * @param strideX - `x` stride length * @param y - output array * @param strideY - `y` stride length * @returns output array * * @example * var Complex128Array = require( '@stdlib/array/complex128' ); * var real = require( '@stdlib/complex/float64/real' ); * var imag = require( '@stdlib/complex/float64/imag' ); * * var x = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); * var y = new Complex128Array( [ 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] ); * * zcopy( x.length, x, 1, y, 1 ); * * var z = y.get( 0 ); * // returns <Complex128> * * var re = real( z ); * // returns 1.0 * * var im = imag( z ); * // returns 2.0 * * @example * var Complex128Array = require( '@stdlib/array/complex128' ); * var real = require( '@stdlib/complex/float64/real' ); * var imag = require( '@stdlib/complex/float64/imag' ); * * var x = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); * var y = new Complex128Array( [ 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] ); * * zcopy.ndarray( x.length, x, 1, 0, y, 1, 0 ); * * var z = y.get( 0 ); * // returns <Complex128> * * var re = real( z ); * // returns 1.0 * * var im = imag( z ); * // returns 2.0 */ declare var zcopy: Routine; // EXPORTS // export = zcopy; ```
/content/code_sandbox/lib/node_modules/@stdlib/blas/base/zcopy/docs/types/index.d.ts
xml
2016-03-24T04:19:52
2024-08-16T09:03:19
stdlib
stdlib-js/stdlib
4,266
1,357
```xml import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { RouterTestingModule } from '@angular/router/testing'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { TestBed, async, ComponentFixture } from '@angular/core/testing'; import { MatDialogModule, MatTooltipModule, MatMenuModule, MatIconModule, MatGridListModule } from '@angular/material'; import { StoreModule } from '@ngrx/store'; import * as fromRoot from '../../reducers'; import { MediaWallMenuComponent } from './media-wall-menu.component'; describe('MediaWallMenuComponent', () => { let component: MediaWallMenuComponent; let fixture: ComponentFixture<MediaWallMenuComponent>; beforeEach(async(() => { TestBed.configureTestingModule({ imports: [ RouterTestingModule, BrowserAnimationsModule, MatDialogModule, MatMenuModule, MatIconModule, MatGridListModule, MatTooltipModule, StoreModule.forRoot(fromRoot.reducers), FormsModule, ReactiveFormsModule ], declarations: [ MediaWallMenuComponent ] }) .compileComponents(); })); beforeEach(() => { fixture = TestBed.createComponent(MediaWallMenuComponent); component = fixture.componentInstance; fixture.detectChanges(); }); it('should be created', () => { expect(component).toBeTruthy(); }); }); ```
/content/code_sandbox/src/app/media-wall/media-wall-menu/media-wall-menu.component.spec.ts
xml
2016-09-20T13:50:42
2024-08-06T13:58:18
loklak_search
fossasia/loklak_search
1,829
279
```xml import clsx from 'clsx'; import { Lightbulb, X } from 'lucide-react'; import { ReactNode } from 'react'; import { useStore } from 'zustand'; import { Button } from '@@/buttons'; import { insightStore } from './insights-store'; export type Props = { header?: string; content?: ReactNode; insightCloseId?: string; // set if you want to be able to close the box and not show it again type?: 'default' | 'slim'; className?: string; }; export function InsightsBox({ header, content, insightCloseId, type = 'default', className, }: Props) { // allow to close the box and not show it again in local storage with zustand const { addInsightIDClosed, isClosed } = useStore(insightStore); const isInsightClosed = isClosed(insightCloseId); if (isInsightClosed) { return null; } return ( <div className={clsx( 'relative flex w-full gap-1 rounded-lg bg-gray-modern-3 p-4 text-sm th-highcontrast:bg-legacy-grey-3 th-dark:bg-legacy-grey-3', type === 'slim' && 'p-2', className )} > <div className="mt-0.5 shrink-0"> <Lightbulb className="h-4 text-warning-7 th-highcontrast:text-warning-6 th-dark:text-warning-6" /> </div> <div> {header && ( <p className={clsx( // text-[0.9em] matches .form-horizontal .control-label font-size used in many labels in portainer 'align-middle text-[0.9em] font-medium', insightCloseId && 'pr-10', content ? 'mb-2' : 'mb-0' )} > {header} </p> )} {content && ( <div className={clsx('small', !header && insightCloseId && 'pr-6')}> {content} </div> )} </div> {insightCloseId && ( <Button icon={X} data-cy={`insight-close-${insightCloseId}`} className={clsx( 'absolute right-2 top-3 flex !text-gray-7 hover:!text-gray-8 th-highcontrast:!text-gray-6 th-highcontrast:hover:!text-gray-5 th-dark:!text-gray-6 th-dark:hover:!text-gray-5', type === 'slim' && insightCloseId && 'top-1' )} color="link" size="medium" onClick={() => addInsightIDClosed(insightCloseId)} /> )} </div> ); } ```
/content/code_sandbox/app/react/components/InsightsBox/InsightsBox.tsx
xml
2016-05-19T20:15:28
2024-08-16T19:15:14
portainer
portainer/portainer
30,083
623
```xml import { useEffect, useState } from 'react'; export function useDebouncedValue<T>(value: T, delay = 500): T { const [debouncedValue, setDebouncedValue] = useState<T>(value); useEffect(() => { const timer = setTimeout(() => setDebouncedValue(value), delay); return () => { clearTimeout(timer); }; }, [value, delay]); return debouncedValue; } ```
/content/code_sandbox/app/react/hooks/useDebouncedValue.ts
xml
2016-05-19T20:15:28
2024-08-16T19:15:14
portainer
portainer/portainer
30,083
96
```xml import { Chart } from '../../../src'; export function chartOnBrushFilter(context) { const { container, canvas } = context; const chart = new Chart({ container, canvas, }); chart.options({ type: 'point', data: { type: 'fetch', value: 'data/penguins.csv', }, encode: { color: 'species', x: 'culmen_length_mm', y: 'culmen_depth_mm', }, animate: false, interaction: { brushFilter: true }, }); chart.on('brush:filter', (event) => { console.log(event.data.selection); }); const finished = chart.render(); return { chart, finished }; } ```
/content/code_sandbox/__tests__/plots/api/chart-on-brush-filter.ts
xml
2016-05-26T09:21:04
2024-08-15T16:11:17
G2
antvis/G2
12,060
157
```xml import { Meta } from '@storybook/react'; import { SplitButton } from '@fluentui/react-northstar'; import { getThemeStoryVariant } from '../utilities'; import SplitButtonExampleSmallContainer from '../../examples/components/SplitButton/Visual/SplitButtonExampleSmallContainer'; export default { component: SplitButton, title: 'SplitButton', } as Meta<typeof SplitButton>; const SplitButtonExampleSmallContainerTeams = getThemeStoryVariant(SplitButtonExampleSmallContainer, 'teamsV2'); const SplitButtonExampleSmallContainerTeamsDark = getThemeStoryVariant(SplitButtonExampleSmallContainer, 'teamsDarkV2'); const SplitButtonExampleSmallContainerTeamsHighContrast = getThemeStoryVariant( SplitButtonExampleSmallContainer, 'teamsHighContrast', ); export { SplitButtonExampleSmallContainer, SplitButtonExampleSmallContainerTeams, SplitButtonExampleSmallContainerTeamsDark, SplitButtonExampleSmallContainerTeamsHighContrast, }; ```
/content/code_sandbox/packages/fluentui/docs/src/vr-tests/SplitButton/SplitButtonExampleSmallContainer.stories.tsx
xml
2016-06-06T15:03:44
2024-08-16T18:49:29
fluentui
microsoft/fluentui
18,221
200
```xml /** @jsx jsx */ import { Editor } from 'slate' import { jsx } from '../../../..' export const input = ( <editor> <block>one</block> <block>two</block> </editor> ) export const test = editor => { return Array.from(Editor.positions(editor, { reverse: true, at: [0, 0] })) } export const output = [ { path: [0, 0], offset: 3 }, { path: [0, 0], offset: 2 }, { path: [0, 0], offset: 1 }, { path: [0, 0], offset: 0 }, ] ```
/content/code_sandbox/packages/slate/test/interfaces/Editor/positions/path/block-reverse.tsx
xml
2016-06-18T01:52:42
2024-08-16T18:43:42
slate
ianstormtaylor/slate
29,492
149
```xml <Project> <Import Project="Sdk.targets" Sdk="Microsoft.NET.SDK.TestWorkload.Pack" Condition="'$(TargetPlatformIdentifier)'=='WorkloadTestPlatform'" /> <Import Project="Sdk.targets" Sdk="Microsoft.NET.SDK.MissingTestWorkload.Pack" Condition="'$(TargetPlatformIdentifier)'=='MissingWorkloadTestPlatform'" /> </Project> ```
/content/code_sandbox/test/TestAssets/TestWorkloads/manifests/Microsoft.NET.Sdk.TestWorkload/WorkloadManifest.targets
xml
2016-07-22T21:26:02
2024-08-16T17:23:58
sdk
dotnet/sdk
2,627
81
```xml export interface AccountTwoFactorLoginOptions { verificationCode: string; twoFactorIdentifier: string; username: string; trustThisDevice?: '1' | '0'; // 1 = sms verificationMethod?: string; } ```
/content/code_sandbox/src/types/account.two-factor-login.options.ts
xml
2016-06-09T12:14:48
2024-08-16T10:07:22
instagram-private-api
dilame/instagram-private-api
5,877
53
```xml import * as React from 'react'; import styles from './TaxonomyPickerSample.module.scss'; import { ITaxonomyPickerSampleProps } from './ITaxonomyPickerSampleProps'; import { escape } from '@microsoft/sp-lodash-subset'; export default class TaxonomyPickerSample extends React.Component<ITaxonomyPickerSampleProps, void> { public render(): React.ReactElement<ITaxonomyPickerSampleProps> { return ( <div className={styles.helloWorld}> <div className={styles.container}> <div className={`ms-Grid-row ms-bgColor-themeDark ms-fontColor-white ${styles.row}`}> <div className="ms-Grid-col ms-u-lg10 ms-u-xl8 ms-u-xlPush2 ms-u-lgPush1"> <span className="ms-font-xl ms-fontColor-white">Welcome to Taxonomy Picker demo webpart!</span> <p className="ms-font-l ms-fontColor-white">{escape(this.props.description)}</p> <p className="ms-font-l ms-fontColor-white"> <strong>Selected Languages: {this.props.pickerValue || 'none selected'}</strong> </p> <a href="path_to_url" className={styles.button}> <span className={styles.label}>Learn more</span> </a> </div> </div> </div> </div> ); } } ```
/content/code_sandbox/samples/react-taxonomypicker/src/webparts/taxonomyPickerSample/components/TaxonomyPickerSample.tsx
xml
2016-08-30T17:21:43
2024-08-16T18:41:32
sp-dev-fx-webparts
pnp/sp-dev-fx-webparts
2,027
294
```xml <?xml version="1.1" encoding="UTF-8" standalone="no"?> <databaseChangeLog xmlns="path_to_url" xmlns:xsi="path_to_url" xsi:schemaLocation="path_to_url path_to_url" logicalFilePath="migration/node-services.changelog-init.xml"> <changeSet author="R3.Corda" id="add_signatures_column" dbms="postgresql"> <addColumn tableName="node_transactions"> <column name="signatures" type="varbinary(33554432)"/> </addColumn> </changeSet> <changeSet author="R3.Corda" id="add_signatures_column" dbms="!postgresql"> <addColumn tableName="node_transactions"> <column name="signatures" type="blob"/> </addColumn> </changeSet> </databaseChangeLog> ```
/content/code_sandbox/node/src/main/resources/migration/node-core.changelog-v23.xml
xml
2016-10-06T08:46:29
2024-08-15T09:36:24
corda
corda/corda
3,974
179
```xml <Documentation> <Docs DocId="T:CoreImage.CIDetector"> <summary>Image analysis class for face detection.</summary> <remarks> <para> CIDetector is a general API to perform image analysis on an image, but as of iOS5 only face detection is supported. You initiate the face detection by calling the static method <format type="text/html"><a href="path_to_url" title="M:CoreImage.CIDetector.CreateFaceDetector(CoreImage.CIContext,bool)">M:CoreImage.CIDetector.CreateFaceDetector(CoreImage.CIContext,bool)</a></format> and then get the results by calling one of the FeaturesInImage overloads. </para> <example> <code lang="csharp lang-csharp"><![CDATA[ var imageFile = "photoFace2.jpg"; var image = new UIImage(imageFile); var context = new CIContext (); var detector = CIDetector.CreateFaceDetector (context, true); var ciImage = CIImage.FromCGImage (image.CGImage); var features = detector.GetFeatures (ciImage); Console.WriteLine ("Found " + features.Length + " faces (origin bottom-left)"); foreach (var feature in features){ var facefeature = (CIFaceFeature) feature; Console.WriteLine ("Left eye {0} {1}\n", facefeature.HasLeftEyePosition, facefeature.LeftEyePosition); Console.WriteLine ("Right eye {0} {1}\n", facefeature.HasRightEyePosition, facefeature.RightEyePosition); Console.WriteLine ("Mouth {0} {1}\n", facefeature.HasMouthPosition, facefeature.MouthPosition); } ]]></code> </example> <para>Instances of <see cref="T:CoreImage.CIDetector" /> are expensive to initialize, so application developers should prefer to re-use existing instances rather than frequently creating new ones.</para> </remarks> <related type="externalDocumentation" href="path_to_url">Apple documentation for <c>CIDetector</c></related> </Docs> </Documentation> ```
/content/code_sandbox/docs/api/CoreImage/CIDetector.xml
xml
2016-04-20T18:24:26
2024-08-16T13:29:19
xamarin-macios
xamarin/xamarin-macios
2,436
453
```xml <shapes name="mxgraph.mockup.misc"> <shape name="Critical Icon" h="32" w="32" aspect="1"> <foreground> <strokecolor color="#000000"/> <strokecolor color="#000000"/> <fillcolor color="#ff0000"/> <ellipse x="0" y="0" w="32" h="32"/> <fillstroke/> <strokecolor color="#ffffff"/> <strokewidth width="3"/> <fillcolor color="none"/> <path> <move x="8" y="24"/> <line x="24" y="8"/> </path> <stroke/> <path> <move x="8" y="8"/> <line x="24" y="24"/> </path> <stroke/> </foreground> </shape> <shape name="Cursor Arrow" h="29" w="18.5" aspect="1"> <foreground> <strokecolor color="#000000"/> <fillcolor color="#ffffff"/> <path> <move x="0" y="26"/> <line x="0" y="0"/> <line x="18.5" y="19"/> <line x="10" y="19"/> <line x="14.5" y="27.5"/> <line x="11.5" y="29"/> <line x="6.5" y="20.5"/> <close/> </path> <fillstroke/> </foreground> </shape> <shape name="Cursor Hand" h="33.25" w="23.89" aspect="1"> <foreground> <strokecolor color="#000000"/> <fillcolor color="#ffffff"/> <linejoin join="round"/> <path> <move x="7.39" y="33.25"/> <arc rx="20" ry="20" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="5.39" y="25.25"/> <arc rx="40" ry="40" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="0.39" y="17.25"/> <arc rx="2" ry="2" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="2.39" y="14.25"/> <arc rx="10" ry="10" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="5.89" y="17.75"/> <line x="5.89" y="2.25"/> <arc rx="2" ry="2" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="10.39" y="2.25"/> <line x="10.39" y="14.75"/> <line x="10.39" y="10.25"/> <arc rx="2.5" ry="2.5" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="14.89" y="10.25"/> <line x="14.89" y="14.75"/> <line x="14.89" y="11.25"/> <arc rx="2.5" ry="2.5" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="19.39" y="11.25"/> <line x="19.39" y="16.25"/> <line x="19.39" y="11.75"/> <arc rx="5" ry="4" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="23.89" y="15.25"/> <arc rx="50" ry="50" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="21.39" y="29.25"/> <line x="21.39" y="33.25"/> <close/> </path> <fillstroke/> </foreground> </shape> <shape name="Gear" h="38.8" w="39" aspect="1"> <foreground> <strokecolor color="#2c457e"/> <fillcolor color="#f2f2f2"/> <path> <move x="21" y="5.1"/> <line x="25" y="0"/> <line x="29.6" y="1.8"/> <line x="28.7" y="7.8"/> <line x="31.2" y="10.3"/> <line x="37" y="9.3"/> <line x="39" y="13.8"/> <line x="34.3" y="17.55"/> <line x="34.3" y="21.3"/> <line x="39" y="24.5"/> <line x="37.3" y="29.3"/> <line x="31.5" y="28.3"/> <line x="28.4" y="31"/> <line x="29.2" y="36.8"/> <line x="24.5" y="38.8"/> <line x="21.2" y="33.6"/> <line x="17.9" y="33.6"/> <line x="14.6" y="38.8"/> <line x="9.7" y="36.8"/> <line x="10.7" y="31"/> <line x="8.2" y="28.3"/> <line x="2.2" y="29.3"/> <line x="0" y="24.5"/> <line x="5" y="21.3"/> <line x="5" y="17.55"/> <line x="0" y="13.8"/> <line x="2.2" y="9.3"/> <line x="8.2" y="10.3"/> <line x="10.7" y="7.8"/> <line x="9.7" y="1.8"/> <line x="14.6" y="0"/> <line x="17.9" y="5.1"/> <close/> </path> <fillstroke/> <fillcolor color="#ffffff"/> <ellipse x="13.45" y="13.3" w="12" h="12"/> <fillstroke/> </foreground> </shape> <shape name="Help Icon" h="32" w="32" aspect="1"> <foreground> <strokecolor color="#000000"/> <strokecolor color="#666666"/> <fillcolor color="#cccccc"/> <ellipse x="0" y="0" w="32" h="32"/> <fillstroke/> <fontcolor color="#2c457e"/> <fontsize size="20"/> <fontstyle style="1"/> <text str="?" x="16" y="16" align="center" valign="middle"/> </foreground> </shape> <shape name="Horizontal Splitter" h="24" w="250" aspect="1"> <foreground> <strokecolor color="none"/> <fillcolor color="#fafafa"/> <rect x="0" y="0" w="250" h="24"/> <fillstroke/> <strokecolor color="#2c457e"/> <fillcolor color="none"/> <path> <move x="0" y="0"/> <line x="250" y="0"/> </path> <stroke/> <path> <move x="0" y="24"/> <line x="250" y="24"/> </path> <stroke/> <strokecolor color="#000000"/> <fillcolor color="#2c457e"/> <roundrect x="95" y="5" w="25" h="14" arcsize="16.715"/> <fillstroke/> <roundrect x="130" y="5" w="25" h="14" arcsize="16.715"/> <fillstroke/> <strokecolor color="#ffffff"/> <fillcolor color="#ffffff"/> <linejoin join="round"/> <path> <move x="113" y="15"/> <line x="102" y="15"/> <line x="107.5" y="8"/> <close/> </path> <fillstroke/> <path> <move x="148" y="8"/> <line x="137" y="8"/> <line x="142.5" y="15"/> <close/> </path> <fillstroke/> </foreground> </shape> <shape name="Image Placeholder" h="100" w="100" aspect="1"> <foreground> <strokecolor color="#000000"/> <fillcolor color="#ffffff"/> <rect x="0" y="0" w="100" h="100"/> <fillstroke/> <path> <move x="0" y="100"/> <line x="100" y="0"/> </path> <stroke/> <path> <move x="0" y="0"/> <line x="100" y="100"/> </path> <stroke/> </foreground> </shape> <shape name="Information Icon" h="22" w="32" aspect="1"> <foreground> <strokecolor color="#000000"/> <fillcolor color="#ffffff"/> <miterlimit limit="15"/> <path> <move x="26" y="15.7"/> <arc rx="14.34" ry="8.5" x-axis-rotation="0" large-arc-flag="1" sweep-flag="0" x="22.79" y="17.059"/> <arc rx="11.62" ry="13.51" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="29.37" y="21.48"/> <arc rx="8.78" ry="10.2" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="26" y="15.7"/> <close/> </path> <fillstroke/> <fontsize size="14"/> <fontcolor color="#2c457e"/> <fontstyle style="1"/> <text str="i" x="14" y="10" valign="middle" align="center"/> </foreground> </shape> <shape name="Loading Bar 1" h="24" w="250" aspect="1"> <foreground> <strokecolor color="#000000"/> <fillcolor color="#fafafa"/> <roundrect x="0" y="0" w="250" h="24" arcsize="11.417"/> <fillstroke/> <fillcolor color="#2c457e"/> <rect x="3" y="3" w="10" h="18"/> <fillstroke/> <strokecolor color="#000000"/> <fillcolor color="none"/> <roundrect x="0" y="0" w="250" h="24" arcsize="11.417"/> <stroke/> <strokecolor color="none"/> <fillcolor color="#2c457e"/> <rect x="15" y="3" w="10" h="18"/> <fillstroke/> <rect x="27" y="3" w="10" h="18"/> <fillstroke/> <rect x="39" y="3" w="10" h="18"/> <fillstroke/> <rect x="51" y="3" w="10" h="18"/> <fillstroke/> <rect x="63" y="3" w="10" h="18"/> <fillstroke/> <rect x="75" y="3" w="10" h="18"/> <fillstroke/> <rect x="87" y="3" w="10" h="18"/> <fillstroke/> <rect x="99" y="3" w="10" h="18"/> <fillstroke/> <rect x="111" y="3" w="10" h="18"/> <fillstroke/> <rect x="123" y="3" w="10" h="18"/> <fillstroke/> <rect x="135" y="3" w="10" h="18"/> <fillstroke/> </foreground> </shape> <shape name="Loading Bar 2" h="24" w="250" aspect="1"> <foreground> <strokecolor color="none"/> <fillcolor color="#fafafa"/> <roundrect x="0" y="0" w="250" h="24" arcsize="11.417"/> <fillstroke/> <fillcolor color="#2c457e"/> <rect x="3" y="3" w="150" h="18"/> <fillstroke/> <strokecolor color="#000000"/> <fillcolor color="none"/> <roundrect x="0" y="0" w="250" h="24" arcsize="11.417"/> <stroke/> </foreground> </shape> <shape name="Loading Circle 1" h="84" w="88" aspect="1"> <foreground> <strokecolor color="none"/> <fillcolor color="#888888"/> <ellipse x="9" y="3" w="24" h="24"/> <fillstroke/> <fillcolor color="#999999"/> <ellipse x="0" y="29" w="22" h="22"/> <fillstroke/> <fillcolor color="#aaaaaa"/> <ellipse x="11" y="55" w="20" h="20"/> <fillstroke/> <fillcolor color="#bbbbbb"/> <ellipse x="37" y="66" w="18" h="18"/> <fillstroke/> <fillcolor color="#cccccc"/> <ellipse x="63" y="57" w="16" h="16"/> <fillstroke/> <fillcolor color="#dddddd"/> <ellipse x="74" y="33" w="14" h="14"/> <fillstroke/> <fillcolor color="#eeeeee"/> <ellipse x="65" y="9" w="12" h="12"/> <fillstroke/> <fillcolor color="#f3f3f3"/> <ellipse x="41" y="0" w="10" h="10"/> <fillstroke/> </foreground> </shape> <shape name="Loading Circle 2" h="90" w="90" aspect="1"> <foreground> <strokecolor color="#000000"/> <strokecolor color="#808080"/> <strokewidth width="4"/> <path> <move x="45" y="31"/> <line x="45" y="0"/> </path> <stroke/> <strokecolor color="#d1d1d1"/> <path> <move x="59" y="45"/> <line x="90" y="45"/> </path> <stroke/> <strokecolor color="#b3b3b3"/> <path> <move x="45" y="59"/> <line x="45" y="90"/> </path> <stroke/> <strokecolor color="#949494"/> <path> <move x="31" y="45"/> <line x="0" y="45"/> </path> <stroke/> <strokecolor color="#bdbdbd"/> <path> <move x="52" y="57"/> <line x="67.5" y="84"/> </path> <stroke/> <strokecolor color="#c7c7c7"/> <path> <move x="57" y="52"/> <line x="84" y="67.5"/> </path> <stroke/> <strokecolor color="#a8a8a8"/> <path> <move x="22.5" y="84"/> <line x="38" y="57"/> </path> <stroke/> <strokecolor color="#9e9e9e"/> <path> <move x="6" y="67.5"/> <line x="33" y="52"/> </path> <stroke/> <strokecolor color="#8a8a8a"/> <path> <move x="6" y="22.5"/> <line x="33" y="38.3"/> </path> <stroke/> <strokecolor color="#808080"/> <path> <move x="22.5" y="6"/> <line x="38" y="33"/> </path> <stroke/> </foreground> </shape> <shape name="Mail" h="60" w="100" aspect="1"> <foreground> <fillcolor color="#ffffff"/> <strokecolor color="#2c457e"/> <strokewidth width="2"/> <linejoin join="round"/> <linecap cap="round"/> <rect x="0" y="0" w="100" h="60"/> <fillstroke/> <path> <move x="0" y="0"/> <line x="50" y="30"/> <line x="100" y="0"/> </path> <stroke/> </foreground> </shape> <shape name="Map" h="251" w="251" aspect="1"> <foreground> <strokecolor color="#000000"/> <fillcolor color="#ffffff"/> <rect x="0" y="0" w="250" h="250"/> <fillstroke/> <strokecolor color="#d87146"/> <fillcolor color="#ffca8c"/> <path> <move x="15" y="0"/> <line x="12.834" y="4.167"/> <line x="6.001" y="0.167"/> <close/> </path> <fillstroke/> <fillcolor color="#d87146"/> <path> <move x="5.667" y="18.167"/> <line x="13.834" y="18.5"/> <line x="13.334" y="24.667"/> <line x="21.501" y="26.5"/> <line x="18.834" y="46.5"/> <line x="9.834" y="44.5"/> <line x="9.167" y="50.334"/> <line x="1.334" y="49.334"/> <line x="3.334" y="40.834"/> <line x="0.334" y="40"/> <line x="0.334" y="29"/> <line x="5.334" y="25"/> <close/> </path> <fillstroke/> <fillcolor color="#ffca8c"/> <path> <move x="21.834" y="12"/> <line x="19.167" y="9.167"/> <line x="23.334" y="0.5"/> <line x="39.334" y="0"/> <close/> </path> <fillstroke/> <path> <move x="25.834" y="17.5"/> <line x="42.001" y="7"/> <line x="46.167" y="14.834"/> <line x="28.501" y="25.5"/> <close/> </path> <fillstroke/> <path> <move x="54.667" y="18"/> <line x="60.501" y="27.667"/> <line x="28.167" y="44.667"/> <line x="29.834" y="40.5"/> <line x="30.167" y="32.834"/> <close/> </path> <fillstroke/> <path> <move x="47.667" y="3"/> <line x="53.334" y="12"/> <line x="57.834" y="9.167"/> <line x="66.667" y="24.667"/> <line x="82.834" y="17"/> <line x="75.001" y="0.334"/> <line x="51.834" y="0.167"/> <close/> </path> <fillstroke/> <path> <move x="89.667" y="14.667"/> <line x="82.834" y="0.167"/> <line x="101.667" y="0.167"/> <line x="114.001" y="7.167"/> <line x="101.167" y="19.167"/> <close/> </path> <fillstroke/> <path> <move x="95.834" y="24.5"/> <line x="93.667" y="24"/> <line x="89.501" y="14.167"/> <line x="97.834" y="11.5"/> <line x="102.501" y="18.167"/> <close/> </path> <fillstroke/> <path> <move x="121.167" y="2.834"/> <line x="118.334" y="0.334"/> <line x="123.334" y="0.167"/> <close/> </path> <fillstroke/> <path> <move x="128.001" y="9.334"/> <line x="124.667" y="6.334"/> <line x="131.001" y="0.167"/> <line x="138.834" y="0.167"/> <close/> </path> <fillstroke/> <path> <move x="157.834" y="5.167"/> <line x="152.501" y="0.167"/> <line x="162.501" y="0.334"/> <close/> </path> <fillstroke/> <path> <move x="164.167" y="9.5"/> <line x="172.501" y="1.334"/> <line x="175.167" y="2.334"/> <line x="171.834" y="12.667"/> <close/> </path> <fillstroke/> <path> <move x="146.667" y="27.167"/> <line x="161.167" y="13.667"/> <line x="171.167" y="18.834"/> <line x="163.167" y="41.167"/> <close/> </path> <fillstroke/> <fillcolor color="#d87146"/> <path> <move x="153.334" y="21"/> <line x="161.167" y="14"/> <line x="171.167" y="18.834"/> <line x="167.501" y="28.5"/> <close/> </path> <fillstroke/> <fillcolor color="#ffca8c"/> <path> <move x="177.501" y="16.5"/> <line x="180.501" y="7.167"/> <line x="191.501" y="13.5"/> <line x="181.501" y="23.667"/> <close/> </path> <fillstroke/> <path> <move x="200.167" y="6"/> <line x="192.834" y="0"/> <line x="206.001" y="0"/> <close/> </path> <fillstroke/> <path> <move x="207.001" y="6.334"/> <line x="212.167" y="1.667"/> <line x="226.001" y="10.834"/> <line x="220.167" y="15.834"/> <close/> </path> <fillstroke/> <path> <move x="224.001" y="23.167"/> <line x="232.167" y="15.667"/> <line x="250.001" y="27.834"/> <line x="249.834" y="41.334"/> <close/> </path> <fillstroke/> <path> <move x="231.834" y="6.167"/> <line x="222.667" y="0.334"/> <line x="233.667" y="0.167"/> <line x="235.667" y="2"/> <close/> </path> <fillstroke/> <path> <move x="243.834" y="5.5"/> <line x="248.834" y="0.334"/> <line x="250.334" y="0.5"/> <line x="250.001" y="10.5"/> <close/> </path> <fillstroke/> <path> <move x="184.334" y="28.834"/> <line x="202.667" y="10"/> <line x="216.334" y="19.334"/> <line x="189.834" y="41"/> <close/> </path> <fillstroke/> <path> <move x="176.001" y="30.167"/> <line x="185.667" y="46.167"/> <line x="176.501" y="53.334"/> <line x="168.834" y="45.834"/> <close/> </path> <fillstroke/> <path> <move x="204.501" y="38.667"/> <line x="217.334" y="27.834"/> <line x="227.501" y="35"/> <line x="221.001" y="49"/> <close/> </path> <fillstroke/> <path> <move x="225.667" y="52.334"/> <line x="232.334" y="38"/> <line x="247.501" y="48.167"/> <line x="232.501" y="57.334"/> <close/> </path> <fillstroke/> <path> <move x="238.501" y="60.667"/> <line x="250.167" y="53.334"/> <line x="249.834" y="68.167"/> <close/> </path> <fillstroke/> <path> <move x="225.501" y="72.5"/> <line x="232.501" y="66.167"/> <line x="248.334" y="76.334"/> <line x="239.834" y="84.667"/> <close/> </path> <fillstroke/> <path> <move x="199.001" y="60"/> <line x="203.167" y="47.5"/> <line x="227.501" y="62.5"/> <line x="213.001" y="71.5"/> <close/> </path> <fillstroke/> <path> <move x="212.501" y="87.5"/> <line x="215.001" y="80.834"/> <line x="213.001" y="77.167"/> <line x="220.834" y="75.834"/> <line x="235.834" y="88.834"/> <line x="229.001" y="98.334"/> <close/> </path> <fillstroke/> <path> <move x="189.667" y="52.667"/> <line x="198.167" y="43.5"/> <line x="199.834" y="44.5"/> <line x="199.334" y="47.334"/> <line x="194.667" y="57"/> <close/> </path> <fillstroke/> <path> <move x="165.334" y="69.5"/> <line x="186.167" y="55.834"/> <line x="191.001" y="60.167"/> <line x="177.667" y="72.334"/> <line x="181.667" y="77.167"/> <line x="176.334" y="81.667"/> <close/> </path> <fillstroke/> <fillcolor color="#d87146"/> <path> <move x="183.334" y="73.334"/> <line x="191.834" y="64"/> <line x="199.001" y="69.834"/> <line x="190.501" y="79.5"/> <close/> </path> <fillstroke/> <fillcolor color="#ffca8c"/> <path> <move x="199.501" y="78.334"/> <line x="203.334" y="73.667"/> <line x="208.334" y="78.334"/> <line x="207.501" y="84.5"/> <close/> </path> <fillstroke/> <path> <move x="196.834" y="98.5"/> <line x="181.001" y="85.834"/> <line x="185.501" y="82.334"/> <line x="190.834" y="86.834"/> <line x="195.001" y="83.167"/> <line x="205.501" y="89.667"/> <close/> </path> <fillstroke/> <path> <move x="201.834" y="101"/> <line x="210.001" y="93"/> <line x="225.167" y="104.5"/> <line x="223.334" y="108.334"/> <line x="217.834" y="110"/> <close/> </path> <fillstroke/> <path> <move x="247.667" y="88.667"/> <line x="241.167" y="98.334"/> <line x="250.167" y="103"/> <line x="250.334" y="90"/> <close/> </path> <fillstroke/> <path> <move x="240.501" y="118.5"/> <line x="243.667" y="114"/> <line x="250.167" y="116.167"/> <line x="249.667" y="123.167"/> <close/> </path> <fillstroke/> <path> <move x="233.667" y="134.834"/> <line x="237.167" y="124.667"/> <line x="247.334" y="128.334"/> <line x="241.667" y="136.667"/> <close/> </path> <fillstroke/> <path> <move x="222.001" y="168.667"/> <line x="231.334" y="142.834"/> <line x="238.834" y="142.834"/> <line x="249.334" y="147.167"/> <line x="237.167" y="177"/> <close/> </path> <fillstroke/> <path> <move x="242.501" y="180"/> <line x="246.001" y="171.167"/> <line x="250.001" y="172.334"/> <line x="250.001" y="184"/> <close/> </path> <fillstroke/> <path> <move x="248.334" y="166.167"/> <line x="250.167" y="161.334"/> <line x="250.167" y="166.167"/> <close/> </path> <fillstroke/> <path> <move x="214.001" y="193.167"/> <line x="220.334" y="176.667"/> <line x="250.001" y="192.167"/> <line x="249.834" y="211.5"/> <close/> </path> <fillstroke/> <path> <move x="206.667" y="215.167"/> <line x="212.167" y="200.5"/> <line x="250.167" y="220"/> <line x="250.001" y="235.334"/> <close/> </path> <fillstroke/> <path> <move x="202.501" y="229.834"/> <line x="205.001" y="223.167"/> <line x="250.334" y="243.167"/> <line x="250.334" y="246"/> <line x="247.001" y="247.5"/> <close/> </path> <fillstroke/> <path> <move x="200.667" y="236.167"/> <line x="231.667" y="248.334"/> <line x="230.834" y="249.834"/> <line x="207.167" y="249.834"/> <line x="196.834" y="246.5"/> <close/> </path> <fillstroke/> <fillcolor color="#d87146"/> <path> <move x="179.334" y="247.834"/> <line x="178.001" y="250.5"/> <line x="153.834" y="249.834"/> <line x="157.501" y="239.5"/> <close/> </path> <fillstroke/> <fillcolor color="#ffca8c"/> <path> <move x="185.501" y="242"/> <line x="164.001" y="233"/> <line x="168.667" y="223.334"/> <line x="189.334" y="232.334"/> <close/> </path> <fillstroke/> <path> <move x="191.167" y="225.5"/> <line x="173.667" y="217.167"/> <line x="177.501" y="210.167"/> <line x="193.834" y="217.334"/> <close/> </path> <fillstroke/> <path> <move x="190.834" y="188.5"/> <line x="202.001" y="195.167"/> <line x="195.667" y="211.834"/> <line x="180.834" y="205.5"/> <close/> </path> <fillstroke/> <path> <move x="197.834" y="185"/> <line x="205.667" y="168.667"/> <line x="210.501" y="171.834"/> <line x="204.167" y="188.667"/> <close/> </path> <fillstroke/> <path> <move x="213.167" y="148.334"/> <line x="217.167" y="150.167"/> <line x="212.334" y="164.5"/> <line x="207.667" y="162.167"/> <close/> </path> <fillstroke/> <path> <move x="206.834" y="127.167"/> <line x="212.001" y="116.5"/> <line x="226.334" y="122.334"/> <line x="223.001" y="132.5"/> <close/> </path> <fillstroke/> <path> <move x="202.501" y="136.834"/> <line x="204.834" y="132"/> <line x="220.667" y="138.667"/> <line x="218.334" y="144.667"/> <close/> </path> <fillstroke/> <path> <move x="200.001" y="142"/> <line x="204.001" y="144"/> <line x="198.667" y="156.334"/> <line x="194.001" y="154.167"/> <close/> </path> <fillstroke/> <path> <move x="198.334" y="133.5"/> <line x="189.167" y="151.334"/> <line x="183.334" y="148.167"/> <line x="192.501" y="131"/> <close/> </path> <fillstroke/> <path> <move x="206.667" y="115.167"/> <line x="200.167" y="128.334"/> <line x="194.834" y="126"/> <line x="200.667" y="113"/> <close/> </path> <fillstroke/> <path> <move x="195.001" y="110.5"/> <line x="177.334" y="145.334"/> <line x="168.167" y="140.334"/> <line x="190.334" y="108.167"/> <close/> </path> <fillstroke/> <path> <move x="162.001" y="136.834"/> <line x="157.167" y="134.167"/> <line x="179.667" y="104.5"/> <line x="183.501" y="105.834"/> <close/> </path> <fillstroke/> <path> <move x="173.334" y="99"/> <line x="153.167" y="127.667"/> <line x="147.167" y="116.834"/> <line x="167.834" y="94.334"/> <close/> </path> <fillstroke/> <path> <move x="162.334" y="89.834"/> <line x="142.001" y="112.167"/> <line x="137.001" y="114.334"/> <line x="124.501" y="117.167"/> <line x="122.667" y="112.834"/> <line x="128.834" y="109.5"/> <line x="128.334" y="106.167"/> <line x="155.667" y="82.834"/> <close/> </path> <fillstroke/> <fillcolor color="#d87146"/> <path> <move x="134.501" y="115.167"/> <line x="124.667" y="117.334"/> <line x="122.667" y="112.667"/> <line x="129.001" y="109.5"/> <line x="128.667" y="106.167"/> <line x="130.001" y="104.834"/> <close/> </path> <fillstroke/> <path> <move x="126.834" y="123.834"/> <line x="140.834" y="120.667"/> <line x="147.667" y="134.834"/> <line x="133.501" y="140.834"/> <close/> </path> <fillstroke/> <fillcolor color="#ffca8c"/> <path> <move x="136.834" y="147.667"/> <line x="152.501" y="140.167"/> <line x="157.667" y="143.5"/> <line x="142.834" y="163.667"/> <close/> </path> <fillstroke/> <path> <move x="145.334" y="172.834"/> <line x="164.001" y="146.334"/> <line x="174.167" y="151.5"/> <line x="151.667" y="189"/> <close/> </path> <fillstroke/> <path> <move x="155.501" y="194.834"/> <line x="164.334" y="182"/> <line x="180.834" y="190"/> <line x="173.001" y="201.5"/> <close/> </path> <fillstroke/> <path> <move x="167.667" y="177.334"/> <line x="180.167" y="156.334"/> <line x="195.167" y="163.334"/> <line x="184.501" y="184.834"/> <close/> </path> <fillstroke/> <path> <move x="123.667" y="15.334"/> <line x="138.167" y="28.834"/> <line x="133.834" y="32.667"/> <line x="122.501" y="23"/> <close/> </path> <fillstroke/> <path> <move x="142.834" y="34"/> <line x="169.667" y="58.5"/> <line x="163.167" y="62.167"/> <line x="139.334" y="38.334"/> <close/> </path> <fillstroke/> <path> <move x="118.334" y="12.667"/> <line x="116.667" y="25"/> <line x="128.834" y="37.667"/> <line x="121.334" y="44"/> <line x="106.334" y="23.834"/> <close/> </path> <fillstroke/> <path> <move x="134.167" y="42.834"/> <line x="159.667" y="67.5"/> <line x="146.667" y="78.834"/> <line x="126.167" y="51.334"/> <close/> </path> <fillstroke/> <path> <move x="121.334" y="56.334"/> <line x="141.501" y="83.667"/> <line x="126.834" y="96.334"/> <line x="115.667" y="92.834"/> <line x="107.501" y="71.834"/> <close/> </path> <fillstroke/> <fillcolor color="#d87146"/> <path> <move x="122.501" y="99.667"/> <line x="116.834" y="98"/> <line x="115.501" y="92.167"/> <line x="121.834" y="88.334"/> <line x="127.334" y="96.167"/> <close/> </path> <fillstroke/> <fillcolor color="#ffca8c"/> <path> <move x="94.167" y="56.667"/> <line x="107.001" y="89.167"/> <line x="100.834" y="94.834"/> <line x="76.334" y="89.5"/> <line x="78.001" y="76"/> <line x="84.334" y="71.834"/> <line x="80.501" y="63.834"/> <close/> </path> <fillstroke/> <fillcolor color="#d87146"/> <path> <move x="106.667" y="87.5"/> <line x="108.501" y="92"/> <line x="108.334" y="97.5"/> <line x="100.667" y="94.834"/> <line x="99.334" y="94.667"/> <line x="101.167" y="87.167"/> <close/> </path> <fillstroke/> <fillcolor color="#ffca8c"/> <path> <move x="105.334" y="63.167"/> <line x="101.167" y="52.334"/> <line x="113.001" y="45.834"/> <line x="116.001" y="50.167"/> <close/> </path> <fillstroke/> <path> <move x="99.667" y="45.834"/> <line x="95.001" y="35.334"/> <line x="101.667" y="30.167"/> <line x="108.667" y="40"/> <close/> </path> <fillstroke/> <path> <move x="93.501" y="49.334"/> <line x="77.167" y="58.5"/> <line x="73.001" y="47.334"/> <line x="88.667" y="39.334"/> <close/> </path> <fillstroke/> <path> <move x="87.667" y="33"/> <line x="71.001" y="42"/> <line x="66.501" y="33.167"/> <line x="84.001" y="24.167"/> <close/> </path> <fillstroke/> <path> <move x="49.167" y="53"/> <line x="44.001" y="45"/> <line x="60.667" y="36.834"/> <line x="65.167" y="44"/> <close/> </path> <fillstroke/> <fillcolor color="#d87146"/> <path> <move x="62.334" y="52.167"/> <line x="67.001" y="60.334"/> <line x="58.167" y="65.167"/> <line x="53.334" y="61.667"/> <line x="53.834" y="56.334"/> <close/> </path> <fillstroke/> <fillcolor color="#ffca8c"/> <path> <move x="40.001" y="47.667"/> <line x="53.001" y="68.834"/> <line x="44.667" y="73.834"/> <line x="30.167" y="52.667"/> <close/> </path> <fillstroke/> <fillcolor color="#d87146"/> <path> <move x="47.667" y="77.834"/> <line x="56.167" y="72.167"/> <line x="72.501" y="75.667"/> <line x="69.167" y="88.834"/> <line x="56.667" y="91"/> <close/> </path> <fillstroke/> <fillcolor color="#ffca8c"/> <path> <move x="119.667" y="186.167"/> <line x="138.667" y="173.667"/> <line x="156.667" y="223.5"/> <line x="153.167" y="227.334"/> <close/> </path> <fillstroke/> <path> <move x="111.834" y="182.834"/> <line x="141.167" y="216.667"/> <line x="131.834" y="215.5"/> <line x="106.834" y="186.834"/> <close/> </path> <fillstroke/> <path> <move x="142.834" y="225"/> <line x="152.001" y="232.167"/> <line x="144.667" y="249.834"/> <line x="105.834" y="250"/> <close/> </path> <fillstroke/> <fillcolor color="#b2d8ad"/> <path> <move x="16.667" y="218"/> <line x="36.834" y="240.167"/> <line x="25.334" y="250.334"/> <line x="7.334" y="250"/> <line x="8.167" y="225"/> <close/> </path> <fillstroke/> <fillcolor color="#ffca8c"/> <path> <move x="0" y="232.5"/> <line x="9.667" y="223.667"/> <line x="23.001" y="238.167"/> <line x="9.334" y="250.167"/> <line x="0.167" y="250.5"/> <close/> </path> <fillstroke/> <fillcolor color="#b2d8ad"/> <path> <move x="13.501" y="214.667"/> <line x="0.334" y="225.167"/> <line x="0.334" y="210.5"/> <line x="6.167" y="206.667"/> <close/> </path> <fillstroke/> <path> <move x="26.667" y="203.667"/> <line x="22.167" y="198"/> <line x="42.501" y="181.167"/> <line x="42.167" y="176.5"/> <line x="53.667" y="167.5"/> <line x="59.001" y="168.834"/> <line x="61.667" y="173"/> <close/> </path> <fillstroke/> <fillcolor color="#d87146"/> <path> <move x="25.667" y="174.334"/> <line x="36.001" y="186.5"/> <line x="30.167" y="190.834"/> <line x="19.334" y="179.167"/> <close/> </path> <fillstroke/> <fillcolor color="#b2d8ad"/> <path> <move x="33.167" y="168.667"/> <line x="12.167" y="185.5"/> <line x="0.167" y="170"/> <line x="19.334" y="153.167"/> <close/> </path> <fillstroke/> <path> <move x="62.667" y="160"/> <line x="68.667" y="155.334"/> <line x="75.167" y="162.5"/> <line x="66.001" y="169.5"/> <line x="62.501" y="166"/> <close/> </path> <fillstroke/> <path> <move x="25.001" y="56"/> <line x="50.834" y="95.167"/> <line x="46.334" y="99.167"/> <line x="53.334" y="108.5"/> <line x="50.834" y="110.5"/> <line x="30.334" y="81.834"/> <line x="33.667" y="79.667"/> <line x="24.501" y="65.834"/> <line x="15.667" y="71.5"/> <line x="21.834" y="82.834"/> <line x="18.167" y="85"/> <line x="12.001" y="77.334"/> <line x="13.501" y="68"/> <line x="22.167" y="62.667"/> <close/> </path> <fillstroke/> <path> <move x="22.334" y="69.834"/> <line x="28.167" y="77.5"/> <line x="24.667" y="80.167"/> <line x="19.667" y="71.667"/> <close/> </path> <fillstroke/> <path> <move x="17.667" y="91.334"/> <line x="27.001" y="84.667"/> <line x="41.834" y="104.667"/> <line x="37.667" y="107.5"/> <line x="25.167" y="92.834"/> <line x="20.834" y="95"/> <close/> </path> <fillstroke/> <path> <move x="21.334" y="122.834"/> <line x="19.667" y="121.5"/> <line x="21.334" y="112.334"/> <line x="33.001" y="113"/> <close/> </path> <fillstroke/> <path> <move x="17.167" y="121.334"/> <line x="14.834" y="121.667"/> <line x="9.334" y="113.334"/> <line x="16.834" y="113.667"/> <close/> </path> <fillstroke/> <path> <move x="5.667" y="117.334"/> <line x="13.001" y="123.667"/> <line x="11.167" y="126.167"/> <line x="4.501" y="122.5"/> <close/> </path> <fillstroke/> <path> <move x="7.334" y="108.5"/> <line x="8.834" y="94.834"/> <line x="14.334" y="94.834"/> <line x="17.167" y="98.5"/> <line x="15.834" y="109.167"/> <close/> </path> <fillstroke/> <path> <move x="10.501" y="81.667"/> <line x="15.167" y="86.667"/> <line x="10.167" y="88.667"/> <close/> </path> <fillstroke/> <path> <move x="4.001" y="92.5"/> <line x="0.334" y="108.834"/> <line x="0.667" y="92"/> <close/> </path> <fillstroke/> <path> <move x="48.667" y="114.834"/> <line x="23.501" y="133.667"/> <line x="25.334" y="136"/> <line x="50.167" y="117.834"/> <close/> </path> <fillstroke/> <path> <move x="20.167" y="136.167"/> <line x="21.334" y="137.667"/> <line x="9.167" y="147.167"/> <line x="8.501" y="145.667"/> <close/> </path> <fillstroke/> <path> <move x="39.834" y="134.167"/> <curve x1="39.834" y1="134.167" x2="54.501" y2="121.667" x3="54.501" y3="121.667"/> <curve x1="54.501" y1="121.667" x2="69.501" y2="137.834" x3="69.501" y3="137.834"/> <curve x1="69.501" y1="137.834" x2="54.334" y2="151.667" x3="54.334" y3="151.667"/> <curve x1="54.334" y1="151.667" x2="51.334" y2="149.167" x3="51.334" y3="149.167"/> <curve x1="51.334" y1="149.167" x2="42.501" y2="138.167" x3="42.501" y3="138.167"/> <curve x1="42.501" y1="138.167" x2="39.667" y2="134.334" x3="39.667" y3="134.334"/> <close/> </path> <fillstroke/> <path> <move x="36.667" y="137.167"/> <curve x1="36.667" y1="137.167" x2="39.667" y2="141.167" x3="39.667" y3="141.167"/> <curve x1="39.667" y1="141.167" x2="46.834" y2="152.5" x3="46.834" y3="152.5"/> <curve x1="46.834" y1="152.5" x2="49.667" y2="155.834" x3="49.667" y3="155.834"/> <curve x1="49.667" y1="155.834" x2="35.834" y2="167.667" x3="35.834" y3="167.667"/> <curve x1="35.834" y1="167.667" x2="21.501" y2="149.834" x3="21.501" y3="149.834"/> <curve x1="21.501" y1="149.834" x2="37.001" y2="137.167" x3="37.001" y3="137.167"/> <close/> </path> <fillstroke/> <path> <move x="4.167" y="127.834"/> <curve x1="4.167" y1="127.834" x2="6.001" y2="128.667" x3="6.001" y3="128.667"/> <curve x1="6.001" y1="128.667" x2="11.667" y2="137.667" x3="11.667" y3="137.834"/> <curve x1="11.667" y1="138" x2="0.667" y2="146.834" x3="0.667" y3="146.834"/> <curve x1="0.667" y1="146.834" x2="0.334" y2="131.334" x3="0.334" y3="131.334"/> <curve x1="0.334" y1="131.334" x2="4.167" y2="128" x3="4.167" y3="128"/> <close/> </path> <fillstroke/> <ellipse x="13.834" y="126.667" w="6.5" h="6.667"/> <fillstroke/> <path> <move x="23.834" y="125.167"/> <line x="44.501" y="109.667"/> <line x="46.834" y="113.167"/> <line x="26.501" y="128.834"/> <close/> </path> <fillstroke/> <path> <move x="4.501" y="88.167"/> <line x="6.667" y="79.334"/> <arc rx="4" ry="9" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="0.334" y="78.167"/> <line x="0.334" y="87.5"/> <line x="4.334" y="88.334"/> <close/> </path> <fillstroke/> <path> <move x="0.667" y="65.667"/> <line x="11.001" y="67.5"/> <line x="9.334" y="76"/> <arc rx="10" ry="10" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="0.501" y="71"/> <line x="0.501" y="65.334"/> <close/> </path> <fillstroke/> <fillcolor color="#d87146"/> <path> <move x="62.667" y="98.5"/> <arc rx="50" ry="50" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="84.834" y="98"/> <arc rx="50" ry="50" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="103.167" y="103.834"/> <arc rx="15" ry="15" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="116.334" y="117.667"/> <line x="128.001" y="143.834"/> <line x="115.834" y="149"/> <line x="122.501" y="166"/> <line x="134.334" y="161.667"/> <line x="138.834" y="174"/> <line x="122.667" y="184.167"/> <line x="111.667" y="172"/> <line x="57.334" y="223.834"/> <line x="42.167" y="207.667"/> <line x="55.167" y="195"/> <arc rx="20" ry="20" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="76.501" y="189"/> <line x="73.334" y="186.5"/> <line x="79.334" y="181.667"/> <line x="81.334" y="183.834"/> <arc rx="20" ry="20" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="88.167" y="163.667"/> <line x="73.834" y="150.667"/> <line x="82.834" y="141.667"/> <line x="60.334" y="115"/> <line x="68.501" y="106.667"/> <line x="62.667" y="98.501"/> <close/> </path> <fillstroke/> <fillcolor color="#ffca8c"/> <path> <move x="247.567" y="138.167"/> <line x="250.167" y="133.967"/> <line x="250.167" y="139.367"/> <close/> </path> <fillstroke/> <fillcolor color="#b2d8ad"/> <path> <move x="84.767" y="207.767"/> <curve x1="84.767" y1="207.767" x2="100.967" y2="192.767" x3="100.967" y3="192.767"/> <curve x1="100.967" y1="192.767" x2="109.367" y2="200.367" x3="109.367" y3="200.367"/> <curve x1="109.367" y1="200.367" x2="89.967" y2="210.167" x3="89.967" y3="210.167"/> <curve x1="89.967" y1="210.167" x2="84.767" y2="207.967" x3="84.767" y3="207.967"/> <close/> </path> <fillstroke/> <path> <move x="81.767" y="210.367"/> <line x="88.167" y="212.367"/> <arc rx="10" ry="10" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="88.167" y="226.367"/> <line x="81.567" y="227.967"/> <line x="72.367" y="219.967"/> <line x="81.767" y="210.367"/> <close/> </path> <fillstroke/> <path> <move x="71.167" y="220.767"/> <arc rx="28" ry="35" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="101.567" y="230.567"/> <line x="103.167" y="233.967"/> <arc rx="20" ry="30" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="83.767" y="239.367"/> <line x="85.967" y="235.767"/> <line x="75.767" y="232.767"/> <line x="69.167" y="222.767"/> <line x="71.167" y="220.767"/> <close/> </path> <fillstroke/> <path> <move x="66.967" y="224.367"/> <curve x1="66.967" y1="224.367" x2="73.367" y2="232.967" x3="73.367" y3="232.967"/> <curve x1="73.367" y1="232.967" x2="70.967" y2="236.167" x3="70.967" y3="236.167"/> <curve x1="70.967" y1="236.167" x2="79.567" y2="242.167" x3="79.567" y3="242.167"/> <curve x1="79.567" y1="242.167" x2="76.967" y2="245.367" x3="76.967" y3="245.367"/> <curve x1="76.967" y1="245.367" x2="57.567" y2="233.767" x3="57.567" y3="233.767"/> <curve x1="57.567" y1="233.767" x2="66.767" y2="224.167" x3="66.767" y3="224.167"/> <close/> </path> <fillstroke/> <path> <move x="82.167" y="242.167"/> <curve x1="82.167" y1="242.167" x2="88.167" y2="243.567" x3="88.167" y3="243.567"/> <curve x1="88.167" y1="243.567" x2="87.767" y2="249.567" x3="87.767" y3="249.567"/> <curve x1="87.767" y1="249.567" x2="76.167" y2="250.367" x3="76.167" y3="250.367"/> <curve x1="76.167" y1="250.367" x2="82.167" y2="242.367" x3="82.167" y3="242.367"/> <close/> </path> <fillstroke/> <path> <move x="112.367" y="204.367"/> <curve x1="112.367" y1="204.367" x2="115.767" y2="207.567" x3="115.767" y3="207.567"/> <curve x1="115.767" y1="207.567" x2="104.167" y2="226.167" x3="104.167" y3="226.167"/> <curve x1="104.167" y1="226.167" x2="92.967" y2="222.967" x3="92.967" y3="222.967"/> <curve x1="92.967" y1="222.967" x2="96.767" y2="210.767" x3="96.767" y3="210.767"/> <curve x1="96.767" y1="210.767" x2="112.367" y2="204.367" x3="112.367" y3="204.367"/> <close/> </path> <fillstroke/> <path> <move x="118.767" y="211.767"/> <curve x1="118.767" y1="211.767" x2="122.567" y2="216.367" x3="122.567" y3="216.367"/> <curve x1="122.567" y1="216.367" x2="105.767" y2="233.567" x3="105.767" y3="233.567"/> <curve x1="105.767" y1="233.567" x2="104.567" y2="230.567" x3="104.567" y3="230.567"/> <curve x1="104.567" y1="230.567" x2="118.567" y2="211.767" x3="118.567" y3="211.767"/> <close/> </path> <fillstroke/> <path> <move x="125.767" y="218.167"/> <line x="134.167" y="221.767"/> <line x="95.967" y="250.167"/> <line x="90.367" y="249.967"/> <line x="90.967" y="244.167"/> <arc rx="20" ry="20" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="103.967" y="239.167"/> <arc rx="80" ry="80" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="125.767" y="218.167"/> <close/> </path> <fillstroke/> <fillcolor color="#ffffff"/> <path> <move x="112.334" y="122.834"/> <line x="119.667" y="134.334"/> <line x="114.834" y="140.334"/> <line x="104.834" y="130.167"/> <close/> </path> <fillstroke/> <path> <move x="69.167" y="111.5"/> <line x="79.167" y="102.667"/> <line x="93.001" y="116.834"/> <line x="82.001" y="127"/> <close/> </path> <fillstroke/> <path> <move x="98.834" y="133.834"/> <line x="107.334" y="142.167"/> <line x="101.167" y="148.5"/> <line x="93.167" y="139"/> <close/> </path> <fillstroke/> <strokecolor color="#000000"/> <strokewidth width="2"/> <fillcolor color="none"/> <rect x="0.167" y="0.167" w="250" h="250"/> <stroke/> </foreground> </shape> <shape name="Search Box" h="44" w="350" aspect="1"> <foreground> <strokecolor color="#000000"/> <fillcolor color="#fafafa"/> <roundrect x="0" y="0" w="350" h="44" arcsize="6.4"/> <fillstroke/> <fillcolor color="#ffffff"/> <rect x="10" y="10" w="250" h="24"/> <fillstroke/> <strokecolor color="#2c457e"/> <strokewidth width="4"/> <fillcolor color="none"/> <ellipse x="14" y="14" w="10" h="10"/> <stroke/> <linecap cap="round"/> <path> <move x="27" y="30"/> <line x="22" y="23"/> </path> <stroke/> <fontsize size="14"/> <fontstyle style="1"/> <fontcolor color="#2c457e"/> <text str="Search" x="272" y="22" valign="middle" align="center"/> </foreground> </shape> <shape name="Security" h="96.846" w="78" aspect="1"> <foreground> <strokecolor color="#000000"/> <strokecolor color="#000000"/> <strokewidth width="2"/> <fillcolor color="#ed9d01"/> <roundrect x="0" y="38.346" w="78" h="58.5" arcsize="7.479"/> <fillstroke/> <fillcolor color="#929da8"/> <path> <move x="7.5" y="38.346"/> <line x="7.5" y="27.346"/> <arc rx="31.7" ry="30.8" x-axis-rotation="0" large-arc-flag="0" sweep-flag="1" x="70.5" y="27.346"/> <line x="70.5" y="38.346"/> <line x="56.5" y="38.346"/> <line x="56.5" y="27.346"/> <arc rx="18" ry="18" x-axis-rotation="0" large-arc-flag="0" sweep-flag="0" x="21.5" y="27.346"/> <line x="21.5" y="38.346"/> <close/> </path> <fillstroke/> <strokecolor color="none"/> <strokewidth width="1"/> <fillcolor color="#ffc800"/> <roundrect x="9" y="46.846" w="60" h="42" arcsize="10.12"/> <fillstroke/> <strokecolor color="#000000"/> <strokewidth width="4"/> <fillcolor color="none"/> <path> <move x="39" y="76.846"/> <line x="39" y="68.846"/> </path> <stroke/> <strokewidth width="2"/> <fillcolor color="#000000"/> <ellipse x="34" y="58.846" w="10" h="10"/> <fillstroke/> </foreground> </shape> <shape name="Sign In" h="350" w="250" aspect="1"> <foreground> <strokecolor color="#000000"/> <fillcolor color="#fafafa"/> <linecap cap="round"/> <roundrect x="0" y="0" w="250" h="350" arcsize="1.71"/> <fillstroke/> <strokecolor color="#2c457e"/> <strokewidth width="3"/> <fillcolor color="none"/> <path> <move x="10" y="50"/> <line x="240" y="50"/> </path> <stroke/> <strokecolor color="#000000"/> <strokewidth width="1"/> <fillcolor color="#2c457e"/> <roundrect x="15" y="200" w="81" h="25" arcsize="7.85"/> <fillstroke/> <fillcolor color="#ffffff"/> <rect x="15" y="90" w="180" h="23"/> <fillstroke/> <strokecolor color="#2c457e"/> <strokewidth width="3"/> <fillcolor color="none"/> <path> <move x="10" y="260"/> <line x="240" y="260"/> </path> <stroke/> <strokecolor color="#000000"/> <strokewidth width="1"/> <fillcolor color="#2c457e"/> <roundrect x="15" y="300" w="81" h="25" arcsize="7.85"/> <fillstroke/> <fillcolor color="#ffffff"/> <rect x="15" y="150" w="180" h="23"/> <fillstroke/> <fillcolor color="none"/> <roundrect x="0" y="0" w="250" h="350" arcsize="1.71"/> <stroke/> <fillcolor color="#000000"/> <path> <ellipse w="10" h="10" x="20" y="157"/> </path> <fillstroke/> <path> <ellipse w="10" h="10" x="35" y="157"/> </path> <fillstroke/> <path> <ellipse w="10" h="10" x="50" y="157"/> </path> <fillstroke/> <path> <ellipse w="10" h="10" x="65" y="157"/> </path> <fillstroke/> <path> <ellipse w="10" h="10" x="80" y="157"/> </path> <fillstroke/> <path> <ellipse w="10" h="10" x="95" y="157"/> </path> <fillstroke/> <fontcolor color="#2c457e"/> <fontsize size="14"/> <fontstyle style="1"/> <text str="Sign In" x="15" y="35" align="left" valign="middle"/> <fontcolor color="#ffffff"/> <text str="SIGN IN" x="54" y="212" align="center" valign="middle"/> <text str="SIGN UP" x="54" y="313" align="center" valign="middle"/> <fontcolor color="#000000"/> <fontsize size="12"/> <text str="User Name:" x="15" y="80" align="left" valign="middle"/> <text str="Password:" x="15" y="140" align="left" valign="middle"/> <text str="New User" x="15" y="280" align="left" valign="middle"/> <fontstyle style="0"/> <text str="johndoe" x="20" y="100" align="left" valign="middle"/> <fontstyle style="2"/> <fontcolor color="#0000ff"/> <text str="Forgot password?" x="20" y="240" align="left" valign="middle"/> <strokecolor color="#0000ff"/> <path> <move x="18" y="247"/> <line x="115" y="247"/> </path> <stroke/> </foreground> </shape> <shape name="Sign Up" h="270" w="400" aspect="1"> <foreground> <strokecolor color="#000000"/> <fillcolor color="#fafafa"/> <roundrect x="0" y="0" w="400" h="270" arcsize="1.551"/> <fillstroke/> <strokecolor color="#2c457e"/> <strokewidth width="3"/> <fillcolor color="none"/> <linecap cap="round"/> <path> <move x="10" y="50"/> <line x="390" y="50"/> </path> <stroke/> <strokecolor color="#000000"/> <strokewidth width="1"/> <fillcolor color="#2c457e"/> <linecap cap="butt"/> <roundrect x="300" y="229" w="81" h="25" arcsize="7.852"/> <fillstroke/> <fillcolor color="#ffffff"/> <rect x="150" y="70" w="180" h="23"/> <fillstroke/> <rect x="150" y="110" w="180" h="23"/> <fillstroke/> <fillcolor color="none"/> <roundrect x="0" y="0" w="400" h="270" arcsize="1.551"/> <stroke/> <fillcolor color="#ffffff"/> <rect x="150" y="150" w="180" h="23"/> <fillstroke/> <rect x="150" y="190" w="180" h="23"/> <fillstroke/> <rect x="150" y="235" w="10" h="10"/> <fillstroke/> <fillcolor color="#000000"/> <path> <ellipse w="10" h="10" x="160" y="157"/> </path> <fillstroke/> <path> <ellipse w="10" h="10" x="175" y="157"/> </path> <fillstroke/> <path> <ellipse w="10" h="10" x="190" y="157"/> </path> <fillstroke/> <path> <ellipse w="10" h="10" x="205" y="157"/> </path> <fillstroke/> <path> <ellipse w="10" h="10" x="220" y="157"/> </path> <fillstroke/> <path> <ellipse w="10" h="10" x="235" y="157"/> </path> <fillstroke/> <path> <ellipse w="10" h="10" x="160" y="197"/> </path> <fillstroke/> <path> <ellipse w="10" h="10" x="175" y="197"/> </path> <fillstroke/> <path> <ellipse w="10" h="10" x="190" y="197"/> </path> <fillstroke/> <path> <ellipse w="10" h="10" x="205" y="197"/> </path> <fillstroke/> <path> <ellipse w="10" h="10" x="220" y="197"/> </path> <fillstroke/> <path> <ellipse w="10" h="10" x="235" y="197"/> </path> <fillstroke/> <fontcolor color="#2c457e"/> <fontsize size="14"/> <fontstyle style="1"/> <text str="Sign Up" x="15" y="35" align="left" valign="middle"/> <fontcolor color="#ffffff"/> <text str="SIGN UP" x="340" y="241" align="center" valign="middle"/> <fontcolor color="#000000"/> <fontsize size="12"/> <text str="Login name:" x="140" y="82" align="right" valign="middle"/> <text str="E-mail:" x="140" y="122" align="right" valign="middle"/> <text str="Password:" x="140" y="162" align="right" valign="middle"/> <text str="Confirm password:" x="140" y="202" align="right" valign="middle"/> <fontstyle style="0"/> <text str="johndoe" x="155" y="82" align="left" valign="middle"/> <text str="jdoe@default.net" x="155" y="122" align="left" valign="middle"/> <fontstyle style="3"/> <fontsize size="13"/> <text str="Remember me" x="165" y="240" align="left" valign="middle"/> </foreground> </shape> <shape name="Star Rating" h="33.75" w="213.5" aspect="1"> <foreground> <strokecolor color="#000000"/> <strokecolor color="#999999"/> <fillcolor color="#ffff00"/> <path> <move x="0" y="12.284"/> <line x="12.74" y="12.284"/> <line x="16.625" y="0"/> <line x="20.511" y="12.284"/> <line x="33.25" y="12.284"/> <line x="23.101" y="20.51"/> <line x="27.126" y="33.5"/> <line x="16.625" y="25.46"/> <line x="6.125" y="33.5"/> <line x="10.15" y="20.51"/> <close/> </path> <fillstroke/> <path> <move x="45.5" y="12.534"/> <line x="58.24" y="12.534"/> <line x="62.125" y="0.25"/> <line x="66.01" y="12.534"/> <line x="78.75" y="12.534"/> <line x="68.601" y="20.76"/> <line x="72.626" y="33.75"/> <line x="62.125" y="25.71"/> <line x="51.625" y="33.75"/> <line x="55.65" y="20.76"/> <close/> </path> <fillstroke/> <path> <move x="90.25" y="12.534"/> <line x="102.99" y="12.534"/> <line x="106.875" y="0.25"/> <line x="110.76" y="12.534"/> <line x="123.5" y="12.534"/> <line x="113.351" y="20.76"/> <line x="117.376" y="33.75"/> <line x="106.875" y="25.71"/> <line x="96.375" y="33.75"/> <line x="100.4" y="20.76"/> <close/> </path> <fillstroke/> <path> <move x="135.25" y="12.534"/> <line x="147.99" y="12.534"/> <line x="151.875" y="0.25"/> <line x="155.761" y="12.534"/> <line x="168.5" y="12.534"/> <line x="158.35" y="20.76"/> <line x="162.376" y="33.75"/> <line x="151.875" y="25.71"/> <line x="141.375" y="33.75"/> <line x="145.4" y="20.76"/> <close/> </path> <fillstroke/> <fillcolor color="#ffffff"/> <path> <move x="180.25" y="12.284"/> <line x="192.99" y="12.284"/> <line x="196.875" y="0"/> <line x="200.761" y="12.284"/> <line x="213.5" y="12.284"/> <line x="203.35" y="20.51"/> <line x="207.376" y="33.5"/> <line x="196.875" y="25.46"/> <line x="186.375" y="33.5"/> <line x="190.4" y="20.51"/> <close/> </path> <fillstroke/> </foreground> </shape> <shape name="Vertical Splitter" h="250" w="24" aspect="1"> <foreground> <strokecolor color="none"/> <fillcolor color="#fafafa"/> <path> <move x="24" y="0"/> <line x="0" y="0"/> <line x="0" y="250"/> <line x="24" y="250"/> <close/> </path> <fillstroke/> <strokecolor color="#2c457e"/> <fillcolor color="none"/> <path> <move x="24" y="0"/> <line x="24" y="250"/> </path> <stroke/> <path> <move x="0" y="0"/> <line x="0" y="250"/> </path> <stroke/> <strokecolor color="#000000"/> <fillcolor color="#2c457e"/> <path> <move x="16" y="95"/> <line x="8" y="95"/> <arc rx="3" ry="3" x-axis-rotation="90" large-arc-flag="0" sweep-flag="0" x="5" y="98"/> <line x="5" y="117"/> <arc rx="3" ry="3" x-axis-rotation="90" large-arc-flag="0" sweep-flag="0" x="8" y="120"/> <line x="16" y="120"/> <arc rx="3" ry="3" x-axis-rotation="90" large-arc-flag="0" sweep-flag="0" x="19" y="117"/> <line x="19" y="98"/> <arc rx="3" ry="3" x-axis-rotation="90" large-arc-flag="0" sweep-flag="0" x="16" y="95"/> <close/> </path> <fillstroke/> <path> <move x="16" y="130"/> <line x="8" y="130"/> <arc rx="3" ry="3" x-axis-rotation="90" large-arc-flag="0" sweep-flag="0" x="5" y="133"/> <line x="5" y="152"/> <arc rx="3" ry="3" x-axis-rotation="90" large-arc-flag="0" sweep-flag="0" x="8" y="155"/> <line x="16" y="155"/> <arc rx="3" ry="3" x-axis-rotation="90" large-arc-flag="0" sweep-flag="0" x="19" y="152"/> <line x="19" y="133"/> <arc rx="3" ry="3" x-axis-rotation="90" large-arc-flag="0" sweep-flag="0" x="16" y="130"/> <close/> </path> <fillstroke/> <strokecolor color="#ffffff"/> <fillcolor color="#ffffff"/> <linejoin join="round"/> <path> <move x="9" y="113"/> <line x="9" y="102"/> <line x="16" y="107.5"/> <close/> </path> <fillstroke/> <path> <move x="16" y="148"/> <line x="16" y="137"/> <line x="9" y="142.5"/> <close/> </path> <fillstroke/> </foreground> </shape> <shape name="Video" h="270" w="400" aspect="1"> <foreground> <strokecolor color="#000000"/> <fillcolor color="#fafafa"/> <roundrect x="0" y="0" w="400" h="270" arcsize="1.551"/> <fillstroke/> <strokecolor color="#2c457e"/> <strokewidth width="3"/> <fillcolor color="none"/> <linecap cap="round"/> <path> <move x="10" y="20"/> <line x="390" y="20"/> </path> <stroke/> <strokecolor color="#000000"/> <strokewidth width="1"/> <linecap cap="butt"/> <roundrect x="0" y="0" w="400" h="270" arcsize="1.551"/> <stroke/> <fillcolor color="#999999"/> <linejoin join="round"/> <rect x="10" y="30" w="380" h="200"/> <fillstroke/> <strokewidth width="4"/> <fillcolor color="#cccccc"/> <path> <move x="180" y="110"/> <line x="220" y="130"/> <line x="180" y="150"/> <close/> </path> <fillstroke/> <strokecolor color="#999999"/> <strokewidth width="1"/> <fillcolor color="#999999"/> <linejoin join="miter"/> <ellipse x="10" y="235" w="30" h="30"/> <fillstroke/> <ellipse x="45" y="235" w="30" h="30"/> <fillstroke/> <ellipse x="80" y="235" w="30" h="30"/> <fillstroke/> <ellipse x="115" y="235" w="30" h="30"/> <fillstroke/> <ellipse x="150" y="235" w="30" h="30"/> <fillstroke/> <strokewidth width="4"/> <fillcolor color="none"/> <linecap cap="round"/> <path> <move x="190" y="250"/> <line x="320" y="250"/> </path> <stroke/> <strokewidth width="1"/> <fillcolor color="#999999"/> <linecap cap="butt"/> <ellipse x="195" y="245" w="10" h="10"/> <fillstroke/> <strokecolor color="#cccccc"/> <strokewidth width="2"/> <fillcolor color="#cccccc"/> <linejoin join="round"/> <path> <move x="25" y="244"/> <line x="25" y="256"/> <line x="16" y="250"/> <close/> </path> <fillstroke/> <path> <move x="35" y="244"/> <line x="35" y="256"/> <line x="26" y="250"/> <close/> </path> <fillstroke/> <fillcolor color="none"/> <linejoin join="miter"/> <linecap cap="round"/> <path> <move x="15" y="244"/> <line x="15" y="256"/> </path> <stroke/> <fillcolor color="#cccccc"/> <linejoin join="round"/> <linecap cap="butt"/> <path> <move x="59" y="244"/> <line x="59" y="256"/> <line x="50" y="250"/> <close/> </path> <fillstroke/> <path> <move x="69" y="244"/> <line x="69" y="256"/> <line x="60" y="250"/> <close/> </path> <fillstroke/> <fillcolor color="none"/> <linejoin join="miter"/> <linecap cap="round"/> <path> <move x="15" y="244"/> <line x="15" y="256"/> </path> <stroke/> <fillcolor color="#cccccc"/> <linejoin join="round"/> <linecap cap="butt"/> <path> <move x="90" y="240"/> <line x="90" y="260"/> <line x="105" y="250"/> <close/> </path> <fillstroke/> <path> <move x="130" y="244"/> <line x="130" y="256"/> <line x="139" y="250"/> <close/> </path> <fillstroke/> <fillcolor color="none"/> <linejoin join="miter"/> <linecap cap="round"/> <path> <move x="175" y="244"/> <line x="175" y="256"/> </path> <stroke/> <fillcolor color="#cccccc"/> <linejoin join="round"/> <linecap cap="butt"/> <path> <move x="120" y="244"/> <line x="120" y="256"/> <line x="129" y="250"/> <close/> </path> <fillstroke/> <path> <move x="165" y="244"/> <line x="165" y="256"/> <line x="174" y="250"/> <close/> </path> <fillstroke/> <path> <move x="155" y="244"/> <line x="155" y="256"/> <line x="164" y="250"/> <close/> </path> <fillstroke/> <strokecolor color="#999999"/> <strokewidth width="1"/> <fillcolor color="#999999"/> <path> <move x="330" y="245"/> <line x="330" y="255"/> <line x="335" y="255"/> <line x="340" y="260"/> <line x="340" y="240"/> <line x="335" y="245"/> <close/> </path> <fillstroke/> <fillcolor color="none"/> <linecap cap="round"/> <rect x="370" y="245" w="15" h="10"/> <stroke/> <path> <move x="345" y="250"/> <line x="352" y="250"/> </path> <stroke/> <path> <move x="344" y="244"/> <line x="350" y="241"/> </path> <stroke/> <path> <move x="344" y="256"/> <line x="350" y="259"/> </path> <stroke/> <path> <move x="365" y="242"/> <line x="368" y="244"/> </path> <stroke/> <path> <move x="367" y="242"/> <line x="365" y="242"/> <line x="365" y="243.5"/> <close/> </path> <stroke/> <path> <move x="365" y="256.5"/> <line x="365" y="258"/> <line x="367" y="258"/> <close/> </path> <stroke/> <path> <move x="388" y="258"/> <line x="390" y="258"/> <line x="390" y="256.5"/> <close/> </path> <stroke/> <path> <move x="390" y="243.5"/> <line x="390" y="242"/> <line x="388" y="242"/> <close/> </path> <stroke/> <path> <move x="368" y="256"/> <line x="365" y="258"/> </path> <stroke/> <path> <move x="387" y="256"/> <line x="390" y="258"/> </path> <stroke/> <path> <move x="387" y="244"/> <line x="390" y="242"/> </path> <stroke/> <strokecolor color="#000000"/> <strokewidth width="2"/> <linejoin join="miter"/> <path> <move x="390" y="15"/> <line x="380" y="5"/> </path> <stroke/> <path> <move x="390" y="5"/> <line x="380" y="15"/> </path> <stroke/> <fontsize size="14"/> <fontstyle style="1"/> <text str="Video Name" x="15" y="10" align="left" valign="middle"/> </foreground> </shape> <shape name="Warning Icon" h="32" w="32" aspect="1"> <foreground> <strokecolor color="#000000"/> <strokecolor color="#000000"/> <fillcolor color="#ffff00"/> <linejoin join="round"/> <path> <move x="0" y="32"/> <line x="16" y="0"/> <line x="32" y="32"/> <close/> </path> <fillstroke/> <strokecolor color="none"/> <fillcolor color="#000000"/> <linejoin join="miter"/> <ellipse x="14" y="25" w="4" h="4"/> <fillstroke/> <strokecolor color="#000000"/> <strokewidth width="3.5"/> <fillcolor color="none"/> <linecap cap="round"/> <path> <move x="16" y="21"/> <line x="16" y="11"/> </path> <stroke/> </foreground> </shape> </shapes> ```
/content/code_sandbox/src/main/webapp/stencils/mockup/misc.xml
xml
2016-09-06T12:59:15
2024-08-16T13:28:41
drawio
jgraph/drawio
40,265
23,347
```xml import * as path from 'path'; import { Context } from '../core/context'; import { bundleDev } from '../development/bundleDev'; import { env } from '../env'; import { isDirectoryEmpty, isPathRelative } from '../utils/utils'; import { ChokidarChangeEvent, WatcherReaction } from './watcher'; // those cached paths will be destroyed by watcher when a change detected export interface IWatchablePathCacheCollection { indexFiles?: any; } export const WatchablePathCache: Record<string, IWatchablePathCacheCollection> = {}; // reacting to those events const WatchableCachePathEvents: Array<ChokidarChangeEvent> = ['addDir', 'unlinkDir', 'add']; /** * If a directory is added or removed that affects tsconfig directory * Since it's indexed and cached we need to clear the cache * and let the resolver refresh it. * @see pathsLookup.ts * @param target */ function verifyWatchablePaths(target: string) { for (let storedPath in WatchablePathCache) { const targetDir = path.extname(storedPath) ? path.dirname(storedPath) : storedPath; if (isPathRelative(targetDir, target)) WatchablePathCache[storedPath] = undefined; } } export function bindWatcherReactions(ctx: Context) { const ict = ctx.ict; const RebundleReactions = [ WatcherReaction.TS_CONFIG_CHANGED, WatcherReaction.PACKAGE_LOCK_CHANGED, WatcherReaction.FUSE_CONFIG_CHANGED, WatcherReaction.PROJECT_FILE_CHANGED, ]; ict.on('watcher_reaction', ({ reactionStack }) => { let lastAbsPath; for (const item of reactionStack) { if (RebundleReactions.includes(item.reaction)) { // we're not interested in re-bunlding if user adds an empty directory let isEmpty = item.event === 'addDir' && isDirectoryEmpty(item.absPath); if (!isEmpty) lastAbsPath = item.absPath; } // checking for adding and removing directories // and verity cached paths // an empty folder is a valid reason for checking too if (WatchableCachePathEvents.includes(item.event)) verifyWatchablePaths(item.absPath); } if (lastAbsPath) { ctx.log.info('changed', `$file`, { file: path.relative(env.APP_ROOT, lastAbsPath), }); bundleDev({ ctx, rebundle: true }); } }); } ```
/content/code_sandbox/src/watcher/bindWatcherReactions.ts
xml
2016-10-28T10:37:16
2024-07-27T15:17:43
fuse-box
fuse-box/fuse-box
4,003
537
```xml <configuration debug="false"> <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> <encoder> <pattern>[%-5level] %date --%thread-- [%logger] %msg %n</pattern> </encoder> </appender> <root level="${logLevel:-info}"> <appender-ref ref="STDOUT" /> </root> </configuration> ```
/content/code_sandbox/whatsmars-netty/src/main/resources/logback.xml
xml
2016-04-01T10:33:04
2024-08-14T23:44:08
whatsmars
javahongxi/whatsmars
1,952
92
```xml import {DateFormat} from "@tsed/schema"; import moment, {Moment} from "moment"; import {JsonMapper} from "../../src/decorators/jsonMapper.js"; import {getJsonMapperTypes} from "../../src/domain/JsonMapperTypesContainer.js"; import {JsonSerializer} from "../../src/index.js"; import {JsonMapperMethods} from "../../src/interfaces/JsonMapperMethods.js"; class MyModel { @DateFormat() date: Moment; } @JsonMapper("Moment") export class ApiDateMapper implements JsonMapperMethods { static serialize(data: any): string { return data ? moment(data).format("YYYYMMDD") : data; } static deserialize(data: any) { return data ? moment(data, ["YYYYMMDD"]) : data; } deserialize(data: any) { return ApiDateMapper.deserialize(data); } serialize(data: any): string { return ApiDateMapper.serialize(data); } } describe("Moment", () => { it("should serialize moment as expected", () => { const data = new MyModel(); data.date = moment("2022-01-01"); const serializer = new JsonSerializer(); expect(serializer.map(data.date)).toEqual("20220101"); expect(serializer.map(data)).toEqual({ date: "20220101" }); serializer.removeTypeMapper("Moment"); const types = getJsonMapperTypes(); types.delete("Moment"); expect( serializer.map(data, { types }) ).toEqual({ date: moment("2022-01-01").toJSON() }); }); }); ```
/content/code_sandbox/packages/specs/json-mapper/test/integration/moment.integration.spec.ts
xml
2016-02-21T18:38:47
2024-08-14T21:19:48
tsed
tsedio/tsed
2,817
337
```xml <!-- *********************************************************************************************** Microsoft.Android.Sdk.ILLink.targets This file contains the .NET 5-specific targets to customize ILLink *********************************************************************************************** --> <Project xmlns="path_to_url"> <Target Name="_PrepareLinking" Condition=" '$(PublishTrimmed)' == 'true' " AfterTargets="ComputeResolvedFilesToPublishList" DependsOnTargets="GetReferenceAssemblyPaths;_CreatePropertiesCache"> <PropertyGroup> <TrimmerRemoveSymbols Condition=" '$(AndroidIncludeDebugSymbols)' != 'true' ">true</TrimmerRemoveSymbols> <_ExtraTrimmerArgs Condition=" '$(_EnableSerializationDiscovery)' != 'false' ">--enable-serialization-discovery $(_ExtraTrimmerArgs)</_ExtraTrimmerArgs> <!-- Used for the <ILLink DumpDependencies="$(_TrimmerDumpDependencies)" /> value: path_to_url#L150 --> <_TrimmerDumpDependencies Condition=" '$(LinkerDumpDependencies)' == 'true' ">true</_TrimmerDumpDependencies> <_AndroidLinkerCustomStepAssembly>$(MSBuildThisFileDirectory)..\tools\Microsoft.Android.Sdk.ILLink.dll</_AndroidLinkerCustomStepAssembly> <_ProguardProjectConfiguration Condition=" '$(AndroidLinkTool)' != '' ">$(IntermediateOutputPath)proguard\proguard_project_references.cfg</_ProguardProjectConfiguration> </PropertyGroup> <ItemGroup> <RuntimeHostConfigurationOption Include="Android.Runtime.AndroidEnvironment.VSAndroidDesignerIsEnabled" Condition="'$(VSAndroidDesigner)' != ''" Value="$(VSAndroidDesigner)" Trim="true" /> <!-- Used for the <ILLink CustomData="@(_TrimmerCustomData)" /> value: path_to_url#L147 --> <_TrimmerCustomData Include="AndroidHttpClientHandlerType" Value="$(AndroidHttpClientHandlerType)" /> <_TrimmerCustomData Include="AndroidCustomViewMapFile" Value="$(_OuterCustomViewMapFile)" /> <_TrimmerCustomData Include="XATargetFrameworkDirectories" Value="$(_XATargetFrameworkDirectories)" /> <_TrimmerCustomData Condition=" '$(_ProguardProjectConfiguration)' != '' " Include="ProguardConfiguration" Value="$(_ProguardProjectConfiguration)" /> <!-- Used for the <ILLink CustomSteps="@(_TrimmerCustomSteps)" /> value: path_to_url#L131 --> <!-- add our custom steps --> <!-- Custom steps that run before MarkStep --> <_TrimmerCustomSteps Include="$(_AndroidLinkerCustomStepAssembly)" BeforeStep="MarkStep" Type="Microsoft.Android.Sdk.ILLink.SetupStep" /> <!-- Custom MarkHandlers that run during MarkStep --> <_TrimmerCustomSteps Include="$(_AndroidLinkerCustomStepAssembly)" Type="Microsoft.Android.Sdk.ILLink.PreserveSubStepDispatcher" /> <_TrimmerCustomSteps Include="$(_AndroidLinkerCustomStepAssembly)" Type="MonoDroid.Tuner.MarkJavaObjects" /> <_TrimmerCustomSteps Include="$(_AndroidLinkerCustomStepAssembly)" Type="MonoDroid.Tuner.PreserveJavaExceptions" /> <_TrimmerCustomSteps Include="$(_AndroidLinkerCustomStepAssembly)" Type="MonoDroid.Tuner.PreserveApplications" /> <_TrimmerCustomSteps Include="$(_AndroidLinkerCustomStepAssembly)" Type="Microsoft.Android.Sdk.ILLink.PreserveRegistrations" /> <_TrimmerCustomSteps Include="$(_AndroidLinkerCustomStepAssembly)" Type="Microsoft.Android.Sdk.ILLink.PreserveJavaInterfaces" /> <_TrimmerCustomSteps Include="$(_AndroidLinkerCustomStepAssembly)" Type="MonoDroid.Tuner.FixAbstractMethodsStep" /> <!-- Custom steps that run after MarkStep --> <_TrimmerCustomSteps Condition=" '$(_ProguardProjectConfiguration)' != '' " Include="$(_AndroidLinkerCustomStepAssembly)" AfterStep="CleanStep" Type="Mono.Linker.Steps.GenerateProguardConfiguration" /> <_TrimmerCustomSteps Condition=" '$(AndroidAddKeepAlives)' == 'true' " Include="$(_AndroidLinkerCustomStepAssembly)" AfterStep="CleanStep" Type="MonoDroid.Tuner.AddKeepAlivesStep" /> <!-- Custom steps that run after CleanStep --> <_TrimmerCustomSteps Include="$(_AndroidLinkerCustomStepAssembly)" AfterStep="CleanStep" Type="MonoDroid.Tuner.StripEmbeddedLibraries" /> <_TrimmerCustomSteps Condition=" '$(AndroidLinkResources)' == 'true' " Include="$(_AndroidLinkerCustomStepAssembly)" AfterStep="CleanStep" Type="MonoDroid.Tuner.RemoveResourceDesignerStep" /> <_TrimmerCustomSteps Condition=" '$(AndroidLinkResources)' == 'true' " Include="$(_AndroidLinkerCustomStepAssembly)" AfterStep="CleanStep" Type="MonoDroid.Tuner.GetAssembliesStep" /> <_TrimmerCustomSteps Condition=" '$(AndroidUseDesignerAssembly)' == 'true' " Include="$(_AndroidLinkerCustomStepAssembly)" BeforeStep="MarkStep" Type="MonoDroid.Tuner.FixLegacyResourceDesignerStep" /> <_PreserveLists Include="$(MSBuildThisFileDirectory)..\PreserveLists\*.xml" /> <TrimmerRootDescriptor Condition=" '@(ResolvedFileToPublish->Count())' != '0' and '%(Filename)' != '' " Include="@(_PreserveLists)" /> <TrimmerRootDescriptor Include="@(LinkDescription)" /> </ItemGroup> </Target> <Target Name="_FixRootAssembly" AfterTargets="PrepareForILLink"> <ItemGroup> <TrimmerRootAssembly Update="@(TrimmerRootAssembly)" Condition=" '%(RootMode)' == 'EntryPoint' " RootMode="All" /> </ItemGroup> </Target> <Target Name="_LinkAssemblies" DependsOnTargets="_ResolveAssemblies;_CreatePackageWorkspace;$(_BeforeLinkAssemblies);_GenerateJniMarshalMethods;_LinkAssembliesNoShrink" /> <Target Name="_TouchAndroidLinkFlag" AfterTargets="ILLink" Condition=" '$(PublishTrimmed)' == 'true' and Exists('$(_LinkSemaphore)') " Inputs="$(_LinkSemaphore)" Outputs="$(_AndroidLinkFlag)"> <!-- This file is an input for _RemoveRegisterAttribute --> <Touch Files="$(_AndroidLinkFlag)" AlwaysCreate="true" /> </Target> </Project> ```
/content/code_sandbox/src/Xamarin.Android.Build.Tasks/Microsoft.Android.Sdk/targets/Microsoft.Android.Sdk.ILLink.targets
xml
2016-03-30T15:37:14
2024-08-16T19:22:13
android
dotnet/android
1,905
1,420
```xml import { Page } from "@playwright/test"; interface ParamInfo { name: string; value: string | null; } export interface QueryTestScenario { ruleIds: string[]; description: string; testPageUrl: string; // url with query param string expectedQueryParams: Array<ParamInfo>; unexpectedParams?: Array<ParamInfo["name"]>; pageActions?: (page: Page) => Promise<void>; } const scenarios: QueryTestScenario[] = [ // { // description: "Adding multiple query params when no prior params", // ruleIds: ["QueryParam_3"], // testPageUrl: "path_to_url", // expectedQueryParams: [ // { name: "ping", value: "updatedPong" }, // { name: "foo1", value: "bar1" }, // ], // }, // { // description: "Adding multiple query params when other params exist", // ruleIds: ["QueryParam_3"], // testPageUrl: "path_to_url", // expectedQueryParams: [ // { name: "ping", value: "updatedPong" }, // { name: "foo1", value: "bar1" }, // { name: "foo", value: "bar" }, // ], // }, // { // description: "Adding multiple query params when same param in original request", // ruleIds: ["QueryParam_3"], // testPageUrl: "path_to_url", // expectedQueryParams: [ // { name: "ping", value: "updatedPong" }, // { name: "foo1", value: "bar1" }, // ], // }, // { // description: "Adding one query param to document", // ruleIds: ["QueryParam_2"], // testPageUrl: "path_to_url", // expectedQueryParams: [{ name: "foo", value: "bar" }], // }, { description: "Should not affect query param if already there", ruleIds: ["QueryParam_2"], testPageUrl: "path_to_url", expectedQueryParams: [{ name: "foo", value: "bar" }], }, // { // description: "Should update query param value if already there", // ruleIds: ["QueryParam_2"], // testPageUrl: "path_to_url", // expectedQueryParams: [{ name: "foo", value: "bar" }], // }, // { // description: "Should append to existing query params", // ruleIds: ["QueryParam_2"], // testPageUrl: "path_to_url", // expectedQueryParams: [ // { name: "foo", value: "bar" }, // { name: "foo1", value: "bar1" }, // ], // }, // { // description: "Should remove query param if present", // ruleIds: ["QueryParam_4"], // testPageUrl: "path_to_url", // unexpectedParams: ["foo"], // expectedQueryParams: [], // }, // { // description: "Should remove query param even if it has no value", // ruleIds: ["QueryParam_4"], // testPageUrl: "path_to_url", // unexpectedParams: ["foo"], // expectedQueryParams: [], // }, // { // description: "Remove should not affect other params", // ruleIds: ["QueryParam_4"], // testPageUrl: "path_to_url", // unexpectedParams: ["foo"], // expectedQueryParams: [{ name: "foo1", value: "bar1" }], // }, { description: "Remove should not apply if param not present", ruleIds: ["QueryParam_4"], testPageUrl: "path_to_url", unexpectedParams: [], expectedQueryParams: [ { name: "foo1", value: "bar1" }, { name: "foo2", value: "bar2" }, ], }, { description: "Remove all when no param exists", ruleIds: ["QueryParam_4"], testPageUrl: "path_to_url", unexpectedParams: [], expectedQueryParams: [], }, // { // description: "Remove all when one param exists", // ruleIds: ["QueryParam_4"], // testPageUrl: "path_to_url", // unexpectedParams: ["foo"], // expectedQueryParams: [], // }, // { // description: "Remove all when one param without value exists", // ruleIds: ["QueryParam_4"], // testPageUrl: "path_to_url", // unexpectedParams: ["foo"], // expectedQueryParams: [], // }, // { // description: "Remove all when multiple params (without value) exist", // ruleIds: ["QueryParam_4"], // testPageUrl: "path_to_url", // unexpectedParams: ["foo", "bar", "baz"], // expectedQueryParams: [], // }, // { // description: "Remove all when multiple params of different types exist", // ruleIds: ["QueryParam_4"], // testPageUrl: "path_to_url", // unexpectedParams: ["foo", "bar", "baz"], // expectedQueryParams: [], // }, { description: "Remove all when should not apply on a separate page", ruleIds: ["QueryParam_4"], testPageUrl: "path_to_url", unexpectedParams: [], expectedQueryParams: [ { name: "foo", value: "foo1" }, { name: "bar", value: "bar1" }, { name: "baz", value: "baz1" }, ], }, ]; export default scenarios; ```
/content/code_sandbox/browser-extension/mv3/tests/rules/query/testScenarios.ts
xml
2016-12-01T04:36:06
2024-08-16T19:12:19
requestly
requestly/requestly
2,121
1,327
```xml /* * Squidex Headless CMS * * @license */ import { Injectable } from '@angular/core'; import { combineLatest } from 'rxjs'; import { distinctUntilChanged, filter, map, tap } from 'rxjs/operators'; import { debug, hasAnyLink, shareSubscribed, State, Types } from '@app/framework'; import { UIService } from '../services/ui.service'; import { UsersService } from '../services/users.service'; type Settings = { canCreateApps?: boolean; canCreateTeams?: boolean; [key: string]: any }; interface Snapshot { // All common settings. settingsCommon?: Settings | null; // All shared app settings. settingsAppShared?: Settings | null; // All user app settings. settingsAppUser?: Settings | null; // Indicates if the user can read events. canReadEvents?: boolean; // Indicates if the user can read users. canReadUsers?: boolean; // Indicates if the user can restore backups. canRestore?: boolean; // Indicates if the user can use at least one admin resource. canUseAdminResource?: boolean; // The app name. appName?: string; } @Injectable({ providedIn: 'root', }) export class UIState extends State<Snapshot> { public settings = this.project(mergeSettings); public settingsCommon = this.project(x => x.settingsCommon); public settingsShared = this.project(x => x.settingsAppShared).pipe(filter(x => !!x)); public settingsUser = this.project(x => x.settingsAppUser).pipe(filter(x => !!x)); public canReadEvents = this.project(x => x.canReadEvents === true); public canReadUsers = this.project(x => x.canReadUsers === true); public canRestore = this.project(x => x.canRestore === true); public canUseAdminResource = this.project(x => x.canRestore === true || x.canReadUsers === true || x.canReadEvents === true); public get<T>(path: string, defaultValue: T) { return this.settings.pipe(map(x => getValue(x, path, defaultValue)), distinctUntilChanged()); } public getCommon<T>(path: string, defaultValue: T) { return this.settingsCommon.pipe(filter(x => x !== undefined), map(x => getValue(x, path, defaultValue)), distinctUntilChanged()); } public getAppShared<T>(path: string, defaultValue: T) { return this.settingsShared.pipe(filter(x => x !== undefined), map(x => getValue(x, path, defaultValue)), distinctUntilChanged()); } public getAppUser<T>(path: string, defaultValue: T) { return this.settingsUser.pipe(filter(x => x !== undefined), map(x => getValue(x, path, defaultValue)), distinctUntilChanged()); } constructor( private readonly uiService: UIService, private readonly usersService: UsersService, ) { super({}); debug(this, 'settings'); } public load() { return combineLatest([this.loadCommon(), this.loadResources()]); } public loadApp(appName: string) { return combineLatest([this.loadAppShared(appName), this.loadAppUser(appName)]); } private loadAppUser(appName: string) { return this.uiService.getAppUserSettings(appName).pipe( tap(settingsAppUser => { this.next({ settingsAppUser, appName }, 'Loading App User Done'); }), shareSubscribed(undefined, { throw: true })); } private loadAppShared(appName: string) { return this.uiService.getAppSharedSettings(appName).pipe( tap(settingsAppShared => { this.next({ settingsAppShared, appName }, 'Loading App Shared Done'); }), shareSubscribed(undefined, { throw: true })); } private loadCommon() { return this.uiService.getCommonSettings().pipe( tap(payload => { this.next({ settingsCommon: payload }, 'Loading Common Done'); }), shareSubscribed(undefined, { throw: true })); } private loadResources() { return this.usersService.getResources().pipe( tap(payload => { this.next({ canReadEvents: hasAnyLink(payload, 'admin/events'), canReadUsers: hasAnyLink(payload, 'admin/users'), canRestore: hasAnyLink(payload, 'admin/restore'), }, 'Loading Resources Done'); }), shareSubscribed(undefined, { throw: true })); } public setCommon(path: string, value: any) { const { key, current, root } = getContainer(this.snapshot.settingsCommon, path); if (current && key) { this.uiService.putCommonSetting(path, value).subscribe(); current[key] = value; this.next({ settingsCommon: root }, 'Set Common'); } } public setAppUser(path: string, value: any) { const { key, current, root } = getContainer(this.snapshot.settingsAppUser, path); if (current && key) { this.uiService.putAppUserSetting(this.appName, path, value).subscribe(); current[key] = value; this.next({ settingsAppUser: root }, 'Set App user'); } } public setAppShared(path: string, value: any) { const { key, current, root } = getContainer(this.snapshot.settingsAppShared, path); if (current && key) { this.uiService.putAppSharedSetting(this.appName, path, value).subscribe(); current[key] = value; this.next({ settingsAppShared: root }, 'Set App Shared'); } } public remove(path: string) { return this.removeCommon(path) || this.removeAppUser(path) || this.removeAppShared(path); } public removeCommon(path: string) { const { key, current, root } = getContainer(this.snapshot.settingsCommon, path); if (current && key && current[key]) { this.uiService.deleteCommonSetting(path).subscribe(); delete current[key]; this.next({ settingsCommon: root }, 'Remove Common'); return true; } return false; } public removeAppUser(path: string) { const { key, current, root } = getContainer(this.snapshot.settingsAppUser, path); if (current && key && current[key]) { this.uiService.deleteAppUserSetting(this.appName, path).subscribe(); delete current[key]; this.next({ settingsAppUser: root }, 'Remove App User'); return true; } return false; } public removeAppShared(path: string) { const { key, current, root } = getContainer(this.snapshot.settingsAppShared, path); if (current && key && current[key]) { this.uiService.deleteAppSharedSetting(this.appName, path).subscribe(); delete current[key]; this.next({ settingsAppShared: root }, 'Remove App Shared'); return true; } return false; } private get appName() { return this.snapshot.appName!; } } function getValue<T>(setting: Settings | undefined | null, path: string, defaultValue: T) { if (!setting) { return defaultValue; } const segments = path.split('.'); let current = setting; for (const segment of segments) { const temp = current[segment]; if (temp) { current[segment] = temp; } else { return defaultValue; } current = temp; } return <T><any>current; } function getContainer(settings: Settings | undefined | null, path: string) { const segments = path.split('.'); let current = { ...settings }; const root = current; if (segments.length > 0) { for (let i = 0; i < segments.length - 1; i++) { const segment = segments[i]; let temp = current[segment]; if (!temp) { temp = {}; } else { temp = { ...temp }; } current[segment] = temp; if (!Types.isObject(temp)) { return { key: null, current: null, root: null }; } current = temp; } } return { key: segments[segments.length - 1], current, root }; } function mergeSettings(state: Snapshot): Settings { const result = {}; Types.mergeInto(result, state.settingsCommon); Types.mergeInto(result, state.settingsAppShared); Types.mergeInto(result, state.settingsAppUser); return result; } ```
/content/code_sandbox/frontend/src/app/shared/state/ui.state.ts
xml
2016-08-29T05:53:40
2024-08-16T17:39:38
squidex
Squidex/squidex
2,222
1,821
```xml <?xml version="1.0" encoding="UTF-8"?> <definitions id="taskAssigneeExample" xmlns="path_to_url" xmlns:activiti="path_to_url" targetNamespace="Examples"> <process id="HistoricTaskInstanceTest"> <startEvent id="start" /> <sequenceFlow id="flow1" sourceRef="start" targetRef="task" /> <userTask id="task" name="Clean up" activiti:formKey="#{formKeyVar}"> <documentation> Schedule an engineering meeting for next week with the new hire. </documentation> <humanPerformer> <resourceAssignmentExpression> <formalExpression>kermit</formalExpression> </resourceAssignmentExpression> </humanPerformer> </userTask> <sequenceFlow id="flow2" sourceRef="task" targetRef="end" /> <endEvent id="end" /> </process> </definitions> ```
/content/code_sandbox/modules/flowable5-test/src/test/resources/org/activiti/engine/test/history/HistoricTaskInstanceTest.testHistoricTaskInstance.bpmn20.xml
xml
2016-10-13T07:21:43
2024-08-16T15:23:14
flowable-engine
flowable/flowable-engine
7,715
217
```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="node"/> import { Buffer } from 'buffer'; /** * Returns Acanthus mollis. * * ## Notes * * - This function synchronously reads data from disk for each invocation. Such behavior is intentional and so is the avoidance of `require`. We assume that invocations are infrequent, and we want to avoid the `require` cache. This means that we allow data to be garbage collected and a user is responsible for explicitly caching data. * * * @throws unable to read data * @returns image * * @example * var img = image(); * // returns <Buffer> */ declare function image(): Buffer; // EXPORTS // export = image; ```
/content/code_sandbox/lib/node_modules/@stdlib/datasets/img-acanthus-mollis/docs/types/index.d.ts
xml
2016-03-24T04:19:52
2024-08-16T09:03:19
stdlib
stdlib-js/stdlib
4,266
204
```xml import { SchemaOf, string as yupString } from 'yup'; type ValidationData = { existingNames: string[]; isEdit: boolean; originalName?: string; }; export function appNameValidation( validationData?: ValidationData ): SchemaOf<string> { return yupString() .required('This field is required.') .test( 'is-unique', 'An application with the same name already exists inside the selected namespace.', (appName) => { if (!validationData || !appName) { return true; } // if creating, check if the name is unique if (!validationData.isEdit) { return !validationData.existingNames.includes(appName); } // if editing, the original name will be in the list of existing names // remove it before checking if the name is unique const updatedExistingNames = validationData.existingNames.filter( (name) => name !== validationData.originalName ); return !updatedExistingNames.includes(appName); } ) .test( 'is-valid', "This field must consist of lower case alphanumeric characters or '-', contain at most 63 characters, start with an alphabetic character, and end with an alphanumeric character (e.g. 'my-name', or 'abc-123').", (appName) => { if (!appName) { return true; } return /^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/g.test(appName); } ); } ```
/content/code_sandbox/app/react/kubernetes/applications/components/NameFormSection/nameValidation.ts
xml
2016-05-19T20:15:28
2024-08-16T19:15:14
portainer
portainer/portainer
30,083
335
```xml export enum FileUploadType { Direct = 0, Azure = 1, } ```
/content/code_sandbox/libs/common/src/platform/enums/file-upload-type.enum.ts
xml
2016-03-09T23:14:01
2024-08-16T15:07:51
clients
bitwarden/clients
8,877
20
```xml export function AppGlobalStyles() { return null } ```
/content/code_sandbox/packages/components/src/components/AppGlobalStyles.tsx
xml
2016-11-30T23:24:21
2024-08-16T00:24:59
devhub
devhubapp/devhub
9,652
13
```xml export function GetAssociatedEncryptionDataForRealtimeMessage(metadata: { version: number authorAddress: string timestamp: number }): string { return `${metadata.version}.${metadata.authorAddress}.${metadata.timestamp}` } export function GetAssociatedEncryptionDataForComment(metadata: { authorAddress: string; markId: string }): string { return `${metadata.authorAddress}.${metadata.markId}` } ```
/content/code_sandbox/packages/docs-core/lib/UseCase/GetAdditionalEncryptionData.ts
xml
2016-06-08T11:16:51
2024-08-16T14:14:27
WebClients
ProtonMail/WebClients
4,300
82
```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 { DataType, OutputPolicy } from '@stdlib/types/ndarray'; /** * Resolves the output ndarray data type for a unary function. * * @param dtype - input ndarray data type * @param policy - output ndarray data type policy * @returns output ndarray data type * * @example * var dt = outputDataType( 'float64', 'complex_floating_point' ); * // returns <string> */ declare function outputDataType( dtype: DataType, policy: OutputPolicy | DataType ): DataType; // EXPORTS // export = outputDataType; ```
/content/code_sandbox/lib/node_modules/@stdlib/ndarray/base/unary-output-dtype/docs/types/index.d.ts
xml
2016-03-24T04:19:52
2024-08-16T09:03:19
stdlib
stdlib-js/stdlib
4,266
183
```xml import { PnpmError } from '@pnpm/error' export class BadTarballError extends PnpmError { public expectedSize: number public receivedSize: number constructor ( opts: { attempts?: number expectedSize: number receivedSize: number tarballUrl: string } ) { const message = `Actual size (${opts.receivedSize}) of tarball (${opts.tarballUrl}) did not match the one specified in 'Content-Length' header (${opts.expectedSize})` super('BAD_TARBALL_SIZE', message, { attempts: opts?.attempts, }) this.expectedSize = opts.expectedSize this.receivedSize = opts.receivedSize } } ```
/content/code_sandbox/fetching/tarball-fetcher/src/errorTypes/BadTarballError.ts
xml
2016-01-28T07:40:43
2024-08-16T12:38:47
pnpm
pnpm/pnpm
28,869
159
```xml <?xml version="1.0" encoding="UTF-8" standalone="no"?> <vector xmlns:android="path_to_url" android:height="24dp" android:viewportHeight="24.0" android:viewportWidth="24.0" android:width="24dp"> <path android:fillColor="#000000" android:pathData="M19,6.41L17.59,5 12,10.59 6.41,5 5,6.41 10.59,12 5,17.59 6.41,19 12,13.41 17.59,19 19,17.59 13.41,12z"/> </vector> ```
/content/code_sandbox/app/src/main/res/drawable/ic_clear_black.xml
xml
2016-04-09T15:47:45
2024-08-14T04:30:04
MusicLake
caiyonglong/MusicLake
2,654
152
```xml import * as React from 'react'; import { Text } from '@fluentui/react/lib/Text'; export const TextBlockExample = () => ( <> <Text block>I am block text.</Text> <Text block>Since block is specified,</Text> <Text block>every block of text</Text> <Text block>gets its own line.</Text> </> ); ```
/content/code_sandbox/packages/react-examples/src/react/Text/Text.Block.Example.tsx
xml
2016-06-06T15:03:44
2024-08-16T18:49:29
fluentui
microsoft/fluentui
18,221
84
```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. --> <paths> <external-path name="external_files" path="." /> </paths> ```
/content/code_sandbox/apps/android_camera/app/src/main/res/xml/provider_paths.xml
xml
2016-10-12T22:20:28
2024-08-16T11:24:08
tvm
apache/tvm
11,517
92
```xml import * as React from 'react'; export enum enumSample { HELLO = 'hi', BYE = 'bye' } /** StatelessWithDefaultProps props */ export interface StatelessWithDefaultPropsProps { /** * sample with default value * @default hello */ sampleDefaultFromJSDoc: 'hello' | 'goodbye'; /** sampleTrue description */ sampleTrue?: boolean; /** sampleFalse description */ sampleFalse?: boolean; /** sampleEnum description */ sampleEnum?: enumSample; /** sampleString description */ sampleString?: string; /** sampleObject description */ sampleObject?: { [key: string]: any }; /** sampleNull description */ sampleNull?: null; /** sampleUndefined description */ sampleUndefined?: any; /** sampleNumber description */ sampleNumber?: number; } /** StatelessWithDefaultProps description */ export function StatelessWithDefaultProps({ sampleEnum = enumSample.HELLO, sampleFalse = false, sampleNull = null, sampleNumber = -1, // prettier-ignore sampleObject = { a: '1', b: 2, c: true, d: false, e: undefined, f: null, g: { a: '1' } }, sampleString = 'hello', sampleTrue = true, sampleUndefined }: StatelessWithDefaultPropsProps) { return <div>test</div>; } ```
/content/code_sandbox/src/__tests__/data/StatelessWithDestructuredProps.tsx
xml
2016-05-06T14:40:29
2024-08-15T13:51:56
react-docgen-typescript
styleguidist/react-docgen-typescript
1,176
306
```xml import * as React from 'react'; import { TriangleDownIcon, TriangleUpIcon } from '@fluentui/react-icons-northstar'; import { pxToRem } from '@fluentui/react-northstar'; export const renderSidebarTitle = (Component, { content, expanded, open, hasSubtree, styles, ...restProps }) => { return ( <Component expanded={expanded} hasSubtree={hasSubtree} styles={{ ...styles, ...(!hasSubtree && { fontSize: pxToRem(10), marginLeft: pxToRem(16) }) }} {...restProps} > {content} {hasSubtree ? expanded ? <TriangleDownIcon /> : <TriangleUpIcon /> : null} </Component> ); }; ```
/content/code_sandbox/packages/fluentui/docs/src/components/Sidebar/SidebarTitle.tsx
xml
2016-06-06T15:03:44
2024-08-16T18:49:29
fluentui
microsoft/fluentui
18,221
166
```xml <vector xmlns:android="path_to_url" android:width="48dp" android:height="48dp" android:viewportWidth="24" android:viewportHeight="24"> <path android:fillColor="#FFFFFFFF" android:pathData="M19.14,12.94c0.04,-0.3 0.06,-0.61 0.06,-0.94c0,-0.32 -0.02,-0.64 -0.07,-0.94l2.03,-1.58c0.18,-0.14 0.23,-0.41 0.12,-0.61l-1.92,-3.32c-0.12,-0.22 -0.37,-0.29 -0.59,-0.22l-2.39,0.96c-0.5,-0.38 -1.03,-0.7 -1.62,-0.94L14.4,2.81c-0.04,-0.24 -0.24,-0.41 -0.48,-0.41h-3.84c-0.24,0 -0.43,0.17 -0.47,0.41L9.25,5.35C8.66,5.59 8.12,5.92 7.63,6.29L5.24,5.33c-0.22,-0.08 -0.47,0 -0.59,0.22L2.74,8.87C2.62,9.08 2.66,9.34 2.86,9.48l2.03,1.58C4.84,11.36 4.8,11.69 4.8,12s0.02,0.64 0.07,0.94l-2.03,1.58c-0.18,0.14 -0.23,0.41 -0.12,0.61l1.92,3.32c0.12,0.22 0.37,0.29 0.59,0.22l2.39,-0.96c0.5,0.38 1.03,0.7 1.62,0.94l0.36,2.54c0.05,0.24 0.24,0.41 0.48,0.41h3.84c0.24,0 0.44,-0.17 0.47,-0.41l0.36,-2.54c0.59,-0.24 1.13,-0.56 1.62,-0.94l2.39,0.96c0.22,0.08 0.47,0 0.59,-0.22l1.92,-3.32c0.12,-0.22 0.07,-0.47 -0.12,-0.61L19.14,12.94zM12,15.6c-1.98,0 -3.6,-1.62 -3.6,-3.6s1.62,-3.6 3.6,-3.6s3.6,1.62 3.6,3.6S13.98,15.6 12,15.6z"/> </vector> ```
/content/code_sandbox/app/src/main/res/drawable/ic_settings_black_48dp.xml
xml
2016-04-20T21:29:44
2024-08-16T16:14:46
mpv-android
mpv-android/mpv-android
1,964
753
```xml import {descriptorOf, Store} from "@tsed/core"; import {Agenda} from "./agenda.js"; import {Every} from "./every.js"; describe("@Every()", () => { it("should set metadata", () => { @Agenda() class Test { @Every("60 seconds") testEveryDecorator() { // test } @Every("* * * * *") testEveryDecorator2() { // test 2 } } const store = Store.from(Test); expect(store.get("agenda").define).toEqual({ testEveryDecorator: {}, testEveryDecorator2: {} }); expect(store.get("agenda").every).toEqual({ testEveryDecorator: { interval: "60 seconds" }, testEveryDecorator2: { interval: "* * * * *" } }); }); }); ```
/content/code_sandbox/packages/third-parties/agenda/src/decorators/every.spec.ts
xml
2016-02-21T18:38:47
2024-08-14T21:19:48
tsed
tsedio/tsed
2,817
187
```xml export default function(number: number, index: number): [string, string] { return [ ['', ''], ['%s ', '%s '], ['1 ', '1 '], ['%s ', '%s '], ['1 ', '1 '], ['%s ', '%s '], ['1 ', '1 '], ['%s ', '%s '], ['1 ', '1 '], ['%s ', '%s '], ['1 ', '1 '], ['%s ', '%s '], ['1 ', '1 '], ['%s ', '%s '], ][index] as [string, string]; } ```
/content/code_sandbox/src/lang/my.ts
xml
2016-06-23T02:06:23
2024-08-16T02:07:26
timeago.js
hustcc/timeago.js
5,267
160
```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. --> <RelativeLayout xmlns:android="path_to_url" android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/widget"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <RelativeLayout android:id="@+id/relLayout" android:layout_width="match_parent" android:layout_height="wrap_content" android:padding="4dp" android:background="@drawable/ab_solid_dark" > <ImageView android:id="@+id/widget_pro_pic" android:layout_marginLeft="8dp" android:layout_marginStart="8dp" android:layout_marginTop="4dp" android:layout_marginRight="4dp" android:layout_marginEnd="4dp" android:layout_width="30dp" android:layout_height="30dp" android:src="@mipmap/ic_launcher" android:layout_gravity="center_vertical" android:background="?android:selectableItemBackground" /> <TextView android:id="@+id/textView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center" android:alpha=".6" android:text="@string/app_name" android:textSize="17sp" android:layout_toRightOf="@+id/widget_pro_pic" android:textColor="@android:color/white" android:layout_alignBottom="@+id/replyButton" android:layout_alignParentTop="true"/> <ImageButton android:id="@+id/syncButton" android:contentDescription="Sync Timeline" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toLeftOf="@+id/replyButton" android:layout_marginRight="7dp" android:alpha=".6" android:background="?android:selectableItemBackground" android:paddingBottom="3dp" android:src="@drawable/drawer_sync_dark" android:scaleX=".85" android:scaleY=".85" android:layout_alignParentTop="true"/> <ImageButton android:id="@+id/replyButton" android:contentDescription="Compose New Tweet" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_marginRight="7dp" android:alpha=".6" android:background="?android:selectableItemBackground" android:paddingBottom="3dp" android:src="@drawable/ic_send_dark" android:scaleX=".85" android:scaleY=".85" android:layout_alignParentTop="true"/> </RelativeLayout> <ListView android:id="@+id/widgetList" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/dark_drawer"> </ListView> </LinearLayout> </RelativeLayout> ```
/content/code_sandbox/app/src/main/res/layout/widget_dark.xml
xml
2016-07-08T03:18:40
2024-08-14T02:54:51
talon-for-twitter-android
klinker24/talon-for-twitter-android
1,189
711
```xml /* * Wire * * This program is free software: you can redistribute it and/or modify * (at your option) any later version. * * 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, see path_to_url * */ /** @see path_to_url */ export enum PermissionState { DEFAULT = 'default', DENIED = 'denied', GRANTED = 'granted', IGNORED = 'ignored', UNSUPPORTED = 'unsupported', } ```
/content/code_sandbox/src/script/notification/PermissionState.ts
xml
2016-07-21T15:34:05
2024-08-16T11:40:13
wire-webapp
wireapp/wire-webapp
1,125
137
```xml <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="path_to_url" android:id="@+id/ly_main_actionbar" android:layout_width="match_parent" android:layout_height="32dp" android:background="@color/spinner_bg"> <ImageView android:id="@+id/img_back" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:paddingTop="10dp" android:paddingRight="10dp" android:paddingBottom="10dp" android:src="@mipmap/back" /> <TextView android:id="@+id/title" android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_marginLeft="10dp" android:layout_toRightOf="@+id/img_back" android:gravity="center_vertical" android:text="title" android:textColor="@color/white_text_color" android:textSize="16sp" /> <TextView android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_marginLeft="10dp" android:layout_toRightOf="@+id/title" android:gravity="center_vertical" android:text="Demo" android:textColor="@color/gray_color" android:textSize="12sp" /> </RelativeLayout> ```
/content/code_sandbox/app/src/main/res/layout/layout_title_bar.xml
xml
2016-04-10T07:40:11
2024-08-16T08:32:36
BaseRecyclerViewAdapterHelper
CymChad/BaseRecyclerViewAdapterHelper
24,251
309