text stringlengths 9 39.2M | dir stringlengths 26 295 | lang stringclasses 185
values | created_date timestamp[us] | updated_date timestamp[us] | repo_name stringlengths 1 97 | repo_full_name stringlengths 7 106 | star int64 1k 183k | len_tokens int64 1 13.8M |
|---|---|---|---|---|---|---|---|---|
```xml
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="16.0" DefaultTargets="Build" xmlns="path_to_url">
<Import Project="..\packages\Microsoft.Windows.CppWinRT.2.0.200316.3\build\native\Microsoft.Windows.CppWinRT.props" Condition="Exists('..\packages\Microsoft.Windows.CppWinRT.2.0.200316.3\build\native\Microsoft.Windows.CppWinRT.props')" />
<PropertyGroup Label="Globals">
<CppWinRTOptimized>true</CppWinRTOptimized>
<CppWinRTRootNamespaceAutoMerge>true</CppWinRTRootNamespaceAutoMerge>
<MinimalCoreWin>true</MinimalCoreWin>
<ProjectGuid>{dc5834a3-ce81-47ed-84e4-69a487ac0ae1}</ProjectGuid>
<ProjectName>ConfigExample</ProjectName>
<RootNamespace>ConfigExample</RootNamespace>
<DefaultLanguage>en-US</DefaultLanguage>
<MinimumVisualStudioVersion>16.0</MinimumVisualStudioVersion>
<AppContainerApplication>true</AppContainerApplication>
<ApplicationType>Windows Store</ApplicationType>
<ApplicationTypeRevision>10.0</ApplicationTypeRevision>
<WindowsTargetPlatformVersion Condition=" '$(WindowsTargetPlatformVersion)' == '' ">10.0.18362.0</WindowsTargetPlatformVersion>
<WindowsTargetPlatformMinVersion>10.0.16299.0</WindowsTargetPlatformMinVersion>
<PackageCertificateKeyFile>ConfigExample_TemporaryKey.pfx</PackageCertificateKeyFile>
<PackageCertificateThumbprint>4123BEDE943C0AF1F37750C9FE49E68B87704931</PackageCertificateThumbprint>
<PackageCertificatePassword>password</PackageCertificatePassword>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|ARM">
<Configuration>Debug</Configuration>
<Platform>ARM</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|ARM64">
<Configuration>Debug</Configuration>
<Platform>ARM64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|ARM">
<Configuration>Release</Configuration>
<Platform>ARM</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|ARM64">
<Configuration>Release</Configuration>
<Platform>ARM64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Debug'" Label="Configuration">
<UseDebugLibraries>true</UseDebugLibraries>
<LinkIncremental>true</LinkIncremental>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Release'" Label="Configuration">
<UseDebugLibraries>false</UseDebugLibraries>
<WholeProgramOptimization>true</WholeProgramOptimization>
<LinkIncremental>false</LinkIncremental>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets">
<Import Project="PropertySheet.props" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<ItemDefinitionGroup>
<ClCompile>
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
<PrecompiledHeaderOutputFile>$(IntDir)pch.pch</PrecompiledHeaderOutputFile>
<WarningLevel>Level4</WarningLevel>
<AdditionalOptions>%(AdditionalOptions) /bigobj</AdditionalOptions>
<DisableSpecificWarnings>4453;28204</DisableSpecificWarnings>
</ClCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)'=='Debug'">
<ClCompile>
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)'=='Release'">
<ClCompile>
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
</ItemDefinitionGroup>
<ItemGroup>
<ClInclude Include="ReactPackageProvider.h" />
<ClInclude Include="AutolinkedNativeModules.g.h" />
<ClInclude Include="pch.h" />
<ClInclude Include="App.h">
<DependentUpon>App.xaml</DependentUpon>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ApplicationDefinition Include="App.xaml">
<SubType>Designer</SubType>
</ApplicationDefinition>
</ItemGroup>
<ItemGroup>
<AppxManifest Include="Package.appxmanifest">
<SubType>Designer</SubType>
</AppxManifest>
</ItemGroup>
<ItemGroup>
<Image Include="Assets\LockScreenLogo.scale-200.png" />
<Image Include="Assets\SplashScreen.scale-200.png" />
<Image Include="Assets\Square150x150Logo.scale-200.png" />
<Image Include="Assets\Square44x44Logo.scale-200.png" />
<Image Include="Assets\Square44x44Logo.targetsize-24_altform-unplated.png" />
<Image Include="Assets\StoreLogo.png" />
<Image Include="Assets\Wide310x150Logo.scale-200.png" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="ReactPackageProvider.cpp" />
<ClCompile Include="AutolinkedNativeModules.g.cpp" />
<ClCompile Include="pch.cpp">
<PrecompiledHeader>Create</PrecompiledHeader>
</ClCompile>
<ClCompile Include="App.cpp">
<DependentUpon>App.xaml</DependentUpon>
</ClCompile>
<ClCompile Include="$(GeneratedFilesDir)module.g.cpp" />
</ItemGroup>
<ItemGroup>
<Midl Include="App.idl">
<DependentUpon>App.xaml</DependentUpon>
</Midl>
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
<None Include="PropertySheet.props" />
<Text Include="readme.txt">
<DeploymentContent>false</DeploymentContent>
</Text>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\node_modules\react-native-config\windows\RNCConfig\RNCConfig.vcxproj">
<Project>{7ccd7c20-a7ab-4927-b939-4b94c977c9f2}</Project>
</ProjectReference>
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<PropertyGroup Label="ReactNativeWindowsNodeProps">
<ReactNativeWindowsDir Condition="'$(ReactNativeWindowsDir)' == ''">$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), 'node_modules\react-native-windows\package.json'))\node_modules\react-native-windows\</ReactNativeWindowsDir>
</PropertyGroup>
<ImportGroup Label="ReactNativeWindowsNodeTargets">
<Import Project="$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppApp.props" Condition="Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppApp.props')" />
<Import Project="$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppApp.targets" Condition="Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppApp.targets')" />
</ImportGroup>
<Target Name="EnsureReactNativeWindowsNodeTargets" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references targets in your node_modules\react-native-windows folder. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppApp.props')" Text="$([System.String]::Format('$(ErrorText)', '$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppApp.props'))" />
<Error Condition="!Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppApp.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppApp.targets'))" />
</Target>
<ImportGroup Label="ExtensionTargets">
<Import Project="..\packages\Microsoft.Windows.CppWinRT.2.0.200316.3\build\native\Microsoft.Windows.CppWinRT.targets" Condition="Exists('..\packages\Microsoft.Windows.CppWinRT.2.0.200316.3\build\native\Microsoft.Windows.CppWinRT.targets')" />
<Import Project="..\packages\Microsoft.UI.Xaml.2.3.191129002\build\native\Microsoft.UI.Xaml.targets" Condition="Exists('..\packages\Microsoft.UI.Xaml.2.3.191129002\build\native\Microsoft.UI.Xaml.targets')" />
</ImportGroup>
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see path_to_url The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\packages\Microsoft.Windows.CppWinRT.2.0.200316.3\build\native\Microsoft.Windows.CppWinRT.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.Windows.CppWinRT.2.0.200316.3\build\native\Microsoft.Windows.CppWinRT.props'))" />
<Error Condition="!Exists('..\packages\Microsoft.Windows.CppWinRT.2.0.200316.3\build\native\Microsoft.Windows.CppWinRT.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.Windows.CppWinRT.2.0.200316.3\build\native\Microsoft.Windows.CppWinRT.targets'))" />
<Error Condition="!Exists('..\packages\Microsoft.UI.Xaml.2.3.191129002\build\native\Microsoft.UI.Xaml.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.UI.Xaml.2.3.191129002\build\native\Microsoft.UI.Xaml.targets'))" />
</Target>
</Project>
``` | /content/code_sandbox/Example/windows/ConfigExample/ConfigExample.vcxproj | xml | 2016-02-23T00:19:11 | 2024-08-13T06:33:50 | react-native-config | lugg/react-native-config | 4,789 | 2,593 |
```xml
import {Menu} from 'electron';
import {MenuItemId, MenuOptions} from './utils';
import {getAboutMenuItem, getExportHistoryMenuItem, getOpenFileMenuItem, getPreferencesMenuItem, getSendFeedbackMenuItem} from './common';
import {plugins} from '../plugins';
import {getAudioDevices, getDefaultInputDevice} from '../utils/devices';
import {settings} from '../common/settings';
import {defaultInputDeviceId} from '../common/constants';
import {hasMicrophoneAccess} from '../common/system-permissions';
const getCogMenuTemplate = async (): Promise<MenuOptions> => [
getAboutMenuItem(),
{
type: 'separator'
},
getPreferencesMenuItem(),
{
type: 'separator'
},
getPluginsItem(),
await getMicrophoneItem(),
{
type: 'separator'
},
getOpenFileMenuItem(),
getExportHistoryMenuItem(),
{
type: 'separator'
},
getSendFeedbackMenuItem(),
{
type: 'separator'
},
{
role: 'quit',
accelerator: 'Command+Q'
}
];
const getPluginsItem = (): MenuOptions[number] => {
const items = plugins.recordingPlugins.flatMap(plugin =>
plugin.recordServicesWithStatus.map(service => ({
label: service.title,
type: 'checkbox' as const,
checked: service.isEnabled,
click: async () => service.setEnabled(!service.isEnabled)
}))
);
return {
id: MenuItemId.plugins,
label: 'Plugins',
submenu: items,
visible: items.length > 0
};
};
const getMicrophoneItem = async (): Promise<MenuOptions[number]> => {
const devices = await getAudioDevices();
const isRecordAudioEnabled = settings.get('recordAudio');
const currentDefaultDevice = getDefaultInputDevice();
let audioInputDeviceId = settings.get('audioInputDeviceId');
if (!devices.some(device => device.id === audioInputDeviceId)) {
settings.set('audioInputDeviceId', defaultInputDeviceId);
audioInputDeviceId = defaultInputDeviceId;
}
return {
id: MenuItemId.audioDevices,
label: 'Microphone',
submenu: [
{
label: 'None',
type: 'checkbox',
checked: !isRecordAudioEnabled,
click: () => {
settings.set('recordAudio', false);
}
},
...[
{name: `System Default${currentDefaultDevice ? ` (${currentDefaultDevice.name})` : ''}`, id: defaultInputDeviceId},
...devices
].map(device => ({
label: device.name,
type: 'checkbox' as const,
checked: isRecordAudioEnabled && (audioInputDeviceId === device.id),
click: () => {
settings.set('recordAudio', true);
settings.set('audioInputDeviceId', device.id);
}
}))
],
visible: hasMicrophoneAccess()
};
};
export const getCogMenu = async () => {
return Menu.buildFromTemplate(
await getCogMenuTemplate()
);
};
``` | /content/code_sandbox/main/menus/cog.ts | xml | 2016-08-10T19:37:08 | 2024-08-16T07:01:58 | Kap | wulkano/Kap | 17,864 | 649 |
```xml
/**
* This file includes polyfills needed by Angular and is loaded before the app.
* You can add your own extra polyfills to this file.
*
* This file is divided into 2 sections:
* 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.
* 2. Application imports. Files imported after ZoneJS that should be loaded before your main
* file.
*
* The current setup is for so-called "evergreen" browsers; the last versions of browsers that
* automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera),
* Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile.
*
* Learn more in path_to_url
*/
/***************************************************************************************************
* BROWSER POLYFILLS
*/
/** IE9, IE10 and IE11 requires all of the following polyfills. **/
import 'core-js/es/array';
import 'core-js/es/date';
import 'core-js/es/function';
import 'core-js/es/map';
import 'core-js/es/math';
import 'core-js/es/number';
import 'core-js/es/object';
import 'core-js/es/parse-float';
import 'core-js/es/parse-int';
import 'core-js/es/regexp';
import 'core-js/es/set';
import 'core-js/es/string';
import 'core-js/es/symbol';
/** Evergreen browsers require these. **/
import 'core-js/es/reflect';
/***************************************************************************************************
* Zone JS is required by Angular itself.
*/
import 'zone.js'; // Included with Angular CLI.
(window as any).global = window;
/***************************************************************************************************
* APPLICATION IMPORTS
*/
/**
* Date, currency, decimal and percent pipes.
* Needed for: All but Chrome, Firefox, Edge, IE11 and Safari 10
*/
// import 'intl'; // Run `npm install --save intl`.
``` | /content/code_sandbox/ui/src/polyfills.ts | xml | 2016-10-11T08:28:23 | 2024-08-16T01:55:31 | cds | ovh/cds | 4,535 | 389 |
```xml
import FormControl from './Control';
import Form from './Form';
import FormGroup from './Group';
import ControlLabel from './Label';
import Textarea from './Textarea';
export { FormControl, ControlLabel, FormGroup, Textarea, Form };
``` | /content/code_sandbox/packages/erxes-ui/src/components/form/index.ts | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 47 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="path_to_url"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.v4.view.ViewPager
android:id="@+id/view_pager"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</RelativeLayout>
``` | /content/code_sandbox/app/src/main/res/layout/activity_main.xml | xml | 2016-09-01T13:02:40 | 2024-08-02T07:38:11 | CreditSesameRingView | HotBitmapGG/CreditSesameRingView | 1,176 | 86 |
```xml
/*
* path_to_url
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
*/
import { Response } from 'ask-sdk-model';
import { ErrorHandler } from 'ask-sdk-runtime';
import { HandlerInput } from '../../request/handler/HandlerInput';
export interface CustomSkillErrorHandler extends ErrorHandler<HandlerInput, Response> {}
``` | /content/code_sandbox/ask-sdk-core/lib/dispatcher/error/handler/CustomSkillErrorHandler.ts | xml | 2016-06-24T06:26:05 | 2024-08-14T12:39:19 | alexa-skills-kit-sdk-for-nodejs | alexa/alexa-skills-kit-sdk-for-nodejs | 3,118 | 94 |
```xml
import { itemBuilder } from '@proton/pass/lib/items/item.builder';
import { MOCK_FIELDS, MOCK_SECTIONS } from './identity.mocks';
import { buildContentSections } from './useIdentityContent';
import * as utils from './utils';
describe('`buildContentSections`', () => {
beforeEach(() => {
jest.spyOn(utils, 'getIdentityFields').mockReturnValue(MOCK_FIELDS);
jest.spyOn(utils, 'getInitialSections').mockReturnValue(MOCK_SECTIONS);
});
afterEach(() => jest.resetAllMocks());
it('should build content sections correctly', () => {
const item = itemBuilder('identity');
item.set('content', (content) => {
content.set('fullName', 'John Doe');
content.set('email', 'john@example.com');
return content;
});
const result = buildContentSections(item.data.content);
expect(result).toEqual([
{ name: 'Personal', fields: [{ ...MOCK_FIELDS.fullName, value: 'John Doe' }] },
{ name: 'Contact', fields: [{ ...MOCK_FIELDS.email, value: 'john@example.com' }] },
]);
});
it('should handle optional fields', () => {
const item = itemBuilder('identity');
item.set('content', (content) => {
content.set('fullName', 'John Doe');
content.set('email', 'john@example.com');
content.set('phoneNumber', '1234567890');
return content;
});
const result = buildContentSections(item.data.content);
expect(result[1].fields).toEqual([
{ ...MOCK_FIELDS.email, value: 'john@example.com' },
{ ...MOCK_FIELDS.phoneNumber, value: '1234567890' },
]);
});
it('should handle extra sections', () => {
const item = itemBuilder('identity');
item.set('content', (content) => {
content.set('fullName', 'John Doe');
content.set('extraSections', [
{
sectionName: 'Extra Section',
sectionFields: [
{
fieldName: 'Extra Field',
type: 'text',
data: { content: 'Extra Value' },
},
],
},
]);
return content;
});
const result = buildContentSections(item.data.content);
expect(result).toEqual([
{ name: 'Personal', fields: [{ ...MOCK_FIELDS.fullName, value: 'John Doe' }] },
{ name: 'Extra Section', fields: [{ label: 'Extra Field', value: 'Extra Value', hidden: false }] },
]);
});
it('should handle custom fields', () => {
const item = itemBuilder('identity');
item.set('content', (content) => {
content.set('email', 'john@example.com');
content.set('extraContactDetails', [
{
fieldName: 'Custom Field',
type: 'text',
data: { content: 'Custom Value' },
},
]);
return content;
});
const result = buildContentSections(item.data.content);
expect(result[0].fields).toEqual([
{ ...MOCK_FIELDS.email, value: 'john@example.com' },
{ label: 'Custom Field', value: 'Custom Value', hidden: false },
]);
});
it('should handle hidden fields', () => {
const item = itemBuilder('identity');
item.set('content', (content) => {
content.set('email', 'john@example.com');
content.set('extraContactDetails', [
{
fieldName: 'Hidden Field',
type: 'hidden',
data: { content: 'Hidden Value' },
},
]);
return content;
});
const result = buildContentSections(item.data.content);
expect(result[0].fields).toEqual([
{ ...MOCK_FIELDS.email, value: 'john@example.com' },
{ label: 'Hidden Field', value: 'Hidden Value', hidden: true },
]);
});
it('should handle empty values/sections', () => {
const item = itemBuilder('identity');
const result = buildContentSections(item.data.content);
expect(result).toEqual([]);
});
});
``` | /content/code_sandbox/packages/pass/hooks/identity/useIdentityContent.spec.ts | xml | 2016-06-08T11:16:51 | 2024-08-16T14:14:27 | WebClients | ProtonMail/WebClients | 4,300 | 874 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="path_to_url" xmlns:xsi="path_to_url"
xsi:schemaLocation="path_to_url path_to_url">
<modelVersion>4.0.0</modelVersion>
<groupId>com.baeldung</groupId>
<artifactId>spring-security-login-and-registration</artifactId>
<version>1.0.1-SNAPSHOT</version>
<name>spring-security-login-and-registration</name>
<packaging>war</packaging>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.1.0</version>
</parent>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-mail</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>
<!-- 2fa -->
<dependency>
<groupId>org.jboss.aerogear</groupId>
<artifactId>aerogear-otp-java</artifactId>
<version>${aerogear.version}</version>
<scope>compile</scope>
</dependency>
<!-- Spring Security -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
<dependency>
<groupId>org.thymeleaf.extras</groupId>
<artifactId>thymeleaf-extras-springsecurity6</artifactId>
</dependency>
<!-- Servlet -->
<dependency>
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
<version>${jakarta.servlet-api.version}</version>
</dependency>
<dependency>
<groupId>jakarta.el</groupId>
<artifactId>jakarta.el-api</artifactId>
<version>${jakarta.el.version}</version>
</dependency>
<!-- Password Validation -->
<dependency>
<groupId>org.passay</groupId>
<artifactId>passay</artifactId>
<version>${passay.version}</version>
</dependency>
<!-- Spring Data JPA dependencies -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<!-- DB dependencies -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>${mysql-connector-java.version}</version>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>${guava.version}</version>
</dependency>
<!-- User Agent parser -->
<dependency>
<groupId>com.github.ua-parser</groupId>
<artifactId>uap-java</artifactId>
<version>${uap-java.version}</version>
</dependency>
<!-- maxmind dependency -->
<dependency>
<groupId>com.maxmind.geoip2</groupId>
<artifactId>geoip2</artifactId>
<version>${geoip2.version}</version>
</dependency>
<!-- test -->
<dependency>
<groupId>io.rest-assured</groupId>
<artifactId>rest-assured</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-runner</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>net.logstash.logback</groupId>
<artifactId>logstash-logback-encoder</artifactId>
<version>${logstash-logback-encoder.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>nz.net.ultraq.thymeleaf</groupId>
<artifactId>thymeleaf-layout-dialect</artifactId>
</dependency>
</dependencies>
<build>
<finalName>spring-security-login-and-registration</finalName>
<resources>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>17</source>
<target>17</target>
</configuration>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.1.2</version>
<configuration>
<excludes>
<exclude>**/*IntegrationTest.java</exclude>
<exclude>**/*LiveTest.java</exclude>
</excludes>
<systemPropertyVariables>
<!-- <provPersistenceTarget>h2</provPersistenceTarget> -->
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>integration</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<executions>
<execution>
<phase>integration-test</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<excludes>
<exclude>**/*LiveTest.java</exclude>
</excludes>
<includes>
<include>**/*IntegrationTest.java</include>
</includes>
</configuration>
</execution>
</executions>
<configuration>
<systemPropertyVariables>
<test.mime>json</test.mime>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<properties>
<java-version>17</java-version>
<jakarta.el.version>6.0.1</jakarta.el.version>
<jakarta.servlet-api.version>6.1.0</jakarta.servlet-api.version>
<mysql-connector-java.version>8.0.32</mysql-connector-java.version>
<guava.version>32.0.0-jre</guava.version>
<passay.version>1.0</passay.version>
<logstash-logback-encoder.version>4.8</logstash-logback-encoder.version>
<aerogear.version>1.0.0</aerogear.version>
<uap-java.version>1.4.0</uap-java.version>
<geoip2.version>2.15.0</geoip2.version>
</properties>
</project>
``` | /content/code_sandbox/pom.xml | xml | 2016-03-02T09:10:48 | 2024-08-15T22:10:39 | spring-security-registration | Baeldung/spring-security-registration | 1,632 | 1,880 |
```xml
/*
* one or more contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright ownership.
*/
class Viewer {
destroy = jest.fn();
}
export default Viewer;
``` | /content/code_sandbox/operate/client/src/__mocks__/dmn-js-decision-table/lib/Viewer.ts | xml | 2016-03-20T03:38:04 | 2024-08-16T19:59:58 | camunda | camunda/camunda | 3,172 | 42 |
```xml
<!--
***********************************************************************************************
Sdk.targets
WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
created a backup copy. Incorrect changes to this file will make it
impossible to load or build your projects from the command-line or the IDE.
***********************************************************************************************
-->
<Project ToolsVersion="14.0" xmlns="path_to_url">
<Import Project="$(MSBuildThisFileDirectory)..\targets\Microsoft.NET.Sdk.Publish.targets"
Condition="Exists('$(MSBuildThisFileDirectory)..\targets\Microsoft.NET.Sdk.Publish.targets')" />
</Project>
``` | /content/code_sandbox/src/WebSdk/Publish/Sdk/Sdk.targets | xml | 2016-07-22T21:26:02 | 2024-08-16T17:23:58 | sdk | dotnet/sdk | 2,627 | 121 |
```xml
import { generateModels } from "./connectionResolver";
import {
sendContactsMessage,
sendCoreMessage,
sendProductsMessage
} from "./messageBroker";
import * as _ from "lodash";
const toMoney = value => {
return new Intl.NumberFormat().format(value);
};
const getCustomFields = async ({ subdomain }) => {
let fields: any[] = [];
for (const cardType of ["purchase"]) {
let items = await sendCoreMessage({
subdomain,
action: "fields.fieldsCombinedByContentType",
isRPC: true,
data: {
contentType: `purchases:${cardType}`
},
defaultValue: []
});
fields = [
...fields,
...items.map(f => ({
value: f.name,
name: `${cardType}:${f.label}`
}))
];
}
return fields;
};
const commonFields = [
{ value: "name", name: "Name" },
{ value: "createdAt", name: "Created at" },
{ value: "closeDate", name: "Close date" },
{ value: "description", name: "Description" },
{ value: "productsInfo", name: "Products information" },
{ value: "servicesInfo", name: "Services information" },
{ value: "assignedUsers", name: "Assigned users" },
{ value: "stageName", name: "Stage name" },
{ value: "brandName", name: "Brand name" },
{ value: "customers", name: "Customers" },
{ value: "companies", name: "Companies" },
{ value: "now", name: "Now" },
{ value: "productTotalAmount", name: "Products total amount" },
{ value: "servicesTotalAmount", name: "Services total amount" },
{ value: "totalAmount", name: "Total amount" },
{ value: "totalAmountVat", name: "Total amount vat" },
{ value: "totalAmountWithoutVat", name: "Total amount without vat" },
{ value: "discount", name: "Discount" },
{ value: "paymentCash", name: "Payment cash" },
{ value: "paymentNonCash", name: "Payment non cash" }
];
export default {
types: [
{
label: "Purchases",
type: "purchases",
subTypes: ["purchase"]
}
],
editorAttributes: async ({ subdomain }) => {
const customFields = await getCustomFields({ subdomain });
const uniqueFields = customFields.filter(
customField =>
!commonFields.some(field => field.value === customField.value)
);
return [...commonFields, ...uniqueFields];
},
replaceContent: async ({
subdomain,
data: { stageId, itemId, content, contentype, itemIds, brandId }
}) => {
const models = await generateModels(subdomain);
const stage = await models.Stages.findOne({ _id: stageId });
if (!stage) {
return "";
}
let collection;
if (stage.type == "purchase") {
collection = models.Purchases;
}
if (!collection) {
return "";
}
let item;
if (contentype == "purchases:stage") {
const items = await collection.find({
stageId: stageId,
_id: { $in: itemIds.split(",") }
});
if (!items) {
return "";
}
item = await cardsStage(items);
if (!item) {
return "";
}
} else {
item = await collection.findOne({ _id: itemId });
if (!item) {
return "";
}
}
const simpleFields = ["name", "description"];
let replacedContent = content;
for (const field of simpleFields) {
replacedContent = replacedContent.replace(
`{{ ${field} }}`,
item[field] || ""
);
}
replacedContent = replacedContent.replace(
/{{ createdAt }}/g,
item.createdAt.toLocaleDateString()
);
if (item.closeDate) {
replacedContent = replacedContent.replace(
/{{ closeDate }}/g,
item.closeDate.toLocaleDateString()
);
}
replacedContent = replacedContent.replace(
/{{ now }}/g,
new Date().toLocaleDateString()
);
replacedContent = replacedContent.replace(/{{ stageName }}/g, stage.name);
if (replacedContent.includes("{{ brandName }}")) {
if (brandId) {
const brand = await sendCoreMessage({
subdomain,
action: "brands.findOne",
data: { _id: brandId },
isRPC: true
});
replacedContent = replacedContent.replace(
/{{ brandName }}/g,
brand.name
);
}
replacedContent = replacedContent.replace(/{{ brandName }}/g, "");
}
// ============ replace users
const users = await sendCoreMessage({
subdomain,
action: "users.find",
isRPC: true,
data: {
query: { _id: { $in: item.assignedUserIds || [] } }
}
});
replacedContent = replacedContent.replace(
/{{ assignedUsers }}/g,
users
.map(
user =>
`${user.details.firstName || ""} ${user.details.lastName || ""}`
)
.join(",")
);
if (replacedContent.includes("{{ customers }}")) {
const customerIds = await sendCoreMessage({
subdomain,
action: "conformities.savedConformity",
data: {
mainType: stage.type,
mainTypeId: item._id,
relTypes: ["customer"]
},
isRPC: true,
defaultValue: []
});
const activeCustomers = await sendContactsMessage({
subdomain,
action: "customers.findActiveCustomers",
data: { selector: { _id: { $in: customerIds } } },
isRPC: true,
defaultValue: []
});
const customerRows: string[] = [];
for (const item of activeCustomers) {
const name = await sendContactsMessage({
subdomain,
action: "customers.getCustomerName",
data: { customer: item },
isRPC: true,
defaultValue: ""
});
customerRows.push(name);
}
replacedContent = replacedContent.replace(
/{{ customers }}/g,
customerRows.join(",")
);
}
if (replacedContent.includes("{{ companies }}")) {
const companyIds = await sendCoreMessage({
subdomain,
action: "conformities.savedConformity",
data: {
mainType: stage.type,
mainTypeId: item._id,
relTypes: ["company"]
},
isRPC: true,
defaultValue: []
});
const activeCompanies = await sendContactsMessage({
subdomain,
action: "companies.findActiveCompanies",
data: { selector: { _id: { $in: companyIds } } },
isRPC: true,
defaultValue: []
});
const companyRows: string[] = [];
for (const item of activeCompanies) {
const name = await sendContactsMessage({
subdomain,
action: "companies.getCompanyName",
data: { company: item },
isRPC: true,
defaultValue: ""
});
companyRows.push(name);
}
replacedContent = replacedContent.replace(
/{{ companies }}/g,
companyRows.join(",")
);
}
const replaceProducts = async (key, type) => {
let totalAmount = 0;
let discount = 0;
const productsData = item.productsData || [];
const productRows: string[] = [];
let index = 0;
for (const pd of productsData) {
if (!pd || !pd.productId) {
continue;
}
if (!pd.tickUsed) {
continue;
}
const product = await sendProductsMessage({
subdomain,
action: "productFindOne",
data: { _id: pd.productId },
isRPC: true
});
if (!product || product.type !== type) {
continue;
}
if (
(brandId &&
brandId !== "noBrand" &&
!product.scopeBrandIds.includes(brandId)) ||
(brandId === "noBrand" && product.scopeBrandIds.length > 0)
) {
continue;
}
index++;
const tAmount = pd.quantity * pd.unitPrice;
totalAmount += tAmount;
discount += pd.discount || 0;
productRows.push(
`<tr>
<td>${index}</td>
<td>${product.name}</td>
<td>${pd.quantity}</td>
<td>${toMoney(pd.unitPrice)}</td>
<td>${toMoney(tAmount)}</td>
</tr>
`
);
}
replacedContent = replacedContent.replace(
key,
productRows.length > 0
? `<table>
<tbody>
<thead>
<tr>
<th></th>
<th>
${type === "product" ? "Product name" : "Service name"}
</th>
<th>Quantity</th>
<th>Unit price</th>
<th>Total amount</th>
</tr>
</thead>
${productRows.join("")}
</tbody>
</table>
<script>
window.print();
</script>
`
: ""
);
return { totalAmount, discount };
};
const replaceProductsResult = await replaceProducts(
/{{ productsInfo }}/g,
"product"
);
const productsTotalAmount = replaceProductsResult.totalAmount;
const replaceServicesResult = await replaceProducts(
/{{ servicesInfo }}/g,
"service"
);
const servicesTotalAmount = replaceServicesResult.totalAmount;
const totalAmount = productsTotalAmount + servicesTotalAmount;
const totalAmountVat = (totalAmount * 10) / 110;
const totalAmountWithoutVat = totalAmount - totalAmountVat;
replacedContent = replacedContent.replace(
/{{ productTotalAmount }}/g,
toMoney(productsTotalAmount)
);
replacedContent = replacedContent.replace(
/{{ servicesTotalAmount }}/g,
toMoney(servicesTotalAmount)
);
replacedContent = replacedContent.replace(
/{{ totalAmount }}/g,
toMoney(totalAmount)
);
replacedContent = replacedContent.replace(
/{{ totalAmountVat }}/g,
toMoney(totalAmountVat)
);
replacedContent = replacedContent.replace(
/{{ totalAmountWithoutVat }}/g,
toMoney(totalAmountWithoutVat)
);
const cash = ((item.paymentsData || {}).cash || {}).amount || 0;
replacedContent = replacedContent.replace(
/{{ paymentCash }}/g,
toMoney(cash)
);
replacedContent = replacedContent.replace(
/{{ paymentNonCash }}/g,
toMoney(totalAmount - cash)
);
replacedContent = replacedContent.replace(
/{{ discount }}/g,
toMoney(replaceProductsResult.discount + replaceServicesResult.discount)
);
for (const customFieldData of item.customFieldsData || []) {
replacedContent = replacedContent.replace(
new RegExp(`{{ customFieldsData.${customFieldData.field} }}`, "g"),
customFieldData.stringValue
);
}
const fileds = (await getCustomFields({ subdomain })).filter(
customField =>
customField.name.includes(stage.type) &&
!customField.value.includes("customFieldsData")
);
for (const field of fileds) {
const propertyNames = field.value.includes(".")
? field.value.split(".")
: [field.value];
let propertyValue = item;
for (const propertyName of propertyNames) {
propertyValue = item[propertyName];
}
replacedContent = replacedContent.replace(
new RegExp(`{{ ${field.value} }}`, "g"),
propertyValue || ""
);
}
return [replacedContent];
}
};
const cardsStage = async (items: any[]) => {
try {
const itemsArray = items;
const aggregatedData: Record<string, any> = {
amount: {
AED: 0
},
productsData: []
};
itemsArray.forEach(item => {
const combinedNames = itemsArray.map(item => item.name).join(",");
aggregatedData.isComplete = item.isComplete;
aggregatedData.assignedUserIds = item.assignedUserIds;
aggregatedData.watchedUserIds = item.watchedUserIds;
aggregatedData.labelIds = item.labelIds;
aggregatedData.tagIds = item.tagIds;
aggregatedData.branchIds = item.branchIds;
aggregatedData.departmentIds = item.departmentIds;
aggregatedData.modifiedAt = item.modifiedAt;
aggregatedData.createdAt = item.createdAt;
aggregatedData.stageChangedDate = item.stageChangedDate;
aggregatedData.sourceConversationIds = item.sourceConversationIds;
aggregatedData.status = item.status;
aggregatedData.name = combinedNames;
aggregatedData.stageId = item.stageId;
aggregatedData.customFieldsData = item.customFieldsData;
aggregatedData.initialStageId = item.initialStageId;
aggregatedData.modifiedBy = item.modifiedBy;
aggregatedData.userId = item.userId;
aggregatedData.searchText = combinedNames;
if (item.productsData) {
item.productsData.forEach(product => {
const existingProduct = aggregatedData.productsData.find(
p =>
p.productId === product.productId &&
p.branchId === product.branchId &&
p.departmentId === product.departmentId
);
if (existingProduct) {
existingProduct.quantity += product.quantity;
existingProduct.amount += product.amount;
} else {
aggregatedData.productsData.push({
tax: product.tax,
taxPercent: product.taxPercent,
discount: product.discount,
vatPercent: product.vatPercent,
discountPercent: product.discountPercent,
amount: product.amount,
currency: product.currency,
tickUsed: product.tickUsed,
maxQuantity: product.maxQuantity,
quantity: product.quantity,
productId: product.productId,
unitPrice: product.unitPrice,
globalUnitPrice: product.globalUnitPrice,
unitPricePercent: product.unitPricePercent
});
}
// Update the total amount for this stage
aggregatedData.amount.AED += product.amount * product.quantity;
});
}
});
return aggregatedData;
} catch (error) {
return { error: error.message };
}
};
``` | /content/code_sandbox/packages/plugin-purchases-api/src/documents.ts | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 3,137 |
```xml
import { Text, Spacer, View } from 'expo-dev-client-components';
import * as React from 'react';
import { BaseModal } from './BaseModal';
export function DevServerExplainerModal() {
return (
<BaseModal title="Development servers">
<Spacer.Vertical size="small" />
<Text size="medium">Start a local development server with:</Text>
<Spacer.Vertical size="small" />
<View bg="secondary" border="default" rounded="medium" padding="medium">
<Text type="mono" size="small">
npx expo start
</Text>
</View>
<Spacer.Vertical size="large" />
<Text>Then, select the local server when it appears here.</Text>
<Spacer.Vertical size="small" />
<Text>
Alternatively, open the Camera app and scan the QR code that appears in your terminal
</Text>
</BaseModal>
);
}
``` | /content/code_sandbox/packages/expo-dev-launcher/bundle/components/DevServerExplainerModal.tsx | xml | 2016-08-15T17:14:25 | 2024-08-16T19:54:44 | expo | expo/expo | 32,004 | 202 |
```xml
#import "RNSVGConvert.h"
#ifdef RCT_NEW_ARCH_ENABLED
@implementation RNSVGConvert
+ (RNSVGUnits)RNSVGUnitsFromFilterUnitsCppEquivalent:(react::RNSVGFilterFilterUnits)svgUnits
{
switch (svgUnits) {
case react::RNSVGFilterFilterUnits::UserSpaceOnUse:
return kRNSVGUnitsUserSpaceOnUse;
case react::RNSVGFilterFilterUnits::ObjectBoundingBox:
return kRNSVGUnitsObjectBoundingBox;
}
}
+ (RNSVGUnits)RNSVGUnitsFromPrimitiveUnitsCppEquivalent:(react::RNSVGFilterPrimitiveUnits)svgUnits
{
switch (svgUnits) {
case react::RNSVGFilterPrimitiveUnits::UserSpaceOnUse:
return kRNSVGUnitsUserSpaceOnUse;
case react::RNSVGFilterPrimitiveUnits::ObjectBoundingBox:
return kRNSVGUnitsObjectBoundingBox;
}
}
+ (RNSVGColorMatrixType)RNSVGColorMatrixTypeFromCppEquivalent:(react::RNSVGFeColorMatrixType)type
{
switch (type) {
case react::RNSVGFeColorMatrixType::Matrix:
return SVG_FECOLORMATRIX_TYPE_MATRIX;
case react::RNSVGFeColorMatrixType::Saturate:
return SVG_FECOLORMATRIX_TYPE_SATURATE;
case react::RNSVGFeColorMatrixType::HueRotate:
return SVG_FECOLORMATRIX_TYPE_HUEROTATE;
case react::RNSVGFeColorMatrixType::LuminanceToAlpha:
return SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA;
}
}
+ (RNSVGEdgeMode)RNSVGEdgeModeFromCppEquivalent:(react::RNSVGFeGaussianBlurEdgeMode)edgeMode
{
switch (edgeMode) {
case react::RNSVGFeGaussianBlurEdgeMode::Duplicate:
return SVG_EDGEMODE_DUPLICATE;
case react::RNSVGFeGaussianBlurEdgeMode::Wrap:
return SVG_EDGEMODE_WRAP;
case react::RNSVGFeGaussianBlurEdgeMode::None:
return SVG_EDGEMODE_NONE;
default:
return SVG_EDGEMODE_UNKNOWN;
}
}
@end
#endif // RCT_NEW_ARCH_ENABLED
``` | /content/code_sandbox/apple/Utils/RNSVGConvert.mm | xml | 2016-01-17T14:29:21 | 2024-08-16T13:35:44 | react-native-svg | software-mansion/react-native-svg | 7,397 | 509 |
```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 {
coerceArray as coerceArrayAngular,
coerceBooleanProperty,
coerceCssPixelValue as coerceCssPixelValueAngular,
coerceNumberProperty,
coerceStringArray as coerceStringArrayAngular
} from '@angular/cdk/coercion';
export const coerceBoolean = () => (target: any, key: string, propertyDescriptor?: PropertyDescriptor): void => {
if (!!propertyDescriptor && !!propertyDescriptor.set) {
const original = propertyDescriptor.set;
propertyDescriptor.set = function(next) {
original.apply(this, [coerceBooleanProperty(next)]);
};
} else {
const getter = function() {
return this['__' + key];
};
const setter = function(next: any) {
this['__' + key] = coerceBooleanProperty(next);
};
Object.defineProperty(target, key, {
get: getter,
set: setter,
enumerable: true,
configurable: true,
});
}
};
export const coerceNumber = () => (target: any, key: string, propertyDescriptor?: PropertyDescriptor): void => {
if (!!propertyDescriptor && !!propertyDescriptor.set) {
const original = propertyDescriptor.set;
propertyDescriptor.set = function(next) {
original.apply(this, [coerceNumberProperty(next)]);
};
} else {
const getter = function() {
return this['__' + key];
};
const setter = function(next: any) {
this['__' + key] = coerceNumberProperty(next);
};
Object.defineProperty(target, key, {
get: getter,
set: setter,
enumerable: true,
configurable: true,
});
}
};
export const coerceCssPixelValue = () => (target: any, key: string, propertyDescriptor?: PropertyDescriptor): void => {
if (!!propertyDescriptor && !!propertyDescriptor.set) {
const original = propertyDescriptor.set;
propertyDescriptor.set = function(next) {
original.apply(this, [coerceCssPixelValueAngular(next)]);
};
} else {
const getter = function() {
return this['__' + key];
};
const setter = function(next: any) {
this['__' + key] = coerceCssPixelValueAngular(next);
};
Object.defineProperty(target, key, {
get: getter,
set: setter,
enumerable: true,
configurable: true,
});
}
};
export const coerceArray = () => (target: any, key: string, propertyDescriptor?: PropertyDescriptor): void => {
if (!!propertyDescriptor && !!propertyDescriptor.set) {
const original = propertyDescriptor.set;
propertyDescriptor.set = function(next) {
original.apply(this, [coerceArrayAngular(next)]);
};
} else {
const getter = function() {
return this['__' + key];
};
const setter = function(next: any) {
this['__' + key] = coerceArrayAngular(next);
};
Object.defineProperty(target, key, {
get: getter,
set: setter,
enumerable: true,
configurable: true,
});
}
};
export const coerceStringArray = (separator?: string | RegExp) =>
(target: any, key: string, propertyDescriptor?: PropertyDescriptor): void => {
if (!!propertyDescriptor && !!propertyDescriptor.set) {
const original = propertyDescriptor.set;
propertyDescriptor.set = function(next) {
original.apply(this, [coerceStringArrayAngular(next, separator)]);
};
} else {
const getter = function() {
return this['__' + key];
};
const setter = function(next: any) {
this['__' + key] = coerceStringArrayAngular(next, separator);
};
Object.defineProperty(target, key, {
get: getter,
set: setter,
enumerable: true,
configurable: true,
});
}
};
``` | /content/code_sandbox/ui-ngx/src/app/shared/decorators/coercion.ts | xml | 2016-12-01T09:33:30 | 2024-08-16T19:58:25 | thingsboard | thingsboard/thingsboard | 16,820 | 847 |
```xml
import * as dayjs from 'dayjs';
import T from 'i18n-react';
import { FieldValue } from './form/types';
import { ENV, IBrowserInfo, IRule } from './types';
export const getEnv = (): ENV => {
return (window as any).erxesEnv;
};
declare const window: any;
export const postMessage = (source: string, message: string, postData = {}) => {
window.parent.postMessage(
{
fromErxes: true,
source,
message,
...postData,
},
'*'
);
};
type RequestBrowserInfoParams = {
source: string;
postData?: {};
callback: (browserInfo: IBrowserInfo) => void;
};
export type LogicParams = {
fieldId: string;
operator: string;
validation?: string;
logicValue: FieldValue;
fieldValue?: FieldValue;
type?: string;
};
export const requestBrowserInfo = ({
source,
postData = {},
callback,
}: RequestBrowserInfoParams) => {
postMessage(source, 'requestingBrowserInfo', postData);
window.addEventListener('message', (event: any) => {
const data = event.data || {};
const { fromPublisher, message, browserInfo } = data;
if (
fromPublisher &&
source === data.source &&
message === 'sendingBrowserInfo'
) {
callback(browserInfo);
}
});
};
const setDayjsLocale = (code: string) => {
import('dayjs/locale/' + code + '.js')
.then(() => dayjs.locale(code))
.catch(() => dayjs.locale('en'));
};
export const setLocale = (code?: string, callBack?: () => void) => {
import(`../locales/${code}.json`)
.then((translations) => {
T.setTexts(translations);
setDayjsLocale(code || 'en');
if (callBack) {
callBack();
}
})
.catch((e) => console.log(e)); // tslint:disable-line
};
export const __ = (msg: string) => {
return T.translate(msg);
};
export const scrollTo = (element: any, to: number, duration: number) => {
const start = element.scrollTop;
const change = to - start;
const increment = 20;
let currentTime = 0;
const animateScroll = () => {
const easeInOutQuad = (t: number, b: number, c: number, d: number) => {
t /= d / 2;
if (t < 1) {
return (c / 2) * t * t + b;
}
t--;
return (-c / 2) * (t * (t - 2) - 1) + b;
};
currentTime += increment;
const val = easeInOutQuad(currentTime, start, change, duration);
if (element && element.scrollTop !== undefined) {
element.scrollTop = val;
}
if (currentTime < duration) {
setTimeout(animateScroll, increment);
}
};
animateScroll();
};
export const makeClickableLink = (selector: string) => {
const nodes = Array.from(document.querySelectorAll(selector));
nodes.forEach((node) => {
node.setAttribute('target', '__blank');
});
};
// check if valid url
export const isValidURL = (url: string) => {
try {
return Boolean(new URL(url));
} catch (e) {
return false;
}
};
/**
* Request to get file's URL for view and download
* @param {String} - value
* @return {String} - URL
*/
export const readFile = (value: string, width?: number ): string => {
const { API_URL } = getEnv();
if (!value || isValidURL(value) || value.includes('http')) {
return value;
}
let url = `${API_URL}/read-file?key=${value}`;
if (width) {
url += `&width=${width}`;
}
return url;
};
export const checkRule = (rule: IRule, browserInfo: IBrowserInfo) => {
const { language, url, city, country } = browserInfo || ({} as IBrowserInfo);
const { value, kind, condition } = rule;
const ruleValue: any = value;
let valueToTest: any;
if (kind === 'browserLanguage') {
valueToTest = language;
}
if (kind === 'currentPageUrl') {
valueToTest = url;
}
if (kind === 'city') {
valueToTest = city;
}
if (kind === 'country') {
valueToTest = country;
}
// is
if (condition === 'is' && valueToTest !== ruleValue) {
return false;
}
// isNot
if (condition === 'isNot' && valueToTest === ruleValue) {
return false;
}
// isUnknown
if (condition === 'isUnknown' && valueToTest) {
return false;
}
// hasAnyValue
if (condition === 'hasAnyValue' && !valueToTest) {
return false;
}
// startsWith
if (
condition === 'startsWith' &&
valueToTest &&
!valueToTest.startsWith(ruleValue)
) {
return false;
}
// endsWith
if (
condition === 'endsWith' &&
valueToTest &&
!valueToTest.endsWith(ruleValue)
) {
return false;
}
// contains
if (
condition === 'contains' &&
valueToTest &&
!valueToTest.includes(ruleValue)
) {
return false;
}
// greaterThan
if (condition === 'greaterThan' && valueToTest < parseInt(ruleValue, 10)) {
return false;
}
if (condition === 'lessThan' && valueToTest > parseInt(ruleValue, 10)) {
return false;
}
if (condition === 'doesNotContain' && valueToTest.includes(ruleValue)) {
return false;
}
return true;
};
export const checkRules = (
rules: IRule[],
browserInfo: IBrowserInfo
): boolean => {
let passedAllRules = true;
for (const rule of rules) {
const result = checkRule(rule, browserInfo);
if (result === false) {
passedAllRules = false;
}
}
return passedAllRules;
};
export const striptags = (htmlString: string) => {
const _div = document.createElement('div');
let _text = '';
_div.innerHTML = htmlString;
_text = _div.textContent ? _div.textContent.trim() : '';
_text = _text.replace(/\</g, '<').replace(/\>/g, '>');
return _text;
};
export const fixErrorMessage = (msg: string) =>
msg.replace('GraphQL error: ', '');
export const newLineToBr = (content: string) => {
return content.replace(/\r\n|\r|\n/g, '<br />');
};
export const urlify = (text: string) => {
// validate url except html a tag
const urlRegex = /(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w-]+)+[\w\-_~:/?#[\]@!&',;=.]+(?![^<>]*>|[^"]*?<\/a)/g;
if (!text) {
return text;
}
return text.replace(urlRegex, (url) => {
if (url.startsWith('http')) {
return `<a href="${url}" target="_blank">${url}</a>`;
}
return `<a href="path_to_url{url}" target="_blank">${url}</a>`;
});
};
export const checkLogicFulfilled = (logics: LogicParams[]) => {
const values: { [key: string]: boolean } = {};
for (const logic of logics) {
const {
fieldId,
operator,
logicValue,
fieldValue,
validation,
type,
} = logic;
const key = `${fieldId}_${logicValue}`;
values[key] = false;
// if fieldValue is set
if (operator === 'hasAnyValue') {
if (fieldValue) {
values[key] = true;
} else {
values[key] = false;
}
}
// if fieldValue is not set
if (operator === 'isUnknown') {
if (!fieldValue) {
values[key] = true;
} else {
values[key] = false;
}
}
// if fieldValue equals logic value
if (operator === 'is') {
if (logicValue === fieldValue) {
values[key] = true;
} else {
values[key] = false;
}
}
// if fieldValue not equal to logic value
if (operator === 'isNot') {
if (logicValue !== fieldValue) {
values[key] = true;
} else {
values[key] = false;
}
}
if (validation === 'number') {
// if number value: is greater than
if (operator === 'greaterThan' && fieldValue) {
if (Number(fieldValue) > Number(logicValue)) {
values[key] = true;
} else {
values[key] = false;
}
}
// if number value: is less than
if (operator === 'lessThan' && fieldValue) {
if (Number(fieldValue) < Number(logicValue)) {
values[key] = true;
} else {
values[key] = false;
}
}
}
if (typeof logicValue === 'string') {
// if string value contains logicValue
if (operator === 'contains') {
if (String(fieldValue).includes(logicValue)) {
values[key] = true;
} else {
values[key] = false;
}
}
// if string value does not contain logicValue
if (operator === 'doesNotContain') {
if (!String(fieldValue).includes(logicValue)) {
values[key] = true;
} else {
values[key] = false;
}
}
// if string value startsWith logicValue
if (operator === 'startsWith') {
if (String(fieldValue).startsWith(logicValue)) {
values[key] = true;
} else {
values[key] = false;
}
}
// if string value endsWith logicValue
if (operator === 'endsWith') {
if (!String(fieldValue).endsWith(logicValue)) {
values[key] = true;
} else {
values[key] = false;
}
}
}
if (validation && validation.includes('date')) {
const dateValueToCheck = new Date(String(fieldValue));
const logicDateValue = new Date(String(logicValue));
// date is greather than
if (operator === 'dateGreaterThan') {
if (dateValueToCheck > logicDateValue) {
values[key] = true;
} else {
values[key] = false;
}
}
// date is less than
if (operator === 'dateLessThan') {
if (logicDateValue > dateValueToCheck) {
values[key] = true;
} else {
values[key] = false;
}
}
}
if (type === 'check') {
if (
fieldValue &&
typeof fieldValue === 'string' &&
typeof logicValue === 'string'
) {
if (operator === 'isNot') {
if (!fieldValue.includes(logicValue)) {
values[key] = true;
} else {
values[key] = false;
}
}
if (operator === 'is') {
if (fieldValue.includes(logicValue)) {
values[key] = true;
} else {
values[key] = false;
}
}
}
}
}
const result = [];
for (const key of Object.keys(values)) {
result.push(values[key]);
}
if (result.filter((val) => !val).length === 0) {
return true;
}
return false;
};
export const loadMapApi = (apiKey: string, locale?: string) => {
if (!apiKey) {
return '';
}
const mapsURL = `path_to_url{apiKey}&libraries=geometry,places&language=${locale ||
'en'}&v=quarterly`;
const scripts: any = document.getElementsByTagName('script');
// Go through existing script tags, and return google maps api tag when found.
for (const script of scripts) {
if (script.src.indexOf(mapsURL) === 0) {
return script;
}
}
const googleMapScript = document.createElement('script');
googleMapScript.src = mapsURL;
googleMapScript.async = true;
googleMapScript.defer = true;
window.document.body.appendChild(googleMapScript);
return googleMapScript;
};
``` | /content/code_sandbox/widgets/client/utils.ts | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 2,823 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="path_to_url"
xmlns:flowable="path_to_url"
targetNamespace="path_to_url">
<process id="test-timers" name="Test timers process">
<startEvent id="start" name="Start Process" />
<sequenceFlow id="flow1" sourceRef="start" targetRef="review-document"/>
<userTask id="review-document" name="Review Document"
flowable:owner="#{initiator}"
flowable:assignee="#{userId}"
flowable:dueDate="#{dueDate}">
</userTask>
<boundaryEvent id="remind-reviewer-event" name="Remind Reviewer" cancelActivity="false" attachedToRef="review-document">
<timerEventDefinition>
<timeCycle flowable:endDate="${dueDate}">${reminderTimeCycle}</timeCycle>
</timerEventDefinition>
</boundaryEvent>
<sequenceFlow id="flow2" name="Reminder" sourceRef="remind-reviewer-event" targetRef="notify-reviewer"/>
<scriptTask id="notify-reviewer" name="Notify Reviewer by email" scriptFormat="groovy">
<script>
out:println "Notify '" + initiator + "' by email";
</script>
</scriptTask>
<sequenceFlow id="flow3" sourceRef="review-document" targetRef="end"/>
<endEvent id="end" name="End Process"/>
</process>
</definitions>
``` | /content/code_sandbox/modules/flowable-engine/src/test/resources/org/flowable/engine/test/bpmn/event/timer/BoundaryTimerEventTest.testNullDueDateWithRepetition.bpmn20.xml | xml | 2016-10-13T07:21:43 | 2024-08-16T15:23:14 | flowable-engine | flowable/flowable-engine | 7,715 | 328 |
```xml
export interface Store {
getRecord(collectionName: string, documentPath: string): TaskEither<Error, Option<GenericRecord>>;
}
export default class StoreImpl extends Service implements Store {
getRecord(collectionName: string, documentPath: string): TaskEither<Error, Option<GenericRecord>> {
// Do some stuff.
}
}
export function loadPlugin(
name: string,
dirname: string,
): { filepath: string, value: mixed } {
// ...
}
``` | /content/code_sandbox/tests/format/typescript/method/issue-10352-consistency.ts | xml | 2016-11-29T17:13:37 | 2024-08-16T17:29:57 | prettier | prettier/prettier | 48,913 | 102 |
```xml
// luma.gl MIT license
import type {Binding, RenderPass, VertexArray} from '@luma.gl/core';
import {RenderPipeline, RenderPipelineProps, log} from '@luma.gl/core';
import {applyParametersToRenderPipelineDescriptor} from '../helpers/webgpu-parameters';
import {getWebGPUTextureFormat} from '../helpers/convert-texture-format';
import {getBindGroup} from '../helpers/get-bind-group';
import {getVertexBufferLayout} from '../helpers/get-vertex-buffer-layout';
// import {convertAttributesVertexBufferToLayout} from '../helpers/get-vertex-buffer-layout';
// import {mapAccessorToWebGPUFormat} from './helpers/accessor-to-format';
// import type {BufferAccessors} from './webgpu-pipeline';
import type {WebGPUDevice} from '../webgpu-device';
// import type {WebGPUBuffer} from './webgpu-buffer';
import type {WebGPUShader} from './webgpu-shader';
import type {WebGPURenderPass} from './webgpu-render-pass';
// RENDER PIPELINE
/** Creates a new render pipeline when parameters change */
export class WebGPURenderPipeline extends RenderPipeline {
device: WebGPUDevice;
handle: GPURenderPipeline;
vs: WebGPUShader;
fs: WebGPUShader | null = null;
/** For internal use to create BindGroups */
private _bindings: Record<string, Binding>;
private _bindGroupLayout: GPUBindGroupLayout | null = null;
private _bindGroup: GPUBindGroup | null = null;
constructor(device: WebGPUDevice, props: RenderPipelineProps) {
super(device, props);
this.device = device;
this.handle = this.props.handle as GPURenderPipeline;
if (!this.handle) {
const descriptor = this._getRenderPipelineDescriptor();
log.groupCollapsed(1, `new WebGPURenderPipeline(${this.id})`)();
log.probe(1, JSON.stringify(descriptor, null, 2))();
log.groupEnd(1)();
this.handle = this.device.handle.createRenderPipeline(descriptor);
}
this.handle.label = this.props.id;
this.vs = props.vs as WebGPUShader;
this.fs = props.fs as WebGPUShader;
this._bindings = {...this.props.bindings};
}
override destroy(): void {
// WebGPURenderPipeline has no destroy method.
// @ts-expect-error
this.handle = null;
}
/**
* @todo Use renderpass.setBindings() ?
* @todo Do we want to expose BindGroups in the API and remove this?
*/
setBindings(bindings: Record<string, Binding>): void {
Object.assign(this._bindings, bindings);
}
/** @todo - should this be moved to renderpass? */
draw(options: {
renderPass: RenderPass;
vertexArray: VertexArray;
vertexCount?: number;
indexCount?: number;
instanceCount?: number;
firstVertex?: number;
firstIndex?: number;
firstInstance?: number;
baseVertex?: number;
}): boolean {
const webgpuRenderPass = options.renderPass as WebGPURenderPass;
// Set pipeline
webgpuRenderPass.handle.setPipeline(this.handle);
// Set bindings (uniform buffers, textures etc)
const bindGroup = this._getBindGroup();
if (bindGroup) {
webgpuRenderPass.handle.setBindGroup(0, bindGroup);
}
// Set attributes
// Note: Rebinds constant attributes before each draw call
options.vertexArray.bindBeforeRender(options.renderPass);
// Draw
if (options.indexCount) {
webgpuRenderPass.handle.drawIndexed(
options.indexCount,
options.instanceCount,
options.firstIndex,
options.baseVertex,
options.firstInstance
);
} else {
webgpuRenderPass.handle.draw(
options.vertexCount || 0,
options.instanceCount || 1, // If 0, nothing will be drawn
options.firstInstance
);
}
// Note: Rebinds constant attributes before each draw call
options.vertexArray.unbindAfterRender(options.renderPass);
return true;
}
/** Return a bind group created by setBindings */
_getBindGroup() {
if (this.shaderLayout.bindings.length === 0) {
return null;
}
// Get hold of the bind group layout. We don't want to do this unless we know there is at least one bind group
this._bindGroupLayout = this._bindGroupLayout || this.handle.getBindGroupLayout(0);
// Set up the bindings
// TODO what if bindings change? We need to rebuild the bind group!
this._bindGroup =
this._bindGroup ||
getBindGroup(this.device.handle, this._bindGroupLayout, this.shaderLayout, this._bindings);
return this._bindGroup;
}
/**
* Populate the complex WebGPU GPURenderPipelineDescriptor
*/
protected _getRenderPipelineDescriptor() {
// Set up the vertex stage
const vertex: GPUVertexState = {
module: (this.props.vs as WebGPUShader).handle,
entryPoint: this.props.vertexEntryPoint || 'main',
buffers: getVertexBufferLayout(this.shaderLayout, this.props.bufferLayout)
};
// Set up the fragment stage
const fragment: GPUFragmentState = {
module: (this.props.fs as WebGPUShader).handle,
entryPoint: this.props.fragmentEntryPoint || 'main',
targets: [
{
// TODO exclamation mark hack!
format: getWebGPUTextureFormat(this.device.getCanvasContext().format)
}
]
};
// Create a partially populated descriptor
const descriptor: GPURenderPipelineDescriptor = {
vertex,
fragment,
primitive: {
topology: this.props.topology
},
layout: 'auto'
};
// Set parameters on the descriptor
applyParametersToRenderPipelineDescriptor(descriptor, this.props.parameters);
return descriptor;
}
}
/**
_setAttributeBuffers(webgpuRenderPass: WebGPURenderPass) {
if (this._indexBuffer) {
webgpuRenderPass.handle.setIndexBuffer(this._indexBuffer.handle, this._indexBuffer.props.indexType);
}
const buffers = this._getBuffers();
for (let i = 0; i < buffers.length; ++i) {
const buffer = cast<WebGPUBuffer>(buffers[i]);
if (!buffer) {
const attribute = this.shaderLayout.attributes.find(
(attribute) => attribute.location === i
);
throw new Error(
`No buffer provided for attribute '${attribute?.name || ''}' in Model '${this.props.id}'`
);
}
webgpuRenderPass.handle.setVertexBuffer(i, buffer.handle);
}
// TODO - HANDLE buffer maps
/*
for (const [bufferName, attributeMapping] of Object.entries(this.props.bufferLayout)) {
const buffer = cast<WebGPUBuffer>(this.props.attributes[bufferName]);
if (!buffer) {
log.warn(`Missing buffer for buffer map ${bufferName}`)();
continue;
}
if ('location' in attributeMapping) {
// @ts-expect-error TODO model must not depend on webgpu
renderPass.handle.setVertexBuffer(layout.location, buffer.handle);
} else {
for (const [bufferName, mapping] of Object.entries(attributeMapping)) {
// @ts-expect-error TODO model must not depend on webgpu
renderPass.handle.setVertexBuffer(field.location, buffer.handle);
}
}
}
*
}
*/
``` | /content/code_sandbox/modules/webgpu/src/adapter/resources/webgpu-render-pipeline.ts | xml | 2016-01-25T09:41:59 | 2024-08-16T10:03:05 | luma.gl | visgl/luma.gl | 2,280 | 1,617 |
```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 { CreatedData } from "cypress/support/testing.data";
describe("Region edit/creation page", () => {
beforeEach(() => {
cy.login();
});
it("Edits an existing Region", () => {
cy.fixture("test.data").then((data: CreatedData) => {
const {region} = data;
cy.visit(`/core/regions/${region.id}`);
cy.get("mat-card").find("input[name=name]").should("be.enabled").should("have.value", region.name);
cy.get("mat-card").find("mat-select[name=division]");
cy.get("mat-card").find("button").contains("Save").should("not.be.disabled");
cy.get("mat-card").find("input[name=lastUpdated]").should("not.be.enabled");
cy.get("mat-card").find("input[name=id]").should("not.be.enabled").should("have.value", region.id);
});
});
it("Creates new Regions", () => {
cy.visit("/core/regions/new");
cy.get("mat-card").find("input[name=name]").should("be.enabled").should("have.value", "");
cy.get("mat-card").find("mat-select[name=division]");
cy.get("mat-card").find("button").contains("Save").should("not.be.disabled");
cy.get("mat-card").find("input[name=lastUpdated]").should("not.exist");
cy.get("mat-card").find("input[name=id]").should("not.exist");
});
});
``` | /content/code_sandbox/experimental/traffic-portal/cypress/e2e/cacheGroups/regions/detail.cy.ts | xml | 2016-09-02T07:00:06 | 2024-08-16T03:50:21 | trafficcontrol | apache/trafficcontrol | 1,043 | 368 |
```xml
import { Type } from '@angular/core';
import { TestBed } from '@angular/core/testing';
import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing';
import { QuoteService } from './quote.service';
describe('QuoteService', () => {
let quoteService: QuoteService;
let httpMock: HttpTestingController;
beforeEach(() => {
TestBed.configureTestingModule({
imports: [
HttpClientTestingModule
],
providers: [
QuoteService
]
});
quoteService = TestBed.inject(QuoteService);
httpMock = TestBed.inject(HttpTestingController as Type<HttpTestingController>);
});
afterEach(() => {
httpMock.verify();
});
describe('getRandomQuote', () => {
it('should return a random Chuck Norris quote', () => {
// Arrange
const mockQuote = { value: 'a random quote' };
// Act
const randomQuoteSubscription = quoteService.getRandomQuote({ category: 'toto' });
// Assert
randomQuoteSubscription.subscribe((quote: string) => {
expect(quote).toEqual(mockQuote.value);
});
httpMock.expectOne({}).flush(mockQuote);
});
it('should return a string in case of error', () => {
// Act
const randomQuoteSubscription = quoteService.getRandomQuote({ category: 'toto' });
// Assert
randomQuoteSubscription.subscribe((quote: string) => {
expect(typeof quote).toEqual('string');
expect(quote).toContain('Error');
});
httpMock.expectOne({}).flush(null, {
status: 500,
statusText: 'error'
});
});
});
});
``` | /content/code_sandbox/generators/app/templates/src/app/home/quote.service.spec.ts | xml | 2016-04-27T19:11:10 | 2024-08-15T11:32:04 | generator-ngx-rocket | ngx-rocket/generator-ngx-rocket | 1,525 | 351 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Sad Musiqi alar</string>
<string name="app_launcher_name">Musiqi alar</string>
<string name="playlist_empty">Oynatma siyahs bodur</string>
<string name="rename_song">Yenidn adlandr</string>
<string name="rename_song_error">Yenidn adlandrarkn xta ba verdi</string>
<string name="rename_song_empty">Xahi olunur btn yerlri doldurun</string>
<string name="repeat_off">Repeat off</string>
<string name="repeat_song">Hazrki musiqini tkrarla</string>
<string name="repeat_playlist">Repeat playlist</string>
<string name="stop_playback_after_current_song">Stop playback after current song</string>
<string name="enable_shuffle">Qardrman a</string>
<string name="disable_shuffle">Qardrman qapat</string>
<string name="shuffle_enabled">Qardrma aktivdir</string>
<string name="shuffle_disabled">Qardrma deaktivdir</string>
<string name="volume">Volume</string>
<string name="playback_speed">Playback speed</string>
<string name="loading_files">Loading files</string>
<!-- Playlists -->
<string name="add_file_to_playlist">Alboma fayl lav et</string>
<string name="add_folder_to_playlist">Alboma qovluq lav et</string>
<string name="manage_playlists">Albomlar idar et</string>
<string name="playlists">Oynatma siyahlar</string>
<string name="create_new_playlist">Albom yarat</string>
<string name="rename_playlist">Albomu yenidn adlandr</string>
<string name="playlist_name_exists">Eyni adda albom artq mvcuddur</string>
<string name="remove_playlist">Albomu sil</string>
<string name="remove_playlist_description">Bu yalnz seilmi albomlar silck, hqiqi fayllar yox.</string>
<string name="remove_playlist_description_placeholder">Bu yalnz \"%s\" adl albomu silck, hqiqi fayllar yox.</string>
<string name="remove_from_playlist">Albomu sil</string>
<string name="remove_from_playlist_description">Bu yalnz \"%s\" adl albomdak fayllar silck, hqiqi fayllar silinmyck.</string>
<string name="delete_the_files_too">Fayllar da sil</string>
<string name="open_playlist">Albomu a</string>
<string name="all_songs_cannot_be_deleted">\'Btn Mahnlar\' albomu silin bilmz</string>
<string name="empty_playlist">Hazrki albom bodur</string>
<string name="fetching_songs">Mahnlar gtirilir</string>
<string name="all_songs">Btn Mahnlar</string>
<string name="create_playlist_from_folder">Qovluqdan yeni albom yarat</string>
<string name="folder_contains_no_audio">Seilmi qovluqda mahn yoxdur</string>
<string name="delete_current_song">Hazrki mahnn sil</string>
<string name="delete_song_warning">WARNING: This will delete the selected files themselves from the device, all playlists included.</string>
<string name="remove_current_song">Hazrki mahnn albomdan sil</string>
<string name="show_filename">Fayl adn mahn bal kimi gstr</string>
<string name="title_is_not_available">gr balq yoxdursa</string>
<string name="show_album_cover">sas ekranda albom rivsini gstr</string>
<string name="all_tracks">All tracks</string>
<string name="add_to_playlist">Add to playlist</string>
<string name="create_playlist_label">You can create a new playlist by selecting the wanted artists, albums or tracks and using Menu ->Add to playlist.</string>
<string name="export_playlist">Export playlist</string>
<string name="import_playlist">Import playlist</string>
<string name="filename_without_m3u">Filename (without .m3u)</string>
<!-- Sorting -->
<string name="track_count">Track Count</string>
<string name="album_count">Album Count</string>
<string name="artist_name">Artist Name</string>
<string name="year">Year</string>
<string name="track_number">Track number</string>
<string name="use_for_this_playlist">Use for this playlist only</string>
<string name="use_for_this_album">Use for this album only</string>
<!-- Artists -->
<string name="artists">Artists</string>
<string name="folders">Folders</string>
<string name="genres">Genres</string>
<string name="albums">Albums</string>
<plurals name="albums_plural">
<item quantity="one">%d Album</item>
<item quantity="other">%d Albums</item>
</plurals>
<string name="tracks">Tracks</string>
<plurals name="tracks_plural">
<item quantity="one">%d Track</item>
<item quantity="other">%d Tracks</item>
</plurals>
<!-- Queue -->
<string name="next_track">Next:</string>
<string name="track_queue">Track queue</string>
<string name="add_to_queue">Add to queue</string>
<string name="play_next">Play next</string>
<string name="remove_from_queue">Remove from queue</string>
<string name="create_playlist_from_queue">Create playlist from queue</string>
<!-- Settings -->
<string name="equalizer">Qardrc</string>
<string name="swap_prev_next">Swap previous/next headphone buttons</string>
<string name="exclude_folder_description">Excluding a folder will prevent the displaying of all audio files within. Files manually added to playlists will not be affected.</string>
<string name="gapless_playback">Gapless playback</string>
<string name="rescan_media">Rescan media</string>
<!-- FAQ -->
<string name="faq_1_title">How can I fast-forward songs\?</string>
<string name="faq_1_text">You can click on the current or max duration texts near the seekbar, that will move the song either backward, or forward.</string>
<!--
Haven't found some strings? There's more at
path_to_url
-->
</resources>
``` | /content/code_sandbox/app/src/main/res/values-az/strings.xml | xml | 2016-01-10T12:21:23 | 2024-08-16T13:03:46 | Simple-Music-Player | SimpleMobileTools/Simple-Music-Player | 1,277 | 1,537 |
```xml
import { CMS_NAME, CMS_URL } from "../lib/constants";
export default function Intro() {
return (
<section className="flex flex-col items-center mt-16 mb-16 md:flex-row md:justify-between md:mb-12">
<h1 className="text-6xl font-bold leading-tight tracking-tighter md:text-8xl md:pr-8">
Blog.
</h1>
<h4 className="mt-5 text-lg text-center md:text-left md:pl-8">
A statically generated blog example using{" "}
<a
href="path_to_url"
className="underline transition-colors duration-200 hover:text-success"
>
Next.js
</a>{" "}
and{" "}
<a
href={CMS_URL}
className="underline transition-colors duration-200 hover:text-success"
>
{CMS_NAME}
</a>
.
</h4>
</section>
);
}
``` | /content/code_sandbox/examples/cms-webiny/components/intro.tsx | xml | 2016-10-05T23:32:51 | 2024-08-16T19:44:30 | next.js | vercel/next.js | 124,056 | 209 |
```xml
import React, { useState } from 'react';
import poapImage from '@assets/images/winter-poap.svg';
import { Body, Box, Button, Heading, LinkApp, Text } from '@components';
import { PoapClaimService } from '@services/ApiService/PoapClaim';
import { claimPromo, getAnalyticsUserID, getPromoPoap, useDispatch, useSelector } from '@store';
import translate, { translateRaw } from '@translations';
import { useScreenSize } from '@utils';
export const WinterNotification = () => {
const { isMobile } = useScreenSize();
return (
<Box variant={isMobile ? 'columnAlign' : 'rowAlign'}>
<Box mr="4" width="10%">
<img src={poapImage} />
</Box>
<Box mr="2" width="60%">
<Heading
color="WHITE"
fontWeight="bold"
fontSize="24px"
lineHeight="32px"
mt="0"
textAlign={isMobile ? 'center' : 'left'}
>
{translateRaw('POAP_NOTIFICATION_HEADER')}
</Heading>
<Body color="WHITE">{translate('POAP_NOTIFICATION_BODY')}</Body>
<Body color="WHITE" fontSize="12px" fontStyle="italic">
{translate('POAP_ANALYTICS_NOTICE')}
</Body>
</Box>
<Box variant="rowCenter" width="30%">
<NotificationContent />
</Box>
</Box>
);
};
const NotificationContent = () => {
const dispatch = useDispatch();
const key = 'winter2021';
const analyticsId = useSelector(getAnalyticsUserID);
const promo = useSelector(getPromoPoap(key));
const [isClaiming, setIsClaiming] = useState(false);
const [isError, setIsError] = useState(false);
const handleClaim = () => {
if (isClaiming) {
return;
}
setIsClaiming(true);
PoapClaimService.claim(analyticsId).then((res) => {
if (res?.success) {
dispatch(claimPromo({ key, claim: res.claim }));
} else {
setIsError(true);
}
setIsClaiming(false);
});
};
const isClaimed = promo?.claimed;
if (isError) {
return (
<Box variant="columnCenter">
<Text as="div" color="white" fontSize="2" textAlign="center">
{translateRaw('POAP_ERROR_HEADER')}
</Text>
<Text as="div" color="white" textAlign="center" width="80%">
{translate('POAP_ERROR_BODY')}
</Text>
</Box>
);
}
return !isClaimed ? (
<Button
onClick={handleClaim}
loading={isClaiming}
disabled={analyticsId.length === 0}
colorScheme="transparent"
>
{translateRaw('CLAIM_NOW')}
</Button>
) : (
<Box variant="columnCenter">
<Text as="div" color="white" fontSize="2" textAlign="center">
{translateRaw('POAP_CLAIM_APPROVED')}
</Text>
<LinkApp mt="2" isExternal href={promo!.claim!} textAlign="center">
{translateRaw('ACCESS_POAP_LINK')}
</LinkApp>
</Box>
);
};
``` | /content/code_sandbox/src/features/NotificationsPanel/components/WinterNotification.tsx | xml | 2016-12-04T01:35:27 | 2024-08-14T21:41:58 | MyCrypto | MyCryptoHQ/MyCrypto | 1,347 | 727 |
```xml
import { Html, Head, Main, NextScript } from "next/document";
export default function Document() {
const meta = {
title: "Next.js Blog Starter Kit",
description: "Clone and deploy your own Next.js portfolio in minutes.",
image: "path_to_url",
};
return (
<Html lang="en">
<Head>
<meta name="robots" content="follow, index" />
<meta name="description" content={meta.description} />
<meta property="og:site_name" content={meta.title} />
<meta property="og:description" content={meta.description} />
<meta property="og:title" content={meta.title} />
<meta property="og:image" content={meta.image} />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@yourname" />
<meta name="twitter:title" content={meta.title} />
<meta name="twitter:description" content={meta.description} />
<meta name="twitter:image" content={meta.image} />
</Head>
<body>
<Main />
<NextScript />
</body>
</Html>
);
}
``` | /content/code_sandbox/examples/blog/pages/_document.tsx | xml | 2016-10-05T23:32:51 | 2024-08-16T19:44:30 | next.js | vercel/next.js | 124,056 | 263 |
```xml
import "reflect-metadata"
import { DataSource } from "../../../../src/data-source/DataSource"
import {
closeTestingConnections,
createTestingConnections,
reloadTestingDatabases,
} from "../../../utils/test-utils"
import { PostIncrement } from "./entity/PostIncrement"
import { PostUuid } from "./entity/PostUuid"
import { PostDefaultValues } from "./entity/PostDefaultValues"
import { PostSpecialColumns } from "./entity/PostSpecialColumns"
import { expect } from "chai"
import { PostMultiplePrimaryKeys } from "./entity/PostMultiplePrimaryKeys"
import { PostComplex } from "./entity/PostComplex"
import { PostEmbedded } from "./entity/PostEmbedded"
describe("persistence > entity updation", () => {
let connections: DataSource[]
before(
async () =>
(connections = await createTestingConnections({ __dirname })),
)
beforeEach(() => reloadTestingDatabases(connections))
after(() => closeTestingConnections(connections))
it("should update generated auto-increment id after saving", () =>
Promise.all(
connections.map(async (connection) => {
const post = new PostIncrement()
post.text = "Hello Post"
await connection.manager.save(post)
// CockroachDB does not use incremental ids
if (!(connection.driver.options.type === "cockroachdb"))
post.id.should.be.equal(1)
}),
))
it("should update generated uuid after saving", () =>
Promise.all(
connections.map(async (connection) => {
const post = new PostUuid()
post.text = "Hello Post"
await connection.manager.save(post)
const loadedPost = await connection.manager.findOneBy(
PostUuid,
{
id: post.id,
},
)
post.id.should.be.equal(loadedPost!.id)
}),
))
it("should update default values after saving", () =>
Promise.all(
connections.map(async (connection) => {
// Spanner does not support DEFAULT values
if (connection.driver.options.type === "spanner") return
const post = new PostDefaultValues()
post.title = "Post #1"
await connection.manager.save(post)
post.title.should.be.equal("Post #1")
post.text.should.be.equal("hello post")
post.isActive.should.be.equal(true)
post.addDate.should.be.instanceof(Date)
post.views.should.be.equal(0)
expect(post.description).to.be.equal(null)
}),
))
it("should update special columns after saving", () =>
Promise.all(
connections.map(async (connection) => {
// Spanner does not support DEFAULT values
if (connection.driver.options.type === "spanner") return
const post = new PostSpecialColumns()
post.title = "Post #1"
await connection.manager.save(post)
post.title.should.be.equal("Post #1")
post.createDate.should.be.instanceof(Date)
post.updateDate.should.be.instanceof(Date)
post.version.should.be.equal(1)
}),
))
it("should update even when multiple primary keys are used", () =>
Promise.all(
connections.map(async (connection) => {
const post = new PostMultiplePrimaryKeys()
post.firstId = 1
post.secondId = 3
await connection.manager.save(post)
post.firstId.should.be.equal(1)
post.secondId.should.be.equal(3)
post.text.should.be.equal("Hello Multi Ids")
}),
))
it("should update even with embeddeds", () =>
Promise.all(
connections.map(async (connection) => {
// Spanner does not support DEFAULT values
if (connection.driver.options.type === "spanner") return
const post = new PostComplex()
post.firstId = 1
post.embed = new PostEmbedded()
post.embed.secondId = 3
await connection.manager.save(post)
post!.firstId.should.be.equal(1)
post!.embed.secondId.should.be.equal(3)
post!.embed.createDate.should.be.instanceof(Date)
post!.embed.updateDate.should.be.instanceof(Date)
post!.embed.version.should.be.equal(1)
post!.text.should.be.equal("Hello Complexity")
const loadedPost = await connection.manager.findOneBy(
PostComplex,
{ firstId: 1, embed: { secondId: 3 } },
)
loadedPost!.firstId.should.be.equal(1)
loadedPost!.embed.secondId.should.be.equal(3)
loadedPost!.embed.createDate.should.be.instanceof(Date)
loadedPost!.embed.updateDate.should.be.instanceof(Date)
loadedPost!.embed.version.should.be.equal(1)
loadedPost!.text.should.be.equal("Hello Complexity")
}),
))
})
``` | /content/code_sandbox/test/functional/persistence/entity-updation/persistence-entity-updation.ts | xml | 2016-02-29T07:41:14 | 2024-08-16T18:28:52 | typeorm | typeorm/typeorm | 33,875 | 1,007 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
<file source-language="en" target-language="en" datatype="plaintext" original="teams.en.xlf">
<body>
<trans-unit id="A_4Fc7c" resname="teams.project_access">
<source>teams.project_access</source>
<target>Grant access to projects</target>
</trans-unit>
<trans-unit id="QchGnbx" resname="teams.customer_access">
<source>teams.customer_access</source>
<target>Grant access to customers</target>
</trans-unit>
<trans-unit id=".yIcFDx" resname="team.visibility_global">
<source>team.visibility_global</source>
<target>Visible to everyone, as no team was assigned yet.</target>
</trans-unit>
<trans-unit id="hlIIRjb" resname="team.visibility_restricted">
<source>team.visibility_restricted</source>
<target>Only visible to the following teams and all admins.</target>
</trans-unit>
<trans-unit id="sx7AVYH" resname="team.project_visibility_inherited">
<source>team.project_visibility_inherited</source>
<target>The project has limited access, because team permissions are set for the customer.</target>
</trans-unit>
<trans-unit id="FC4DW27" resname="team.activity_visibility_inherited">
<source>team.activity_visibility_inherited</source>
<target>The activity has limited access, because team permissions are set for the project and/or customer.</target>
</trans-unit>
<trans-unit id="cZEIdcu" resname="team.create_default">
<source>team.create_default</source>
<target>Create a new team to limit access</target>
</trans-unit>
<trans-unit id="6g81kYY" approved="yes" resname="team.member">
<source>team.member</source>
<target>Member</target>
</trans-unit>
</body>
</file>
</xliff>
``` | /content/code_sandbox/translations/teams.en.xlf | xml | 2016-10-20T17:06:34 | 2024-08-16T18:27:30 | kimai | kimai/kimai | 3,084 | 484 |
```xml
import React from 'react';
// @ts-ignore ts-migrate(2305) FIXME: Module '"react"' has no exported member 'Node'.
import type { Node } from 'react';
import { ThemeProvider } from 'react-polymorph/lib/components/ThemeProvider';
import { IntlProvider } from 'react-intl';
import { SimpleSkins } from 'react-polymorph/lib/skins/simple';
import { SimpleDefaults } from 'react-polymorph/lib/themes/simple';
import { daedalusTheme } from '../../source/renderer/app/themes/daedalus';
import { themeOverrides } from '../../source/renderer/app/themes/overrides';
import translations from '../../source/renderer/app/i18n/locales/en-US.json';
type Props = {
children: Node;
};
export function TestDecorator({ children }: Props) {
return (
<IntlProvider locale="en-US" messages={translations}>
<ThemeProvider
theme={daedalusTheme}
skins={SimpleSkins}
variables={SimpleDefaults}
themeOverrides={themeOverrides}
>
{children}
</ThemeProvider>
</IntlProvider>
);
}
``` | /content/code_sandbox/tests/_utils/TestDecorator.tsx | xml | 2016-10-05T13:48:54 | 2024-08-13T22:03:19 | daedalus | input-output-hk/daedalus | 1,230 | 233 |
```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
*
*/
import {FC, useCallback, useEffect, useMemo, useState} from 'react';
import cx from 'classnames';
import {container} from 'tsyringe';
import {Button, ButtonVariant} from '@wireapp/react-ui-kit';
import * as Icon from 'Components/Icon';
import {PrimaryModal} from 'Components/Modals/PrimaryModal';
import {RadioGroup} from 'Components/Radio';
import {SelectText} from 'Components/SelectText';
import {BaseToggle} from 'Components/toggle/BaseToggle';
import {TeamState} from 'src/script/team/TeamState';
import {copyText} from 'Util/ClipboardUtil';
import {useKoSubscribableChildren} from 'Util/ComponentUtil';
import {t} from 'Util/LocalizerUtil';
import {Config} from '../../../../../Config';
import {ACCESS_STATE} from '../../../../../conversation/AccessState';
import {teamPermissionsForAccessState} from '../../../../../conversation/ConversationAccessPermission';
import {ConversationRepository} from '../../../../../conversation/ConversationRepository';
import {Conversation} from '../../../../../entity/Conversation';
import {TeamRepository} from '../../../../../team/TeamRepository';
const COPY_LINK_CONFIRM_DURATION = 1500;
enum PasswordPreference {
PASSWORD_SECURED = 'Password secured',
NOT_PASSWORD_SECURED = 'Not password secured',
}
interface GuestOptionsProps {
activeConversation: Conversation;
conversationRepository: ConversationRepository;
teamRepository: TeamRepository;
toggleAccessState: (accessType: number, text: string, hasService: boolean) => void;
setIsRequestOngoing: (isRequestOngoing: boolean) => void;
isRequestOngoing?: boolean;
isTeamStateGuestLinkEnabled?: boolean;
isToggleDisabled?: boolean;
isPasswordSupported?: boolean;
teamState?: TeamState;
}
const GuestOptions: FC<GuestOptionsProps> = ({
activeConversation,
conversationRepository,
teamRepository,
toggleAccessState,
setIsRequestOngoing,
isRequestOngoing = false,
isTeamStateGuestLinkEnabled = false,
isToggleDisabled = false,
isPasswordSupported = false,
teamState = container.resolve(TeamState),
}) => {
const [isLinkCopied, setIsLinkCopied] = useState<boolean>(false);
const [conversationHasGuestLinkEnabled, setConversationHasGuestLinkEnabled] = useState<boolean>(false);
const [optionPasswordSecured, setOptionPasswordSecured] = useState<PasswordPreference>(
PasswordPreference.PASSWORD_SECURED,
);
const {accessCode, accessCodeHasPassword, hasGuest, isGuestAndServicesRoom, isGuestRoom, isServicesRoom} =
useKoSubscribableChildren(activeConversation, [
'accessCode',
'accessCodeHasPassword',
'hasGuest',
'isGuestAndServicesRoom',
'isGuestRoom',
'isServicesRoom',
]);
const inTeam = teamState.isInTeam(activeConversation);
const isGuestEnabled = isGuestRoom || isGuestAndServicesRoom;
const isGuestLinkEnabled = inTeam
? isTeamStateGuestLinkEnabled
: isTeamStateGuestLinkEnabled && conversationHasGuestLinkEnabled;
const isServicesEnabled = isServicesRoom || isGuestAndServicesRoom;
const hasAccessCode: boolean = isGuestEnabled ? !!accessCode : false;
const guestInfoText = useMemo(() => {
if (!inTeam) {
return t('guestRoomToggleInfoDisabled');
}
if (accessCodeHasPassword) {
return isGuestEnabled ? (
<span>
<span style={{marginBottom: 8, display: 'block'}}>{t('guestOptionsInfoTextWithPassword')}</span>
{'\n'}
<span>{t('guestOptionsInfoTextForgetPassword')}</span>
</span>
) : (
t('guestRoomToggleInfo')
);
}
return isGuestEnabled ? t('guestOptionsInfoText', Config.getConfig().BRAND_NAME) : t('guestRoomToggleInfo');
}, [inTeam, isGuestEnabled, accessCodeHasPassword]);
const guestLinkDisabledInfo = !isTeamStateGuestLinkEnabled
? t('guestLinkDisabled')
: t('guestLinkDisabledByOtherTeam');
const toggleGuestAccess = async () => {
await toggleAccessState(
teamPermissionsForAccessState(ACCESS_STATE.TEAM.GUEST_FEATURES),
t('modalConversationRemoveGuestsMessage'),
hasGuest,
);
};
const copyLink = async () => {
if (!isLinkCopied) {
await copyText(accessCode);
setIsLinkCopied(true);
window.setTimeout(() => setIsLinkCopied(false), COPY_LINK_CONFIRM_DURATION);
}
};
const revokeAccessCode = () => {
PrimaryModal.show(PrimaryModal.type.CONFIRM, {
preventClose: true,
primaryAction: {
action: async (): Promise<void> => {
if (!isRequestOngoing) {
setIsRequestOngoing(true);
await conversationRepository.stateHandler.revokeAccessCode(activeConversation);
setIsRequestOngoing(false);
}
},
text: t('modalConversationRevokeLinkAction'),
},
text: {
message: t('modalConversationRevokeLinkMessage'),
title: t('modalConversationRevokeLinkHeadline'),
},
});
};
const openForcePasswordCopyModal = async (password: string) => {
PrimaryModal.show(
PrimaryModal.type.CONFIRM,
{
closeOnConfirm: true,
preventClose: false,
primaryAction: {
action: async () => {
await copyText(password);
await requestAccessCode(password);
},
text: t('guestOptionsPasswordCopyToClipboard'),
},
text: {
title: t('guestOptionsPasswordCopyToClipboard'),
message: t('guestOptionsPasswordForceToCopy'),
},
},
undefined,
);
};
const createGuestLinkWithPassword = async () => {
const onCreate = async (password: string, didCopyPassword: boolean) => {
if (!didCopyPassword) {
await openForcePasswordCopyModal(password);
return;
}
await requestAccessCode(password);
};
PrimaryModal.show(
PrimaryModal.type.GUEST_LINK_PASSWORD,
{
copyPassword: true,
closeOnConfirm: true,
preventClose: false,
primaryAction: {
action: onCreate,
text: t('guestOptionsInfoModalAction'),
},
secondaryAction: {
text: t('modalConfirmSecondary'),
},
text: {
closeBtnLabel: t('guestOptionsInfoModalCancel'),
input: t('guestOptionsInfoModalFormLabel'),
message: (
<>
{t('guestOptionsInfoModalTitleSubTitle')}
{'\n'}
<span css={{display: 'block'}} className="text-bold-small">
{t('guestOptionsInfoModalTitleBoldSubTitle')}
</span>
</>
),
title: t('guestOptionsInfoModalTitle'),
},
},
undefined,
);
};
const requestAccessCode = async (password?: string) => {
if (!isGuestEnabled && !isServicesEnabled) {
await conversationRepository.stateHandler.changeAccessState(activeConversation, ACCESS_STATE.TEAM.GUEST_ROOM);
}
if (!isRequestOngoing) {
setIsRequestOngoing(true);
await conversationRepository.stateHandler.requestAccessCode(activeConversation, password);
setIsRequestOngoing(false);
}
};
const createLink = async () => {
if (optionPasswordSecured === PasswordPreference.PASSWORD_SECURED) {
await createGuestLinkWithPassword();
return;
}
await requestAccessCode();
};
const updateCode = useCallback(async () => {
const canUpdateCode = (isGuestRoom || isGuestAndServicesRoom) && !accessCode && isGuestLinkEnabled;
if (canUpdateCode) {
setIsRequestOngoing(true);
await conversationRepository.stateHandler.getAccessCode(activeConversation);
setIsRequestOngoing(false);
}
}, [accessCode, activeConversation, isGuestAndServicesRoom, isGuestLinkEnabled, isGuestRoom, setIsRequestOngoing]);
const initializeOptions = useCallback(async () => {
if (!inTeam && !isGuestLinkEnabled) {
const hasGuestLink = await teamRepository.conversationHasGuestLinkEnabled(activeConversation.id);
setConversationHasGuestLinkEnabled(hasGuestLink);
}
await updateCode();
}, [activeConversation, inTeam, isGuestLinkEnabled, updateCode]);
useEffect(() => {
initializeOptions();
}, [initializeOptions]);
const saveOptionPasswordSecured = (preference: PasswordPreference) => {
setOptionPasswordSecured(preference);
};
return (
<>
<div className="guest-options__content">
<BaseToggle
isChecked={isGuestEnabled}
setIsChecked={toggleGuestAccess}
isDisabled={isToggleDisabled}
toggleName={t('guestRoomToggleName')}
toggleId="guests"
/>
<p className="guest-options__info-head">
{hasAccessCode && accessCodeHasPassword ? (
<span style={{display: 'flex', alignItems: 'center', marginBottom: 8}}>
<Icon.ShieldIcon
data-uie-name="generate-password-icon"
width="16"
height="16"
css={{marginRight: '10px'}}
/>
{t('guestOptionsInfoPasswordSecured')}
</span>
) : (
t('guestRoomToggleInfoHead')
)}
</p>
<p className="guest-options__info-text " data-uie-name="status-guest-options-info">
{guestInfoText}
</p>
</div>
{isGuestEnabled && (
<>
{isGuestLinkEnabled && (
<>
{hasAccessCode && (
<>
<SelectText text={accessCode} className="guest-options__link" dataUieName="status-invite-link" />
<button
className={cx('panel__action-item panel__action-item--link panel__action-item--alternate', {
'panel__action-item--show-alternative': isLinkCopied,
})}
type="button"
onClick={copyLink}
data-uie-name="do-copy-link"
>
<span className="panel__action-item__default">
<span className="panel__action-item__icon">
<Icon.CopyIcon />
</span>
<span className="panel__action-item__text">{t('guestOptionsCopyLink')}</span>
</span>
<span className="panel__action-item__alternative">
<span className="panel__action-item__icon">
<Icon.CheckIcon />
</span>
<span className="panel__action-item__text" data-uie-name="status-copy-link-done">
{t('guestOptionsCopyLinkDone')}
</span>
</span>
</button>
<button
className="panel__action-item panel__action-item--link"
type="button"
disabled={isRequestOngoing}
onClick={revokeAccessCode}
>
<span className="panel__action-item__icon">
<Icon.CloseIcon />
</span>
<span className="panel__action-item__text" data-uie-name="do-revoke-link">
{t('guestOptionsRevokeLink')}
</span>
</button>
</>
)}
{!hasAccessCode && !isPasswordSupported && (
<div className="guest-options__content">
<Button
disabled={isRequestOngoing}
variant={ButtonVariant.TERTIARY}
onClick={() => requestAccessCode()}
data-uie-name="do-create-link"
>
<Icon.LinkIcon width="16" height="16" css={{marginRight: '10px'}} />
{t('guestOptionsCreateLink')}
</Button>
</div>
)}
{!hasAccessCode && isPasswordSupported && (
<>
<div className="guest-options__password-radio">
<p className="guest-options__info-text">{t('guestOptionsInfoTextSecureWithPassword')}</p>
<RadioGroup
ariaLabelledBy={t('guestOptionsPasswordRadioLabel')}
name="guest-links-password"
selectedValue={optionPasswordSecured}
onChange={saveOptionPasswordSecured}
options={[
{
label: t('guestOptionsPasswordRadioOptionSecured'),
value: PasswordPreference.PASSWORD_SECURED,
},
{
label: t('guestOptionsPasswordRadioOptionNotSecured'),
value: PasswordPreference.NOT_PASSWORD_SECURED,
},
]}
/>
</div>
<div className="guest-options__content">
<Button
disabled={isRequestOngoing}
variant={ButtonVariant.TERTIARY}
onClick={createLink}
data-uie-name="do-create-link"
>
<Icon.LinkIcon width="16" height="16" css={{marginRight: '10px'}} />
{t('guestOptionsCreateLink')}
</Button>
</div>
</>
)}
</>
)}
{!isGuestLinkEnabled && (
<div className="panel__action-item--info">
<span className="panel__action-item__icon--info">
<Icon.InfoIcon />
</span>
<p className="panel__action-item__text--info" data-uie-name="guest-link-disabled-info">
{guestLinkDisabledInfo}
</p>
</div>
)}
</>
)}
</>
);
};
export {GuestOptions};
``` | /content/code_sandbox/src/script/page/RightSidebar/GuestServicesOptions/components/GuestOptions/GuestOptions.tsx | xml | 2016-07-21T15:34:05 | 2024-08-16T11:40:13 | wire-webapp | wireapp/wire-webapp | 1,125 | 2,990 |
```xml
export enum EmergencyAccessStatusType {
Invited = 0,
Accepted = 1,
Confirmed = 2,
RecoveryInitiated = 3,
RecoveryApproved = 4,
}
``` | /content/code_sandbox/apps/web/src/app/auth/emergency-access/enums/emergency-access-status-type.ts | xml | 2016-03-09T23:14:01 | 2024-08-16T15:07:51 | clients | bitwarden/clients | 8,877 | 44 |
```xml
import { KeySystemIdentifier } from '../../Syncable/KeySystemRootKey/KeySystemIdentifier'
export type ExclusionaryOptions = { exclude: KeySystemIdentifier[]; locked: KeySystemIdentifier[] }
export type ExclusiveOptions = { exclusive: KeySystemIdentifier }
export function isExclusionaryOptionsValue(
options: ExclusionaryOptions | ExclusiveOptions,
): options is ExclusionaryOptions {
return 'exclude' in options || 'locked' in options
}
export type VaultDisplayOptionsPersistable = ExclusionaryOptions | ExclusiveOptions
``` | /content/code_sandbox/packages/models/src/Domain/Runtime/Display/VaultDisplayOptionsTypes.ts | xml | 2016-12-05T23:31:33 | 2024-08-16T06:51:19 | app | standardnotes/app | 5,180 | 114 |
```xml
import { createReducer, ActionType } from 'typesafe-actions';
import * as actions from './actions';
import { IWorkspaces } from './types';
export default createReducer<IWorkspaces, ActionType<typeof actions>>({
data: {
currentWorkspace: { type: 'user' },
},
}) as any;
``` | /content/code_sandbox/webapp/client/src/features/workspaces/store/reducer.ts | xml | 2016-10-19T01:07:26 | 2024-08-14T03:53:55 | modeldb | VertaAI/modeldb | 1,689 | 66 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<list id="chemicalElement" convention="bodr:elements"
title="properties of the elements"
xmlns="path_to_url"
xmlns:xml="path_to_url"
xmlns:xsi="path_to_url"
xmlns:bo="path_to_url"
xmlns:boUnits="path_to_url"
xmlns:units="path_to_url"
xmlns:siUnits="path_to_url"
xmlns:bibx="path_to_url"
xsi:schemaLocation="path_to_url ../schemas/cml25.xsd
path_to_url ../schemas/bibtexml.xsd">
<metadataList>
<!-- manually updated -->
<metadata name="dc:title" content="Blue Obelisk Element Repository" />
<metadata name="dc:creator" content="The Blue Obelisk Movement" />
<metadata name="dc:contributor" content="Geoffrey R. Hutchison" />
<metadata name="dc:contributor" content="Carsten Niehaus" />
<metadata name="dc:contributor" content="Egon Willighagen" />
<metadata name="dc:description" content="Database of elements and elemental properties (names, symbols, masses, exact masses, van der Waals radii, ionization potential, electron affinity, electronegativity, etc." />
</metadataList>
<atom id="Xx">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">0</scalar>
<label dictRef="bo:symbol" value="Xx" />
<label dictRef="bo:name" xml:lang="en" value="Dummy" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass">0.0000</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">0.00000</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">0.0</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">0</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.07 0.50 0.70</array>
</atom>
<atom id="H">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">1</scalar>
<label dictRef="bo:symbol" value="H" />
<label dictRef="bo:name" xml:lang="en" value="Hydrogen" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="7">1.00794</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">1.007825032</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">13.5984</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev" errorValue="3">0.75420375</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">2.20</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Greek 'hydro' and 'gennao' for 'forms water'</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">0.37</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">1.2</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">1.00 1.00 1.00</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">20.28</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">14.01</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">s</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">uk</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1766</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">C. Cavendish</array>
<scalar dataType="xsd:int" dictRef="bo:period">1</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">1</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">1s1</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Non-Metal</scalar>
</atom>
<atom id="He">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">2</scalar>
<label dictRef="bo:symbol" value="He" />
<label dictRef="bo:name" xml:lang="en" value="Helium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="2">4.002602</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">4.002603254</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">24.5874</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev">0</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">The Greek word for the sun was 'helios'</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">0.32</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">1.4</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.85 1.00 1.00</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">4.216</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">0.95</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">p</scalar>
<array dataType="xsd:string" delimiter="," size="2" dictRef="bo:discoveryCountry">se,uk</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1895</scalar>
<array dataType="xsd:string" delimiter=";" size="2" dictRef="bo:discoverers">P. J. Janssen;J. N. Lockyer</array>
<scalar dataType="xsd:int" dictRef="bo:period">1</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">8</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">1s2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Noblegas</scalar>
</atom>
<atom id="Li">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">3</scalar>
<label dictRef="bo:symbol" value="Li" />
<label dictRef="bo:name" xml:lang="en" value="Lithium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="2">6.941</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">7.01600455</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">5.3917</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev" errorValue="21">0.618049</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">0.98</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Greek 'lithos' means 'stone'</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">1.34</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.2</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.80 0.50 1.00</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">1615</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">453.7</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">s</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">se</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1817</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">A. Arfvedson</array>
<scalar dataType="xsd:int" dictRef="bo:period">2</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">1</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">He 2s1</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Alkali_Earth</scalar>
</atom>
<atom id="Be">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">4</scalar>
<label dictRef="bo:symbol" value="Be" />
<label dictRef="bo:name" xml:lang="en" value="Beryllium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="3">9.012182</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">9.0121822</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">9.3227</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev">0</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">1.57</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Greek 'beryllos' for 'light-green stone'</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">0.90</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">1.9</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.76 1.00 0.00</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">3243</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">1560</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">s</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">fr</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1797</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">Nicholas Louis Vauquelin</array>
<scalar dataType="xsd:int" dictRef="bo:period">2</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">2</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">He 2s2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Alkaline_Earth</scalar>
</atom>
<atom id="B">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">5</scalar>
<label dictRef="bo:symbol" value="B" />
<label dictRef="bo:name" xml:lang="en" value="Boron" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="7">10.811</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">11.0093054</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">8.2980</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev" errorValue="25">0.279723</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">2.04</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Boron means 'Bor(ax) + (carb)on'. It is found in borax and behaves a lot like carbon</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">0.82</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">1.8</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">1.00 0.71 0.71</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">4275</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">2365</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">p</scalar>
<array dataType="xsd:string" delimiter="," size="2" dictRef="bo:discoveryCountry">uk,fr</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1808</scalar>
<array dataType="xsd:string" delimiter=";" size="2" dictRef="bo:discoverers">Louis Joseph Gay-Lussac;Louis Jacques Thenard</array>
<scalar dataType="xsd:int" dictRef="bo:period">2</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">3</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">He 2s2 2p1</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Metalloids</scalar>
</atom>
<atom id="C">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">6</scalar>
<label dictRef="bo:symbol" value="C" />
<label dictRef="bo:name" xml:lang="en" value="Carbon" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="8">12.0107</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">12</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">11.2603</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev" errorValue="20">1.262118</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">2.55</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Latin 'carboneum' for carbon</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">0.77</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">1.7</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.50 0.50 0.50</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">5100</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">3825</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">p</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">ancient</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">0</scalar>
<scalar dataType="xsd:int" dictRef="bo:period">2</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">4</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">He 2s2 2p2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Non-Metal</scalar>
</atom>
<atom id="N">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">7</scalar>
<label dictRef="bo:symbol" value="N" />
<label dictRef="bo:name" xml:lang="en" value="Nitrogen" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="2">14.0067</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">14.003074</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">14.5341</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev" errorValue="2">-0.07</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">3.04</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Latin 'nitrogenium' ('forms saltpeter')</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">0.75</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">1.6</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.05 0.05 1.00</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">77.344</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">63.15</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">p</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">uk</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1772</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">D. Rutherford</array>
<scalar dataType="xsd:int" dictRef="bo:period">2</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">5</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">He 2s2 2p3</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Non-Metal</scalar>
</atom>
<atom id="O">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">8</scalar>
<label dictRef="bo:symbol" value="O" />
<label dictRef="bo:name" xml:lang="en" value="Oxygen" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="3">15.9994</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">15.99491462</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">13.6181</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev" errorValue="27">1.4611120</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">3.44</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Latin 'oxygenium' (forms acids)</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">0.73</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">1.55</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">1.00 0.05 0.05</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">90.188</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">54.8</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">p</scalar>
<array dataType="xsd:string" delimiter="," size="2" dictRef="bo:discoveryCountry">se,uk</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1774</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">J. Priestley</array>
<scalar dataType="xsd:int" dictRef="bo:period">2</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">6</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">He 2s2 2p4</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Non-Metal</scalar>
</atom>
<atom id="F">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">9</scalar>
<label dictRef="bo:symbol" value="F" />
<label dictRef="bo:name" xml:lang="en" value="Fluorine" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="5">18.9984032</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">18.99840322</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">17.4228</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev" errorValue="32">3.4011887</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">3.98</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Latin 'fluere' ('floats')</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">0.71</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">1.5</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.70 1.00 1.00</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">85</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">53.55</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">p</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">fr</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1886</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">H. F. Moissan</array>
<scalar dataType="xsd:int" dictRef="bo:period">2</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">7</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">He 2s2 2p5</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Halogen</scalar>
</atom>
<atom id="Ne">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">10</scalar>
<label dictRef="bo:symbol" value="Ne" />
<label dictRef="bo:name" xml:lang="en" value="Neon" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="6">20.1797</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">19.99244018</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">21.5645</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev">0</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Greek 'neo'. meaning 'new'</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">0.69</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">1.54</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.70 0.89 0.96</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">27.1</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">24.55</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">p</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">uk</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1898</scalar>
<array dataType="xsd:string" delimiter=";" size="2" dictRef="bo:discoverers">W. Ramsay;M.W. Travers</array>
<scalar dataType="xsd:int" dictRef="bo:period">2</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">8</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">He 2s2 2p6</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Noblegas</scalar>
</atom>
<atom id="Na">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">11</scalar>
<label dictRef="bo:symbol" value="Na" />
<label dictRef="bo:name" xml:lang="en" value="Sodium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="2">22.98976928</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">22.98976928</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">5.1391</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev" errorValue="25">0.547926</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">0.93</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Arabic 'natrun' for 'soda'</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">1.54</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.4</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.67 0.36 0.95</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">1156</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">371</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">s</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">uk</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1807</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">Sir Humphrey Davy</array>
<scalar dataType="xsd:int" dictRef="bo:period">3</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">1</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Ne 3s1</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Alkali_Earth</scalar>
</atom>
<atom id="Mg">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">12</scalar>
<label dictRef="bo:symbol" value="Mg" />
<label dictRef="bo:name" xml:lang="en" value="Magnesium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="6">24.3050</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">23.9850417</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">7.6462</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev">0</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">1.31</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Named after the city of Magnesia</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">1.30</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.2</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.54 1.00 0.00</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">1380</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">922</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">s</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">uk</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1808</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">H. B. Davy</array>
<scalar dataType="xsd:int" dictRef="bo:period">3</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">2</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Ne 3s2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Alkaline_Earth</scalar>
</atom>
<atom id="Al">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">13</scalar>
<label dictRef="bo:symbol" value="Al" />
<label dictRef="bo:name" xml:lang="en" value="Aluminium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="8">26.9815386</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">26.98153863</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">5.9858</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev" errorValue="5">0.43283</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">1.61</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Latin 'alumen'</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">1.18</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.1</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.75 0.65 0.65</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">2740</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">933.5</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">p</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">dk</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1825</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">H. Ch. Oersted</array>
<scalar dataType="xsd:int" dictRef="bo:period">3</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">3</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Ne 3s2 3p1</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Other_Metal</scalar>
</atom>
<atom id="Si">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">14</scalar>
<label dictRef="bo:symbol" value="Si" />
<label dictRef="bo:name" xml:lang="en" value="Silicon" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="3">28.0855</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">27.97692653</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">8.1517</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev" errorValue="20">1.389521</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">1.90</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Latin 'silex'</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">1.11</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.1</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.50 0.60 0.60</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">2630</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">1683</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">p</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">se</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1823</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">J. J. Berzelius</array>
<scalar dataType="xsd:int" dictRef="bo:period">3</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">4</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Ne 3s2 3p2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Metalloids</scalar>
</atom>
<atom id="P">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">15</scalar>
<label dictRef="bo:symbol" value="P" />
<label dictRef="bo:name" xml:lang="en" value="Phosphorus" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="2">30.973762</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">30.97376163</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">10.4867</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev" errorValue="3">0.7465</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">2.19</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Greek 'phosphoros' for 'carries light'</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">1.06</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">1.95</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">1.00 0.50 0.00</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">553</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">317.3</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">p</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">de</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1669</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">H. Brandt</array>
<scalar dataType="xsd:int" dictRef="bo:period">3</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">5</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Ne 3s2 3p3</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Non-Metal</scalar>
</atom>
<atom id="S">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">16</scalar>
<label dictRef="bo:symbol" value="S" />
<label dictRef="bo:name" xml:lang="en" value="Sulfur" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="5">32.065</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">31.972071</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">10.3600</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev" errorValue="10">2.0771029</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">2.58</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">In sanskrit 'sweb' means 'to sleep'</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">1.02</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">1.8</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">1.00 1.00 0.19</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">717.82</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">392.2</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">p</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">ancient</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">0</scalar>
<scalar dataType="xsd:int" dictRef="bo:period">3</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">6</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Ne 3s2 3p4</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Non-Metal</scalar>
</atom>
<atom id="Cl">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">17</scalar>
<label dictRef="bo:symbol" value="Cl" />
<label dictRef="bo:name" xml:lang="en" value="Chlorine" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="2">35.453</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">34.96885268</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">12.9676</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev" errorValue="27">3.612724</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">3.16</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Greek 'chloros' for 'yellow-green'</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">0.99</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">1.8</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.12 0.94 0.12</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">239.18</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">172.17</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">p</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">se</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1774</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">C. W. Scheele</array>
<scalar dataType="xsd:int" dictRef="bo:period">3</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">7</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Ne 3s2 3p5</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Halogen</scalar>
</atom>
<atom id="Ar">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">18</scalar>
<label dictRef="bo:symbol" value="Ar" />
<label dictRef="bo:name" xml:lang="en" value="Argon" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="1">39.948</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">39.96238312</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">15.7596</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev">0</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Greek 'aergon' for 'inactive'</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">0.97</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">1.88</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.50 0.82 0.89</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">87.45</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">83.95</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">p</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">uk</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1894</scalar>
<array dataType="xsd:string" delimiter=";" size="2" dictRef="bo:discoverers">W. Ramsay;J. Rayleigh</array>
<scalar dataType="xsd:int" dictRef="bo:period">3</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">8</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Ne 3s2 3p6</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Noblegas</scalar>
</atom>
<atom id="K">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">19</scalar>
<label dictRef="bo:symbol" value="K" />
<label dictRef="bo:name" xml:lang="en" value="Potassium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="1">39.0983</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">38.96370668</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">4.3407</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev" errorValue="12">0.501459</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">0.82</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Arabic 'al qaliy' for potash</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">1.96</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.8</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.56 0.25 0.83</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">1033</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">336.8</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">s</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">uk</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1807</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">H. B. Davy</array>
<scalar dataType="xsd:int" dictRef="bo:period">4</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">1</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Ar 4s1</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Alkali_Earth</scalar>
</atom>
<atom id="Ca">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">20</scalar>
<label dictRef="bo:symbol" value="Ca" />
<label dictRef="bo:name" xml:lang="en" value="Calcium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="4">40.078</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">39.96259098</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">6.1132</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev" errorValue="10">0.02455</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">1.00</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Latin 'calx' for 'lime'</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">1.74</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.4</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.24 1.00 0.00</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">1757</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">1112</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">s</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">uk</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1808</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">H. B. Davy</array>
<scalar dataType="xsd:int" dictRef="bo:period">4</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">2</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Ar 4s2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Alkaline_Earth</scalar>
</atom>
<atom id="Sc">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">21</scalar>
<label dictRef="bo:symbol" value="Sc" />
<label dictRef="bo:name" xml:lang="en" value="Scandium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="6">44.955912</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">44.9559119</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">6.5615</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev" errorValue="20">0.188</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">1.36</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Named because it was found in Scandinavia</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">1.44</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.3</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.90 0.90 0.90</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">3109</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">1814</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">d</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">se</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1879</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">L. Nilson</array>
<scalar dataType="xsd:int" dictRef="bo:period">4</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">3</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Ar 3d1 4s2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Transition</scalar>
</atom>
<atom id="Ti">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">22</scalar>
<label dictRef="bo:symbol" value="Ti" />
<label dictRef="bo:name" xml:lang="en" value="Titanium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="1">47.867</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">47.9479463</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">6.8281</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev" errorValue="9">0.084</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">1.54</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">The Titans were giants in Greek mythology</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">1.36</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.15</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.75 0.76 0.78</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">3560</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">1935</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">d</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">uk</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1791</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">W. Gregor</array>
<scalar dataType="xsd:int" dictRef="bo:period">4</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">4</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Ar 3d2 4s2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Transition</scalar>
</atom>
<atom id="V">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">23</scalar>
<label dictRef="bo:symbol" value="V" />
<label dictRef="bo:name" xml:lang="en" value="Vanadium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="1">50.9415</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">50.9439595</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">6.7462</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev" errorValue="12">0.525</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">1.63</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">'Vanadis' is another name for the Nordic goddess Freyja</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">1.25</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.05</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.65 0.65 0.67</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">3650</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">2163</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">d</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">se</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1830</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">N. Sefstrm</array>
<scalar dataType="xsd:int" dictRef="bo:period">4</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">5</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Ar 3d3 4s2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Transition</scalar>
</atom>
<atom id="Cr">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">24</scalar>
<label dictRef="bo:symbol" value="Cr" />
<label dictRef="bo:name" xml:lang="en" value="Chromium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="6">51.9961</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">51.9405075</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">6.7665</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev" errorValue="12">0.67584</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">1.66</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Greek 'chroma' means 'color'</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">1.27</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.05</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.54 0.60 0.78</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">2945</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">2130</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">d</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">fr</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1797</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">Nicholas Louis Vauquelin</array>
<scalar dataType="xsd:int" dictRef="bo:period">4</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">6</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Ar 3d5 4s1</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Transition</scalar>
</atom>
<atom id="Mn">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">25</scalar>
<label dictRef="bo:symbol" value="Mn" />
<label dictRef="bo:name" xml:lang="en" value="Manganese" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="5">54.938045</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">54.9380451</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">7.4340</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev">0</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">1.55</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">It was discovered near a town named Magnesia in black earth. Thus, it was named 'magnesia nigra', or for short, Manganese.</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">1.39</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.05</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.61 0.48 0.78</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">2235</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">1518</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">d</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">se</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1774</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">C. W. Scheele</array>
<scalar dataType="xsd:int" dictRef="bo:period">4</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">7</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Ar 3d5 4s2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Transition</scalar>
</atom>
<atom id="Fe">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">26</scalar>
<label dictRef="bo:symbol" value="Fe" />
<label dictRef="bo:name" xml:lang="en" value="Iron" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="2">55.845</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">55.9349375</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">7.9024</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev" errorValue="3">0.151</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">1.83</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Latin 'ferrum'</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">1.25</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.05</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.50 0.48 0.78</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">3023</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">1808</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">d</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">ancient</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">0</scalar>
<scalar dataType="xsd:int" dictRef="bo:period">4</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">8</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Ar 3d6 4s2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Transition</scalar>
</atom>
<atom id="Co">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">27</scalar>
<label dictRef="bo:symbol" value="Co" />
<label dictRef="bo:name" xml:lang="en" value="Cobalt" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="5">58.933195</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">58.933195</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">7.8810</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev" errorValue="6">0.6633</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">1.88</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Named after the German word 'Kobold' for 'goblin'</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">1.26</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.44 0.48 0.78</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">3143</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">1768</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">d</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">se</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1737</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">G. Brandt</array>
<scalar dataType="xsd:int" dictRef="bo:period">4</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">8</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Ar 3d7 4s2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Transition</scalar>
</atom>
<atom id="Ni">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">28</scalar>
<label dictRef="bo:symbol" value="Ni" />
<label dictRef="bo:name" xml:lang="en" value="Nickel" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="4">58.6934</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">57.9353429</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">7.6398</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev" errorValue="12">1.15716</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">1.91</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">'Nickel' was the name of a mountain goblin</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">1.21</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.36 0.48 0.76</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">3005</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">1726</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">d</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">se</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1751</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">A. F. Cronstedt</array>
<scalar dataType="xsd:int" dictRef="bo:period">4</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">8</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Ar 3d8 4s2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Transition</scalar>
</atom>
<atom id="Cu">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">29</scalar>
<label dictRef="bo:symbol" value="Cu" />
<label dictRef="bo:name" xml:lang="en" value="Copper" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="3">63.546</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">62.9295975</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">7.7264</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev" errorValue="4">1.23578</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">1.90</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Greek 'cuprum' for Cypres</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">1.38</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">1.00 0.48 0.38</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">2840</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">1356.6</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">d</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">ancient</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">0</scalar>
<scalar dataType="xsd:int" dictRef="bo:period">4</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">1</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Ar 3d10 4s1</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Transition</scalar>
</atom>
<atom id="Zn">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">30</scalar>
<label dictRef="bo:symbol" value="Zn" />
<label dictRef="bo:name" xml:lang="en" value="Zinc" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="2">65.38</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">63.9291422</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">9.3942</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev">0</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">1.65</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">German 'zinking' for 'rough', because zinc ore is very rough</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">1.31</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.1</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.49 0.50 0.69</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">1180</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">692.73</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">d</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">de</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1746</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">Andreas Marggraf</array>
<scalar dataType="xsd:int" dictRef="bo:period">4</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">2</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Ar 3d10 4s2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Transition</scalar>
</atom>
<atom id="Ga">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">31</scalar>
<label dictRef="bo:symbol" value="Ga" />
<label dictRef="bo:name" xml:lang="en" value="Gallium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="1">69.723</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">68.9255736</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">5.9993</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev" errorValue="4">0.41</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">1.81</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">'Gallia' is an old name for France</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">1.26</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.1</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.76 0.56 0.56</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">2478</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">302.92</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">p</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">fr</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1875</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">P. E. Lecoq de Boisbaudran</array>
<scalar dataType="xsd:int" dictRef="bo:period">4</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">3</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Ar 3d10 4s2 4p1</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Other_Metal</scalar>
</atom>
<atom id="Ge">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">32</scalar>
<label dictRef="bo:symbol" value="Ge" />
<label dictRef="bo:name" xml:lang="en" value="Germanium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="1">72.64</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">73.9211778</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">7.8994</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev" errorValue="15">1.232712</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">2.01</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Latin 'germania' is an old name for Germany</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">1.22</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.1</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.40 0.56 0.56</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">3107</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">1211.5</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">p</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">de</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1886</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">C. A. Winkler</array>
<scalar dataType="xsd:int" dictRef="bo:period">4</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">4</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Ar 3d10 4s2 4p2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Metalloids</scalar>
</atom>
<atom id="As">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">33</scalar>
<label dictRef="bo:symbol" value="As" />
<label dictRef="bo:name" xml:lang="en" value="Arsenic" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="2">74.92160</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">74.9215965</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">9.7886</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev" errorValue="8">0.814</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">2.18</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Greek 'arsenikos' for 'male' or 'bold'</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">1.19</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.05</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.74 0.50 0.89</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">876</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">1090</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">p</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">ancient</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">0</scalar>
<scalar dataType="xsd:int" dictRef="bo:period">4</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">5</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Ar 3d10 4s2 4p3</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Metalloids</scalar>
</atom>
<atom id="Se">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">34</scalar>
<label dictRef="bo:symbol" value="Se" />
<label dictRef="bo:name" xml:lang="en" value="Selenium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="3">78.96</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">79.9165213</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">9.7524</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev" errorValue="2">2.02067</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">2.55</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Greek 'selena' for 'moon'</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">1.16</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">1.9</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">1.00 0.63 0.00</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">958</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">494</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">p</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">se</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1817</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">J. J. Berzelius</array>
<scalar dataType="xsd:int" dictRef="bo:period">4</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">6</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Ar 3d10 4s2 4p4</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Non-Metal</scalar>
</atom>
<atom id="Br">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">35</scalar>
<label dictRef="bo:symbol" value="Br" />
<label dictRef="bo:name" xml:lang="en" value="Bromine" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="1">79.904</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">78.9183371</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">11.8138</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev" errorValue="20">3.3635880</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">2.96</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Greek 'bromos' for 'smells badly'</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">1.14</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">1.9</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.65 0.16 0.16</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">331.85</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">265.95</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">p</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">fr</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1826</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">A. J. Balard</array>
<scalar dataType="xsd:int" dictRef="bo:period">4</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">7</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Ar 3d10 4s2 4p5</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Halogen</scalar>
</atom>
<atom id="Kr">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">36</scalar>
<label dictRef="bo:symbol" value="Kr" />
<label dictRef="bo:name" xml:lang="en" value="Krypton" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="2">83.798</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">83.911507</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">13.9996</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev">0</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">3.00</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Greek 'kryptos' for 'hidden'</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">1.10</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.02</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.36 0.72 0.82</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">120.85</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">116</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">p</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">uk</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1898</scalar>
<array dataType="xsd:string" delimiter=";" size="2" dictRef="bo:discoverers">W. Ramsay;M. W. Travers</array>
<scalar dataType="xsd:int" dictRef="bo:period">4</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">8</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Ar 3d10 4s2 4p6</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Noblegas</scalar>
</atom>
<atom id="Rb">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">37</scalar>
<label dictRef="bo:symbol" value="Rb" />
<label dictRef="bo:name" xml:lang="en" value="Rubidium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="3">85.4678</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">84.91178974</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">4.1771</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev" errorValue="20">0.485916</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">0.82</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Latin 'rubidus' for 'dark red'</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">2.11</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.9</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.44 0.18 0.69</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">961</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">312.63</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">s</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">de</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1861</scalar>
<array dataType="xsd:string" delimiter=";" size="2" dictRef="bo:discoverers">Robert W. Bunsen;Gustav R. Kirchhoff</array>
<scalar dataType="xsd:int" dictRef="bo:period">5</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">1</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Kr 5s1</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Alkali_Earth</scalar>
</atom>
<atom id="Sr">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">38</scalar>
<label dictRef="bo:symbol" value="Sr" />
<label dictRef="bo:name" xml:lang="en" value="Strontium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="1">87.62</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">87.9056121</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">5.6949</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev" errorValue="6">0.05206</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">0.95</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Named after the mineral Strontianit</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">1.92</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.55</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.00 1.00 0.00</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">1655</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">1042</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">s</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">uk</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1790</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">H. B. Davy</array>
<scalar dataType="xsd:int" dictRef="bo:period">5</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">2</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Kr 5s2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Alkaline_Earth</scalar>
</atom>
<atom id="Y">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">39</scalar>
<label dictRef="bo:symbol" value="Y" />
<label dictRef="bo:name" xml:lang="en" value="Yttrium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="2">88.90585</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">88.9058483</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">6.2173</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev" errorValue="12">0.307</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">1.22</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Named after the small town of Ytterby near Stockholm in Sweden. Terbium. Ytterbium and Gadolinium are also named after this town.</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">1.62</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.4</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.58 1.00 1.00</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">3611</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">1795</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">d</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">fi</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1794</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">Johann Gadolin</array>
<scalar dataType="xsd:int" dictRef="bo:period">5</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">3</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Kr 4d1 5s2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Transition</scalar>
</atom>
<atom id="Zr">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">40</scalar>
<label dictRef="bo:symbol" value="Zr" />
<label dictRef="bo:name" xml:lang="en" value="Zirconium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="2">91.224</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">89.9047044</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">6.6339</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev" errorValue="14">0.426</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">1.33</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Named after the mineral zircon</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">1.48</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.3</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.58 0.88 0.88</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">4682</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">2128</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">d</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">de</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1789</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">Martin Heinrich Klaproth</array>
<scalar dataType="xsd:int" dictRef="bo:period">5</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">4</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Kr 4d2 5s2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Transition</scalar>
</atom>
<atom id="Nb">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">41</scalar>
<label dictRef="bo:symbol" value="Nb" />
<label dictRef="bo:name" xml:lang="en" value="Niobium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="2">92.90638</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">92.9063781</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">6.7589</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev" errorValue="25">0.893</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">1.6</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Named after Niobe, the daughter of the Greek god Tantalus.</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">1.37</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.15</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.45 0.76 0.79</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">5015</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">2742</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">d</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">uk</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1801</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">Ch. Hatchett</array>
<scalar dataType="xsd:int" dictRef="bo:period">5</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">5</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Kr 4d4</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Transition</scalar>
</atom>
<atom id="Mo">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">42</scalar>
<label dictRef="bo:symbol" value="Mo" />
<label dictRef="bo:name" xml:lang="en" value="Molybdenum" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="2">95.96</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">97.9054082</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">7.0924</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev" errorValue="2">0.7472</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">2.16</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">This name has Greek roots. It means 'like Platinum' - it was difficult to distinguish Molybdenum from Platinum.</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">1.45</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.1</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.33 0.71 0.71</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">4912</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">2896</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">d</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">se</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1778</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">C. W. Scheele</array>
<scalar dataType="xsd:int" dictRef="bo:period">5</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">6</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Kr 4d5 5s1</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Transition</scalar>
</atom>
<atom id="Tc">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">43</scalar>
<label dictRef="bo:symbol" value="Tc" />
<label dictRef="bo:name" xml:lang="en" value="Technetium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass">98</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">97.907216</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">7.28</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev" errorValue="20">0.55</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">1.9</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Greek 'technetos' for artificial</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">1.56</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.05</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.23 0.62 0.62</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">4538</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">2477</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">d</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">it</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1937</scalar>
<array dataType="xsd:string" delimiter=";" size="2" dictRef="bo:discoverers">C. Perrier;E. G. Segre</array>
<scalar dataType="xsd:int" dictRef="bo:period">5</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">7</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Kr 4d6 5s1</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Transition</scalar>
</atom>
<atom id="Ru">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">44</scalar>
<label dictRef="bo:symbol" value="Ru" />
<label dictRef="bo:name" xml:lang="en" value="Ruthenium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="2">101.07</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">101.9043493</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">7.3605</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev" errorValue="25">1.04638</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">2.2</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Ruthenia is the old name of Russia</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">1.26</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.05</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.14 0.56 0.56</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">4425</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">2610</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">d</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">ru</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1844</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">K. Klaus</array>
<scalar dataType="xsd:int" dictRef="bo:period">5</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">8</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Kr 4d7 5s1</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Transition</scalar>
</atom>
<atom id="Rh">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">45</scalar>
<label dictRef="bo:symbol" value="Rh" />
<label dictRef="bo:name" xml:lang="en" value="Rhodium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="2">102.90550</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">102.905504</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">7.4589</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev" errorValue="20">1.14289</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">2.28</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Greek 'rhodeos' means 'red like a rose'</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">1.35</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.04 0.49 0.55</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">3970</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">2236</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">d</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">uk</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1803</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">W. Wollaston</array>
<scalar dataType="xsd:int" dictRef="bo:period">5</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">8</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Kr 4d8 5s1</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Transition</scalar>
</atom>
<atom id="Pd">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">46</scalar>
<label dictRef="bo:symbol" value="Pd" />
<label dictRef="bo:name" xml:lang="en" value="Palladium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="1">106.42</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">105.903486</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">8.3369</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev" errorValue="12">0.56214</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">2.20</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Named after the asteroid Pallas</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">1.31</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.05</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.00 0.41 0.52</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">3240</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">1825</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">d</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">uk</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1803</scalar>
<scalar dataType="xsd:int" dictRef="bo:period">5</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">8</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Kr 4d10</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Transition</scalar>
</atom>
<atom id="Ag">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">47</scalar>
<label dictRef="bo:symbol" value="Ag" />
<label dictRef="bo:name" xml:lang="en" value="Silver" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="2">107.8682</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">106.905097</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">7.5762</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev" errorValue="2">1.30447</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">1.93</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Latin 'argentum' for silver</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">1.53</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.1</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.88 0.88 1.00</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">2436</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">1235.1</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">d</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">ancient</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">0</scalar>
<scalar dataType="xsd:int" dictRef="bo:period">5</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">1</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Kr 4d10 5s1</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Transition</scalar>
</atom>
<atom id="Cd">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">48</scalar>
<label dictRef="bo:symbol" value="Cd" />
<label dictRef="bo:name" xml:lang="en" value="Cadmium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="8">112.411</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">113.9033585</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">8.9938</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev">0</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">1.69</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Greek 'kadmia' ('Galmei' = Zinc carbonate)</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">1.48</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.2</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">1.00 0.85 0.56</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">1040</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">594.26</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">d</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">de</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1817</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">F. Stromeyer</array>
<scalar dataType="xsd:int" dictRef="bo:period">5</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">2</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Kr 4d10 5s2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Transition</scalar>
</atom>
<atom id="In">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">49</scalar>
<label dictRef="bo:symbol" value="In" />
<label dictRef="bo:name" xml:lang="en" value="Indium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="3">114.818</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">114.903878</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">5.7864</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev" errorValue="9">0.404</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">1.78</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Named after 'Indigo' because of its blue spectrum</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">1.44</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.2</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.65 0.46 0.45</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">2350</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">429.78</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">p</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">de</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1863</scalar>
<array dataType="xsd:string" delimiter=";" size="2" dictRef="bo:discoverers">F. Reich;H.T. Richter</array>
<scalar dataType="xsd:int" dictRef="bo:period">5</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">3</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Kr 4d10 5s2 5p1</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Other_Metal</scalar>
</atom>
<atom id="Sn">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">50</scalar>
<label dictRef="bo:symbol" value="Sn" />
<label dictRef="bo:name" xml:lang="en" value="Tin" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="7">118.710</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">119.9021947</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">7.3439</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev" errorValue="15">1.112066</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">1.96</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Latin 'stannum' for tin</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">1.41</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.25</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.40 0.50 0.50</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">2876</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">505.12</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">p</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">ancient</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">0</scalar>
<scalar dataType="xsd:int" dictRef="bo:period">5</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">4</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Kr 4d10 5s2 5p2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Other_Metal</scalar>
</atom>
<atom id="Sb">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">51</scalar>
<label dictRef="bo:symbol" value="Sb" />
<label dictRef="bo:name" xml:lang="en" value="Antimony" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="1">121.760</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">120.9038157</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">8.6084</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev" errorValue="20">1.047401</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">2.05</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Arabic 'anthos ammonos' for 'blossom of the god Ammon'</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">1.38</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.2</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.62 0.39 0.71</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">1860</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">903.91</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">p</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">ancient</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">0</scalar>
<scalar dataType="xsd:int" dictRef="bo:period">5</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">5</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Kr 4d10 5s2 5p3</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Metalloids</scalar>
</atom>
<atom id="Te">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">52</scalar>
<label dictRef="bo:symbol" value="Te" />
<label dictRef="bo:name" xml:lang="en" value="Tellurium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="3">127.60</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">129.9062244</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">9.0096</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev" errorValue="7">1.970875</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">2.1</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Latin 'tellus' or 'telluris' for 'Planet Earth'</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">1.35</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.1</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.83 0.48 0.00</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">1261</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">722.72</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">p</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">de</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1782</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">Franz Joseph Muller von Reichstein</array>
<scalar dataType="xsd:int" dictRef="bo:period">5</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">6</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Kr 4d10 5s2 5p4</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Metalloids</scalar>
</atom>
<atom id="I">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">53</scalar>
<label dictRef="bo:symbol" value="I" />
<label dictRef="bo:name" xml:lang="en" value="Iodine" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="3">126.90447</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">126.904473</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">10.4513</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev" errorValue="10">3.059038</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">2.66</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Greek 'ioeides' for 'violet'.</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">1.33</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.1</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.58 0.00 0.58</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">457.5</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">386.7</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">p</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">fr</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1811</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">Bernard Courtois</array>
<scalar dataType="xsd:int" dictRef="bo:period">5</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">7</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Kr 4d10 5s2 5p5</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Halogen</scalar>
</atom>
<atom id="Xe">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">54</scalar>
<label dictRef="bo:symbol" value="Xe" />
<label dictRef="bo:name" xml:lang="en" value="Xenon" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="6">131.293</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">131.9041535</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">12.1298</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev">0</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">2.6</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Greek 'xenos' for 'foreigner'</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">1.30</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.16</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.26 0.62 0.69</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">165.1</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">161.39</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">p</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">uk</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1898</scalar>
<array dataType="xsd:string" delimiter=";" size="2" dictRef="bo:discoverers">W. Ramsay;M. W. Travers</array>
<scalar dataType="xsd:int" dictRef="bo:period">5</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">8</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Kr 4d10 5s2 5p6</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Noblegas</scalar>
</atom>
<atom id="Cs">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">55</scalar>
<label dictRef="bo:symbol" value="Cs" />
<label dictRef="bo:name" xml:lang="en" value="Caesium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="2">132.9054519</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">132.9054519</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">3.8939</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev" errorValue="25">0.471626</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">0.79</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Latin 'caesius' for 'heaven blue'.</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">2.25</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">3</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.34 0.09 0.56</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">944</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">301.54</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">s</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">de</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1860</scalar>
<array dataType="xsd:string" delimiter=";" size="2" dictRef="bo:discoverers">Robert Wilhelm Bunsen;Gustav Robert Kirchhoff</array>
<scalar dataType="xsd:int" dictRef="bo:period">6</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">1</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Xe 6s1</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Alkali_Earth</scalar>
</atom>
<atom id="Ba">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">56</scalar>
<label dictRef="bo:symbol" value="Ba" />
<label dictRef="bo:name" xml:lang="en" value="Barium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="7">137.327</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">137.9052472</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">5.2117</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev" errorValue="6">0.14462</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">0.89</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Greek 'barys' for 'heavy'</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">1.98</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.7</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.00 0.79 0.00</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">2078</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">1002</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">s</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">uk</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1808</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">Humphry Bartholomew Davy</array>
<scalar dataType="xsd:int" dictRef="bo:period">6</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">2</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Xe 6s2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Alkaline_Earth</scalar>
</atom>
<atom id="La">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">57</scalar>
<label dictRef="bo:symbol" value="La" />
<label dictRef="bo:name" xml:lang="en" value="Lanthanum" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="7">138.90547</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">138.9063533</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">5.5769</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev" errorValue="2">0.47</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">1.10</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Greek 'lanthanein' for 'hidden'. The Lanthanoids are also called the 'rare earth' elements.</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">1.69</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.5</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.44 0.83 1.00</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">3737</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">1191</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">f</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">se</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1839</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">K. G. Mosander</array>
<scalar dataType="xsd:int" dictRef="bo:period">6</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">3</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Xe 5d1 6s2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Rare_Earth</scalar>
</atom>
<atom id="Ce">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">58</scalar>
<label dictRef="bo:symbol" value="Ce" />
<label dictRef="bo:name" xml:lang="en" value="Cerium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="1">140.116</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">139.9054387</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">5.5387</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev">0.5</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">1.12</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Named after the planetoid Ceres</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.48</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">1.00 1.00 0.78</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">3715</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">1071</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">f</scalar>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1803</scalar>
<array dataType="xsd:string" delimiter=";" size="3" dictRef="bo:discoverers">Jns Jacob Berzelius;W. Hisinger;M. Klaproth</array>
<scalar dataType="xsd:int" dictRef="bo:period">6</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">4</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Xe 4f1 5d1 6s2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Rare_Earth</scalar>
</atom>
<atom id="Pr">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">59</scalar>
<label dictRef="bo:symbol" value="Pr" />
<label dictRef="bo:name" xml:lang="en" value="Praseodymium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="2">140.90765</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">140.9076528</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">5.473</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev">0.5</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">1.13</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Greek 'prasinos didymos' for 'green twin'</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.47</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.85 1.00 0.78</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">3785</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">1204</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">f</scalar>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1885</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">Carl F. Auer von Welsbach</array>
<scalar dataType="xsd:int" dictRef="bo:period">6</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">5</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Xe 4f3 6s2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Rare_Earth</scalar>
</atom>
<atom id="Nd">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">60</scalar>
<label dictRef="bo:symbol" value="Nd" />
<label dictRef="bo:name" xml:lang="en" value="Neodymium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="3">144.242</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">141.9077233</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">5.5250</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev">0.5</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">1.14</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Greek 'neos didymos' for 'new twin'</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.45</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.78 1.00 0.78</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">3347</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">1294</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">f</scalar>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1885</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">Carl F. Auer von Welsbach</array>
<scalar dataType="xsd:int" dictRef="bo:period">6</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">6</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Xe 4f4 6s2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Rare_Earth</scalar>
</atom>
<atom id="Pm">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">61</scalar>
<label dictRef="bo:symbol" value="Pm" />
<label dictRef="bo:name" xml:lang="en" value="Promethium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass">145</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">144.912749</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">5.582</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev">0.5</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Named after the Greek Prometheus. Prometheus stole the fire from the gods and gave it to mankind.</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.43</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.64 1.00 0.78</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">3273</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">1315</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">f</scalar>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1945</scalar>
<array dataType="xsd:string" delimiter=";" size="3" dictRef="bo:discoverers">J. A. Marinsky;C. D. Coryell;L. E. Glendenin</array>
<scalar dataType="xsd:int" dictRef="bo:period">6</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">7</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Xe 4f5 6s2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Rare_Earth</scalar>
</atom>
<atom id="Sm">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">62</scalar>
<label dictRef="bo:symbol" value="Sm" />
<label dictRef="bo:name" xml:lang="en" value="Samarium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="2">150.36</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">151.9197324</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">5.6437</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev">0.5</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">1.17</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Named after the mineral Samarskit</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.42</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.56 1.00 0.78</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">2067</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">1347</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">f</scalar>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1879</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">P. Lecoq de Boisbaudran</array>
<scalar dataType="xsd:int" dictRef="bo:period">6</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">8</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Xe 4f6 6s2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Rare_Earth</scalar>
</atom>
<atom id="Eu">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">63</scalar>
<label dictRef="bo:symbol" value="Eu" />
<label dictRef="bo:name" xml:lang="en" value="Europium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="1">151.964</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">152.9212303</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">5.6704</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev">0.5</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Named after Europe</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.4</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.38 1.00 0.78</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">1800</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">1095</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">f</scalar>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1901</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">E. A. Demarcay</array>
<scalar dataType="xsd:int" dictRef="bo:period">6</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">8</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Xe 4f7 6s2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Rare_Earth</scalar>
</atom>
<atom id="Gd">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">64</scalar>
<label dictRef="bo:symbol" value="Gd" />
<label dictRef="bo:name" xml:lang="en" value="Gadolinium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="3">157.25</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">157.9241039</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">6.1498</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev">0.5</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">1.20</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Named after the Finnish chemist Johan Gadolin</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.38</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.27 1.00 0.78</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">3545</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">1585</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">f</scalar>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1880</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">Jean de Marignac</array>
<scalar dataType="xsd:int" dictRef="bo:period">6</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">8</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Xe 4f7 5d1 6s2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Rare_Earth</scalar>
</atom>
<atom id="Tb">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">65</scalar>
<label dictRef="bo:symbol" value="Tb" />
<label dictRef="bo:name" xml:lang="en" value="Terbium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="2">158.92535</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">158.9253468</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">5.8638</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev">0.5</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Named after the Swedish town of Ytterby</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.37</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.19 1.00 0.78</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">3500</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">1629</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">f</scalar>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1843</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">K. G. Mosander</array>
<scalar dataType="xsd:int" dictRef="bo:period">6</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">1</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Xe 4f9 6s2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Rare_Earth</scalar>
</atom>
<atom id="Dy">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">66</scalar>
<label dictRef="bo:symbol" value="Dy" />
<label dictRef="bo:name" xml:lang="en" value="Dysprosium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="1">162.500</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">163.9291748</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">5.9389</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev">0.5</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">1.22</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Greek 'dysprositor' for 'difficult to reach'</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.35</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.12 1.00 0.78</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">2840</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">1685</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">f</scalar>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1886</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">F. E. Lecoq de Boisbaudran</array>
<scalar dataType="xsd:int" dictRef="bo:period">6</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">2</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Xe 4f10 6s2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Rare_Earth</scalar>
</atom>
<atom id="Ho">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">67</scalar>
<label dictRef="bo:symbol" value="Ho" />
<label dictRef="bo:name" xml:lang="en" value="Holmium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="2">164.93032</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">164.9303221</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">6.0215</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev">0.5</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">1.23</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Latin 'holmia' for the old name of Stockholm</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.33</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.00 1.00 0.61</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">2968</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">1747</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">f</scalar>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1878</scalar>
<array dataType="xsd:string" delimiter=";" size="2" dictRef="bo:discoverers">J. L. Soret;P.T. Cleve</array>
<scalar dataType="xsd:int" dictRef="bo:period">6</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">3</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Xe 4f11 6s2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Rare_Earth</scalar>
</atom>
<atom id="Er">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">68</scalar>
<label dictRef="bo:symbol" value="Er" />
<label dictRef="bo:name" xml:lang="en" value="Erbium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="3">167.259</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">165.9302931</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">6.1077</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev">0.5</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">1.24</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Named ofter the Swedish town of Ytterby. Terbium and Ytterbium are also named after this town.</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.32</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.00 0.90 0.46</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">3140</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">1802</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">f</scalar>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1843</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">K. G. Mosander</array>
<scalar dataType="xsd:int" dictRef="bo:period">6</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">4</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Xe 4f12 6s2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Rare_Earth</scalar>
</atom>
<atom id="Tm">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">69</scalar>
<label dictRef="bo:symbol" value="Tm" />
<label dictRef="bo:name" xml:lang="en" value="Thulium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="2">168.93421</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">168.9342133</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">6.1843</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev">0.5</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">1.25</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Named after the old name of Scandinavia, 'Thule'.</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.3</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.00 0.83 0.32</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">2223</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">1818</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">f</scalar>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1879</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">P. T. Cleve</array>
<scalar dataType="xsd:int" dictRef="bo:period">6</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">5</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Xe 4f13 6s2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Rare_Earth</scalar>
</atom>
<atom id="Yb">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">70</scalar>
<label dictRef="bo:symbol" value="Yb" />
<label dictRef="bo:name" xml:lang="en" value="Ytterbium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="5">173.054</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">173.9388621</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">6.2542</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev">0.5</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Like Terbium and Gadolinium, this is named after the Swedish town of Ytterby.</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.28</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.00 0.75 0.22</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">1469</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">1092</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">f</scalar>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1878</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">J. Ch. Marignac</array>
<scalar dataType="xsd:int" dictRef="bo:period">6</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">6</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Xe 4f14 6s2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Rare_Earth</scalar>
</atom>
<atom id="Lu">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">71</scalar>
<label dictRef="bo:symbol" value="Lu" />
<label dictRef="bo:name" xml:lang="en" value="Lutetium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="1">174.9668</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">174.9407718</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">5.4259</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev">0.5</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">1.27</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Named after the Roman name 'Lutetia' for Paris</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">1.60</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.27</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.00 0.67 0.14</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">3668</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">1936</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">f</scalar>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1907</scalar>
<array dataType="xsd:string" delimiter=";" size="2" dictRef="bo:discoverers">Carl F. Auer von Welsbach;G. Urbain</array>
<scalar dataType="xsd:int" dictRef="bo:period">6</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">7</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Xe 4f14 5d1 6s2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Rare_Earth</scalar>
</atom>
<atom id="Hf">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">72</scalar>
<label dictRef="bo:symbol" value="Hf" />
<label dictRef="bo:name" xml:lang="en" value="Hafnium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="2">178.49</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">179.94655</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">6.8251</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev">0</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">1.3</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">'Hafnia' is the old name of Kopenhagen (Denmark)</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">1.50</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.25</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.30 0.76 1.00</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">4875</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">2504</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">d</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">dk</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1923</scalar>
<array dataType="xsd:string" delimiter=";" size="2" dictRef="bo:discoverers">D. Coster;G. Hevesy</array>
<scalar dataType="xsd:int" dictRef="bo:period">6</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">4</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Xe 4f14 5d2 6s2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Transition</scalar>
</atom>
<atom id="Ta">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">73</scalar>
<label dictRef="bo:symbol" value="Ta" />
<label dictRef="bo:name" xml:lang="en" value="Tantalum" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="2">180.94788</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">180.9479958</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">7.5496</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev" errorValue="12">0.322</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">1.5</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Named after the Greek myth of Tantalos</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">1.38</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.2</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.30 0.65 1.00</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">5730</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">3293</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">d</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">se</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1802</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">A. Ekeberg</array>
<scalar dataType="xsd:int" dictRef="bo:period">6</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">5</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Xe 4f14 5d3 6s2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Transition</scalar>
</atom>
<atom id="W">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">74</scalar>
<label dictRef="bo:symbol" value="W" />
<label dictRef="bo:name" xml:lang="en" value="Tungsten" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="1">183.84</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">183.9509312</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">7.8640</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev" errorValue="8">0.815</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">2.36</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">'tung sten' means 'heavy stone' in Swedish. The old name (and thus the symbol 'W') was Wolfram, named after a mineral.</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">1.46</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.1</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.13 0.58 0.84</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">5825</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">3695</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">d</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">es</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1783</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">C. W. Scheele</array>
<scalar dataType="xsd:int" dictRef="bo:period">6</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">6</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Xe 4f14 5d4 6s2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Transition</scalar>
</atom>
<atom id="Re">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">75</scalar>
<label dictRef="bo:symbol" value="Re" />
<label dictRef="bo:name" xml:lang="en" value="Rhenium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="1">186.207</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">186.9557531</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">7.8335</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev" errorValue="15">0.15</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">1.9</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Named after the German river Rhine (latin 'Rhenium').</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">1.59</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.05</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.15 0.49 0.67</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">5870</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">3455</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">d</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">de</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1925</scalar>
<array dataType="xsd:string" delimiter=";" size="3" dictRef="bo:discoverers">Walter Noddack;Ida Tacke-Noddack;Otto Berg</array>
<scalar dataType="xsd:int" dictRef="bo:period">6</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">7</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Xe 4f14 5d5 6s2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Transition</scalar>
</atom>
<atom id="Os">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">76</scalar>
<label dictRef="bo:symbol" value="Os" />
<label dictRef="bo:name" xml:lang="en" value="Osmium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="3">190.23</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">191.9614807</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">8.4382</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev" errorValue="12">1.07780</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">2.2</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Greek for 'smell'. Its oxides smell strongly like radishes.</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">1.28</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.15 0.40 0.59</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">5300</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">3300</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">d</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">uk</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1804</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">S. Tennant</array>
<scalar dataType="xsd:int" dictRef="bo:period">6</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">8</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Xe 4f14 5d6 6s2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Transition</scalar>
</atom>
<atom id="Ir">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">77</scalar>
<label dictRef="bo:symbol" value="Ir" />
<label dictRef="bo:name" xml:lang="en" value="Iridium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="3">192.217</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">192.9629264</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">8.9670</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev" errorValue="15">1.56436</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">2.20</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Greek 'iris' for 'rainbow'</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">1.37</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.09 0.33 0.53</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">4700</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">2720</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">d</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">uk</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1804</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">S. Tennant</array>
<scalar dataType="xsd:int" dictRef="bo:period">6</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">8</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Xe 4f14 5d7 6s2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Transition</scalar>
</atom>
<atom id="Pt">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">78</scalar>
<label dictRef="bo:symbol" value="Pt" />
<label dictRef="bo:name" xml:lang="en" value="Platinum" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="9">195.084</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">194.9647911</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">8.9588</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev" errorValue="5">2.12510</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">2.28</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Spanish 'platina' means 'small silver'</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">1.28</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.05</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.96 0.93 0.82</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">4100</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">2042.1</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">d</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">uk</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1735</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">A. de Ulloa</array>
<scalar dataType="xsd:int" dictRef="bo:period">6</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">8</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Xe 4f14 5d9 6s1</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Transition</scalar>
</atom>
<atom id="Au">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">79</scalar>
<label dictRef="bo:symbol" value="Au" />
<label dictRef="bo:name" xml:lang="en" value="Gold" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="4">196.966569</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">196.9665687</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">9.2255</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev" errorValue="3">2.30861</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">2.54</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Latin 'aurum'. Named after Aurora, the goddess of sunrise</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">1.44</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.1</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.80 0.82 0.12</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">3130</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">1337.58</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">d</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">ancient</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">0</scalar>
<scalar dataType="xsd:int" dictRef="bo:period">6</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">1</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Xe 4f14 5d10 6s1</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Transition</scalar>
</atom>
<atom id="Hg">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">80</scalar>
<label dictRef="bo:symbol" value="Hg" />
<label dictRef="bo:name" xml:lang="en" value="Mercury" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="2">200.59</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">201.970643</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">10.4375</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev">0</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">2.00</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Graeco-Latin 'hydrargyrum' for 'liquid silver'</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">1.49</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.05</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.71 0.71 0.76</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">629.88</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">234.31</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">d</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">ancient</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">0</scalar>
<scalar dataType="xsd:int" dictRef="bo:period">6</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">2</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Xe 4f14 5d10 6s2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Transition</scalar>
</atom>
<atom id="Tl">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">81</scalar>
<label dictRef="bo:symbol" value="Tl" />
<label dictRef="bo:name" xml:lang="en" value="Thallium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="2">204.3833</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">204.9744275</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">6.1082</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev" errorValue="13">0.377</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">1.62</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Greek 'tallos' for 'young twig'</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">1.48</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.2</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.65 0.33 0.30</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">1746</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">577</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">p</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">uk</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1861</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">W. Crookes</array>
<scalar dataType="xsd:int" dictRef="bo:period">6</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">3</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Xe 4f14 5d10 6s2 6p1</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Other_Metal</scalar>
</atom>
<atom id="Pb">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">82</scalar>
<label dictRef="bo:symbol" value="Pb" />
<label dictRef="bo:name" xml:lang="en" value="Lead" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="1">207.2</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">207.9766521</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">7.4167</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev" errorValue="8">0.364</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">2.33</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Latin 'plumbum' for Lead</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">1.47</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.3</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.34 0.35 0.38</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">2023</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">600.65</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">p</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">ancient</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">0</scalar>
<scalar dataType="xsd:int" dictRef="bo:period">6</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">4</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Xe 4f14 5d10 6s2 6p2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Other_Metal</scalar>
</atom>
<atom id="Bi">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">83</scalar>
<label dictRef="bo:symbol" value="Bi" />
<label dictRef="bo:name" xml:lang="en" value="Bismuth" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="1">208.98040</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">208.9803987</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">7.2855</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev" errorValue="25">0.942363</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">2.02</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">The old name of Bismuth is 'Wismut', which stood for 'white mass'.</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">1.46</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.3</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.62 0.31 0.71</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">1837</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">544.59</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">p</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">ancient</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">0</scalar>
<scalar dataType="xsd:int" dictRef="bo:period">6</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">5</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Xe 4f14 5d10 6s2 6p3</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Other_Metal</scalar>
</atom>
<atom id="Po">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">84</scalar>
<label dictRef="bo:symbol" value="Po" />
<label dictRef="bo:name" xml:lang="en" value="Polonium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass">209</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">208.9824304</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">8.414</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev" errorValue="3">1.9</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">2.0</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Named after Poland to honor Marie Curie</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.67 0.36 0.00</array>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">527</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">p</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">fr</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1898</scalar>
<array dataType="xsd:string" delimiter=";" size="2" dictRef="bo:discoverers">M. Sklodowska-Curie;P. Curie</array>
<scalar dataType="xsd:int" dictRef="bo:period">6</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">6</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Xe 4f14 5d10 6s2 6p4</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Metalloids</scalar>
</atom>
<atom id="At">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">85</scalar>
<label dictRef="bo:symbol" value="At" />
<label dictRef="bo:name" xml:lang="en" value="Astatine" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass">210</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">209.987148</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">0</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev" errorValue="2">2.8</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">2.2</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Greek 'astator' for 'changing'</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.46 0.31 0.27</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">610</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">575</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">p</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">us</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1940</scalar>
<array dataType="xsd:string" delimiter=";" size="3" dictRef="bo:discoverers">D. R. Corson;K. R. McKenzie;E. Segre</array>
<scalar dataType="xsd:int" dictRef="bo:period">6</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">7</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Xe 4f14 5d10 6s2 6p5</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Halogen</scalar>
</atom>
<atom id="Rn">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">86</scalar>
<label dictRef="bo:symbol" value="Rn" />
<label dictRef="bo:name" xml:lang="en" value="Radon" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass">222</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">222.0175777</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">10.7485</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronAffinity" units="units:ev">0</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Named after Radium. It ends with 'on' to make it clear that it is a noble gas.</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusCovalent" units="units:ang">1.45</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.26 0.51 0.59</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">211.4</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">202</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">p</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">de</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1898</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">E. Dorn</array>
<scalar dataType="xsd:int" dictRef="bo:period">6</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">8</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Xe 4f14 5d10 6s2 6p6</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Noblegas</scalar>
</atom>
<atom id="Fr">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">87</scalar>
<label dictRef="bo:symbol" value="Fr" />
<label dictRef="bo:name" xml:lang="en" value="Francium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass">223</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">223.0197359</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">4.0727</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">0.7</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Named after France to honor Marguerite Perey</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.26 0.00 0.40</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">950</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">300</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">s</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">fr</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1939</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">M. Perey</array>
<scalar dataType="xsd:int" dictRef="bo:period">7</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">1</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Rn 7s1</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Alkali_Earth</scalar>
</atom>
<atom id="Ra">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">88</scalar>
<label dictRef="bo:symbol" value="Ra" />
<label dictRef="bo:name" xml:lang="en" value="Radium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass">226</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">226.0254098</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">5.2784</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">0.9</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Latin 'radius' for 'beam', as it is radioactive</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.00 0.49 0.00</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">1413</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">973</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">s</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">fr</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1898</scalar>
<array dataType="xsd:string" delimiter=";" size="2" dictRef="bo:discoverers">M. Sklodowska-Curie;P. Curie</array>
<scalar dataType="xsd:int" dictRef="bo:period">7</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">2</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Rn 7s2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Alkaline_Earth</scalar>
</atom>
<atom id="Ac">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">89</scalar>
<label dictRef="bo:symbol" value="Ac" />
<label dictRef="bo:name" xml:lang="en" value="Actinium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass">227</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">227.0277521</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">5.17</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">1.1</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Greek 'aktis' for 'beam' - actinium is radioactive</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.44 0.67 0.98</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">3470</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">1324</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">f</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">fr</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1899</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">A. L. Debierne</array>
<scalar dataType="xsd:int" dictRef="bo:period">7</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">3</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Rn 6d1 7s2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Other_Metal</scalar>
</atom>
<atom id="Th">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">90</scalar>
<label dictRef="bo:symbol" value="Th" />
<label dictRef="bo:name" xml:lang="en" value="Thorium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="2">232.03806</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">232.0380553</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">6.3067</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">1.3</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Named after the German god of thunder: Thor</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.4</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.00 0.73 1.00</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">5060</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">2028</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">f</scalar>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1828</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">J. J. Berzelius</array>
<scalar dataType="xsd:int" dictRef="bo:period">7</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">4</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Rn 6d2 7s2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Other_Metal</scalar>
</atom>
<atom id="Pa">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">91</scalar>
<label dictRef="bo:symbol" value="Pa" />
<label dictRef="bo:name" xml:lang="en" value="Protactinium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="2">231.03588</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">231.035884</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">5.89</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">1.5</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Greek 'protos' for 'ancester'. Protactinium is before Actinium in the periodic table.</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.00 0.63 1.00</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">4300</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">1845</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">f</scalar>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1917</scalar>
<array dataType="xsd:string" delimiter=";" size="3" dictRef="bo:discoverers">O. Hahn;L. Meitern;W. Wollaston</array>
<scalar dataType="xsd:int" dictRef="bo:period">7</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">5</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Rn 5f2 6d1 7s2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Other_Metal</scalar>
</atom>
<atom id="U">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">92</scalar>
<label dictRef="bo:symbol" value="U" />
<label dictRef="bo:name" xml:lang="en" value="Uranium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass" errorValue="3">238.02891</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">238.0507882</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">6.1941</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">1.38</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Greek 'ouranos' for 'heaven'. Named after the planet Uranus.</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2.3</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.00 0.56 1.00</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">4407</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">1408</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">f</scalar>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1789</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">M. M. Klaproth</array>
<scalar dataType="xsd:int" dictRef="bo:period">7</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">6</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Rn 5f3 6d1 7s2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Other_Metal</scalar>
</atom>
<atom id="Np">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">93</scalar>
<label dictRef="bo:symbol" value="Np" />
<label dictRef="bo:name" xml:lang="en" value="Neptunium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass">237</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">237.0481734</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">6.2657</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">1.36</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Named after the planet Neptune.</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.00 0.50 1.00</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">4175</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">912</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">f</scalar>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1940</scalar>
<array dataType="xsd:string" delimiter=";" size="2" dictRef="bo:discoverers">E. M. McMillan;P. Aberson</array>
<scalar dataType="xsd:int" dictRef="bo:period">7</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">7</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Rn 5f4 6d1 7s2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Other_Metal</scalar>
</atom>
<atom id="Pu">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">94</scalar>
<label dictRef="bo:symbol" value="Pu" />
<label dictRef="bo:name" xml:lang="en" value="Plutonium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass">244</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">244.064204</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">6.0260</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">1.28</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Named after the planet Pluto.</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.00 0.42 1.00</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">3505</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">913</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">f</scalar>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1940</scalar>
<array dataType="xsd:string" delimiter=";" size="4" dictRef="bo:discoverers">Glenn T. Seaborg;E. M. McMillan;J. W. Kennedy;A.C. Wahl</array>
<scalar dataType="xsd:int" dictRef="bo:period">7</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">8</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Rn 5f6 7s2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Other_Metal</scalar>
</atom>
<atom id="Am">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">95</scalar>
<label dictRef="bo:symbol" value="Am" />
<label dictRef="bo:name" xml:lang="en" value="Americium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass">243</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">243.0613811</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">5.9738</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">1.3</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Named after America.</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.33 0.36 0.95</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">2880</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">1449</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">f</scalar>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1945</scalar>
<array dataType="xsd:string" delimiter=";" size="4" dictRef="bo:discoverers">Glenn T. Seaborg;L. O. Morgan;R. A. James;A. Ghiors</array>
<scalar dataType="xsd:int" dictRef="bo:period">7</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">8</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Rn 5f7 7s2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Other_Metal</scalar>
</atom>
<atom id="Cm">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">96</scalar>
<label dictRef="bo:symbol" value="Cm" />
<label dictRef="bo:name" xml:lang="en" value="Curium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass">247</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">247.070354</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">5.9914</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">1.3</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Named after Marie Curie.</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.47 0.36 0.89</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">3383</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">1620</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">f</scalar>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1944</scalar>
<array dataType="xsd:string" delimiter=";" size="3" dictRef="bo:discoverers">Glenn T. Seaborg;R. A. James;A. Ghiors</array>
<scalar dataType="xsd:int" dictRef="bo:period">7</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">8</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Rn 5f7 6d1 7s2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Other_Metal</scalar>
</atom>
<atom id="Bk">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">97</scalar>
<label dictRef="bo:symbol" value="Bk" />
<label dictRef="bo:name" xml:lang="en" value="Berkelium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass">247</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">247.070307</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">6.1979</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">1.3</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Named after the town Berkeley where it was discovered.</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.54 0.31 0.89</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">983</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">1258</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">f</scalar>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1949</scalar>
<array dataType="xsd:string" delimiter=";" size="3" dictRef="bo:discoverers">Glenn T. Seaborg;A. Ghiors;S. G. Thompson</array>
<scalar dataType="xsd:int" dictRef="bo:period">7</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">1</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Rn 5f9 7s2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Other_Metal</scalar>
</atom>
<atom id="Cf">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">98</scalar>
<label dictRef="bo:symbol" value="Cf" />
<label dictRef="bo:name" xml:lang="en" value="Californium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass">251</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">251.079587</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">6.2817</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">1.3</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Named after the US-State of California.</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.63 0.21 0.83</array>
<scalar dataType="xsd:float" dictRef="bo:boilingpoint" units="siUnits:kelvin">1173</scalar>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">1172</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">f</scalar>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1950</scalar>
<array dataType="xsd:string" delimiter=";" size="3" dictRef="bo:discoverers">Glenn T. Seaborg;A. Ghiors;S. G. Thompson</array>
<scalar dataType="xsd:int" dictRef="bo:period">7</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">2</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Rn 5f10 7s2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Other_Metal</scalar>
</atom>
<atom id="Es">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">99</scalar>
<label dictRef="bo:symbol" value="Es" />
<label dictRef="bo:name" xml:lang="en" value="Einsteinium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass">252</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">252.08298</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">6.42</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">1.3</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Named after the scientist Albert Einstein.</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.70 0.12 0.83</array>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">1130</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">f</scalar>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1952</scalar>
<array dataType="xsd:string" delimiter=";" size="2" dictRef="bo:discoverers">Glenn T. Seaborg;et al.</array>
<scalar dataType="xsd:int" dictRef="bo:period">7</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">3</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Rn 5f11 7s2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Other_Metal</scalar>
</atom>
<atom id="Fm">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">100</scalar>
<label dictRef="bo:symbol" value="Fm" />
<label dictRef="bo:name" xml:lang="en" value="Fermium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass">257</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">257.095105</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">6.50</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">1.3</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Named after the scientist Enrico Fermi.</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.70 0.12 0.73</array>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">1800</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">f</scalar>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1953</scalar>
<array dataType="xsd:string" delimiter=";" size="2" dictRef="bo:discoverers">Glenn T. Seaborg;et al.</array>
<scalar dataType="xsd:int" dictRef="bo:period">7</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">4</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Rn 5f12 7s2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Other_Metal</scalar>
</atom>
<atom id="Md">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">101</scalar>
<label dictRef="bo:symbol" value="Md" />
<label dictRef="bo:name" xml:lang="en" value="Mendelevium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass">258</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">258.098431</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">6.58</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">1.3</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Named after the scientist D.I. Mendeleev.</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.70 0.05 0.65</array>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">1100</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">f</scalar>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1955</scalar>
<array dataType="xsd:string" delimiter=";" size="5" dictRef="bo:discoverers">Glenn T. Seaborg;Albert Ghiorso;Bernard Harvey;Gregory Choppin;Stanley G. Thompson</array>
<scalar dataType="xsd:int" dictRef="bo:period">7</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">5</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Rn 5f13 7s2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Other_Metal</scalar>
</atom>
<atom id="No">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">102</scalar>
<label dictRef="bo:symbol" value="No" />
<label dictRef="bo:name" xml:lang="en" value="Nobelium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass">259</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">259.10103</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">6.65</scalar>
<scalar dataType="xsd:float" dictRef="bo:electronegativityPauling" units="boUnits:paulingScaleUnit">1.3</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Named after the scientist Alfred Nobel.</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.74 0.05 0.53</array>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">1100</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">f</scalar>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1958</scalar>
<scalar dataType="xsd:int" dictRef="bo:period">7</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">6</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Rn 5f14 7s2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Other_Metal</scalar>
</atom>
<atom id="Lr">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">103</scalar>
<label dictRef="bo:symbol" value="Lr" />
<label dictRef="bo:name" xml:lang="en" value="Lawrencium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass">262</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">262.10963</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">4.9</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Named after the scientist Ernest Orlando Lawrence.</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.78 0.00 0.40</array>
<scalar dataType="xsd:float" dictRef="bo:meltingpoint" units="siUnits:kelvin">1900</scalar>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">f</scalar>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1961</scalar>
<array dataType="xsd:string" delimiter=";" size="4" dictRef="bo:discoverers">Albert Ghiorso;Torbjorn Sikkeland;Almon Larsh;Robert M. Latimer</array>
<scalar dataType="xsd:int" dictRef="bo:period">7</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">7</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Rn 5f14 7s2 7p1</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Other_Metal</scalar>
</atom>
<atom id="Rf">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">104</scalar>
<label dictRef="bo:symbol" value="Rf" />
<label dictRef="bo:name" xml:lang="en" value="Rutherfordium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass">267</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">261.10877</scalar>
<scalar dataType="xsd:float" dictRef="bo:ionization" units="units:ev">6.0</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Named after the scientist Ernest Rutherford</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.80 0.00 0.35</array>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">d</scalar>
<array dataType="xsd:string" delimiter="," size="2" dictRef="bo:discoveryCountry">ru,us</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1964</scalar>
<scalar dataType="xsd:int" dictRef="bo:period">7</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">4</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Rn 5f14 6d2 7s2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Transition</scalar>
</atom>
<atom id="Db">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">105</scalar>
<label dictRef="bo:symbol" value="Db" />
<label dictRef="bo:name" xml:lang="en" value="Dubnium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass">268</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">262.11408</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Named after the science-town Dubna in Russia</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.82 0.00 0.31</array>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">d</scalar>
<array dataType="xsd:string" delimiter="," size="2" dictRef="bo:discoveryCountry">ru,us</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1967</scalar>
<scalar dataType="xsd:int" dictRef="bo:period">7</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">5</scalar>
<scalar dataType="xsd:string" dictRef="bo:electronicConfiguration">Rn 5f14 6d3 7s2</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Transition</scalar>
</atom>
<atom id="Sg">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">106</scalar>
<label dictRef="bo:symbol" value="Sg" />
<label dictRef="bo:name" xml:lang="en" value="Seaborgium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass">271</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">263.11832</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Named after the scientist G. Theodore Seaborg.</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.85 0.00 0.27</array>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">d</scalar>
<array dataType="xsd:string" delimiter="," size="2" dictRef="bo:discoveryCountry">ru,us</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1974</scalar>
<array dataType="xsd:string" delimiter=";" size="2" dictRef="bo:discoverers">Albert Ghiorso;et al.</array>
<scalar dataType="xsd:int" dictRef="bo:period">7</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">6</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Transition</scalar>
</atom>
<atom id="Bh">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">107</scalar>
<label dictRef="bo:symbol" value="Bh" />
<label dictRef="bo:name" xml:lang="en" value="Bohrium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass">272</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">264.1246</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Named after the scientist Niels Bohr.</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.88 0.00 0.22</array>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">d</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">ru</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1981</scalar>
<array dataType="xsd:string" delimiter=";" size="3" dictRef="bo:discoverers">Peter Armbruster;Gottfried Mnzenber;et al.</array>
<scalar dataType="xsd:int" dictRef="bo:period">7</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">7</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Transition</scalar>
</atom>
<atom id="Hs">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">108</scalar>
<label dictRef="bo:symbol" value="Hs" />
<label dictRef="bo:name" xml:lang="en" value="Hassium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass">270</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">265.13009</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Latin 'hassia' for the German county Hessen. In Hessen a lot elements have been discovered.</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.90 0.00 0.18</array>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">d</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">de</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1984</scalar>
<array dataType="xsd:string" delimiter=";" size="3" dictRef="bo:discoverers">Peter Armbruster;Gottfried Mnzenber;et al.</array>
<scalar dataType="xsd:int" dictRef="bo:period">7</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">8</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Transition</scalar>
</atom>
<atom id="Mt">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">109</scalar>
<label dictRef="bo:symbol" value="Mt" />
<label dictRef="bo:name" xml:lang="en" value="Meitnerium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass">276</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">268.13873</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Named after the scientist Lise Meitner.</scalar>
<scalar dataType="xsd:float" dictRef="bo:radiusVDW" units="units:ang">2</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.91 0.00 0.15</array>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">d</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">de</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1982</scalar>
<array dataType="xsd:string" delimiter=";" size="3" dictRef="bo:discoverers">Peter Armbruster;Gottfried Mnzenber;et al.</array>
<scalar dataType="xsd:int" dictRef="bo:period">7</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">8</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Transition</scalar>
</atom>
<atom id="Ds">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">110</scalar>
<label dictRef="bo:symbol" value="Ds" />
<label dictRef="bo:name" xml:lang="en" value="Darmstadtium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass">281</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">271.14606</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Named after the German city Darmstadt where many elements have been discovered.</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.92 0.00 0.14</array>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">d</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">de</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1994</scalar>
<array dataType="xsd:string" delimiter=";" size="8" dictRef="bo:discoverers">S. Hofmann;V. Ninov;F. P. Hessberger;P. Armbruster;H. Folger;G. Mnzenberg;H. J. Schtt;et al.</array>
<scalar dataType="xsd:int" dictRef="bo:period">7</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">8</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Transition</scalar>
</atom>
<atom id="Rg">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">111</scalar>
<label dictRef="bo:symbol" value="Rg" />
<label dictRef="bo:name" xml:lang="en" value="Roentgenium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass">280</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">272.15362</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Named after Wilhelm Conrad Rntgen.</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.93 0.00 0.13</array>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">d</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">de</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1994</scalar>
<array dataType="xsd:string" delimiter=";" size="7" dictRef="bo:discoverers">S. Hofmann;V. Ninov;F. P. Hessberger;P. Armbruster;H. Folger;G. Mnzenberg;et al.</array>
<scalar dataType="xsd:int" dictRef="bo:period">7</scalar>
<scalar dataType="xsd:int" dictRef="bo:group">1</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Transition</scalar>
</atom>
<atom id="Cn">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">112</scalar>
<label dictRef="bo:symbol" value="Cn" />
<label dictRef="bo:name" xml:lang="en" value="Copernicium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass">285</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">285.17411</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Historically known as eka-mercury. Ununbium is a temporary IUPAC systematic element name.</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.94 0.00 0.12</array>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">d</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">de</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1996</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">First created at the Gesellschaft fr Schwerionenforschung</array>
<scalar dataType="xsd:int" dictRef="bo:period">7</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Transition</scalar>
</atom>
<atom id="Uut">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">113</scalar>
<label dictRef="bo:symbol" value="Uut" />
<label dictRef="bo:name" xml:lang="en" value="Ununtrium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass">284</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">284.17808</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Historically known as eka-thallium. Ununtrium is a temporary IUPAC systematic element name.</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.95 0.00 0.11</array>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">p</scalar>
<array dataType="xsd:string" delimiter="," size="2" dictRef="bo:discoveryCountry">ru,us</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">2003</scalar>
<array dataType="xsd:string" delimiter=";" size="2" dictRef="bo:discoverers">Russian scientists at Dubna (JINR);American scientists at the Lawrence Livermore National Laboratory.</array>
<scalar dataType="xsd:int" dictRef="bo:period">7</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Other_Metal</scalar>
</atom>
<atom id="Uuq">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">114</scalar>
<label dictRef="bo:symbol" value="Uuq" />
<label dictRef="bo:name" xml:lang="en" value="Ununquadium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass">289</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">289.18728</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Historically known as eka-lead. Ununquadium is a temporary IUPAC systematic element name.</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.96 0.00 0.10</array>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">p</scalar>
<array dataType="xsd:string" delimiter="," size="2" dictRef="bo:discoveryCountry">ru,us</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">1998</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">Joint Institute for Nuclear Research</array>
<scalar dataType="xsd:int" dictRef="bo:period">7</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Other_Metal</scalar>
</atom>
<atom id="Uup">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">115</scalar>
<label dictRef="bo:symbol" value="Uup" />
<label dictRef="bo:name" xml:lang="en" value="Ununpentium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass">288</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">288.19249</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Historically known as eka-bismuth. Ununpentium is a temporary IUPAC systematic element name.</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.97 0.00 0.09</array>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">p</scalar>
<array dataType="xsd:string" delimiter="," size="2" dictRef="bo:discoveryCountry">ru,us</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">2004</scalar>
<array dataType="xsd:string" delimiter=";" size="2" dictRef="bo:discoverers">Russian scientists at Dubna (JINR);American scientists at the Lawrence Livermore National Laboratory.</array>
<scalar dataType="xsd:int" dictRef="bo:period">7</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Other_Metal</scalar>
</atom>
<atom id="Uuh">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">116</scalar>
<label dictRef="bo:symbol" value="Uuh" />
<label dictRef="bo:name" xml:lang="en" value="Ununhexium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass">293</scalar>
<scalar dataType="xsd:float" dictRef="bo:exactMass" units="units:atmass">292.19979</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Historically known as eka-polonium. Ununhexium is a temporary IUPAC systematic element name.</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.98 0.00 0.08</array>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">p</scalar>
<array dataType="xsd:string" dictRef="bo:discoveryCountry">ru</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">2000</scalar>
<array dataType="xsd:string" dictRef="bo:discoverers">Joint Institute for Nuclear Research</array>
<scalar dataType="xsd:int" dictRef="bo:period">7</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Other_Metal</scalar>
</atom>
<atom id="Uus">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">117</scalar>
<label dictRef="bo:symbol" value="Uus" />
<label dictRef="bo:name" xml:lang="en" value="Ununseptium" />
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Temporary symbol and name. Can also be referred to as eka-astatine.</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">0.99 0.00 0.07</array>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">p</scalar>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">0</scalar>
<scalar dataType="xsd:int" dictRef="bo:period">7</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Halogen</scalar>
</atom>
<atom id="Uuo">
<scalar dataType="xsd:Integer" dictRef="bo:atomicNumber">118</scalar>
<label dictRef="bo:symbol" value="Uuo" />
<label dictRef="bo:name" xml:lang="en" value="Ununoctium" />
<scalar dataType="xsd:float" dictRef="bo:mass" units="units:atmass">294</scalar>
<scalar dataType="xsd:string" dictRef="bo:nameOrigin" xml:lang="en">Historically known as eka-radon, eka-emanation before 1960. Ununoctium is a temporary IUPAC systematic element name.</scalar>
<array title="color" dictRef="bo:elementColor" size="3" dataType="xsd:float">1.00 0.00 0.06</array>
<scalar dataType="xsd:string" dictRef="bo:periodTableBlock">p</scalar>
<array dataType="xsd:string" delimiter="," size="2" dictRef="bo:discoveryCountry">ru,us</array>
<scalar dataType="xsd:date" dictRef="bo:discoveryDate">2002</scalar>
<array dataType="xsd:string" delimiter=";" size="2" dictRef="bo:discoverers">Russian scientists at Dubna (JINR);American scientists at the Lawrence Livermore National Laboratory.</array>
<scalar dataType="xsd:int" dictRef="bo:period">7</scalar>
<scalar dataType="xsd:string" dictRef="bo:family">Noblegas</scalar>
</atom>
</list>
``` | /content/code_sandbox/Utilities/XMLConverter/chemistry/elements.xml | xml | 2016-05-02T15:44:11 | 2024-08-15T19:53:44 | vtk-js | Kitware/vtk-js | 1,200 | 66,614 |
```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 {Direction} from '@angular/cdk/bidi';
const KEY = 'MAT_DEV_APP_STATE';
/** State of the appearance of the dev app. */
export interface DevAppState {
density: string | number;
animations: boolean;
zoneless: boolean;
darkTheme: boolean;
rippleDisabled: boolean;
strongFocusEnabled: boolean;
m3Enabled: boolean;
direction: Direction;
colorApiBackCompat: boolean;
}
/** Gets the current appearance state of the dev app. */
export function getAppState(): DevAppState {
let value: DevAppState | null = null;
// Needs a try/catch since some browsers throw an error when accessing in incognito.
try {
const storageValue = localStorage.getItem(KEY);
if (storageValue) {
value = JSON.parse(storageValue);
}
} catch {}
if (!value) {
value = {
density: 0,
animations: true,
zoneless: false,
darkTheme: false,
rippleDisabled: false,
strongFocusEnabled: false,
m3Enabled: false,
direction: 'ltr',
colorApiBackCompat: true,
};
saveToStorage(value);
}
return value;
}
/** Saves the state of the dev app apperance in local storage. */
export function setAppState(newState: DevAppState): void {
const currentState = getAppState();
const keys = new Set([...Object.keys(currentState), ...Object.keys(newState)]) as Set<
keyof DevAppState
>;
// Only write to storage if something actually changed.
for (const key of keys) {
if (currentState[key] !== newState[key]) {
saveToStorage(newState);
break;
}
}
}
function saveToStorage(value: DevAppState): void {
// Needs a try/catch since some browsers throw an error when accessing in incognito.
try {
localStorage.setItem(KEY, JSON.stringify(value));
} catch {}
}
``` | /content/code_sandbox/src/dev-app/dev-app/dev-app-state.ts | xml | 2016-01-04T18:50:02 | 2024-08-16T11:21:13 | components | angular/components | 24,263 | 450 |
```xml
/**
* @file Automatically generated by @tsed/barrels.
*/
export * from "./components/async-api/channelsMapper.js";
export * from "./components/async-api/generate.js";
export * from "./components/async-api/messageMapper.js";
export * from "./components/async-api/payloadMapper.js";
export * from "./components/async-api/responseMapper.js";
export * from "./components/default/anyMapper.js";
export * from "./components/default/classMapper.js";
export * from "./components/default/genericsMapper.js";
export * from "./components/default/inheritedClassMapper.js";
export * from "./components/default/inlineEnumsMapper.js";
export * from "./components/default/itemMapper.js";
export * from "./components/default/lazyRefMapper.js";
export * from "./components/default/mapMapper.js";
export * from "./components/default/nullableMapper.js";
export * from "./components/default/objectMapper.js";
export * from "./components/default/ofMapper.js";
export * from "./components/default/propertiesMapper.js";
export * from "./components/default/requiredMapper.js";
export * from "./components/default/schemaMapper.js";
export * from "./components/index.js";
export * from "./components/open-spec/generate.js";
export * from "./components/open-spec/nullableMapper.js";
export * from "./components/open-spec/operationInFilesMapper.js";
export * from "./components/open-spec/operationInParameterMapper.js";
export * from "./components/open-spec/operationInParametersMapper.js";
export * from "./components/open-spec/operationInQueryMapper.js";
export * from "./components/open-spec/operationMapper.js";
export * from "./components/open-spec/operationMediaMapper.js";
export * from "./components/open-spec/operationRequestBodyMapper.js";
export * from "./components/open-spec/operationResponseMapper.js";
export * from "./components/open-spec/pathsMapper.js";
export * from "./constants/httpStatusMessages.js";
export * from "./constants/jsonSchemaProperties.js";
export * from "./constants/OperationVerbs.js";
export * from "./decorators/class/children.js";
export * from "./decorators/class/discriminatorValue.js";
export * from "./decorators/collections/collectionContains.js";
export * from "./decorators/collections/collectionOf.js";
export * from "./decorators/collections/maxItems.js";
export * from "./decorators/collections/maxProperties.js";
export * from "./decorators/collections/minItems.js";
export * from "./decorators/collections/minProperties.js";
export * from "./decorators/collections/uniqueItems.js";
export * from "./decorators/common/additionalProperties.js";
export * from "./decorators/common/allOf.js";
export * from "./decorators/common/allow.js";
export * from "./decorators/common/any.js";
export * from "./decorators/common/anyOf.js";
export * from "./decorators/common/const.js";
export * from "./decorators/common/customKey.js";
export * from "./decorators/common/default.js";
export * from "./decorators/common/defaultMsg.js";
export * from "./decorators/common/description.js";
export * from "./decorators/common/discriminatorKey.js";
export * from "./decorators/common/enum.js";
export * from "./decorators/common/errorMsg.js";
export * from "./decorators/common/example.js";
export * from "./decorators/common/examples.js";
export * from "./decorators/common/exclusiveMaximum.js";
export * from "./decorators/common/exclusiveMinimum.js";
export * from "./decorators/common/format.js";
export * from "./decorators/common/forwardGroups.js";
export * from "./decorators/common/groups.js";
export * from "./decorators/common/hidden.js";
export * from "./decorators/common/ignore.js";
export * from "./decorators/common/integer.js";
export * from "./decorators/common/jsonEntityFn.js";
export * from "./decorators/common/maximum.js";
export * from "./decorators/common/maxLength.js";
export * from "./decorators/common/minimum.js";
export * from "./decorators/common/minLength.js";
export * from "./decorators/common/multipleOf.js";
export * from "./decorators/common/name.js";
export * from "./decorators/common/nullable.js";
export * from "./decorators/common/oneOf.js";
export * from "./decorators/common/optional.js";
export * from "./decorators/common/pattern.js";
export * from "./decorators/common/property.js";
export * from "./decorators/common/readOnly.js";
export * from "./decorators/common/recordOf.js";
export * from "./decorators/common/required.js";
export * from "./decorators/common/requiredGroups.js";
export * from "./decorators/common/schema.js";
export * from "./decorators/common/title.js";
export * from "./decorators/common/typeError.js";
export * from "./decorators/common/writeOnly.js";
export * from "./decorators/config/jsonEntityComponent.js";
export * from "./decorators/generics/genericOf.js";
export * from "./decorators/generics/generics.js";
export * from "./decorators/operations/acceptMime.js";
export * from "./decorators/operations/consumes.js";
export * from "./decorators/operations/contentType.js";
export * from "./decorators/operations/deprecated.js";
export * from "./decorators/operations/header.js";
export * from "./decorators/operations/in.js";
export * from "./decorators/operations/inFile.js";
export * from "./decorators/operations/location.js";
export * from "./decorators/operations/operation.js";
export * from "./decorators/operations/operationId.js";
export * from "./decorators/operations/operationPath.js";
export * from "./decorators/operations/partial.js";
export * from "./decorators/operations/path.js";
export * from "./decorators/operations/produces.js";
export * from "./decorators/operations/publish.js";
export * from "./decorators/operations/redirect.js";
export * from "./decorators/operations/returns.js";
export * from "./decorators/operations/route.js";
export * from "./decorators/operations/security.js";
export * from "./decorators/operations/status.js";
export * from "./decorators/operations/subscribe.js";
export * from "./decorators/operations/summary.js";
export * from "./decorators/operations/tags.js";
export * from "./decorators/operations/view.js";
export * from "./domain/DecoratorContext.js";
export * from "./domain/JsonAliasMap.js";
export * from "./domain/JsonClassStore.js";
export * from "./domain/JsonDiscriminator.js";
export * from "./domain/JsonEntityStore.js";
export * from "./domain/JsonFormatTypes.js";
export * from "./domain/JsonLazyRef.js";
export * from "./domain/JsonMap.js";
export * from "./domain/JsonMedia.js";
export * from "./domain/JsonMethodStore.js";
export * from "./domain/JsonOperation.js";
export * from "./domain/JsonOperationPathsMap.js";
export * from "./domain/JsonOperationRoute.js";
export * from "./domain/JsonParameter.js";
export * from "./domain/JsonParameterStore.js";
export * from "./domain/JsonParameterTypes.js";
export * from "./domain/JsonPropertyStore.js";
export * from "./domain/JsonRequestBody.js";
export * from "./domain/JsonResponse.js";
export * from "./domain/JsonSchema.js";
export * from "./domain/SpecTypes.js";
export * from "./hooks/alterIgnore.js";
export * from "./hooks/alterOneOf.js";
export * from "./hooks/alterRequiredGroups.js";
export * from "./interfaces/IgnoreCallback.js";
export * from "./interfaces/JsonHookContext.js";
export * from "./interfaces/JsonOpenSpec.js";
export * from "./interfaces/JsonSchemaOptions.js";
export * from "./registries/enumRegistries.js";
export * from "./registries/JsonSchemaMapperContainer.js";
export * from "./utils/buildPath.js";
export * from "./utils/concatParameters.js";
export * from "./utils/concatPath.js";
export * from "./utils/defineStatusModel.js";
export * from "./utils/from.js";
export * from "./utils/generateSpec.js";
export * from "./utils/generics.js";
export * from "./utils/getComputedType.js";
export * from "./utils/getInheritedStores.js";
export * from "./utils/getJsonEntityStore.js";
export * from "./utils/getJsonPathParameters.js";
export * from "./utils/getJsonSchema.js";
export * from "./utils/getJsonType.js";
export * from "./utils/getOperationsRoutes.js";
export * from "./utils/getOperationsStores.js";
export * from "./utils/getPropertiesStores.js";
export * from "./utils/getSpec.js";
export * from "./utils/getSpecType.js";
export * from "./utils/isSuccessStatus.js";
export * from "./utils/mapHeaders.js";
export * from "./utils/mapOpenSpec.js";
export * from "./utils/mapOpenSpec2.js";
export * from "./utils/mapOpenSpec3.js";
export * from "./utils/mapOpenSpecInfo.js";
export * from "./utils/mapOperationOptions.js";
export * from "./utils/matchGroups.js";
export * from "./utils/mergeSpec.js";
export * from "./utils/operationIdFormatter.js";
export * from "./utils/ref.js";
export * from "./utils/removeHiddenOperation.js";
export * from "./utils/serializeEnumValues.js";
export * from "./utils/somethingOf.js";
export * from "./utils/toJsonMapCollection.js";
export * from "./utils/toJsonRegex.js";
export * from "./utils/transformToOS2.js";
export * from "./utils/withErrorMsg.js";
``` | /content/code_sandbox/packages/specs/schema/src/index.ts | xml | 2016-02-21T18:38:47 | 2024-08-14T21:19:48 | tsed | tsedio/tsed | 2,817 | 1,932 |
```xml
<sty:FlatWindow
x:Class="SidebarDiagnostics.Settings"
xmlns="path_to_url"
xmlns:x="path_to_url"
xmlns:d="path_to_url"
xmlns:mc="path_to_url"
xmlns:xctk="path_to_url"
xmlns:dd="clr-namespace:GongSolutions.Wpf.DragDrop;assembly=GongSolutions.Wpf.DragDrop"
xmlns:local="clr-x:Namespace:SidebarDiagnostics"
xmlns:monitor="clr-namespace:SidebarDiagnostics.Monitoring"
xmlns:conv="clr-namespace:SidebarDiagnostics.Converters"
xmlns:win="clr-namespace:SidebarDiagnostics.Windows"
xmlns:sty="clr-namespace:SidebarDiagnostics.Style"
xmlns:frame="clr-namespace:SidebarDiagnostics.Framework"
mc:Ignorable="d"
Loaded="Window_Loaded"
Closing="Window_Closing"
Closed="Window_Closed"
Title="{x:Static frame:Resources.SettingsTitle}"
Icon="Settings.ico"
Width="420"
SizeToContent="Height"
ShowMaximize="False"
WindowStartupLocation="CenterScreen"
Style="{StaticResource FlatWindowStyle}">
<Window.Resources>
<conv:IntToStringConverter x:Key="IntConverter" />
<conv:HotkeyToStringConverter x:Key="HotkeyConverter" />
</Window.Resources>
<DockPanel LastChildFill="True">
<StackPanel DockPanel.Dock="Bottom" Style="{StaticResource WindowButtons_SM}">
<Button Content="{x:Static frame:Resources.ButtonSave}" Click="SaveButton_Click" />
<Button Content="{x:Static frame:Resources.ButtonApply}" IsEnabled="{Binding Path=IsChanged, Mode=OneWay}" Click="ApplyButton_Click" />
<Button Click="CloseButton_Click">
<Button.Style>
<Style TargetType="{x:Type Button}" BasedOn="{StaticResource NeutralButton_SM}">
<Setter Property="Content" Value="{x:Static frame:Resources.ButtonClose}" />
<Style.Triggers>
<DataTrigger Binding="{Binding Path=IsChanged, Mode=OneWay}" Value="True">
<Setter Property="Content" Value="{x:Static frame:Resources.ButtonCancel}" />
</DataTrigger>
</Style.Triggers>
</Style>
</Button.Style>
</Button>
</StackPanel>
<TabControl Style="{StaticResource SettingTab}">
<TabItem Header="{x:Static frame:Resources.SettingsGeneralTab}">
<Grid Style="{StaticResource SettingGrid}">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="38px"></RowDefinition>
<RowDefinition Height="38px"></RowDefinition>
<RowDefinition Height="38px"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
</Grid.RowDefinitions>
<Label Grid.Column="0" Grid.Row="0" Content="{x:Static frame:Resources.SettingsDock}" />
<ComboBox Grid.Column="1" Grid.Row="0" ItemsSource="{Binding Path=DockEdgeItems, Mode=OneWay}" DisplayMemberPath="Text" SelectedValuePath="Value" SelectedValue="{Binding Path=DockEdge, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" ToolTip="{x:Static frame:Resources.SettingsDockTooltip}" />
<Label Grid.Column="0" Grid.Row="1" Content="{x:Static frame:Resources.SettingsScreen}" />
<ComboBox VerticalAlignment="Center" Grid.Column="1" Grid.Row="1" ItemsSource="{Binding Path=ScreenItems, Mode=OneWay}" DisplayMemberPath="Text" SelectedValuePath="Index" SelectedValue="{Binding Path=ScreenIndex, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" ToolTip="{x:Static frame:Resources.SettingsScreenTooltip}" />
<Label Grid.Column="0" Grid.Row="2" Content="{x:Static frame:Resources.SettingsLanguage}" />
<ComboBox VerticalAlignment="Center" Grid.Column="1" Grid.Row="2" ItemsSource="{Binding Path=CultureItems, Mode=OneWay}" DisplayMemberPath="Text" SelectedValuePath="Value" SelectedValue="{Binding Path=Culture, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" ToolTip="{x:Static frame:Resources.SettingsLanguageTooltip}" />
<Label Grid.Column="0" Grid.Row="3" Content="{x:Static frame:Resources.SettingsReserveSpace}" />
<CheckBox Grid.Column="1" Grid.Row="3" IsChecked="{Binding Path=UseAppBar, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" ToolTip="{x:Static frame:Resources.SettingsReserveSpaceTooltip}" />
<Label Grid.Column="0" Grid.Row="4" Content="{x:Static frame:Resources.SettingsAlwaysOnTop}" />
<CheckBox Grid.Column="1" Grid.Row="4" IsChecked="{Binding Path=AlwaysTop, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" ToolTip="{x:Static frame:Resources.SettingsAlwaysOnTopTooltip}" />
<Label Grid.Column="0" Grid.Row="5" Content="{x:Static frame:Resources.SettingsAutoUpdate}" />
<CheckBox Grid.Column="1" Grid.Row="5" IsChecked="{Binding Path=AutoUpdate, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" ToolTip="{x:Static frame:Resources.SettingsAutoUpdateTooltip}" />
<Label Grid.Column="0" Grid.Row="6" Content="{x:Static frame:Resources.SettingsRunAtStartup}" />
<CheckBox Grid.Column="1" Grid.Row="6" IsChecked="{Binding Path=RunAtStartup, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" ToolTip="{x:Static frame:Resources.SettingsRunAtStartupTooltip}" />
</Grid>
</TabItem>
<TabItem Header="{x:Static frame:Resources.SettingsAdvancedTab}">
<Grid Style="{StaticResource SettingGrid}">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="38px"></RowDefinition>
<RowDefinition Height="38px"></RowDefinition>
<RowDefinition Height="38px"></RowDefinition>
<RowDefinition Height="38px"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
</Grid.RowDefinitions>
<Label Grid.Column="0" Grid.Row="0" Content="{x:Static frame:Resources.SettingsUIScale}" />
<DockPanel Grid.Column="1" Grid.Row="0">
<TextBox Text="{Binding ElementName=UIScaleSlider, Path=Value, UpdateSourceTrigger=PropertyChanged}" PreviewTextInput="NumberBox_PreviewTextInput" />
<Slider x:Name="UIScaleSlider" Value="{Binding Path=UIScale, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Minimum="0.5" Maximum="3.0" TickFrequency="0.1" LargeChange="0.5" ToolTip="{x:Static frame:Resources.SettingsUIScaleTooltip}" />
</DockPanel>
<Label Grid.Column="0" Grid.Row="1" Content="{x:Static frame:Resources.SettingsHorizontalOffset}" />
<DockPanel Grid.Column="1" Grid.Row="1">
<TextBox Text="{Binding ElementName=XOffsetSlider, Path=Value, UpdateSourceTrigger=PropertyChanged}" PreviewTextInput="NumberBox_PreviewTextInput" />
<Slider x:Name="XOffsetSlider" Value="{Binding Path=XOffset, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Minimum="-2000" Maximum="2000" TickFrequency="1" LargeChange="1000" ValueChanged="OffsetSlider_ValueChanged" ToolTip="{x:Static frame:Resources.SettingsHorizontalOffsetTooltip}" />
</DockPanel>
<Label Grid.Column="0" Grid.Row="2" Content="{x:Static frame:Resources.SettingsVerticalOffset}" />
<DockPanel Grid.Column="1" Grid.Row="2">
<TextBox Text="{Binding ElementName=YOffsetSlider, Path=Value, UpdateSourceTrigger=PropertyChanged}" PreviewTextInput="NumberBox_PreviewTextInput" />
<Slider x:Name="YOffsetSlider" Value="{Binding Path=YOffset, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Minimum="-2000" Maximum="2000" TickFrequency="1" LargeChange="1000" ValueChanged="OffsetSlider_ValueChanged" ToolTip="{x:Static frame:Resources.SettingsVerticalOffsetTooltip}" />
</DockPanel>
<Label Grid.Column="0" Grid.Row="3" Content="{x:Static frame:Resources.SettingsPollingInterval}" />
<DockPanel Grid.Column="1" Grid.Row="3">
<TextBox Text="{Binding ElementName=PollingIntervalSlider, Path=Value, UpdateSourceTrigger=PropertyChanged}" PreviewTextInput="NumberBox_PreviewTextInput" />
<Slider x:Name="PollingIntervalSlider" Value="{Binding Path=PollingInterval, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Minimum="100" Maximum="5000" TickFrequency="100" LargeChange="1000" ToolTip="{x:Static frame:Resources.SettingsPollingIntervalTooltip}" />
</DockPanel>
<Label Grid.Column="0" Grid.Row="4" Content="{x:Static frame:Resources.SettingsShowTrayIcon}" />
<CheckBox Grid.Column="1" Grid.Row="4" x:Name="ShowTrayIconCheckbox" Unchecked="ShowTrayIconCheckbox_Unchecked" IsChecked="{Binding Path=ShowTrayIcon, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" ToolTip="{x:Static frame:Resources.SettingsShowTrayIconTooltip}" />
<Label Grid.Column="0" Grid.Row="5" Content="{x:Static frame:Resources.SettingsToolbarMode}" />
<CheckBox Grid.Column="1" Grid.Row="5" IsChecked="{Binding Path=ToolbarMode, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" ToolTip="{x:Static frame:Resources.SettingsToolbarModeTooltip}" />
<Label Grid.Column="0" Grid.Row="6" Content="{x:Static frame:Resources.SettingsClickThrough}" />
<CheckBox Grid.Column="1" Grid.Row="6" x:Name="ClickThroughCheckbox" Checked="ClickThroughCheckbox_Checked" IsChecked="{Binding Path=ClickThrough, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" ToolTip="{x:Static frame:Resources.SettingsClickThroughTooltip}" />
<Label Grid.Column="0" Grid.Row="7" Content="{x:Static frame:Resources.SettingsInitiallyHidden}" />
<CheckBox Grid.Column="1" Grid.Row="7" IsChecked="{Binding Path=InitiallyHidden, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" ToolTip="{x:Static frame:Resources.SettingsInitiallyHiddenTooltip}" />
<Label Grid.Column="0" Grid.Row="8" Content="{x:Static frame:Resources.SettingsCollapseMenuBar}" />
<CheckBox Grid.Column="1" Grid.Row="8" IsChecked="{Binding Path=CollapseMenuBar, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" ToolTip="{x:Static frame:Resources.SettingsCollapseMenuBarTooltip}" />
</Grid>
</TabItem>
<TabItem Header="{x:Static frame:Resources.SettingsCustomizeTab}">
<Grid Style="{StaticResource SettingGrid}">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="38px"></RowDefinition>
<RowDefinition Height="38px"></RowDefinition>
<RowDefinition Height="38px"></RowDefinition>
<RowDefinition Height="38px"></RowDefinition>
<RowDefinition Height="38px"></RowDefinition>
<RowDefinition Height="38px"></RowDefinition>
<RowDefinition Height="38px"></RowDefinition>
<RowDefinition Height="38px"></RowDefinition>
<RowDefinition Height="38px"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition Height="38px"></RowDefinition>
</Grid.RowDefinitions>
<Label Grid.Column="0" Grid.Row="0" Content="{x:Static frame:Resources.SettingsSidebarWidth}" />
<DockPanel Grid.Column="1" Grid.Row="0">
<TextBox Text="{Binding ElementName=SidebarWidthSlider, Path=Value, UpdateSourceTrigger=PropertyChanged}" PreviewTextInput="NumberBox_PreviewTextInput" />
<Slider x:Name="SidebarWidthSlider" Value="{Binding Path=SidebarWidth, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Minimum="100" Maximum="300" TickFrequency="5" LargeChange="100" ToolTip="{x:Static frame:Resources.SettingsSidebarWidthTooltip}" />
</DockPanel>
<Label Grid.Column="0" Grid.Row="1" Content="{x:Static frame:Resources.SettingsAutoBackground}" />
<CheckBox Grid.Column="1" Grid.Row="1" IsChecked="{Binding Path=AutoBGColor, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" ToolTip="{x:Static frame:Resources.SettingsAutoBackgroundTooltip}" />
<Label Grid.Column="0" Grid.Row="2" Content="{x:Static frame:Resources.SettingsBackgroundColor}" />
<xctk:ColorPicker Grid.Column="1" Grid.Row="2" IsEnabled="{Binding Path=AutoBGColor, Mode=OneWay, Converter={StaticResource BoolInverseConverter}}" SelectedColor="{Binding Path=BGColor, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" ToolTip="{x:Static frame:Resources.SettingsBackgroundColorTooltip}" />
<Label Grid.Column="0" Grid.Row="3" Content="{x:Static frame:Resources.SettingsBackgroundOpacity}" />
<DockPanel Grid.Column="1" Grid.Row="3">
<TextBox Text="{Binding ElementName=BGOpacitySlider, Path=Value, UpdateSourceTrigger=PropertyChanged}" PreviewTextInput="NumberBox_PreviewTextInput" />
<Slider x:Name="BGOpacitySlider" Value="{Binding Path=BGOpacity, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Minimum="0.01" Maximum="1.0" LargeChange="0.1" TickFrequency="0.01" ToolTip="{x:Static frame:Resources.SettingsBackgroundOpacityTooltip}" />
</DockPanel>
<Label Grid.Column="0" Grid.Row="4" Content="{x:Static frame:Resources.SettingsTextAlign}" />
<ComboBox Grid.Column="1" Grid.Row="4" ItemsSource="{Binding Path=TextAlignItems, Mode=OneWay}" DisplayMemberPath="Text" SelectedValuePath="Value" SelectedValue="{Binding Path=TextAlign, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" ToolTip="{x:Static frame:Resources.SettingsTextAlignTooltip}" />
<Label Grid.Column="0" Grid.Row="5" Content="{x:Static frame:Resources.SettingsFontSize}" />
<ComboBox Grid.Column="1" Grid.Row="5" ItemsSource="{Binding Path=FontSettingItems, Mode=OneWay}" DisplayMemberPath="FontSize" SelectedValue="{Binding Path=FontSetting, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" ToolTip="{x:Static frame:Resources.SettingsFontSizeTooltip}" />
<Label Grid.Column="0" Grid.Row="6" Content="{x:Static frame:Resources.SettingsFontColor}" />
<xctk:ColorPicker Grid.Column="1" Grid.Row="6" SelectedColor="{Binding Path=FontColor, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" ToolTip="{x:Static frame:Resources.SettingsFontColorTooltip}"/>
<Label Grid.Column="0" Grid.Row="7" Content="{x:Static frame:Resources.SettingsAlertFontColor}" />
<xctk:ColorPicker Grid.Column="1" Grid.Row="7" SelectedColor="{Binding Path=AlertFontColor, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" ToolTip="{x:Static frame:Resources.SettingsAlertFontColorTooltip}"/>
<Label Grid.Column="0" Grid.Row="8" Content="{x:Static frame:Resources.SettingsAlertBlink}" />
<CheckBox Grid.Column="1" Grid.Row="8" IsChecked="{Binding Path=AlertBlink, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" ToolTip="{x:Static frame:Resources.SettingsAlertBlinkTooltip}" />
<Label Grid.Column="0" Grid.Row="9" Content="{x:Static frame:Resources.SettingsShowMachineName}" />
<CheckBox Grid.Column="1" Grid.Row="9" IsChecked="{Binding Path=ShowMachineName, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" ToolTip="{x:Static frame:Resources.SettingsShowMachineNameTooltip}" />
<Label Grid.Column="0" Grid.Row="10" Content="{x:Static frame:Resources.SettingsShowClock}" />
<CheckBox Grid.Column="1" Grid.Row="10" IsChecked="{Binding Path=ShowClock, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" ToolTip="{x:Static frame:Resources.SettingsShowClockTooltip}" />
<Label Grid.Column="0" Grid.Row="11" Content="{x:Static frame:Resources.Settings24HourClock}" />
<CheckBox Grid.Column="1" Grid.Row="11" IsChecked="{Binding Path=Clock24HR, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" IsEnabled="{Binding Path=ShowClock, Mode=OneWay}" ToolTip="{x:Static frame:Resources.Settings24HourClockTooltip}" />
<Label Grid.Column="0" Grid.Row="12" Content="{x:Static frame:Resources.SettingsDateFormat}" />
<ComboBox Grid.Column="1" Grid.Row="12" ItemsSource="{Binding Path=DateSettingItems}" DisplayMemberPath="Display" SelectedValue="{Binding Path=DateSetting, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" IsEnabled="{Binding Path=ShowClock, Mode=OneWay}" ToolTip="{x:Static frame:Resources.SettingsDateFormatTooltip}" />
</Grid>
</TabItem>
<TabItem Header="{x:Static frame:Resources.SettingsMonitorsTab}">
<StackPanel Style="{StaticResource VerticalPanel}">
<StackPanel Style="{StaticResource SettingTitle}">
<TextBlock Text="{x:Static frame:Resources.SettingsMonitorsSubtitle1}" />
<TextBlock Text="{x:Static frame:Resources.SettingsMonitorsSubtitle2}" />
</StackPanel>
<DataGrid ItemsSource="{Binding Path=MonitorConfig, Mode=OneWay}" dd:DragDrop.IsDragSource="True" dd:DragDrop.IsDropTarget="True" Style="{StaticResource MonitorGrid}">
<DataGrid.Columns>
<DataGridTemplateColumn Header="{x:Static frame:Resources.SettingsMonitorsColumn1}" HeaderStyle="{StaticResource MonitorGridHeaderCenter}">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate DataType="{x:Type monitor:MonitorConfig}">
<CheckBox IsChecked="{Binding Path=Enabled, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Center" VerticalAlignment="Center" ToolTip="{x:Static frame:Resources.SettingsMonitorEnabledTooltip}" />
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
<DataGridTemplateColumn Header="{x:Static frame:Resources.SettingsMonitorsColumn2}" Width="*" HeaderStyle="{StaticResource MonitorGridHeader}">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate DataType="{x:Type monitor:MonitorConfig}">
<Label Content="{Binding Path=Name}" VerticalAlignment="Center" />
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
</DataGrid.Columns>
<DataGrid.RowDetailsTemplate>
<DataTemplate>
<Border Style="{StaticResource MonitorDetailsBorder}">
<StackPanel Style="{StaticResource VerticalPanel}">
<ListView ItemsSource="{Binding Path=HardwareOC, Mode=OneWay}" dd:DragDrop.IsDragSource="True" dd:DragDrop.IsDropTarget="True" ItemContainerStyle="{StaticResource MonitorHardwareItem}" Style="{StaticResource HardwareGrid}">
<ListView.View>
<GridView AllowsColumnReorder="False">
<GridViewColumn Header="{x:Static frame:Resources.SettingsHardwareColumn1}" HeaderContainerStyle="{StaticResource MonitorHardwareHeaderCenter}">
<GridViewColumn.CellTemplate>
<DataTemplate DataType="{x:Type monitor:HardwareConfig}">
<CheckBox IsChecked="{Binding Path=Enabled, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" ToolTip="{x:Static frame:Resources.SettingsHardwareEnabledTooltip}" Style="{StaticResource MonitorHardwareCheckbox}" />
</DataTemplate>
</GridViewColumn.CellTemplate>
</GridViewColumn>
<GridViewColumn Header="{x:Static frame:Resources.SettingsHardwareColumn2}" HeaderContainerStyle="{StaticResource MonitorHardwareHeader}" Width="230">
<GridViewColumn.CellTemplate>
<DataTemplate DataType="{x:Type monitor:HardwareConfig}">
<TextBox Text="{Binding Path=Name, Mode=TwoWay}" Style="{StaticResource MonitorHardwareText}" ToolTip="{x:Static frame:Resources.SettingsHardwareNameTooltip}" />
</DataTemplate>
</GridViewColumn.CellTemplate>
</GridViewColumn>
</GridView>
</ListView.View>
</ListView>
<DockPanel LastChildFill="True" Margin="0,15,0,0">
<Label DockPanel.Dock="Left" Content="{x:Static frame:Resources.SettingsMetrics}" Margin="0,0,10,0" />
<xctk:CheckComboBox ItemsSource="{Binding Path=Metrics, Mode=OneWay}" DisplayMemberPath="Name" SelectedMemberPath="Enabled" Delimiter=", " ToolTip="{x:Static frame:Resources.SettingsMetricsTooltip}" />
</DockPanel>
<ItemsControl ItemsSource="{Binding Path=Params}" Margin="10">
<ItemsControl.ItemTemplate>
<DataTemplate DataType="{x:Type monitor:ConfigParam}">
<ContentControl>
<ContentControl.Style>
<Style TargetType="{x:Type ContentControl}">
<Style.Triggers>
<DataTrigger Binding="{Binding TypeString}" Value="System.Boolean">
<Setter Property="Content">
<Setter.Value>
<CheckBox Content="{Binding Path=Name}" IsChecked="{Binding Path=Value, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" ToolTip="{Binding Path=Tooltip, Mode=OneTime}" />
</Setter.Value>
</Setter>
</DataTrigger>
<DataTrigger Binding="{Binding TypeString}" Value="System.Int32">
<Setter Property="Content">
<Setter.Value>
<StackPanel>
<Label Content="{Binding Path=Name, Mode=OneTime}" />
<TextBox Text="{Binding Path=Value, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource IntConverter}}" ToolTip="{Binding Path=Tooltip, Mode=OneTime}" />
</StackPanel>
</Setter.Value>
</Setter>
</DataTrigger>
</Style.Triggers>
</Style>
</ContentControl.Style>
<ContentControl.Resources>
<Style TargetType="{x:Type CheckBox}">
<Setter Property="VerticalAlignment" Value="Center" />
<Setter Property="Margin" Value="0,5" />
</Style>
<Style TargetType="{x:Type StackPanel}">
<Setter Property="Orientation" Value="Horizontal" />
<Setter Property="Margin" Value="0,5" />
<Style.Resources>
<Style TargetType="{x:Type Label}">
<Setter Property="VerticalAlignment" Value="Center" />
<Setter Property="Margin" Value="0,0,10,0" />
<Setter Property="Padding" Value="0" />
</Style>
<Style TargetType="{x:Type TextBox}">
<Setter Property="VerticalAlignment" Value="Center" />
<Setter Property="Width" Value="40" />
<Setter Property="MaxLines" Value="1" />
</Style>
</Style.Resources>
</Style>
</ContentControl.Resources>
</ContentControl>
</DataTemplate>
</ItemsControl.ItemTemplate>
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel Style="{StaticResource VerticalPanel}" />
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
</ItemsControl>
</StackPanel>
</Border>
</DataTemplate>
</DataGrid.RowDetailsTemplate>
</DataGrid>
</StackPanel>
</TabItem>
<TabItem Header="{x:Static frame:Resources.SettingsHotkeysTab}">
<Grid Style="{StaticResource SettingGrid}">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"></ColumnDefinition>
<ColumnDefinition Width="50"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="38px"></RowDefinition>
<RowDefinition Height="38px"></RowDefinition>
<RowDefinition Height="38px"></RowDefinition>
<RowDefinition Height="38px"></RowDefinition>
<RowDefinition Height="38px"></RowDefinition>
<RowDefinition Height="38px"></RowDefinition>
<RowDefinition Height="38px"></RowDefinition>
<RowDefinition Height="38px"></RowDefinition>
</Grid.RowDefinitions>
<Label Grid.Column="0" Grid.Row="0" Content="{x:Static frame:Resources.SettingsHotkeyToggle}" />
<ToggleButton Grid.Column="1" Grid.Row="0" Click="BindToggle_Click" LostFocus="BindButton_LostFocus" Style="{StaticResource HotkeyToggle}" />
<TextBox Grid.Column="2" Grid.Row="0" Text="{Binding Path=ToggleKey, Mode=OneWay, Converter={StaticResource HotkeyConverter}}" Style="{StaticResource HotkeyLabel}" />
<Label Grid.Column="0" Grid.Row="1" Content="{x:Static frame:Resources.SettingsHotkeyShow}" />
<ToggleButton Grid.Column="1" Grid.Row="1" Click="BindShow_Click" LostFocus="BindButton_LostFocus" Style="{StaticResource HotkeyToggle}" />
<TextBox Grid.Column="2" Grid.Row="1" Text="{Binding Path=ShowKey, Mode=OneWay, Converter={StaticResource HotkeyConverter}}" Style="{StaticResource HotkeyLabel}" />
<Label Grid.Column="0" Grid.Row="2" Content="{x:Static frame:Resources.SettingsHotkeyHide}" />
<ToggleButton Grid.Column="1" Grid.Row="2" Click="BindHide_Click" LostFocus="BindButton_LostFocus" Style="{StaticResource HotkeyToggle}" />
<TextBox Grid.Column="2" Grid.Row="2" Text="{Binding Path=HideKey, Mode=OneWay, Converter={StaticResource HotkeyConverter}}" Style="{StaticResource HotkeyLabel}" />
<Label Grid.Column="0" Grid.Row="3" Content="{x:Static frame:Resources.SettingsHotkeyCycleEdge}" />
<ToggleButton Grid.Column="1" Grid.Row="3" Click="BindCycleEdge_Click" LostFocus="BindButton_LostFocus" Style="{StaticResource HotkeyToggle}" />
<TextBox Grid.Column="2" Grid.Row="3" Text="{Binding Path=CycleEdgeKey, Mode=OneWay, Converter={StaticResource HotkeyConverter}}" Style="{StaticResource HotkeyLabel}" />
<Label Grid.Column="0" Grid.Row="4" Content="{x:Static frame:Resources.SettingsHotkeyCycleScreen}" />
<ToggleButton Grid.Column="1" Grid.Row="4" Click="BindCycleScreen_Click" LostFocus="BindButton_LostFocus" Style="{StaticResource HotkeyToggle}" />
<TextBox Grid.Column="2" Grid.Row="4" Text="{Binding Path=CycleScreenKey, Mode=OneWay, Converter={StaticResource HotkeyConverter}}" Style="{StaticResource HotkeyLabel}" />
<Label Grid.Column="0" Grid.Row="5" Content="{x:Static frame:Resources.SettingsHotkeyReserveSpace}" />
<ToggleButton Grid.Column="1" Grid.Row="5" Click="BindReserveSpace_Click" LostFocus="BindButton_LostFocus" Style="{StaticResource HotkeyToggle}" />
<TextBox Grid.Column="2" Grid.Row="5" Text="{Binding Path=ReserveSpaceKey, Mode=OneWay, Converter={StaticResource HotkeyConverter}}" Style="{StaticResource HotkeyLabel}" />
<Label Grid.Column="0" Grid.Row="6" Content="{x:Static frame:Resources.SettingsHotkeyReload}" />
<ToggleButton Grid.Column="1" Grid.Row="6" Click="BindReload_Click" LostFocus="BindButton_LostFocus" Style="{StaticResource HotkeyToggle}" />
<TextBox Grid.Column="2" Grid.Row="6" Text="{Binding Path=ReloadKey, Mode=OneWay, Converter={StaticResource HotkeyConverter}}" Style="{StaticResource HotkeyLabel}" />
<Label Grid.Column="0" Grid.Row="7" Content="{x:Static frame:Resources.SettingsHotkeyClose}" />
<ToggleButton Grid.Column="1" Grid.Row="7" Click="BindClose_Click" LostFocus="BindButton_LostFocus" Style="{StaticResource HotkeyToggle}" />
<TextBox Grid.Column="2" Grid.Row="7" Text="{Binding Path=CloseKey, Mode=OneWay, Converter={StaticResource HotkeyConverter}}" Style="{StaticResource HotkeyLabel}" />
</Grid>
</TabItem>
</TabControl>
</DockPanel>
</sty:FlatWindow>
``` | /content/code_sandbox/SidebarDiagnostics/Settings.xaml | xml | 2016-01-20T07:41:58 | 2024-08-16T15:40:57 | SidebarDiagnostics | ArcadeRenegade/SidebarDiagnostics | 2,273 | 6,407 |
```xml
/* eslint-env browser */
import { useEffect } from 'storybook/internal/preview-api';
import type {
Renderer,
StoryContext,
PartialStoryFn as StoryFunction,
} from 'storybook/internal/types';
import { destroy, init, rescale } from './box-model/canvas';
import { drawSelectedElement } from './box-model/visualizer';
import { deepElementFromPoint } from './util';
let nodeAtPointerRef;
const pointer = { x: 0, y: 0 };
function findAndDrawElement(x: number, y: number) {
nodeAtPointerRef = deepElementFromPoint(x, y);
drawSelectedElement(nodeAtPointerRef);
}
export const withMeasure = (StoryFn: StoryFunction<Renderer>, context: StoryContext<Renderer>) => {
const { measureEnabled } = context.globals;
useEffect(() => {
const onPointerMove = (event: MouseEvent) => {
window.requestAnimationFrame(() => {
event.stopPropagation();
pointer.x = event.clientX;
pointer.y = event.clientY;
});
};
document.addEventListener('pointermove', onPointerMove);
return () => {
document.removeEventListener('pointermove', onPointerMove);
};
}, []);
useEffect(() => {
const onPointerOver = (event: MouseEvent) => {
window.requestAnimationFrame(() => {
event.stopPropagation();
findAndDrawElement(event.clientX, event.clientY);
});
};
const onResize = () => {
window.requestAnimationFrame(() => {
rescale();
});
};
if (context.viewMode === 'story' && measureEnabled) {
document.addEventListener('pointerover', onPointerOver);
init();
window.addEventListener('resize', onResize);
// Draw the element below the pointer when first enabled
findAndDrawElement(pointer.x, pointer.y);
}
return () => {
window.removeEventListener('resize', onResize);
destroy();
};
}, [measureEnabled, context.viewMode]);
return StoryFn();
};
``` | /content/code_sandbox/code/addons/measure/src/withMeasure.ts | xml | 2016-03-18T04:23:44 | 2024-08-16T19:22:08 | storybook | storybookjs/storybook | 83,755 | 418 |
```xml
<resources>
<string name="app_name">MarqueeView</string>
</resources>
``` | /content/code_sandbox/marqueeview/src/main/res/values/strings.xml | xml | 2016-06-01T06:50:46 | 2024-08-15T10:30:01 | MarqueeView | sunfusheng/MarqueeView | 3,773 | 21 |
```xml
import {AngleBetweenDimension, DiameterDimension, LinearDimension} from "../dim";
import {Styles} from "../../styles";
import {ConstraintAnnotation} from "../../constr/constraintAnnotation";
import {AlgNumConstraint} from "../../constr/ANConstraints";
export class AngleBetweenAnnotation extends AngleBetweenDimension implements ConstraintAnnotation<{offset: number}> {
constraint: AlgNumConstraint;
isConstraintAnnotation = true;
constructor(a, b, constraint) {
super(a, b);
this.constraint = constraint;
}
get isAnnotation() {
return true;
}
save() {
return {
offset: this.offset,
}
}
load(params) {
this.offset = params.offset;
}
}
AngleBetweenAnnotation.prototype.TYPE = 'AngleBetweenAnnotation';
AngleBetweenAnnotation.prototype._class = 'TCAD.TWO.AngleBetweenAnnotation';
export class AngleAbsoluteAnnotation extends AngleBetweenDimension implements ConstraintAnnotation<{offset: number}> {
constraint: AlgNumConstraint;
isConstraintAnnotation = true;
constructor(segment, constraint) {
super({
a: segment.a,
b: {
get x() {
return segment.a.x + 100
},
get y() {
return segment.a.y;
}
},
params: {
ang: {
get() {
return 0
}
}
},
get nx() {
return 0;
},
get ny() {
return 1;
}
}, segment);
this.constraint = constraint;
}
get isAnnotation() {
return true;
}
drawRef(ctx, a, b, px, py, vx, vy, viewer, unscale, first) {
if (!first) {
super.drawRef(ctx, a, b, px, py, vx, vy, viewer, unscale, first);
} else {
const WIDTH = 10;
ctx.save();
viewer.setStyle(Styles.CONSTRUCTION, ctx);
ctx.beginPath();
ctx.lineTo(px + vx * WIDTH * unscale, py + vy * WIDTH * unscale);
ctx.lineTo(px - vx * WIDTH * unscale, py - vy * WIDTH * unscale);
ctx.stroke();
ctx.restore();
}
}
save() {
return {
offset: this.offset,
}
}
load(params) {
this.offset = params.offset;
}
}
AngleAbsoluteAnnotation.prototype._class = 'AngleAbsoluteAnnotation';
export class LengthAnnotation extends LinearDimension implements ConstraintAnnotation<{offset: number}> {
constraint: AlgNumConstraint;
isConstraintAnnotation = true;
constructor(segment, constraint) {
super(segment.a, segment.b);
this.constraint = constraint;
}
get isAnnotation() {
return true;
}
save() {
return {
offset: this.offset,
}
}
load(params) {
this.offset = params.offset;
}
}
LengthAnnotation.prototype.TYPE = 'LengthAnnotation';
LengthAnnotation.prototype._class = 'TCAD.TWO.LengthAnnotation';
export class RadiusLengthAnnotation extends DiameterDimension implements ConstraintAnnotation<{angle: number}> {
constraint: AlgNumConstraint;
isConstraintAnnotation = true;
constructor(obj, constraint) {
super(obj);
this.constraint = constraint;
}
get isAnnotation() {
return true;
}
save() {
return {
angle: this.angle,
}
}
load(params) {
this.angle = params.angle;
}
}
RadiusLengthAnnotation.prototype.TYPE = 'RadiusLengthAnnotation';
RadiusLengthAnnotation.prototype._class = 'TCAD.TWO.RadiusLengthAnnotation';
``` | /content/code_sandbox/web/app/sketcher/shapes/annotations/angleAnnotation.ts | xml | 2016-08-26T21:55:19 | 2024-08-15T01:02:53 | jsketcher | xibyte/jsketcher | 1,461 | 759 |
```xml
<shapes name="mxgraph.electrical.iec417">
<shape aspect="variable" h="85" name="AC-AC Converter" strokewidth="inherit" w="80">
<connections>
<constraint name="in" perimeter="0" x="0" y="0.5"/>
<constraint name="out" perimeter="0" x="1" y="0.5"/>
</connections>
<background>
<rect h="80" w="80" x="0" y="5"/>
</background>
<foreground>
<fillstroke/>
<path>
<move x="0" y="85"/>
<line x="80" y="5"/>
<move x="35" y="0"/>
<line x="40" y="5"/>
<line x="35" y="10"/>
<move x="10" y="20"/>
<arc large-arc-flag="0" rx="3" ry="3" sweep-flag="1" x="15" x-axis-rotation="0" y="20"/>
<arc large-arc-flag="0" rx="3" ry="3" sweep-flag="0" x="20" x-axis-rotation="0" y="20"/>
<move x="60" y="70"/>
<arc large-arc-flag="0" rx="3" ry="3" sweep-flag="1" x="65" x-axis-rotation="0" y="70"/>
<arc large-arc-flag="0" rx="3" ry="3" sweep-flag="0" x="70" x-axis-rotation="0" y="70"/>
</path>
<stroke/>
</foreground>
</shape>
<shape aspect="variable" h="85" name="AC-DC Converter" strokewidth="inherit" w="80">
<connections>
<constraint name="in" perimeter="0" x="0" y="0.5"/>
<constraint name="out" perimeter="0" x="1" y="0.5"/>
</connections>
<background>
<rect h="80" w="80" x="0" y="5"/>
</background>
<foreground>
<fillstroke/>
<path>
<move x="0" y="85"/>
<line x="80" y="5"/>
<move x="35" y="0"/>
<line x="40" y="5"/>
<line x="35" y="10"/>
<move x="10" y="20"/>
<arc large-arc-flag="0" rx="3" ry="3" sweep-flag="1" x="15" x-axis-rotation="0" y="20"/>
<arc large-arc-flag="0" rx="3" ry="3" sweep-flag="0" x="20" x-axis-rotation="0" y="20"/>
<move x="60" y="70"/>
<line x="70" y="70"/>
<move x="60" y="73"/>
<line x="62" y="73"/>
<move x="64" y="73"/>
<line x="66" y="73"/>
<move x="68" y="73"/>
<line x="70" y="73"/>
</path>
<stroke/>
</foreground>
</shape>
<shape aspect="variable" h="85" name="AD Converter" strokewidth="inherit" w="80">
<connections>
<constraint name="in" perimeter="0" x="0" y="0.5"/>
<constraint name="out" perimeter="0" x="1" y="0.5"/>
</connections>
<background>
<rect h="80" w="80" x="0" y="5"/>
</background>
<foreground>
<fillstroke/>
<path>
<move x="0" y="85"/>
<line x="80" y="5"/>
<move x="35" y="0"/>
<line x="40" y="5"/>
<line x="35" y="10"/>
<move x="5" y="20"/>
<arc large-arc-flag="0" rx="5.5" ry="5.5" sweep-flag="1" x="15" x-axis-rotation="0" y="20"/>
<arc large-arc-flag="0" rx="5.5" ry="5.5" sweep-flag="0" x="25" x-axis-rotation="0" y="20"/>
<move x="35" y="75"/>
<line x="40" y="75"/>
<line x="40" y="68"/>
<line x="47" y="68"/>
<line x="47" y="75"/>
<line x="52" y="75"/>
<line x="52" y="68"/>
<line x="59" y="68"/>
<line x="59" y="75"/>
<line x="66" y="75"/>
<line x="66" y="68"/>
<line x="73" y="68"/>
<line x="73" y="75"/>
<line x="76" y="75"/>
</path>
<stroke/>
</foreground>
</shape>
<shape aspect="variable" h="80" name="Amp" strokewidth="inherit" w="80">
<connections>
<constraint name="in" perimeter="0" x="0" y="0.5"/>
<constraint name="out" perimeter="0" x="1" y="0.5"/>
</connections>
<background>
<rect h="80" w="80" x="0" y="0"/>
</background>
<foreground>
<fillstroke/>
<path>
<move x="5" y="5"/>
<line x="75" y="40"/>
<line x="5" y="75"/>
<close/>
</path>
<stroke/>
</foreground>
</shape>
<shape aspect="variable" h="80" name="Amp Bidirectional" strokewidth="inherit" w="80">
<connections>
<constraint name="in" perimeter="0" x="0" y="0.5"/>
<constraint name="out" perimeter="0" x="1" y="0.5"/>
</connections>
<background>
<rect h="80" w="80" x="0" y="0"/>
</background>
<foreground>
<fillstroke/>
<path>
<move x="31.5" y="15"/>
<line x="48.5" y="23.5"/>
<line x="31.5" y="32"/>
<close/>
<move x="31.5" y="23.5"/>
<line x="20" y="23.5"/>
<line x="20" y="56.5"/>
<line x="31.5" y="56.5"/>
<move x="48.5" y="23.5"/>
<line x="60" y="23.5"/>
<line x="60" y="56.5"/>
<line x="48.5" y="56.5"/>
<move x="10" y="40"/>
<line x="20" y="40"/>
<move x="60" y="40"/>
<line x="70" y="40"/>
<move x="48.5" y="48"/>
<line x="31.5" y="56.5"/>
<line x="48.5" y="65"/>
<close/>
</path>
<stroke/>
</foreground>
</shape>
<shape aspect="variable" h="80" name="Att" strokewidth="inherit" w="80">
<connections>
<constraint name="in" perimeter="0" x="0" y="0.5"/>
<constraint name="out" perimeter="0" x="1" y="0.5"/>
</connections>
<background>
<rect h="80" w="80" x="0" y="0"/>
</background>
<foreground>
<fillstroke/>
<path>
<move x="35" y="65"/>
<line x="45" y="55"/>
<line x="35" y="45"/>
<line x="45" y="35"/>
<line x="35" y="25"/>
<line x="45" y="15"/>
</path>
<stroke/>
</foreground>
</shape>
<shape aspect="variable" h="80" name="Bandpass" strokewidth="inherit" w="80">
<connections>
<constraint name="in" perimeter="0" x="0" y="0.5"/>
<constraint name="out" perimeter="0" x="1" y="0.5"/>
</connections>
<background>
<rect h="80" w="80" x="0" y="0"/>
</background>
<foreground>
<fillstroke/>
<path>
<move x="15" y="40"/>
<arc large-arc-flag="0" rx="17" ry="17" sweep-flag="1" x="40" x-axis-rotation="0" y="40"/>
<arc large-arc-flag="0" rx="17" ry="17" sweep-flag="0" x="65" x-axis-rotation="0" y="40"/>
<move x="15" y="25"/>
<arc large-arc-flag="0" rx="17" ry="17" sweep-flag="1" x="40" x-axis-rotation="0" y="25"/>
<arc large-arc-flag="0" rx="17" ry="17" sweep-flag="0" x="65" x-axis-rotation="0" y="25"/>
<move x="15" y="55"/>
<arc large-arc-flag="0" rx="17" ry="17" sweep-flag="1" x="40" x-axis-rotation="0" y="55"/>
<arc large-arc-flag="0" rx="17" ry="17" sweep-flag="0" x="65" x-axis-rotation="0" y="55"/>
<move x="36" y="57"/>
<line x="42" y="51"/>
<move x="36" y="27"/>
<line x="42" y="21"/>
</path>
<stroke/>
</foreground>
</shape>
<shape aspect="variable" h="80" name="Bandstop" strokewidth="inherit" w="80">
<connections>
<constraint name="in" perimeter="0" x="0" y="0.5"/>
<constraint name="out" perimeter="0" x="1" y="0.5"/>
</connections>
<background>
<rect h="80" w="80" x="0" y="0"/>
</background>
<foreground>
<fillstroke/>
<path>
<move x="15" y="40"/>
<arc large-arc-flag="0" rx="17" ry="17" sweep-flag="1" x="40" x-axis-rotation="0" y="40"/>
<arc large-arc-flag="0" rx="17" ry="17" sweep-flag="0" x="65" x-axis-rotation="0" y="40"/>
<move x="15" y="25"/>
<arc large-arc-flag="0" rx="17" ry="17" sweep-flag="1" x="40" x-axis-rotation="0" y="25"/>
<arc large-arc-flag="0" rx="17" ry="17" sweep-flag="0" x="65" x-axis-rotation="0" y="25"/>
<move x="15" y="55"/>
<arc large-arc-flag="0" rx="17" ry="17" sweep-flag="1" x="40" x-axis-rotation="0" y="55"/>
<arc large-arc-flag="0" rx="17" ry="17" sweep-flag="0" x="65" x-axis-rotation="0" y="55"/>
<move x="36" y="43"/>
<line x="42" y="37"/>
</path>
<stroke/>
</foreground>
</shape>
<shape aspect="variable" h="80" name="Block" strokewidth="inherit" w="80">
<connections>
<constraint name="in" perimeter="0" x="0" y="0.5"/>
<constraint name="out" perimeter="0" x="1" y="0.5"/>
</connections>
<background>
<rect h="80" w="80" x="0" y="0"/>
</background>
<foreground>
<fillstroke/>
</foreground>
</shape>
<shape aspect="variable" h="80" name="Block Convert" strokewidth="inherit" w="80">
<connections>
<constraint name="in" perimeter="0" x="0" y="0.5"/>
<constraint name="out" perimeter="0" x="1" y="0.5"/>
</connections>
<background>
<rect h="80" w="80" x="0" y="0"/>
</background>
<foreground>
<fillstroke/>
<path>
<move x="0" y="80"/>
<line x="80" y="0"/>
</path>
<stroke/>
</foreground>
</shape>
<shape aspect="variable" h="80" name="Circulator" strokewidth="inherit" w="80">
<connections>
<constraint name="in" perimeter="0" x="0" y="0.5"/>
<constraint name="out" perimeter="0" x="1" y="0.5"/>
</connections>
<background>
<rect h="80" w="80" x="0" y="0"/>
</background>
<foreground>
<fillstroke/>
<path>
<move x="40" y="70"/>
<arc large-arc-flag="1" rx="30" ry="30" sweep-flag="1" x="70" x-axis-rotation="0" y="40"/>
<move x="64" y="31"/>
<line x="70" y="40"/>
<line x="74" y="29"/>
</path>
<stroke/>
</foreground>
</shape>
<shape aspect="variable" h="80" name="Combine" strokewidth="inherit" w="80">
<connections>
<constraint name="in" perimeter="0" x="0" y="0.5"/>
<constraint name="out" perimeter="0" x="1" y="0.5"/>
</connections>
<background>
<rect h="80" w="80" x="0" y="0"/>
</background>
<foreground>
<fillstroke/>
<path>
<move x="25" y="10"/>
<line x="40" y="10"/>
<line x="40" y="70"/>
<line x="25" y="70"/>
<move x="25" y="30"/>
<line x="40" y="30"/>
<move x="25" y="50"/>
<line x="40" y="50"/>
<move x="40" y="40"/>
<line x="55" y="40"/>
<move x="50" y="35"/>
<line x="55" y="40"/>
<line x="50" y="45"/>
</path>
<stroke/>
</foreground>
</shape>
<shape aspect="variable" h="80" name="Corrector" strokewidth="inherit" w="80">
<connections>
<constraint name="in" perimeter="0" x="0" y="0.5"/>
<constraint name="out" perimeter="0" x="1" y="0.5"/>
</connections>
<background>
<rect h="80" w="80" x="0" y="0"/>
</background>
<foreground>
<fillstroke/>
<path>
<move x="15" y="55"/>
<line x="20" y="55"/>
<arc large-arc-flag="0" rx="4" ry="4" sweep-flag="0" x="23" x-axis-rotation="0" y="52"/>
<line x="32" y="27"/>
<arc large-arc-flag="0" rx="4" ry="4" sweep-flag="1" x="35" x-axis-rotation="0" y="25"/>
<line x="40" y="25"/>
<move x="40" y="55"/>
<line x="50" y="55"/>
<line x="50" y="25"/>
<line x="60" y="25"/>
</path>
<stroke/>
</foreground>
</shape>
<shape aspect="variable" h="85" name="DA Converter" strokewidth="inherit" w="80">
<connections>
<constraint name="in" perimeter="0" x="0" y="0.5"/>
<constraint name="out" perimeter="0" x="1" y="0.5"/>
</connections>
<background>
<rect h="80" w="80" x="0" y="5"/>
</background>
<foreground>
<fillstroke/>
<path>
<move x="0" y="85"/>
<line x="80" y="5"/>
<move x="35" y="0"/>
<line x="40" y="5"/>
<line x="35" y="10"/>
<move x="5" y="23"/>
<line x="10" y="23"/>
<line x="10" y="16"/>
<line x="17" y="16"/>
<line x="17" y="23"/>
<line x="22" y="23"/>
<line x="22" y="16"/>
<line x="29" y="16"/>
<line x="29" y="23"/>
<line x="36" y="23"/>
<line x="36" y="16"/>
<line x="43" y="16"/>
<line x="43" y="23"/>
<line x="46" y="23"/>
<move x="55" y="70"/>
<arc large-arc-flag="0" rx="5.5" ry="5.5" sweep-flag="1" x="65" x-axis-rotation="0" y="70"/>
<arc large-arc-flag="0" rx="5.5" ry="5.5" sweep-flag="0" x="75" x-axis-rotation="0" y="70"/>
</path>
<stroke/>
</foreground>
</shape>
<shape aspect="variable" h="85" name="DC-AC Converter" strokewidth="inherit" w="80">
<connections>
<constraint name="in" perimeter="0" x="0" y="0.5"/>
<constraint name="out" perimeter="0" x="1" y="0.5"/>
</connections>
<background>
<rect h="80" w="80" x="0" y="5"/>
</background>
<foreground>
<fillstroke/>
<path>
<move x="0" y="85"/>
<line x="80" y="5"/>
<move x="35" y="0"/>
<line x="40" y="5"/>
<line x="35" y="10"/>
<move x="60" y="70"/>
<arc large-arc-flag="0" rx="3" ry="3" sweep-flag="1" x="65" x-axis-rotation="0" y="70"/>
<arc large-arc-flag="0" rx="3" ry="3" sweep-flag="0" x="70" x-axis-rotation="0" y="70"/>
<move x="10" y="18.5"/>
<line x="20" y="18.5"/>
<move x="10" y="21.5"/>
<line x="12" y="21.5"/>
<move x="14" y="21.5"/>
<line x="16" y="21.5"/>
<move x="18" y="21.5"/>
<line x="20" y="21.5"/>
</path>
<stroke/>
</foreground>
</shape>
<shape aspect="variable" h="85" name="DC-DC Converter" strokewidth="inherit" w="80">
<connections>
<constraint name="in" perimeter="0" x="0" y="0.5"/>
<constraint name="out" perimeter="0" x="1" y="0.5"/>
</connections>
<background>
<rect h="80" w="80" x="0" y="5"/>
</background>
<foreground>
<fillstroke/>
<path>
<move x="0" y="85"/>
<line x="80" y="5"/>
<move x="35" y="0"/>
<line x="40" y="5"/>
<line x="35" y="10"/>
<move x="10" y="18.5"/>
<line x="20" y="18.5"/>
<move x="10" y="21.5"/>
<line x="12" y="21.5"/>
<move x="14" y="21.5"/>
<line x="16" y="21.5"/>
<move x="18" y="21.5"/>
<line x="20" y="21.5"/>
<move x="60" y="70"/>
<line x="70" y="70"/>
<move x="60" y="73"/>
<line x="62" y="73"/>
<move x="64" y="73"/>
<line x="66" y="73"/>
<move x="68" y="73"/>
<line x="70" y="73"/>
</path>
<stroke/>
</foreground>
</shape>
<shape aspect="variable" h="85" name="Decrypt" strokewidth="inherit" w="80">
<connections>
<constraint name="in" perimeter="0" x="0" y="0.5"/>
<constraint name="out" perimeter="0" x="1" y="0.5"/>
</connections>
<background>
<path>
<move x="20" y="80"/>
<line x="0" y="80"/>
<line x="0" y="0"/>
<line x="80" y="0"/>
<line x="80" y="80"/>
<line x="30" y="80"/>
</path>
</background>
<foreground>
<fillstroke/>
<path>
<move x="0" y="80"/>
<line x="80" y="0"/>
<move x="55" y="75"/>
<line x="60" y="80"/>
<line x="55" y="85"/>
<move x="18.7" y="18.7"/>
<line x="40" y="40"/>
<move x="12.7" y="52.6"/>
<line x="20" y="60"/>
<move x="10" y="40"/>
<line x="25" y="55"/>
<move x="11.2" y="31.2"/>
<line x="30" y="50"/>
<move x="14.3" y="24.4"/>
<line x="35" y="45"/>
<move x="24.5" y="14.5"/>
<line x="45" y="35"/>
<move x="40" y="10"/>
<line x="55" y="25"/>
<move x="52.9" y="13"/>
<line x="60" y="20"/>
<move x="31.4" y="11.6"/>
<line x="50" y="30"/>
</path>
<stroke/>
<ellipse h="10" w="10" x="20" y="75"/>
<fillstroke/>
<ellipse h="60" w="60" x="10" y="10"/>
<stroke/>
</foreground>
</shape>
<shape aspect="variable" h="80" name="Delay" strokewidth="inherit" w="80">
<connections>
<constraint name="in" perimeter="0" x="0" y="0.5"/>
<constraint name="out" perimeter="0" x="1" y="0.5"/>
</connections>
<background>
<rect h="80" w="80" x="0" y="0"/>
</background>
<foreground>
<fillstroke/>
<roundrect arcsize="50" h="10" w="40" x="20" y="35"/>
<stroke/>
</foreground>
</shape>
<shape aspect="variable" h="85" name="Demodulator" strokewidth="inherit" w="80">
<connections>
<constraint name="in" perimeter="0" x="0" y="0.5"/>
<constraint name="out" perimeter="0" x="1" y="0.5"/>
</connections>
<background>
<path>
<move x="25" y="80"/>
<line x="0" y="80"/>
<line x="0" y="0"/>
<line x="80" y="0"/>
<line x="80" y="80"/>
<line x="35" y="80"/>
</path>
</background>
<foreground>
<fillstroke/>
<path>
<move x="50" y="75"/>
<line x="45" y="80"/>
<line x="50" y="85"/>
<move x="0" y="80"/>
<line x="40" y="1"/>
<line x="80" y="80"/>
</path>
<stroke/>
<ellipse h="10" w="10" x="25" y="75"/>
<fillstroke/>
</foreground>
</shape>
<shape aspect="variable" h="80" name="Detector" strokewidth="inherit" w="80">
<connections>
<constraint name="in" perimeter="0" x="0" y="0.5"/>
<constraint name="out" perimeter="0" x="1" y="0.5"/>
</connections>
<background>
<rect h="80" w="80" x="0" y="0"/>
</background>
<foreground>
<fillstroke/>
<path>
<move x="10" y="40"/>
<line x="70" y="40"/>
<move x="50" y="25"/>
<line x="50" y="55"/>
<move x="30" y="25"/>
<line x="50" y="40"/>
<line x="30" y="55"/>
<close/>
</path>
<stroke/>
</foreground>
</shape>
<shape aspect="variable" h="80" name="Differential Amp" strokewidth="inherit" w="80">
<connections>
<constraint name="in" perimeter="0" x="0" y="0.5"/>
<constraint name="out" perimeter="0" x="1" y="0.5"/>
</connections>
<background>
<rect h="80" w="80" x="0" y="0"/>
</background>
<foreground>
<fillstroke/>
<path>
<move x="10" y="10"/>
<line x="70" y="40"/>
<line x="10" y="70"/>
<close/>
<move x="5" y="20"/>
<line x="10" y="20"/>
<move x="5" y="60"/>
<line x="10" y="60"/>
</path>
<fillstroke/>
</foreground>
</shape>
<shape aspect="variable" h="80" name="Diplexer" strokewidth="inherit" w="80">
<connections>
<constraint name="in1" perimeter="0" x="0" y="0.2"/>
<constraint name="in2" perimeter="0" x="0" y="0.8"/>
<constraint name="out" perimeter="0" x="1" y="0.5"/>
</connections>
<background>
<rect h="80" w="80" x="0" y="0"/>
</background>
<foreground>
<fillstroke/>
<path>
<move x="0" y="0"/>
<line x="79" y="40"/>
<line x="0" y="80"/>
</path>
<stroke/>
</foreground>
</shape>
<shape aspect="variable" h="80" name="Divide by n" strokewidth="inherit" w="80">
<connections>
<constraint name="in" perimeter="0" x="0" y="0.5"/>
<constraint name="out" perimeter="0" x="1" y="0.5"/>
</connections>
<background>
<rect h="80" w="80" x="0" y="0"/>
</background>
<foreground>
<fillstroke/>
<fontsize size="24"/>
<text align="center" str="Nf" valign="bottom" x="25" y="30"/>
<path>
<move x="0" y="80"/>
<line x="80" y="0"/>
</path>
<stroke/>
<text align="center" str="f" valign="bottom" x="55" y="70"/>
</foreground>
</shape>
<shape aspect="variable" h="80" name="Down Converter" strokewidth="inherit" w="80">
<connections>
<constraint name="in" perimeter="0" x="0" y="0.5"/>
<constraint name="out" perimeter="0" x="1" y="0.5"/>
</connections>
<background>
<rect h="80" w="80" x="0" y="0"/>
</background>
<foreground>
<fillstroke/>
<path>
<move x="30" y="25"/>
<line x="50" y="40"/>
<line x="30" y="40"/>
<close/>
<move x="10" y="40"/>
<line x="70" y="40"/>
<move x="50" y="25"/>
<line x="50" y="55"/>
</path>
<stroke/>
</foreground>
</shape>
<shape aspect="variable" h="85" name="Encrypt" strokewidth="inherit" w="80">
<connections>
<constraint name="in" perimeter="0" x="0" y="0.5"/>
<constraint name="out" perimeter="0" x="1" y="0.5"/>
</connections>
<background>
<path>
<move x="20" y="80"/>
<line x="0" y="80"/>
<line x="0" y="0"/>
<line x="80" y="0"/>
<line x="80" y="80"/>
<line x="30" y="80"/>
</path>
</background>
<foreground>
<fillstroke/>
<path>
<move x="0" y="80"/>
<line x="80" y="0"/>
<move x="55" y="75"/>
<line x="60" y="80"/>
<line x="55" y="85"/>
<move x="61.3" y="61.3"/>
<line x="40" y="40"/>
<move x="27.3" y="67.3"/>
<line x="20" y="60"/>
<move x="40" y="70"/>
<line x="25" y="55"/>
<move x="48.8" y="68.8"/>
<line x="30" y="50"/>
<move x="55.7" y="65.6"/>
<line x="35" y="45"/>
<move x="65.5" y="55.5"/>
<line x="45" y="35"/>
<move x="70" y="40"/>
<line x="55" y="25"/>
<move x="67.1" y="27"/>
<line x="60" y="20"/>
<move x="68.6" y="48.6"/>
<line x="50" y="30"/>
</path>
<stroke/>
<ellipse h="60" w="60" x="10" y="10"/>
<stroke/>
<ellipse h="10" w="10" x="20" y="75"/>
<fillstroke/>
</foreground>
</shape>
<shape aspect="variable" h="80" name="Hipass" strokewidth="inherit" w="80">
<connections>
<constraint name="in" perimeter="0" x="0" y="0.5"/>
<constraint name="out" perimeter="0" x="1" y="0.5"/>
</connections>
<background>
<rect h="80" w="80" x="0" y="0"/>
</background>
<foreground>
<fillstroke/>
<path>
<move x="15" y="50"/>
<arc large-arc-flag="0" rx="17" ry="17" sweep-flag="1" x="40" x-axis-rotation="0" y="50"/>
<arc large-arc-flag="0" rx="17" ry="17" sweep-flag="0" x="65" x-axis-rotation="0" y="50"/>
<move x="15" y="30"/>
<arc large-arc-flag="0" rx="17" ry="17" sweep-flag="1" x="40" x-axis-rotation="0" y="30"/>
<arc large-arc-flag="0" rx="17" ry="17" sweep-flag="0" x="65" x-axis-rotation="0" y="30"/>
<move x="36" y="52"/>
<line x="42" y="46"/>
</path>
<stroke/>
</foreground>
</shape>
<shape aspect="variable" h="80" name="Hybrid" strokewidth="inherit" w="90">
<connections>
<constraint name="in1" perimeter="0" x="0" y="0.375"/>
<constraint name="in2" perimeter="0" x="0" y="0.625"/>
<constraint name="out1" perimeter="0" x="1" y="0.375"/>
<constraint name="out2" perimeter="0" x="1" y="0.625"/>
</connections>
<background>
<rect h="80" w="80" x="5" y="0"/>
</background>
<foreground>
<fillstroke/>
<path>
<move x="0" y="50"/>
<line x="35" y="50"/>
<line x="55" y="30"/>
<line x="90" y="30"/>
<move x="0" y="30"/>
<line x="35" y="30"/>
<line x="55" y="50"/>
<line x="90" y="50"/>
</path>
<stroke/>
</foreground>
</shape>
<shape aspect="variable" h="80" name="Limiter" strokewidth="inherit" w="80">
<connections>
<constraint name="in" perimeter="0" x="0" y="0.5"/>
<constraint name="out" perimeter="0" x="1" y="0.5"/>
</connections>
<background>
<rect h="80" w="80" x="0" y="0"/>
</background>
<foreground>
<fillstroke/>
<path>
<move x="15" y="48.5"/>
<line x="23.5" y="31.5"/>
<line x="32" y="48.5"/>
<close/>
<move x="23.5" y="31.5"/>
<line x="23.5" y="20"/>
<line x="56.5" y="20"/>
<line x="56.5" y="31.5"/>
<move x="23.5" y="48.5"/>
<line x="23.5" y="60"/>
<line x="56.5" y="60"/>
<line x="56.5" y="48.5"/>
<move x="40" y="10"/>
<line x="40" y="20"/>
<move x="40" y="60"/>
<line x="40" y="70"/>
<move x="48" y="31.5"/>
<line x="56.5" y="48.5"/>
<line x="65" y="31.5"/>
<close/>
<move x="15" y="31.2"/>
<line x="32" y="31.5"/>
<move x="48" y="48.5"/>
<line x="65" y="48.5"/>
</path>
<stroke/>
</foreground>
</shape>
<shape aspect="variable" h="80" name="Lopass" strokewidth="inherit" w="80">
<connections>
<constraint name="in" perimeter="0" x="0" y="0.5"/>
<constraint name="out" perimeter="0" x="1" y="0.5"/>
</connections>
<background>
<rect h="80" w="80" x="0" y="0"/>
</background>
<foreground>
<fillstroke/>
<path>
<move x="15" y="50"/>
<arc large-arc-flag="0" rx="17" ry="17" sweep-flag="1" x="40" x-axis-rotation="0" y="50"/>
<arc large-arc-flag="0" rx="17" ry="17" sweep-flag="0" x="65" x-axis-rotation="0" y="50"/>
<move x="15" y="30"/>
<arc large-arc-flag="0" rx="17" ry="17" sweep-flag="1" x="40" x-axis-rotation="0" y="30"/>
<arc large-arc-flag="0" rx="17" ry="17" sweep-flag="0" x="65" x-axis-rotation="0" y="30"/>
<move x="36" y="32"/>
<line x="42" y="26"/>
</path>
<stroke/>
</foreground>
</shape>
<shape aspect="variable" h="80" name="Mixer 1" strokewidth="inherit" w="80">
<connections>
<constraint name="in" perimeter="0" x="0" y="0.5"/>
<constraint name="out" perimeter="0" x="1" y="0.5"/>
</connections>
<background>
<rect h="80" w="80" x="0" y="0"/>
</background>
<foreground>
<fillstroke/>
<path>
<move x="0" y="80"/>
<line x="80" y="0"/>
<move x="0" y="0"/>
<line x="80" y="80"/>
</path>
<stroke/>
</foreground>
</shape>
<shape aspect="variable" h="80" name="Mixer 2" strokewidth="inherit" w="80">
<connections>
<constraint name="in" perimeter="0" x="0" y="0.5"/>
<constraint name="out" perimeter="0" x="1" y="0.5"/>
</connections>
<background>
<rect h="80" w="80" x="0" y="0"/>
</background>
<foreground>
<fillstroke/>
<path>
<move x="0" y="80"/>
<line x="40" y="1"/>
<line x="80" y="80"/>
</path>
<stroke/>
</foreground>
</shape>
<shape aspect="variable" h="85" name="Modem" strokewidth="inherit" w="80">
<connections>
<constraint name="in" perimeter="0" x="0" y="0.5"/>
<constraint name="out" perimeter="0" x="1" y="0.5"/>
</connections>
<background>
<rect h="80" w="80" x="0" y="0"/>
</background>
<foreground>
<fillstroke/>
<path>
<move x="50" y="75"/>
<line x="45" y="80"/>
<line x="50" y="85"/>
<move x="0" y="80"/>
<line x="40" y="1"/>
<line x="80" y="80"/>
<move x="30" y="75"/>
<line x="35" y="80"/>
<line x="30" y="85"/>
</path>
<stroke/>
</foreground>
</shape>
<shape aspect="variable" h="85" name="Modulator" strokewidth="inherit" w="80">
<connections>
<constraint name="in" perimeter="0" x="0" y="0.5"/>
<constraint name="out" perimeter="0" x="1" y="0.5"/>
</connections>
<background>
<path>
<move x="25" y="80"/>
<line x="0" y="80"/>
<line x="0" y="0"/>
<line x="80" y="0"/>
<line x="80" y="80"/>
<line x="35" y="80"/>
</path>
</background>
<foreground>
<fillstroke/>
<ellipse h="10" w="10" x="25" y="75"/>
<fillstroke/>
<path>
<move x="45" y="75"/>
<line x="50" y="80"/>
<line x="45" y="85"/>
<move x="0" y="80"/>
<line x="40" y="1"/>
<line x="80" y="80"/>
</path>
<stroke/>
</foreground>
</shape>
<shape aspect="variable" h="80" name="Oscilloscope" strokewidth="inherit" w="80">
<connections>
<constraint name="in" perimeter="0" x="0" y="0.5"/>
<constraint name="out" perimeter="0" x="1" y="0.5"/>
</connections>
<background>
<rect h="80" w="80" x="0" y="0"/>
</background>
<foreground>
<fillstroke/>
<path>
<move x="20" y="40"/>
<arc large-arc-flag="0" rx="12" ry="12" sweep-flag="1" x="40" x-axis-rotation="0" y="40"/>
<arc large-arc-flag="0" rx="12" ry="12" sweep-flag="0" x="60" x-axis-rotation="0" y="40"/>
</path>
<stroke/>
<ellipse h="60" w="60" x="10" y="10"/>
<stroke/>
</foreground>
</shape>
<shape aspect="variable" h="80" name="Phase Detector" strokewidth="inherit" w="80">
<connections>
<constraint name="in" perimeter="0" x="0" y="0.5"/>
<constraint name="out" perimeter="0" x="1" y="0.5"/>
</connections>
<background>
<rect h="80" w="80" x="0" y="0"/>
</background>
<foreground>
<fillstroke/>
<path>
<move x="40" y="50"/>
<line x="40" y="30"/>
<arc large-arc-flag="1" rx="4" ry="8" sweep-flag="1" x="45" x-axis-rotation="0" y="38"/>
<arc large-arc-flag="0" rx="8" ry="8" sweep-flag="1" x="36" x-axis-rotation="0" y="38"/>
<arc large-arc-flag="0" rx="20" ry="8" sweep-flag="1" x="37" x-axis-rotation="15" y="27"/>
</path>
<stroke/>
</foreground>
</shape>
<shape aspect="variable" h="80" name="Process" strokewidth="inherit" w="80">
<connections>
<constraint name="in" perimeter="0" x="0" y="0.5"/>
<constraint name="out" perimeter="0" x="1" y="0.5"/>
</connections>
<background>
<rect h="80" w="80" x="0" y="0"/>
</background>
<foreground>
<fillstroke/>
<path>
<move x="20" y="20"/>
<arc large-arc-flag="0" rx="40" ry="40" sweep-flag="0" x="20" x-axis-rotation="0" y="60"/>
<move x="0" y="40"/>
<line x="15" y="40"/>
<move x="80" y="40"/>
<line x="65" y="40"/>
<move x="60" y="20"/>
<arc large-arc-flag="0" rx="40" ry="40" sweep-flag="1" x="60" x-axis-rotation="0" y="60"/>
</path>
<stroke/>
</foreground>
</shape>
<shape aspect="variable" h="80" name="Pulse" strokewidth="inherit" w="80">
<connections>
<constraint name="in" perimeter="0" x="0" y="0.5"/>
<constraint name="out" perimeter="0" x="1" y="0.5"/>
</connections>
<background>
<rect h="80" w="80" x="0" y="0"/>
</background>
<foreground>
<fillstroke/>
<path>
<move x="25" y="50"/>
<line x="35" y="50"/>
<line x="35" y="25"/>
<line x="45" y="25"/>
<line x="45" y="50"/>
<line x="55" y="50"/>
</path>
<stroke/>
</foreground>
</shape>
<shape aspect="variable" h="80" name="Sampler" strokewidth="inherit" w="80">
<connections>
<constraint name="in" perimeter="0" x="0" y="0.5"/>
<constraint name="out" perimeter="0" x="1" y="0.5"/>
</connections>
<background>
<rect h="80" w="80" x="0" y="0"/>
</background>
<foreground>
<fillstroke/>
<path>
<move x="10" y="20"/>
<arc large-arc-flag="0" rx="15" ry="50" sweep-flag="1" x="30" x-axis-rotation="0" y="20"/>
<move x="0" y="80"/>
<line x="80" y="0"/>
<move x="50" y="70"/>
<line x="70" y="70"/>
<move x="60" y="70"/>
<line x="60" y="57.4"/>
<move x="57" y="70"/>
<line x="57" y="58.3"/>
<move x="54" y="70"/>
<line x="54" y="61.5"/>
<move x="63" y="70"/>
<line x="63" y="58.3"/>
<move x="66" y="70"/>
<line x="66" y="61.5"/>
<move x="51" y="70"/>
<line x="51" y="67.5"/>
<move x="69" y="70"/>
<line x="69" y="67.5"/>
</path>
<stroke/>
</foreground>
</shape>
<shape aspect="variable" h="80" name="Splitter" strokewidth="inherit" w="80">
<connections>
<constraint name="in" perimeter="0" x="0" y="0.5"/>
<constraint name="out" perimeter="0" x="1" y="0.5"/>
</connections>
<background>
<rect h="80" w="80" x="0" y="0"/>
</background>
<foreground>
<fillstroke/>
<path>
<move x="55" y="10"/>
<line x="40" y="10"/>
<line x="40" y="70"/>
<line x="55" y="70"/>
<move x="55" y="30"/>
<line x="40" y="30"/>
<move x="55" y="50"/>
<line x="40" y="50"/>
<move x="25" y="40"/>
<line x="39" y="40"/>
<move x="35" y="35"/>
<line x="39" y="40"/>
<line x="35" y="45"/>
</path>
<stroke/>
</foreground>
</shape>
<shape aspect="variable" h="80" name="Square-up" strokewidth="inherit" w="80">
<connections>
<constraint name="in" perimeter="0" x="0" y="0.5"/>
<constraint name="out" perimeter="0" x="1" y="0.5"/>
</connections>
<background>
<rect h="80" w="80" x="0" y="0"/>
</background>
<foreground>
<fillstroke/>
<path>
<move x="30" y="55"/>
<line x="40" y="55"/>
<line x="40" y="25"/>
<line x="50" y="25"/>
</path>
<stroke/>
</foreground>
</shape>
<shape aspect="variable" h="60" name="Step" strokewidth="inherit" w="55">
<connections/>
<background>
<path>
<move x="0" y="60"/>
<line x="40" y="0"/>
<line x="55" y="0"/>
</path>
</background>
<foreground>
<stroke/>
</foreground>
</shape>
<shape aspect="variable" h="80" name="Transformer" strokewidth="inherit" w="80">
<connections>
<constraint name="in" perimeter="0" x="0" y="0.5"/>
<constraint name="out" perimeter="0" x="1" y="0.5"/>
</connections>
<background>
<rect h="80" w="80" x="0" y="0"/>
</background>
<foreground>
<fillstroke/>
<linejoin join="round"/>
<path>
<move x="15" y="10"/>
<line x="30" y="10"/>
<arc large-arc-flag="0" rx="5" ry="5" sweep-flag="1" x="30" x-axis-rotation="0" y="25"/>
<arc large-arc-flag="0" rx="5" ry="5" sweep-flag="1" x="30" x-axis-rotation="0" y="40"/>
<arc large-arc-flag="0" rx="5" ry="5" sweep-flag="1" x="30" x-axis-rotation="0" y="55"/>
<arc large-arc-flag="0" rx="5" ry="5" sweep-flag="1" x="30" x-axis-rotation="0" y="70"/>
<line x="15" y="70"/>
<move x="65" y="10"/>
<line x="50" y="10"/>
<arc large-arc-flag="0" rx="5" ry="5" sweep-flag="0" x="50" x-axis-rotation="0" y="25"/>
<arc large-arc-flag="0" rx="5" ry="5" sweep-flag="0" x="50" x-axis-rotation="0" y="40"/>
<arc large-arc-flag="0" rx="5" ry="5" sweep-flag="0" x="50" x-axis-rotation="0" y="55"/>
<arc large-arc-flag="0" rx="5" ry="5" sweep-flag="0" x="50" x-axis-rotation="0" y="70"/>
<line x="65" y="70"/>
</path>
<stroke/>
</foreground>
</shape>
<shape aspect="variable" h="65.5" name="Trim" strokewidth="inherit" w="48.2">
<connections/>
<background>
<path>
<move x="0" y="65.5"/>
<line x="40" y="5.5"/>
<move x="32.2" y="0"/>
<line x="48.2" y="10.5"/>
</path>
</background>
<foreground>
<stroke/>
</foreground>
</shape>
<shape aspect="variable" h="80" name="Up converter" strokewidth="inherit" w="80">
<connections>
<constraint name="in" perimeter="0" x="0" y="0.5"/>
<constraint name="out" perimeter="0" x="1" y="0.5"/>
</connections>
<background>
<rect h="80" w="80" x="0" y="0"/>
</background>
<foreground>
<fillstroke/>
<path>
<move x="50" y="25"/>
<line x="50" y="40"/>
<line x="30" y="40"/>
<close/>
<move x="10" y="40"/>
<line x="70" y="40"/>
<move x="30" y="25"/>
<line x="30" y="55"/>
</path>
<stroke/>
</foreground>
</shape>
<shape aspect="variable" h="60" name="Var" strokewidth="inherit" w="40">
<connections/>
<background>
<path>
<move x="0" y="60"/>
<line x="40" y="0"/>
<move x="27" y="10"/>
<line x="40" y="0"/>
<line x="36.5" y="15.5"/>
</path>
</background>
<foreground>
<stroke/>
</foreground>
</shape>
</shapes>
``` | /content/code_sandbox/src/main/webapp/stencils/electrical/iec417.xml | xml | 2016-09-06T12:59:15 | 2024-08-16T13:28:41 | drawio | jgraph/drawio | 40,265 | 13,613 |
```xml
import { S3 } from '@aws-sdk/client-s3';
import { Command } from '@expo/commander';
import chalk from 'chalk';
import fs from 'fs-extra';
import inquirer from 'inquirer';
import path from 'path';
import { EXPO_DIR } from '../Constants';
import { link } from '../Formatter';
import Git from '../Git';
import logger from '../Logger';
import { getNewestSDKVersionAsync } from '../ProjectVersions';
import { modifySdkVersionsAsync, getSdkVersionsAsync } from '../Versions';
import AndroidClientBuilder from '../client-build/AndroidClientBuilder';
import IosClientBuilder from '../client-build/IosClientBuilder';
import { ClientBuilder, ClientBuildFlavor, Platform } from '../client-build/types';
import askForPlatformAsync from '../utils/askForPlatformAsync';
import askForSdkVersionAsync from '../utils/askForSDKVersionAsync';
const s3Client = new S3({ region: 'us-east-1' });
const { yellow, blue, magenta } = chalk;
type ActionOptions = {
platform?: Platform;
release: boolean;
flavor: ClientBuildFlavor;
};
const flavors = ['versioned', 'unversioned'];
export default (program: Command) => {
program
.command('client-build')
.alias('cb')
.description(
'Builds Expo client for iOS simulator or APK for Android, uploads the archive to S3 and saves its url to versions endpoint.'
)
.option('-p, --platform [string]', 'Platform for which the client will be built.')
.option(
'-r, --release',
'Whether to upload and release the client build to staging versions endpoint.',
false
)
.option(
'-f, --flavor [string]',
`Which build flavor to use. Possible values: ${flavors}`,
flavors[0]
)
.asyncAction(main);
};
async function main(options: ActionOptions) {
const platform = options.platform || (await askForPlatformAsync());
const sdkBranchVersion = await Git.getSDKVersionFromBranchNameAsync();
if (options.release && !sdkBranchVersion) {
throw new Error(`Client builds can be released only from the release branch!`);
}
if (!Object.values(ClientBuildFlavor).includes(options.flavor)) {
throw new Error(`Flavor "${options.flavor}" is not valid, use one of: ${flavors}`);
}
const builder = getBuilderForPlatform(platform);
const sdkVersion =
sdkBranchVersion ||
(await askForSdkVersionAsync(platform, await getNewestSDKVersionAsync(platform)));
const appVersion = await builder.getAppVersionAsync();
await buildOrUseCacheAsync(builder, options.flavor);
if (sdkVersion && options.release) {
await uploadAsync(builder, sdkVersion, appVersion);
await releaseAsync(builder, sdkVersion, appVersion);
}
}
function getBuilderForPlatform(platform: Platform): ClientBuilder {
switch (platform) {
case 'ios':
return new IosClientBuilder();
case 'android':
return new AndroidClientBuilder();
default: {
throw new Error(`Platform "${platform}" is not supported yet!`);
}
}
}
async function askToRecreateSimulatorBuildAsync(): Promise<boolean> {
if (process.env.CI) {
return false;
}
const { createNew } = await inquirer.prompt<{ createNew: boolean }>([
{
type: 'confirm',
name: 'createNew',
message: 'Do you want to create a fresh one?',
default: true,
},
]);
return createNew;
}
async function askToOverrideBuildAsync(): Promise<boolean> {
if (process.env.CI) {
// we should never override anything in CI, too easy to accidentally mess something up in prod
return false;
}
const { override } = await inquirer.prompt<{ override: boolean }>([
{
type: 'confirm',
name: 'override',
message: 'Do you want to override it?',
default: true,
},
]);
return override;
}
async function buildOrUseCacheAsync(
builder: ClientBuilder,
flavor: ClientBuildFlavor
): Promise<void> {
const appPath = builder.getAppPath();
// Build directory already exists, we could reuse that one especially useful on the CI.
if (await fs.pathExists(appPath)) {
const relativeAppPath = path.relative(EXPO_DIR, appPath);
logger.info(`Client build already exists at ${magenta.bold(relativeAppPath)}`);
if (!(await askToRecreateSimulatorBuildAsync())) {
logger.info('Skipped building the app, using cached build instead...');
return;
}
}
await builder.buildAsync(flavor);
}
async function uploadAsync(
builder: ClientBuilder,
sdkVersion: string,
appVersion: string
): Promise<void> {
const sdkVersions = await getSdkVersionsAsync(sdkVersion);
// Target app url already defined in versions endpoint.
// We make this check to reduce the risk of unintentional overrides.
if (sdkVersions?.[`${builder.platform}ClientUrl`] === builder.getClientUrl(appVersion)) {
logger.info(`Build ${yellow.bold(appVersion)} is already defined in versions endpoint.`);
logger.info('The new build would be uploaded onto the same URL.');
if (!(await askToOverrideBuildAsync())) {
logger.warn('Refused overriding the build, exiting the proces...');
process.exit(0);
return;
}
}
logger.info(`Uploading ${yellow.bold(appVersion)} build`);
await builder.uploadBuildAsync(s3Client, appVersion);
}
async function releaseAsync(
builder: ClientBuilder,
sdkVersion: string,
appVersion: string
): Promise<void> {
const clientUrl = builder.getClientUrl(appVersion);
logger.info(
`Updating versions endpoint with client url ${blue.bold(link(clientUrl, clientUrl))}`
);
await updateClientUrlAndVersionAsync(builder, sdkVersion, appVersion);
}
async function updateClientUrlAndVersionAsync(
builder: ClientBuilder,
sdkVersion: string,
appVersion: string
) {
await modifySdkVersionsAsync(sdkVersion, (sdkVersions) => {
sdkVersions[`${builder.platform}ClientUrl`] = builder.getClientUrl(appVersion);
sdkVersions[`${builder.platform}ClientVersion`] = appVersion;
return sdkVersions;
});
}
``` | /content/code_sandbox/tools/src/commands/ClientBuild.ts | xml | 2016-08-15T17:14:25 | 2024-08-16T19:54:44 | expo | expo/expo | 32,004 | 1,380 |
```xml
<vector xmlns:android="path_to_url"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:pathData="M4,2C2.343,2 1,3.343 1,5V19C1,20.657 2.343,22 4,22H20C21.657,22 23,20.657 23,19V7C23,5.343 21.657,4 20,4H13.828C13.298,4 12.789,3.789 12.414,3.414L11.586,2.586C11.211,2.211 10.702,2 10.172,2H4ZM4,6C3.448,6 3,6.448 3,7V19C3,19.552 3.448,20 4,20H20C20.552,20 21,19.552 21,19V7C21,6.448 20.552,6 20,6H4Z"
android:fillColor="#303233"
android:fillType="evenOdd"/>
</vector>
``` | /content/code_sandbox/icon-pack/src/main/res/drawable/ic_folder_medium_regular_outline.xml | xml | 2016-05-04T11:46:20 | 2024-08-15T16:29:10 | android | meganz/android | 1,537 | 280 |
```xml
Version 2.0, January 2004
path_to_url
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
(b) You must cause any modified files to carry prominent notices stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
END OF TERMS AND CONDITIONS
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.
--><LWM2M xmlns:xsi="path_to_url" xsi:noNamespaceSchemaLocation="path_to_url">
<Object ObjectType="MODefinition">
<Name>SipRegistrationEvent</Name>
<Description1><![CDATA[SIP Registration status]]></Description1>
<ObjectID>3382</ObjectID>
<ObjectURN>urn:oma:lwm2m:ext:3382</ObjectURN>
<LWM2MVersion>1.0</LWM2MVersion>
<ObjectVersion>1.0</ObjectVersion>
<MultipleInstances>Single</MultipleInstances>
<Mandatory>Optional</Mandatory>
<Resources>
<Item ID="0"><Name>registrationType</Name>
<Operations>R</Operations>
<MultipleInstances>Single</MultipleInstances>
<Mandatory>Mandatory</Mandatory>
<Type>Integer</Type>
<RangeEnumeration></RangeEnumeration>
<Units></Units>
<Description><![CDATA[1 = Normal
2 = Emergency]]></Description>
</Item>
<Item ID="1"><Name>registrationResult</Name>
<Operations>R</Operations>
<MultipleInstances>Single</MultipleInstances>
<Mandatory>Mandatory</Mandatory>
<Type>Integer</Type>
<RangeEnumeration></RangeEnumeration>
<Units></Units>
<Description><![CDATA[0 = Success (when 200 OK is received)
1 = Failure (when any error other than 401 is received, else when 408 timeout occurs)]]></Description>
</Item>
</Resources>
<Description2 />
</Object>
</LWM2M>
``` | /content/code_sandbox/application/src/main/data/lwm2m-registry/3382.xml | xml | 2016-12-01T09:33:30 | 2024-08-16T19:58:25 | thingsboard | thingsboard/thingsboard | 16,820 | 923 |
```xml
import { FluentDesignSystem } from '../fluent-design-system.js';
import { Badge } from './badge.js';
import { styles } from './badge.styles.js';
import { template } from './badge.template.js';
/**
*
* @public
* @remarks
* HTML Element: \<fluent-badge\>
*/
export const definition = Badge.compose({
name: `${FluentDesignSystem.prefix}-badge`,
template,
styles,
});
``` | /content/code_sandbox/packages/web-components/src/badge/badge.definition.ts | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 91 |
```xml
/** @ignore */
export * from './Ix.js';
export type {
ReadableBYOBStreamOptions,
ReadableByteStreamOptions,
} from './asynciterable/todomstream.js';
export {
fromDOMStream,
AsyncIterableReadableStream,
AsyncIterableReadableByteStream,
} from './asynciterable/fromdomstream.js';
``` | /content/code_sandbox/src/dom.ts | xml | 2016-02-22T20:04:19 | 2024-08-09T18:46:41 | IxJS | ReactiveX/IxJS | 1,319 | 72 |
```xml
import * as React from 'react';
import { Dropdown, Label, makeStyles, Option, useId } from '@fluentui/react-components';
const useStyles = makeStyles({
root: {
display: 'grid',
gridTemplateRows: 'repeat(1fr)',
justifyItems: 'start',
gap: '2px',
maxWidth: '400px',
},
});
export const Clearable = () => {
const dropdownId = useId('');
const styles = useStyles();
return (
<div className={styles.root}>
<Label id={dropdownId}>Pick a color</Label>
<Dropdown clearable aria-labelledby={dropdownId} placeholder="Select a color">
<Option>Red</Option>
<Option>Green</Option>
<Option>Blue</Option>
</Dropdown>
</div>
);
};
Clearable.parameters = {
docs: {
description: {
story:
'A Dropdown can be clearable and let users remove their selection. Note: this is not supported in multiselect mode yet.',
},
},
};
``` | /content/code_sandbox/packages/react-components/react-combobox/stories/src/Dropdown/DropdownClearable.stories.tsx | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 227 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="path_to_url">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{848B3918-CCFC-47CA-92EF-763C75EFD16D}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>CustomActions.Tests</RootNamespace>
<AssemblyName>CustomActions.Tests</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<DebugSymbols>true</DebugSymbols>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>x64</PlatformTarget>
<LangVersion>latest</LangVersion>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<DebugSymbols>true</DebugSymbols>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x64</PlatformTarget>
<LangVersion>latest</LangVersion>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup>
<AutoGenerateBindingRedirects>false</AutoGenerateBindingRedirects>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.Deployment.WindowsInstaller, Version=3.0.0.0, Culture=neutral, PublicKeyToken=ce35f76fcda82bad, processorArchitecture=MSIL" />
<Reference Include="System" />
<Reference Include="System.ComponentModel.Composition" />
<Reference Include="System.ComponentModel.DataAnnotations" />
<Reference Include="System.Configuration" />
<Reference Include="System.Core" />
<Reference Include="System.DirectoryServices" />
<Reference Include="System.ServiceProcess" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="APM\ApmConfigTests.cs" />
<Compile Include="InstallState\InstallStateTests.cs" />
<Compile Include="InstallState\InstallStateTestSetup.cs" />
<Compile Include="ProcessUserCustomActions\BaseProcessUserCustomActionsDomainTests.cs" />
<Compile Include="Flare\FlareUnitTests.cs" />
<Compile Include="IntegrationTests\TestConfig.cs" />
<Compile Include="Logs\ProcessConfigTests.cs" />
<Compile Include="ProcessUserCustomActions\TestDelegate.cs" />
<Compile Include="Process\ProcessConfigTests.cs" />
<Compile Include="Proxy\ProcessConfigTests.cs" />
<Compile Include="Telemetry\TelemetryUnitTests.cs" />
<Compile Include="SessionTestBaseSetup.cs" />
<Compile Include="ProcessUserCustomActions\ProcessUserCustomActionsDomainClientTests.cs" />
<Compile Include="ProcessUserCustomActions\ProcessUserCustomActionsDomainControllerTests.cs" />
<Compile Include="ProcessUserCustomActions\ProcessUserCustomActionsTestSetup.cs" />
<Compile Include="ProcessUserCustomActions\UserCustomActionsTests.cs" />
<Compile Include="WriteConfigUnitTests.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="YamlAssertions\YamlAssertionsTests.cs" />
<Compile Include="Helpers\YamlAssertions.cs" />
<Compile Include="Helpers\YamlAssertionsExtensions.cs" />
<Compile Include="Helpers\YamlExpectationsExtensions.cs" />
<Compile Include="Helpers\YamlExtensions.cs" />
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
<None Include="xunit.runner.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\CustomActions\CustomActions.csproj">
<Project>{461CE844-4B07-47BA-B2D2-5415ABD36792}</Project>
<Name>CustomActions</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<PackageReference Include="AutoFixture.Xunit2">
<Version>4.18.0</Version>
</PackageReference>
<PackageReference Include="Fare">
<Version>2.2.1</Version>
</PackageReference>
<PackageReference Include="FluentAssertions">
<Version>6.10.0</Version>
</PackageReference>
<PackageReference Include="Moq">
<Version>4.18.4</Version>
</PackageReference>
<PackageReference Include="more.xunit.runner.visualstudio">
<Version>2.3.1</Version>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="System.Net.Http">
<Version>4.3.4</Version>
</PackageReference>
<PackageReference Include="System.Runtime">
<Version>4.3.1</Version>
</PackageReference>
<PackageReference Include="System.Runtime.CompilerServices.Unsafe">
<Version>6.0.0</Version>
</PackageReference>
<PackageReference Include="System.Security.Cryptography.Algorithms">
<Version>4.3.1</Version>
</PackageReference>
<PackageReference Include="System.Security.Cryptography.X509Certificates">
<Version>4.3.2</Version>
</PackageReference>
<PackageReference Include="WixSharp.bin">
<Version>1.20.3</Version>
</PackageReference>
<PackageReference Include="xunit">
<Version>2.4.2</Version>
</PackageReference>
<PackageReference Include="xunit.analyzers">
<Version>1.1.0</Version>
</PackageReference>
<PackageReference Include="YamlDotNet">
<Version>13.0.1</Version>
</PackageReference>
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
``` | /content/code_sandbox/tools/windows/DatadogAgentInstaller/CustomActions.Tests/CustomActions.Tests.csproj | xml | 2016-01-19T17:40:41 | 2024-08-16T08:20:22 | datadog-agent | DataDog/datadog-agent | 2,766 | 1,727 |
```xml
// your-component.stories.ts
import {
Args,
Meta,
StoryObj,
componentWrapperDecorator,
moduleMetadata,
} from '@storybook/angular';
import ChildComponent from './child.component';
import ParentComponent from './parent.component';
const meta: Meta<ChildComponent> = {
// title: 'Core / Decorators / ComponentWrapperDecorator',
component: ChildComponent,
decorators: [
componentWrapperDecorator(
(story) => `Grandparent<br><div style="margin: 3em; border:solid;">${story}</div>`
),
],
args: { childText: 'Child text', childPrivateText: 'Child private text' },
argTypes: { onClickChild: { action: 'onClickChild' } },
};
export default meta;
type Story = StoryObj<ChildComponent>;
export const WithTemplate: Story = {
render: (args: Args) => ({
template: `Child Template`,
props: args,
}),
};
export const WithComponent: Story = {};
export const WithLegacyComponent: Story = {
render: (args: Args) => ({
component: ChildComponent,
props: args,
}),
};
export const WithComponentWrapperDecorator: Story = {
render: (args: Args) => ({
component: ChildComponent,
props: args,
}),
decorators: [
moduleMetadata({ declarations: [ParentComponent] }),
componentWrapperDecorator(ParentComponent),
],
};
export const WithComponentWrapperDecoratorAndProps: Story = {
render: (args: Args) => ({
component: ChildComponent,
props: {
...args,
},
}),
decorators: [
moduleMetadata({ declarations: [ParentComponent] }),
componentWrapperDecorator(ParentComponent, {
parentText: 'Parent text',
onClickParent: () => {
console.log('onClickParent');
},
}),
],
};
export const WithComponentWrapperDecoratorAndArgs: StoryObj<{
parentText: string;
onClickParent: () => void;
}> = {
render: (args: Args) => ({
component: ChildComponent,
props: {
...args,
},
}),
argTypes: {
parentText: { control: { type: 'text' } },
onClickParent: { action: 'onClickParent' },
},
decorators: [
moduleMetadata({ declarations: [ParentComponent] }),
componentWrapperDecorator(ParentComponent, ({ args }) => ({
parentText: args.parentText,
onClickParent: args.onClickParent,
})),
],
};
export const WithCustomDecorator = (args: Args) => ({
template: `Child Template`,
props: {
...args,
},
});
WithCustomDecorator.decorators = [
(storyFunc) => {
const story = storyFunc();
return {
...story,
template: `Custom Decorator <div style="margin: 3em">${story.template}</div>`,
};
},
] as Story['decorators'];
``` | /content/code_sandbox/code/frameworks/angular/template/stories/core/decorators/componentWrapperDecorator/decorators.stories.ts | xml | 2016-03-18T04:23:44 | 2024-08-16T19:22:08 | storybook | storybookjs/storybook | 83,755 | 631 |
```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>14E46</string>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>ACPIBacklight</string>
<key>CFBundleIdentifier</key>
<string>com.darwin.driver.ACPIBacklight</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>ACPIBacklight</string>
<key>CFBundlePackageType</key>
<string>KEXT</string>
<key>CFBundleShortVersionString</key>
<string>3.0.1d2</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>3.0.1d2</string>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
<string>6E35b</string>
<key>DTPlatformVersion</key>
<string>GM</string>
<key>DTSDKBuild</key>
<string>12D75</string>
<key>DTSDKName</key>
<string>macosx10.8</string>
<key>DTXcode</key>
<string>0640</string>
<key>DTXcodeBuild</key>
<string>6E35b</string>
<key>IOKitPersonalities</key>
<dict>
<key>ACPIBacklight</key>
<dict>
<key>BQC use index</key>
<false/>
<key>CFBundleIdentifier</key>
<string>com.darwin.driver.ACPIBacklight</string>
<key>IOClass</key>
<string>ACPIBacklightPanel</string>
<key>IODisplayParameters</key>
<dict>
<key>brightness</key>
<dict>
<key>max</key>
<integer>100</integer>
<key>min</key>
<integer>0</integer>
</dict>
<key>commit</key>
<dict>
<key>reg</key>
<integer>0</integer>
</dict>
</dict>
<key>IOMatchCategory</key>
<string>IODisplayParameters</string>
<key>IONameMatch</key>
<string>backlight</string>
<key>IOProbeScore</key>
<integer>3000</integer>
<key>IOProviderClass</key>
<string>IOACPIPlatformDevice</string>
<key>RM,Build</key>
<string>Release-RehabMan</string>
<key>RM,Version</key>
<string>ACPIBacklight 3.0.1d2</string>
</dict>
<key>Haswell Broadwell Handler</key>
<dict>
<key>CFBundleIdentifier</key>
<string>com.darwin.driver.ACPIBacklight</string>
<key>IOClass</key>
<string>IntelBacklightHandler</string>
<key>IOMatchCategory</key>
<string>IntelBacklightHandler</string>
<key>IOPCIPrimaryMatch</key>
<string>0x04128086 0x04168086 0x0a168086 0x0a1e8086 0x041e8086 0x041a8086 0x0BD18086 0x0BD28086 0x0BD38086 0x16068086 0x160e8086 0x16168086 0x161e8086 0x16268086 0x16228086 0x16128086 0x162b8086</string>
<key>IOProbeScore</key>
<integer>4000</integer>
<key>IOProviderClass</key>
<string>IOPCIDevice</string>
<key>RM,Build</key>
<string>Release-RehabMan</string>
<key>RM,Version</key>
<string>ACPIBacklight 3.0.1d2</string>
<key>kFrameBufferType</key>
<integer>2</integer>
</dict>
<key>Sandy Ivy HD Handler</key>
<dict>
<key>CFBundleIdentifier</key>
<string>com.darwin.driver.ACPIBacklight</string>
<key>IOClass</key>
<string>IntelBacklightHandler</string>
<key>IOMatchCategory</key>
<string>IntelBacklightHandler</string>
<key>IOPCIPrimaryMatch</key>
<string>0x01168086 0x01268086 0x01668086 0x00428086 0x00468086</string>
<key>IOProbeScore</key>
<integer>4000</integer>
<key>IOProviderClass</key>
<string>IOPCIDevice</string>
<key>RM,Build</key>
<string>Release-RehabMan</string>
<key>RM,Version</key>
<string>ACPIBacklight 3.0.1d2</string>
<key>kFrameBufferType</key>
<integer>1</integer>
</dict>
</dict>
<key>OSBundleLibraries</key>
<dict>
<key>com.apple.iokit.IOACPIFamily</key>
<string>1.0d1</string>
<key>com.apple.iokit.IOGraphicsFamily</key>
<string>1.0b1</string>
<key>com.apple.iokit.IOPCIFamily</key>
<string>1.7</string>
<key>com.apple.kpi.iokit</key>
<string>7.0</string>
<key>com.apple.kpi.libkern</key>
<string>8.0d0</string>
</dict>
<key>Source Code</key>
<string>path_to_url
</dict>
</plist>
``` | /content/code_sandbox/Clover-Configs/Acer/E1-572G/CLOVER/kexts/10.12/ACPIBacklight.kext/Contents/Info.plist | xml | 2016-11-05T04:22:54 | 2024-08-12T19:25:53 | Hackintosh-Installer-University | huangyz0918/Hackintosh-Installer-University | 3,937 | 1,526 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<Behavior Version="5">
<Node Class="Behaviac.Design.Nodes.Behavior" AgentType="AgentNodeTest" Domains="" Enable="true" HasOwnPrefabData="false" Id="-1" PrefabName="" PrefabNodeId="-1">
<Comment Background="NoColor" Text="" />
<Parameters>
<Parameter Name="l_IntVar" Type="System.Int32" DefaultValue="0" DisplayName="l_IntVar" Desc="l_IntVar" Display="true" />
</Parameters>
<DescriptorRefs value="0:" />
<Connector Identifier="GenericChildren">
<Node Class="PluginBehaviac.Nodes.Sequence" Enable="true" HasOwnPrefabData="false" Id="4" PrefabName="" PrefabNodeId="-1">
<Comment Background="NoColor" Text="" />
<Connector Identifier="GenericChildren">
<Node Class="PluginBehaviac.Nodes.Assignment" Enable="true" HasOwnPrefabData="false" Id="5" Opl="int Self.AgentNodeTest::l_IntVar" Opr="const int 1" PrefabName="" PrefabNodeId="-1">
<Comment Background="NoColor" Text="" />
</Node>
<Node Class="PluginBehaviac.Nodes.Sequence" Enable="true" HasOwnPrefabData="false" Id="0" PrefabName="" PrefabNodeId="-1">
<Comment Background="NoColor" Text="" />
<Attachment Class="PluginBehaviac.Events.Precondition" BinaryOperator="And" Enable="true" Id="6" Operator="Equal" Opl="int Self.AgentNodeTest::l_IntVar" Opr1="""" Opr2="const int 1" Phase="Both" PrefabAttachmentId="-1" />
<Connector Identifier="GenericChildren">
<Node Class="PluginBehaviac.Nodes.Action" Enable="true" HasOwnPrefabData="false" Id="1" Method="Self.AgentNodeTest::setTestVar_0(1)" PrefabName="" PrefabNodeId="-1" ResultFunctor="""" ResultOption="BT_SUCCESS">
<Comment Background="NoColor" Text="" />
</Node>
<Node Class="PluginBehaviac.Nodes.Wait" Enable="true" HasOwnPrefabData="false" Id="2" PrefabName="" PrefabNodeId="-1" Time="const float 1000">
<Comment Background="NoColor" Text="" />
</Node>
<Node Class="PluginBehaviac.Nodes.Assignment" Enable="true" HasOwnPrefabData="false" Id="8" Opl="int Self.AgentNodeTest::l_IntVar" Opr="const int 2" PrefabName="" PrefabNodeId="-1">
<Comment Background="NoColor" Text="" />
</Node>
<Node Class="PluginBehaviac.Nodes.Wait" Enable="true" HasOwnPrefabData="false" Id="7" PrefabName="" PrefabNodeId="-1" Time="const float 1000">
<Comment Background="NoColor" Text="" />
</Node>
<Node Class="PluginBehaviac.Nodes.Action" Enable="true" HasOwnPrefabData="false" Id="3" Method="Self.AgentNodeTest::setTestVar_0(2)" PrefabName="" PrefabNodeId="-1" ResultFunctor="""" ResultOption="BT_SUCCESS">
<Comment Background="NoColor" Text="" />
</Node>
</Connector>
</Node>
</Connector>
</Node>
</Connector>
</Node>
</Behavior>
``` | /content/code_sandbox/integration/unity/Assets/behaviac/workspace/behaviors/node_test/wait_ut_2.xml | xml | 2016-11-21T05:08:08 | 2024-08-16T07:18:30 | behaviac | Tencent/behaviac | 2,831 | 782 |
```xml
import config from "common/config";
import { APP_MESSAGES, EXTENSION_MESSAGES, STORAGE_TYPE } from "common/constants";
import { clearAllRecords, getAllRecords, getRecord, getSuperObject, removeRecord, saveObject } from "common/storage";
import { isAppURL } from "../../utils";
interface ContentScriptMessage {
action: string;
requestId?: number;
[key: string]: unknown;
}
type MessageCallback = (args: unknown) => void;
const eventCallbackMap: Record<string, MessageCallback> = {};
let requestId = 1;
const constants = {
CONTENT_SCRIPT: "content_script",
PAGE_SCRIPT: "page_script",
SOURCE_FIELD: "source",
ACTION_USER_LOGGED_IN: "user:loggedIn",
};
const registerCallback = (message: ContentScriptMessage, callback: MessageCallback): void => {
if (!callback) return;
// Message has requestId when we are sending response
const requestIdToUse = requestId;
eventCallbackMap[message.action + "_" + requestIdToUse] = callback;
message.requestId = requestIdToUse;
};
const invokeCallback = (event: MessageEvent): void => {
const callbackRef = eventCallbackMap[event.data.action + "_" + event.data.requestId];
if (typeof callbackRef === "function") {
// We should remove the entry from map first before executing the callback otherwise we will store stale references of functions
delete eventCallbackMap[event.data.action];
callbackRef(event.data.response);
}
};
const delegateMessageToBackground = (message: ContentScriptMessage): void => {
chrome.runtime.sendMessage(message, (bgResponse) => {
sendResponse(message, bgResponse);
});
};
export const sendExtensionMessage = (message: ContentScriptMessage, callback?: MessageCallback): void => {
if (!message.action) {
return;
}
if (callback) {
registerCallback(message, callback);
}
message[constants.SOURCE_FIELD] = constants.CONTENT_SCRIPT;
window.postMessage(message, window.origin);
};
const sendResponse = (originalEventData: ContentScriptMessage, response?: unknown): void => {
sendExtensionMessage({
action: originalEventData.action,
requestId: originalEventData.requestId,
response,
});
};
export const initMessageHandler = () => {
window.addEventListener(
"message",
async (event: MessageEvent): Promise<void> => {
if (event && !isAppURL(event.origin)) {
if (config.logLevel === "debug") {
console.log("Ignoring message from the following domain", event.origin, event.data);
}
return;
}
if (event && event.data && event.data.source === constants.PAGE_SCRIPT) {
config.logLevel === "debug" && console.log("Received message:", event.data);
// Check whether it is a response to invoke callback or a request to perform an action
if (typeof event.data.response !== "undefined") {
invokeCallback(event);
}
switch (event.data.action) {
case APP_MESSAGES.GET_STORAGE_INFO: {
const records = await getAllRecords();
sendResponse(event.data, {
storageType: STORAGE_TYPE,
numItems: records.length,
bytesUsed: JSON.stringify(records).length,
});
return;
}
case APP_MESSAGES.GET_STORAGE_SUPER_OBJECT: {
const superObject = await getSuperObject();
sendResponse(event.data, superObject);
return;
}
case APP_MESSAGES.GET_STORAGE_OBJECT: {
const obj = await getRecord(event.data.key);
sendResponse(event.data, obj);
return;
}
case APP_MESSAGES.SAVE_STORAGE_OBJECT: {
await saveObject(event.data.object);
sendResponse(event.data);
return;
}
case APP_MESSAGES.REMOVE_STORAGE_OBJECT: {
await removeRecord(event.data.key);
sendResponse(event.data);
return;
}
case APP_MESSAGES.CLEAR_STORAGE: {
await clearAllRecords();
sendResponse(event.data);
return;
}
case EXTENSION_MESSAGES.GET_TAB_SESSION:
case EXTENSION_MESSAGES.GET_API_RESPONSE:
case EXTENSION_MESSAGES.START_RECORDING_ON_URL:
case EXTENSION_MESSAGES.TEST_RULE_ON_URL:
delegateMessageToBackground(event.data);
}
}
}
);
};
``` | /content/code_sandbox/browser-extension/mv3/src/content-scripts/app/messageHandler.ts | xml | 2016-12-01T04:36:06 | 2024-08-16T19:12:19 | requestly | requestly/requestly | 2,121 | 890 |
```xml
import { c } from 'ttag';
import { Price } from '@proton/components/components';
import clsx from '@proton/utils/clsx';
import { useDealContext } from '../deal/DealContext';
const DealPrice = () => {
const {
deal: { prices, cycle, dealSuffixPrice, suffixOnNewLine },
currency,
} = useDealContext();
const { withCoupon = 0, withoutCouponMonthly = 0 } = prices || {};
const dealSuffixPriceString = dealSuffixPrice?.();
return (
<div className="my-4 text-center offer-monthly-price-container">
<Price
currency={currency}
className={clsx(
'offer-monthly-price color-norm',
suffixOnNewLine && 'offer-monthly-price--suffix-new-line'
)}
suffix={dealSuffixPriceString ? dealSuffixPriceString : c('specialoffer: Offers').t`/ month`}
isDisplayedInSentence
>
{withCoupon / cycle}
</Price>
<Price
className="text-strike color-weak offer-regular-price relative"
currency={currency}
suffix={c('specialoffer: Offers').t`/ month`}
>
{withoutCouponMonthly}
</Price>
</div>
);
};
export default DealPrice;
``` | /content/code_sandbox/packages/components/containers/offers/components/shared/deal/DealPrice.tsx | xml | 2016-06-08T11:16:51 | 2024-08-16T14:14:27 | WebClients | ProtonMail/WebClients | 4,300 | 284 |
```xml
import React, { Component } from 'react';
import { observer, inject } from 'mobx-react';
import SuccessDialog from '../../../../components/wallet/wallet-restore/SuccessDialog';
import type { InjectedDialogContainerStepProps } from '../../../../types/injectedPropsType';
import { InjectedDialogContainerStepDefaultProps } from '../../../../types/injectedPropsType';
type Props = InjectedDialogContainerStepProps;
const DefaultProps = InjectedDialogContainerStepDefaultProps;
@inject('stores', 'actions')
@observer
class SuccessDialogContainer extends Component<Props> {
static defaultProps = DefaultProps;
render() {
const { stores, actions } = this.props;
const { walletKindDaedalus, walletKindYoroi } = stores.wallets;
const { restoreWalletEnd } = actions.wallets;
return (
<SuccessDialog
onClose={() => restoreWalletEnd.trigger()}
walletKindDaedalus={walletKindDaedalus}
walletKindYoroi={walletKindYoroi}
/>
);
}
}
export default SuccessDialogContainer;
``` | /content/code_sandbox/source/renderer/app/containers/wallet/dialogs/wallet-restore/StepSuccessContainer.tsx | xml | 2016-10-05T13:48:54 | 2024-08-13T22:03:19 | daedalus | input-output-hk/daedalus | 1,230 | 226 |
```xml
import * as React from 'react';
import { styled } from '@mui/material/styles';
import type { SxProps } from '@mui/material';
import { isValidElement, ReactNode, ReactElement } from 'react';
import {
Avatar,
List,
ListProps,
ListItem,
ListItemAvatar,
ListItemButton,
ListItemIcon,
ListItemProps,
ListItemSecondaryAction,
ListItemText,
} from '@mui/material';
import { Link } from 'react-router-dom';
import {
Identifier,
RaRecord,
RecordContextProvider,
sanitizeListRestProps,
useListContextWithProps,
useResourceContext,
useGetRecordRepresentation,
useCreatePath,
useTranslate,
} from 'ra-core';
import { SimpleListLoading } from './SimpleListLoading';
import { ListNoResults } from '../ListNoResults';
/**
* The <SimpleList> component renders a list of records as a Material UI <List>.
* It is usually used as a child of react-admin's <List> and <ReferenceManyField> components.
*
* Also widely used on Mobile.
*
* Props:
* - primaryText: function returning a React element (or some text) based on the record
* - secondaryText: same
* - tertiaryText: same
* - leftAvatar: function returning a React element based on the record
* - leftIcon: same
* - rightAvatar: same
* - rightIcon: same
* - linkType: 'edit' or 'show', or a function returning 'edit' or 'show' based on the record
* - rowStyle: function returning a style object based on (record, index)
* - rowSx: function returning a sx object based on (record, index)
*
* @example // Display all posts as a List
* const postRowSx = (record, index) => ({
* backgroundColor: record.views >= 500 ? '#efe' : 'white',
* });
* export const PostList = () => (
* <List>
* <SimpleList
* primaryText={record => record.title}
* secondaryText={record => `${record.views} views`}
* tertiaryText={record =>
* new Date(record.published_at).toLocaleDateString()
* }
* rowSx={postRowSx}
* />
* </List>
* );
*/
export const SimpleList = <RecordType extends RaRecord = any>(
props: SimpleListProps<RecordType>
) => {
const {
className,
empty = DefaultEmpty,
hasBulkActions,
leftAvatar,
leftIcon,
linkType = 'edit',
primaryText,
rightAvatar,
rightIcon,
secondaryText,
tertiaryText,
rowSx,
rowStyle,
...rest
} = props;
const { data, isPending, total } =
useListContextWithProps<RecordType>(props);
const resource = useResourceContext(props);
const getRecordRepresentation = useGetRecordRepresentation(resource);
const translate = useTranslate();
if (isPending === true) {
return (
<SimpleListLoading
className={className}
hasLeftAvatarOrIcon={!!leftIcon || !!leftAvatar}
hasRightAvatarOrIcon={!!rightIcon || !!rightAvatar}
hasSecondaryText={!!secondaryText}
hasTertiaryText={!!tertiaryText}
/>
);
}
const renderAvatar = (
record: RecordType,
avatarCallback: FunctionToElement<RecordType>
) => {
const avatarValue = avatarCallback(record, record.id);
if (
typeof avatarValue === 'string' &&
(avatarValue.startsWith('http') || avatarValue.startsWith('data:'))
) {
return <Avatar src={avatarValue} />;
} else {
return <Avatar>{avatarValue}</Avatar>;
}
};
if (data == null || data.length === 0 || total === 0) {
if (empty) {
return empty;
}
return null;
}
return (
<Root className={className} {...sanitizeListRestProps(rest)}>
{data.map((record, rowIndex) => (
<RecordContextProvider key={record.id} value={record}>
<ListItem disablePadding>
<LinkOrNot
linkType={linkType}
resource={resource}
id={record.id}
record={record}
style={
rowStyle
? rowStyle(record, rowIndex)
: undefined
}
sx={rowSx?.(record, rowIndex)}
>
{leftIcon && (
<ListItemIcon>
{leftIcon(record, record.id)}
</ListItemIcon>
)}
{leftAvatar && (
<ListItemAvatar>
{renderAvatar(record, leftAvatar)}
</ListItemAvatar>
)}
<ListItemText
primary={
<div>
{primaryText
? typeof primaryText === 'string'
? translate(primaryText, {
...record,
_: primaryText,
})
: isValidElement(primaryText)
? primaryText
: // @ts-ignore
primaryText(
record,
record.id
)
: getRecordRepresentation(record)}
{!!tertiaryText &&
(isValidElement(tertiaryText) ? (
tertiaryText
) : (
<span
className={
SimpleListClasses.tertiary
}
>
{typeof tertiaryText ===
'string'
? translate(
tertiaryText,
{
...record,
_: tertiaryText,
}
)
: isValidElement(
tertiaryText
)
? tertiaryText
: // @ts-ignore
tertiaryText(
record,
record.id
)}
</span>
))}
</div>
}
secondary={
!!secondaryText &&
(typeof secondaryText === 'string'
? translate(secondaryText, {
...record,
_: secondaryText,
})
: isValidElement(secondaryText)
? secondaryText
: // @ts-ignore
secondaryText(record, record.id))
}
/>
{(rightAvatar || rightIcon) && (
<ListItemSecondaryAction>
{rightAvatar && (
<Avatar>
{renderAvatar(record, rightAvatar)}
</Avatar>
)}
{rightIcon && (
<ListItemIcon>
{rightIcon(record, record.id)}
</ListItemIcon>
)}
</ListItemSecondaryAction>
)}
</LinkOrNot>
</ListItem>
</RecordContextProvider>
))}
</Root>
);
};
export type FunctionToElement<RecordType extends RaRecord = any> = (
record: RecordType,
id: Identifier
) => ReactNode;
export interface SimpleListProps<RecordType extends RaRecord = any>
extends Omit<ListProps, 'classes'> {
className?: string;
empty?: ReactElement;
hasBulkActions?: boolean;
leftAvatar?: FunctionToElement<RecordType>;
leftIcon?: FunctionToElement<RecordType>;
primaryText?: FunctionToElement<RecordType> | ReactElement | string;
linkType?: string | FunctionLinkType | false;
rightAvatar?: FunctionToElement<RecordType>;
rightIcon?: FunctionToElement<RecordType>;
secondaryText?: FunctionToElement<RecordType> | ReactElement | string;
tertiaryText?: FunctionToElement<RecordType> | ReactElement | string;
rowSx?: (record: RecordType, index: number) => SxProps;
rowStyle?: (record: RecordType, index: number) => any;
// can be injected when using the component without context
resource?: string;
data?: RecordType[];
isLoading?: boolean;
isPending?: boolean;
isLoaded?: boolean;
total?: number;
}
const LinkOrNot = (
props: LinkOrNotProps & Omit<ListItemProps, 'button' | 'component' | 'id'>
) => {
const {
classes: classesOverride,
linkType,
resource,
id,
children,
record,
...rest
} = props;
const createPath = useCreatePath();
const type =
typeof linkType === 'function' ? linkType(record, id) : linkType;
if (type === false) {
return (
<ListItemText
// @ts-ignore
component="div"
{...rest}
>
{children}
</ListItemText>
);
}
return (
// @ts-ignore
<ListItemButton
component={Link}
to={createPath({ resource, id, type })}
{...rest}
>
{children}
</ListItemButton>
);
};
export type FunctionLinkType = (record: RaRecord, id: Identifier) => string;
export interface LinkOrNotProps {
linkType: string | FunctionLinkType | false;
resource?: string;
id: Identifier;
record: RaRecord;
children: ReactNode;
}
const PREFIX = 'RaSimpleList';
export const SimpleListClasses = {
tertiary: `${PREFIX}-tertiary`,
};
const Root = styled(List, {
name: PREFIX,
overridesResolver: (props, styles) => styles.root,
})({
[`& .${SimpleListClasses.tertiary}`]: { float: 'right', opacity: 0.541176 },
});
const DefaultEmpty = <ListNoResults />;
``` | /content/code_sandbox/packages/ra-ui-materialui/src/list/SimpleList/SimpleList.tsx | xml | 2016-07-13T07:58:54 | 2024-08-16T18:32:27 | react-admin | marmelab/react-admin | 24,624 | 2,013 |
```xml
while (true) {
console.log("hi")
break
}
``` | /content/code_sandbox/tests/runtime-trace-tests/cases/while_loop.ts | xml | 2016-01-24T19:35:52 | 2024-08-16T16:39:39 | pxt | microsoft/pxt | 2,069 | 16 |
```xml
import type { Theme } from '@fluentui/react-theme';
import { resetIdsForTests } from '@fluentui/react-utilities';
import { renderHook } from '@testing-library/react-hooks';
import { useFluentProviderThemeStyleTag } from './useFluentProviderThemeStyleTag';
jest.mock('@fluentui/react-theme');
const createDocumentMock = (): Document => {
const externalDocument = document.implementation.createDocument('path_to_url 'html', null);
const body = document.createElement('body');
const head = document.createElement('head');
externalDocument.documentElement.appendChild(head);
externalDocument.documentElement.appendChild(body);
return externalDocument;
};
describe('useFluentProviderThemeStyleTag', () => {
const defaultTheme = {
'css-variable-1': '1',
'css-variable-2': '2',
} as unknown as Theme;
afterEach(() => {
resetIdsForTests();
});
it('should render style tag', () => {
// Act
const { result } = renderHook(() =>
useFluentProviderThemeStyleTag({
theme: defaultTheme,
targetDocument: document,
rendererAttributes: {},
}),
);
// Assert
expect(document.getElementById(result.current.styleTagId)).not.toBeNull();
});
it('should remove style tag on unmount', () => {
// Arrange
const { result, unmount } = renderHook(() =>
useFluentProviderThemeStyleTag({ theme: defaultTheme, targetDocument: document, rendererAttributes: {} }),
);
// Act
unmount();
// Assert
expect(document.getElementById(result.current.styleTagId)).toBeNull();
});
it('should render css variables in theme', () => {
// Act
const { result } = renderHook(() =>
useFluentProviderThemeStyleTag({ theme: defaultTheme, targetDocument: document, rendererAttributes: {} }),
);
// Assert
const tag = document.getElementById(result.current.styleTagId) as HTMLStyleElement;
const sheet = tag.sheet as CSSStyleSheet;
const rule = sheet.cssRules[0] as CSSStyleRule;
expect(rule.selectorText).toEqual(`.${result.current.styleTagId}`);
expect(rule.cssText).toMatchInlineSnapshot(`".fui-FluentProvider1 {--css-variable-1: 1; --css-variable-2: 2;}"`);
});
it('should update style tag on theme change', () => {
// Arrange
let theme = defaultTheme;
const { result, rerender } = renderHook(() =>
useFluentProviderThemeStyleTag({ theme, targetDocument: document, rendererAttributes: {} }),
);
// Act
theme = { 'css-variable-update': 'xxx' } as unknown as Theme;
rerender();
// Assert
const tag = document.getElementById(result.current.styleTagId) as HTMLStyleElement;
const sheet = tag.sheet as CSSStyleSheet;
const rule = sheet.cssRules[0] as CSSStyleRule;
expect(rule.selectorText).toEqual(`.${result.current.styleTagId}`);
expect(rule.cssText).toMatchInlineSnapshot(`".fui-FluentProvider1 {--css-variable-update: xxx;}"`);
});
it('should update style tag on theme change', () => {
const { result } = renderHook(() =>
useFluentProviderThemeStyleTag({
theme: defaultTheme,
targetDocument: document,
rendererAttributes: { nonce: 'random' },
}),
);
const tag = document.getElementById(result.current.styleTagId) as HTMLStyleElement;
expect(tag.getAttribute('id')).toBe('fui-FluentProvider1');
expect(tag.getAttribute('nonce')).toBe('random');
});
it('should move style tags in body to head on first render', () => {
const targetDocument = createDocumentMock();
const ssrStyleElement = targetDocument.createElement('style');
// Kinda hacky - assume the useId call returns as expected (ids are reset after each test)
ssrStyleElement.setAttribute('id', 'fui-FluentProvider1');
targetDocument.body.append(ssrStyleElement);
jest.spyOn(targetDocument, 'createElement');
renderHook(() => useFluentProviderThemeStyleTag({ theme: defaultTheme, targetDocument, rendererAttributes: {} }));
expect(targetDocument.body.querySelector('style')).toBeNull();
expect(targetDocument.head.querySelectorAll('style').length).toBe(1);
// eslint-disable-next-line deprecation/deprecation
expect(targetDocument.createElement).toHaveBeenCalledTimes(0);
});
});
``` | /content/code_sandbox/packages/react-components/react-provider/library/src/components/FluentProvider/useFluentProviderThemeStyleTag.test.tsx | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 973 |
```xml
import { MAIL_APP_NAME } from '@proton/shared/lib/constants';
import type { Parameters } from './interface';
import { getSignupDescription, getSignupTitle } from './interface';
const data = (): Parameters => ({
title: getSignupTitle(MAIL_APP_NAME),
description: getSignupDescription(MAIL_APP_NAME),
});
export default data;
``` | /content/code_sandbox/applications/account/src/pages/mail.signup.ts | xml | 2016-06-08T11:16:51 | 2024-08-16T14:14:27 | WebClients | ProtonMail/WebClients | 4,300 | 72 |
```xml
import globalMessages from '../i18n/global-messages';
export const PROFILE_SETTINGS = [
'locale',
'numberFormat',
'dateFormat',
'timeFormat',
];
export const LANGUAGE_OPTIONS = [
{
value: 'en-US',
label: globalMessages.languageEnglish,
},
{
value: 'ja-JP',
label: globalMessages.languageJapanese,
},
];
export const NUMBER_OPTIONS = [
{
value: 'number-1',
label: '8,638,301,639.283542',
},
{
value: 'number-2',
label: '8.638.301.639,283542',
},
{
value: 'number-3',
label: '8 638 301 639.283542',
},
];
export const DATE_ENGLISH_OPTIONS = [
{
value: 'MM/DD/YYYY',
label: 'mm/dd/yyyy',
},
{
value: 'DD/MM/YYYY',
label: 'dd/mm/yyyy',
},
{
value: 'YYYY/MM/DD',
label: 'yyyy/mm/dd',
},
];
export const DATE_JAPANESE_OPTIONS = [
{
value: 'YYYYMMDD',
label: 'yyyymmdd',
},
{
value: 'YY/MM/DD',
label: 'yy/mm/dd',
},
{
value: 'YYYY/MM/DD',
label: 'yyyy/mm/dd',
},
];
export const TIME_OPTIONS = [
{
value: 'hh:mm:ss A',
label: '02:00 PM',
},
{
value: 'HH:mm:ss',
label: '14:00',
},
];
export const DATE_ENGLISH_LL_MAP_OPTIONS = {
['MM/DD/YYYY']: 'MMM D, YYYY',
['DD/MM/YYYY']: 'D MMM, YYYY',
['YYYY/MM/DD']: 'YYYY, MMM D',
};
export const TIME_LL_MAP_OPTIONS = {
['hh:mm:ss A']: 'hh:mm A',
['HH:mm:ss']: 'HH:mm',
};
export const DATE_TIME_SEPARATOR_MAP = new Proxy(
{
['YYYYMMDD']: '',
['YY/MM/DD']: ' ',
['YYYY/MM/DD']: ' ',
},
{
get: (target, prop, receiver) => {
const notSpecified = !(prop in target);
if (notSpecified) {
return ', ';
}
return Reflect.get(target, prop, receiver);
},
}
);
``` | /content/code_sandbox/source/renderer/app/config/profileConfig.ts | xml | 2016-10-05T13:48:54 | 2024-08-13T22:03:19 | daedalus | input-output-hk/daedalus | 1,230 | 529 |
```xml
import { isNight, loadThemeBase, Theme, ThemePair } from '@devhub/core/src'
import { Appearance } from '../../libs/appearence'
import { Platform } from '../../libs/platform'
const _window = typeof window !== 'undefined' ? (window as any) : undefined
export const supportsCSSVariables =
Platform.OS === 'web' &&
_window &&
_window.CSS &&
_window.CSS.supports &&
_window.CSS.supports('color', 'var(--fake-var)')
export function loadTheme(
theme: ThemePair,
{
preferredDarkTheme,
preferredLightTheme,
prefersDarkTheme,
}: {
preferredDarkTheme?: ThemePair
preferredLightTheme?: ThemePair
prefersDarkTheme?: boolean
} = {},
): Theme {
return loadThemeBase(theme, {
preferredDarkTheme,
preferredLightTheme,
prefersDarkTheme:
typeof prefersDarkTheme === 'boolean'
? prefersDarkTheme
: Appearance.getColorScheme() === 'dark' ||
(Appearance.getColorScheme() !== 'light' && isNight()),
})
}
``` | /content/code_sandbox/packages/components/src/utils/helpers/theme.ts | xml | 2016-11-30T23:24:21 | 2024-08-16T00:24:59 | devhub | devhubapp/devhub | 9,652 | 234 |
```xml
<?xml version="1.0" ?><!DOCTYPE TS><TS version="2.1" language="pt">
<context>
<name>about_ui_tr</name>
<message>
<location filename="../../persepolis/gui/about_ui.py" line="248"/>
<source>About Persepolis</source>
<translation>Sobre o Persepolis</translation>
</message>
<message>
<location filename="../../persepolis/gui/about_ui.py" line="206"/>
<source>Persepolis Download Manager</source>
<translation>Gerenciador de Downloads Persepolis</translation>
</message>
<message>
<location filename="../../persepolis/gui/about_ui.py" line="208"/>
<source><a href=path_to_url
<comment>TRANSLATORS NOTE: YOU REALLY DON'T NEED TO TRANSLATE THIS PART!</comment>
<translation><a href=path_to_url
</message>
<message>
<location filename="../../persepolis/gui/about_ui.py" line="212"/>
<source><a href=path_to_url
<comment>TRANSLATORS NOTE: YOU REALLY DON'T NEED TO TRANSLATE THIS PART!</comment>
<translation><a href=path_to_url
</message>
<message>
<location filename="../../persepolis/gui/about_ui.py" line="216"/>
<source><a href=path_to_url
<comment>TRANSLATORS NOTE: YOU REALLY DON'T NEED TO TRANSLATE THIS PART!</comment>
<translation><a href=path_to_url
</message>
<message>
<location filename="../../persepolis/gui/about_ui.py" line="221"/>
<source>Developers:</source>
<translation>Desenvolvedores:</translation>
</message>
<message>
<location filename="../../persepolis/gui/about_ui.py" line="249"/>
<source>Developers</source>
<translation>Desenvolvedores</translation>
</message>
<message>
<location filename="../../persepolis/gui/about_ui.py" line="250"/>
<source>Translators</source>
<translation>Tradutores</translation>
</message>
<message>
<location filename="../../persepolis/gui/about_ui.py" line="251"/>
<translation>Licena</translation>
</message>
<message>
<location filename="../../persepolis/gui/about_ui.py" line="254"/>
<source>OK</source>
<translation>OK</translation>
</message>
<message>
<location filename="../../persepolis/gui/about_ui.py" line="227"/>
<source>Special thanks to:</source>
<translation>Agradecimentos especiais a:</translation>
</message>
<message>
<location filename="../../persepolis/gui/about_ui.py" line="223"/>
<source>
AliReza AmirSamimi
Mohammadreza Abdollahzadeh
Sadegh Alirezaie
Mostafa Asadi
MohammadAmin Vahedinia
Jafar Akhondali
H.Rostami
Ehsan Titish</source>
<comment>TRANSLATORS NOTE: YOU REALLY DON'T NEED TO TRANSLATE THIS PART!</comment>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/about_ui.py" line="207"/>
<source>Version 4.0.0</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>addlink_ui_tr</name>
<message>
<location filename="../../persepolis/gui/addlink_ui.py" line="415"/>
<source>Add to category: </source>
<translation>Adicionar a categoria:</translation>
</message>
<message>
<location filename="../../persepolis/gui/addlink_ui.py" line="451"/>
<source>Proxy</source>
<translation>Proxy</translation>
</message>
<message>
<location filename="../../persepolis/gui/addlink_ui.py" line="422"/>
<source>IP: </source>
<translation>IP:</translation>
</message>
<message>
<location filename="../../persepolis/gui/addlink_ui.py" line="424"/>
<source>Port:</source>
<translation>Porta:</translation>
</message>
<message>
<location filename="../../persepolis/gui/addlink_ui.py" line="430"/>
<source>Change Download Folder</source>
<translation>Alterar pasta de downloads:</translation>
</message>
<message>
<location filename="../../persepolis/gui/addlink_ui.py" line="432"/>
<source>Download Folder: </source>
<translation>Pasta de downloads</translation>
</message>
<message>
<location filename="../../persepolis/gui/addlink_ui.py" line="443"/>
<source>Cancel</source>
<translation>Cancelar</translation>
</message>
<message>
<location filename="../../persepolis/gui/addlink_ui.py" line="444"/>
<source>OK</source>
<translation>OK</translation>
</message>
<message>
<location filename="../../persepolis/gui/addlink_ui.py" line="448"/>
<source>Link</source>
<translation>Link</translation>
</message>
<message>
<location filename="../../persepolis/gui/addlink_ui.py" line="454"/>
<source>More Options</source>
<translation>Mais opes</translation>
</message>
<message>
<location filename="../../persepolis/gui/addlink_ui.py" line="457"/>
<source>Advanced Options</source>
<translation>Opes avanadas</translation>
</message>
<message>
<location filename="../../persepolis/gui/addlink_ui.py" line="460"/>
<source>Referrer: </source>
<translation>Referenciador:</translation>
</message>
<message>
<location filename="../../persepolis/gui/addlink_ui.py" line="462"/>
<source>Header: </source>
<translation>Cabealho:</translation>
</message>
<message>
<location filename="../../persepolis/gui/addlink_ui.py" line="464"/>
<source>Load cookies: </source>
<translation>Carregar cookies:</translation>
</message>
<message>
<location filename="../../persepolis/gui/addlink_ui.py" line="466"/>
<source>User agent: </source>
<translation>Agente de usurio:</translation>
</message>
<message>
<location filename="../../persepolis/gui/addlink_ui.py" line="411"/>
<source>Add Download Link</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/addlink_ui.py" line="413"/>
<source>Download link: </source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/addlink_ui.py" line="417"/>
<source>Change file name: </source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/addlink_ui.py" line="419"/>
<source>Detect System Proxy Settings</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/addlink_ui.py" line="421"/>
<source>Proxy password: </source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/addlink_ui.py" line="423"/>
<source>Proxy username: </source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/addlink_ui.py" line="426"/>
<source>Download username and password</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/addlink_ui.py" line="427"/>
<source>Download username: </source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/addlink_ui.py" line="428"/>
<source>Download password: </source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/text_queue_ui.py" line="294"/>
<source>Remember this path</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/addlink_ui.py" line="434"/>
<source>Start time</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/addlink_ui.py" line="435"/>
<source>End time</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/addlink_ui.py" line="437"/>
<source>Limit speed</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/addlink_ui.py" line="441"/>
<source>Number of connections:</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/addlink_ui.py" line="446"/>
<source>Download Later</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>after_download_src_ui_tr</name>
<message>
<location filename="../../persepolis/scripts/after_download.py" line="69"/>
<source><b>File name</b>: </source>
<translation><b>Nome do arquivo</b>:</translation>
</message>
<message>
<location filename="../../persepolis/scripts/after_download.py" line="77"/>
<source><b>Size</b>: </source>
<translation><b>Tamanho</b>:</translation>
</message>
</context>
<context>
<name>after_download_ui_tr</name>
<message>
<location filename="../../persepolis/gui/after_download_ui.py" line="52"/>
<source>Persepolis Download Manager</source>
<translation>Gerenciador de Downloads Persepolis</translation>
</message>
<message>
<location filename="../../persepolis/gui/after_download_ui.py" line="112"/>
<source> Open File </source>
<translation>Abrir arquivo</translation>
</message>
<message>
<location filename="../../persepolis/gui/after_download_ui.py" line="113"/>
<source>Open Download Folder</source>
<translation>Abrir pasta</translation>
</message>
<message>
<location filename="../../persepolis/gui/after_download_ui.py" line="114"/>
<source> OK </source>
<translation> OK </translation>
</message>
<message>
<location filename="../../persepolis/gui/after_download_ui.py" line="115"/>
<source>Don't show this message again.</source>
<translation>No mostre esta mensagem novamente.</translation>
</message>
<message>
<location filename="../../persepolis/gui/after_download_ui.py" line="117"/>
<source><b>Download Completed!</b></source>
<translation><b>Download completo!</b></translation>
</message>
<message>
<location filename="../../persepolis/gui/after_download_ui.py" line="118"/>
<source><b>Save as</b>: </source>
<translation><b>Salvar como</b>: </translation>
</message>
<message>
<location filename="../../persepolis/gui/after_download_ui.py" line="119"/>
<source><b>Link</b>: </source>
<translation><b>Link</b>: </translation>
</message>
</context>
<context>
<name>log_window_ui_tr</name>
<message>
<location filename="../../persepolis/gui/log_window_ui.py" line="97"/>
<source>Persepolis Log</source>
<translation>Persepolis Log</translation>
</message>
<message>
<location filename="../../persepolis/gui/log_window_ui.py" line="100"/>
<source>Report Issue</source>
<translation>Relatar um problema</translation>
</message>
<message>
<location filename="../../persepolis/gui/log_window_ui.py" line="98"/>
<source>Close</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/log_window_ui.py" line="99"/>
<source>Copy Selected to Clipboard</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/log_window_ui.py" line="101"/>
<source>Refresh Log Messages</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/log_window_ui.py" line="102"/>
<source>Clear Log Messages</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>mainwindow_src_ui_tr</name>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="1014"/>
<source>Persepolis</source>
<translation>Persepolis</translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="973"/>
<source>Queue Stopped!</source>
<translation>Fila parada!</translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="2110"/>
<source>Persepolis is shutting down</source>
<translation>Persepolis desligar</translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="2110"/>
<source>your system in 20 seconds</source>
<translation>seu sistema em 20 segundos</translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="1014"/>
<source>Queue completed!</source>
<translation>Fila completa!</translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="3237"/>
<source>Show main Window</source>
<translation>Mostrar janela principal</translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="1299"/>
<source>Please Wait...</source>
<translation>Por favor espere...</translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="1625"/>
<source>Ready...</source>
<translation>Pronto...</translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="1631"/>
<source>Aria2 didn't respond! be patient! Persepolis tries again in 2 seconds!</source>
<translation>Aria2 no responde! seja paciente! Persepolis tentar novamente em 2 segundos!</translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="1654"/>
<source>Error...</source>
<translation>Erro...</translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="1655"/>
<source>Persepolis can not connect to Aria2</source>
<translation>Persepolis no consegue conectar-se ao Aria2</translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="1639"/>
<source>Check your network & Restart Persepolis</source>
<translation>Verifique sua rede & Reinicie o Persepolis</translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="1655"/>
<source>Restart Persepolis</source>
<translation>Reiniciar o Persepolis</translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="1661"/>
<source>Reconnecting Aria2...</source>
<translation>Reconectando Aria2...</translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="1679"/>
<source>Persepolis reconnected aria2 successfully</source>
<translation>Persepolis reconectado ao aria2 com xito</translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="1849"/>
<source>Error: </source>
<translation>Erro:</translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="1849"/>
<source>Please change the temporary download folder</source>
<translation>Por favor altere a pasta temporria de downloads</translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="1946"/>
<source><b>Link</b>: </source>
<translation><b>Link</b>: </translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="1960"/>
<source><b>Downloaded</b>: </source>
<translation><b>Baixado</b>: </translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="1968"/>
<source><b>Transfer rate</b>: </source>
<translation><b>Taxa de transferncia</b>: </translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="1974"/>
<source><b>Estimated time left</b>: </source>
<translation><b>Tempo restante estimado</b>: </translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="1980"/>
<source><b>Connections</b>: </source>
<translation><b>Conexes</b>: </translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="2000"/>
<source><b>Status</b>: </source>
<translation><b>Progresso</b>: </translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="2053"/>
<source>Download Stopped</source>
<translation>Download parado</translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="2074"/>
<source>Error - </source>
<translation>Erro - </translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="2129"/>
<source>Download Complete</source>
<translation>Download completo</translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="2584"/>
<source><b><center>This link has been added before! Are you sure you want to add it again?</center></b></source>
<translation><b><center>Este link foi adicionado antes! Tem certeza de que deseja adicion-lo novamente?</center></b></translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="5767"/>
<source>Download Starts</source>
<translation>Iniciar download</translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="2696"/>
<source>Download Scheduled</source>
<translation>Download agendado</translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="5949"/>
<source>Operation was not successful.</source>
<translation>A operao no foi bem sucedida.</translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="5949"/>
<source>Please resume the following category: </source>
<translation>Por favor, retome a seguinte categoria:</translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="2895"/>
<source>Aria2 disconnected!</source>
<translation>Aria2 desconectado!</translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="2856"/>
<source>Persepolis is trying to connect!be patient!</source>
<translation>Persepolis est tentando se conectar! seja paciente!</translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="2900"/>
<source>Aria2 did not respond!</source>
<translation>Aria2 no respondeu!</translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="2750"/>
<source>Try again!</source>
<translation>Tente novamente!</translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="2803"/>
<source>Aria2 did not respond</source>
<translation>Aria2 no respondeu!</translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="2803"/>
<source>Try again</source>
<translation>Tente novamente</translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="2875"/>
<source>Please stop the following category: </source>
<translation>Por favor, pare a seguinte categoria:</translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="2895"/>
<source>Persepolis is trying to connect! be patient!</source>
<translation>Perspolis est tentando se conectar! seja paciente!</translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="2900"/>
<source>Please try again.</source>
<translation>Por favor tente novamente.</translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="3248"/>
<source>Minimize to system tray</source>
<translation>Minimizar para rea de notificao</translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="3701"/>
<source>Not Found</source>
<translation>No encontrado</translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="3650"/>
<source>Operation was not successful!</source>
<translation>A operao no foi bem sucedida.</translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="3444"/>
<source>Operation was not successful! Please stop the following category first: </source>
<translation>A operao no foi bem sucedida! Por favor pare a seguinte categoria primeiro:</translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="3495"/>
<source>Please stop the following download first: </source>
<translation>Por favor pare o seguinte download primeiro:</translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="3550"/>
<source><b><center>This operation will delete downloaded files from your hard disk<br>PERMANENTLY!</center></b></source>
<translation><b><center>Esta operao deletar os arquivos baixados no seu disco rgido<br>PERMANENTEMENTE!</center></b></translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="4712"/>
<source><center>Do you want to continue?</center></source>
<translation><center>Deseja continuar?</center></translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="3600"/>
<source>Please stop the following category first: </source>
<translation>Por favor pare a seguinte categoria primeiro:</translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="4221"/>
<source></b>" already exists!</source>
<translation></b>"J existe!</translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="4548"/>
<source>Send selected downloads to</source>
<translation>Envie o download selecionado para</translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="4551"/>
<source>Send to</source>
<translation>Enviar para</translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="4686"/>
<source>Sort by</source>
<translation>Ordenar por</translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="4709"/>
<source><b><center>This operation will remove all download items in this queue<br>from "All Downloads" list!</center></b></source>
<translation><b><center>Esta operao ir remover todos os itens nesta fila<br>de "Todas as listas de Downloads"!</center></b></translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="4734"/>
<source><b>Sorry! You can't remove default queue!</b></source>
<translation><b>Desculpe! Voc no pode remover a fila padro!</b></translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="4955"/>
<source>Some items didn't transferred successfully!</source>
<translation>Alguns itens no foram transferidos com sucesso!</translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="4955"/>
<source>Please stop download progress first.</source>
<translation>Por favor, primeiro pare o progresso do download.</translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="4985"/>
<source>Hide options</source>
<translation>Ocultar opes</translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="4989"/>
<source>Show options</source>
<translation>Mostrar opes</translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="5586"/>
<source>Stop all downloads first!</source>
<translation>Pare primeiro todos os downloads!</translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="1208"/>
<source>Moving is</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="1208"/>
<source>finished!</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="3622"/>
<source>Download is in progress by video finder!</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="3622"/>
<source>be patient!</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="3650"/>
<source>Stop the following download first: </source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="5625"/>
<source>youtube-dl is not installed!</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="5630"/>
<source>ffmpeg is not installed!</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="5921"/>
<source>Not enough free space in:</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="5927"/>
<source>muxing error</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="5927"/>
<source>an error occurred</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>mainwindow_ui_tr</name>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="65"/>
<source>File</source>
<translation>Arquivo</translation>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="66"/>
<source>Edit</source>
<translation>Editar</translation>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="67"/>
<source>View</source>
<translation>Visualizar</translation>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="68"/>
<source>Download</source>
<translation>Download</translation>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="69"/>
<source>Queue</source>
<translation>Fila</translation>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="70"/>
<source>Video Finder</source>
<translation>Video Finder</translation>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="729"/>
<source>Help</source>
<translation>Ajuda</translation>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="472"/>
<source>Sort by</source>
<translation>Ordenar por</translation>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="477"/>
<source>Persepolis Download Manager</source>
<translation>Gerenciador de Downloads Persepolis</translation>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="409"/>
<source>Category</source>
<translation>Categoria</translation>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="510"/>
<source>File Name</source>
<translation>Nome de arquivo</translation>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="408"/>
<source>Status</source>
<translation>Progresso</translation>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="408"/>
<source>Size</source>
<translation>Tamanho</translation>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="408"/>
<source>Downloaded</source>
<translation>Baixado</translation>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="408"/>
<source>Percentage</source>
<translation>Porcentagem</translation>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="408"/>
<source>Connections</source>
<translation>Conexes</translation>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="409"/>
<source>Link</source>
<translation>Link</translation>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="463"/>
<source>&File</source>
<translation>&Arquivo</translation>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="464"/>
<source>&Edit</source>
<translation>&Editar</translation>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="465"/>
<source>&View</source>
<translation>&Visualizar</translation>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="466"/>
<source>&Download</source>
<translation>&Download</translation>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="467"/>
<source>&Queue</source>
<translation>&Fila</translation>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="469"/>
<source>&Help</source>
<translation>&Ajuda</translation>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="482"/>
<source>Menu</source>
<translation>Menu</translation>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="488"/>
<source>Toolbar</source>
<translation>Barra de ferramentas</translation>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="535"/>
<source>Show/Hide system tray icon</source>
<translation>Mostrar/Ocultar rea de notificao</translation>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="561"/>
<source>Add New Download Link</source>
<translation>Adicionar novo link de download</translation>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="578"/>
<source>Resume Download</source>
<translation>Resumir Download</translation>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="584"/>
<source>Pause Download</source>
<translation>Pausar Download</translation>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="590"/>
<source>Stop Download</source>
<translation>Parar Download</translation>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="590"/>
<source>Stop/Cancel Download</source>
<translation>Parar/Cancelar Download</translation>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="596"/>
<source>Properties</source>
<translation>Propriedades</translation>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="602"/>
<source>Progress</source>
<translation>Progresso</translation>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="625"/>
<source>Exit</source>
<translation>Sair</translation>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="633"/>
<source>Clear all items in download list</source>
<translation>Limpar todos os itens na lista de download</translation>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="665"/>
<source>Create new download queue</source>
<translation>Criar nova fila de download</translation>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="670"/>
<source>Remove this queue</source>
<translation>Remover esta fila</translation>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="675"/>
<source>Start this queue</source>
<translation>Iniciar esta fila</translation>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="681"/>
<source>Stop this queue</source>
<translation>Parar esta fila</translation>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="687"/>
<source>Move currently selected items up by one row</source>
<translation>Mover itens selecionados uma linha acima</translation>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="696"/>
<source>Move currently selected items down by one row</source>
<translation>Mover itens selecionados uma linha abaixo</translation>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="704"/>
<source>Preferences</source>
<translation>Preferncias</translation>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="709"/>
<source>About</source>
<translation>Sobre</translation>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="714"/>
<source>Report an issue</source>
<translation>Relatar um problema</translation>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="719"/>
<source>Check for newer release</source>
<translation>Verifique se h novas verses</translation>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="742"/>
<source>Start Time</source>
<translation>Tempo de inicio</translation>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="744"/>
<source>End Time</source>
<translation>Tempo de termino</translation>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="746"/>
<source>Download bottom of
the list first</source>
<translation>Baixe o ltimo arquivo
da lista primeiro</translation>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="749"/>
<source>Limit Speed</source>
<translation>Limitador de velocidade</translation>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="762"/>
<source>Apply</source>
<translation>Executar</translation>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="754"/>
<source>After download</source>
<translation>Depois o download</translation>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="755"/>
<source>Shut Down</source>
<translation>Desligar</translation>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="468"/>
<source>V&ideo Finder</source>
<translation>V&ideo Finder</translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="2414"/>
<source><b>Video file status: </b></source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="2395"/>
<source><b>Audio file status: </b></source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="2470"/>
<source><b>Status: </b></source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="2474"/>
<source><b>Muxing status: </b></source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="2414"/>
<source> downloaded</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="2429"/>
<source>Active</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="2459"/>
<source>Not Active</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="2449"/>
<source>Started</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="2452"/>
<source>Error</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="2455"/>
<source>Complete</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="409"/>
<source>Transfer Rate</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="409"/>
<source>Estimated Time Left</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="520"/>
<source>First Try Date</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="525"/>
<source>Last Try Date</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="496"/>
<source>Find Video Links...</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="496"/>
<source>Download video or audio from Youtube, Vimeo, etc.</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="505"/>
<source>Stop All Active Downloads</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="515"/>
<source>File Size</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="530"/>
<source>Download Status</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="535"/>
<source>Show System Tray Icon</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="541"/>
<source>Show Menubar</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="547"/>
<source>Show Side Panel</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="553"/>
<source>Minimize to System Tray</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="561"/>
<source>Add New Download Link...</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="569"/>
<source>Import Links from Text File...</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="569"/>
<source>Create a text file and put links in it, line by line!</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="608"/>
<source>Open File...</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="613"/>
<source>Open Download Folder</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="619"/>
<source>Open Default Download Folder</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="633"/>
<source>Clear Download List</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="638"/>
<source>Remove Selected Downloads from List</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="648"/>
<source>Delete Selected Download Files</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="658"/>
<source>Move Selected Download Files to Another Folder...</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="658"/>
<source>Move Selected Download Files to Another Folder</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="665"/>
<source>Create New Queue...</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="670"/>
<source>Remove Queue</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="675"/>
<source>Start Queue</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="681"/>
<source>Stop Queue</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="687"/>
<source>Move Selected Items Up</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="696"/>
<source>Move Selected Items Down</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="714"/>
<source>Report an Issue</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="719"/>
<source>Check for Newer Version</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="724"/>
<source>Show Log File</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="741"/>
<source>Hide Options</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="757"/>
<source>Keep System Awake!</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="758"/>
<source><html><head/><body><p>This option will prevent the system from going to sleep. It is necessary if your power manager is suspending the system automatically. </p></body></html></source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="764"/>
<source>Start Mixing</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="766"/>
<source><b>Video File Status: </b></source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="767"/>
<source><b>Audio File Status: </b></source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/mainwindow_ui.py" line="770"/>
<source><b>Mixing status: </b></source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>progress_src_ui_tr</name>
<message>
<location filename="../../persepolis/scripts/progress.py" line="170"/>
<source>Aria2 disconnected!</source>
<translation>Aria2 desconectado!</translation>
</message>
<message>
<location filename="../../persepolis/scripts/progress.py" line="170"/>
<source>Persepolis is trying to connect! be patient!</source>
<translation>Perspolis est tentando se conectar! seja paciente!</translation>
</message>
<message>
<location filename="../../persepolis/scripts/progress.py" line="151"/>
<source>Aria2 did not respond!</source>
<translation>Aria2 no respondeu!</translation>
</message>
<message>
<location filename="../../persepolis/scripts/progress.py" line="132"/>
<source>Please try again.</source>
<translation>Por favor tente novamente.</translation>
</message>
<message>
<location filename="../../persepolis/scripts/progress.py" line="151"/>
<source>Try again!</source>
<translation>Tente novamente!</translation>
</message>
</context>
<context>
<name>progress_ui_tr</name>
<message>
<location filename="../../persepolis/gui/progress_ui.py" line="55"/>
<source>Persepolis Download Manager</source>
<translation>Gerenciador de Downloads Persepolis</translation>
</message>
<message>
<location filename="../../persepolis/gui/progress_ui.py" line="206"/>
<source>Status: </source>
<translation>Progresso:</translation>
</message>
<message>
<location filename="../../persepolis/gui/progress_ui.py" line="207"/>
<source>Downloaded:</source>
<translation>Baixado:</translation>
</message>
<message>
<location filename="../../persepolis/gui/progress_ui.py" line="208"/>
<source>Transfer rate: </source>
<translation>Taxa de transferncia:</translation>
</message>
<message>
<location filename="../../persepolis/gui/progress_ui.py" line="209"/>
<source>Estimated time left:</source>
<translation>Tempo restante estimado:</translation>
</message>
<message>
<location filename="../../persepolis/gui/progress_ui.py" line="210"/>
<source>Number of connections: </source>
<translation>Nmero de conexes:</translation>
</message>
<message>
<location filename="../../persepolis/gui/progress_ui.py" line="211"/>
<source>Download Information</source>
<translation>Informaes de Download</translation>
</message>
<message>
<location filename="../../persepolis/gui/progress_ui.py" line="214"/>
<source>After download</source>
<translation>Aps o download</translation>
</message>
<message>
<location filename="../../persepolis/gui/progress_ui.py" line="226"/>
<source>Apply</source>
<translation>Executar</translation>
</message>
<message>
<location filename="../../persepolis/gui/progress_ui.py" line="219"/>
<source>Shut Down</source>
<translation>Desligar</translation>
</message>
<message>
<location filename="../../persepolis/gui/progress_ui.py" line="221"/>
<source>Download Options</source>
<translation>Opes de Download</translation>
</message>
<message>
<location filename="../../persepolis/gui/progress_ui.py" line="223"/>
<source>Resume</source>
<translation>Resumir</translation>
</message>
<message>
<location filename="../../persepolis/gui/progress_ui.py" line="224"/>
<source>Pause</source>
<translation>Pausar</translation>
</message>
<message>
<location filename="../../persepolis/gui/progress_ui.py" line="225"/>
<source>Stop</source>
<translation>Parar</translation>
</message>
<message>
<location filename="../../persepolis/gui/progress_ui.py" line="205"/>
<source>Link: </source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/progress_ui.py" line="213"/>
<source>Limit speed</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>setting_src_ui_tr</name>
<message>
<location filename="../../persepolis/scripts/setting.py" line="1177"/>
<source><b><center>Restart Persepolis Please!</center></b><br><center>Some changes take effect after restarting Persepolis</center></source>
<translation><b><center>Reinicie o Persepolis por favor!</center></b><br><center>Algumas alteraes s tm efeito aps reiniciar o software</center></translation>
</message>
<message>
<location filename="../../persepolis/scripts/setting.py" line="1179"/>
<source>Restart Persepolis!</source>
<translation>Reiniciar o Persepolis!</translation>
</message>
<message>
<location filename="../../persepolis/scripts/setting.py" line="443"/>
<source><b><center>This shortcut has been used before! Use another one!</center></b></source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>setting_ui_tr</name>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="664"/>
<source>Preferences</source>
<translation>Preferncias</translation>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="561"/>
<source><html><head/><body><p>Set number of tries if download failed.</p></body></html></source>
<translation><html><head/><body><p>Definir o nmero de tentativas se o download falhar.</p></body></html></translation>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="560"/>
<source>Number of tries: </source>
<translation>Nmeros de tentativas:</translation>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="567"/>
<source><html><head/><body><p>Set the seconds to wait between retries. Download manager will retry downloads when the HTTP server returns a 503 response.</p></body></html></source>
<translation><html><head/><body><p>Defina os segundos para aguardar entre novas tentativas. O gerenciador de downloads tentar novamente os downloads quando o servidor HTTP retornar uma resposta 503.</p></body></html></translation>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="573"/>
<source><html><head/><body><p>Set timeout in seconds. </p></body></html></source>
<translation><html><head/><body><p>Definir intervalo em segundos. </p></body></html></translation>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="572"/>
<source>Timeout (seconds): </source>
<translation>Intervalo (segundos): </translation>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="579"/>
<source><html><head/><body><p>Using multiple connections can help speed up your download.</p></body></html></source>
<translation><html><head/><body><p>Usar vrias conexes pode ajudar a acelerar o download.</p></body></html></translation>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="578"/>
<source>Number of connections: </source>
<translation>Nmero de conexes</translation>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="582"/>
<source>RPC port number: </source>
<translation>Nmero da porta RPC:</translation>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="583"/>
<source><html><head/><body><p> Specify a port number for JSON-RPC/XML-RPC server to listen to. Possible Values: 1024 - 65535 Default: 6801 </p></body></html></source>
<translation><html><head/><body><p> Especifique um nmero de porta para conexo com o servidor JSON-RPC/XML-RPC. Valores possveis: 1024-65535 padro: 6801 </p></body></html></translation>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="593"/>
<source>Change Aria2 default path</source>
<translation>Alterar caminho padro do Aria2</translation>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="608"/>
<source>Change</source>
<translation>Alterar</translation>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="601"/>
<source>Download Options</source>
<translation>Opes de Download</translation>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="619"/>
<source>Volume: </source>
<translation>Volume: </translation>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="621"/>
<source>Notifications</source>
<translation>Notificaes</translation>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="624"/>
<source>Style: </source>
<translation>Estilo:</translation>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="625"/>
<source>Color scheme: </source>
<translation>Esquema de cores:</translation>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="626"/>
<source>Icons: </source>
<translation>cones:</translation>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="630"/>
<source>Notification type: </source>
<translation>Tipo da notificao:</translation>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="632"/>
<source>Font: </source>
<translation>Fonte:</translation>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="633"/>
<source>Size: </source>
<translation>Tamanho:</translation>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="654"/>
<source>Run Persepolis at startup</source>
<translation>Executar Persepolis na inicializao</translation>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="656"/>
<source>Keep system awake!</source>
<translation>Impedir sistema de entrar em modo suspenso!</translation>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="661"/>
<source><html><head/><body><p>Format HH:MM</p></body></html></source>
<translation><html><head/><body><p>Formato HH:MM</p></body></html></translation>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="669"/>
<source>File Name</source>
<translation>Nome de arquivo</translation>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="670"/>
<source>Status</source>
<translation>Status</translation>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="671"/>
<source>Size</source>
<translation>Tamanho</translation>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="672"/>
<source>Downloaded</source>
<translation>Baixado</translation>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="673"/>
<source>Percentage</source>
<translation>Porcentagem</translation>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="674"/>
<source>Connections</source>
<translation>Conexes</translation>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="679"/>
<source>Category</source>
<translation>Categoria</translation>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="685"/>
<source>Video Finder Options</source>
<translation>Opes do Video Finder</translation>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="688"/>
<source>Maximum number of links to capture:<br/><small>(If browser sends multiple video links at a time)</small></source>
<translation>Nmero mximo de links a serem capturados:<br/><small>(se o browser envia vrios links de vdeo de cada vez)</small></translation>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="692"/>
<source>Defaults</source>
<translation>Padres</translation>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="693"/>
<source>Cancel</source>
<translation>Cancelar</translation>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="694"/>
<source>OK</source>
<translation>OK</translation>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="80"/>
<source>Press new keys</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="499"/>
<source>Action</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="500"/>
<source>Shortcut</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="506"/>
<source>Shortcuts</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="509"/>
<source>Quit</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="635"/>
<source>Hide main window if close button clicked.</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="637"/>
<source><html><head/><body><p>This feature may not work in your operating system.</p></body></html></source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="329"/>
<source>Language: </source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="510"/>
<source>Minimize to System Tray</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="511"/>
<source>Remove Download Items</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="512"/>
<source>Delete Download Items</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="513"/>
<source>Move Selected Items Up</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="514"/>
<source>Move Selected Items Down</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="515"/>
<source>Add New Download Link</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="516"/>
<source>Add New Video Link</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="517"/>
<source>Import Links from Text File</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="566"/>
<source>Wait period between retries (seconds): </source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="586"/>
<source>Wait period between each download in queue:</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="589"/>
<source>Don't use certificate to verify the peers</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="590"/>
<source><html><head/><body><p>This option avoids SSL/TLS handshake failure. But use it at your own risk!</p></body></html></source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="595"/>
<source><html><head/><body><p>Attention: Wrong path may cause problems! Do it carefully or don't change default setting!</p></body></html></source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="604"/>
<source>Download folder: </source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="607"/>
<source>Temporary download folder: </source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="610"/>
<source>Create subfolders for Music,Videos, ... in default download folder</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="613"/>
<source>Save As</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="616"/>
<source>Enable Notification Sounds</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="628"/>
<source>Toolbar icons size: </source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="640"/>
<source>If browser is opened, start Persepolis in system tray</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="643"/>
<source>Enable system tray icon</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="646"/>
<source>Show download complete dialog when download is finished</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="649"/>
<source>Show menubar</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="650"/>
<source>Show side panel</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="651"/>
<source>Show download progress window</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="657"/>
<source><html><head/><body><p>This option will prevent the system from going to sleep. It is necessary if your power manager is suspending the system automatically. </p></body></html></source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="668"/>
<source>Show these columns:</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="675"/>
<source>Transfer Rate</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="676"/>
<source>Estimated Time Left</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="677"/>
<source>First Try Date</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="678"/>
<source>Last Try Date</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/setting_ui.py" line="681"/>
<source>Columns Customization</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>text_ui_tr</name>
<message>
<location filename="../../persepolis/gui/text_queue_ui.py" line="271"/>
<source>Persepolis Download Manager</source>
<translation>Gerenciador de Download Persepolis</translation>
</message>
<message>
<location filename="../../persepolis/gui/text_queue_ui.py" line="273"/>
<source>Links</source>
<translation>Links</translation>
</message>
<message>
<location filename="../../persepolis/gui/text_queue_ui.py" line="278"/>
<source>Select All</source>
<translation>Selecionar Todos</translation>
</message>
<message>
<location filename="../../persepolis/gui/text_queue_ui.py" line="279"/>
<source>Deselect All</source>
<translation>Desselecionar Todos</translation>
</message>
<message>
<location filename="../../persepolis/gui/text_queue_ui.py" line="281"/>
<source>Add to queue: </source>
<translation>Adicionar para a fila:</translation>
</message>
<message>
<location filename="../../persepolis/gui/text_queue_ui.py" line="283"/>
<source>Proxy</source>
<translation>Proxy</translation>
</message>
<message>
<location filename="../../persepolis/gui/text_queue_ui.py" line="285"/>
<source>IP:</source>
<translation>IP:</translation>
</message>
<message>
<location filename="../../persepolis/gui/text_queue_ui.py" line="287"/>
<source>Port:</source>
<translation>Porta</translation>
</message>
<message>
<location filename="../../persepolis/gui/text_queue_ui.py" line="293"/>
<source>Change Download Folder</source>
<translation>Alterar pasta de downloads</translation>
</message>
<message>
<location filename="../../persepolis/gui/text_queue_ui.py" line="301"/>
<source>OK</source>
<translation>OK</translation>
</message>
<message>
<location filename="../../persepolis/gui/text_queue_ui.py" line="302"/>
<source>Cancel</source>
<translation>Cancelar</translation>
</message>
<message>
<location filename="../../persepolis/gui/text_queue_ui.py" line="275"/>
<source>Download Options</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/text_queue_ui.py" line="284"/>
<source>Proxy password: </source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/text_queue_ui.py" line="286"/>
<source>Proxy username: </source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/text_queue_ui.py" line="289"/>
<source>Download username and password</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/text_queue_ui.py" line="290"/>
<source>Download username: </source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/text_queue_ui.py" line="291"/>
<source>Download password: </source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/text_queue_ui.py" line="295"/>
<source>Download folder: </source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/text_queue_ui.py" line="297"/>
<source>Limit speed</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/gui/text_queue_ui.py" line="299"/>
<source>Number of connections:</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>update_src_ui_tr</name>
<message>
<location filename="../../persepolis/scripts/update.py" line="55"/>
<source>Checking for newer version</source>
<translation>Verificando a verso mais recente</translation>
</message>
<message>
<location filename="../../persepolis/scripts/update.py" line="61"/>
<source>The newest is the best, we recommend to update Persepolis.</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/scripts/update.py" line="155"/>
<source>Check for new update</source>
<translation>Verifique se h nova atualizao</translation>
</message>
<message>
<location filename="../../persepolis/scripts/update.py" line="112"/>
<source>Checking...</source>
<translation>Verificando...</translation>
</message>
<message>
<location filename="../../persepolis/scripts/update.py" line="126"/>
<source>A newer Persepolis release is available</source>
<translation>Uma nova verso do Persepolis est disponvel</translation>
</message>
<message>
<location filename="../../persepolis/scripts/update.py" line="145"/>
<source>Latest version is installed :)</source>
<translation>A verso mais recente est instalada :)</translation>
</message>
<message>
<location filename="../../persepolis/scripts/update.py" line="149"/>
<source>You are using beta version</source>
<translation>Voc est usando uma verso beta</translation>
</message>
<message>
<location filename="../../persepolis/scripts/update.py" line="67"/>
<source>This is Persepolis Download Manager version 4.0.0</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/scripts/update.py" line="152"/>
<source>An error occurred while checking for updates.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>video_finder_progress_ui_tr</name>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="1913"/>
<source><b>Video file status: </b></source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="1927"/>
<source><b>Audio file status: </b></source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="1937"/>
<source><b>Muxing status: </b></source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>ytaddlink_src_ui_tr</name>
<message>
<location filename="../../persepolis/scripts/video_finder_addlink.py" line="173"/>
<source>Video Finder</source>
<translation>Video Finder</translation>
</message>
<message>
<location filename="../../persepolis/scripts/video_finder_addlink.py" line="248"/>
<source>Fetch Media List</source>
<translation>Buscar lista de mdias</translation>
</message>
<message>
<location filename="../../persepolis/scripts/video_finder_addlink.py" line="249"/>
<source>Select a format</source>
<translation>Selecione um formato</translation>
</message>
<message>
<location filename="../../persepolis/scripts/video_finder_addlink.py" line="334"/>
<source>Please enter a valid video link</source>
<translation>Por favor, insira um link de vdeo vlido</translation>
</message>
<message>
<location filename="../../persepolis/scripts/video_finder_addlink.py" line="355"/>
<source>Fetching Media Info...</source>
<translation>Buscando informaes sobre a mdia...</translation>
</message>
<message>
<location filename="../../persepolis/scripts/video_finder_addlink.py" line="251"/>
<source>Video format:</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/scripts/video_finder_addlink.py" line="252"/>
<source>Audio format:</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../../persepolis/scripts/video_finder_addlink.py" line="254"/>
<source>Advanced options</source>
<translation type="unfinished"/>
</message>
</context>
</TS>
``` | /content/code_sandbox/resources/locales/ui_pt.ts | xml | 2016-07-15T14:20:23 | 2024-08-16T16:58:07 | persepolis | persepolisdm/persepolis | 6,200 | 18,887 |
```xml
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
import { MatIconModule } from '@angular/material/icon';
import { MatListModule } from '@angular/material/list';
import { CovalentMenuModule } from '../../../menu/src/menu.module';
import { TdUserProfileMenuComponent } from './user-profile-menu.component';
describe('CovalentUserProfileMenuComponent', () => {
let component: TdUserProfileMenuComponent;
let fixture: ComponentFixture<TdUserProfileMenuComponent>;
beforeEach(
waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [TdUserProfileMenuComponent],
imports: [MatIconModule, MatListModule, CovalentMenuModule],
}).compileComponents();
})
);
beforeEach(() => {
fixture = TestBed.createComponent(TdUserProfileMenuComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
component.email = 'daffy.duck@teradata.com';
component.name = 'Daffy Duck';
fixture.detectChanges();
expect(component).toBeTruthy();
});
it('should block out click event on header click', () => {
const mouseEvent: MouseEvent = new MouseEvent('click', {
bubbles: true,
cancelable: true,
});
jest.spyOn(mouseEvent, 'preventDefault');
jest.spyOn(mouseEvent, 'stopPropagation');
component._blockEvent(mouseEvent);
fixture.detectChanges();
expect(mouseEvent.preventDefault).toHaveBeenCalled();
expect(mouseEvent.stopPropagation).toHaveBeenCalled();
});
});
``` | /content/code_sandbox/libs/angular/user-profile/src/user-profile-menu/user-profile-menu.component.spec.ts | xml | 2016-07-11T23:30:52 | 2024-08-15T15:20:45 | covalent | Teradata/covalent | 2,228 | 317 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="path_to_url"
xmlns:app="path_to_url"
xmlns:tools="path_to_url"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clipToPadding="false"
android:paddingBottom="8dp"
android:paddingLeft="8dp"
android:paddingRight="8dp">
<com.google.android.material.card.MaterialCardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/item_title"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginEnd="16dp"
android:layout_marginStart="16dp"
android:layout_marginTop="8dp"
android:textSize="16sp"
android:textStyle="bold"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:text="Choice Title" />
<TextView
android:id="@+id/item_description"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginEnd="16dp"
android:layout_marginRight="16dp"
android:layout_marginTop="8dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0"
app:layout_constraintStart_toStartOf="@+id/item_title"
app:layout_constraintTop_toBottomOf="@+id/item_title"
tools:text="Choice Description" />
<com.google.android.material.button.MaterialButton
android:id="@+id/item_launch_button"
style="@style/Widget.MaterialComponents.Button.TextButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:text="Open"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@+id/item_description" />
</androidx.constraintlayout.widget.ConstraintLayout>
</com.google.android.material.card.MaterialCardView>
</androidx.constraintlayout.widget.ConstraintLayout>
``` | /content/code_sandbox/internal/chooserx/src/main/res/layout/item_choice.xml | xml | 2016-04-26T17:13:27 | 2024-08-16T18:37:58 | quickstart-android | firebase/quickstart-android | 8,797 | 584 |
```xml
import { fetchPolaris, getFullDate } from '../utils';
const getMethod = (method) => {
switch (method) {
case 'equal':
return '3';
case 'fixed':
return '1';
case 'custom':
return '4';
default:
break;
}
};
const getHolidayMethod = (method) => {
switch (method) {
case 'before':
return '1';
case 'after':
return '3';
default:
return '2';
}
};
export const createLoanSchedule = async (subdomain: string, contract: any) => {
const sendData = [
contract.number,
getFullDate(contract.startDate),
contract.leaseAmount,
getMethod(contract.repayment),
'M',
null,
contract.scheduleDays?.[0],
contract.scheduleDays?.[1] ?? null,
getHolidayMethod(contract.holidayType),
0,
0,
0,
'SIMPLE_INT',
getFullDate(contract.endDate),
null,
contract.description,
[],
[]
];
return await fetchPolaris({
op: '13610258',
data: sendData,
subdomain
});
};
``` | /content/code_sandbox/packages/plugin-syncpolaris-api/src/utils/loan/createSchedule.ts | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 266 |
```xml
import { c } from 'ttag';
import { SERVER_FEATURES } from '@proton/shared/lib/constants';
import type { GatewayDto } from './GatewayDto';
import type { GatewayLogical } from './GatewayLogical';
import type { GatewayServer } from './GatewayServer';
import type { GatewayUser } from './GatewayUser';
export const getSuffix = (name: string | undefined) => name?.match(/#\d+$/)?.[0] || '';
const getAverageLoad = (servers: GatewayServer[]) =>
servers.reduce((load, server) => load + server.Load, 0) / servers.length;
const getColorForLoad = (load: number): string => {
if (load > 90) {
return 'danger';
}
if (load > 75) {
return 'warning';
}
return 'success';
};
export const getFormattedLoad = (servers: GatewayServer[]) => {
const load = Math.max(0, Math.min(100, Math.round(getAverageLoad(servers))));
return <span className={'color-' + getColorForLoad(load)}>{load}%</span>;
};
const getInitialQuantities = (countries: readonly string[]) => {
const quantities: Record<string, 1> = {};
// Add 2 by default in different countries (take 1 in each of the 2 first countries)
for (let i = 0; i < 2 && countries[i]; i++) {
quantities[countries[i] as string] = 1;
}
return quantities;
};
export const getTotalAdded = (quantities: Record<string, number> | null | undefined): number =>
Object.values(quantities || {}).reduce((total, quantity) => total + quantity, 0);
export const getInitialModel = (countries: readonly string[]): GatewayDto => ({
country: countries[0] || 'US',
name: '',
features: 0,
userIds: [],
quantities: getInitialQuantities(countries),
});
const getUsersList = (userIds: readonly string[], users: readonly GatewayUser[], key = '') =>
userIds.length
? userIds.map((id) => {
const user = users?.find((user) => user.ID === id);
return <div key={'logical-users-' + key + '-' + id}>{user?.Name || user?.Email}</div>;
})
: '0';
export const getMembers = (users: readonly GatewayUser[], logical: GatewayLogical) =>
logical.Features & SERVER_FEATURES.DOUBLE_RESTRICTION
? getUsersList(logical.Users, users, logical.ID)
: /* translator: The whole organization has access to the gateway */ c('Info').t`Whole organization`;
``` | /content/code_sandbox/packages/components/containers/vpn/gateways/helpers.tsx | xml | 2016-06-08T11:16:51 | 2024-08-16T14:14:27 | WebClients | ProtonMail/WebClients | 4,300 | 574 |
```xml
import {JsonEntityFn} from "./jsonEntityFn.js";
/**
* Add title metadata on the decorated element.
*
* ::: warning
* For v6 user, use @@Title@@ from @tsed/schema instead of @tsed/common.
* :::
*
* ## Example
*
* ```typescript
* class Model {
* @Title("title")
* id: string;
* }
* ```
*
* Will produce:
*
* ```json
* {
* "type": "object",
* "properties": {
* "id": {
* "type": "string",
* "title": "title"
* }
* }
* }
* ```
*
* @param {string} title
* @decorator
* @validation
* @swagger
* @schema
* @classDecorator
* @input
*/
export function Title(title: string) {
return JsonEntityFn((entity) => {
entity.schema.title(title);
});
}
``` | /content/code_sandbox/packages/specs/schema/src/decorators/common/title.ts | xml | 2016-02-21T18:38:47 | 2024-08-14T21:19:48 | tsed | tsedio/tsed | 2,817 | 206 |
```xml
//
//
// Microsoft Bot Framework: path_to_url
//
// Bot Framework Emulator Github:
// path_to_url
//
// All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
/* eslint-disable @typescript-eslint/no-var-requires */
const base64url = require('base64url');
const getPem = require('rsa-pem-from-mod-exp');
/* eslint-enable @typescript-eslint/no-var-requires */
export class OpenIdMetadata {
private lastUpdated = 0;
private keys: Key[];
constructor(public fetch: any, public url: string) {}
public async getKey(keyId: string) {
// If keys are more than 5 days old, refresh them
const now = new Date().getTime();
if (this.lastUpdated < now - 1000 * 60 * 60 * 24 * 5) {
try {
await this.refreshCache();
} catch {
// Do nothing
}
}
return this.findKey(keyId);
}
private async refreshCache() {
const resp1 = await this.fetch(this.url);
if (resp1.status >= 400) {
throw new Error(`Failed to load openID config: ${resp1.statusCode}`);
}
const openIdConfig = (await resp1.json()) as OpenIdConfig;
const resp2 = await this.fetch(openIdConfig.jwks_uri);
if (resp2.status >= 400) {
throw new Error(`Failed to load Keys: ${resp2.statusCode}`);
}
this.lastUpdated = new Date().getTime();
this.keys = (await resp2.json()).keys as Key[];
}
private findKey(keyId: string): string {
if (!this.keys) {
return null;
}
for (let i = 0; i < this.keys.length; i++) {
if (this.keys[i].kid === keyId) {
const key = this.keys[i];
if (!key.n || !key.e) {
// Return null for non-RSA keys
return null;
}
return getPem(base64url.toBase64(key.n), key.e);
}
}
return null;
}
}
interface OpenIdConfig {
issuer: string;
authorization_endpoint: string;
jwks_uri: string;
id_token_signing_alg_values_supported: string[];
token_endpoint_auth_methods_supported: string[];
}
interface Key {
kty: string;
use: string;
kid: string;
x5t: string;
n: string;
e: string;
x5c: string[];
}
``` | /content/code_sandbox/packages/app/main/src/server/utils/openIdMetadata.ts | xml | 2016-11-11T23:15:09 | 2024-08-16T12:45:29 | BotFramework-Emulator | microsoft/BotFramework-Emulator | 1,803 | 766 |
```xml
// See LICENSE in the project root for license information.
import { AlreadyReportedError } from '@rushstack/node-core-library';
import { Colorize, type ITerminal } from '@rushstack/terminal';
import type { RushConfiguration } from '../../api/RushConfiguration';
import { type PackageJsonDependency, DependencyType } from '../../api/PackageJsonEditor';
import type { CommonVersionsConfiguration } from '../../api/CommonVersionsConfiguration';
import type { VersionMismatchFinderEntity } from './VersionMismatchFinderEntity';
import { VersionMismatchFinderProject } from './VersionMismatchFinderProject';
import { VersionMismatchFinderCommonVersions } from './VersionMismatchFinderCommonVersions';
import { CustomTipId } from '../../api/CustomTipsConfiguration';
import type { Subspace } from '../../api/Subspace';
const TRUNCATE_AFTER_PACKAGE_NAME_COUNT: number = 5;
export interface IVersionMismatchFinderOptions {
subspace: Subspace;
}
export interface IVersionMismatchFinderRushCheckOptions extends IVersionMismatchFinderOptions {
printAsJson?: boolean | undefined;
truncateLongPackageNameLists?: boolean | undefined;
subspace: Subspace;
}
export interface IVersionMismatchFinderEnsureConsistentVersionsOptions
extends IVersionMismatchFinderOptions {}
export interface IVersionMismatchFinderGetMismatchesOptions extends IVersionMismatchFinderOptions {}
export interface IMismatchDependency {
dependencyName: string;
versions: IMismatchDependencyVersion[];
}
export interface IMismatchDependencyVersion {
version: string;
projects: string[];
}
export interface IMismatchDependencies {
mismatchedVersions: IMismatchDependency[];
}
export class VersionMismatchFinder {
/* store it like this:
* {
* "@types/node": {
* "1.0.0": [ '@ms/rush' ]
* }
* }
*/
private _allowedAlternativeVersion: Map<string, ReadonlyArray<string>>;
private _mismatches: Map<string, Map<string, VersionMismatchFinderEntity[]>>;
private _projects: VersionMismatchFinderEntity[];
public constructor(
projects: VersionMismatchFinderEntity[],
allowedAlternativeVersions?: Map<string, ReadonlyArray<string>>
) {
this._projects = projects;
this._mismatches = new Map<string, Map<string, VersionMismatchFinderEntity[]>>();
this._allowedAlternativeVersion = allowedAlternativeVersions || new Map<string, ReadonlyArray<string>>();
this._analyze();
}
public static rushCheck(
rushConfiguration: RushConfiguration,
terminal: ITerminal,
options: IVersionMismatchFinderRushCheckOptions = {
subspace: rushConfiguration.defaultSubspace
}
): void {
VersionMismatchFinder._checkForInconsistentVersions(rushConfiguration, {
...options,
terminal,
isRushCheckCommand: true
});
}
public static ensureConsistentVersions(
rushConfiguration: RushConfiguration,
terminal: ITerminal,
options: IVersionMismatchFinderEnsureConsistentVersionsOptions = {
subspace: rushConfiguration.defaultSubspace
}
): void {
VersionMismatchFinder._checkForInconsistentVersions(rushConfiguration, {
...options,
terminal,
isRushCheckCommand: false,
truncateLongPackageNameLists: true
});
}
/**
* Populates a version mismatch finder object given a Rush Configuration.
* Intentionally considers preferred versions.
*/
public static getMismatches(
rushConfiguration: RushConfiguration,
options: IVersionMismatchFinderOptions = {
subspace: rushConfiguration.defaultSubspace
}
): VersionMismatchFinder {
const commonVersions: CommonVersionsConfiguration = options.subspace.getCommonVersions();
const projects: VersionMismatchFinderEntity[] = [];
// Create an object for the purposes of reporting conflicts with preferredVersions from common-versions.json
// Make sure this one is first so it doesn't get truncated when a long list is printed
projects.push(new VersionMismatchFinderCommonVersions(commonVersions));
// If subspace is specified, only go through projects in that subspace
for (const project of options.subspace.getProjects()) {
projects.push(new VersionMismatchFinderProject(project));
}
return new VersionMismatchFinder(projects, commonVersions.allowedAlternativeVersions);
}
private static _checkForInconsistentVersions(
rushConfiguration: RushConfiguration,
options: {
isRushCheckCommand: boolean;
subspace: Subspace;
printAsJson?: boolean | undefined;
terminal: ITerminal;
truncateLongPackageNameLists?: boolean | undefined;
}
): void {
if (options.subspace.shouldEnsureConsistentVersions || options.isRushCheckCommand) {
const mismatchFinder: VersionMismatchFinder = VersionMismatchFinder.getMismatches(
rushConfiguration,
options
);
if (options.printAsJson) {
mismatchFinder.printAsJson();
} else {
mismatchFinder.print(options.truncateLongPackageNameLists);
if (mismatchFinder.numberOfMismatches > 0) {
// eslint-disable-next-line no-console
console.log(
Colorize.red(
`Found ${mismatchFinder.numberOfMismatches} mis-matching dependencies ${
options.subspace?.subspaceName ? `in subspace: ${options.subspace?.subspaceName}` : ''
}`
)
);
rushConfiguration.customTipsConfiguration._showErrorTip(
options.terminal,
CustomTipId.TIP_RUSH_INCONSISTENT_VERSIONS
);
if (!options.isRushCheckCommand && options.truncateLongPackageNameLists) {
// There isn't a --verbose flag in `rush install`/`rush update`, so a long list will always be truncated.
// eslint-disable-next-line no-console
console.log(
'For more detailed reporting about these version mismatches, use the "rush check --verbose" command.'
);
}
throw new AlreadyReportedError();
} else {
if (options.isRushCheckCommand) {
// eslint-disable-next-line no-console
console.log(Colorize.green(`Found no mis-matching dependencies!`));
}
}
}
}
}
public get mismatches(): ReadonlyMap<string, ReadonlyMap<string, readonly VersionMismatchFinderEntity[]>> {
return this._mismatches;
}
public get numberOfMismatches(): number {
return this._mismatches.size;
}
public getMismatches(): string[] {
return this._getKeys(this._mismatches);
}
public getVersionsOfMismatch(mismatch: string): string[] | undefined {
return this._mismatches.has(mismatch) ? this._getKeys(this._mismatches.get(mismatch)) : undefined;
}
public getConsumersOfMismatch(
mismatch: string,
version: string
): VersionMismatchFinderEntity[] | undefined {
const mismatchedPackage: Map<string, VersionMismatchFinderEntity[]> | undefined =
this._mismatches.get(mismatch);
if (!mismatchedPackage) {
return undefined;
}
const mismatchedVersion: VersionMismatchFinderEntity[] | undefined = mismatchedPackage.get(version);
return mismatchedVersion;
}
public printAsJson(): void {
const mismatchDependencies: IMismatchDependency[] = [];
this.getMismatches().forEach((dependency: string) => {
const mismatchDependencyVersionArray: IMismatchDependencyVersion[] = [];
this.getVersionsOfMismatch(dependency)!.forEach((version: string) => {
const projects: string[] = [];
this.getConsumersOfMismatch(dependency, version)!.forEach((project: VersionMismatchFinderEntity) => {
projects.push(project.friendlyName);
});
const mismatchDependencyVersion: IMismatchDependencyVersion = {
version: version,
projects: projects
};
mismatchDependencyVersionArray.push(mismatchDependencyVersion);
});
const mismatchDependency: IMismatchDependency = {
dependencyName: dependency,
versions: mismatchDependencyVersionArray
};
mismatchDependencies.push(mismatchDependency);
});
const output: IMismatchDependencies = {
mismatchedVersions: mismatchDependencies
};
// eslint-disable-next-line no-console
console.log(JSON.stringify(output, undefined, 2));
}
public print(truncateLongPackageNameLists: boolean = false): void {
// Iterate over the list. For any dependency with mismatching versions, print the projects
this.getMismatches().forEach((dependency: string) => {
// eslint-disable-next-line no-console
console.log(Colorize.yellow(dependency));
this.getVersionsOfMismatch(dependency)!.forEach((version: string) => {
// eslint-disable-next-line no-console
console.log(` ${version}`);
const consumersOfMismatch: VersionMismatchFinderEntity[] = this.getConsumersOfMismatch(
dependency,
version
)!;
let numberToPrint: number = truncateLongPackageNameLists
? TRUNCATE_AFTER_PACKAGE_NAME_COUNT
: consumersOfMismatch.length;
let numberRemaining: number = consumersOfMismatch.length;
for (const { friendlyName } of consumersOfMismatch) {
if (numberToPrint-- === 0) {
break;
}
numberRemaining--;
// eslint-disable-next-line no-console
console.log(` - ${friendlyName}`);
}
if (numberRemaining > 0) {
// eslint-disable-next-line no-console
console.log(` (and ${numberRemaining} others)`);
}
});
// eslint-disable-next-line no-console
console.log();
});
}
private _analyze(): void {
this._projects.forEach((project: VersionMismatchFinderEntity) => {
if (!project.skipRushCheck) {
// NOTE: We do not consider peer dependencies here. The purpose of "rush check" is
// mainly to avoid side-by-side duplicates in the node_modules folder, whereas
// peer dependencies are just a compatibility statement that will be satisfied by a
// regular dependency. (It might be useful for Rush to help people keep their peer dependency
// patterns consistent, but on the other hand different projects may have different
// levels of compatibility -- we should wait for someone to actually request this feature
// before we get into that.)
project.allDependencies.forEach((dependency: PackageJsonDependency) => {
if (dependency.dependencyType !== DependencyType.Peer) {
const version: string = dependency.version!;
const isCyclic: boolean = project.decoupledLocalDependencies.has(dependency.name);
if (this._isVersionAllowedAlternative(dependency.name, version)) {
return;
}
const name: string = dependency.name + (isCyclic ? ' (cyclic)' : '');
let dependencyVersions: Map<string, VersionMismatchFinderEntity[]> | undefined =
this._mismatches.get(name);
if (!dependencyVersions) {
this._mismatches.set(
name,
(dependencyVersions = new Map<string, VersionMismatchFinderEntity[]>())
);
}
const consumers: VersionMismatchFinderEntity[] | undefined = dependencyVersions.get(version);
if (!consumers) {
dependencyVersions.set(version, [project]);
} else {
consumers.push(project);
}
}
});
}
});
this._mismatches.forEach((mismatches: Map<string, VersionMismatchFinderEntity[]>, project: string) => {
if (mismatches.size <= 1) {
this._mismatches.delete(project);
}
});
}
private _isVersionAllowedAlternative(dependency: string, version: string): boolean {
const allowedAlternatives: ReadonlyArray<string> | undefined =
this._allowedAlternativeVersion.get(dependency);
return Boolean(allowedAlternatives && allowedAlternatives.indexOf(version) > -1);
}
// eslint-disable-next-line @typescript-eslint/no-explicit-any
private _getKeys(iterable: Map<string, any> | undefined): string[] {
const keys: string[] = [];
if (iterable) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
iterable.forEach((value: any, key: string) => {
keys.push(key);
});
}
return keys;
}
}
``` | /content/code_sandbox/libraries/rush-lib/src/logic/versionMismatch/VersionMismatchFinder.ts | xml | 2016-09-30T00:28:20 | 2024-08-16T18:54:35 | rushstack | microsoft/rushstack | 5,790 | 2,585 |
```xml
// Technically this should be shades and tints, but for simplicity we'll call everything a shade.
/*
* This utility module is used with theming. Given a color to shade, whether the theme is inverted
* (i.e. is a dark color), and the desired shade enum, this will return an appropriate shade of that color.
*/
import { MAX_COLOR_RGB } from './consts';
import { assign } from '../../Utilities';
import { clamp } from './clamp';
import { getColorFromRGBA } from './getColorFromRGBA';
import { hsv2hsl } from './hsv2hsl';
import { hsv2rgb } from './hsv2rgb';
import type { IHSV, IColor } from './interfaces';
// Soften: to get closer to the background color's luminance
// (softening with a white background would be lightening, with black it'd be darkening)
// Strongen: opposite of soften
// Luminance multiplier constants for generating shades of a given color
const WhiteShadeTableBG = [0.027, 0.043, 0.082, 0.145, 0.184, 0.216, 0.349, 0.537]; // white bg
const BlackTintTableBG = [0.537, 0.45, 0.349, 0.216, 0.184, 0.145, 0.082, 0.043]; // black bg
const WhiteShadeTable = [0.537, 0.349, 0.216, 0.184, 0.145, 0.082, 0.043, 0.027]; // white fg
const BlackTintTable = [0.537, 0.45, 0.349, 0.216, 0.184, 0.145, 0.082, 0.043]; // black fg
const LumTintTable = [0.88, 0.77, 0.66, 0.55, 0.44, 0.33, 0.22, 0.11]; // light (strongen all)
const LumShadeTable = [0.11, 0.22, 0.33, 0.44, 0.55, 0.66, 0.77, 0.88]; // dark (soften all)
const ColorTintTable = [0.96, 0.84, 0.7, 0.4, 0.12]; // default soften
const ColorShadeTable = [0.1, 0.24, 0.44]; // default strongen
// If the given shade's luminance is below/above these values, we'll swap to using the White/Black tables above
const LowLuminanceThreshold = 0.2;
const HighLuminanceThreshold = 0.8;
/** Shades of a given color, from softest to strongest. */
export enum Shade {
Unshaded = 0,
Shade1 = 1,
Shade2 = 2,
Shade3 = 3,
Shade4 = 4,
Shade5 = 5,
Shade6 = 6,
Shade7 = 7,
Shade8 = 8,
// remember to update isValidShade()!
}
/**
* Returns true if the argument is a valid Shade value
* @param shade - The Shade value to validate.
*/
export function isValidShade(shade?: Shade): boolean {
return typeof shade === 'number' && shade >= Shade.Unshaded && shade <= Shade.Shade8;
}
function _isBlack(color: IColor): boolean {
return color.r === 0 && color.g === 0 && color.b === 0;
}
function _isWhite(color: IColor): boolean {
return color.r === MAX_COLOR_RGB && color.g === MAX_COLOR_RGB && color.b === MAX_COLOR_RGB;
}
function _darken(hsv: IHSV, factor: number): IHSV {
return {
h: hsv.h,
s: hsv.s,
v: clamp(hsv.v - hsv.v * factor, 100, 0),
};
}
function _lighten(hsv: IHSV, factor: number): IHSV {
return {
h: hsv.h,
s: clamp(hsv.s - hsv.s * factor, 100, 0),
v: clamp(hsv.v + (100 - hsv.v) * factor, 100, 0),
};
}
export function isDark(color: IColor): boolean {
return hsv2hsl(color.h, color.s, color.v).l < 50;
}
/**
* Given a color and a shade specification, generates the requested shade of the color.
* Logic:
* if white
* darken via tables defined above
* if black
* lighten
* if light
* strongen
* if dark
* soften
* else default
* soften or strongen depending on shade#
* @param color - The base color whose shade is to be computed
* @param shade - The shade of the base color to compute
* @param isInverted - Default false. Whether the given theme is inverted (reverse strongen/soften logic)
*/
export function getShade(color: IColor, shade: Shade, isInverted: boolean = false): IColor | null {
if (!color) {
return null;
}
if (shade === Shade.Unshaded || !isValidShade(shade)) {
return color;
}
const hsl = hsv2hsl(color.h, color.s, color.v);
let hsv = { h: color.h, s: color.s, v: color.v };
const tableIndex = shade - 1;
let _soften = _lighten;
let _strongen = _darken;
if (isInverted) {
_soften = _darken;
_strongen = _lighten;
}
if (_isWhite(color)) {
// white
hsv = _darken(hsv, WhiteShadeTable[tableIndex]);
} else if (_isBlack(color)) {
// black
hsv = _lighten(hsv, BlackTintTable[tableIndex]);
} else if (hsl.l / 100 > HighLuminanceThreshold) {
// light
hsv = _strongen(hsv, LumShadeTable[tableIndex]);
} else if (hsl.l / 100 < LowLuminanceThreshold) {
// dark
hsv = _soften(hsv, LumTintTable[tableIndex]);
} else {
// default
if (tableIndex < ColorTintTable.length) {
hsv = _soften(hsv, ColorTintTable[tableIndex]);
} else {
hsv = _strongen(hsv, ColorShadeTable[tableIndex - ColorTintTable.length]);
}
}
return getColorFromRGBA(assign(hsv2rgb(hsv.h, hsv.s, hsv.v), { a: color.a }));
}
// Background shades/tints are generated differently. The provided color will be guaranteed
// to be the darkest or lightest one. If it is <50% luminance, it will always be the darkest,
// otherwise it will always be the lightest.
export function getBackgroundShade(color: IColor, shade: Shade, isInverted: boolean = false): IColor | null {
if (!color) {
return null;
}
if (shade === Shade.Unshaded || !isValidShade(shade)) {
return color;
}
let hsv = { h: color.h, s: color.s, v: color.v };
const tableIndex = shade - 1;
if (!isInverted) {
// lightish
hsv = _darken(hsv, WhiteShadeTableBG[tableIndex]);
} else {
// default: if (hsl.l / 100 < .5) { // darkish
hsv = _lighten(hsv, BlackTintTableBG[BlackTintTable.length - 1 - tableIndex]);
}
return getColorFromRGBA(assign(hsv2rgb(hsv.h, hsv.s, hsv.v), { a: color.a }));
}
/* Calculates the contrast ratio between two colors. Used for verifying
* color pairs meet minimum accessibility requirements.
* See: path_to_url section 1.4.3
*/
export function getContrastRatio(color1: IColor, color2: IColor): number {
// Formula defined by: path_to_url#contrast-ratiodef
// relative luminance: path_to_url#relativeluminancedef
/* calculate the intermediate value needed to calculating relative luminance */
function _getThing(x: number): number {
if (x <= 0.03928) {
return x / 12.92;
} else {
return Math.pow((x + 0.055) / 1.055, 2.4);
}
}
const r1 = _getThing(color1.r / MAX_COLOR_RGB);
const g1 = _getThing(color1.g / MAX_COLOR_RGB);
const b1 = _getThing(color1.b / MAX_COLOR_RGB);
let L1 = 0.2126 * r1 + 0.7152 * g1 + 0.0722 * b1; // relative luminance of first color
L1 += 0.05;
const r2 = _getThing(color2.r / MAX_COLOR_RGB);
const g2 = _getThing(color2.g / MAX_COLOR_RGB);
const b2 = _getThing(color2.b / MAX_COLOR_RGB);
let L2 = 0.2126 * r2 + 0.7152 * g2 + 0.0722 * b2; // relative luminance of second color
L2 += 0.05;
// return the lighter color divided by darker
return L1 / L2 > 1 ? L1 / L2 : L2 / L1;
}
``` | /content/code_sandbox/packages/react/src/utilities/color/shades.ts | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 2,171 |
```xml
import {
ChangeDetectionStrategy,
ChangeDetectorRef,
Component,
Inject,
LOCALE_ID,
OnDestroy,
OnInit,
} from '@angular/core';
import { AuthService } from '~modules/auth/shared/auth.service';
import { ObservableInput, Subject, takeUntil, throwError as observableThrowError } from 'rxjs';
import { AuthRepository } from '~modules/auth/store/auth.repository';
import EventBusEvent, {
EventBCType,
EventBusService,
EventBusType,
} from '~modules/shared/services/event-bus.service';
import { AlertId, AlertService } from '~modules/shared/services/alert.service';
import { User } from '~modules/user/shared/user.model';
import { translations } from '../locale/translations';
import { AppConfig } from './configs/app.config';
import { NgIf } from '@angular/common';
import { ActivatedRoute, Event, NavigationEnd, Router, RouterOutlet } from '@angular/router';
import { authRoutes } from '~modules/auth/shared/auth-routes';
import { Title } from '@angular/platform-browser';
import { catchError } from 'rxjs/operators';
import { HttpEvent } from '@angular/common/http';
import { HeaderComponent } from '~modules/shared/components/header/header.component';
import { SidebarComponent } from '~modules/shared/components/sidebar/sidebar.component';
import { FooterComponent } from '~modules/shared/components/footer/footer.component';
import { AlertComponent } from '~modules/shared/components/alert/alert.component';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush,
imports: [RouterOutlet, NgIf, HeaderComponent, SidebarComponent, FooterComponent, AlertComponent],
standalone: true,
})
export class AppComponent implements OnInit, OnDestroy {
destroy$: Subject<boolean> = new Subject<boolean>();
user: User | undefined;
isLoggedIn: boolean | undefined;
isArrivalRoute: boolean;
isLoggingOut: boolean;
window: Window;
// eslint-disable-next-line max-params
constructor(
private eventBusService: EventBusService,
private router: Router,
private authService: AuthService,
private alertService: AlertService,
private authRepository: AuthRepository,
private changeDetectorRef: ChangeDetectorRef,
private activatedRoute: ActivatedRoute,
private titleService: Title,
private document: Document,
@Inject(LOCALE_ID) public locale: string,
) {
this.isLoggingOut = false;
this.isArrivalRoute = false;
this.window = this.document.defaultView as Window;
}
ngOnInit() {
this.checkAccessToken();
this.subscribeForEvents();
this.loadUserInfo();
this.setMetaTags();
}
loadUserInfo() {
this.authRepository
.isLoggedIn()
.pipe(takeUntil(this.destroy$))
.subscribe((isLoggedIn: boolean) => {
this.isLoggedIn = isLoggedIn;
});
this.authRepository.$user.pipe(takeUntil(this.destroy$)).subscribe(user => {
if (user) {
this.user = user;
}
});
}
subscribeForEvents() {
this.eventBusService.eventsBC.onmessage = event => {
if (event.data.type === EventBCType.SESSION_CHANGED) {
this.window.location.reload();
}
};
this.eventBusService.events$.pipe(takeUntil(this.destroy$)).subscribe(event => {
if (event.type === EventBusType.FINISH_LOGOUT) {
this.closeSessionAndReload(event);
}
});
this.router.events.pipe(takeUntil(this.destroy$)).subscribe(event => {
this.handleRouteEvent(event);
});
this.window.onfocus = () => {
this.checkAccessToken();
};
}
handleRouteEvent(event: Event) {
if (event instanceof NavigationEnd) {
const refreshToken = this.authRepository.getRefreshTokenValue();
if (refreshToken) {
const refreshTokenValue = AuthService.decodeToken(refreshToken);
const isRefreshTokenExpired = Date.now() >= (refreshTokenValue?.exp ?? 0) * 1000;
if (isRefreshTokenExpired && !event.url.includes(authRoutes.logout)) {
this.router.navigate([authRoutes.logout], {
queryParams: {
origin: encodeURIComponent(this.window.location.href),
alertId: AlertId.SESSION_EXPIRED,
},
});
}
}
const alertId = this.activatedRoute.snapshot.queryParams[AppConfig.customQueryParams.alertId];
if (alertId) {
this.alertService.create(alertId);
}
this.isArrivalRoute = [
`/${this.locale}` + authRoutes.logIn,
`/${this.locale}` + authRoutes.register,
].includes(this.router.url);
}
}
closeSessionAndReload(event: EventBusEvent) {
this.isLoggingOut = true;
this.changeDetectorRef.detectChanges();
this.eventBusService.eventsBC.postMessage({
type: EventBCType.SESSION_CHANGED,
});
this.window.location.href = (event.data as { path: string }).path;
}
checkAccessToken() {
const accessToken = this.authRepository.getAccessTokenValue();
const refreshToken = this.authRepository.getRefreshTokenValue();
if (accessToken && refreshToken) {
const accessTokenValue = AuthService.decodeToken(accessToken);
const isAccessTokenExpired = Date.now() >= (accessTokenValue?.exp ?? 0) * 1000;
const refreshTokenValue = AuthService.decodeToken(refreshToken);
const isRefreshTokenExpired = Date.now() >= (refreshTokenValue?.exp ?? 0) * 1000;
if (isAccessTokenExpired) {
if (!isRefreshTokenExpired) {
this.authService
.refreshToken()
.pipe(
takeUntil(this.destroy$),
catchError((error): ObservableInput<HttpEvent<unknown>> => {
this.navigateToLogout();
throw new Error(error);
}),
)
.subscribe();
} else {
this.navigateToLogout();
return observableThrowError(() => new Error());
}
}
}
return true;
}
navigateToLogout() {
this.router.navigate([authRoutes.logout], {
queryParams: {
origin: encodeURIComponent(this.window.location.href),
alertId: AlertId.SESSION_EXPIRED,
},
});
}
setMetaTags() {
this.titleService.setTitle(translations.title);
}
ngOnDestroy() {
this.destroy$.next(true);
this.destroy$.unsubscribe();
}
}
``` | /content/code_sandbox/src/app/app.component.ts | xml | 2016-11-22T17:10:18 | 2024-08-14T21:36:59 | angular-example-app | Ismaestro/angular-example-app | 2,150 | 1,339 |
```xml
<vector xmlns:android="path_to_url"
android:width="24dp"
android:height="24dp"
android:viewportHeight="48.0"
android:viewportWidth="48.0">
<path
android:fillColor="#F5F5F5"
android:pathData="M24,24m-24,0a24,24 0,1 1,48 0a24,24 0,1 1,-48 0"
android:strokeColor="#00000000"
android:strokeWidth="1"/>
<path
android:fillColor="#00D1C1"
android:pathData="M22.09,27.59L23.5,29L28.5,24L23.5,19L22.09,20.41L24.67,23L15,23L15,25L24.67,25L22.09,27.59L22.09,27.59ZM31,15L17,15C15.89,15 15,15.9 15,17L15,21L17,21L17,17L31,17L31,31L17,31L17,27L15,27L15,31C15,32.1 15.89,33 17,33L31,33C32.1,33 33,32.1 33,31L33,17C33,15.9 32.1,15 31,15L31,15Z"
android:strokeColor="#00000000"
android:strokeWidth="1"/>
</vector>
``` | /content/code_sandbox/sample/src/main/res/drawable/ic_shortcut_animated_app_tutorial.xml | xml | 2016-10-06T22:42:42 | 2024-08-16T18:32:58 | lottie-android | airbnb/lottie-android | 34,892 | 359 |
```xml
import { extractStyleParts } from './extractStyleParts';
import { IStyle, IStyleBaseArray } from './IStyle';
import { IStyleOptions } from './IStyleOptions';
import { isShadowConfig, ShadowConfig } from './shadowConfig';
import { getStyleOptions } from './StyleOptionsState';
import { Stylesheet } from './Stylesheet';
import { styleToClassName } from './styleToClassName';
type Missing = false | null | undefined;
type StyleArg = IStyle | IStyleBaseArray | Missing;
type StyleArgWithShadow = StyleArg | ShadowConfig;
export function mergeStyles(...args: StyleArg[]): string;
export function mergeStyles(shadowConfig: ShadowConfig, ...args: StyleArg[]): string;
/**
* Concatenation helper, which can merge class names together. Skips over falsey values.
*
* @public
*/
export function mergeStyles(...args: any[]): string {
return mergeCss(args, getStyleOptions());
}
/**
* Concatenation helper, which can merge class names together. Skips over falsey values.
* Accepts a set of options that will be used when calculating styles.
*
* @public
*/
export function mergeCss(args: StyleArgWithShadow | StyleArgWithShadow[], options?: IStyleOptions): string {
const styleArgs = args instanceof Array ? args : [args];
const opts = options || {};
const hasShadowConfig = isShadowConfig(styleArgs[0]);
if (hasShadowConfig) {
opts.shadowConfig = styleArgs[0] as ShadowConfig;
}
opts.stylesheet = Stylesheet.getInstance(opts.shadowConfig);
const { classes, objects } = extractStyleParts(opts.stylesheet, styleArgs);
if (objects.length) {
classes.push(styleToClassName(opts, objects));
}
return classes.join(' ');
}
``` | /content/code_sandbox/packages/merge-styles/src/mergeStyles.ts | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 384 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "path_to_url">
<mapper namespace="org.maxkey.persistence.mapper.GroupMemberMapper">
<sql id="where_statement">
<if test="id != null and id != ''">
and id = #{id}
</if>
<if test="name != null and name != ''">
and name = #{name}
</if>
</sql>
<!-- GROUP_MEMBER User Member-->
<select id="allMemberInGroup" parameterType="GroupMember" resultType="GroupMember">
select distinct u.id,
u.username,
u.usertype,
u.windowsaccount,
u.displayname,
u.nickname,
u.namezhspell,
u.namezhshortspell,
u.givenname,
u.middlename,
u.familyname,
u.gender,
u.authntype,
u.mobile,
u.email,
u.workemail,
u.workphonenumber,
u.employeenumber,
u.division,
u.costcenter,
u.organization,
u.departmentid,
u.department,
u.jobtitle,
u.joblevel,
u.createddate,
u.status
from mxk_userinfo u
where instid = #{instId}
</select>
<select id="memberInGroup" parameterType="GroupMember" resultType="GroupMember">
select distinct
gm.id,
u.username,
u.usertype,
u.windowsaccount,
u.displayname ,
u.nickname ,
u.namezhspell,
u.namezhshortspell,
u.givenname ,
u.middlename ,
u.familyname ,
u.gender,
u.authntype,
u.mobile,
u.email,
u.workemail,
u.workphonenumber,
u.employeenumber,
u.division,
u.costcenter,
u.organization,
u.departmentid,
u.department,
u.jobtitle,
u.joblevel,
gm.createddate,
u.status
from
mxk_userinfo u,
mxk_groups g,
mxk_group_member gm
where u.instid = #{instId}
and g.instid = #{instId}
and gm.instid = #{instId}
<if test="groupId != null and groupId != ''">
and gm.groupid = #{groupId}
and g.id = #{groupId}
</if>
<if test="groupName != null and groupName != ''">
and g.name = #{groupName}
</if>
<if test="username != null and username != ''">
and u.username = #{username}
</if>
<if test="displayName != null and displayName != ''">
and u.displayname like '%${displayName}%'
</if>
and gm.type in( 'USER','USER-DYNAMIC')
and gm.groupid = g.id
and gm.memberid = u.id
</select>
<select id="memberNotInGroup" parameterType="GroupMember" resultType="GroupMember">
select distinct
u.id,
u.username,
u.usertype,
u.windowsaccount,
u.displayname ,
u.nickname ,
u.namezhspell,
u.namezhshortspell,
u.givenname ,
u.middlename ,
u.familyname ,
u.gender,
u.authntype,
u.mobile,
u.email,
u.workemail,
u.workphonenumber,
u.employeenumber,
u.division,
u.costcenter,
u.organization,
u.departmentid,
u.department,
u.jobtitle,
u.joblevel,
u.createdby,
u.createddate,
u.modifiedby,
u.modifieddate,
u.status
from
mxk_userinfo u
where
u.id not in(
select gm.memberid
from mxk_groups g,mxk_group_member gm
where 1 = 1
<if test="groupId != null and groupId != ''">
and gm.groupid = #{groupId}
and g.id = #{groupId}
</if>
<if test="groupName != null and groupName != ''">
and g.name = #{groupName}
</if>
and gm.type in( 'USER','USER-DYNAMIC')
and gm.groupid = g.id
)
<if test="username != null and username != ''">
and u.username = #{username}
</if>
<if test="displayName != null and displayName != ''">
and u.displayname like '%${displayName}%'
</if>
</select>
<!-- GROUP_MEMBER Group Member-->
<select id="groupMemberInGroup" parameterType="GroupMember" resultType="Groups">
select distinct
ig.*
from
mxk_groups ig,
mxk_groups g,
mxk_group_member gm
where
1 = 1
and gm.groupid = g.id
and gm.memberid = ig.id
and gm.type = 'GROUP'
<if test="groupId != null and groupId != ''">
and gm.groupid = #{groupId}
and g.id = #{groupId}
</if>
<if test="groupName != null and groupName != ''">
and g.name = #{groupName}
</if>
</select>
<update id="addDynamicGroupMember" parameterType="Groups">
insert into mxk_group_member(
id,
groupid,
memberid,
type
)
select
concat('${id}',u.id) id,
'${id}' groupid,
u.id memberid,
'USER-DYNAMIC' TYPE
from mxk_userinfo u
where not exists(
select 1 from mxk_group_member gm
where gm.groupid=#{id}
and gm.memberid=u.id
and gm.type='USER-DYNAMIC'
)
<if test="filters != null and filters != ''">
and (${filters})
</if>
<if test="orgIdsList != null and orgIdsList != ''">
and u.departmentid in( ${orgIdsList})
</if>
</update>
<delete id="deleteDynamicGroupMember" parameterType="Groups">
delete from mxk_group_member gm
where type = 'user-dynamic'
and gm.groupid=#{id}
and not exists(
select 1
from mxk_userinfo u
where 1 = 1
and u.id=gm.memberid
<if test="filters != null and filters != ''">
and (${filters})
</if>
<if test="orgIdsList != null and orgIdsList != ''">
and u.departmentid in ( ${orgIdsList})
</if>
)
</delete>
<select id="queryMemberByGroupId" parameterType="string" resultType="UserInfo">
select distinct u.id,
u.username,
u.usertype,
u.windowsaccount,
u.displayname,
u.nickname,
u.namezhspell,
u.namezhshortspell,
u.givenname,
u.middlename,
u.familyname,
u.gender,
u.authntype,
u.mobile,
u.email,
u.workemail,
u.workphonenumber,
u.employeenumber,
u.division,
u.costcenter,
u.organization,
u.departmentid,
u.department,
u.jobtitle,
u.joblevel,
gm.createddate,
u.status
from mxk_userinfo u,
mxk_groups g,
mxk_group_member gm
where 1 = 1
and gm.groupid = #{value}
and g.id = #{value}
and gm.type in ('USER', 'USER-DYNAMIC')
and gm.groupid = g.id
and gm.memberid = u.id
</select>
<delete id="deleteByGroupId" parameterType="string">
delete
from mxk_group_member gm
where gm.groupid = #{value}
</delete>
</mapper>
``` | /content/code_sandbox/maxkey-persistence/src/main/resources/org/dromara/maxkey/persistence/mapper/xml/postgresql/GroupMemberMapper.xml | xml | 2016-11-16T03:06:50 | 2024-08-16T09:22:42 | MaxKey | dromara/MaxKey | 1,423 | 1,777 |
```xml
<fxlayout>
<page name="Directional Blur">
<control>angle</control>
<control>intensity</control>
<control>bidirectional</control>
<control>spread</control>
</page>
</fxlayout>
``` | /content/code_sandbox/stuff/profiles/layouts/fxs/STD_directionalBlurFx.xml | xml | 2016-03-18T17:55:48 | 2024-08-15T18:11:38 | opentoonz | opentoonz/opentoonz | 4,445 | 56 |
```xml
export * from '@storybook/core/server-errors';
export type * from '@storybook/core/server-errors';
``` | /content/code_sandbox/code/lib/cli/core/server-errors.d.ts | xml | 2016-03-18T04:23:44 | 2024-08-16T19:22:08 | storybook | storybookjs/storybook | 83,755 | 20 |
```xml
import { EnvironmentParams } from './environment.d';
import {
getRxStorageMemory
} from 'rxdb/plugins/storage-memory';
import {
SYNC_PORT,
DATABASE_NAME
} from '../shared';
export const environment: EnvironmentParams = {
name: 'ssr-prod',
production: true,
isCapacitor: false,
isServerSideRendering: true,
multiInstance: false,
rxdbSyncUrl: 'path_to_url + SYNC_PORT + '/' + DATABASE_NAME,
addRxDBPlugins() { },
getRxStorage() {
return getRxStorageMemory();
},
};
``` | /content/code_sandbox/examples/angular/src/environments/environment.ssr.prod.ts | xml | 2016-12-02T19:34:42 | 2024-08-16T15:47:20 | rxdb | pubkey/rxdb | 21,054 | 130 |
```xml
import * as React from 'react';
import { Grid } from '@fluentui/react-northstar';
import { EmojiIcon, CallVideoIcon } from '@fluentui/react-icons-northstar';
const SvgIconExampleSize = () => (
<Grid rows={2} styles={{ textAlign: 'center' }}>
<EmojiIcon size="smallest" />
<CallVideoIcon size="smallest" />
<EmojiIcon size="smaller" />
<CallVideoIcon size="smaller" />
<EmojiIcon size="small" />
<CallVideoIcon size="small" />
<EmojiIcon />
<CallVideoIcon />
<EmojiIcon size="large" />
<CallVideoIcon size="large" />
<EmojiIcon size="larger" />
<CallVideoIcon size="larger" />
<EmojiIcon size="largest" />
<CallVideoIcon size="largest" />
</Grid>
);
export default SvgIconExampleSize;
``` | /content/code_sandbox/packages/fluentui/docs/src/examples/components/SvgIcon/Variations/SvgIconExampleSize.shorthand.tsx | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 212 |
```xml
import validate from '../src/alpha_spaces';
test('validates that the string may only contain alphabetic characters and spaces', () => {
expect(validate('a', [undefined])).toBe(true);
expect(validate('abcdefgHijklMnOpqRsTUVwxYZ', [undefined])).toBe(true);
expect(validate('', [undefined])).toBe(true);
expect(validate(null, [undefined])).toBe(true);
expect(validate(undefined, [undefined])).toBe(true);
expect(validate('null', [undefined])).toBe(true);
expect(validate('undefined', [undefined])).toBe(true);
expect(validate(true, [undefined])).toBe(true);
expect(validate(false, [undefined])).toBe(true);
expect(validate('this is sparta', [undefined])).toBe(true);
expect(validate(' ', [undefined])).toBe(true);
expect(validate(['adasd dasdasda', 'yy'], [undefined])).toBe(true);
// invalid
expect(validate('123-abc', [undefined])).toBe(false);
expect(validate({}, [undefined])).toBe(false);
expect(validate('1234567890', [undefined])).toBe(false);
expect(validate('abc123', [undefined])).toBe(false);
expect(validate(123, [undefined])).toBe(false);
expect(validate(['adasd dasdasda', '123'], [undefined])).toBe(false);
});
test('validates the string contains alphabetic chars from other locales', () => {
// any locale.
expect(validate(' ', [undefined])).toBe(true);
expect(validate(' ', [undefined])).toBe(true);
// specfic locale
expect(validate('peace', { locale: 'ar' })).toBe(false);
expect(validate('peace', { locale: 'ru' })).toBe(false);
// non-existant locale defaults to english validation.
expect(validate('peace', { locale: 'blah' })).toBe(true);
expect(validate(' ', { locale: 'blah' })).toBe(false); // non english characters.
});
``` | /content/code_sandbox/packages/rules/tests/alpha_spaces.spec.ts | xml | 2016-07-30T01:10:44 | 2024-08-16T10:19:58 | vee-validate | logaretm/vee-validate | 10,699 | 406 |
```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="#FFFFFF" android:pathData="M18,16.08c-0.76,0 -1.44,0.3 -1.96,0.77L8.91,12.7c0.05,-0.23 0.09,-0.46 0.09,-0.7s-0.04,-0.47 -0.09,-0.7l7.05,-4.11c0.54,0.5 1.25,0.81 2.04,0.81 1.66,0 3,-1.34 3,-3s-1.34,-3 -3,-3 -3,1.34 -3,3c0,0.24 0.04,0.47 0.09,0.7L8.04,9.81C7.5,9.31 6.79,9 6,9c-1.66,0 -3,1.34 -3,3s1.34,3 3,3c0.79,0 1.5,-0.31 2.04,-0.81l7.12,4.16c-0.05,0.21 -0.08,0.43 -0.08,0.65 0,1.61 1.31,2.92 2.92,2.92 1.61,0 2.92,-1.31 2.92,-2.92s-1.31,-2.92 -2.92,-2.92z"/>
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/ic_share_white.xml | xml | 2016-04-09T15:47:45 | 2024-08-14T04:30:04 | MusicLake | caiyonglong/MusicLake | 2,654 | 417 |
```xml
import { Component } from '@angular/core';
@Component({
selector: 'json-formatter-demo',
styleUrls: ['./json-formatter-demo.component.scss'],
templateUrl: './json-formatter-demo.component.html',
})
export class JsonFormatterDemoComponent {}
``` | /content/code_sandbox/apps/docs-app/src/app/content/components/component-demos/json-formatter/demos/json-formatter-demo.component.ts | xml | 2016-07-11T23:30:52 | 2024-08-15T15:20:45 | covalent | Teradata/covalent | 2,228 | 51 |
```xml
// See LICENSE in the project root for license information.
import type { WebpackPluginInstance, Compiler } from 'webpack';
import type { WorkspaceLayoutCache } from './WorkspaceLayoutCache';
import { KnownDescriptionFilePlugin } from './KnownDescriptionFilePlugin';
import { KnownPackageDependenciesPlugin } from './KnownPackageDependenciesPlugin';
/**
* Options for constructing a `WorkspaceResolvePlugin`.
*
* @beta
*/
export interface IWorkspaceResolvePluginOptions {
/**
* The cache of workspace layout information.
*/
cache: WorkspaceLayoutCache;
}
/**
* A Webpack plugin that optimizes package.json lookups and resolution of bare specifiers in a monorepo.
*
* @beta
*/
export class WorkspaceResolvePlugin implements WebpackPluginInstance {
private readonly _cache: WorkspaceLayoutCache;
public constructor(cache: WorkspaceLayoutCache) {
this._cache = cache;
}
public apply(compiler: Compiler): void {
compiler.resolverFactory.hooks.resolveOptions
.for('normal')
.tap(WorkspaceResolvePlugin.name, (resolveOptions) => {
// Omit default `node_modules`
if (resolveOptions.modules) {
resolveOptions.modules = resolveOptions.modules.filter((modulePath: string) => {
return modulePath !== 'node_modules';
});
} else {
resolveOptions.modules = [];
}
const cache: WorkspaceLayoutCache = this._cache;
resolveOptions.plugins ??= [];
resolveOptions.plugins.push(
// Optimize identifying the package.json file for the issuer
new KnownDescriptionFilePlugin(cache, 'parsed-resolve', 'described-resolve'),
// Optimize locating the installed dependencies of the current package
new KnownPackageDependenciesPlugin(cache, 'raw-module', 'resolve-as-module'),
// Optimize loading the package.json file for the destination package
new KnownDescriptionFilePlugin(cache, 'relative', 'described-relative'),
// Optimize locating and loading nested package.json for a directory
new KnownDescriptionFilePlugin(cache, 'undescribed-existing-directory', 'existing-directory', true),
// Optimize locating and loading nested package.json for a file
new KnownDescriptionFilePlugin(cache, 'undescribed-raw-file', 'raw-file')
);
return resolveOptions;
});
}
}
``` | /content/code_sandbox/webpack/webpack-workspace-resolve-plugin/src/WorkspaceResolvePlugin.ts | xml | 2016-09-30T00:28:20 | 2024-08-16T18:54:35 | rushstack | microsoft/rushstack | 5,790 | 480 |
```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.
-->
<project xmlns="path_to_url" xmlns:xsi="path_to_url" xsi:schemaLocation="path_to_url path_to_url">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.shardingsphere</groupId>
<artifactId>shardingsphere-infra-database-type</artifactId>
<version>5.5.1-SNAPSHOT</version>
</parent>
<artifactId>shardingsphere-infra-database-oracle</artifactId>
<name>${project.artifactId}</name>
<dependencies>
<dependency>
<groupId>org.apache.shardingsphere</groupId>
<artifactId>shardingsphere-infra-database-core</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.shardingsphere</groupId>
<artifactId>shardingsphere-test-util</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
``` | /content/code_sandbox/infra/database/type/oracle/pom.xml | xml | 2016-01-18T12:49:26 | 2024-08-16T15:48:11 | shardingsphere | apache/shardingsphere | 19,707 | 326 |
```xml
/* eslint-env jest */
import { sandbox } from 'development-sandbox'
import { FileRef, nextTestSetup } from 'e2e-utils'
import path from 'path'
import { outdent } from 'outdent'
describe('dynamic = "error" in devmode', () => {
const { next } = nextTestSetup({
files: new FileRef(path.join(__dirname, 'fixtures', 'default-template')),
skipStart: true,
})
it('should show error overlay when dynamic is forced', async () => {
const { session, cleanup } = await sandbox(next, undefined, '/server')
// dynamic = "error" and force dynamic
await session.patch(
'app/server/page.js',
outdent`
import { cookies } from 'next/headers';
import Component from '../../index'
export default function Page() {
cookies()
return <Component />
}
export const dynamic = "error"
`
)
await session.assertHasRedbox()
console.log(await session.getRedboxDescription())
expect(await session.getRedboxDescription()).toMatchInlineSnapshot(
`"Error: Route /server with \`dynamic = "error"\` couldn't be rendered statically because it used \`cookies\`. See more info here: path_to_url#dynamic-rendering"`
)
await cleanup()
})
})
``` | /content/code_sandbox/test/development/acceptance-app/dynamic-error.test.ts | xml | 2016-10-05T23:32:51 | 2024-08-16T19:44:30 | next.js | vercel/next.js | 124,056 | 285 |
```xml
import React, { useState } from "react"
import Stepper from "../Stepper"
import FeedbackTabs from "./FeedbackTabs"
type Props = {
setToggleView: (view: boolean) => void
}
const FeedbackForm = ({ setToggleView }: Props) => {
const [tab, setTab] = useState("feedback")
const [currentStep, setCurrentStep] = useState(1)
const steps = ["Write", "Check", "Done"]
return (
<div className="h-full flex flex-col">
<div className="flex w-full h-20 items-center justify-center mb-5">
<Stepper
steps={steps}
currentStep={currentStep}
setCurrentStep={setCurrentStep}
/>
</div>
<div className="w-full my-10">
<h2 className="text-[18px] font-semibold capitalize">Send {tab} </h2>
<p className="text-[14px] font-normal mt-2">
We will solve your problem.
</p>
</div>
<div className="w-full mt-auto">
<p className="text-[14px] font-normal mb-5">
Please select the type of feedback you would like to send.
</p>
<FeedbackTabs
tab={tab}
setTab={setTab}
currentStep={currentStep}
setCurrentStep={setCurrentStep}
setToggleView={setToggleView}
/>
</div>
</div>
)
}
export default FeedbackForm
``` | /content/code_sandbox/exm-web/modules/discover/components/feedback/form/FeedbackForm.tsx | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 327 |
```xml
import { Folder, TItem, ItemType, TItemLocation, ItemLocation, hydrate } from './Tree'
import Mappings, { MappingSnapshot } from './Mappings'
import Ordering from './interfaces/Ordering'
import batchingToposort from 'batching-toposort'
import Logger from './Logger'
export const ActionType = {
CREATE: 'CREATE',
UPDATE: 'UPDATE',
MOVE: 'MOVE',
REMOVE: 'REMOVE',
REORDER: 'REORDER',
} as const
export type TActionType = (typeof ActionType)[keyof typeof ActionType];
export interface CreateAction<L1 extends TItemLocation, L2 extends TItemLocation> {
type: 'CREATE',
payload: TItem<L1>,
oldItem?: TItem<L2>,
index?: number,
oldIndex?: number,
}
export interface UpdateAction<L1 extends TItemLocation, L2 extends TItemLocation> {
type: 'UPDATE',
payload: TItem<L1>,
oldItem?: TItem<L2>,
}
export interface RemoveAction<L1 extends TItemLocation, L2 extends TItemLocation> {
type: 'REMOVE',
payload: TItem<L1>,
oldItem?: TItem<L2>,
index?: number,
oldIndex?: number,
}
export interface ReorderAction<L1 extends TItemLocation, L2 extends TItemLocation> {
type: 'REORDER',
payload: TItem<L1>,
oldItem?: TItem<L2>,
order: Ordering<L1>,
oldOrder?: Ordering<L2>,
}
export interface MoveAction<L1 extends TItemLocation, L2 extends TItemLocation> {
type: 'MOVE',
payload: TItem<L1>,
oldItem?: TItem<L2>,
index?: number,
oldIndex?: number,
}
export type Action<L1 extends TItemLocation, L2 extends TItemLocation> = CreateAction<L1, L2>|UpdateAction<L1, L2>|RemoveAction<L1, L2>|ReorderAction<L1,L2>|MoveAction<L1,L2>
export type LocationOfAction<A> = A extends Action<infer L, TItemLocation> ? L : never
export type OldLocationOfAction<A> = A extends Action<TItemLocation, infer L> ? L : never
export type MapLocation<A extends Action<TItemLocation, TItemLocation>, NewLocation extends TItemLocation> =
// eslint-disable-next-line no-unused-vars,@typescript-eslint/no-unused-vars
A extends CreateAction<infer O, infer P> ?
CreateAction<NewLocation, O>
// eslint-disable-next-line no-unused-vars,@typescript-eslint/no-unused-vars
: A extends UpdateAction<infer O, infer P> ?
UpdateAction<NewLocation, O>
// eslint-disable-next-line no-unused-vars,@typescript-eslint/no-unused-vars
: A extends MoveAction<infer O, infer P> ?
MoveAction<NewLocation, O>
// eslint-disable-next-line no-unused-vars,@typescript-eslint/no-unused-vars
: A extends RemoveAction<infer O, infer P> ?
RemoveAction<NewLocation, O>
// eslint-disable-next-line no-unused-vars,@typescript-eslint/no-unused-vars
: A extends ReorderAction<infer O, infer P> ?
ReorderAction<NewLocation, O>
: never
export default class Diff<L1 extends TItemLocation, L2 extends TItemLocation, A extends Action<L1, L2>> {
private readonly actions: A[]
constructor() {
this.actions = []
}
clone(filter: (action:A)=>boolean = () => true): Diff<L1, L2, A> {
const newDiff : Diff<L1, L2, A> = new Diff
this.getActions().forEach((action: A) => {
if (filter(action)) {
newDiff.commit(action)
}
})
return newDiff
}
commit(action: A):void {
this.actions.push({ ...action })
}
retract(action: A):void {
this.actions.splice(this.actions.indexOf(action), 1)
}
getActions():A[] {
return [].concat(
this.actions
)
}
static findChain(
mappingsSnapshot: MappingSnapshot,
actions: Action<TItemLocation, TItemLocation>[], itemTree: Folder<TItemLocation>,
currentItem: TItem<TItemLocation>,
targetAction: Action<TItemLocation, TItemLocation>,
chain: Action<TItemLocation, TItemLocation>[] = []
): boolean {
const targetItemInTree = itemTree.findFolder(Mappings.mapId(mappingsSnapshot, targetAction.payload, itemTree.location))
if (
targetAction.payload.findItem(ItemType.FOLDER,
Mappings.mapParentId(mappingsSnapshot, currentItem, targetAction.payload.location)) ||
(targetItemInTree && targetItemInTree.findFolder(Mappings.mapParentId(mappingsSnapshot, currentItem, itemTree.location)))
) {
return true
}
const newCurrentActions = actions.filter(targetAction =>
!chain.includes(targetAction) && (
targetAction.payload.findItem(ItemType.FOLDER, Mappings.mapParentId(mappingsSnapshot, currentItem, targetAction.payload.location)) ||
(
itemTree.findFolder(Mappings.mapId(mappingsSnapshot, targetAction.payload, itemTree.location)) &&
itemTree.findFolder(Mappings.mapId(mappingsSnapshot, targetAction.payload, itemTree.location)).findFolder(Mappings.mapParentId(mappingsSnapshot, currentItem, itemTree.location)))
)
)
if (newCurrentActions.length) {
for (const newCurrentAction of newCurrentActions) {
if (Diff.findChain(mappingsSnapshot, actions, itemTree, newCurrentAction.payload, targetAction, [...chain, newCurrentAction])) {
return true
}
}
}
return false
}
static sortMoves<L1 extends TItemLocation, L2 extends TItemLocation>(actions: MoveAction<L1, L2>[], tree: Folder<L1>) :MoveAction<L1, L2>[][] {
const bookmarks = actions.filter(a => a.payload.type === ItemType.BOOKMARK)
const folderMoves = actions.filter(a => a.payload.type === ItemType.FOLDER)
const DAG = folderMoves
.reduce((DAG, action1) => {
DAG[action1.payload.id] = folderMoves.filter(action2 => {
if (action1 === action2 || String(action1.payload.id) === String(action2.payload.id)) {
return false
}
return (
(tree.findItem(action1.payload.type, action1.payload.id) && tree.findItem(action1.payload.type, action1.payload.id).findItem(action2.payload.type, action2.payload.id))
)
})
.map(a => a.payload.id)
return DAG
}, {})
let batches
try {
batches = batchingToposort(DAG).map(batch => batch.map(id => folderMoves.find(a => String(a.payload.id) === String(id))))
} catch (e) {
console.log({DAG, tree, actions})
throw e
}
batches.push(bookmarks)
batches.reverse()
return batches
}
/**
* on ServerToLocal: don't map removals
* on LocalToServer:
* @param mappingsSnapshot
* @param targetLocation
* @param filter
* @param skipErroneousActions
*/
map<L3 extends TItemLocation>(mappingsSnapshot:MappingSnapshot, targetLocation: L3, filter: (action: A)=>boolean = () => true, skipErroneousActions = false): Diff<L3, L1, MapLocation<A, L3>> {
const newDiff : Diff<L3, L1, MapLocation<A, L3>> = new Diff
// Map payloads
this.getActions()
.map(a => a as A)
.forEach(action => {
let newAction
if (!filter(action)) {
return
}
// needed because we set oldItem in the first section, so we wouldn't know anymore if it was set before
const oldItem = action.oldItem
// We have two sections here, because we want to be able to take IDs from oldItem even for moves
// but not parentIds (which do change during moves, obviously)
if (oldItem && targetLocation !== ItemLocation.SERVER) {
const oldId = action.oldItem.id
const newId = action.payload.id
newAction = {
...action,
payload: action.payload.cloneWithLocation(false, targetLocation),
oldItem: action.oldItem.cloneWithLocation(false, action.payload.location)
}
newAction.payload.id = oldId
newAction.oldItem.id = newId
} else {
newAction = {
...action,
payload: action.payload.cloneWithLocation(false, targetLocation),
oldItem: action.payload.clone(false)
}
newAction.payload.id = Mappings.mapId(mappingsSnapshot, action.payload, targetLocation)
}
if (oldItem && targetLocation !== ItemLocation.SERVER && action.type !== ActionType.MOVE) {
newAction.oldItem.parentId = action.payload.parentId
newAction.payload.parentId = Mappings.mapParentId(mappingsSnapshot, action.oldItem, targetLocation)
} else {
newAction.oldItem.parentId = action.payload.parentId
newAction.payload.parentId = Mappings.mapParentId(mappingsSnapshot, action.payload, targetLocation)
if (typeof newAction.payload.parentId === 'undefined' && typeof action.payload.parentId !== 'undefined') {
if (skipErroneousActions) {
// simply ignore this action as it appears to be no longer valid
Logger.log('Failed to map parentId: ' + action.payload.parentId)
Logger.log('Removing MOVE action from plan:', action)
return
} else {
Logger.log('Failed to map parentId of action ' + action)
throw new Error('Failed to map parentId: ' + action.payload.parentId)
}
}
}
if (action.type === ActionType.REORDER) {
newAction.oldOrder = action.order
newAction.order = action.order.map(item => {
return {...item, id: mappingsSnapshot[(targetLocation === ItemLocation.LOCAL ? ItemLocation.SERVER : ItemLocation.LOCAL) + 'To' + targetLocation][item.type][item.id]}
})
}
newDiff.commit(newAction)
})
return newDiff
}
toJSON() {
return this.getActions().map((action: A) => {
return {
...action,
payload: action.payload.clone(false),
oldItem: action.oldItem && action.oldItem.clone(false),
}
})
}
inspect(depth = 0):string {
return 'Diff\n' + this.getActions().map((action: A) => {
return `\nAction: ${action.type}\nPayload: #${action.payload.id}[${action.payload.title}]${'url' in action.payload ? `(${action.payload.url})` : ''} parentId: ${action.payload.parentId} ${'index' in action ? `Index: ${action.index}\n` : ''}${'order' in action ? `Order: ${JSON.stringify(action.order, null, '\t')}` : ''}`
}).join('\n')
}
static fromJSON<L1 extends TItemLocation, L2 extends TItemLocation, A2 extends Action<L1, L2>>(json) {
const diff: Diff<L1, L2, A2> = new Diff
json.forEach((action: A2): void => {
action.payload = hydrate<L1>(action.payload)
action.oldItem = action.oldItem && hydrate<L2>(action.oldItem)
diff.commit(action)
})
return diff
}
}
export interface PlanStage1<L1 extends TItemLocation, L2 extends TItemLocation> {
CREATE: Diff<L1, L2, CreateAction<L1, L2>>
UPDATE: Diff<L1, L2, UpdateAction<L1, L2>>
MOVE: Diff<L1, L2, MoveAction<L1, L2>>
REMOVE: Diff<L2, L1, RemoveAction<L2, L1>>
REORDER: Diff<L1, L2, ReorderAction<L1, L2>>
}
export interface PlanStage2<L1 extends TItemLocation, L2 extends TItemLocation, L3 extends TItemLocation> {
CREATE: Diff<L3, L1, CreateAction<L3, L1>>
UPDATE: Diff<L3, L1, UpdateAction<L3, L1>>
MOVE: Diff<L1, L2, MoveAction<L1, L2>>
REMOVE: Diff<L3, L2, RemoveAction<L3, L2>>
REORDER: Diff<L1, L2, ReorderAction<L1, L2>>
}
export interface PlanStage3<L1 extends TItemLocation, L2 extends TItemLocation, L3 extends TItemLocation> {
CREATE: Diff<L3, L1, CreateAction<L3, L1>>
UPDATE: Diff<L3, L1, UpdateAction<L3, L1>>
MOVE: Diff<L3, L1, MoveAction<L3, L1>>
REMOVE: Diff<L3, L2, RemoveAction<L3, L2>>
REORDER: Diff<L1, L2, ReorderAction<L1, L2>>
}
export interface PlanRevert<L1 extends TItemLocation, L2 extends TItemLocation> {
CREATE: Diff<L1, L2, CreateAction<L1, L2>>
UPDATE: Diff<L1, L2, UpdateAction<L1, L2>>
MOVE: Diff<L2, L1, MoveAction<L2, L1>>
REMOVE: Diff<L1, L2, RemoveAction<L1, L2>>
REORDER: Diff<L1, L2, ReorderAction<L1, L2>>
}
``` | /content/code_sandbox/src/lib/Diff.ts | xml | 2016-06-04T23:37:43 | 2024-08-16T18:50:46 | floccus | floccusaddon/floccus | 5,473 | 2,997 |
```xml
import * as React from 'react';
import * as ReactDom from 'react-dom';
import { Version } from '@microsoft/sp-core-library';
import { BaseClientSideWebPart } from '@microsoft/sp-webpart-base';
import { IPropertyPaneConfiguration, PropertyPaneTextField, PropertyPaneToggle } from '@microsoft/sp-property-pane';
import RomanNumerals from './components/RomanNumerals';
export interface IRomanNumeralsProps {
title: string;
description: string;
initialValue: string;
inputCaption: string;
resultCaption: string;
showUpdownButtons: boolean;
}
export default class HelloWorldWebPart extends BaseClientSideWebPart<IRomanNumeralsProps> {
public render(): void {
ReactDom.render(React.createElement(RomanNumerals, this.properties), this.domElement);
}
protected onDispose(): void {
ReactDom.unmountComponentAtNode(this.domElement);
}
protected get dataVersion(): Version {
return Version.parse('1.0');
}
protected getPropertyPaneConfiguration(): IPropertyPaneConfiguration {
return {
pages: [
{
header: {
description: "Properties"
},
groups: [
{
groupName: "General",
groupFields: [
PropertyPaneTextField('title', { label: "Web part title" }),
PropertyPaneTextField('description', { label: "Description Text" }),
PropertyPaneToggle('showUpdownButtons', { label: "Show increment/decrement buttons" })
]
},
{
groupName: "Initialization",
groupFields: [
PropertyPaneTextField('initialValue', { label: "Initial Value (numeric)" })
]
},
{
groupName: "Captions",
groupFields: [
PropertyPaneTextField('inputCaption', { label: "Caption for input control" }),
PropertyPaneTextField('resultCaption', { label: "Caption for result" })
]
}
]
}
]
};
}
}
``` | /content/code_sandbox/samples/react-functional-stateful-component/src/webparts/romanNumerals/RomanNumeralsWebPart.ts | xml | 2016-08-30T17:21:43 | 2024-08-16T18:41:32 | sp-dev-fx-webparts | pnp/sp-dev-fx-webparts | 2,027 | 418 |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<persistence xmlns="path_to_url" xmlns:xsi="path_to_url" version="2.0" xsi:schemaLocation="path_to_url path_to_url">
<persistence-unit name="hibernate.jpa" transaction-type="RESOURCE_LOCAL">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<properties>
<property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5InnoDBDialect"/>
<!-- value="create" to build a new database on each run; value="update" to modify an existing database; value="create-drop" means the same as "create" but also drops tables when Hibernate closes; value="validate" makes no changes to the database -->
<property name="hibernate.hbm2ddl.auto" value="none"/>
<property name="hibernate.ejb.naming_strategy" value="org.hibernate.cfg.DefaultNamingStrategy"/>
<property name="hibernate.connection.charSet" value="UTF-8"/>
<!-- Uncomment the following two properties for JBoss only -->
<!-- property name="hibernate.validator.apply_to_ddl" value="false" /-->
<!-- property name="hibernate.validator.autoregister_listeners" value="false" /-->
</properties>
</persistence-unit>
</persistence>
``` | /content/code_sandbox/PrimeFaces/Primefaces-SpringRoo-Hibernate-Sample/src/main/resources/META-INF/persistence.xml | xml | 2016-05-02T05:43:21 | 2024-08-16T06:51:39 | journaldev | WebJournal/journaldev | 1,314 | 293 |
```xml
import assert from 'assert';
import { describe, it, beforeEach } from 'node:test';
import '../../src';
import MaskedDynamic from '../../src/masked/dynamic';
import { type MaskedPatternOptions } from '../../src/masked/pattern';
describe('MaskedDynamic', function () {
const masked = new MaskedDynamic();
beforeEach(function () {
masked.updateOptions({ mask: [], dispatch: MaskedDynamic.DEFAULTS.dispatch });
masked.unmaskedValue = '';
});
it('should dispatch pattern with fixed at end', function () {
masked.updateOptions({
mask: [
{
mask: '',
},
{
mask: 'number $',
lazy: false,
blocks: {
number: {
mask: Number,
thousandsSeparator: ',',
radix: '.'
}
}
},
],
});
masked.unmaskedValue = '1';
assert.equal(masked.value, '1 $');
masked.unmaskedValue = '';
assert.equal(masked.value, '');
});
it('should handle eager option', function () {
masked.updateOptions({
mask: [
{
mask: '0"',
eager: true,
},
{
mask: '0[0]"',
eager: true,
},
],
});
masked.value = '1';
assert.equal(masked.value, '1"');
masked.value = '12';
assert.equal(masked.value, '12"');
});
it('should handle flags correctly', function () {
masked.updateOptions({
mask: [
{
mask: '+00 {21} 0 000 0000',
startsWith: '30',
lazy: false,
country: 'Greece'
} as MaskedPatternOptions,
{
mask: '+0 000 000-00-00',
startsWith: '7',
lazy: false,
country: 'Russia'
} as MaskedPatternOptions,
{
mask: '0000000000000',
startsWith: '',
country: 'unknown'
} as MaskedPatternOptions,
],
dispatch: function (appended, dynamicMasked) {
const number = (dynamicMasked.value + appended).replace(/\D/g,'');
return dynamicMasked.compiledMasks.find(function (m) {
return number.indexOf((m as any).startsWith) === 0;
});
}
});
masked.value = '70001234567';
assert.equal((masked.currentMask as any).country, 'Russia');
masked.splice(7, 1, '9');
assert.equal(masked.unmaskedValue, '70009234567');
assert.equal((masked.currentMask as any).country, 'Russia');
});
it('should update nested options', function () {
const mask = [
{
mask: '0',
lazy: true,
},
];
masked.updateOptions({ mask });
masked.value = '';
assert.equal(masked.value, '');
masked.updateOptions({ mask: mask.map(m => ({ ...m, lazy: false })) });
assert.equal(masked.value, '_');
});
it('should consider pattern tail for nested', function () {
masked.updateOptions({
mask: [
{
mask: '0`0',
lazy: false,
},
{
mask: '0`0`0',
lazy: false,
},
],
});
masked.unmaskedValue = '12';
assert.equal(masked.value, '12');
masked.splice(0, 1, '');
assert.equal(masked.value, '_2');
masked.unmaskedValue = '123';
masked.splice(1, 1, '');
assert.equal(masked.value, '1_3');
});
it('should consider input positions', function () {
masked.updateOptions({
mask: [
{
mask: '00`00',
lazy: false,
},
{
mask: '00`00`00',
lazy: false,
},
],
});
masked.value = '123456';
masked.splice(2, 2, '');
assert.equal(masked.value, '12__56');
masked.splice(5, 1, '');
assert.equal(masked.value, '12__5_');
});
describe('expose', function () {
it('should expose number', function () {
const mask = new MaskedDynamic<number>({
mask: [
{ mask: '' },
{
mask: 'd %',
lazy: false,
blocks: {
d: {
mask: Number,
expose: true,
},
},
expose: true,
},
],
});
mask.value = '123';
assert.equal(mask.value, '123');
assert.equal(mask.displayValue, '123 %');
assert.equal(mask.typedValue, 123);
mask.typedValue = 456;
assert.equal(mask.typedValue, 456);
mask.unmaskedValue = '789';
assert.equal(mask.unmaskedValue, '789');
assert.equal(mask.displayValue, '789 %');
});
});
});
``` | /content/code_sandbox/packages/imask/test/masked/dynamic.ts | xml | 2016-11-10T13:04:29 | 2024-08-16T15:16:18 | imaskjs | uNmAnNeR/imaskjs | 4,881 | 1,103 |
```xml
import {
PropSubType,
PropType,
StaticPropType,
} from '../../../interfaces/db/props'
import { callApi } from '../../../lib/client'
export type ListPropertySuggestionsRequestBody = {
team: string
workspace?: string
doc?: string
folder?: string
smartView?: string
propertyType?: string
propertySubType?: string
}
export interface ListPropertySuggestionsResponseBody {
data: {
name: string
type: StaticPropType | PropType
subType?: PropSubType
}[]
}
export async function listPropertySuggestions(
body: ListPropertySuggestionsRequestBody
) {
return callApi<ListPropertySuggestionsResponseBody>(
`/api/props/suggestions`,
{
search: body,
method: 'get',
}
)
}
``` | /content/code_sandbox/src/cloud/api/teams/props/index.ts | xml | 2016-11-19T14:30:34 | 2024-08-16T03:13:45 | BoostNote-App | BoostIO/BoostNote-App | 3,745 | 173 |
```xml
import JSZip from "jszip";
import { FileOperationFormat } from "@shared/types";
import { Collection, FileOperation } from "@server/models";
import ExportDocumentTreeTask from "./ExportDocumentTreeTask";
export default class ExportMarkdownZipTask extends ExportDocumentTreeTask {
public async export(collections: Collection[], fileOperation: FileOperation) {
const zip = new JSZip();
return await this.addCollectionsToArchive(
zip,
collections,
FileOperationFormat.MarkdownZip,
fileOperation.options?.includeAttachments
);
}
}
``` | /content/code_sandbox/server/queues/tasks/ExportMarkdownZipTask.ts | xml | 2016-05-22T21:31:47 | 2024-08-16T19:57:22 | outline | outline/outline | 26,751 | 117 |
```xml
/**
* Window
*/
interface CommonConfig {
/** HexColor
* @default: "#000000"
*/
navigationBarBackgroundColor?: string;
/** black/white
* @default: "white"
*/
navigationBarTextStyle?: 'white' | 'black';
/** */
navigationBarTitleText?: string;
/**
* - default
* - custom
*/
navigationStyle?: 'default' | 'custom';
/** HexColor
* @default: "#ffffff"
*/
backgroundColor?: string;
/** loading dark/light
* @default: "dark"
*/
backgroundTextStyle?: 'dark' | 'light';
/** iOS
* @default: "#ffffff"
*/
backgroundColorTop?: string;
/** iOS
* @default: "#ffffff"
*/
backgroundColorBottom?: string;
/**
* @default: false
*/
enablePullDownRefresh?: boolean;
/** px
* @default: 50
*/
onReachBottomDistance?: number;
/**
* @see path_to_url
*/
pageOrientation?: 'auto' | 'portrait' | 'landscape';
/** static / dynamic */
initialRenderingCache?: 'static' | 'dynamic';
/**
* - homePage:
* - homePageAndLatestPage: tab
* @default "homePage"
*/
restartStrategy?: 'homePage' | 'homePageAndLatestPage';
}
export interface MiniappPageConfig extends CommonConfig {
/** true
* app.json
* @default: false
*/
disableScroll?: boolean;
/**
*
* **** 7.0.5 disableSwipeBack
* [](path_to_url
* @default: false
* @since 7.0.0
*/
disableSwipeBack?: boolean;
/**
* @default false
*/
enableShareAppMessage?: boolean;
/**
* @default false
*/
enableShareTimeline?: boolean;
/**
* @see path_to_url
*/
usingComponents?: Record<string, string>;
/** weui
* - v2:
* @default default
*/
style?: string;
/** */
singlePage?: SinglePage;
}
interface WindowConfig extends CommonConfig {
/** hidden / none
* @default none
*/
visualEffectInBackground?: 'hidden' | 'none';
/**
* allowsBounceVertical YES
* @default: "NO"
*/
pullRefresh?: 'YES' | 'NO' | boolean;
/**
* @default: "YES"
*/
allowsBounceVertical?: 'YES' | 'NO';
}
interface TabBarItem {
/** pages */
pagePath: string;
/** tab */
text: string;
/** icon 40kb 81px * 81px position top */
iconPath?: string;
/** icon 40kb 81px * 81px position top */
selectedIconPath?: string;
}
interface TabBar {
/** tab */
color?: string;
/** tab */
selectedColor?: string;
/** tab */
backgroundColor?: string;
/** tabbar black/white
* @default: black
*/
borderStyle?: 'black' | 'white';
/** tab list 2 5 tab */
list: TabBarItem[];
/** tabbar bottomtop
* @default: 'bottom'
*/
position?: 'bottom' | 'top';
/** tabBar[](path_to_url
* @default false
* @since 2.1.0
*/
custom?: boolean;
}
interface NetworkTimeout {
/**
* @default 60000
*/
request?: number;
/**
* @default 60000
*/
connectSocket?: number;
/**
* @default 60000
*/
uploadFile?: number;
/**
* @default 60000
*/
downloadFile?: number;
}
interface SubPackage {
/**
* - pages
*/
root: string;
/** */
pages: string[];
/** */
name?: string;
/** */
independent?: boolean;
/** */
plugins?: Plugins;
}
interface Plugins {
[key: string]: {
version: string;
provider: string;
};
}
interface PreloadRule {
[key: string]: {
/** root name__APP__ */
packages: string[];
/**
* - all:
* - wifi: wifi
* @default "wifi"
*/
network?: 'all' | 'wifi';
};
}
interface Permission {
[key: string]: {
/** 30 */
desc: string;
};
}
interface SinglePage {
/** float squeezed
* @default " float squeezed"
*/
navigationBarFit?: string;
}
interface RouterAnimate {
/**
* @default 300
*/
duration?: number;
/**
* @default 50
*/
delay?: number;
}
export interface MiniappAppConfig {
/** */
pages?: string[];
/** */
window?: WindowConfig;
/** tab */
tabBar?: TabBar;
/** */
networkTimeout?: NetworkTimeout;
/** debug
* @default false
*/
debug?: boolean;
/** functionalPages true
* @see path_to_url
* @default false
* @since 2.1.0
*/
functionalPages?: boolean;
/**
* @example
* ```json
* [
* {
* root: 'packages/module',
* pages: [
* 'pages/page/index'
* ]
* }
* ]
* ```
* @since 1.7.3
*/
subPackages?: SubPackage[];
/** Worker
* Worker Worker
* @since 1.9.90
*/
workers?: string;
/**
* - audio:
* - location:
* @since 6.7.2
*/
requiredBackgroundModes?: ('audio' | 'location')[];
/**
* 2022 7 14 82022 7 14
* - getFuzzyLocation:
* - getLocation:
* - onLocationChange:
* - startLocationUpdate:
* - startLocationUpdateBackground:
* - chooseLocation:
* - choosePoi: POI
* - chooseAddress:
* @see path_to_url#requiredPrivateInfos
*/
requiredPrivateInfos?: ('getFuzzyLocation' | 'getLocation' | 'onLocationChange' | 'startLocationUpdate' | 'startLocationUpdateBackground' | 'chooseLocation' | 'choosePoi' | 'chooseAddress')[];
/**
* @since 1.9.6
*/
plugins?: Plugins;
/**
* preloadRule key value
* : API
* vConsole preloadSubpackages
* @since 2.3.0
*/
preloadRule?: PreloadRule;
/** PC iPad
* @default false
* @since 2.3.0
*/
resizable?: boolean;
/**
* @since 2.4.0
*/
navigateToMiniProgramAppIdList?: string[];
/**
* @see path_to_url
*/
usingComponents?: Record<string, string>;
/**
* @since 7.0.0
*/
permission?: Permission;
/** sitemap.json */
sitemapLocation?: string;
/** weui
* - v2:
* @default default
*/
style?: string;
/**
*
* - kbone:
* - weui: WeUI
*/
useExtendedLib?: Record<string, boolean>;
/**
* @see path_to_url
*/
entranceDeclare?: {
/** */
locationMessage?: {
/** pages */
path?: string;
/** */
query?: string;
};
};
/**
* darkMode true DarkMode
* @since 2.11.0
*/
darkmode?: boolean;
/** theme.json darkmodetrue
* @since 2.11.0
*/
themeLocation?: string;
/** */
lazyCodeLoading?: string;
/** */
singlePage?: SinglePage;
/**
* @see path_to_url
*/
supportedMaterials?: {
/** MimeType: video
(video/*video/mp4video/mp4)
*/
materialType: string;
/** ${nickname}, ${nickname}6 */
name: string;
/** 22 */
desc: string;
/** */
path: string;
};
/** */
serviceProviderTicket?: string;
/** appId */
embeddedAppIdList?: string[];
/** */
halfPage?: {
/** */
firstPageNavigationStyle?: 'default' | 'custom';
};
/** */
debugOptions?: {
/** FPS false */
enableFPSPanel?: boolean;
};
/** touch passivefalse */
enablePassiveEvent?: boolean | {
/** touchstart passivefalse */
touchstart?: boolean;
/** touchmove passivefalse */
touchmove?: boolean;
/** wheel passivefalse */
wheel?: boolean;
};
/** */
resolveAlias?: Record<string, string>;
/** */
components?: string[];
/** id
* @default "app"
* @since 3.3.18
*/
appId?: string;
/** h5
* @supported h5
* @since 3.3.18
*/
animation?: RouterAnimate | boolean;
}
export interface MiniappConfig extends MiniappPageConfig, MiniappAppConfig {}
export interface MiniappLifecycles {
onLaunch?: (options: any) => void;
onShow?: (options: any) => void;
onHide?: () => void;
onError?: (...rest) => void;
onPageNotFound?: (options: any) => void;
onUnhandledRejection?: (options: any) => void;
onShareAppMessage?: (options: any) => Record<string, any>;
[key: string]: any;
}
``` | /content/code_sandbox/packages/miniapp-runtime/src/types.ts | xml | 2016-11-03T06:59:15 | 2024-08-16T10:11:29 | ice | alibaba/ice | 17,815 | 2,359 |
```xml
export function generateSocialImage({
title,
tagline,
cloudName = 'logaretm',
imagePublicID,
cloudinaryUrlBase = 'path_to_url
version = null,
titleFont = 'montserrat',
titleExtraConfig = 'bold',
taglineExtraConfig = '',
taglineFont = 'montserrat',
imageWidth = 1280,
imageHeight = 669,
textAreaWidth = 760,
textLeftOffset = 70,
titleBottomOffset = 350,
taglineTopOffset = 360,
textColor = '09a884',
taglineColor = 'ffffff',
titleFontSize = 64,
taglineFontSize = 48,
}) {
// configure social media image dimensions, quality, and format
const imageConfig = [`w_${imageWidth}`, `h_${imageHeight}`, 'c_fill', 'q_auto', 'f_auto'].join(',');
// configure the title text
const titleConfig = [
`w_${textAreaWidth}`,
'c_fit',
`co_rgb:${textColor}`,
'g_south_west',
`x_${textLeftOffset}`,
`y_${titleBottomOffset}`,
`l_text:${titleFont}_${titleFontSize}${titleExtraConfig}:${encodeURIComponent(title)}`,
].join(',');
// configure the tagline text
const taglineConfig = [
`w_${textAreaWidth}`,
'c_fit',
`co_rgb:${taglineColor}`,
'g_north_west',
`x_${textLeftOffset}`,
`y_${taglineTopOffset}`,
`l_text:${taglineFont}_${taglineFontSize}${taglineExtraConfig}:${encodeURIComponent(tagline)}`,
].join(',');
// combine all the pieces required to generate a Cloudinary URL
const urlParts = [
cloudinaryUrlBase,
cloudName,
'image',
'upload',
imageConfig,
titleConfig,
taglineConfig,
version,
imagePublicID,
];
// remove any falsy sections of the URL (e.g. an undefined version)
const validParts = urlParts.filter(Boolean);
// join all the parts into a valid URL to the generated image
return validParts.join('/');
}
export function generateMetaTags({ title, description, image, url, keywords }: any) {
return [
{
name: 'description',
hid: 'description',
content: description,
},
{
name: 'og:description',
property: 'og:description',
hid: 'og:description',
content: description,
},
{
name: 'og:title',
hid: 'og:title',
property: 'og:title',
content: title,
},
url
? {
hid: 'og:url',
name: 'og:url',
property: 'og:url',
content: url,
}
: undefined,
image
? {
name: 'og:image',
hid: 'og:image',
property: 'og:image',
content: image,
}
: undefined,
image
? {
name: 'image',
hid: 'image',
property: 'image',
content: image,
}
: undefined,
{
name: 'twitter:card',
hid: 'twitter:card',
content: 'summary_large_image',
},
{
hid: 'twitter:title',
name: 'twitter:title',
property: 'twitter:title',
content: title,
},
{
hid: 'twitter:description',
name: 'twitter:description',
property: 'twitter:description',
content: description,
},
image
? {
hid: 'twitter:image',
name: 'twitter:image',
property: 'twitter:image',
content: image,
}
: undefined,
keywords
? {
hid: 'keywords',
name: 'keywords',
property: 'keywords',
content: Array.isArray(keywords) ? keywords.join(', ') : keywords,
}
: undefined,
].filter(Boolean);
}
export function generateLinks({ url }) {
return [
{
hid: 'canonical',
rel: 'canonical',
href: url,
},
];
}
export interface Frontmatter {
title: string;
menuTitle?: string;
order: number;
next?: {
title: string;
description: string;
path: string;
intro: string;
};
description?: string;
path?: string;
}
export function buildMenu(pages: { url?: string; frontmatter: Frontmatter; children?: any[]; icon?: string }[]) {
return [
...pages.sort((a, b) => {
return a.frontmatter.order - b.frontmatter.order;
}),
].map(p => {
return {
title: p.frontmatter.title,
menuTitle: p.frontmatter.menuTitle,
order: p.frontmatter.order,
description: p.frontmatter.description,
next: p.frontmatter.next,
path: p.url || '',
children: p.children ? buildMenu(p.children) : undefined,
icon: p.icon || undefined,
};
});
}
``` | /content/code_sandbox/docs/src/utils/seo.ts | xml | 2016-07-30T01:10:44 | 2024-08-16T10:19:58 | vee-validate | logaretm/vee-validate | 10,699 | 1,108 |
```xml
import { create, act } from 'react-test-renderer'
import { Globals } from '@react-spring/web'
import { linearGradientDef, radiansToDegrees } from '@nivo/core'
import {
ArcShape,
ArcLabelsLayer,
ArcLabelComponent as ArcLabel,
ArcLinkLabelsLayer,
ArcLinkLabelComponent as ArcLinkLabel,
} from '@nivo/arcs'
import { LegendSvgItem, SymbolSquare } from '@nivo/legends'
// @ts-ignore
import { Pie } from '../src/index'
interface SampleDatum {
id: string
value: number
color: string
}
const sampleData: readonly SampleDatum[] = [
{
id: 'A',
value: 30,
color: '#ff5500',
},
{
id: 'B',
value: 20,
color: '#ffdd00',
},
{
id: 'C',
value: 50,
color: '#99cc44',
},
] as const
const sampleGradientData = [
linearGradientDef('gradientA', [
{
offset: 0,
color: '#e8c1a0',
},
{
offset: 100,
color: '#ff5500',
opacity: 0,
},
]),
linearGradientDef('gradientB', [
{
offset: 0,
color: '#f47560',
},
{
offset: 100,
color: '#f47560',
opacity: 0,
},
]),
linearGradientDef('gradientC', [
{
offset: 0,
color: '#f1e15b',
},
{
offset: 100,
color: '#f1e15b',
opacity: 0,
},
]),
]
sampleData.forEach(datum => {
datum.nested = {
color: datum.color,
}
})
const sampleDataWithCustomProps = sampleData.map(datum => ({
name: datum.id,
attributes: {
volume: datum.value,
},
}))
describe('Pie', () => {
beforeAll(() => {
Globals.assign({ skipAnimation: true })
})
afterAll(() => {
Globals.assign({ skipAnimation: false })
})
describe('data', () => {
it('should use default id and value properties', () => {
const instance = create(<Pie width={400} height={400} data={sampleData} />).root
const arcs = instance.findAllByType(ArcShape)
expect(arcs).toHaveLength(sampleData.length)
expect(arcs[0].props.datum.id).toEqual('A')
expect(arcs[0].props.datum.value).toEqual(30)
expect(arcs[0].props.datum.formattedValue).toEqual('30')
expect(arcs[1].props.datum.id).toEqual('B')
expect(arcs[1].props.datum.value).toEqual(20)
expect(arcs[1].props.datum.formattedValue).toEqual('20')
expect(arcs[2].props.datum.id).toEqual('C')
expect(arcs[2].props.datum.value).toEqual(50)
expect(arcs[2].props.datum.formattedValue).toEqual('50')
})
it('should use custom id and value accessors expressed as path', () => {
const instance = create(
<Pie
width={400}
height={400}
data={sampleDataWithCustomProps}
id="name"
value="attributes.volume"
/>
).root
const arcs = instance.findAllByType(ArcShape)
expect(arcs).toHaveLength(sampleData.length)
expect(arcs[0].props.datum.id).toEqual('A')
expect(arcs[0].props.datum.value).toEqual(30)
expect(arcs[0].props.datum.formattedValue).toEqual('30')
expect(arcs[1].props.datum.id).toEqual('B')
expect(arcs[1].props.datum.value).toEqual(20)
expect(arcs[1].props.datum.formattedValue).toEqual('20')
expect(arcs[2].props.datum.id).toEqual('C')
expect(arcs[2].props.datum.value).toEqual(50)
expect(arcs[2].props.datum.formattedValue).toEqual('50')
})
it('should use custom id and value accessors expressed as functions', () => {
const instance = create(
<Pie
width={400}
height={400}
data={sampleDataWithCustomProps}
id={d => d.name}
value={d => d.attributes.volume}
/>
).root
const arcs = instance.findAllByType(ArcShape)
expect(arcs).toHaveLength(sampleData.length)
expect(arcs[0].props.datum.id).toEqual('A')
expect(arcs[0].props.datum.value).toEqual(30)
expect(arcs[0].props.datum.formattedValue).toEqual('30')
expect(arcs[1].props.datum.id).toEqual('B')
expect(arcs[1].props.datum.value).toEqual(20)
expect(arcs[1].props.datum.formattedValue).toEqual('20')
expect(arcs[2].props.datum.id).toEqual('C')
expect(arcs[2].props.datum.value).toEqual(50)
expect(arcs[2].props.datum.formattedValue).toEqual('50')
})
it('should support custom value formatting', () => {
const instance = create(
<Pie width={400} height={400} data={sampleData} valueFormat=" >-$.2f" />
).root
const arcs = instance.findAllByType(ArcShape)
expect(arcs).toHaveLength(sampleData.length)
expect(arcs[0].props.datum.id).toEqual('A')
expect(arcs[0].props.datum.value).toEqual(30)
expect(arcs[0].props.datum.formattedValue).toEqual('$30.00')
expect(arcs[1].props.datum.id).toEqual('B')
expect(arcs[1].props.datum.value).toEqual(20)
expect(arcs[1].props.datum.formattedValue).toEqual('$20.00')
expect(arcs[2].props.datum.id).toEqual('C')
expect(arcs[2].props.datum.value).toEqual(50)
expect(arcs[2].props.datum.formattedValue).toEqual('$50.00')
})
it('should support sorting data by value', () => {
const instance = create(
<Pie width={400} height={400} data={sampleData} sortByValue />
).root
const arcs = instance.findAllByType(ArcShape)
expect(arcs).toHaveLength(sampleData.length)
const arc30 = arcs[0]
const arc20 = arcs[1]
const arc50 = arcs[2]
expect(arc50.props.datum.arc.startAngle).toEqual(0)
expect(arc30.props.datum.arc.startAngle).toBeGreaterThan(0)
expect(arc20.props.datum.arc.startAngle).toBeGreaterThan(
arc30.props.datum.arc.startAngle
)
})
})
describe('layout', () => {
it('should support donut charts', () => {
const instance = create(
<Pie width={400} height={400} data={sampleData} innerRadius={0.5} />
).root
const arcs = instance.findAllByType(ArcShape)
expect(arcs).toHaveLength(sampleData.length)
// we can use a slice to check computed radii
expect(arcs[0].props.datum.arc.innerRadius).toEqual(100)
expect(arcs[0].props.datum.arc.outerRadius).toEqual(200)
})
it('should support padAngle', () => {
const instance = create(
<Pie width={400} height={400} data={sampleData} padAngle={10} />
).root
const arcs = instance.findAllByType(ArcShape)
expect(arcs).toHaveLength(sampleData.length)
arcs.forEach(arc => {
expect(radiansToDegrees(arc.props.datum.arc.padAngle)).toEqual(10)
})
})
it('should support cornerRadius', () => {
// using a custom layer to inspect the `arcGenerator`
const CustomLayer = () => null
const instance = create(
<Pie
width={400}
height={400}
data={sampleData}
cornerRadius={3}
layers={[CustomLayer]}
/>
).root
const layer = instance.findByType(CustomLayer)
expect(layer.props.arcGenerator.cornerRadius()()).toEqual(3)
})
it('should support custom start and end angles', () => {
const instance = create(
<Pie
width={400}
height={400}
data={sampleData}
innerRadius={0.5}
startAngle={90}
endAngle={180}
/>
).root
const arcs = instance.findAllByType(ArcShape)
expect(arcs).toHaveLength(sampleData.length)
expect(radiansToDegrees(arcs[0].props.datum.arc.startAngle)).toEqual(90)
expect(radiansToDegrees(arcs[2].props.datum.arc.endAngle)).toEqual(180)
})
it('should support optimizing space usage via the fit property', () => {
const instance = create(
<Pie
width={800}
height={400}
data={sampleData}
innerRadius={0.5}
startAngle={-90}
endAngle={90}
fit
/>
).root
const arcs = instance.findAllByType(ArcShape)
expect(arcs).toHaveLength(sampleData.length)
// we can use a slice to check computed radii
expect(arcs[0].props.datum.arc.innerRadius).toEqual(200)
expect(arcs[0].props.datum.arc.outerRadius).toEqual(400)
})
})
describe('colors', () => {
it('should use colors from scheme', () => {
const instance = create(
<Pie width={400} height={400} data={sampleData} colors={{ scheme: 'accent' }} />
).root
const arcs = instance.findAllByType(ArcShape)
expect(arcs).toHaveLength(sampleData.length)
expect(arcs[0].props.datum.id).toEqual('A')
expect(arcs[0].props.datum.color).toEqual('#7fc97f')
expect(arcs[1].props.datum.id).toEqual('B')
expect(arcs[1].props.datum.color).toEqual('#beaed4')
expect(arcs[2].props.datum.id).toEqual('C')
expect(arcs[2].props.datum.color).toEqual('#fdc086')
})
it('should allow to use colors from data using a path', () => {
const instance = create(
<Pie
width={400}
height={400}
data={sampleData}
colors={{ datum: 'data.nested.color' }}
/>
).root
const arcs = instance.findAllByType(ArcShape)
expect(arcs).toHaveLength(sampleData.length)
expect(arcs[0].props.datum.id).toEqual('A')
expect(arcs[0].props.datum.color).toEqual('#ff5500')
expect(arcs[1].props.datum.id).toEqual('B')
expect(arcs[1].props.datum.color).toEqual('#ffdd00')
expect(arcs[2].props.datum.id).toEqual('C')
expect(arcs[2].props.datum.color).toEqual('#99cc44')
})
it('should allow to use colors from data using a function', () => {
const instance = create(
<Pie width={400} height={400} data={sampleData} colors={d => d.data.color} />
).root
const arcs = instance.findAllByType(ArcShape)
expect(arcs).toHaveLength(sampleData.length)
expect(arcs[0].props.datum.id).toEqual('A')
expect(arcs[0].props.datum.color).toEqual('#ff5500')
expect(arcs[1].props.datum.id).toEqual('B')
expect(arcs[1].props.datum.color).toEqual('#ffdd00')
expect(arcs[2].props.datum.id).toEqual('C')
expect(arcs[2].props.datum.color).toEqual('#99cc44')
})
})
describe('patterns & gradients', () => {
it('should support patterns', () => {
// @todo
})
it('should support gradients', () => {
const instance = create(
<Pie
width={400}
height={400}
data={sampleData}
defs={sampleGradientData}
fill={[
{ match: { id: 'A' }, id: 'gradientA' },
{ match: { id: 'B' }, id: 'gradientB' },
{ match: { id: 'C' }, id: 'gradientC' },
]}
/>
).root
const arcs = instance.findAllByType(ArcShape)
expect(arcs).toHaveLength(sampleData.length)
expect(arcs[0].props.datum.id).toEqual('A')
expect(arcs[0].props.datum.fill).toEqual('url(#gradientA)')
expect(arcs[1].props.datum.id).toEqual('B')
expect(arcs[1].props.datum.fill).toEqual('url(#gradientB)')
expect(arcs[2].props.datum.id).toEqual('C')
expect(arcs[2].props.datum.fill).toEqual('url(#gradientC)')
})
})
describe('arc labels', () => {
it('should render labels when enabled', () => {
const instance = create(<Pie width={400} height={400} data={sampleData} />).root
instance.findByType(ArcLabelsLayer)
const labels = instance.findAllByType(ArcLabel)
expect(labels).toHaveLength(sampleData.length)
sampleData.forEach((datum, index) => {
expect(labels[index].findByType('text').props.children).toEqual(`${datum.value}`)
})
})
it('should allow to disable labels', () => {
const instance = create(
<Pie width={400} height={400} data={sampleData} enableArcLabels={false} />
).root
expect(instance.findAllByType(ArcLabelsLayer)).toHaveLength(0)
})
it('should use formattedValue', () => {
const instance = create(
<Pie width={400} height={400} data={sampleData} valueFormat=" >-$.2f" />
).root
const labels = instance.findAllByType(ArcLabel)
expect(labels).toHaveLength(sampleData.length)
sampleData.forEach((datum, index) => {
expect(labels[index].findByType('text').children[0]).toEqual(`$${datum.value}.00`)
})
})
it('should allow to change the label accessor using a path', () => {
const instance = create(
<Pie width={400} height={400} data={sampleData} arcLabel="id" />
).root
const labels = instance.findAllByType(ArcLabel)
expect(labels).toHaveLength(sampleData.length)
sampleData.forEach((datum, index) => {
expect(labels[index].findByType('text').children[0]).toEqual(datum.id)
})
})
it('should allow to change the label accessor using a function', () => {
const instance = create(
<Pie
width={400}
height={400}
data={sampleData}
arcLabel={datum => `${datum.id} - ${datum.value}`}
/>
).root
const labels = instance.findAllByType(ArcLabel)
expect(labels).toHaveLength(sampleData.length)
sampleData.forEach((datum, index) => {
expect(labels[index].findByType('text').children[0]).toEqual(
`${datum.id} - ${datum.value}`
)
})
})
it('should allow to customize the label component', () => {
const CustomArcLabel = () => <span />
const instance = create(
<Pie
width={400}
height={400}
data={sampleData}
arcLabelsComponent={CustomArcLabel}
/>
).root
const labels = instance.findAllByType(CustomArcLabel)
expect(labels).toHaveLength(sampleData.length)
sampleData.forEach((datum, index) => {
expect(labels[index].props.label).toEqual(`${datum.value}`)
})
})
})
describe('arc link labels', () => {
it('should render labels when enabled', () => {
const instance = create(<Pie width={400} height={400} data={sampleData} />).root
instance.findByType(ArcLinkLabelsLayer)
const labels = instance.findAllByType(ArcLinkLabel)
expect(labels).toHaveLength(sampleData.length)
sampleData.forEach((datum, index) => {
expect(labels[index].findByType('text').children[0]).toEqual(datum.id)
})
})
it('should allow to disable labels', () => {
const instance = create(
<Pie width={400} height={400} data={sampleData} enableArcLinkLabels={false} />
).root
expect(instance.findAllByType(ArcLinkLabelsLayer)).toHaveLength(0)
})
it('should allow to change the label accessor using a path', () => {
const instance = create(
<Pie width={400} height={400} data={sampleData} arcLinkLabel="value" />
).root
const labels = instance.findAllByType(ArcLinkLabel)
expect(labels).toHaveLength(sampleData.length)
sampleData.forEach((datum, index) => {
expect(labels[index].findByType('text').children[0]).toEqual(`${datum.value}`)
})
})
it('should allow to change the label accessor using a function', () => {
const instance = create(
<Pie
width={400}
height={400}
data={sampleData}
arcLinkLabel={datum => `${datum.id} - ${datum.value}`}
/>
).root
const labels = instance.findAllByType(ArcLinkLabel)
expect(labels).toHaveLength(sampleData.length)
sampleData.forEach((datum, index) => {
expect(labels[index].findByType('text').children[0]).toEqual(
`${datum.id} - ${datum.value}`
)
})
})
it('should allow to customize the label component', () => {
const CustomArcLinkLabel = () => null
const instance = create(
<Pie
width={400}
height={400}
data={sampleData}
arcLinkLabelComponent={CustomArcLinkLabel}
/>
).root
const labels = instance.findAllByType(CustomArcLinkLabel)
expect(labels).toHaveLength(sampleData.length)
sampleData.forEach((datum, index) => {
expect(labels[index].props.label).toEqual(datum.id)
})
})
})
describe('legends', () => {
it('should render legends', () => {
const instance = create(
<Pie
width={400}
height={400}
data={sampleData}
colors={{ datum: 'data.color' }}
legends={[
{
anchor: 'bottom',
direction: 'row',
itemWidth: 100,
itemHeight: 20,
},
]}
/>
).root
const legendItems = instance.findAllByType(LegendSvgItem)
expect(legendItems).toHaveLength(sampleData.length)
sampleData.forEach((datum, index) => {
const legendItem = legendItems[index]
expect(legendItem.findByType('text').children[0]).toEqual(datum.id)
expect(legendItem.findByType(SymbolSquare).findByType('rect').props.fill).toEqual(
datum.color
)
})
})
it('should use legend.data if provided', () => {
const instance = create(
<Pie
width={400}
height={400}
data={sampleData}
colors={{ datum: 'data.color' }}
legends={[
{
anchor: 'bottom',
data: sampleData.map((data, index) => ({
...data,
label: `${data.id}.${index}`,
})),
direction: 'row',
itemWidth: 100,
itemHeight: 20,
},
]}
/>
).root
const legendItems = instance.findAllByType(LegendSvgItem)
expect(legendItems).toHaveLength(sampleData.length)
sampleData.forEach((datum, index) => {
const legendItem = legendItems[index]
expect(legendItem.findByType('text').children[0]).toEqual(`${datum.id}.${index}`)
expect(legendItem.findByType(SymbolSquare).findByType('rect').props.fill).toEqual(
datum.color
)
})
})
it('should toggle series via legend', async () => {
const instance = create(
<Pie
width={400}
height={400}
data={sampleData}
legends={[
{
anchor: 'bottom',
direction: 'row',
toggleSerie: true,
itemWidth: 100,
itemHeight: 20,
},
]}
/>
).root
expect(instance.findAllByType(ArcShape)).toHaveLength(sampleData.length)
const legendItem = instance.findAllByType(LegendSvgItem)[0]
await act(() => {
legendItem.findAllByType('rect')[0].props.onClick()
})
expect(instance.findAllByType(ArcShape)).toHaveLength(sampleData.length - 1)
})
})
describe('interactivity', () => {
it('should support onClick handler', async () => {
const onClick = jest.fn()
const instance = create(
<Pie width={400} height={400} data={sampleData} onClick={onClick} />
).root
await act(() => {
instance.findAllByType(ArcShape)[0].findByType('path').props.onClick()
})
expect(onClick).toHaveBeenCalledTimes(1)
const [datum] = onClick.mock.calls[0]
expect(datum.id).toEqual('A')
})
// @todo: Fix this test due to the use of `getBoundingClientRect`.
xit('should support onMouseEnter handler', async () => {
const onMouseEnter = jest.fn()
const instance = create(
<Pie width={400} height={400} data={sampleData} onMouseEnter={onMouseEnter} />
).root
await act(() => {
instance.findAllByType(ArcShape)[0].findByType('path').props.onMouseEnter()
})
expect(onMouseEnter).toHaveBeenCalledTimes(1)
const [datum] = onMouseEnter.mock.calls[0]
expect(datum.id).toEqual('B')
})
// @todo: Fix this test due to the use of `getBoundingClientRect`.
xit('should support onMouseMove handler', async () => {
const onMouseMove = jest.fn()
const instance = create(
<Pie width={400} height={400} data={sampleData} onMouseMove={onMouseMove} />
).root
await act(() => {
instance.findAllByType(ArcShape)[0].findByType('path').props.onMouseMove()
})
expect(onMouseMove).toHaveBeenCalledTimes(1)
const [datum] = onMouseMove.mock.calls[0]
expect(datum.id).toEqual('C')
})
it('should support onMouseLeave handler', async () => {
const onMouseLeave = jest.fn()
const instance = create(
<Pie width={400} height={400} data={sampleData} onMouseLeave={onMouseLeave} />
).root
await act(() => {
instance.findAllByType(ArcShape)[0].findByType('path').props.onMouseLeave()
})
expect(onMouseLeave).toHaveBeenCalledTimes(1)
const [datum] = onMouseLeave.mock.calls[0]
expect(datum.id).toEqual('A')
})
it('should allow to completely disable interactivity', async () => {
const instance = create(
<Pie width={400} height={400} data={sampleData} isInteractive={false} />
).root
instance.findAllByType(ArcShape).forEach(arc => {
const path = arc.findByType('path')
expect(path.props.onClick).toBeUndefined()
expect(path.props.onMouseEnter).toBeUndefined()
expect(path.props.onMouseMove).toBeUndefined()
expect(path.props.onMouseLeave).toBeUndefined()
})
})
describe('activeId', () => {
it('should allow to define a default activeId', () => {
const instance = create(
<Pie
width={400}
height={400}
data={sampleData}
activeOuterRadiusOffset={10}
defaultActiveId={sampleData[1].id}
/>
).root
const arcs = instance.findAllByType(ArcShape)
expect(arcs).toHaveLength(sampleData.length)
expect(arcs[0].props.datum.id).toEqual(sampleData[0].id)
expect(arcs[0].props.datum.arc.outerRadius).toEqual(200)
expect(arcs[1].props.datum.id).toEqual(sampleData[1].id)
expect(arcs[1].props.datum.arc.outerRadius).toEqual(210)
expect(arcs[2].props.datum.id).toEqual(sampleData[2].id)
expect(arcs[2].props.datum.arc.outerRadius).toEqual(200)
})
xit('should allow to control the activeId externally', () => {})
})
})
describe('tooltip', () => {
// @todo: Fix this test due to the use of `getBoundingClientRect`.
xit('should render a tooltip when hovering a slice', async () => {
const instance = create(<Pie width={400} height={400} data={sampleData} />).root
expect(instance.findAllByType('PieTooltip')).toHaveLength(0)
await act(() => {
instance.findAllByType(ArcShape)[1].findByType('path').props.onMouseEnter()
})
expect(instance.findAllByType('PieTooltip')).toHaveLength(1)
const tooltip = instance.findAllByType('PieTooltip')[0]
expect(tooltip.children).toEqual(`${sampleData[1].id}: ${sampleData[1].value}`)
})
// @todo: Fix this test due to the use of `getBoundingClientRect`.
xit('should allow to override the default tooltip', async () => {
const CustomTooltip = ({ datum }) => <span>{datum.id}</span>
const instance = create(
<Pie width={400} height={400} data={sampleData} tooltip={CustomTooltip} />
).root
await act(() => {
instance.findAllByType(ArcShape)[1].findByType('path').props.onMouseEnter()
})
expect(instance.findAllByType(CustomTooltip)).toHaveLength(1)
})
})
describe('layers', () => {
it('should support disabling a layer', () => {
const instance = create(
<Pie
width={400}
height={400}
data={sampleData}
layers={['arcLinkLabels', 'arcLabels', 'legends']}
/>
).root
expect(instance.findAllByType(ArcShape)).toHaveLength(0)
})
it('should support adding a custom layer', () => {
const CustomLayer = () => null
const instance = create(
<Pie
width={400}
height={400}
data={sampleData}
innerRadius={0.5}
layers={['arcs', 'arcLinkLabels', 'arcLabels', 'legends', CustomLayer]}
/>
).root
const customLayer = instance.findByType(CustomLayer)
expect(customLayer.props.dataWithArc).toHaveLength(3)
expect(customLayer.props.centerX).toEqual(200)
expect(customLayer.props.centerY).toEqual(200)
expect(customLayer.props.arcGenerator).toBeDefined()
expect(customLayer.props.radius).toEqual(200)
expect(customLayer.props.innerRadius).toEqual(100)
})
})
})
``` | /content/code_sandbox/packages/pie/tests/Pie.test.tsx | xml | 2016-04-16T03:27:56 | 2024-08-16T03:38:37 | nivo | plouc/nivo | 13,010 | 6,118 |
```xml
<dict>
<key>CommonPeripheralDSP</key>
<array>
<dict>
<key>DeviceID</key>
<integer>0</integer>
<key>DeviceType</key>
<string>Headphone</string>
</dict>
<dict>
<key>DeviceID</key>
<integer>1</integer>
<key>DeviceType</key>
<string>Headphone</string>
</dict>
<dict>
<key>DeviceID</key>
<integer>2</integer>
<key>DeviceType</key>
<string>Headphone</string>
</dict>
<dict>
<key>DeviceID</key>
<integer>3</integer>
<key>DeviceType</key>
<string>Headphone</string>
<key>SignalProcessing</key>
<dict>
<key>SoftwareDSP</key>
<dict>
<key>DspFunction0</key>
<dict>
<key>FunctionInfo</key>
<dict>
<key>DspFuncInstance</key>
<integer>0</integer>
<key>DspFuncName</key>
<string>DspVirtualization</string>
<key>DspFuncProcessingIndex</key>
<integer>0</integer>
</dict>
<key>ParameterInfo</key>
<dict>
<key>1</key>
<integer>0</integer>
<key>10</key>
<integer>0</integer>
<key>11</key>
<integer>1</integer>
<key>12</key>
<integer>-1054589891</integer>
<key>13</key>
<integer>-1048976926</integer>
<key>14</key>
<integer>16</integer>
<key>15</key>
<integer>159</integer>
<key>16</key>
<integer>-1044027031</integer>
<key>17</key>
<integer>5</integer>
<key>18</key>
<integer>219</integer>
<key>19</key>
<integer>405</integer>
<key>2</key>
<integer>0</integer>
<key>20</key>
<integer>-1047265280</integer>
<key>21</key>
<integer>3</integer>
<key>22</key>
<integer>1728</integer>
<key>23</key>
<integer>4143</integer>
<key>24</key>
<integer>-1046617630</integer>
<key>25</key>
<integer>4055</integer>
<key>26</key>
<integer>10238</integer>
<key>27</key>
<integer>70</integer>
<key>28</key>
<integer>1049587568</integer>
<key>29</key>
<integer>0</integer>
<key>3</key>
<integer>-1071891397</integer>
<key>30</key>
<integer>-1056316958</integer>
<key>31</key>
<integer>1000119450</integer>
<key>32</key>
<integer>16</integer>
<key>33</key>
<integer>-1051999293</integer>
<key>34</key>
<integer>1011271366</integer>
<key>35</key>
<integer>4</integer>
<key>36</key>
<integer>-1051999293</integer>
<key>37</key>
<integer>0</integer>
<key>38</key>
<integer>128</integer>
<key>39</key>
<integer>2</integer>
<key>4</key>
<integer>-1094466626</integer>
<key>40</key>
<integer>-1066710196</integer>
<key>41</key>
<integer>-1094466626</integer>
<key>42</key>
<integer>0</integer>
<key>43</key>
<data>NYuLOzzZXLz9XXs9IDymPLTYPz38St89+Eebvjg51r0IVw4/1kS/PvXFrz3A9I48eQK/u4Y9Jr2puQ++your_sha256_hash1L+HPHUWY7lhYRC8RalZPN7KRbysvJi7c8JGOy7IB719UVG870SgPC3xc7zXL/68mRpcvAl5SLzYMl+your_sha256_hashhashrlHoka7VNeFu+your_sha256_hashBtvjmAnw09+your_sha256_hashak5PWZ1XT1+your_sha256_hashyour_sha256_hashY6u7sVYTu3xYZzrcM5w6K+your_sha256_hashx/PcH98TyVgxI9iCpSPbV0b70V1+your_sha256_hashG8nyour_sha512_hash+KbvhxFW85uM6vGMlVLwdjYO8gNhbvHqUmrufiJe7jXnvu+W737uO8B+your_sha512_hashyour_sha512_hash+your_sha512_hash+MuwYpKLy6ZC283lFRvObQprt4LvE7FQU4PMo+your_sha256_hashyour_sha256_hashoz3vOzU/5DujPepWCL2Hl7U8phK/your_sha256_hashOqqn4Lrk6Bs4EXZzOshgYzsk28Q7LYm/O+your_sha256_hashyour_sha256_hashAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=</data>
<key>5</key>
<integer>-1054158126</integer>
<key>6</key>
<integer>-1062577574</integer>
<key>7</key>
<integer>0</integer>
<key>8</key>
<integer>0</integer>
<key>9</key>
<integer>1</integer>
</dict>
<key>PatchbayInfo</key>
<dict/>
</dict>
<key>DspFunction1</key>
<dict>
<key>FunctionInfo</key>
<dict>
<key>DspFuncInstance</key>
<integer>1</integer>
<key>DspFuncName</key>
<string>DspEqualization32</string>
<key>DspFuncProcessingIndex</key>
<integer>1</integer>
</dict>
<key>ParameterInfo</key>
<dict>
<key>1</key>
<integer>0</integer>
<key>9</key>
<integer>0</integer>
<key>Filter</key>
<array>
<dict>
<key>2</key>
<integer>0</integer>
<key>3</key>
<integer>5</integer>
<key>4</key>
<integer>0</integer>
<key>5</key>
<integer>4</integer>
<key>6</key>
<integer>1135599904</integer>
<key>7</key>
<integer>1092049398</integer>
<key>8</key>
<integer>-1071583482</integer>
</dict>
<dict>
<key>2</key>
<integer>0</integer>
<key>3</key>
<integer>6</integer>
<key>4</key>
<integer>0</integer>
<key>5</key>
<integer>4</integer>
<key>6</key>
<integer>1137098340</integer>
<key>7</key>
<integer>1094327844</integer>
<key>8</key>
<integer>-1071316470</integer>
</dict>
<dict>
<key>2</key>
<integer>0</integer>
<key>3</key>
<integer>15</integer>
<key>4</key>
<integer>0</integer>
<key>5</key>
<integer>4</integer>
<key>6</key>
<integer>1156483412</integer>
<key>7</key>
<integer>1064535200</integer>
<key>8</key>
<integer>1072718281</integer>
</dict>
<dict>
<key>2</key>
<integer>1</integer>
<key>3</key>
<integer>5</integer>
<key>4</key>
<integer>0</integer>
<key>5</key>
<integer>4</integer>
<key>6</key>
<integer>1135599904</integer>
<key>7</key>
<integer>1092049398</integer>
<key>8</key>
<integer>-1071583482</integer>
</dict>
<dict>
<key>2</key>
<integer>1</integer>
<key>3</key>
<integer>6</integer>
<key>4</key>
<integer>0</integer>
<key>5</key>
<integer>4</integer>
<key>6</key>
<integer>1137098340</integer>
<key>7</key>
<integer>1094327844</integer>
<key>8</key>
<integer>-1071316470</integer>
</dict>
<dict>
<key>2</key>
<integer>1</integer>
<key>3</key>
<integer>15</integer>
<key>4</key>
<integer>0</integer>
<key>5</key>
<integer>4</integer>
<key>6</key>
<integer>1156483412</integer>
<key>7</key>
<integer>1064535200</integer>
<key>8</key>
<integer>1072718281</integer>
</dict>
</array>
</dict>
<key>PatchbayInfo</key>
<dict>
<key>InputPort0</key>
<dict>
<key>PortInstance</key>
<integer>0</integer>
<key>PortWidth</key>
<integer>1</integer>
<key>SourceFuncInstance</key>
<integer>0</integer>
<key>SourcePortIndex</key>
<integer>0</integer>
</dict>
<key>InputPort1</key>
<dict>
<key>PortInstance</key>
<integer>1</integer>
<key>PortWidth</key>
<integer>1</integer>
<key>SourceFuncInstance</key>
<integer>0</integer>
<key>SourcePortIndex</key>
<integer>1</integer>
</dict>
</dict>
</dict>
<key>DspFunction2</key>
<dict>
<key>FunctionInfo</key>
<dict>
<key>DspFuncInstance</key>
<integer>2</integer>
<key>DspFuncName</key>
<string>DspVolume</string>
<key>DspFuncProcessingIndex</key>
<integer>2</integer>
</dict>
<key>ParameterInfo</key>
<dict>
<key>1</key>
<integer>0</integer>
<key>2</key>
<integer>0</integer>
<key>3</key>
<integer>0</integer>
<key>4</key>
<integer>0</integer>
<key>5</key>
<integer>0</integer>
</dict>
<key>PatchbayInfo</key>
<dict>
<key>InputPort0</key>
<dict>
<key>PortInstance</key>
<integer>0</integer>
<key>PortWidth</key>
<integer>1</integer>
<key>SourceFuncInstance</key>
<integer>1</integer>
<key>SourcePortIndex</key>
<integer>0</integer>
</dict>
<key>InputPort1</key>
<dict>
<key>PortInstance</key>
<integer>1</integer>
<key>PortWidth</key>
<integer>1</integer>
<key>SourceFuncInstance</key>
<integer>1</integer>
<key>SourcePortIndex</key>
<integer>1</integer>
</dict>
</dict>
</dict>
</dict>
</dict>
</dict>
<dict>
<key>DeviceID</key>
<integer>4</integer>
<key>DeviceType</key>
<string>Headphone</string>
<key>SignalProcessing</key>
<dict>
<key>SoftwareDSP</key>
<dict>
<key>DspFunction0</key>
<dict>
<key>FunctionInfo</key>
<dict>
<key>DspFuncInstance</key>
<integer>0</integer>
<key>DspFuncName</key>
<string>DspVirtualization</string>
<key>DspFuncProcessingIndex</key>
<integer>0</integer>
</dict>
<key>ParameterInfo</key>
<dict>
<key>1</key>
<integer>0</integer>
<key>10</key>
<integer>-1094466626</integer>
<key>11</key>
<integer>1</integer>
<key>12</key>
<integer>-1064304640</integer>
<key>13</key>
<integer>-1058259907</integer>
<key>14</key>
<integer>16</integer>
<key>15</key>
<integer>124</integer>
<key>16</key>
<integer>-1043595264</integer>
<key>17</key>
<integer>5</integer>
<key>18</key>
<integer>204</integer>
<key>19</key>
<integer>405</integer>
<key>2</key>
<integer>0</integer>
<key>20</key>
<integer>-1046401747</integer>
<key>21</key>
<integer>3</integer>
<key>22</key>
<integer>1824</integer>
<key>23</key>
<integer>4033</integer>
<key>24</key>
<integer>-1051135759</integer>
<key>25</key>
<integer>4055</integer>
<key>26</key>
<integer>10128</integer>
<key>27</key>
<integer>30</integer>
<key>28</key>
<integer>1057075633</integer>
<key>29</key>
<integer>0</integer>
<key>3</key>
<integer>-1085584568</integer>
<key>30</key>
<integer>-1056316958</integer>
<key>31</key>
<integer>1000119450</integer>
<key>32</key>
<integer>16</integer>
<key>33</key>
<integer>-1062577574</integer>
<key>34</key>
<integer>1017488806</integer>
<key>35</key>
<integer>4</integer>
<key>36</key>
<integer>-1060850508</integer>
<key>37</key>
<integer>-1094466626</integer>
<key>38</key>
<integer>126</integer>
<key>39</key>
<integer>2</integer>
<key>4</key>
<integer>-1094466626</integer>
<key>40</key>
<integer>-1094466626</integer>
<key>41</key>
<integer>0</integer>
<key>42</key>
<integer>1038707048</integer>
<key>43</key>
<data>NYuLOzzZXLz9XXs9IDymPLTYPz38St89+Eebvjg51r0IVw4/1kS/PvXFrz3A9I48eQK/u4Y9Jr2puQ++your_sha256_hash1L+HPHUWY7lhYRC8RalZPN7KRbysvJi7c8JGOy7IB719UVG870SgPC3xc7zXL/68mRpcvAl5SLzYMl+your_sha256_hashhashrlHoka7VNeFu+your_sha256_hashBtvjmAnw09+your_sha256_hashak5PWZ1XT1+your_sha256_hashyour_sha256_hashY6u7sVYTu3xYZzrcM5w6K+your_sha256_hashx/PcH98TyVgxI9iCpSPbV0b70V1+your_sha256_hashG8nyour_sha512_hash+KbvhxFW85uM6vGMlVLwdjYO8gNhbvHqUmrufiJe7jXnvu+W737uO8B+your_sha512_hashyour_sha512_hash+your_sha512_hash+MuwYpKLy6ZC283lFRvObQprt4LvE7FQU4PMo+your_sha256_hashyour_sha256_hashoz3vOzU/5DujPepWCL2Hl7U8phK/your_sha256_hashOqqn4Lrk6Bs4EXZzOshgYzsk28Q7LYm/O+your_sha256_hashyour_sha256_hashAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=</data>
<key>5</key>
<integer>-1044674680</integer>
<key>6</key>
<integer>-1062577574</integer>
<key>7</key>
<integer>0</integer>
<key>8</key>
<integer>0</integer>
<key>9</key>
<integer>1</integer>
</dict>
<key>PatchbayInfo</key>
<dict/>
</dict>
<key>DspFunction1</key>
<dict>
<key>FunctionInfo</key>
<dict>
<key>DspFuncInstance</key>
<integer>1</integer>
<key>DspFuncName</key>
<string>DspEqualization32</string>
<key>DspFuncProcessingIndex</key>
<integer>1</integer>
</dict>
<key>ParameterInfo</key>
<dict>
<key>1</key>
<integer>0</integer>
<key>9</key>
<integer>0</integer>
<key>Filter</key>
<array>
<dict>
<key>2</key>
<integer>0</integer>
<key>3</key>
<integer>2</integer>
<key>4</key>
<integer>0</integer>
<key>5</key>
<integer>5</integer>
<key>6</key>
<integer>1112891621</integer>
<key>7</key>
<integer>1056964608</integer>
<key>8</key>
<integer>1085890843</integer>
</dict>
<dict>
<key>2</key>
<integer>0</integer>
<key>3</key>
<integer>4</integer>
<key>4</key>
<integer>0</integer>
<key>5</key>
<integer>4</integer>
<key>6</key>
<integer>1122478855</integer>
<key>7</key>
<integer>1071027861</integer>
<key>8</key>
<integer>1055140030</integer>
</dict>
<dict>
<key>2</key>
<integer>0</integer>
<key>3</key>
<integer>5</integer>
<key>4</key>
<integer>0</integer>
<key>5</key>
<integer>4</integer>
<key>6</key>
<integer>1142300713</integer>
<key>7</key>
<integer>1091412266</integer>
<key>8</key>
<integer>-1096615800</integer>
</dict>
<dict>
<key>2</key>
<integer>0</integer>
<key>3</key>
<integer>6</integer>
<key>4</key>
<integer>0</integer>
<key>5</key>
<integer>4</integer>
<key>6</key>
<integer>1132882960</integer>
<key>7</key>
<integer>1093817714</integer>
<key>8</key>
<integer>-1085023055</integer>
</dict>
<dict>
<key>2</key>
<integer>0</integer>
<key>3</key>
<integer>7</integer>
<key>4</key>
<integer>0</integer>
<key>5</key>
<integer>4</integer>
<key>6</key>
<integer>1134982417</integer>
<key>7</key>
<integer>1094107692</integer>
<key>8</key>
<integer>-1092343618</integer>
</dict>
<dict>
<key>2</key>
<integer>0</integer>
<key>3</key>
<integer>8</integer>
<key>4</key>
<integer>0</integer>
<key>5</key>
<integer>4</integer>
<key>6</key>
<integer>1139938623</integer>
<key>7</key>
<integer>1094016231</integer>
<key>8</key>
<integer>-1085023055</integer>
</dict>
<dict>
<key>2</key>
<integer>0</integer>
<key>3</key>
<integer>9</integer>
<key>4</key>
<integer>0</integer>
<key>5</key>
<integer>4</integer>
<key>6</key>
<integer>1148907828</integer>
<key>7</key>
<integer>1082356253</integer>
<key>8</key>
<integer>-1092343618</integer>
</dict>
<dict>
<key>2</key>
<integer>0</integer>
<key>3</key>
<integer>10</integer>
<key>4</key>
<integer>0</integer>
<key>5</key>
<integer>4</integer>
<key>6</key>
<integer>1155688254</integer>
<key>7</key>
<integer>1088819051</integer>
<key>8</key>
<integer>-1085023055</integer>
</dict>
<dict>
<key>2</key>
<integer>0</integer>
<key>3</key>
<integer>11</integer>
<key>4</key>
<integer>0</integer>
<key>5</key>
<integer>4</integer>
<key>6</key>
<integer>1161501777</integer>
<key>7</key>
<integer>1091528789</integer>
<key>8</key>
<integer>-1082886964</integer>
</dict>
<dict>
<key>2</key>
<integer>0</integer>
<key>3</key>
<integer>12</integer>
<key>4</key>
<integer>0</integer>
<key>5</key>
<integer>4</integer>
<key>6</key>
<integer>1137246538</integer>
<key>7</key>
<integer>1090519057</integer>
<key>8</key>
<integer>-1085023055</integer>
</dict>
<dict>
<key>2</key>
<integer>0</integer>
<key>3</key>
<integer>13</integer>
<key>4</key>
<integer>0</integer>
<key>5</key>
<integer>4</integer>
<key>6</key>
<integer>1145593979</integer>
<key>7</key>
<integer>1095510271</integer>
<key>8</key>
<integer>-1089295238</integer>
</dict>
<dict>
<key>2</key>
<integer>0</integer>
<key>3</key>
<integer>15</integer>
<key>4</key>
<integer>0</integer>
<key>5</key>
<integer>4</integer>
<key>6</key>
<integer>1165727948</integer>
<key>7</key>
<integer>1090110505</integer>
<key>8</key>
<integer>-1081440652</integer>
</dict>
<dict>
<key>2</key>
<integer>0</integer>
<key>3</key>
<integer>16</integer>
<key>4</key>
<integer>0</integer>
<key>5</key>
<integer>4</integer>
<key>6</key>
<integer>1176257301</integer>
<key>7</key>
<integer>1101005608</integer>
<key>8</key>
<integer>-1079304561</integer>
</dict>
<dict>
<key>2</key>
<integer>0</integer>
<key>3</key>
<integer>18</integer>
<key>4</key>
<integer>0</integer>
<key>5</key>
<integer>4</integer>
<key>6</key>
<integer>1169949221</integer>
<key>7</key>
<integer>1094346511</integer>
<key>8</key>
<integer>-1080372607</integer>
</dict>
<dict>
<key>2</key>
<integer>0</integer>
<key>3</key>
<integer>19</integer>
<key>4</key>
<integer>0</integer>
<key>5</key>
<integer>4</integer>
<key>6</key>
<integer>1175258964</integer>
<key>7</key>
<integer>1091519117</integer>
<key>8</key>
<integer>-1079304561</integer>
</dict>
<dict>
<key>2</key>
<integer>0</integer>
<key>3</key>
<integer>20</integer>
<key>4</key>
<integer>0</integer>
<key>5</key>
<integer>4</integer>
<key>6</key>
<integer>1167847607</integer>
<key>7</key>
<integer>1090638801</integer>
<key>8</key>
<integer>-1079304561</integer>
</dict>
<dict>
<key>2</key>
<integer>0</integer>
<key>3</key>
<integer>21</integer>
<key>4</key>
<integer>0</integer>
<key>5</key>
<integer>4</integer>
<key>6</key>
<integer>1173971418</integer>
<key>7</key>
<integer>1099717143</integer>
<key>8</key>
<integer>-1075032379</integer>
</dict>
<dict>
<key>2</key>
<integer>0</integer>
<key>3</key>
<integer>22</integer>
<key>4</key>
<integer>0</integer>
<key>5</key>
<integer>4</integer>
<key>6</key>
<integer>1171987320</integer>
<key>7</key>
<integer>1094193217</integer>
<key>8</key>
<integer>-1085023055</integer>
</dict>
<dict>
<key>2</key>
<integer>0</integer>
<key>3</key>
<integer>23</integer>
<key>4</key>
<integer>0</integer>
<key>5</key>
<integer>4</integer>
<key>6</key>
<integer>1177377093</integer>
<key>7</key>
<integer>1102152274</integer>
<key>8</key>
<integer>-1080372607</integer>
</dict>
<dict>
<key>2</key>
<integer>1</integer>
<key>3</key>
<integer>2</integer>
<key>4</key>
<integer>0</integer>
<key>5</key>
<integer>5</integer>
<key>6</key>
<integer>1112891621</integer>
<key>7</key>
<integer>1056964608</integer>
<key>8</key>
<integer>1085890843</integer>
</dict>
<dict>
<key>2</key>
<integer>1</integer>
<key>3</key>
<integer>4</integer>
<key>4</key>
<integer>0</integer>
<key>5</key>
<integer>4</integer>
<key>6</key>
<integer>1122478855</integer>
<key>7</key>
<integer>1071027861</integer>
<key>8</key>
<integer>1055140030</integer>
</dict>
<dict>
<key>2</key>
<integer>1</integer>
<key>3</key>
<integer>5</integer>
<key>4</key>
<integer>0</integer>
<key>5</key>
<integer>4</integer>
<key>6</key>
<integer>1142300713</integer>
<key>7</key>
<integer>1091412266</integer>
<key>8</key>
<integer>-1096615800</integer>
</dict>
<dict>
<key>2</key>
<integer>1</integer>
<key>3</key>
<integer>6</integer>
<key>4</key>
<integer>0</integer>
<key>5</key>
<integer>4</integer>
<key>6</key>
<integer>1132882960</integer>
<key>7</key>
<integer>1093817714</integer>
<key>8</key>
<integer>-1085023055</integer>
</dict>
<dict>
<key>2</key>
<integer>1</integer>
<key>3</key>
<integer>7</integer>
<key>4</key>
<integer>0</integer>
<key>5</key>
<integer>4</integer>
<key>6</key>
<integer>1134982417</integer>
<key>7</key>
<integer>1094107692</integer>
<key>8</key>
<integer>-1092343618</integer>
</dict>
<dict>
<key>2</key>
<integer>1</integer>
<key>3</key>
<integer>8</integer>
<key>4</key>
<integer>0</integer>
<key>5</key>
<integer>4</integer>
<key>6</key>
<integer>1139938623</integer>
<key>7</key>
<integer>1094016231</integer>
<key>8</key>
<integer>-1085023055</integer>
</dict>
<dict>
<key>2</key>
<integer>1</integer>
<key>3</key>
<integer>9</integer>
<key>4</key>
<integer>0</integer>
<key>5</key>
<integer>4</integer>
<key>6</key>
<integer>1148907828</integer>
<key>7</key>
<integer>1082356253</integer>
<key>8</key>
<integer>-1092343618</integer>
</dict>
<dict>
<key>2</key>
<integer>1</integer>
<key>3</key>
<integer>10</integer>
<key>4</key>
<integer>0</integer>
<key>5</key>
<integer>4</integer>
<key>6</key>
<integer>1155688254</integer>
<key>7</key>
<integer>1088819051</integer>
<key>8</key>
<integer>-1085023055</integer>
</dict>
<dict>
<key>2</key>
<integer>1</integer>
<key>3</key>
<integer>11</integer>
<key>4</key>
<integer>0</integer>
<key>5</key>
<integer>4</integer>
<key>6</key>
<integer>1161501777</integer>
<key>7</key>
<integer>1091528789</integer>
<key>8</key>
<integer>-1082886964</integer>
</dict>
<dict>
<key>2</key>
<integer>1</integer>
<key>3</key>
<integer>12</integer>
<key>4</key>
<integer>0</integer>
<key>5</key>
<integer>4</integer>
<key>6</key>
<integer>1137246538</integer>
<key>7</key>
<integer>1090519057</integer>
<key>8</key>
<integer>-1085023055</integer>
</dict>
<dict>
<key>2</key>
<integer>1</integer>
<key>3</key>
<integer>13</integer>
<key>4</key>
<integer>0</integer>
<key>5</key>
<integer>4</integer>
<key>6</key>
<integer>1145593979</integer>
<key>7</key>
<integer>1095510271</integer>
<key>8</key>
<integer>-1089295238</integer>
</dict>
<dict>
<key>2</key>
<integer>1</integer>
<key>3</key>
<integer>15</integer>
<key>4</key>
<integer>0</integer>
<key>5</key>
<integer>4</integer>
<key>6</key>
<integer>1165727948</integer>
<key>7</key>
<integer>1090110505</integer>
<key>8</key>
<integer>-1081440652</integer>
</dict>
<dict>
<key>2</key>
<integer>1</integer>
<key>3</key>
<integer>16</integer>
<key>4</key>
<integer>0</integer>
<key>5</key>
<integer>4</integer>
<key>6</key>
<integer>1176257301</integer>
<key>7</key>
<integer>1101005608</integer>
<key>8</key>
<integer>-1079304561</integer>
</dict>
<dict>
<key>2</key>
<integer>1</integer>
<key>3</key>
<integer>18</integer>
<key>4</key>
<integer>0</integer>
<key>5</key>
<integer>4</integer>
<key>6</key>
<integer>1169949221</integer>
<key>7</key>
<integer>1094346511</integer>
<key>8</key>
<integer>-1080372607</integer>
</dict>
<dict>
<key>2</key>
<integer>1</integer>
<key>3</key>
<integer>19</integer>
<key>4</key>
<integer>0</integer>
<key>5</key>
<integer>4</integer>
<key>6</key>
<integer>1175258964</integer>
<key>7</key>
<integer>1091519117</integer>
<key>8</key>
<integer>-1079304561</integer>
</dict>
<dict>
<key>2</key>
<integer>1</integer>
<key>3</key>
<integer>20</integer>
<key>4</key>
<integer>0</integer>
<key>5</key>
<integer>4</integer>
<key>6</key>
<integer>1167847607</integer>
<key>7</key>
<integer>1090638801</integer>
<key>8</key>
<integer>-1079304561</integer>
</dict>
<dict>
<key>2</key>
<integer>1</integer>
<key>3</key>
<integer>21</integer>
<key>4</key>
<integer>0</integer>
<key>5</key>
<integer>4</integer>
<key>6</key>
<integer>1173971418</integer>
<key>7</key>
<integer>1099717143</integer>
<key>8</key>
<integer>-1075032379</integer>
</dict>
<dict>
<key>2</key>
<integer>1</integer>
<key>3</key>
<integer>22</integer>
<key>4</key>
<integer>0</integer>
<key>5</key>
<integer>4</integer>
<key>6</key>
<integer>1171987320</integer>
<key>7</key>
<integer>1094193217</integer>
<key>8</key>
<integer>-1085023055</integer>
</dict>
<dict>
<key>2</key>
<integer>1</integer>
<key>3</key>
<integer>23</integer>
<key>4</key>
<integer>0</integer>
<key>5</key>
<integer>4</integer>
<key>6</key>
<integer>1177377093</integer>
<key>7</key>
<integer>1102152274</integer>
<key>8</key>
<integer>-1080372607</integer>
</dict>
</array>
</dict>
<key>PatchbayInfo</key>
<dict>
<key>InputPort0</key>
<dict>
<key>PortInstance</key>
<integer>0</integer>
<key>PortWidth</key>
<integer>1</integer>
<key>SourceFuncInstance</key>
<integer>0</integer>
<key>SourcePortIndex</key>
<integer>0</integer>
</dict>
<key>InputPort1</key>
<dict>
<key>PortInstance</key>
<integer>1</integer>
<key>PortWidth</key>
<integer>1</integer>
<key>SourceFuncInstance</key>
<integer>0</integer>
<key>SourcePortIndex</key>
<integer>1</integer>
</dict>
</dict>
</dict>
<key>DspFunction2</key>
<dict>
<key>FunctionInfo</key>
<dict>
<key>DspFuncInstance</key>
<integer>2</integer>
<key>DspFuncName</key>
<string>DspVolume</string>
<key>DspFuncProcessingIndex</key>
<integer>2</integer>
</dict>
<key>ParameterInfo</key>
<dict>
<key>1</key>
<integer>0</integer>
<key>2</key>
<integer>0</integer>
<key>3</key>
<integer>0</integer>
<key>4</key>
<integer>0</integer>
<key>5</key>
<integer>0</integer>
</dict>
<key>PatchbayInfo</key>
<dict>
<key>InputPort0</key>
<dict>
<key>PortInstance</key>
<integer>0</integer>
<key>PortWidth</key>
<integer>1</integer>
<key>SourceFuncInstance</key>
<integer>1</integer>
<key>SourcePortIndex</key>
<integer>0</integer>
</dict>
<key>InputPort1</key>
<dict>
<key>PortInstance</key>
<integer>1</integer>
<key>PortWidth</key>
<integer>1</integer>
<key>SourceFuncInstance</key>
<integer>1</integer>
<key>SourcePortIndex</key>
<integer>1</integer>
</dict>
</dict>
</dict>
</dict>
</dict>
</dict>
<dict>
<key>DeviceID</key>
<integer>5</integer>
<key>DeviceType</key>
<string>Headphone</string>
</dict>
<dict>
<key>DeviceID</key>
<integer>6</integer>
<key>DeviceType</key>
<string>Headphone</string>
</dict>
<dict>
<key>DeviceID</key>
<integer>7</integer>
<key>DeviceType</key>
<string>Headphone</string>
</dict>
<dict>
<key>DeviceID</key>
<integer>0</integer>
<key>DeviceType</key>
<string>Microphone</string>
<key>SignalProcessing</key>
<dict>
<key>SoftwareDSP</key>
<dict>
<key>DspFunction0</key>
<dict>
<key>FunctionInfo</key>
<dict>
<key>DspFuncInstance</key>
<integer>0</integer>
<key>DspFuncName</key>
<string>DspPreGainStage</string>
<key>DspFuncProcessingIndex</key>
<integer>0</integer>
</dict>
<key>ParameterInfo</key>
<dict>
<key>1</key>
<integer>0</integer>
<key>2</key>
<integer>1065353216</integer>
<key>3</key>
<integer>1065353216</integer>
</dict>
<key>PatchbayInfo</key>
<dict/>
</dict>
<key>DspFunction1</key>
<dict>
<key>FunctionInfo</key>
<dict>
<key>DspFuncInstance</key>
<integer>1</integer>
<key>DspFuncName</key>
<string>DspNoiseReduction</string>
<key>DspFuncProcessingIndex</key>
<integer>1</integer>
</dict>
<key>ParameterInfo</key>
<dict>
<key>1</key>
<integer>0</integer>
<key>2</key>
<integer>1</integer>
<key>3</key>
<integer>0</integer>
<key>4</key>
<integer>-1073900105</integer>
<key>5</key>
<data>BK9/your_sha256_hashwpCGlMIcWZbC/your_sha512_hash+oMLibqPC21yjwhjOpsLhQqfCEH+nwojDpsLqEabCkoihwrZko8KYFqTCnWWmwhj/qcLplqrCAhyrwvEgq8JwjKjCurCkws+your_sha256_hashyour_sha256_hashyour_sha256_hash9rML3/K/your_sha256_hashCkrmzwmBWsMIQqrHC1kmwwloussKnybLC+your_sha256_hashZ7JwixDzMJm5c/C1FrRwgVZ2MIqAN3CI4rlwpaa78KO4vfCiywAw3HFA8OL1wvD</data>
</dict>
<key>PatchbayInfo</key>
<dict>
<key>InputPort0</key>
<dict>
<key>PortInstance</key>
<integer>0</integer>
<key>PortWidth</key>
<integer>1</integer>
<key>SourceFuncInstance</key>
<integer>0</integer>
<key>SourcePortIndex</key>
<integer>0</integer>
</dict>
<key>InputPort1</key>
<dict>
<key>PortInstance</key>
<integer>1</integer>
<key>PortWidth</key>
<integer>1</integer>
<key>SourceFuncInstance</key>
<integer>0</integer>
<key>SourcePortIndex</key>
<integer>1</integer>
</dict>
</dict>
</dict>
<key>DspFunction2</key>
<dict>
<key>FunctionInfo</key>
<dict>
<key>DspFuncInstance</key>
<integer>2</integer>
<key>DspFuncName</key>
<string>DspEqualization32</string>
<key>DspFuncProcessingIndex</key>
<integer>2</integer>
</dict>
<key>ParameterInfo</key>
<dict>
<key>1</key>
<integer>0</integer>
<key>9</key>
<integer>0</integer>
<key>Filter</key>
<array>
<dict>
<key>2</key>
<integer>0</integer>
<key>3</key>
<integer>0</integer>
<key>4</key>
<integer>0</integer>
<key>5</key>
<integer>1</integer>
<key>6</key>
<integer>1117798621</integer>
<key>7</key>
<integer>1060439283</integer>
<key>8</key>
<integer>1099519471</integer>
</dict>
<dict>
<key>2</key>
<integer>0</integer>
<key>3</key>
<integer>31</integer>
<key>4</key>
<integer>0</integer>
<key>5</key>
<integer>0</integer>
<key>6</key>
<integer>1184151638</integer>
<key>7</key>
<integer>1060439283</integer>
<key>8</key>
<integer>0</integer>
</dict>
<dict>
<key>2</key>
<integer>1</integer>
<key>3</key>
<integer>0</integer>
<key>4</key>
<integer>0</integer>
<key>5</key>
<integer>1</integer>
<key>6</key>
<integer>1117798621</integer>
<key>7</key>
<integer>1060439283</integer>
<key>8</key>
<integer>1099519471</integer>
</dict>
<dict>
<key>2</key>
<integer>1</integer>
<key>3</key>
<integer>31</integer>
<key>4</key>
<integer>0</integer>
<key>5</key>
<integer>0</integer>
<key>6</key>
<integer>1184151638</integer>
<key>7</key>
<integer>1060439283</integer>
<key>8</key>
<integer>0</integer>
</dict>
</array>
</dict>
<key>PatchbayInfo</key>
<dict>
<key>InputPort0</key>
<dict>
<key>PortInstance</key>
<integer>0</integer>
<key>PortWidth</key>
<integer>1</integer>
<key>SourceFuncInstance</key>
<integer>1</integer>
<key>SourcePortIndex</key>
<integer>0</integer>
</dict>
<key>InputPort1</key>
<dict>
<key>PortInstance</key>
<integer>1</integer>
<key>PortWidth</key>
<integer>1</integer>
<key>SourceFuncInstance</key>
<integer>1</integer>
<key>SourcePortIndex</key>
<integer>1</integer>
</dict>
</dict>
</dict>
</dict>
</dict>
</dict>
<dict>
<key>DeviceID</key>
<integer>1</integer>
<key>DeviceType</key>
<string>Microphone</string>
<key>SignalProcessing</key>
<dict>
<key>SoftwareDSP</key>
<dict>
<key>DspFunction0</key>
<dict>
<key>FunctionInfo</key>
<dict>
<key>DspFuncInstance</key>
<integer>0</integer>
<key>DspFuncName</key>
<string>DspPreGainStage</string>
<key>DspFuncProcessingIndex</key>
<integer>0</integer>
</dict>
<key>ParameterInfo</key>
<dict>
<key>1</key>
<integer>0</integer>
<key>2</key>
<integer>1065353216</integer>
<key>3</key>
<integer>1065353216</integer>
</dict>
<key>PatchbayInfo</key>
<dict/>
</dict>
</dict>
</dict>
</dict>
<dict>
<key>DeviceID</key>
<integer>2</integer>
<key>DeviceType</key>
<string>Microphone</string>
<key>SignalProcessing</key>
<dict>
<key>SoftwareDSP</key>
<dict>
<key>DspFunction0</key>
<dict>
<key>FunctionInfo</key>
<dict>
<key>DspFuncInstance</key>
<integer>0</integer>
<key>DspFuncName</key>
<string>DspPreGainStage</string>
<key>DspFuncProcessingIndex</key>
<integer>0</integer>
</dict>
<key>ParameterInfo</key>
<dict>
<key>1</key>
<integer>0</integer>
<key>2</key>
<integer>1065353216</integer>
<key>3</key>
<integer>1065353216</integer>
</dict>
<key>PatchbayInfo</key>
<dict/>
</dict>
</dict>
</dict>
</dict>
<dict>
<key>DeviceID</key>
<integer>3</integer>
<key>DeviceType</key>
<string>Microphone</string>
<key>SignalProcessing</key>
<dict>
<key>SoftwareDSP</key>
<dict>
<key>DspFunction0</key>
<dict>
<key>FunctionInfo</key>
<dict>
<key>DspFuncInstance</key>
<integer>0</integer>
<key>DspFuncName</key>
<string>DspPreGainStage</string>
<key>DspFuncProcessingIndex</key>
<integer>0</integer>
</dict>
<key>ParameterInfo</key>
<dict>
<key>1</key>
<integer>0</integer>
<key>2</key>
<integer>1065353216</integer>
<key>3</key>
<integer>1065353216</integer>
</dict>
<key>PatchbayInfo</key>
<dict/>
</dict>
<key>DspFunction1</key>
<dict>
<key>FunctionInfo</key>
<dict>
<key>DspFuncInstance</key>
<integer>1</integer>
<key>DspFuncName</key>
<string>DspNoiseReduction</string>
<key>DspFuncProcessingIndex</key>
<integer>1</integer>
</dict>
<key>ParameterInfo</key>
<dict>
<key>1</key>
<integer>0</integer>
<key>2</key>
<integer>1</integer>
<key>3</key>
<integer>0</integer>
<key>4</key>
<integer>-1073900105</integer>
<key>5</key>
<data>aouLwiBHdMIsbXTClNV6wpl0gMLLGoPCsqCFwk+Sh8KXQYnCNLGKwpoejMIuCY3C1uyNwvU6jcJ6No/Cs5GPwiu4kMJ8cpLCBiCTwlZdk8JhopPC/SKTwgBAksK6fJTCD++Twge/lcLr+your_sha256_hashprCfUeXwr4wmcJoWpnCiCGawtXzm8JHcZzCGs6cws2TnMKUeJvCgWaZwrB2m8Ib+your_sha256_hash5/CaCqgwnjtn8Ina53C9hmewuKuncJgS57CYg+gwp7nn8JiC6HCJhKhwr4eoMK3FJ7CwNyfwqCwnsL0JKDCMb+gwrpUocL1WqLCTomiwvc6ocIifaDC/iOhwsmon8Klw6HC2k2hwiEKo8Ju4KPCvbGjwr45osJuoaLCUwqiwlGLocJ2+your_sha256_hashqnCqkGqwihiqsI+UazCPeerwsdar8K2nLDCi3qzwkoht8KahLnC/PO7whIgv8Ky6sLC6unFwtOazMJnjtHCq2nZwrI94sKiEuvCohP1wtjb/cJ5LwfD</data>
</dict>
<key>PatchbayInfo</key>
<dict>
<key>InputPort0</key>
<dict>
<key>PortInstance</key>
<integer>0</integer>
<key>PortWidth</key>
<integer>1</integer>
<key>SourceFuncInstance</key>
<integer>0</integer>
<key>SourcePortIndex</key>
<integer>0</integer>
</dict>
<key>InputPort1</key>
<dict>
<key>PortInstance</key>
<integer>1</integer>
<key>PortWidth</key>
<integer>1</integer>
<key>SourceFuncInstance</key>
<integer>0</integer>
<key>SourcePortIndex</key>
<integer>1</integer>
</dict>
</dict>
</dict>
<key>DspFunction2</key>
<dict>
<key>FunctionInfo</key>
<dict>
<key>DspFuncInstance</key>
<integer>2</integer>
<key>DspFuncName</key>
<string>DspEqualization32</string>
<key>DspFuncProcessingIndex</key>
<integer>2</integer>
</dict>
<key>ParameterInfo</key>
<dict>
<key>1</key>
<integer>0</integer>
<key>9</key>
<integer>0</integer>
<key>Filter</key>
<array>
<dict>
<key>2</key>
<integer>0</integer>
<key>3</key>
<integer>0</integer>
<key>4</key>
<integer>0</integer>
<key>5</key>
<integer>1</integer>
<key>6</key>
<integer>1117798621</integer>
<key>7</key>
<integer>1060439283</integer>
<key>8</key>
<integer>1099519471</integer>
</dict>
<dict>
<key>2</key>
<integer>0</integer>
<key>3</key>
<integer>31</integer>
<key>4</key>
<integer>0</integer>
<key>5</key>
<integer>0</integer>
<key>6</key>
<integer>1184151638</integer>
<key>7</key>
<integer>1060439283</integer>
<key>8</key>
<integer>0</integer>
</dict>
<dict>
<key>2</key>
<integer>1</integer>
<key>3</key>
<integer>0</integer>
<key>4</key>
<integer>0</integer>
<key>5</key>
<integer>1</integer>
<key>6</key>
<integer>1117798621</integer>
<key>7</key>
<integer>1060439283</integer>
<key>8</key>
<integer>1099519471</integer>
</dict>
<dict>
<key>2</key>
<integer>1</integer>
<key>3</key>
<integer>31</integer>
<key>4</key>
<integer>0</integer>
<key>5</key>
<integer>0</integer>
<key>6</key>
<integer>1184151638</integer>
<key>7</key>
<integer>1060439283</integer>
<key>8</key>
<integer>0</integer>
</dict>
</array>
</dict>
<key>PatchbayInfo</key>
<dict>
<key>InputPort0</key>
<dict>
<key>PortInstance</key>
<integer>0</integer>
<key>PortWidth</key>
<integer>1</integer>
<key>SourceFuncInstance</key>
<integer>1</integer>
<key>SourcePortIndex</key>
<integer>0</integer>
</dict>
<key>InputPort1</key>
<dict>
<key>PortInstance</key>
<integer>1</integer>
<key>PortWidth</key>
<integer>1</integer>
<key>SourceFuncInstance</key>
<integer>1</integer>
<key>SourcePortIndex</key>
<integer>1</integer>
</dict>
</dict>
</dict>
</dict>
</dict>
</dict>
<dict>
<key>DeviceID</key>
<integer>4</integer>
<key>DeviceType</key>
<string>Microphone</string>
<key>SignalProcessing</key>
<dict>
<key>SoftwareDSP</key>
<dict>
<key>DspFunction0</key>
<dict>
<key>FunctionInfo</key>
<dict>
<key>DspFuncInstance</key>
<integer>0</integer>
<key>DspFuncName</key>
<string>DspPreGainStage</string>
<key>DspFuncProcessingIndex</key>
<integer>0</integer>
</dict>
<key>ParameterInfo</key>
<dict>
<key>1</key>
<integer>0</integer>
<key>2</key>
<integer>1065353216</integer>
<key>3</key>
<integer>1065353216</integer>
</dict>
<key>PatchbayInfo</key>
<dict/>
</dict>
<key>DspFunction1</key>
<dict>
<key>FunctionInfo</key>
<dict>
<key>DspFuncInstance</key>
<integer>1</integer>
<key>DspFuncName</key>
<string>DspNoiseReduction</string>
<key>DspFuncProcessingIndex</key>
<integer>1</integer>
</dict>
<key>ParameterInfo</key>
<dict>
<key>1</key>
<integer>0</integer>
<key>2</key>
<integer>1</integer>
<key>3</key>
<integer>0</integer>
<key>4</key>
<integer>-1073900105</integer>
<key>5</key>
<data>aouLwiBHdMIsbXTClNV6wpl0gMLLGoPCsqCFwk+Sh8KXQYnCNLGKwpoejMIuCY3C1uyNwvU6jcJ6No/Cs5GPwiu4kMJ8cpLCBiCTwlZdk8JhopPC/SKTwgBAksK6fJTCD++Twge/lcLr+your_sha256_hashprCfUeXwr4wmcJoWpnCiCGawtXzm8JHcZzCGs6cws2TnMKUeJvCgWaZwrB2m8Ib+your_sha256_hash5/CaCqgwnjtn8Ina53C9hmewuKuncJgS57CYg+gwp7nn8JiC6HCJhKhwr4eoMK3FJ7CwNyfwqCwnsL0JKDCMb+gwrpUocL1WqLCTomiwvc6ocIifaDC/iOhwsmon8Klw6HC2k2hwiEKo8Ju4KPCvbGjwr45osJuoaLCUwqiwlGLocJ2+your_sha256_hashqnCqkGqwihiqsI+UazCPeerwsdar8K2nLDCi3qzwkoht8KahLnC/PO7whIgv8Ky6sLC6unFwtOazMJnjtHCq2nZwrI94sKiEuvCohP1wtjb/cJ5LwfD</data>
</dict>
<key>PatchbayInfo</key>
<dict>
<key>InputPort0</key>
<dict>
<key>PortInstance</key>
<integer>0</integer>
<key>PortWidth</key>
<integer>1</integer>
<key>SourceFuncInstance</key>
<integer>0</integer>
<key>SourcePortIndex</key>
<integer>0</integer>
</dict>
<key>InputPort1</key>
<dict>
<key>PortInstance</key>
<integer>1</integer>
<key>PortWidth</key>
<integer>1</integer>
<key>SourceFuncInstance</key>
<integer>0</integer>
<key>SourcePortIndex</key>
<integer>1</integer>
</dict>
</dict>
</dict>
<key>DspFunction2</key>
<dict>
<key>FunctionInfo</key>
<dict>
<key>DspFuncInstance</key>
<integer>2</integer>
<key>DspFuncName</key>
<string>DspEqualization32</string>
<key>DspFuncProcessingIndex</key>
<integer>2</integer>
</dict>
<key>ParameterInfo</key>
<dict>
<key>1</key>
<integer>0</integer>
<key>9</key>
<integer>0</integer>
<key>Filter</key>
<array>
<dict>
<key>2</key>
<integer>0</integer>
<key>3</key>
<integer>0</integer>
<key>4</key>
<integer>0</integer>
<key>5</key>
<integer>1</integer>
<key>6</key>
<integer>1117798621</integer>
<key>7</key>
<integer>1060439283</integer>
<key>8</key>
<integer>1099519471</integer>
</dict>
<dict>
<key>2</key>
<integer>0</integer>
<key>3</key>
<integer>31</integer>
<key>4</key>
<integer>0</integer>
<key>5</key>
<integer>0</integer>
<key>6</key>
<integer>1184151638</integer>
<key>7</key>
<integer>1060439283</integer>
<key>8</key>
<integer>0</integer>
</dict>
<dict>
<key>2</key>
<integer>1</integer>
<key>3</key>
<integer>0</integer>
<key>4</key>
<integer>0</integer>
<key>5</key>
<integer>1</integer>
<key>6</key>
<integer>1117798621</integer>
<key>7</key>
<integer>1060439283</integer>
<key>8</key>
<integer>1099519471</integer>
</dict>
<dict>
<key>2</key>
<integer>1</integer>
<key>3</key>
<integer>31</integer>
<key>4</key>
<integer>0</integer>
<key>5</key>
<integer>0</integer>
<key>6</key>
<integer>1184151638</integer>
<key>7</key>
<integer>1060439283</integer>
<key>8</key>
<integer>0</integer>
</dict>
</array>
</dict>
<key>PatchbayInfo</key>
<dict>
<key>InputPort0</key>
<dict>
<key>PortInstance</key>
<integer>0</integer>
<key>PortWidth</key>
<integer>1</integer>
<key>SourceFuncInstance</key>
<integer>1</integer>
<key>SourcePortIndex</key>
<integer>0</integer>
</dict>
<key>InputPort1</key>
<dict>
<key>PortInstance</key>
<integer>1</integer>
<key>PortWidth</key>
<integer>1</integer>
<key>SourceFuncInstance</key>
<integer>1</integer>
<key>SourcePortIndex</key>
<integer>1</integer>
</dict>
</dict>
</dict>
</dict>
</dict>
</dict>
<dict>
<key>DeviceID</key>
<integer>5</integer>
<key>DeviceType</key>
<string>Microphone</string>
<key>SignalProcessing</key>
<dict>
<key>SoftwareDSP</key>
<dict>
<key>DspFunction0</key>
<dict>
<key>FunctionInfo</key>
<dict>
<key>DspFuncInstance</key>
<integer>0</integer>
<key>DspFuncName</key>
<string>DspPreGainStage</string>
<key>DspFuncProcessingIndex</key>
<integer>0</integer>
</dict>
<key>ParameterInfo</key>
<dict>
<key>1</key>
<integer>0</integer>
<key>2</key>
<integer>1065353216</integer>
<key>3</key>
<integer>1065353216</integer>
</dict>
<key>PatchbayInfo</key>
<dict/>
</dict>
</dict>
</dict>
</dict>
<dict>
<key>DeviceID</key>
<integer>6</integer>
<key>DeviceType</key>
<string>Microphone</string>
<key>SignalProcessing</key>
<dict>
<key>SoftwareDSP</key>
<dict>
<key>DspFunction0</key>
<dict>
<key>FunctionInfo</key>
<dict>
<key>DspFuncInstance</key>
<integer>0</integer>
<key>DspFuncName</key>
<string>DspPreGainStage</string>
<key>DspFuncProcessingIndex</key>
<integer>0</integer>
</dict>
<key>ParameterInfo</key>
<dict>
<key>1</key>
<integer>0</integer>
<key>2</key>
<integer>1065353216</integer>
<key>3</key>
<integer>1065353216</integer>
</dict>
<key>PatchbayInfo</key>
<dict/>
</dict>
</dict>
</dict>
</dict>
<dict>
<key>DeviceID</key>
<integer>7</integer>
<key>DeviceType</key>
<string>Microphone</string>
<key>SignalProcessing</key>
<dict>
<key>SoftwareDSP</key>
<dict>
<key>DspFunction0</key>
<dict>
<key>FunctionInfo</key>
<dict>
<key>DspFuncInstance</key>
<integer>0</integer>
<key>DspFuncName</key>
<string>DspPreGainStage</string>
<key>DspFuncProcessingIndex</key>
<integer>0</integer>
</dict>
<key>ParameterInfo</key>
<dict>
<key>1</key>
<integer>0</integer>
<key>2</key>
<integer>1065353216</integer>
<key>3</key>
<integer>1065353216</integer>
</dict>
<key>PatchbayInfo</key>
<dict/>
</dict>
</dict>
</dict>
</dict>
</array>
<key>PathMaps</key>
<array>
<dict>
<key>PathMap</key>
<array>
<array>
<array>
<array>
<dict>
<key>Amp</key>
<dict>
<key>Channels</key>
<array>
<dict>
<key>Bind</key>
<integer>1</integer>
<key>Channel</key>
<integer>1</integer>
</dict>
<dict>
<key>Bind</key>
<integer>2</integer>
<key>Channel</key>
<integer>2</integer>
</dict>
</array>
<key>MuteInputAmp</key>
<true/>
<key>PublishMute</key>
<true/>
<key>PublishVolume</key>
<true/>
<key>VolumeInputAmp</key>
<true/>
</dict>
<key>NodeID</key>
<integer>9</integer>
</dict>
<dict>
<key>NodeID</key>
<integer>34</integer>
</dict>
<dict>
<key>Boost</key>
<integer>3</integer>
<key>NodeID</key>
<integer>24</integer>
</dict>
</array>
</array>
<array>
<array>
<dict>
<key>Amp</key>
<dict>
<key>Channels</key>
<array>
<dict>
<key>Bind</key>
<integer>1</integer>
<key>Channel</key>
<integer>1</integer>
</dict>
<dict>
<key>Bind</key>
<integer>2</integer>
<key>Channel</key>
<integer>2</integer>
</dict>
</array>
<key>MuteInputAmp</key>
<true/>
<key>PublishMute</key>
<true/>
<key>PublishVolume</key>
<true/>
<key>VolumeInputAmp</key>
<true/>
</dict>
<key>NodeID</key>
<integer>9</integer>
</dict>
<dict>
<key>NodeID</key>
<integer>34</integer>
</dict>
<dict>
<key>Boost</key>
<integer>3</integer>
<key>NodeID</key>
<integer>18</integer>
</dict>
</array>
</array>
</array>
<array>
<array>
<array>
<dict>
<key>NodeID</key>
<integer>20</integer>
</dict>
<dict>
<key>Amp</key>
<dict>
<key>Channels</key>
<array>
<dict>
<key>Bind</key>
<integer>1</integer>
<key>Channel</key>
<integer>1</integer>
</dict>
<dict>
<key>Bind</key>
<integer>2</integer>
<key>Channel</key>
<integer>2</integer>
</dict>
</array>
<key>MuteInputAmp</key>
<true/>
<key>PublishMute</key>
<true/>
</dict>
<key>NodeID</key>
<integer>12</integer>
</dict>
<dict>
<key>Amp</key>
<dict>
<key>Channels</key>
<array>
<dict>
<key>Bind</key>
<integer>1</integer>
<key>Channel</key>
<integer>1</integer>
</dict>
<dict>
<key>Bind</key>
<integer>2</integer>
<key>Channel</key>
<integer>2</integer>
</dict>
</array>
<key>MuteInputAmp</key>
<false/>
<key>PublishMute</key>
<false/>
<key>PublishVolume</key>
<true/>
<key>VolumeInputAmp</key>
<false/>
</dict>
<key>NodeID</key>
<integer>2</integer>
</dict>
</array>
</array>
<array>
<array>
<dict>
<key>NodeID</key>
<integer>33</integer>
</dict>
<dict>
<key>Amp</key>
<dict>
<key>Channels</key>
<array>
<dict>
<key>Bind</key>
<integer>1</integer>
<key>Channel</key>
<integer>1</integer>
</dict>
<dict>
<key>Bind</key>
<integer>2</integer>
<key>Channel</key>
<integer>2</integer>
</dict>
</array>
<key>MuteInputAmp</key>
<true/>
<key>PublishMute</key>
<true/>
</dict>
<key>NodeID</key>
<integer>12</integer>
</dict>
<dict>
<key>Amp</key>
<dict>
<key>Channels</key>
<array>
<dict>
<key>Bind</key>
<integer>1</integer>
<key>Channel</key>
<integer>1</integer>
</dict>
<dict>
<key>Bind</key>
<integer>2</integer>
<key>Channel</key>
<integer>2</integer>
</dict>
</array>
<key>MuteInputAmp</key>
<false/>
<key>PublishMute</key>
<false/>
<key>PublishVolume</key>
<true/>
<key>VolumeInputAmp</key>
<false/>
</dict>
<key>NodeID</key>
<integer>2</integer>
</dict>
</array>
</array>
</array>
</array>
<key>PathMapID</key>
<integer>272</integer>
</dict>
</array>
</dict>
``` | /content/code_sandbox/Resources/ALC272/Platforms12.xml | xml | 2016-03-07T20:45:58 | 2024-08-14T08:57:03 | AppleALC | acidanthera/AppleALC | 3,420 | 20,276 |
```xml
#!/usr/bin/env ./node_modules/.bin/tsnd
//
// Based on the script written by @cristiandean
//
// Source: path_to_url
//
import { FluentResource } from "@fluent/bundle";
import fs from "fs";
import path from "path";
const PROJECT_ROOT = path.resolve(__dirname, "..", "..");
const LOCALE_DIRECTORIES = [
path.join(PROJECT_ROOT, "src/locales"),
path.join(PROJECT_ROOT, "src/core/server/locales"),
];
const wrap = (color: string) => (msg: string) => {
if (!msg) {
return;
}
// eslint-disable-next-line no-console
console.log(`${color}%s\x1b[0m`, msg);
};
const log = {
red: wrap("\x1b[31m"),
green: wrap("\x1b[32m"),
plain: wrap("\x1b[0m"),
};
interface LocaleFileListing {
locale: string;
files: LocaleFile[];
}
interface LocaleFile {
fileName: string;
directory: string;
filePath: string;
keys: Set<string>;
}
function loadLocale(locale: string) {
const listing: LocaleFileListing = { locale, files: [] };
for (const directory of LOCALE_DIRECTORIES) {
// Resolve the directory with the language code, this should be a folder
// containing language files for the specified context.
const localeDirectory = path.join(directory, locale);
if (!fs.existsSync(localeDirectory)) {
continue;
}
// The folder exists, list all files in this directory and begin loading
// them.
const localeFiles = fs.readdirSync(localeDirectory);
for (const fileName of localeFiles) {
const filePath = path.join(localeDirectory, fileName);
// Load the file.
const source = fs.readFileSync(filePath, "utf-8").toString();
// Create the resource based on the file.
const resource = new FluentResource(source);
// Iterate over the ids to create the set of ID's.
const keys = new Set<string>();
for (const entry of resource.body) {
if (entry.id.startsWith("-")) {
// Identifiers starting with a `-` define terms, these are not used
// for this as we're only comparing messages.
continue;
}
keys.add(entry.id);
}
// Add the new file.
listing.files.push({ fileName, directory, filePath, keys });
}
}
return listing;
}
function diffSet(a: Set<string>, b: Set<string>): Set<string> {
const n = new Set(a);
for (const e of b) {
n.delete(e);
}
return n;
}
function prefixDiffSet(prefix: string, a: Set<string>, b: Set<string>) {
return [...diffSet(a, b).values()]
.map((value) => `${prefix}${value}`)
.join("\n");
}
function diff(from: LocaleFileListing, to: LocaleFileListing) {
for (const f of from.files) {
// Log the header information for this file.
log.plain(`* From: ${f.filePath}`);
// Find the associated "to" file.
const t = to.files.find(
(file) => file.fileName === f.fileName && file.directory === f.directory
);
if (!t) {
log.red(
`* To: ${path.join(f.directory, to.locale, f.fileName)} (missing)`
);
log.plain("-".repeat(60));
continue;
}
log.plain(`* To: ${t.filePath}`);
log.green(prefixDiffSet(" + ", f.keys, t.keys));
log.red(prefixDiffSet(" - ", t.keys, f.keys));
log.plain("-".repeat(60));
}
}
function main() {
try {
if (process.argv.length < 3) {
throw new Error("usage: ./scripts/i18n/missingTranslations.ts <locale>");
}
// Load the target translation.
const to = loadLocale(process.argv[2]);
// Load the base language (US English).
const from = loadLocale("en-US");
// Report the difference in key existence.
diff(from, to);
} catch (err) {
// eslint-disable-next-line no-console
console.error(err);
process.exit(1);
}
}
main();
``` | /content/code_sandbox/client/scripts/i18n/validate.ts | xml | 2016-10-31T16:14:05 | 2024-08-06T16:15:57 | talk | coralproject/talk | 1,881 | 943 |
```xml
import { FluentDesignSystem } from '../fluent-design-system.js';
import { RatingDisplay } from './rating-display.js';
import { styles } from './rating-display.styles.js';
import { template } from './rating-display.template.js';
/**
* The definition for the Fluent Rating Display component.
*
* @public
* @remarks
* HTML Element: `<fluent-rating-display>`
*/
export const definition = RatingDisplay.compose({
name: `${FluentDesignSystem.prefix}-rating-display`,
template,
styles,
});
``` | /content/code_sandbox/packages/web-components/src/rating-display/rating-display.definition.ts | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 107 |
```xml
import { Entity, OneToMany, PrimaryGeneratedColumn } from "../../../../src"
import { Document } from "./Document"
@Entity()
export class User {
@PrimaryGeneratedColumn("uuid")
id: string
@OneToMany(() => Document, (doc) => doc.owner, { onDelete: "CASCADE" })
docs: Document[]
}
``` | /content/code_sandbox/test/github-issues/5898/entity/User.ts | xml | 2016-02-29T07:41:14 | 2024-08-16T18:28:52 | typeorm | typeorm/typeorm | 33,875 | 70 |
```xml
/*
*
* See the LICENSE file at the top-level directory of this distribution
* for licensing information.
*
* Unless otherwise agreed in a custom licensing agreement with the Lisk Foundation,
* no part of this software, including this file, may be copied, modified,
* propagated, or distributed except according to the terms contained in the
* LICENSE file.
*
* Removal or modification of this copyright notice is prohibited.
*/
import { objects as objectUtils } from '@liskhq/lisk-utils';
import { codec } from '@liskhq/lisk-codec';
import { validator } from '@liskhq/lisk-validator';
import { BaseModule, ModuleInitArgs, ModuleMetadata } from '../base_module';
import {
GenesisBlockExecuteContext,
TransactionExecuteContext,
TransactionVerifyContext,
VerificationResult,
VerifyStatus,
} from '../../state_machine';
import { AuthMethod } from './method';
import { ADDRESS_LENGTH, defaultConfig } from './constants';
import { AuthEndpoint } from './endpoint';
import {
addressRequestSchema,
configSchema,
genesisAuthStoreSchema,
multisigRegMsgSchema,
sortMultisignatureGroupResponseSchema,
sortMultisignatureGroupRequestSchema,
transactionRequestSchema,
verifyResultSchema,
multiSigRegMsgTagSchema,
} from './schemas';
import { GenesisAuthStore } from './types';
import { verifyNonce, verifySignatures } from './utils';
import { authAccountSchema, AuthAccountStore } from './stores/auth_account';
import { MultisignatureRegistrationEvent } from './events/multisignature_registration';
import { RegisterMultisignatureCommand } from './commands/register_multisignature';
import { InvalidSignatureEvent } from './events/invalid_signature';
import { InvalidNonceError } from './errors';
export class AuthModule extends BaseModule {
public method = new AuthMethod(this.stores, this.events);
public endpoint = new AuthEndpoint(this.stores, this.offchainStores);
public configSchema = configSchema;
private readonly _registerMultisignatureCommand = new RegisterMultisignatureCommand(
this.stores,
this.events,
);
public commands = [this._registerMultisignatureCommand];
private _moduleConfig!: { maxNumberOfSignatures: number };
public constructor() {
super();
this.stores.register(AuthAccountStore, new AuthAccountStore(this.name, 0));
this.events.register(
MultisignatureRegistrationEvent,
new MultisignatureRegistrationEvent(this.name),
);
this.events.register(InvalidSignatureEvent, new InvalidSignatureEvent(this.name));
}
public metadata(): ModuleMetadata {
return {
...this.baseMetadata(),
endpoints: [
{
name: this.endpoint.getAuthAccount.name,
request: addressRequestSchema,
response: authAccountSchema,
},
{
name: this.endpoint.isValidNonce.name,
request: transactionRequestSchema,
response: verifyResultSchema,
},
{
name: this.endpoint.isValidSignature.name,
request: transactionRequestSchema,
response: verifyResultSchema,
},
{
name: this.endpoint.getMultiSigRegMsgSchema.name,
response: multisigRegMsgSchema,
},
{
name: this.endpoint.sortMultisignatureGroup.name,
request: sortMultisignatureGroupRequestSchema,
response: sortMultisignatureGroupResponseSchema,
},
{
name: this.endpoint.getMultiSigRegMsgTag.name,
response: multiSigRegMsgTagSchema,
},
],
assets: [
{
version: 0,
data: genesisAuthStoreSchema,
},
],
};
}
// eslint-disable-next-line @typescript-eslint/require-await
public async init(args: ModuleInitArgs): Promise<void> {
const { moduleConfig } = args;
const config = objectUtils.mergeDeep({}, defaultConfig, moduleConfig);
validator.validate<{ maxNumberOfSignatures: number }>(configSchema, config);
this._moduleConfig = { maxNumberOfSignatures: config.maxNumberOfSignatures };
this._registerMultisignatureCommand.init({
maxNumberOfSignatures: config.maxNumberOfSignatures,
});
}
public async initGenesisState(context: GenesisBlockExecuteContext): Promise<void> {
const assetBytes = context.assets.getAsset(this.name);
// if there is no asset, do not initialize
if (!assetBytes) {
return;
}
const genesisStore = codec.decode<GenesisAuthStore>(genesisAuthStoreSchema, assetBytes);
const store = this.stores.get(AuthAccountStore);
const keys = [];
for (const { address, authAccount } of genesisStore.authDataSubstore) {
if (address.length !== ADDRESS_LENGTH) {
throw new Error('Invalid store key length for auth module.');
}
keys.push(address);
validator.validate(authAccountSchema, authAccount);
const { mandatoryKeys, optionalKeys, numberOfSignatures } = authAccount;
if (!objectUtils.isBufferArrayOrdered(mandatoryKeys)) {
throw new Error(
'Invalid store value for auth module. MandatoryKeys are not sorted lexicographically.',
);
}
if (!objectUtils.bufferArrayUniqueItems(mandatoryKeys)) {
throw new Error('Invalid store value for auth module. MandatoryKeys are not unique.');
}
if (!objectUtils.isBufferArrayOrdered(optionalKeys)) {
throw new Error(
'Invalid store value for auth module. OptionalKeys are not sorted lexicographically.',
);
}
if (!objectUtils.bufferArrayUniqueItems(optionalKeys)) {
throw new Error('Invalid store value for auth module. OptionalKeys are not unique.');
}
if (mandatoryKeys.length + optionalKeys.length > this._moduleConfig.maxNumberOfSignatures) {
throw new Error(
`The count of Mandatory and Optional keys should be maximum ${this._moduleConfig.maxNumberOfSignatures}.`,
);
}
const repeatedKeys = mandatoryKeys.filter(
value => optionalKeys.find(optional => optional.equals(value)) !== undefined,
);
if (repeatedKeys.length > 0) {
throw new Error(
'Invalid combination of Mandatory and Optional keys. Repeated keys across Mandatory and Optional were found.',
);
}
// Check if key count is less than number of required signatures
if (mandatoryKeys.length + optionalKeys.length < numberOfSignatures) {
throw new Error(
'The numberOfSignatures is bigger than the count of Mandatory and Optional keys.',
);
}
if (mandatoryKeys.length > numberOfSignatures) {
throw new Error('The numberOfSignatures is smaller than the count of Mandatory keys.');
}
await store.set(context, address, authAccount);
}
if (!objectUtils.bufferArrayUniqueItems(keys)) {
throw new Error('Duplicate address in the for auth module.');
}
}
public async verifyTransaction(context: TransactionVerifyContext): Promise<VerificationResult> {
const { transaction, chainID } = context;
const authAccountStore = this.stores.get(AuthAccountStore);
const senderAccount = await authAccountStore.getOrDefault(context, transaction.senderAddress);
// Verify nonce of the transaction, it can be FAILED, PENDING or OK
const nonceStatus = verifyNonce(transaction, senderAccount);
if (nonceStatus.status === VerifyStatus.FAIL) {
throw new InvalidNonceError(
`Transaction with id:${transaction.id.toString('hex')} nonce is lower than account nonce.`,
transaction.nonce,
senderAccount.nonce,
);
}
verifySignatures(transaction, chainID, senderAccount);
return nonceStatus;
}
public async beforeCommandExecute(context: TransactionExecuteContext): Promise<void> {
const { transaction } = context;
const authAccountStore = this.stores.get(AuthAccountStore);
const senderAccount = await authAccountStore.getOrDefault(context, transaction.senderAddress);
await authAccountStore.set(context, transaction.senderAddress, {
nonce: senderAccount.nonce + BigInt(1),
numberOfSignatures: senderAccount.numberOfSignatures,
mandatoryKeys: senderAccount.mandatoryKeys,
optionalKeys: senderAccount.optionalKeys,
});
}
}
``` | /content/code_sandbox/framework/src/modules/auth/module.ts | xml | 2016-02-01T21:45:35 | 2024-08-15T19:16:48 | lisk-sdk | LiskArchive/lisk-sdk | 2,721 | 1,774 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="path_to_url" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd">
<file datatype="xml" source-language="en" target-language="ko" original="../DependencyManager.resx">
<body>
<trans-unit id="couldNotLoadDependencyManagerExtension">
<source>The dependency manager extension {0} could not be loaded. Message: {1}</source>
<target state="translated"> {0}() . : {1}</target>
<note />
</trans-unit>
<trans-unit id="packageManagerError">
<source>{0}</source>
<target state="translated">{0}</target>
<note />
</trans-unit>
<trans-unit id="packageManagerUnknown">
<source>Package manager key '{0}' was not registered in {1}. Currently registered: {2}</source>
<target state="translated"> '{0}'() {1} . {2}() .</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
``` | /content/code_sandbox/src/fcs-fable/src/Compiler/DependencyManager/xlf/DependencyManager.txt.ko.xlf | xml | 2016-01-11T10:10:13 | 2024-08-15T11:42:55 | Fable | fable-compiler/Fable | 2,874 | 295 |
```xml
import { createTestSuite } from "../../testlib";
import { FeatureSet } from "../../testutil";
import { RtorrentClient } from "../../../src/scripts/bittorrent"
createTestSuite({
client: new RtorrentClient(),
fixture: "fixtures/rutorrent",
port: 8080,
proxyPort: 80,
acceptHttpStatus: 200,
username: "admin",
password: "admin",
unsupportedFeatures: [
],
});
``` | /content/code_sandbox/test/fixtures/rutorrent/rtorrent.spec.ts | xml | 2016-06-18T15:04:41 | 2024-08-16T07:12:27 | Electorrent | tympanix/Electorrent | 1,016 | 98 |
```xml
import { joinWithCommasAnd } from '../strings';
describe(joinWithCommasAnd, () => {
it(`joins 3+ items with an oxford comma`, () => {
expect(joinWithCommasAnd(['a', 'b', 'c'])).toEqual('a, b, and c');
});
it(`joins 2 items with an 'and'`, () => {
expect(joinWithCommasAnd(['a', 'b'])).toEqual('a and b');
});
it(`returns a single item`, () => {
expect(joinWithCommasAnd(['a'])).toEqual('a');
});
it(`returns an empty string for zero items`, () => {
expect(joinWithCommasAnd([])).toEqual('');
});
it(`joins limit+1 with 'and 1 other'`, () => {
expect(joinWithCommasAnd(['a', 'b', 'c', 'd', 'e'], 4)).toEqual('a, b, c, d, and 1 other');
});
it(`joins limit+1 with 'and 1 other'`, () => {
expect(joinWithCommasAnd(['a', 'b', 'c', 'd', 'e'], 4)).toEqual('a, b, c, d, and 1 other');
});
it(`joins limit+2 or more with 'and x others'`, () => {
expect(joinWithCommasAnd(['a', 'b', 'c', 'd', 'e', 'f'], 4)).toEqual(
'a, b, c, d, and 2 others'
);
});
it(`eliminates duplicates`, () => {
expect(joinWithCommasAnd(['a', 'c', 'b', 'c'])).toEqual('a, c, and b');
});
});
``` | /content/code_sandbox/packages/@expo/cli/src/utils/__tests__/strings-test.ts | xml | 2016-08-15T17:14:25 | 2024-08-16T19:54:44 | expo | expo/expo | 32,004 | 397 |
```xml
import * as React from 'react';
import { mount as mountBase } from '@cypress/react';
import {
FluentProvider,
teamsLightTheme,
Popover,
PopoverTrigger,
PopoverSurface,
Menu,
MenuTrigger,
MenuPopover,
MenuList,
MenuItem,
Dialog,
DialogSurface,
DialogTrigger,
DialogBody,
} from '@fluentui/react-components';
const mount = (element: JSX.Element) => {
mountBase(
<React.StrictMode>
<FluentProvider theme={teamsLightTheme}>{element}</FluentProvider>
</React.StrictMode>,
);
};
describe('Portal based components', () => {
it('should render a Popover', () => {
mount(
<Popover>
<PopoverTrigger>
<button>Click Me</button>
</PopoverTrigger>
<PopoverSurface>This is a popover</PopoverSurface>
</Popover>,
);
cy.get('button').click().get('.fui-PopoverSurface').should('exist');
});
it('should render a Menu', () => {
mount(
<Menu>
<MenuTrigger>
<button>Click Me</button>
</MenuTrigger>
<MenuPopover>
<MenuList>
<MenuItem>Item</MenuItem>
<MenuItem>Item</MenuItem>
<MenuItem>Item</MenuItem>
<MenuItem>Item</MenuItem>
</MenuList>
</MenuPopover>
</Menu>,
);
cy.get('button').click().get('.fui-MenuList').should('exist');
});
it('should render a Dialog', () => {
mount(
<Dialog>
<DialogTrigger>
<button>Open dialog</button>
</DialogTrigger>
<DialogSurface>
<DialogBody>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam exercitationem cumque repellendus eaque
est dolor eius expedita nulla ullam? Tenetur reprehenderit aut voluptatum impedit voluptates in natus iure
cumque eaque?
</DialogBody>
</DialogSurface>
</Dialog>,
);
cy.get('button').click().get('.fui-DialogSurface').should('exist');
});
});
``` | /content/code_sandbox/apps/react-18-tests-v9/src/Portal.cy.tsx | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 483 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.