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" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "path_to_url" >
<mapper namespace="com.roncoo.pay.account.dao.impl.RpAccountHistoryDaoImpl" >
<resultMap id="BaseResultMap" type="com.roncoo.pay.account.entity.RpAccountHistory" >
<id column="id" property="id" jdbcType="VARCHAR" />
<result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
<result column="edit_time" property="editTime" jdbcType="TIMESTAMP" />
<result column="version" property="version" jdbcType="BIGINT" />
<result column="remark" property="remark" jdbcType="VARCHAR" />
<result column="account_no" property="accountNo" jdbcType="VARCHAR" />
<result column="amount" property="amount" jdbcType="DECIMAL" />
<result column="balance" property="balance" jdbcType="DECIMAL" />
<result column="fund_direction" property="fundDirection" jdbcType="VARCHAR" />
<result column="is_allow_sett" property="isAllowSett" jdbcType="VARCHAR" />
<result column="is_complete_sett" property="isCompleteSett" jdbcType="VARCHAR" />
<result column="request_no" property="requestNo" jdbcType="VARCHAR" />
<result column="bank_trx_no" property="bankTrxNo" jdbcType="VARCHAR" />
<result column="trx_type" property="trxType" jdbcType="VARCHAR" />
<result column="risk_day" property="riskDay" jdbcType="INTEGER" />
<result column="user_no" property="userNo" jdbcType="VARCHAR" />
</resultMap>
<sql id="table_name"> rp_account_history </sql>
<sql id="Base_Column_List" >
id, create_time, edit_time, version, remark, account_no, amount, balance, fund_direction,
is_allow_sett, is_complete_sett, request_no, bank_trx_no, trx_type, risk_day, user_no
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from rp_account_history
where id = #{id,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from rp_account_history
where id = #{id,jdbcType=VARCHAR}
</delete>
<insert id="insert" parameterType="com.roncoo.pay.account.entity.RpAccountHistory" >
insert into rp_account_history (id, create_time, edit_time,
version, remark, account_no,
amount, balance, fund_direction,
is_allow_sett, is_complete_sett, request_no,
bank_trx_no, trx_type, risk_day,
user_no)
values (#{id,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{editTime,jdbcType=TIMESTAMP},
#{version,jdbcType=BIGINT}, #{remark,jdbcType=VARCHAR}, #{accountNo,jdbcType=VARCHAR},
#{amount,jdbcType=DECIMAL}, #{balance,jdbcType=DECIMAL}, #{fundDirection,jdbcType=VARCHAR},
#{isAllowSett,jdbcType=VARCHAR}, #{isCompleteSett,jdbcType=VARCHAR}, #{requestNo,jdbcType=VARCHAR},
#{bankTrxNo,jdbcType=VARCHAR}, #{trxType,jdbcType=VARCHAR}, #{riskDay,jdbcType=INTEGER},
#{userNo,jdbcType=VARCHAR})
</insert>
<update id="updateByPrimaryKey" parameterType="com.roncoo.pay.account.entity.RpAccountHistory" >
update rp_account_history
set create_time = #{createTime,jdbcType=TIMESTAMP},
edit_time = #{editTime,jdbcType=TIMESTAMP},
version = #{version,jdbcType=BIGINT},
remark = #{remark,jdbcType=VARCHAR},
account_no = #{accountNo,jdbcType=VARCHAR},
amount = #{amount,jdbcType=DECIMAL},
balance = #{balance,jdbcType=DECIMAL},
fund_direction = #{fundDirection,jdbcType=VARCHAR},
is_allow_sett = #{isAllowSett,jdbcType=VARCHAR},
is_complete_sett = #{isCompleteSett,jdbcType=VARCHAR},
request_no = #{requestNo,jdbcType=VARCHAR},
bank_trx_no = #{bankTrxNo,jdbcType=VARCHAR},
trx_type = #{trxType,jdbcType=VARCHAR},
risk_day = #{riskDay,jdbcType=INTEGER},
user_no = #{userNo,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
<!-- -->
<sql id="condition_sql">
<if test="accountNo != null and accountNo != ''"> and account_no = #{accountNo,jdbcType=VARCHAR}</if>
<if test="userNo != null and userNo != ''"> and user_no = #{userNo,jdbcType=VARCHAR}</if>
<if test="beginDate != null and endDate != null and endDate !='' and beginDate !=''">
and create_time_ between #{beginDate} AND CONCAT(#{endDate},' 23:59:59')
</if>
<if test="requestNo != null and requestNo !='' "> and request_no = #{requestNo}</if>
<if test="bankTrxNo != null and bankTrxNo !='' "> and bank_trx_no = #{bankTrxNo}</if>
<if test="accountNo != null and accountNo !='' "> and account_no = #{accountNo}</if>
<if test="isAllowSett != null and isAllowSett !=''"> and is_allow_sett = #{isAllowSett}</if>
<if test="isCompleteSett != null and isCompleteSett != ''"> and is_complete_sett = #{isCompleteSett}</if>
<if test="trxType != null and trxType !=''"> and trx_type_ =#{trxType} </if>
<if test="fundDirection != null and fundDirection !=''"> and fund_direction = #{fundDirection}</if>
</sql>
<select id="listBy" parameterType="java.util.Map" resultMap="BaseResultMap">
select * from
<include refid="table_name" />
<where>
<include refid="condition_sql" />
</where>
order by create_time desc
</select>
<!-- -->
<select id="listPage" parameterType="java.util.Map" resultMap="BaseResultMap">
select * from
<include refid="table_name" />
<where>
<include refid="condition_sql" />
</where>
order by create_time desc limit #{pageFirst}, #{pageSize}
</select>
<!-- -->
<select id="listPageCount" parameterType="java.util.Map"
resultType="java.lang.Long">
select count(1) from
<include refid="table_name" />
<where>
<include refid="condition_sql" />
</where>
</select>
<!-- -->
<select id="listDailyCollectAccountHistoryVo" parameterType="java.util.Map" resultType="com.roncoo.pay.account.vo.DailyCollectAccountHistoryVo">
select
account_no as "accountNo",
sum(case when fund_direction = 'ADD' then amount else -amount end) as "totalAmount",
count(1) as "totalNum",
CONCAT(#{statDate},'') as "collectDate"
from <include refid="table_name" />
where
account_no = #{accountNo}
and is_complete_sett = 'NO'
and is_allow_sett = 'YES'
<if test="fundDirection != null and fundDirection !=''"> and fund_direction_ = #{fundDirection} </if>
and <![CDATA[date(create_time) <= FUN_DATE_ADD(#{statDate}, -#{riskDay})]]>
group by account_no
</select>
<!-- -->
<update id="updateCompleteSettTo100" parameterType="java.util.Map">
update <include refid="table_name" />
set is_complete_sett = 'YES', VERSION = VERSION + 1
where
account_no = #{accountNo}
and is_complete_sett = 'NO'
and is_allow_sett = 'YES'
and <![CDATA[date(create_time) <= FUN_DATE_ADD(#{statDate}, -#{riskDay})]]>
</update>
</mapper>
``` | /content/code_sandbox/roncoo-pay-service/src/main/resources/mybatis/mapper/account/RpAccountHistoryMapper.xml | xml | 2016-07-21T02:46:06 | 2024-08-16T02:04:09 | roncoo-pay | roncoo/roncoo-pay | 4,801 | 1,964 |
```xml
import { Column } from "../../../../../../src/decorator/columns/Column"
import { ChildEntity } from "../../../../../../src/decorator/entity/ChildEntity"
import { Person } from "./Person"
@ChildEntity("employee-type")
export class Employee extends Person {
@Column()
salary: number
}
``` | /content/code_sandbox/test/functional/table-inheritance/single-table/non-virtual-discriminator-column/entity/Employee.ts | xml | 2016-02-29T07:41:14 | 2024-08-16T18:28:52 | typeorm | typeorm/typeorm | 33,875 | 65 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<androidx.preference.PreferenceScreen
xmlns:android="path_to_url"
xmlns:app="path_to_url"
android:title="@string/action_settings">
<Preference
android:fragment="com.beemdevelopment.aegis.ui.fragments.preferences.AppearancePreferencesFragment"
app:icon="@drawable/ic_outline_brush_24"
app:title="@string/pref_section_appearance_title"
app:summary="@string/pref_section_appearance_summary" />
<Preference
android:fragment="com.beemdevelopment.aegis.ui.fragments.preferences.BehaviorPreferencesFragment"
app:icon="@drawable/ic_outline_touch_app_24"
app:title="@string/pref_section_behavior_title"
app:summary="@string/pref_section_behavior_summary" />
<Preference
android:fragment="com.beemdevelopment.aegis.ui.fragments.preferences.IconPacksManagerFragment"
android:title="@string/pref_section_icon_packs"
android:summary="@string/pref_section_icon_packs_summary"
app:icon="@drawable/ic_outline_package_variant_24"/>
<Preference
android:fragment="com.beemdevelopment.aegis.ui.fragments.preferences.SecurityPreferencesFragment"
app:icon="@drawable/ic_outline_key_24"
app:title="@string/pref_section_security_title"
app:summary="@string/pref_section_security_summary" />
<Preference
android:fragment="com.beemdevelopment.aegis.ui.fragments.preferences.BackupsPreferencesFragment"
app:icon="@drawable/ic_outline_cloud_upload_24"
app:title="@string/pref_section_backups_title"
app:summary="@string/pref_section_backups_summary" />
<Preference
android:fragment="com.beemdevelopment.aegis.ui.fragments.preferences.ImportExportPreferencesFragment"
app:icon="@drawable/ic_outline_construction_24"
app:title="@string/pref_section_import_export_title"
app:summary="@string/pref_section_import_export_summary" />
<Preference
android:fragment="com.beemdevelopment.aegis.ui.fragments.preferences.AuditLogPreferencesFragment"
app:icon="@drawable/ic_timeline_24"
app:title="@string/pref_section_audit_log_title"
app:summary="@string/pref_section_audit_log_summary" />
</androidx.preference.PreferenceScreen>
``` | /content/code_sandbox/app/src/main/res/xml/preferences.xml | xml | 2016-08-15T19:10:31 | 2024-08-16T19:34:19 | Aegis | beemdevelopment/Aegis | 8,651 | 483 |
```xml
import React, {RefObject, ReactElement} from 'react';
import ReactHlsPlayer from 'react-hls-player';
enum SoundStatus {
PAUSED = 'PAUSED',
PLAYING = 'PLAYING',
STOPPED = 'STOPPED',
}
export enum SoundErrors {
MEDIA_ERR_ABORTED = 'Video playback aborted by the user.',
MEDIA_ERR_NETWORK = 'A network error caused the audio download to fail.',
MEDIA_ERR_DECODE = 'The audio playback was aborted due to a corruption problem.',
MEDIA_ERR_SRC_NOT_SUPPORTED = 'The audio playback can not be loaded, either because the server or network failed or because the format is not supported.',
UNKNOWN = 'An unknown error occurred during audio playback loading.',
}
export interface SoundProps {
/** the url of the stream to play */
source: string;
/** PLAYING, PAUSED or STOPPED */
playStatus?: SoundStatus;
/** the position in second */
position?: number;
/** the default setting of the audio contained */
muted?: boolean;
/** the audio volume */
volume?: number;
/** onTimeUpdate handler */
onFinishedPlaying?: (event: any) => void;
/** trigger when the load start */
onLoading?: (event: any) => void;
/** trigger when the file is ready to play */
onLoad?: (event: any) => void;
/** trigger when an error is thrown */
onError?: (error: Error) => void;
children?: ReactElement[] | ReactElement;
}
export interface SoundState {
audioContext: AudioContext;
audioNodes: AudioNode[];
}
class HlsPlayer extends React.Component<SoundProps, SoundState> {
private playerRef: RefObject<HTMLVideoElement>;
private source: MediaElementAudioSourceNode;
public state: SoundState = {
audioContext: new AudioContext(),
audioNodes: []
};
public static status = SoundStatus;
constructor(props) {
super(props);
this.playerRef = React.createRef();
}
playVideo = () => {
this.playerRef.current.play();
}
pauseVideo = () => {
this.playerRef.current.pause();
}
toggleControls = () => {
this.playerRef.current.controls = !this.playerRef.current.controls;
}
setAudioMuted = (muted: boolean) => {
this.playerRef.current.muted = muted;
}
setAudioVolume = (volume: number) => {
const newVolume = volume/100;
this.playerRef.current.volume = newVolume < 0.01 ? 0 : newVolume;
}
private setPlayerState(status?: SoundStatus): void {
switch (status) {
case HlsPlayer.status.PAUSED:
this.pauseVideo();
break;
case HlsPlayer.status.STOPPED:
this.pauseVideo();
break;
case HlsPlayer.status.PLAYING:
default:
this.playVideo();
break;
}
}
componentDidUpdate(prevProps: SoundProps) {
const { playStatus, source, muted, volume } = this.props;
if ((playStatus && prevProps.playStatus !== playStatus) || source !== prevProps.source) {
this.setPlayerState(playStatus);
}
if (muted !== undefined && prevProps.muted !== muted) {
this.setAudioMuted(muted);
}
if (volume && prevProps.volume !== volume) {
this.setAudioVolume(volume);
}
}
componentDidMount() {
// path_to_url#using-playerref
if (this.props.onFinishedPlaying) {
this.playerRef.current.addEventListener('ended', this.props.onFinishedPlaying);
}
}
componentWillUnmount() {
if (this.state.audioContext) {
this.state.audioContext.close();
}
}
componentDidCatch(err: Error) {
if (this.state.audioContext) {
this.state.audioContext.close();
}
this.props.onError && this.props.onError(err);
}
private handleError(evt: any) {
let error: Error;
switch (evt.target.error.code) {
case evt.target.error.MEDIA_ERR_ABORTED:
error = new Error(SoundErrors.MEDIA_ERR_ABORTED);
break;
case evt.target.error.MEDIA_ERR_NETWORK:
error = new Error(SoundErrors.MEDIA_ERR_NETWORK);
break;
case evt.target.error.MEDIA_ERR_DECODE:
error = new Error(SoundErrors.MEDIA_ERR_DECODE);
break;
case evt.target.error.MEDIA_ERR_SRC_NOT_SUPPORTED:
error = new Error(SoundErrors.MEDIA_ERR_SRC_NOT_SUPPORTED);
break;
default:
error = new Error(SoundErrors.UNKNOWN);
break;
}
this.props.onError && this.props.onError(error);
}
private handleRegisterPlugin(plugin: AudioNode) {
this.setState({
audioNodes: [...this.state.audioNodes, plugin]
});
}
private renderPlugins() {
const { children } = this.props;
if (Array.isArray(children)) {
const flatChildren = children.flat() as ReactElement[];
return [
...flatChildren.map((plugin, idx) => (
<plugin.type
{...plugin.props}
key={idx}
audioContext={this.state.audioContext}
previousNode={this.state.audioNodes[idx]}
onRegister={this.handleRegisterPlugin}
/>
))
];
} else if (children) {
return [
<children.type
{...children.props}
key={1}
audioContext={this.state.audioContext}
previousNode={this.state.audioNodes[0]}
onRegister={this.handleRegisterPlugin}
/>
];
} else {
return null;
}
}
render() {
const {
source
} = this.props;
return (
<React.Fragment>
<ReactHlsPlayer
autoPlay
height={0}
width={0}
style={{ display: 'none' }}
playerRef={this.playerRef}
src={source}
onError={this.handleError}
/>
{this.renderPlugins()}
</React.Fragment>
);
}
}
export default HlsPlayer;
``` | /content/code_sandbox/packages/app/app/components/HLSPlayer/index.tsx | xml | 2016-09-22T22:58:21 | 2024-08-16T15:47:39 | nuclear | nukeop/nuclear | 11,862 | 1,303 |
```xml
export interface RgbaColor {
r: number;
g: number;
b: number;
a: number;
}
export function makeCssString(c: RgbaColor) {
return `rgba(${c.r}, ${c.g}, ${c.b}, ${c.a})`;
}
``` | /content/code_sandbox/IntelPresentMon/AppCef/Web/src/core/color.ts | xml | 2016-03-09T18:44:16 | 2024-08-15T19:51:10 | PresentMon | GameTechDev/PresentMon | 1,580 | 62 |
```xml
<!--
~ contributor license agreements. See the NOTICE file distributed with
~ this work for additional information regarding copyright ownership.
~
~ path_to_url
~
~ Unless required by applicable law or agreed to in writing, software
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-->
<dataset>
<metadata table-name="t_order_details" data-nodes="db.t_order_details">
<column name="id" type="integer" />
<column name="description" type="varchar" />
<index name="t_order_details_index" column="id" unique="true" />
</metadata>
</dataset>
``` | /content/code_sandbox/test/e2e/sql/src/test/resources/cases/ddl/dataset/shadow/create_unique_index.xml | xml | 2016-01-18T12:49:26 | 2024-08-16T15:48:11 | shardingsphere | apache/shardingsphere | 19,707 | 144 |
```xml
import { ImportStmt } from './toolkit-types';
const defaultImports: Record<string, ImportStmt> = {
react: {
package: 'react',
default: 'React'
},
'react-native': {
package: 'react-native',
named: ['useWindowDimensions']
},
'react-native-render-html': {
package: 'react-native-render-html',
default: 'RenderHtml'
}
};
export default defaultImports;
``` | /content/code_sandbox/doc-tools/doc-pages/src/toolkit/defaultImports.ts | xml | 2016-11-29T10:50:53 | 2024-08-08T06:53:22 | react-native-render-html | meliorence/react-native-render-html | 3,445 | 97 |
```xml
/**
* @license
*
* 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 { registerAsyncComputation } from "#src/async_computation/handler.js";
import { parseVTKFromArrayBuffer } from "#src/async_computation/vtk_mesh_request.js";
import { getTriangularMeshSize, parseVTK } from "#src/datasource/vtk/parse.js";
import { maybeDecompressGzip } from "#src/util/gzip.js";
registerAsyncComputation(
parseVTKFromArrayBuffer,
async (buffer: ArrayBuffer) => {
const mesh = parseVTK(await maybeDecompressGzip(buffer));
return {
value: { data: mesh, size: getTriangularMeshSize(mesh) },
transfer: [
mesh.indices.buffer,
mesh.vertexPositions.buffer,
...Array.from(mesh.vertexAttributes.values()).map((a) => a.data.buffer),
],
};
},
);
``` | /content/code_sandbox/src/async_computation/vtk_mesh.ts | xml | 2016-05-27T02:37:25 | 2024-08-16T07:24:25 | neuroglancer | google/neuroglancer | 1,045 | 221 |
```xml
import { fetchDesktopVersion } from '@proton/shared/lib/apps/desktopVersions';
import { DESKTOP_PLATFORMS } from '@proton/shared/lib/constants';
import { isMac, isWindows } from '@proton/shared/lib/helpers/browser';
import { appPlatforms, fetchDesktopDownloads } from './appPlatforms';
jest.mock('@proton/shared/lib/apps/desktopVersions');
const mockFetchDesktopVersion = jest.mocked(fetchDesktopVersion);
jest.mock('@proton/shared/lib/helpers/browser');
const mockIsWindows = jest.mocked(isWindows);
const mockIsMac = jest.mocked(isMac);
const originalConsoleWarn = console.warn;
const mockConsoleWarn = jest.fn();
describe('appPlatforms', () => {
beforeEach(() => {
jest.resetAllMocks();
// Some default values for mocks
mockIsWindows.mockReturnValue(false);
mockIsMac.mockReturnValue(false);
});
const checkOrder = async (order: DESKTOP_PLATFORMS[]) => {
await jest.isolateModulesAsync(async () => {
const { appPlatforms } = await import('./appPlatforms');
expect(appPlatforms.length === order.length);
appPlatforms.forEach(({ platform }, i) => {
expect(platform).toBe(order[i]);
});
});
};
it('should not change order if no platform is preferred', async () => {
await checkOrder([DESKTOP_PLATFORMS.WINDOWS, DESKTOP_PLATFORMS.MACOS]);
});
it('should order by preferred platform', async () => {
mockIsMac.mockReturnValue(true);
await checkOrder([DESKTOP_PLATFORMS.MACOS, DESKTOP_PLATFORMS.WINDOWS]);
});
});
describe('fetchDesktopDownloads', () => {
beforeEach(() => {
jest.resetAllMocks();
console.warn = mockConsoleWarn;
// Default values
mockFetchDesktopVersion.mockResolvedValue({ url: 'url', version: 'version' });
});
afterEach(() => {
console.warn = originalConsoleWarn;
});
it('should return a map of platforms to url', async () => {
const result = await fetchDesktopDownloads();
appPlatforms.forEach(({ platform }) => {
expect(result).toHaveProperty(platform);
});
});
it('should return empty object on failure', async () => {
mockFetchDesktopVersion.mockRejectedValue(new Error('oh no'));
const result = await fetchDesktopDownloads();
expect(result).toStrictEqual({});
expect(mockConsoleWarn).toHaveBeenCalledTimes(appPlatforms.length);
});
it('should not include failed calls', async () => {
mockFetchDesktopVersion.mockRejectedValueOnce(new Error('oh no'));
const result = await fetchDesktopDownloads();
appPlatforms.forEach(({ platform }, index) => {
if (index === 0) {
expect(result).not.toHaveProperty(platform);
} else {
expect(result).toHaveProperty(platform);
}
});
expect(mockConsoleWarn).toHaveBeenCalledTimes(appPlatforms.length - 1);
});
});
``` | /content/code_sandbox/packages/drive-store/utils/appPlatforms.test.ts | xml | 2016-06-08T11:16:51 | 2024-08-16T14:14:27 | WebClients | ProtonMail/WebClients | 4,300 | 616 |
```xml
import { getPathTowardsItem } from '../utils';
describe('getPathTowardsItem', () => {
// const items = [1, 2, 3, 4, 5];
const getParent = n => (n === 1 ? undefined : n - 1);
it('Should return a path from root node towards target node', () => {
expect(getPathTowardsItem(5, getParent)).to.eql([1, 2, 3, 4, 5]);
});
it('Should return empty path if target is falsy', () => {
expect(getPathTowardsItem(undefined, getParent)).to.eql([]);
});
});
``` | /content/code_sandbox/src/internals/Tree/test/getPathTowardsItemSpec.ts | xml | 2016-06-06T02:27:46 | 2024-08-16T16:41:54 | rsuite | rsuite/rsuite | 8,263 | 138 |
```xml
// See LICENSE.txt for license information.
import * as React from 'react';
import Svg, {
Path,
Mask,
G,
} from 'react-native-svg';
type Props = {
theme: Theme;
}
function SvgComponent({theme}: Props) {
return (
<Svg
width={200}
height={201}
fill='none'
viewBox='0 0 210 170'
>
<Path
d='M20.215 68.747h41.93a5.84 5.84 0 0 1 4.143 1.704 5.864 5.864 0 0 1 1.727 4.14v26.71a5.879 5.879 0 0 1-1.727 4.141 5.842 5.842 0 0 1-4.144 1.704h-6.188v9.998l-9.281-9.998H20.23a5.857 5.857 0 0 1-4.143-1.704 5.871 5.871 0 0 1-1.728-4.141v-26.71a5.871 5.871 0 0 1 1.722-4.135 5.844 5.844 0 0 1 4.134-1.709Z'
fill={theme.buttonBg}
/>
<Path
d='M46.675 107.146H20.23a5.857 5.857 0 0 1-4.143-1.704 5.871 5.871 0 0 1-1.728-4.141V85.086s1.846 14.994 2.178 16.314c.332 1.32.99 3.295 4.109 3.622 3.119.328 26.029 2.124 26.029 2.124Z'
fill='#000'
fillOpacity={0.16}
/>
<Path
d='M55.501 84.128a3.77 3.77 0 0 0-3.49 2.337 3.795 3.795 0 0 0 .82 4.126 3.774 3.774 0 0 0 6.447-2.677 3.787 3.787 0 0 0-2.33-3.499 3.764 3.764 0 0 0-1.447-.287ZM41.18 84.128a3.77 3.77 0 0 0-3.49 2.337 3.794 3.794 0 0 0 .819 4.126 3.775 3.775 0 0 0 4.116.82 3.78 3.78 0 0 0 2.331-3.497 3.79 3.79 0 0 0-1.104-2.678 3.772 3.772 0 0 0-2.673-1.108ZM26.873 84.128a3.77 3.77 0 0 0-3.493 2.334 3.793 3.793 0 0 0 .816 4.127 3.774 3.774 0 0 0 6.45-2.675 3.787 3.787 0 0 0-2.328-3.498 3.764 3.764 0 0 0-1.445-.288Z'
fill={theme.centerChannelBg}
/>
<Path
d='M63.664 79.93a11.918 11.918 0 0 0-5.668-7.174.411.411 0 0 1 .168-.779c2.644-.159 7.98.407 6.307 7.914a.417.417 0 0 1-.807.04Z'
fill='#fff'
fillOpacity={0.16}
/>
<Path
fillRule='evenodd'
clipRule='evenodd'
d='M207.944 110.447c0 36.185-29.205 65.518-65.232 65.518-36.026 0-65.231-29.333-65.231-65.518 0-36.184 29.205-65.518 65.231-65.518 36.027 0 65.232 29.334 65.232 65.518Zm-.637 0c0 35.832-28.92 64.879-64.595 64.879-35.674 0-64.595-29.047-64.595-64.879 0-35.832 28.921-64.879 64.595-64.879 35.675 0 64.595 29.047 64.595 64.879Z'
fill={theme.centerChannelColor}
fillOpacity={0.16}
/>
<Path
d='M142.712 175.326c35.675 0 64.595-29.047 64.595-64.879 0-35.832-28.92-64.879-64.595-64.879s-64.595 29.047-64.595 64.879c0 35.832 28.92 64.879 64.595 64.879Z'
fill={theme.centerChannelBg}
/>
<Path
d='M142.712 175.326c35.675 0 64.595-29.047 64.595-64.879 0-35.832-28.92-64.879-64.595-64.879s-64.595 29.047-64.595 64.879c0 35.832 28.92 64.879 64.595 64.879Z'
fill={theme.centerChannelColor}
fillOpacity={0.16}
/>
<Path
d='M155.792 71.637c2.437-.51 6.786-.958 9.91.984 2.029 1.263 3.191 3.507 4.631 5.416 1.631 2.156 3.689 3.97 5.408 6.063 5.246 6.395 6.965 15.552 4.378 23.427-.823 2.499-2.039 4.863-2.694 7.409-.83 3.229-.716 6.611-.976 9.933-.694 9.229-4.142 17.993-7.549 26.587-1.023 2.58-2.087 5.226-3.98 7.248-3.074 3.282-8.243 4.369-12.369 2.604-2.995-1.284-5.377-3.873-8.52-4.731-1.497-.407-3.073-.393-4.618-.532-7.869-.718-15.183-5.787-18.628-12.915-3.446-7.128-2.891-16.048 1.411-22.69 1.431-2.213 3.234-4.16 5.008-6.093l9.082-9.821c2.301-2.486 4.677-5.104 5.602-8.371.679-2.395.515-4.946.715-7.425.384-4.678 2.194-9.342 5.539-12.614 3.346-3.272 5.487-4.026 7.65-4.479Z'
fill='#6F370B'
/>
<Mask
id='a'
maskUnits='userSpaceOnUse'
x={76}
y={43}
width={134}
height={135}
>
<Path
d='M142.712 176.326c36.231 0 65.595-29.499 65.595-65.879 0-36.38-29.364-65.879-65.595-65.879-36.231 0-65.595 29.5-65.595 65.879 0 36.38 29.364 65.879 65.595 65.879Z'
fill='#FFFFFF'
/>
</Mask>
<G mask='url(#a)'>
<Path
d='m156.679 118.534-8.794 18.965c-.238.515-.029 1.677.477 1.916 8.155 3.722 11.617 7.744 12.977 9.222a511.194 511.194 0 0 1 17.795 20.405c4.462-2.218 14.091-9.73 19.337-16.915 20.583-28.192 10.237-52.42 7.63-51.498-11.684 4.137-16.732 6.977-26.707 14.372-2.191 1.626-6.168 3.667-8.703 4.67-4.242 1.677-10.163-.797-12.471-1.916-.518-.266-1.338.232-1.541.779Z'
fill={theme.centerChannelBg}
/>
<Path
d='m156.679 118.534-8.794 18.965c-.239.515-.029 1.677.477 1.916 8.155 3.722 11.617 7.744 12.976 9.222a510.414 510.414 0 0 1 17.796 20.405c4.462-2.218 14.09-9.73 19.336-16.915 20.584-28.192 10.237-52.42 7.631-51.498-11.684 4.137-16.732 6.977-26.707 14.372-2.191 1.626-6.169 3.667-8.703 4.67-4.243 1.677-10.163-.797-12.472-1.916-.517-.266-1.337.232-1.54.779Z'
fill={theme.centerChannelColor}
fillOpacity={0.04}
/>
</G>
<Path
d='M88.124 49.27c.121 1.962-.046 8.863 0 9.51.503 8.58 19.505 32.628 21.348 34.443 4.44 4.374 13.955 10.01 19.315 13.174 11.148 6.577 15.831 7.162 27.899 12.137l-8.794 18.965c-18.278-6.599-26.266-11.449-35.804-17.916-3.369-2.285-10.144-7.076-12.876-9.821-11.208-11.257-16.103-32.335-20.746-42.395-2.265-4.91-3.538-5.16-5.007-7.186-1.908-2.635-2.027-3.473-3.577-5.749-2.53-3.715-7.48-6.64-9.062-9.87a.413.413 0 0 1 .303-.584.409.409 0 0 1 .246.035c2.974 1.459 5.177 2.994 8.396 4.551.544-1.406-1.192-4.072-2.862-6.707-1.561-2.467-4.65-10.898-3.457-12.096.589-.591 2.385 1.97 3.219 3.473 3.1 5.51 4.65 7.066 4.65 7.066s-6.372-11.286-5.962-12.215c.954-2.156 5.228 4.04 8.585 9.102 1.907 2.874 3.1 3.592 3.1 3.592s-1.073-8.742-1.789-12.814c-.524-2.987 1.26-2.256 2.504 1.078.716 1.916 1.05 3.399 2.146 6.706a45.414 45.414 0 0 0 1.908 4.79c1.123 2.506 1.907 3.354 2.742 4.672.253-2.35.358-3.234 1.43-5.51 1.136-2.395 3.816-5.508 2.624-.718-.873 3.473-.594 8.462-.48 10.288ZM168.43 109.482c-1.028-.558-2.291-1.152-3.338-1.677-2.17-1.087-4.037-2.079-5.63-3.916a63.152 63.152 0 0 1-8.675-12.951c-1.023-2.031-1.946-4.154-2.251-6.41-.305-2.256.069-4.683 1.431-6.498 2.384-3.178 7.945-4.103 10.589-3.28 2.948.918 6.815 4.823 9.3 8.145 3.577 4.776 5.723 8.297 8.346 13.653.238.479 1.206 4.852 1.321 5.065 2.971 5.474 6.786 7.39 6.786 7.39l2.442-.958a6.171 6.171 0 0 1 3.494-.309 6.191 6.191 0 0 1 3.102 1.645 7.433 7.433 0 0 1 1.335 1.651c2.862 5.509 2.888 11.736-.954 15.569-3.841 3.832-7.656 5.37-12.995 4.431-2.781-.479-5.723-1.677-8.449-3.248-3.701-2.156-3.963-7.092-.715-9.873.019.007-2.394-6.951-5.139-8.429Z'
fill='#FFBC1F'
/>
<Path
d='M171.203 112.682c5.392-2.506 6.796-5.691 7.123-6.661a.443.443 0 0 0-.119-.463l-.015-.012a.434.434 0 0 0-.368-.109.436.436 0 0 0-.271.157 9.81 9.81 0 0 1-2.351 2.058 9.203 9.203 0 0 1-5.287 1.756 8.988 8.988 0 0 1-2.079-.24c.208.108.415.216.608.321.985.534 1.939 1.801 2.759 3.193Z'
fill='#CC8F00'
/>
<Path
d='M166.399 99.609a6.721 6.721 0 0 0 3.851-3.26c.214-.407-.403-.772-.618-.362a6 6 0 0 1-3.429 2.942c-.434.146-.238.84.191.692l.005-.012ZM157.373 79.984c-1.257 4.908-1.478 9.998-6.247 12.873-3.367-2.499-4.905-10.484-2.623-14.633 1.33-2.41 5.67-5.202 9.023-6.268 1.094-.348 5.808 2.251 5.761 2.675-.353 3.236-3.842 6.297-5.485 9.102l-.429-3.749Z'
fill='#6F370B'
/>
<Path
d='M174.17 90.298c-.208-1.109.839-2.076.93-3.202.117-1.452-1.317-2.493-2.576-3.22a.844.844 0 0 0-.543-.162c-.315.055-.456.424-.511.74a5.848 5.848 0 0 0 .878 4.184l1.822 1.66Z'
fill='#FFBC1F'
/>
<Path
d='M173.297 86.708a.683.683 0 0 1 .217-.853c.381-.256.024-.879-.36-.62a1.422 1.422 0 0 0-.477 1.837c.207.412.825.048.617-.364h.003ZM83.943 44.688c-1.771 1.823-2.68 4.508-3.004 6.994-.239 1.917.513 4.537 2.244 5.596.393.24.753-.381.36-.62-1.75-1.071-2.146-3.692-1.796-5.529.396-2.127 1.173-4.362 2.702-5.933.322-.33-.181-.838-.506-.508ZM75.373 63.565c1.639 1.164 4.343 1.368 5.876-.139.329-.323-.176-.83-.506-.508-1.318 1.296-3.631 1.004-5.007.027-.377-.269-.735.354-.36.62h-.003ZM162.35 91.544c.488.82.853 1.708 1.082 2.635.122.5.122 1.025.239 1.52.005.17.052.334.136.48.617.795 1.819-.213 2.212-.748.272-.373-.348-.733-.617-.364-.165.226-.592.736-.882.614-.201-.084-.148-.192-.179-.48a9.881 9.881 0 0 0-1.369-4.019.356.356 0 0 0-.646.094.36.36 0 0 0 .028.268h-.004ZM164.615 85.71c-1.073 0-1.076 1.676 0 1.676 1.075 0 1.078-1.677 0-1.677ZM157.759 90.44c-1.073 0-1.075 1.676 0 1.676 1.076 0 1.078-1.676 0-1.676Z'
fill='#6F370B'
/>
<Path
d='M35.265 117.963H11.052a3.359 3.359 0 0 0-2.392.983 3.39 3.39 0 0 0-.998 2.392v15.423a3.39 3.39 0 0 0 2.097 3.122c.41.169.85.255 1.293.253h3.574v5.774l5.36-5.774h15.27a3.359 3.359 0 0 0 2.393-.983 3.39 3.39 0 0 0 .998-2.392v-15.423a3.392 3.392 0 0 0-.995-2.389 3.376 3.376 0 0 0-2.387-.986Z'
fill='#FFBC1F'
/>
<Path
d='M19.986 140.136h15.27a3.359 3.359 0 0 0 2.393-.983 3.39 3.39 0 0 0 .998-2.392v-9.363s-1.066 8.658-1.258 9.421c-.192.762-.572 1.902-2.373 2.091-1.8.189-15.03 1.226-15.03 1.226Z'
fill='#CC8F00'
/>
<Path
d='M14.889 126.845a2.179 2.179 0 0 1 2.015 1.349 2.191 2.191 0 0 1-.473 2.383 2.182 2.182 0 0 1-2.377.474 2.184 2.184 0 0 1-1.347-2.02 2.186 2.186 0 0 1 1.346-2.021c.265-.109.55-.166.836-.165ZM23.159 126.845a2.179 2.179 0 0 1 2.015 1.349 2.191 2.191 0 0 1-.473 2.383 2.182 2.182 0 0 1-2.377.474 2.184 2.184 0 0 1-1.346-2.02 2.188 2.188 0 0 1 1.346-2.021c.265-.109.548-.166.835-.165ZM31.42 126.845a2.187 2.187 0 0 1 .43 4.33 2.185 2.185 0 0 1-1.971-3.69 2.18 2.18 0 0 1 1.541-.64Z'
fill={theme.centerChannelBg}
/>
<Path
d='M10.175 124.421a6.86 6.86 0 0 1 3.273-4.143.24.24 0 0 0 .046-.395.24.24 0 0 0-.143-.055c-1.527-.092-4.608.235-3.642 4.57a.24.24 0 0 0 .224.195.245.245 0 0 0 .15-.044.247.247 0 0 0 .092-.128Z'
fill='#FFD470'
/>
<Path
d='M54.952 138.309v32.874c0 2.453 1.759 4.498 3.87 4.498h46.357c2.11 0 3.869-2.045 3.869-4.498v-32.874H54.952Z'
fill='#FFBC1F'
/>
<Path
d='M109.048 133.764c0-2.479-1.761-4.545-3.874-4.545H58.826c-2.113 0-3.874 2.066-3.874 4.545v4.545h54.096v-4.545Z'
fill='#CC8F00'
/>
<Path
d='M66.737 130.716c3.453 0 6.247 1.147 6.247 2.621 0 1.475-2.794 2.621-6.246 2.621-3.453 0-6.247-1.146-6.247-2.621 0-1.392 2.794-2.621 6.246-2.621ZM97.26 130.716c3.452 0 6.246 1.147 6.246 2.621 0 1.475-2.794 2.621-6.246 2.621-3.452 0-6.247-1.146-6.247-2.621 0-1.392 2.795-2.621 6.247-2.621Z'
fill='#090A0B'
/>
<Path
d='M82.031 114.404c-10.43 0-18.965 8.523-18.965 19.002 0 .631 1.343 1.212 3.114 1.212v-1.144c.632-8.838 7.444-15.913 15.851-15.913 8.408 0 15.22 7.007 15.79 15.908v1.149c1.77 0 3.112-.518 3.112-1.149.063-10.542-8.47-19.065-18.902-19.065Z'
fill='#DDDFE4'
/>
<Path
d='M97.89 133.456c0-9.136-7.566-16.022-15.953-16.022s-16.14 6.886-15.757 17.184c1.765 0 3.334-.523 3.334-1.162 0-5.808 4.793-12.702 12.486-12.702 7.693 0 12.485 6.894 12.485 12.702 0 .639 1.577 1.162 3.406 1.162v-1.162Z'
fill='#BABEC9'
/>
<Path
d='m86.807 167.823-1.972-12.86c1.15-.901 1.972-2.294 1.972-3.85 0-2.622-2.137-4.833-4.767-4.833-2.63 0-4.767 2.129-4.767 4.833 0 1.556.74 3.031 1.973 3.85l-1.973 12.86h9.534Z'
fill='#090A0B'
/>
</Svg>
);
}
export default SvgComponent;
``` | /content/code_sandbox/app/components/illustrations/join_private_channel.tsx | xml | 2016-10-07T16:52:32 | 2024-08-16T12:08:38 | mattermost-mobile | mattermost/mattermost-mobile | 2,155 | 6,354 |
```xml
import * as React from 'react';
import createSvgIcon from '../utils/createSvgIcon';
const VisualsFolderIcon = createSvgIcon({
svg: ({ classes }) => (
<svg xmlns="path_to_url" viewBox="0 0 2048 2048" className={classes.svg} focusable="false">
<path d="M168 1664h856v128H0V384q0-27 10-50t27-40 41-28 50-10h352q45 0 77 9t58 24 46 31 40 31 44 23 55 10h736q26 0 49 10t41 27 28 41 10 50v256h256q26 0 49 10t41 27 28 41 10 49q0 30-14 58l-99 199h-143l128-256H552l-384 768zm-40-207l309-618q17-33 47-52t68-19h984V512H800q-45 your_sha256_hash-128v-640zm-256-128h128v768h-128v-768zm-256 256h128v512h-128v-512zm-256 256h128v256h-128v-256z" />
</svg>
),
displayName: 'VisualsFolderIcon',
});
export default VisualsFolderIcon;
``` | /content/code_sandbox/packages/react-icons-mdl2/src/components/VisualsFolderIcon.tsx | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 320 |
```xml
export { default as useDevicesListing, DevicesListingProvider as DevicesProvider } from './useDevicesListing';
export * from './interface';
``` | /content/code_sandbox/packages/drive-store/store/_devices/index.ts | xml | 2016-06-08T11:16:51 | 2024-08-16T14:14:27 | WebClients | ProtonMail/WebClients | 4,300 | 28 |
```xml
import * as React from 'react';
import { Steps } from 'storywright';
import {
getStoryVariant,
RTL,
StoryWrightDecorator,
TestWrapperDecoratorTall,
} from '../../utilities';
import { DefaultButton, IButtonProps, CommandBarButton } from '@fluentui/react/lib/Button';
const commandProps: IButtonProps = {
iconProps: { iconName: 'Add' },
text: 'Create account',
onClick: () => alert('Clicked'),
menuProps: {
items: [
{
key: 'emailMessage',
text: 'Email message',
iconProps: {
iconName: 'Mail',
},
},
{
key: 'calendarEvent',
text: 'Calendar event',
iconProps: {
iconName: 'Calendar',
},
},
],
},
};
export default {
title: 'Button Split (compat)',
decorators: [
TestWrapperDecoratorTall,
StoryWrightDecorator(
new Steps()
.snapshot('default', { cropTo: '.testWrapper' })
.hover('.ms-Button:nth-child(1)')
.snapshot('hover main', { cropTo: '.testWrapper' })
.hover('.ms-Button:nth-child(2)')
.snapshot('hover split', { cropTo: '.testWrapper' })
// .mouseDown('.ms-Button:nth-child(1)')
// .snapshot('pressed main', { cropTo: '.testWrapper' })
// .hover('.ms-Button') // reset mouseDown
// .mouseUp('.ms-Button:nth-child(2)')
// .mouseDown('.ms-Button:nth-child(2)')
// .snapshot('pressed split', { cropTo: '.testWrapper' })
// .click('.ms-Button:nth-child(2)')
// .hover('.ms-Button') // move mouse to make click work
// .snapshot('open', { cropTo: '.testWrapper' })
.end(),
),
],
};
export const Root = () => <DefaultButton {...commandProps} split={true} />;
export const RootRTL = getStoryVariant(Root, RTL);
export const Disabled = () => <DefaultButton {...commandProps} disabled={true} split={true} />;
export const DefaultWithPrimaryActionDisabled = () => (
<DefaultButton {...commandProps} primaryDisabled={true} split={true} />
);
DefaultWithPrimaryActionDisabled.storyName = 'Default with Primary Action Disabled';
export const Checked = () => <DefaultButton {...commandProps} checked={true} split={true} />;
export const __Primary = () => <DefaultButton {...commandProps} primary={true} split={true} />;
export const __PrimaryDisabled = () => (
<DefaultButton {...commandProps} primary={true} disabled={true} split={true} />
);
export const PrimaryWithPrimaryActionDisabled = () => (
<DefaultButton {...commandProps} primaryDisabled={true} primary={true} split={true} />
);
PrimaryWithPrimaryActionDisabled.storyName = 'Primary with Primary Action Disabled';
export const __PrimaryChecked = () => (
<DefaultButton {...commandProps} primary={true} checked={true} split={true} />
);
export const CommandSplit = () => <CommandBarButton {...commandProps} split={true} />;
``` | /content/code_sandbox/apps/vr-tests/src/stories/Button/SplitButton.stories.tsx | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 705 |
```xml
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Version>42.43.44.45-alpha</Version>
<OutputType>Library</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<EnableComHosting>true</EnableComHosting>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="$(NewtonsoftJsonPackageVersion)" />
</ItemGroup>
</Project>
``` | /content/code_sandbox/test/TestAssets/TestProjects/ComServerWithDependencies/ComServerWithDependencies.csproj | xml | 2016-07-22T21:26:02 | 2024-08-16T17:23:58 | sdk | dotnet/sdk | 2,627 | 102 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<manifest package="com.aurelhubert.ahbottomnavigation.demo"
xmlns:android="path_to_url">
<uses-permission android:name="android.permission.INTERNET" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".DemoActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
</application>
</manifest>
``` | /content/code_sandbox/demo/src/main/AndroidManifest.xml | xml | 2016-03-17T12:17:56 | 2024-08-16T05:12:20 | ahbottomnavigation | aurelhubert/ahbottomnavigation | 3,836 | 159 |
```xml
import { useRouter } from "next/router";
import ErrorPage from "next/error";
import Container from "../../components/container";
import PostBody from "../../components/post-body";
import Header from "../../components/header";
import PostHeader from "../../components/post-header";
import MoreStories from "../../components/more-stories";
import SectionSeparator from "../../components/section-separator";
import Layout from "../../components/layout";
import { getPostBySlug, getAllPostsWithSlug } from "../../lib/api";
import PostTitle from "../../components/post-title";
import Head from "next/head";
import { CMS_NAME } from "../../lib/constants";
export default function Post({ post, morePosts, preview }) {
const router = useRouter();
if (!router.isFallback && !post?.slug) {
return <ErrorPage statusCode={404} />;
}
return (
<Layout preview={preview}>
<Container>
<Header />
{router.isFallback ? (
<PostTitle>Loading</PostTitle>
) : (
<>
<article className="mb-32">
<Head>
<title>
{`${post.title} | Next.js Blog Example with ${CMS_NAME}`}
</title>
<meta property="og:image" content={post.featuredImage} />
</Head>
<PostHeader
title={post.title}
coverImage={post.featuredImage}
date={post.createdOn}
author={post.author}
/>
<PostBody content={post.body} />
</article>
<SectionSeparator />
{morePosts.data.length > 0 && (
<MoreStories posts={morePosts.data} />
)}
</>
)}
</Container>
</Layout>
);
}
export async function getStaticProps(context) {
const data = await getPostBySlug(context.params.slug, context.preview);
return {
props: {
preview: context.preview ?? false,
post: {
...data.post.data,
},
morePosts: data.morePosts,
},
};
}
export async function getStaticPaths() {
const allPosts = await getAllPostsWithSlug();
return {
paths: allPosts.map((post) => {
return {
params: {
slug: `/posts/${post.slug}`,
},
};
}),
fallback: true,
};
}
``` | /content/code_sandbox/examples/cms-webiny/pages/posts/[slug].tsx | xml | 2016-10-05T23:32:51 | 2024-08-16T19:44:30 | next.js | vercel/next.js | 124,056 | 484 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<WixLocalization Culture="hu-hu" xmlns="path_to_url">
<String Id="Locale" Overridable="yes">hu</String>
<String Id="ProductName" Overridable="yes">Aspia Host</String>
<String Id="DowngradeErrorMessage" Overridable="yes">A newer version of the application is already installed.</String>
<String Id="CreateDesktopShortcut" Overridable="yes">Create desktop shortcut</String>
<String Id="CreateProgramMenuShortcut" Overridable="yes">Create shortcut in the Start menu</String>
</WixLocalization>
``` | /content/code_sandbox/installer/translations/host.hu-hu.wxl | xml | 2016-10-26T16:17:31 | 2024-08-16T13:37:42 | aspia | dchapyshev/aspia | 1,579 | 145 |
```xml
export * from "./gql";
export * from "./fragment-masking";
``` | /content/code_sandbox/examples/with-grafbase/gql/index.ts | xml | 2016-10-05T23:32:51 | 2024-08-16T19:44:30 | next.js | vercel/next.js | 124,056 | 16 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>AccessControlDialog</class>
<widget class="QDialog" name="AccessControlDialog">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>405</width>
<height>252</height>
</rect>
</property>
<property name="windowTitle">
<string>KeePassXC - Access Request</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="MessageWidget" name="exePathWarn" native="true">
<property name="text" stdset="0">
<string>Non-existing/inaccessible executable path. Please double-check the client is legit.</string>
</property>
<property name="closeButtonVisible" stdset="0">
<bool>false</bool>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="appLabel">
<property name="font">
<font>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
<property name="text">
<string><html><head/><body><p><span style=" font-weight:600;">%1 </span>is requesting access to the following entries:</p></body></html></string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item>
<widget class="QWidget" name="detailsContainer" native="true">
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QTreeWidget" name="procTree">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="uniformRowHeights">
<bool>true</bool>
</property>
<property name="animated">
<bool>true</bool>
</property>
<property name="allColumnsShowFocus">
<bool>true</bool>
</property>
<attribute name="headerStretchLastSection">
<bool>false</bool>
</attribute>
<column>
<property name="text">
<string>Name</string>
</property>
</column>
<column>
<property name="text">
<string>PID</string>
</property>
</column>
<column>
<property name="text">
<string>Executable</string>
</property>
</column>
<column>
<property name="text">
<string>Command Line</string>
</property>
</column>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QTableView" name="itemsTable">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="editTriggers">
<set>QAbstractItemView::NoEditTriggers</set>
</property>
<property name="showDropIndicator" stdset="0">
<bool>false</bool>
</property>
<property name="alternatingRowColors">
<bool>true</bool>
</property>
<property name="selectionMode">
<enum>QAbstractItemView::SingleSelection</enum>
</property>
<property name="selectionBehavior">
<enum>QAbstractItemView::SelectRows</enum>
</property>
<property name="cornerButtonEnabled">
<bool>false</bool>
</property>
<attribute name="horizontalHeaderVisible">
<bool>false</bool>
</attribute>
<attribute name="verticalHeaderVisible">
<bool>false</bool>
</attribute>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="standardButtons">
<set>QDialogButtonBox::NoButton</set>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>MessageWidget</class>
<extends>QWidget</extends>
<header>gui/MessageWidget.h</header>
<container>1</container>
</customwidget>
</customwidgets>
<resources/>
<connections/>
</ui>
``` | /content/code_sandbox/src/fdosecrets/widgets/AccessControlDialog.ui | xml | 2016-02-28T15:52:40 | 2024-08-16T19:26:56 | keepassxc | keepassxreboot/keepassxc | 20,477 | 1,133 |
```xml
import { object, string, array, number } from 'yup';
import { Team } from '@/react/portainer/users/teams/types';
export function validationSchema(teams: Team[]) {
return object().shape({
name: string()
.required('This field is required.')
.test(
'is-unique',
'This team already exists.',
(name) => !!name && teams.every((team) => team.Name !== name)
),
leaders: array().of(number()),
});
}
``` | /content/code_sandbox/app/react/portainer/users/teams/ListView/CreateTeamForm/CreateTeamForm.validation.ts | xml | 2016-05-19T20:15:28 | 2024-08-16T19:15:14 | portainer | portainer/portainer | 30,083 | 109 |
```xml
import { BigNumber } from '@ethersproject/bignumber';
import { ProviderHandler } from '@services/EthService';
import { bigify } from '@utils';
import { estimateFees, FALLBACK_ESTIMATE } from './eip1559';
const block = {
hash: your_sha256_hash47',
parentHash: your_sha256_hashd4',
number: 5219914,
timestamp: 1627469703,
nonce: '0x0000000000000000',
difficulty: 1,
_difficulty: BigNumber.from(1),
gasLimit: BigNumber.from('0x01c9c380'),
gasUsed: BigNumber.from('0x26aee4'),
miner: '0x0000000000000000000000000000000000000000',
extraData:
your_sha256_hashyour_sha256_hashyour_sha256_hash6601',
transactions: [],
baseFeePerGas: BigNumber.from('10000000000')
};
const feeHistory = {
oldestBlock: '0x4fa645',
reward: [['0x0'], ['0x3b9aca00'], ['0x12a05f1f9'], ['0x3b9aca00'], ['0x12a05f1f9']],
baseFeePerGas: ['0x7', '0x7', '0x7', '0x7', '0x7', '0x7'],
gasUsedRatio: [0, 0.10772606666666666, 0.0084, 0.12964573239101315, 0.06693689580776942]
};
describe('estimateFees', () => {
afterEach(() => {
jest.resetAllMocks();
});
const mockProvider = ({
getLatestBlock: jest.fn(),
getFeeHistory: jest.fn()
} as unknown) as ProviderHandler;
it('estimates without using priority fees', () => {
(mockProvider.getLatestBlock as jest.MockedFunction<
typeof mockProvider.getLatestBlock
>).mockResolvedValueOnce(block);
return expect(estimateFees(mockProvider)).resolves.toStrictEqual({
baseFee: bigify('10000000000'),
maxFeePerGas: bigify('20000000000'),
maxPriorityFeePerGas: bigify('3000000000')
});
});
it('estimates priority fees', async () => {
(mockProvider.getLatestBlock as jest.MockedFunction<
typeof mockProvider.getLatestBlock
>).mockResolvedValueOnce({ ...block, baseFeePerGas: BigNumber.from('100000000000') });
(mockProvider.getFeeHistory as jest.MockedFunction<
typeof mockProvider.getFeeHistory
>).mockResolvedValueOnce(feeHistory);
return expect(estimateFees(mockProvider)).resolves.toStrictEqual({
baseFee: bigify('100000000000'),
maxFeePerGas: bigify('160000000000'),
maxPriorityFeePerGas: bigify('5000000000')
});
});
it('estimates priority fees removing low outliers', async () => {
(mockProvider.getLatestBlock as jest.MockedFunction<
typeof mockProvider.getLatestBlock
>).mockResolvedValueOnce({ ...block, baseFeePerGas: BigNumber.from('100000000000') });
(mockProvider.getFeeHistory as jest.MockedFunction<
typeof mockProvider.getFeeHistory
>).mockResolvedValueOnce({
...feeHistory,
reward: [
['0x1'],
['0x1'],
['0x1'],
['0x1'],
['0x1'],
['0x1a13b8600'],
['0x12a05f1f9'],
['0x3b9aca00'],
['0x1a13b8600']
]
});
return expect(estimateFees(mockProvider)).resolves.toStrictEqual({
baseFee: bigify('100000000000'),
maxFeePerGas: bigify('160000000000'),
maxPriorityFeePerGas: bigify('5000000000')
});
});
it('uses 1.6 multiplier for base if above 40 gwei', async () => {
(mockProvider.getLatestBlock as jest.MockedFunction<
typeof mockProvider.getLatestBlock
>).mockResolvedValueOnce({ ...block, baseFeePerGas: BigNumber.from('0x11766ffa76') });
(mockProvider.getFeeHistory as jest.MockedFunction<
typeof mockProvider.getFeeHistory
>).mockResolvedValueOnce(feeHistory);
return expect(estimateFees(mockProvider)).resolves.toStrictEqual({
baseFee: bigify('75001494134'),
maxFeePerGas: bigify('120000000000'),
maxPriorityFeePerGas: bigify('3000000000')
});
});
it('uses 1.4 multiplier for base if above 100 gwei', async () => {
(mockProvider.getLatestBlock as jest.MockedFunction<
typeof mockProvider.getLatestBlock
>).mockResolvedValueOnce({ ...block, baseFeePerGas: BigNumber.from('200000000000') });
(mockProvider.getFeeHistory as jest.MockedFunction<
typeof mockProvider.getFeeHistory
>).mockResolvedValueOnce(feeHistory);
return expect(estimateFees(mockProvider)).resolves.toStrictEqual({
baseFee: bigify('200000000000'),
maxFeePerGas: bigify('280000000000'),
maxPriorityFeePerGas: bigify('5000000000')
});
});
it('uses 1.2 multiplier for base if above 200 gwei', async () => {
(mockProvider.getLatestBlock as jest.MockedFunction<
typeof mockProvider.getLatestBlock
>).mockResolvedValueOnce({ ...block, baseFeePerGas: BigNumber.from('300000000000') });
(mockProvider.getFeeHistory as jest.MockedFunction<
typeof mockProvider.getFeeHistory
>).mockResolvedValueOnce(feeHistory);
return expect(estimateFees(mockProvider)).resolves.toStrictEqual({
baseFee: bigify('300000000000'),
maxFeePerGas: bigify('360000000000'),
maxPriorityFeePerGas: bigify('5000000000')
});
});
it('handles baseFee being smaller than priorityFee', async () => {
(mockProvider.getLatestBlock as jest.MockedFunction<
typeof mockProvider.getLatestBlock
>).mockResolvedValueOnce({ ...block, baseFeePerGas: BigNumber.from('7') });
(mockProvider.getFeeHistory as jest.MockedFunction<
typeof mockProvider.getFeeHistory
>).mockResolvedValueOnce(feeHistory);
return expect(estimateFees(mockProvider)).resolves.toStrictEqual({
baseFee: bigify('7'),
maxFeePerGas: bigify('3000000000'),
maxPriorityFeePerGas: bigify('3000000000')
});
});
it('falls back if no baseFeePerGas on block', async () => {
(mockProvider.getLatestBlock as jest.MockedFunction<
typeof mockProvider.getLatestBlock
>).mockResolvedValueOnce({ ...block, baseFeePerGas: undefined });
return expect(estimateFees(mockProvider)).resolves.toStrictEqual(FALLBACK_ESTIMATE);
});
it('falls back if priority fetching fails', async () => {
(mockProvider.getLatestBlock as jest.MockedFunction<
typeof mockProvider.getLatestBlock
>).mockResolvedValueOnce({ ...block, baseFeePerGas: BigNumber.from('300000000000') });
(mockProvider.getFeeHistory as jest.MockedFunction<
typeof mockProvider.getFeeHistory
>).mockResolvedValueOnce({ ...feeHistory, reward: undefined });
return expect(estimateFees(mockProvider)).resolves.toStrictEqual(FALLBACK_ESTIMATE);
});
it('falls back if gas is VERY high', async () => {
(mockProvider.getLatestBlock as jest.MockedFunction<
typeof mockProvider.getLatestBlock
>).mockResolvedValueOnce({ ...block, baseFeePerGas: BigNumber.from('9999000000000') });
(mockProvider.getFeeHistory as jest.MockedFunction<
typeof mockProvider.getFeeHistory
>).mockResolvedValueOnce(feeHistory);
return expect(estimateFees(mockProvider)).resolves.toStrictEqual(FALLBACK_ESTIMATE);
});
});
``` | /content/code_sandbox/src/services/ApiService/Gas/eip1559.test.ts | xml | 2016-12-04T01:35:27 | 2024-08-14T21:41:58 | MyCrypto | MyCryptoHQ/MyCrypto | 1,347 | 1,844 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="path_to_url">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\programs\psa\crypto_examples.c" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="mbedTLS.vcxproj">
<Project>{46cf2d25-6a36-4189-b59c-e4815388e554}</Project>
<LinkLibraryDependencies>true</LinkLibraryDependencies>
</ProjectReference>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{020C31BD-C4DF-BABA-E537-F517C4E98537}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
<RootNamespace>crypto_examples</RootNamespace>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<CharacterSet>Unicode</CharacterSet>
<PlatformToolset>v141</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<CharacterSet>Unicode</CharacterSet>
<PlatformToolset>v141</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
<PlatformToolset>v141</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
<PlatformToolset>v141</PlatformToolset>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<LinkIncremental>true</LinkIncremental>
<IntDir>$(Configuration)\$(TargetName)\</IntDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<LinkIncremental>true</LinkIncremental>
<IntDir>$(Configuration)\$(TargetName)\</IntDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<LinkIncremental>false</LinkIncremental>
<IntDir>$(Configuration)\$(TargetName)\</IntDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LinkIncremental>false</LinkIncremental>
<IntDir>$(Configuration)\$(TargetName)\</IntDir>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>
../../include;../../3rdparty/everest/include/;../../3rdparty/everest/include/everest;../../3rdparty/everest/include/everest/vs2013;../../3rdparty/everest/include/everest/kremlib;../../tests/include </AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalDependencies>bcrypt.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalLibraryDirectories>Debug</AdditionalLibraryDirectories>
</Link>
<ProjectReference>
<LinkLibraryDependencies>false</LinkLibraryDependencies>
</ProjectReference>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>
../../include;../../3rdparty/everest/include/;../../3rdparty/everest/include/everest;../../3rdparty/everest/include/everest/vs2013;../../3rdparty/everest/include/everest/kremlib;../../tests/include </AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalDependencies>bcrypt.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalLibraryDirectories>Debug</AdditionalLibraryDirectories>
</Link>
<ProjectReference>
<LinkLibraryDependencies>false</LinkLibraryDependencies>
</ProjectReference>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>
../../include;../../3rdparty/everest/include/;../../3rdparty/everest/include/everest;../../3rdparty/everest/include/everest/vs2013;../../3rdparty/everest/include/everest/kremlib;../../tests/include </AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<AdditionalLibraryDirectories>Release</AdditionalLibraryDirectories>
<AdditionalDependencies>bcrypt.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>
../../include;../../3rdparty/everest/include/;../../3rdparty/everest/include/everest;../../3rdparty/everest/include/everest/vs2013;../../3rdparty/everest/include/everest/kremlib;../../tests/include </AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<AdditionalLibraryDirectories>Release</AdditionalLibraryDirectories>
<AdditionalDependencies>bcrypt.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
``` | /content/code_sandbox/third_party/mbedtls/repo/visualc/VS2017/crypto_examples.vcxproj | xml | 2016-04-08T20:47:41 | 2024-08-16T19:19:28 | openthread | openthread/openthread | 3,445 | 2,179 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<doc>
<assembly>
<name>System.Web.Helpers</name>
</assembly>
<members>
<member name="T:System.Web.Helpers.Chart">
<summary>Displays data in the form of a graphical chart.</summary>
</member>
<member name="M:System.Web.Helpers.Chart.#ctor(System.Int32,System.Int32,System.String,System.String)">
<summary>Initializes a new instance of the <see cref="T:System.Web.Helpers.Chart" /> class.</summary>
<param name="width">The width, in pixels, of the complete chart image.</param>
<param name="height">The height, in pixels, of the complete chart image.</param>
<param name="theme">(Optional) The template (theme) to apply to the chart.</param>
<param name="themePath">(Optional) The template (theme) path and file name to apply to the chart.</param>
</member>
<member name="M:System.Web.Helpers.Chart.AddLegend(System.String,System.String)">
<summary>Adds a legend to the chart.</summary>
<returns>The chart.</returns>
<param name="title">The text of the legend title.</param>
<param name="name">The unique name of the legend.</param>
</member>
<member name="M:System.Web.Helpers.Chart.AddSeries(System.String,System.String,System.String,System.String,System.String,System.Int32,System.Collections.IEnumerable,System.String,System.Collections.IEnumerable,System.String)">
<summary>Provides data points and series attributes for the chart.</summary>
<returns>The chart.</returns>
<param name="name">The unique name of the series.</param>
<param name="chartType">The chart type of a series.</param>
<param name="chartArea">The name of the chart area that is used to plot the data series.</param>
<param name="axisLabel">The axis label text for the series.</param>
<param name="legend">The name of the series that is associated with the legend.</param>
<param name="markerStep">The granularity of data point markers.</param>
<param name="xValue">The values to plot along the x-axis.</param>
<param name="xField">The name of the field for x-values.</param>
<param name="yValues">The values to plot along the y-axis.</param>
<param name="yFields">A comma-separated list of name or names of the field or fields for y-values.</param>
</member>
<member name="M:System.Web.Helpers.Chart.AddTitle(System.String,System.String)">
<summary>Adds a title to the chart.</summary>
<returns>The chart.</returns>
<param name="text">The title text.</param>
<param name="name">The unique name of the title.</param>
</member>
<member name="M:System.Web.Helpers.Chart.DataBindCrossTable(System.Collections.IEnumerable,System.String,System.String,System.String,System.String,System.String)">
<summary>Binds a chart to a data table, where one series is created for each unique value in a column.</summary>
<returns>The chart.</returns>
<param name="dataSource">The chart data source.</param>
<param name="groupByField">The name of the column that is used to group data into the series.</param>
<param name="xField">The name of the column for x-values.</param>
<param name="yFields">A comma-separated list of names of the columns for y-values.</param>
<param name="otherFields">Other data point properties that can be bound.</param>
<param name="pointSortOrder">The order in which the series will be sorted. The default is "Ascending".</param>
</member>
<member name="M:System.Web.Helpers.Chart.DataBindTable(System.Collections.IEnumerable,System.String)">
<summary>Creates and binds series data to the specified data table, and optionally populates multiple x-values.</summary>
<returns>The chart.</returns>
<param name="dataSource">The chart data source. This can be can be any <see cref="T:System.Collections.IEnumerable" /> object.</param>
<param name="xField">The name of the table column used for the series x-values.</param>
</member>
<member name="P:System.Web.Helpers.Chart.FileName">
<summary>Gets or sets the name of the file that contains the chart image.</summary>
<returns>The name of the file.</returns>
</member>
<member name="M:System.Web.Helpers.Chart.GetBytes(System.String)">
<summary>Returns a chart image as a byte array.</summary>
<returns>The chart.</returns>
<param name="format">The image format. The default is "jpeg".</param>
</member>
<member name="M:System.Web.Helpers.Chart.GetFromCache(System.String)">
<summary>Retrieves the specified chart from the cache.</summary>
<returns>The chart.</returns>
<param name="key">The ID of the cache item that contains the chart to retrieve. The key is set when you call the <see cref="M:System.Web.Helpers.Chart.SaveToCache(System.String,System.Int32,System.Boolean)" /> method.</param>
</member>
<member name="P:System.Web.Helpers.Chart.Height">
<summary>Gets or sets the height, in pixels, of the chart image.</summary>
<returns>The chart height.</returns>
</member>
<member name="M:System.Web.Helpers.Chart.Save(System.String,System.String)">
<summary>Saves a chart image to the specified file.</summary>
<returns>The chart.</returns>
<param name="path">The location and name of the image file.</param>
<param name="format">The image file format, such as "png" or "jpeg".</param>
</member>
<member name="M:System.Web.Helpers.Chart.SaveToCache(System.String,System.Int32,System.Boolean)">
<summary>Saves a chart in the system cache.</summary>
<returns>The ID of the cache item that contains the chart.</returns>
<param name="key">The ID of the chart in the cache.</param>
<param name="minutesToCache">The number of minutes to keep the chart image in the cache. The default is 20.</param>
<param name="slidingExpiration">true to indicate that the chart cache item's expiration is reset each time the item is accessed, or false to indicate that the expiration is based on an absolute interval since the time that the item was added to the cache. The default is true.</param>
</member>
<member name="M:System.Web.Helpers.Chart.SaveXml(System.String)">
<summary>Saves a chart as an XML file.</summary>
<returns>The chart.</returns>
<param name="path">The path and name of the XML file.</param>
</member>
<member name="M:System.Web.Helpers.Chart.SetXAxis(System.String,System.Double,System.Double)">
<summary>Sets values for the horizontal axis.</summary>
<returns>The chart.</returns>
<param name="title">The title of the x-axis.</param>
<param name="min">The minimum value for the x-axis.</param>
<param name="max">The maximum value for the x-axis.</param>
</member>
<member name="M:System.Web.Helpers.Chart.SetYAxis(System.String,System.Double,System.Double)">
<summary>Sets values for the vertical axis.</summary>
<returns>The chart.</returns>
<param name="title">The title of the y-axis.</param>
<param name="min">The minimum value for the y-axis.</param>
<param name="max">The maximum value for the y-axis.</param>
</member>
<member name="M:System.Web.Helpers.Chart.ToWebImage(System.String)">
<summary>Creates a <see cref="T:System.Web.Helpers.WebImage" /> object based on the current <see cref="T:System.Web.Helpers.Chart" /> object.</summary>
<returns>The chart.</returns>
<param name="format">The format of the image to save the <see cref="T:System.Web.Helpers.WebImage" /> object as. The default is "jpeg". The <paramref name="format" /> parameter is not case sensitive.</param>
</member>
<member name="P:System.Web.Helpers.Chart.Width">
<summary>Gets or set the width, in pixels, of the chart image.</summary>
<returns>The chart width.</returns>
</member>
<member name="M:System.Web.Helpers.Chart.Write(System.String)">
<summary>Renders the output of the <see cref="T:System.Web.Helpers.Chart" /> object as an image.</summary>
<returns>The chart.</returns>
<param name="format">The format of the image. The default is "jpeg".</param>
</member>
<member name="M:System.Web.Helpers.Chart.WriteFromCache(System.String,System.String)">
<summary>Renders the output of a <see cref="T:System.Web.Helpers.Chart" /> object that has been cached as an image.</summary>
<returns>The chart.</returns>
<param name="key">The ID of the chart in the cache.</param>
<param name="format">The format of the image. The default is "jpeg".</param>
</member>
<member name="T:System.Web.Helpers.ChartTheme">
<summary>Specifies visual themes for a <see cref="T:System.Web.Helpers.Chart" /> object.</summary>
</member>
<member name="F:System.Web.Helpers.ChartTheme.Blue">
<summary>A theme for 2D charting that features a visual container with a blue gradient, rounded edges, drop-shadowing, and high-contrast gridlines.</summary>
</member>
<member name="F:System.Web.Helpers.ChartTheme.Green">
<summary>A theme for 2D charting that features a visual container with a green gradient, rounded edges, drop-shadowing, and low-contrast gridlines.</summary>
</member>
<member name="F:System.Web.Helpers.ChartTheme.Vanilla">
<summary>A theme for 2D charting that features no visual container and no gridlines.</summary>
</member>
<member name="F:System.Web.Helpers.ChartTheme.Vanilla3D">
<summary>A theme for 3D charting that features no visual container, limited labeling and, sparse, high-contrast gridlines.</summary>
</member>
<member name="F:System.Web.Helpers.ChartTheme.Yellow">
<summary>A theme for 2D charting that features a visual container that has a yellow gradient, rounded edges, drop-shadowing, and high-contrast gridlines.</summary>
</member>
<member name="T:System.Web.Helpers.Crypto">
<summary>Provides methods to generate hash values and encrypt passwords or other sensitive data.</summary>
</member>
<member name="M:System.Web.Helpers.Crypto.GenerateSalt(System.Int32)">
<summary>Generates a cryptographically strong sequence of random byte values.</summary>
<returns>The generated salt value as a base-64-encoded string.</returns>
<param name="byteLength">The number of cryptographically random bytes to generate.</param>
</member>
<member name="M:System.Web.Helpers.Crypto.Hash(System.Byte[],System.String)">
<summary>Returns a hash value for the specified byte array.</summary>
<returns>The hash value for <paramref name="input" /> as a string of hexadecimal characters.</returns>
<param name="input">The data to provide a hash value for.</param>
<param name="algorithm">The algorithm that is used to generate the hash value. The default is "sha256".</param>
<exception cref="System.ArgumentNullException">
<paramref name="input" /> is null.</exception>
</member>
<member name="M:System.Web.Helpers.Crypto.Hash(System.String,System.String)">
<summary>Returns a hash value for the specified string.</summary>
<returns>The hash value for <paramref name="input" /> as a string of hexadecimal characters.</returns>
<param name="input">The data to provide a hash value for.</param>
<param name="algorithm">The algorithm that is used to generate the hash value. The default is "sha256".</param>
<exception cref="System.ArgumentNullException">
<paramref name="input" /> is null.</exception>
</member>
<member name="M:System.Web.Helpers.Crypto.HashPassword(System.String)">
<summary>Returns an RFC 2898 hash value for the specified password.</summary>
<returns>The hash value for <paramref name="password" /> as a base-64-encoded string.</returns>
<param name="password">The password to generate a hash value for.</param>
<exception cref="System.ArgumentNullException">
<paramref name="password" /> is null.</exception>
</member>
<member name="M:System.Web.Helpers.Crypto.SHA1(System.String)">
<summary>Returns a SHA-1 hash value for the specified string.</summary>
<returns>The SHA-1 hash value for <paramref name="input" /> as a string of hexadecimal characters.</returns>
<param name="input">The data to provide a hash value for.</param>
<exception cref="System.ArgumentNullException">
<paramref name="input" /> is null.</exception>
</member>
<member name="M:System.Web.Helpers.Crypto.SHA256(System.String)">
<summary>Returns a SHA-256 hash value for the specified string.</summary>
<returns>The SHA-256 hash value for <paramref name="input" /> as a string of hexadecimal characters.</returns>
<param name="input">The data to provide a hash value for.</param>
<exception cref="System.ArgumentNullException">
<paramref name="input" /> is null.</exception>
</member>
<member name="M:System.Web.Helpers.Crypto.VerifyHashedPassword(System.String,System.String)">
<summary>Determines whether the specified RFC 2898 hash and password are a cryptographic match.</summary>
<returns>true if the hash value is a cryptographic match for the password; otherwise, false.</returns>
<param name="hashedPassword">The previously-computed RFC 2898 hash value as a base-64-encoded string.</param>
<param name="password">The plaintext password to cryptographically compare with <paramref name="hashedPassword" />.</param>
<exception cref="System.ArgumentNullException">
<paramref name="hashedPassword" /> or <paramref name="password" /> is null.</exception>
</member>
<member name="T:System.Web.Helpers.DynamicJsonArray">
<summary>Represents a series of values as a JavaScript-like array by using the dynamic capabilities of the Dynamic Language Runtime (DLR).</summary>
</member>
<member name="M:System.Web.Helpers.DynamicJsonArray.#ctor(System.Object[])">
<summary>Initializes a new instance of the <see cref="T:System.Web.Helpers.DynamicJsonArray" /> class using the specified array element values.</summary>
<param name="arrayValues">An array of objects that contains the values to add to the <see cref="T:System.Web.Helpers.DynamicJsonArray" /> instance.</param>
</member>
<member name="M:System.Web.Helpers.DynamicJsonArray.GetEnumerator">
<summary>Returns an enumerator that can be used to iterate through the elements of the <see cref="T:System.Web.Helpers.DynamicJsonArray" /> instance.</summary>
<returns>An enumerator that can be used to iterate through the elements of the JSON array.</returns>
</member>
<member name="P:System.Web.Helpers.DynamicJsonArray.Item(System.Int32)">
<summary>Returns the value at the specified index in the <see cref="T:System.Web.Helpers.DynamicJsonArray" /> instance.</summary>
<returns>The value at the specified index.</returns>
<param name="index">The zero-based index of the value in the JSON array to return.</param>
</member>
<member name="P:System.Web.Helpers.DynamicJsonArray.Length">
<summary>Returns the number of elements in the <see cref="T:System.Web.Helpers.DynamicJsonArray" /> instance.</summary>
<returns>The number of elements in the JSON array.</returns>
</member>
<member name="M:System.Web.Helpers.DynamicJsonArray.op_Implicit(System.Web.Helpers.DynamicJsonArray)~System.Object[]">
<summary>Converts a <see cref="T:System.Web.Helpers.DynamicJsonArray" /> instance to an array of objects.</summary>
<returns>The array of objects that represents the JSON array.</returns>
<param name="obj">The JSON array to convert.</param>
</member>
<member name="M:System.Web.Helpers.DynamicJsonArray.op_Implicit(System.Web.Helpers.DynamicJsonArray)~System.Array">
<summary>Converts a <see cref="T:System.Web.Helpers.DynamicJsonArray" /> instance to an array of objects.</summary>
<returns>The array of objects that represents the JSON array.</returns>
<param name="obj">The JSON array to convert.</param>
</member>
<member name="M:System.Web.Helpers.DynamicJsonArray.System#Collections#Generic#IEnumerable{T}#GetEnumerator">
<summary>Returns an enumerator that can be used to iterate through a collection.</summary>
<returns>An enumerator that can be used to iterate through the collection.</returns>
</member>
<member name="M:System.Web.Helpers.DynamicJsonArray.TryConvert(System.Dynamic.ConvertBinder,System.Object@)">
<summary>Converts the <see cref="T:System.Web.Helpers.DynamicJsonArray" /> instance to a compatible type.</summary>
<returns>true if the conversion was successful; otherwise, false.</returns>
<param name="binder">Provides information about the conversion operation.</param>
<param name="result">When this method returns, contains the result of the type conversion operation. This parameter is passed uninitialized.</param>
</member>
<member name="M:System.Web.Helpers.DynamicJsonArray.TryGetMember(System.Dynamic.GetMemberBinder,System.Object@)">
<summary>Tests the <see cref="T:System.Web.Helpers.DynamicJsonArray" /> instance for dynamic members (which are not supported) in a way that does not cause an exception to be thrown.</summary>
<returns>true in all cases.</returns>
<param name="binder">Provides information about the get operation.</param>
<param name="result">When this method returns, contains null. This parameter is passed uninitialized.</param>
</member>
<member name="T:System.Web.Helpers.DynamicJsonObject">
<summary>Represents a collection of values as a JavaScript-like object by using the capabilities of the Dynamic Language Runtime.</summary>
</member>
<member name="M:System.Web.Helpers.DynamicJsonObject.#ctor(System.Collections.Generic.IDictionary{System.String,System.Object})">
<summary>Initializes a new instance of the <see cref="T:System.Web.Helpers.DynamicJsonObject" /> class using the specified field values.</summary>
<param name="values">A dictionary of property names and values to add to the <see cref="T:System.Web.Helpers.DynamicJsonObject" /> instance as dynamic members.</param>
</member>
<member name="M:System.Web.Helpers.DynamicJsonObject.GetDynamicMemberNames">
<summary>Returns a list that contains the name of all dynamic members (JSON fields) of the <see cref="T:System.Web.Helpers.DynamicJsonObject" /> instance.</summary>
<returns>A list that contains the name of every dynamic member (JSON field).</returns>
</member>
<member name="M:System.Web.Helpers.DynamicJsonObject.TryConvert(System.Dynamic.ConvertBinder,System.Object@)">
<summary>Converts the <see cref="T:System.Web.Helpers.DynamicJsonObject" /> instance to a compatible type.</summary>
<returns>true in all cases.</returns>
<param name="binder">Provides information about the conversion operation.</param>
<param name="result">When this method returns, contains the result of the type conversion operation. This parameter is passed uninitialized.</param>
<exception cref="T:System.InvalidOperationException">The <see cref="T:System.Web.Helpers.DynamicJsonObject" /> instance could not be converted to the specified type.</exception>
</member>
<member name="M:System.Web.Helpers.DynamicJsonObject.TryGetIndex(System.Dynamic.GetIndexBinder,System.Object[],System.Object@)">
<summary>Gets the value of a <see cref="T:System.Web.Helpers.DynamicJsonObject" /> field using the specified index.</summary>
<returns>true in all cases.</returns>
<param name="binder">Provides information about the indexed get operation.</param>
<param name="indexes">An array that contains a single object that indexes the field by name. The object must be convertible to a string that specifies the name of the JSON field to return. If multiple indexes are specified, <paramref name="result" /> contains null when this method returns.</param>
<param name="result">When this method returns, contains the value of the indexed field, or null if the get operation was unsuccessful. This parameter is passed uninitialized.</param>
</member>
<member name="M:System.Web.Helpers.DynamicJsonObject.TryGetMember(System.Dynamic.GetMemberBinder,System.Object@)">
<summary>Gets the value of a <see cref="T:System.Web.Helpers.DynamicJsonObject" /> field using the specified name.</summary>
<returns>true in all cases.</returns>
<param name="binder">Provides information about the get operation.</param>
<param name="result">When this method returns, contains the value of the field, or null if the get operation was unsuccessful. This parameter is passed uninitialized.</param>
</member>
<member name="M:System.Web.Helpers.DynamicJsonObject.TrySetIndex(System.Dynamic.SetIndexBinder,System.Object[],System.Object)">
<summary>Sets the value of a <see cref="T:System.Web.Helpers.DynamicJsonObject" /> field using the specified index.</summary>
<returns>true in all cases.</returns>
<param name="binder">Provides information about the indexed set operation.</param>
<param name="indexes">An array that contains a single object that indexes the field by name. The object must be convertible to a string that specifies the name of the JSON field to return. If multiple indexes are specified, no field is changed or added.</param>
<param name="value">The value to set the field to.</param>
</member>
<member name="M:System.Web.Helpers.DynamicJsonObject.TrySetMember(System.Dynamic.SetMemberBinder,System.Object)">
<summary>Sets the value of a <see cref="T:System.Web.Helpers.DynamicJsonObject" /> field using the specified name.</summary>
<returns>true in all cases.</returns>
<param name="binder">Provides information about the set operation.</param>
<param name="value">The value to set the field to.</param>
</member>
<member name="T:System.Web.Helpers.Json">
<summary>Provides methods for working with data in JavaScript Object Notation (JSON) format.</summary>
</member>
<member name="M:System.Web.Helpers.Json.Decode``1(System.String)">
<summary>Converts data in JavaScript Object Notation (JSON) format into the specified strongly typed data list.</summary>
<returns>The JSON-encoded data converted to a strongly typed list.</returns>
<param name="value">The JSON-encoded string to convert.</param>
<typeparam name="T">The type of the strongly typed list to convert JSON data into.</typeparam>
</member>
<member name="M:System.Web.Helpers.Json.Decode(System.String)">
<summary>Converts data in JavaScript Object Notation (JSON) format into a data object.</summary>
<returns>The JSON-encoded data converted to a data object.</returns>
<param name="value">The JSON-encoded string to convert.</param>
</member>
<member name="M:System.Web.Helpers.Json.Decode(System.String,System.Type)">
<summary>Converts data in JavaScript Object Notation (JSON) format into a data object of a specified type.</summary>
<returns>The JSON-encoded data converted to the specified type.</returns>
<param name="value">The JSON-encoded string to convert.</param>
<param name="targetType">The type that the <paramref name="value" /> data should be converted to.</param>
</member>
<member name="M:System.Web.Helpers.Json.Encode(System.Object)">
<summary>Converts a data object to a string that is in the JavaScript Object Notation (JSON) format.</summary>
<returns>Returns a string of data converted to the JSON format.</returns>
<param name="value">The data object to convert.</param>
</member>
<member name="M:System.Web.Helpers.Json.Write(System.Object,System.IO.TextWriter)">
<summary>Converts a data object to a string in JavaScript Object Notation (JSON) format and adds the string to the specified <see cref="T:System.IO.TextWriter" /> object.</summary>
<param name="value">The data object to convert.</param>
<param name="writer">The object that contains the converted JSON data.</param>
</member>
<member name="T:System.Web.Helpers.ObjectInfo">
<summary>Renders the property names and values of the specified object and of any subobjects that it references.</summary>
</member>
<member name="M:System.Web.Helpers.ObjectInfo.Print(System.Object,System.Int32,System.Int32)">
<summary>Renders the property names and values of the specified object and of any subobjects.</summary>
<returns>For a simple variable, returns the type and the value. For an object that contains multiple items, returns the property name or key and the value for each property.</returns>
<param name="value">The object to render information for.</param>
<param name="depth">Optional. Specifies the depth of nested subobjects to render information for. The default is 10.</param>
<param name="enumerationLength">Optional. Specifies the maximum number of characters that the method displays for object values. The default is 1000.</param>
<exception cref="T:System.ArgumentOutOfRangeException">
<paramref name="depth" /> is less than zero.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
<paramref name="enumerationLength" /> is less than or equal to zero.</exception>
</member>
<member name="T:System.Web.Helpers.ServerInfo">
<summary>Displays information about the web server environment that hosts the current web page.</summary>
</member>
<member name="M:System.Web.Helpers.ServerInfo.GetHtml">
<summary>Displays information about the web server environment.</summary>
<returns>A string of name-value pairs that contains information about the web server. </returns>
</member>
<member name="T:System.Web.Helpers.SortDirection">
<summary>Specifies the direction in which to sort a list of items.</summary>
</member>
<member name="F:System.Web.Helpers.SortDirection.Ascending">
<summary>Sort from smallest to largest for example, from 1 to 10.</summary>
</member>
<member name="F:System.Web.Helpers.SortDirection.Descending">
<summary>Sort from largest to smallest for example, from 10 to 1.</summary>
</member>
<member name="T:System.Web.Helpers.WebCache">
<summary>Provides a cache to store frequently accessed data.</summary>
</member>
<member name="M:System.Web.Helpers.WebCache.Get(System.String)">
<summary>Retrieves the specified item from the <see cref="T:System.Web.Helpers.WebCache" /> object.</summary>
<returns>The item retrieved from the cache, or null if the item is not found.</returns>
<param name="key">The identifier for the cache item to retrieve.</param>
</member>
<member name="M:System.Web.Helpers.WebCache.Remove(System.String)">
<summary>Removes the specified item from the <see cref="T:System.Web.Helpers.WebCache" /> object.</summary>
<returns>The item removed from the <see cref="T:System.Web.Helpers.WebCache" /> object. If the item is not found, returns null.</returns>
<param name="key">The identifier for the cache item to remove.</param>
</member>
<member name="M:System.Web.Helpers.WebCache.Set(System.String,System.Object,System.Int32,System.Boolean)">
<summary>Inserts an item into the <see cref="T:System.Web.Helpers.WebCache" /> object.</summary>
<param name="key">The identifier for the cache item.</param>
<param name="value">The data to insert into the cache.</param>
<param name="minutesToCache">Optional. The number of minutes to keep an item in the cache. The default is 20.</param>
<param name="slidingExpiration">Optional. true to indicate that the cache item expiration is reset each time the item is accessed, or false to indicate that the expiration is based the absolute time since the item was added to the cache. The default is true. In that case, if you also use the default value for the <paramref name="minutesToCache" /> parameter, a cached item expires 20 minutes after it was last accessed.</param>
<exception cref="T:System.ArgumentOutOfRangeException">The value of <paramref name="minutesToCache" /> is less than or equal to zero.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">Sliding expiration is enabled and the value of <paramref name="minutesToCache" /> is greater than a year.</exception>
</member>
<member name="T:System.Web.Helpers.WebGrid">
<summary>Displays data on a web page using an HTML table element.</summary>
</member>
<member name="M:System.Web.Helpers.WebGrid.#ctor(System.Collections.Generic.IEnumerable{System.Object},System.Collections.Generic.IEnumerable{System.String},System.String,System.Int32,System.Boolean,System.Boolean,System.String,System.String,System.String,System.String,System.String,System.String,System.String)">
<summary>Initializes a new instance of the <see cref="T:System.Web.Helpers.WebGrid" /> class.</summary>
<param name="source">The data to display.</param>
<param name="columnNames">A collection that contains the names of the data columns to display. By default, this value is auto-populated according to the values in the <paramref name="source" /> parameter.</param>
<param name="defaultSort">The name of the data column that is used to sort the grid by default.</param>
<param name="rowsPerPage">The number of rows that are displayed on each page of the grid when paging is enabled. The default is 10.</param>
<param name="canPage">true to specify that paging is enabled for the <see cref="T:System.Web.Helpers.WebGrid" /> instance; otherwise false. The default is true. </param>
<param name="canSort">true to specify that sorting is enabled for the <see cref="T:System.Web.Helpers.WebGrid" /> instance; otherwise, false. The default is true.</param>
<param name="ajaxUpdateContainerId">The value of the HTML id attribute that is used to mark the HTML element that gets dynamic Ajax updates that are associated with the <see cref="T:System.Web.Helpers.WebGrid" /> instance.</param>
<param name="ajaxUpdateCallback">The name of the JavaScript function that is called after the HTML element specified by the <see cref="P:System.Web.Helpers.WebGrid.AjaxUpdateContainerId" /> property has been updated. If the name of a function is not provided, no function will be called. If the specified function does not exist, a JavaScript error will occur if it is invoked.</param>
<param name="fieldNamePrefix">The prefix that is applied to all query-string fields that are associated with the <see cref="T:System.Web.Helpers.WebGrid" /> instance. This value is used in order to support multiple <see cref="T:System.Web.Helpers.WebGrid" /> instances on the same web page.</param>
<param name="pageFieldName">The name of the query-string field that is used to specify the current page of the <see cref="T:System.Web.Helpers.WebGrid" /> instance.</param>
<param name="selectionFieldName">The name of the query-string field that is used to specify the currently selected row of the <see cref="T:System.Web.Helpers.WebGrid" /> instance.</param>
<param name="sortFieldName">The name of the query-string field that is used to specify the name of the data column that the <see cref="T:System.Web.Helpers.WebGrid" /> instance is sorted by.</param>
<param name="sortDirectionFieldName">The name of the query-string field that is used to specify the direction in which the <see cref="T:System.Web.Helpers.WebGrid" /> instance is sorted.</param>
</member>
<member name="P:System.Web.Helpers.WebGrid.AjaxUpdateCallback">
<summary>Gets the name of the JavaScript function to call after the HTML element that is associated with the <see cref="T:System.Web.Helpers.WebGrid" /> instance has been updated in response to an Ajax update request.</summary>
<returns>The name of the function.</returns>
</member>
<member name="P:System.Web.Helpers.WebGrid.AjaxUpdateContainerId">
<summary>Gets the value of the HTML id attribute that marks an HTML element on the web page that gets dynamic Ajax updates that are associated with the <see cref="T:System.Web.Helpers.WebGrid" /> instance.</summary>
<returns>The value of the id attribute.</returns>
</member>
<member name="M:System.Web.Helpers.WebGrid.Bind(System.Collections.Generic.IEnumerable{System.Object},System.Collections.Generic.IEnumerable{System.String},System.Boolean,System.Int32)">
<summary>Binds the specified data to the <see cref="T:System.Web.Helpers.WebGrid" /> instance.</summary>
<returns>The bound and populated <see cref="T:System.Web.Helpers.WebGrid" /> instance.</returns>
<param name="source">The data to display.</param>
<param name="columnNames">A collection that contains the names of the data columns to bind.</param>
<param name="autoSortAndPage">true to enable sorting and paging of the <see cref="T:System.Web.Helpers.WebGrid" /> instance; otherwise, false.</param>
<param name="rowCount">The number of rows to display on each page of the grid.</param>
</member>
<member name="P:System.Web.Helpers.WebGrid.CanSort">
<summary>Gets a value that indicates whether the <see cref="T:System.Web.Helpers.WebGrid" /> instance supports sorting.</summary>
<returns>true if the instance supports sorting; otherwise, false.</returns>
</member>
<member name="M:System.Web.Helpers.WebGrid.Column(System.String,System.String,System.Func`2,System.Boolean,System.Object)">
<summary>Creates a new <see cref="T:System.Web.Helpers.WebGridColumn" /> instance.</summary>
<returns>The new column.</returns>
<param name="columnName">The name of the data column to associate with the <see cref="T:System.Web.Helpers.WebGridColumn" /> instance.</param>
<param name="header">The text that is rendered in the header of the HTML table column that is associated with the <see cref="T:System.Web.Helpers.WebGridColumn" /> instance.</param>
<param name="format">The function that is used to format the data values that are associated with the <see cref="T:System.Web.Helpers.WebGridColumn" /> instance.</param>
<param name="style">A string that specifies the name of the CSS class that is used to style the HTML table cells that are associated with the <see cref="T:System.Web.Helpers.WebGridColumn" /> instance.</param>
<param name="canSort">true to enable sorting in the <see cref="T:System.Web.Helpers.WebGrid" /> instance by the data values that are associated with the <see cref="T:System.Web.Helpers.WebGridColumn" /> instance; otherwise, false. The default is true.</param>
</member>
<member name="P:System.Web.Helpers.WebGrid.ColumnNames">
<summary>Gets a collection that contains the name of each data column that is bound to the <see cref="T:System.Web.Helpers.WebGrid" /> instance.</summary>
<returns>The collection of data column names.</returns>
</member>
<member name="M:System.Web.Helpers.WebGrid.Columns(System.Web.Helpers.WebGridColumn[])">
<summary>Returns an array that contains the specified <see cref="T:System.Web.Helpers.WebGridColumn" /> instances.</summary>
<returns>An array of columns.</returns>
<param name="columnSet">A variable number of <see cref="T:System.Web.Helpers.WebGridColumn" /> column instances.</param>
</member>
<member name="P:System.Web.Helpers.WebGrid.FieldNamePrefix">
<summary>Gets the prefix that is applied to all query-string fields that are associated with the <see cref="T:System.Web.Helpers.WebGrid" /> instance.</summary>
<returns>The query-string field prefix of the <see cref="T:System.Web.Helpers.WebGrid" /> instance.</returns>
</member>
<member name="M:System.Web.Helpers.WebGrid.GetContainerUpdateScript(System.String)">
<summary>Returns a JavaScript statement that can be used to update the HTML element that is associated with the <see cref="T:System.Web.Helpers.WebGrid" /> instance on the specified web page.</summary>
<returns>A JavaScript statement that can be used to update the HTML element in a web page that is associated with the <see cref="T:System.Web.Helpers.WebGrid" /> instance.</returns>
<param name="path">The URL of the web page that contains the <see cref="T:System.Web.Helpers.WebGrid" /> instance that is being updated. The URL can include query-string arguments.</param>
</member>
<member name="M:System.Web.Helpers.WebGrid.GetHtml(System.String,System.String,System.String,System.String,System.String,System.String,System.String,System.Boolean,System.Boolean,System.String,System.Collections.Generic.IEnumerable{System.Web.Helpers.WebGridColumn},System.Collections.Generic.IEnumerable{System.String},System.Web.Helpers.WebGridPagerModes,System.String,System.String,System.String,System.String,System.Int32,System.Object)">
<summary>Returns the HTML markup that is used to render the <see cref="T:System.Web.Helpers.WebGrid" /> instance and using the specified paging options.</summary>
<returns>The HTML markup that represents the fully-populated <see cref="T:System.Web.Helpers.WebGrid" /> instance.</returns>
<param name="tableStyle">The name of the CSS class that is used to style the whole table.</param>
<param name="headerStyle">The name of the CSS class that is used to style the table header.</param>
<param name="footerStyle">The name of the CSS class that is used to style the table footer.</param>
<param name="rowStyle">The name of the CSS class that is used to style each table row.</param>
<param name="alternatingRowStyle">The name of the CSS class that is used to style even-numbered table rows.</param>
<param name="selectedRowStyle">The name of the CSS class that is used to style the selected table row. (Only one row can be selected at a time.)</param>
<param name="caption">The table caption.</param>
<param name="displayHeader">true to display the table header; otherwise, false. The default is true.</param>
<param name="fillEmptyRows">true to insert additional rows in the last page when there are insufficient data items to fill the last page; otherwise, false. The default is false. Additional rows are populated using the text specified by the <paramref name="emptyRowCellValue" /> parameter.</param>
<param name="emptyRowCellValue">The text that is used to populate additional rows in a page when there are insufficient data items to fill the last page. The <paramref name="fillEmptyRows" /> parameter must be set to true to display these additional rows.</param>
<param name="columns">A collection of <see cref="T:System.Web.Helpers.WebGridColumn" /> instances that specify how each column is displayed. This includes which data column is associated with each grid column, and how to format the data values that each grid column contains.</param>
<param name="exclusions">A collection that contains the names of the data columns to exclude when the grid auto-populates columns.</param>
<param name="mode">A bitwise combination of the enumeration values that specify methods that are provided for moving between pages of the <see cref="T:System.Web.Helpers.WebGrid" /> instance.</param>
<param name="firstText">The text for the HTML link element that is used to link to the first page of the <see cref="T:System.Web.Helpers.WebGrid" /> instance. The <see cref="F:System.Web.Helpers.WebGridPagerModes.FirstLast" /> flag of the <paramref name="mode" /> parameter must be set to display this page navigation element.</param>
<param name="previousText">The text for the HTML link element that is used to link to previous page of the <see cref="T:System.Web.Helpers.WebGrid" /> instance. The <see cref="F:System.Web.Helpers.WebGridPagerModes.NextPrevious" /> flag of the <paramref name="mode" /> parameter must be set to display this page navigation element.</param>
<param name="nextText">The text for the HTML link element that is used to link to the next page of the <see cref="T:System.Web.Helpers.WebGrid" /> instance. The <see cref="F:System.Web.Helpers.WebGridPagerModes.NextPrevious" /> flag of the <paramref name="mode" /> parameter must be set to display this page navigation element.</param>
<param name="lastText">The text for the HTML link element that is used to link to the last page of the <see cref="T:System.Web.Helpers.WebGrid" /> instance. The <see cref="F:System.Web.Helpers.WebGridPagerModes.FirstLast" /> flag of the <paramref name="mode" /> parameter must be set to display this page navigation element.</param>
<param name="numericLinksCount">The number of numeric page links that are provided to nearby <see cref="T:System.Web.Helpers.WebGrid" /> pages. The text of each numeric page link contains the page number. The <see cref="F:System.Web.Helpers.WebGridPagerModes.Numeric" /> flag of the <paramref name="mode" /> parameter must be set to display these page navigation elements.</param>
<param name="htmlAttributes">An object that represents a collection of attributes (names and values) to set for the HTML table element that represents the <see cref="T:System.Web.Helpers.WebGrid" /> instance.</param>
</member>
<member name="M:System.Web.Helpers.WebGrid.GetPageUrl(System.Int32)">
<summary>Returns a URL that can be used to display the specified data page of the <see cref="T:System.Web.Helpers.WebGrid" /> instance.</summary>
<returns>A URL that can be used to display the specified data page of the grid.</returns>
<param name="pageIndex">The index of the <see cref="T:System.Web.Helpers.WebGrid" /> page to display.</param>
</member>
<member name="M:System.Web.Helpers.WebGrid.GetSortUrl(System.String)">
<summary>Returns a URL that can be used to sort the <see cref="T:System.Web.Helpers.WebGrid" /> instance by the specified column.</summary>
<returns>A URL that can be used to sort the grid.</returns>
<param name="column">The name of the data column to sort by.</param>
</member>
<member name="P:System.Web.Helpers.WebGrid.HasSelection">
<summary>Gets a value that indicates whether a row in the <see cref="T:System.Web.Helpers.WebGrid" /> instance is selected.</summary>
<returns>true if a row is currently selected; otherwise, false.</returns>
</member>
<member name="P:System.Web.Helpers.WebGrid.IsAjaxEnabled">
<summary>Returns a value that indicates whether the <see cref="T:System.Web.Helpers.WebGrid" /> instance can use Ajax calls to refresh the display.</summary>
<returns>true if the instance supports Ajax calls; otherwise, false..</returns>
</member>
<member name="P:System.Web.Helpers.WebGrid.PageCount">
<summary>Gets the number of pages that the <see cref="T:System.Web.Helpers.WebGrid" /> instance contains.</summary>
<returns>The page count.</returns>
</member>
<member name="P:System.Web.Helpers.WebGrid.PageFieldName">
<summary>Gets the full name of the query-string field that is used to specify the current page of the <see cref="T:System.Web.Helpers.WebGrid" /> instance.</summary>
<returns>The full name of the query string field that is used to specify the current page of the grid.</returns>
</member>
<member name="P:System.Web.Helpers.WebGrid.PageIndex">
<summary>Gets or sets the index of the current page of the <see cref="T:System.Web.Helpers.WebGrid" /> instance.</summary>
<returns>The index of the current page.</returns>
<exception cref="T:System.NotSupportedException">The <see cref="P:System.Web.Helpers.WebGrid.PageIndex" /> property cannot be set because paging is not enabled.</exception>
</member>
<member name="M:System.Web.Helpers.WebGrid.Pager(System.Web.Helpers.WebGridPagerModes,System.String,System.String,System.String,System.String,System.Int32)">
<summary>Returns the HTML markup that is used to provide the specified paging support for the <see cref="T:System.Web.Helpers.WebGrid" /> instance.</summary>
<returns>The HTML markup that provides paging support for the grid.</returns>
<param name="mode">A bitwise combination of the enumeration values that specify the methods that are provided for moving between the pages of the grid. The default is the bitwise OR of the <see cref="F:System.Web.Helpers.WebGridPagerModes.NextPrevious" /> and <see cref="F:System.Web.Helpers.WebGridPagerModes.Numeric" /> flags.</param>
<param name="firstText">The text for the HTML link element that navigates to the first page of the grid.</param>
<param name="previousText">The text for the HTML link element that navigates to the previous page of the grid.</param>
<param name="nextText">The text for the HTML link element that navigates to the next page of the grid.</param>
<param name="lastText">The text for the HTML link element that navigates to the last page of the grid.</param>
<param name="numericLinksCount">The number of numeric page links to display. The default is 5.</param>
</member>
<member name="P:System.Web.Helpers.WebGrid.Rows">
<summary>Gets a list that contains the rows that are on the current page of the <see cref="T:System.Web.Helpers.WebGrid" /> instance after the grid has been sorted.</summary>
<returns>The list of rows.</returns>
</member>
<member name="P:System.Web.Helpers.WebGrid.RowsPerPage">
<summary>Gets the number of rows that are displayed on each page of the <see cref="T:System.Web.Helpers.WebGrid" /> instance.</summary>
<returns>The number of rows that are displayed on each page of the grid.</returns>
</member>
<member name="P:System.Web.Helpers.WebGrid.SelectedIndex">
<summary>Gets or sets the index of the selected row relative to the current page of the <see cref="T:System.Web.Helpers.WebGrid" /> instance.</summary>
<returns>The index of the selected row relative to the current page.</returns>
</member>
<member name="P:System.Web.Helpers.WebGrid.SelectedRow">
<summary>Gets the currently selected row of the <see cref="T:System.Web.Helpers.WebGrid" /> instance.</summary>
<returns>The currently selected row.</returns>
</member>
<member name="P:System.Web.Helpers.WebGrid.SelectionFieldName">
<summary>Gets the full name of the query-string field that is used to specify the selected row of the <see cref="T:System.Web.Helpers.WebGrid" /> instance.</summary>
<returns>The full name of the query string field that is used to specify the selected row of the grid.</returns>
</member>
<member name="P:System.Web.Helpers.WebGrid.SortColumn">
<summary>Gets or sets the name of the data column that the <see cref="T:System.Web.Helpers.WebGrid" /> instance is sorted by.</summary>
<returns>The name of the data column that is used to sort the grid.</returns>
</member>
<member name="P:System.Web.Helpers.WebGrid.SortDirection">
<summary>Gets or sets the direction in which the <see cref="T:System.Web.Helpers.WebGrid" /> instance is sorted.</summary>
<returns>The sort direction.</returns>
</member>
<member name="P:System.Web.Helpers.WebGrid.SortDirectionFieldName">
<summary>Gets the full name of the query-string field that is used to specify the sort direction of the <see cref="T:System.Web.Helpers.WebGrid" /> instance.</summary>
<returns>The full name of the query string field that is used to specify the sort direction of the grid.</returns>
</member>
<member name="P:System.Web.Helpers.WebGrid.SortFieldName">
<summary>Gets the full name of the query-string field that is used to specify the name of the data column that the <see cref="T:System.Web.Helpers.WebGrid" /> instance is sorted by.</summary>
<returns>The full name of the query-string field that is used to specify the name of the data column that the grid is sorted by.</returns>
</member>
<member name="M:System.Web.Helpers.WebGrid.Table(System.String,System.String,System.String,System.String,System.String,System.String,System.String,System.Boolean,System.Boolean,System.String,System.Collections.Generic.IEnumerable{System.Web.Helpers.WebGridColumn},System.Collections.Generic.IEnumerable{System.String},System.Func`2,System.Boolean)">
<summary>Returns the HTML markup that is used to render the <see cref="T:System.Web.Helpers.WebGrid" /> instance.</summary>
<returns>The HTML markup that represents the fully-populated <see cref="T:System.Web.Helpers.WebGrid" /> instance.</returns>
<param name="tableStyle">The name of the CSS class that is used to style the whole table.</param>
<param name="headerStyle">The name of the CSS class that is used to style the table header.</param>
<param name="footerStyle">The name of the CSS class that is used to style the table footer.</param>
<param name="rowStyle">The name of the CSS class that is used to style each table row.</param>
<param name="alternatingRowStyle">The name of the CSS class that is used to style even-numbered table rows.</param>
<param name="selectedRowStyle">The name of the CSS class that is used use to style the selected table row.</param>
<param name="caption">The table caption.</param>
<param name="displayHeader">true to display the table header; otherwise, false. The default is true.</param>
<param name="fillEmptyRows">true to insert additional rows in the last page when there are insufficient data items to fill the last page; otherwise, false. The default is false. Additional rows are populated using the text specified by the <paramref name="emptyRowCellValue" /> parameter.</param>
<param name="emptyRowCellValue">The text that is used to populate additional rows in the last page when there are insufficient data items to fill the last page. The <paramref name="fillEmptyRows" /> parameter must be set to true to display these additional rows.</param>
<param name="columns">A collection of <see cref="T:System.Web.Helpers.WebGridColumn" /> instances that specify how each column is displayed. This includes which data column is associated with each grid column, and how to format the data values that each grid column contains.</param>
<param name="exclusions">A collection that contains the names of the data columns to exclude when the grid auto-populates columns.</param>
<param name="footer">A function that returns the HTML markup that is used to render the table footer.</param>
<param name="htmlAttributes">An object that represents a collection of attributes (names and values) to set for the HTML table element that represents the <see cref="T:System.Web.Helpers.WebGrid" /> instance.</param>
</member>
<member name="P:System.Web.Helpers.WebGrid.TotalRowCount">
<summary>Gets the total number of rows that the <see cref="T:System.Web.Helpers.WebGrid" /> instance contains.</summary>
<returns>The total number of rows in the grid. This value includes all rows from every page, but does not include the additional rows inserted in the last page when there are insufficient data items to fill the last page.</returns>
</member>
<member name="T:System.Web.Helpers.WebGridColumn">
<summary>Represents a column in a <see cref="T:System.Web.Helpers.WebGrid" /> instance.</summary>
</member>
<member name="M:System.Web.Helpers.WebGridColumn.#ctor">
<summary>Initializes a new instance of the <see cref="T:System.Web.Helpers.WebGridColumn" /> class.</summary>
</member>
<member name="P:System.Web.Helpers.WebGridColumn.CanSort">
<summary>Gets or sets a value that indicates whether the <see cref="T:System.Web.Helpers.WebGrid" /> column can be sorted.</summary>
<returns>true to indicate that the column can be sorted; otherwise, false.</returns>
</member>
<member name="P:System.Web.Helpers.WebGridColumn.ColumnName">
<summary>Gets or sets the name of the data item that is associated with the <see cref="T:System.Web.Helpers.WebGrid" /> column.</summary>
<returns>The name of the data item.</returns>
</member>
<member name="P:System.Web.Helpers.WebGridColumn.Format">
<summary>Gets or sets a function that is used to format the data item that is associated with the <see cref="T:System.Web.Helpers.WebGrid" /> column.</summary>
<returns>The function that is used to format that data item that is associated with the column.</returns>
</member>
<member name="P:System.Web.Helpers.WebGridColumn.Header">
<summary>Gets or sets the text that is rendered in the header of the <see cref="T:System.Web.Helpers.WebGrid" /> column.</summary>
<returns>The text that is rendered to the column header.</returns>
</member>
<member name="P:System.Web.Helpers.WebGridColumn.Style">
<summary>Gets or sets the CSS class attribute that is rendered as part of the HTML table cells that are associated with the <see cref="T:System.Web.Helpers.WebGrid" /> column.</summary>
<returns>The CSS class attribute that is applied to cells that are associated with the column.</returns>
</member>
<member name="T:System.Web.Helpers.WebGridPagerModes">
<summary>Specifies flags that describe the methods that are provided for moving between the pages of a <see cref="T:System.Web.Helpers.WebGrid" /> instance.</summary>
</member>
<member name="F:System.Web.Helpers.WebGridPagerModes.Numeric">
<summary>Indicates that methods for moving to a nearby <see cref="F:System.Web.Helpers.WebGrid" /> page by using a page number are provided.</summary>
</member>
<member name="F:System.Web.Helpers.WebGridPagerModes.NextPrevious">
<summary>Indicates that methods for moving to the next or previous <see cref="F:System.Web.Helpers.WebGrid" /> page are provided.</summary>
</member>
<member name="F:System.Web.Helpers.WebGridPagerModes.FirstLast">
<summary>Indicates that methods for moving directly to the first or last <see cref="F:System.Web.Helpers.WebGrid" /> page are provided.</summary>
</member>
<member name="F:System.Web.Helpers.WebGridPagerModes.All">
<summary>Indicates that all methods for moving between <see cref="T:System.Web.Helpers.WebGrid" /> pages are provided.</summary>
</member>
<member name="T:System.Web.Helpers.WebGridRow">
<summary>Represents a row in a <see cref="T:System.Web.Helpers.WebGrid" /> instance.</summary>
</member>
<member name="M:System.Web.Helpers.WebGridRow.#ctor(System.Web.Helpers.WebGrid,System.Object,System.Int32)">
<summary>Initializes a new instance of the <see cref="T:System.Web.Helpers.WebGridRow" /> class using the specified <see cref="T:System.Web.Helpers.WebGrid" /> instance, row value, and index.</summary>
<param name="webGrid">The <see cref="T:System.Web.Helpers.WebGrid" /> instance that contains the row.</param>
<param name="value">An object that contains a property member for each value in the row.</param>
<param name="rowIndex">The index of the row.</param>
</member>
<member name="M:System.Web.Helpers.WebGridRow.GetEnumerator">
<summary>Returns an enumerator that can be used to iterate through the values of the <see cref="T:System.Web.Helpers.WebGridRow" /> instance.</summary>
<returns>An enumerator that can be used to iterate through the values of the row.</returns>
</member>
<member name="M:System.Web.Helpers.WebGridRow.GetSelectLink(System.String)">
<summary>Returns an HTML element (a link) that users can use to select the row.</summary>
<returns>The link that users can click to select the row.</returns>
<param name="text">The inner text of the link element. If <paramref name="text" /> is empty or null, "Select" is used.</param>
</member>
<member name="M:System.Web.Helpers.WebGridRow.GetSelectUrl">
<summary>Returns the URL that can be used to select the row.</summary>
<returns>The URL that is used to select a row.</returns>
</member>
<member name="P:System.Web.Helpers.WebGridRow.Item(System.Int32)">
<summary>Returns the value at the specified index in the <see cref="T:System.Web.Helpers.WebGridRow" /> instance.</summary>
<returns>The value at the specified index.</returns>
<param name="index">The zero-based index of the value in the row to return.</param>
<exception cref="T:System.ArgumentOutOfRangeException">
<paramref name="index" /> is less than 0 or greater than or equal to the number of values in the row.</exception>
</member>
<member name="P:System.Web.Helpers.WebGridRow.Item(System.String)">
<summary>Returns the value that has the specified name in the <see cref="T:System.Web.Helpers.WebGridRow" /> instance.</summary>
<returns>The specified value.</returns>
<param name="name">The name of the value in the row to return.</param>
<exception cref="T:System.ArgumentException">
<paramref name="name" /> is null or empty.</exception>
<exception cref="T:System.InvalidOperationException">
<paramref name="name" /> specifies a value that does not exist.</exception>
</member>
<member name="M:System.Web.Helpers.WebGridRow.System#Collections#IEnumerable#GetEnumerator">
<summary>Returns an enumerator that can be used to iterate through a collection.</summary>
<returns>An enumerator that can be used to iterate through the collection.</returns>
</member>
<member name="M:System.Web.Helpers.WebGridRow.ToString">
<summary>Returns a string that represents all of the values of the <see cref="T:System.Web.Helpers.WebGridRow" /> instance.</summary>
<returns>A string that represents the row's values.</returns>
</member>
<member name="M:System.Web.Helpers.WebGridRow.TryGetMember(System.Dynamic.GetMemberBinder,System.Object@)">
<summary>Returns the value of a <see cref="T:System.Web.Helpers.WebGridRow" /> member that is described by the specified binder.</summary>
<returns>true if the value of the item was successfully retrieved; otherwise, false.</returns>
<param name="binder">The getter of the bound property member.</param>
<param name="result">When this method returns, contains an object that holds the value of the item described by <paramref name="binder" />. This parameter is passed uninitialized.</param>
</member>
<member name="P:System.Web.Helpers.WebGridRow.Value">
<summary>Gets an object that contains a property member for each value in the row.</summary>
<returns>An object that contains each value in the row as a property.</returns>
</member>
<member name="P:System.Web.Helpers.WebGridRow.WebGrid">
<summary>Gets the <see cref="T:System.Web.Helpers.WebGrid" /> instance that the row belongs to.</summary>
<returns>The <see cref="T:System.Web.Helpers.WebGrid" /> instance that contains the row.</returns>
</member>
<member name="T:System.Web.Helpers.WebImage">
<summary>Represents an object that lets you display and manage images in a web page.</summary>
</member>
<member name="M:System.Web.Helpers.WebImage.#ctor(System.Byte[])">
<summary>Initializes a new instance of the <see cref="T:System.Web.Helpers.WebImage" /> class using a byte array to represent the image.</summary>
<param name="content">The image.</param>
</member>
<member name="M:System.Web.Helpers.WebImage.#ctor(System.IO.Stream)">
<summary>Initializes a new instance of the <see cref="T:System.Web.Helpers.WebImage" /> class using a stream to represent the image.</summary>
<param name="imageStream">The image.</param>
</member>
<member name="M:System.Web.Helpers.WebImage.#ctor(System.String)">
<summary>Initializes a new instance of the <see cref="T:System.Web.Helpers.WebImage" /> class using a path to represent the image location.</summary>
<param name="filePath">The path of the file that contains the image.</param>
</member>
<member name="M:System.Web.Helpers.WebImage.AddImageWatermark(System.String,System.Int32,System.Int32,System.String,System.String,System.Int32,System.Int32)">
<summary>Adds a watermark image using a path to the watermark image.</summary>
<returns>The watermarked image.</returns>
<param name="watermarkImageFilePath">The path of a file that contains the watermark image.</param>
<param name="width">The width, in pixels, of the watermark image.</param>
<param name="height">The height, in pixels, of the watermark image.</param>
<param name="horizontalAlign">The horizontal alignment for watermark image. Values can be "Left", "Right", or "Center".</param>
<param name="verticalAlign">The vertical alignment for the watermark image. Values can be "Top", "Middle", or "Bottom".</param>
<param name="opacity">The opacity for the watermark image, specified as a value between 0 and 100.</param>
<param name="padding">The size, in pixels, of the padding around the watermark image.</param>
</member>
<member name="M:System.Web.Helpers.WebImage.AddImageWatermark(System.Web.Helpers.WebImage,System.Int32,System.Int32,System.String,System.String,System.Int32,System.Int32)">
<summary>Adds a watermark image using the specified image object.</summary>
<returns>The watermarked image.</returns>
<param name="watermarkImage">A <see cref="T:System.Web.Helpers.WebImage" /> object.</param>
<param name="width">The width, in pixels, of the watermark image.</param>
<param name="height">The height, in pixels, of the watermark image.</param>
<param name="horizontalAlign">The horizontal alignment for watermark image. Values can be "Left", "Right", or "Center".</param>
<param name="verticalAlign">The vertical alignment for the watermark image. Values can be "Top", "Middle", or "Bottom".</param>
<param name="opacity">The opacity for the watermark image, specified as a value between 0 and 100.</param>
<param name="padding">The size, in pixels, of the padding around the watermark image.</param>
</member>
<member name="M:System.Web.Helpers.WebImage.AddTextWatermark(System.String,System.String,System.Int32,System.String,System.String,System.String,System.String,System.Int32,System.Int32)">
<summary>Adds watermark text to the image.</summary>
<returns>The watermarked image.</returns>
<param name="text">The text to use as a watermark.</param>
<param name="fontColor">The color of the watermark text.</param>
<param name="fontSize">The font size of the watermark text.</param>
<param name="fontStyle">The font style of the watermark text.</param>
<param name="fontFamily">The font type of the watermark text.</param>
<param name="horizontalAlign">The horizontal alignment for watermark text. Values can be "Left", "Right", or "Center".</param>
<param name="verticalAlign">The vertical alignment for the watermark text. Values can be "Top", "Middle", or "Bottom".</param>
<param name="opacity">The opacity for the watermark image, specified as a value between 0 and 100.</param>
<param name="padding">The size, in pixels, of the padding around the watermark text.</param>
</member>
<member name="M:System.Web.Helpers.WebImage.Clone">
<summary>Copies the <see cref="T:System.Web.Helpers.WebImage" /> object.</summary>
<returns>The image.</returns>
</member>
<member name="M:System.Web.Helpers.WebImage.Crop(System.Int32,System.Int32,System.Int32,System.Int32)">
<summary>Crops an image.</summary>
<returns>The cropped image.</returns>
<param name="top">The number of pixels to remove from the top.</param>
<param name="left">The number of pixels to remove from the left.</param>
<param name="bottom">The number of pixels to remove from the bottom.</param>
<param name="right">The number of pixels to remove from the right.</param>
</member>
<member name="P:System.Web.Helpers.WebImage.FileName">
<summary>Gets or sets the file name of the <see cref="T:System.Web.Helpers.WebImage" /> object.</summary>
<returns>The file name.</returns>
</member>
<member name="M:System.Web.Helpers.WebImage.FlipHorizontal">
<summary>Flips an image horizontally.</summary>
<returns>The flipped image.</returns>
</member>
<member name="M:System.Web.Helpers.WebImage.FlipVertical">
<summary>Flips an image vertically.</summary>
<returns>The flipped image.</returns>
</member>
<member name="M:System.Web.Helpers.WebImage.GetBytes(System.String)">
<summary>Returns the image as a byte array.</summary>
<returns>The image.</returns>
<param name="requestedFormat">The <see cref="P:System.Web.Helpers.WebImage.ImageFormat" /> value of the <see cref="T:System.Web.Helpers.WebImage" /> object.</param>
</member>
<member name="M:System.Web.Helpers.WebImage.GetImageFromRequest(System.String)">
<summary>Returns an image that has been uploaded using the browser.</summary>
<returns>The image.</returns>
<param name="postedFileName">(Optional) The name of the file that has been posted. If no file name is specified, the first file that was uploaded is returned.</param>
</member>
<member name="P:System.Web.Helpers.WebImage.Height">
<summary>Gets the height, in pixels, of the image.</summary>
<returns>The height.</returns>
</member>
<member name="P:System.Web.Helpers.WebImage.ImageFormat">
<summary>Gets the format of the image (for example, "jpeg" or "png").</summary>
<returns>The file format of the image.</returns>
</member>
<member name="M:System.Web.Helpers.WebImage.Resize(System.Int32,System.Int32,System.Boolean,System.Boolean)">
<summary>Resizes an image.</summary>
<returns>The resized image.</returns>
<param name="width">The width, in pixels, of the <see cref="T:System.Web.Helpers.WebImage" /> object.</param>
<param name="height">The height, in pixels, of the <see cref="T:System.Web.Helpers.WebImage" /> object.</param>
<param name="preserveAspectRatio">true to preserve the aspect ratio of the image; otherwise, false.</param>
<param name="preventEnlarge">true to prevent the enlargement of the image; otherwise, false.</param>
</member>
<member name="M:System.Web.Helpers.WebImage.RotateLeft">
<summary>Rotates an image to the left.</summary>
<returns>The rotated image.</returns>
</member>
<member name="M:System.Web.Helpers.WebImage.RotateRight">
<summary>Rotates an image to the right.</summary>
<returns>The rotated image.</returns>
</member>
<member name="M:System.Web.Helpers.WebImage.Save(System.String,System.String,System.Boolean)">
<summary>Saves the image using the specified file name.</summary>
<returns>The image.</returns>
<param name="filePath">The path to save the image to.</param>
<param name="imageFormat">The format to use when the image file is saved, such as "gif", or "png".</param>
<param name="forceCorrectExtension">true to force the correct file-name extension to be used for the format that is specified in <paramref name="imageFormat" />; otherwise, false. If there is a mismatch between the file type and the specified file-name extension, and if <paramref name="forceCorrectExtension" /> is true, the correct extension will be appended to the file name. For example, a PNG file named Photograph.txt is saved using the name Photograph.txt.png.</param>
</member>
<member name="P:System.Web.Helpers.WebImage.Width">
<summary>Gets the width, in pixels, of the image.</summary>
<returns>The width.</returns>
</member>
<member name="M:System.Web.Helpers.WebImage.Write(System.String)">
<summary>Renders an image to the browser.</summary>
<returns>The image.</returns>
<param name="requestedFormat">(Optional) The file format to use when the image is written.</param>
</member>
<member name="T:System.Web.Helpers.WebMail">
<summary>Provides a way to construct and send an email message using Simple Mail Transfer Protocol (SMTP).</summary>
</member>
<member name="P:System.Web.Helpers.WebMail.EnableSsl">
<summary>Gets or sets a value that indicates whether Secure Sockets Layer (SSL) is used to encrypt the connection when an email message is sent.</summary>
<returns>true if SSL is used to encrypt the connection; otherwise, false.</returns>
</member>
<member name="P:System.Web.Helpers.WebMail.From">
<summary>Gets or sets the email address of the sender.</summary>
<returns>The email address of the sender.</returns>
</member>
<member name="P:System.Web.Helpers.WebMail.Password">
<summary>Gets or sets the password of the sender's email account.</summary>
<returns>The sender's password.</returns>
</member>
<member name="M:System.Web.Helpers.WebMail.Send(System.String,System.String,System.String,System.String,System.String,System.Collections.Generic.IEnumerable{System.String},System.Boolean,System.Collections.Generic.IEnumerable{System.String},System.String,System.String,System.String,System.String,System.String)">
<summary>Sends the specified message to an SMTP server for delivery.</summary>
<param name="to">The email address of the recipient or recipients. Separate multiple recipients using a semicolon (;).</param>
<param name="subject">The subject line for the email message.</param>
<param name="body">The body of the email message. If <paramref name="isBodyHtml" /> is true, HTML in the body is interpreted as markup.</param>
<param name="from">(Optional) The email address of the message sender, or null to not specify a sender. The default value is null.</param>
<param name="cc">(Optional) The email addresses of additional recipients to send a copy of the message to, or null if there are no additional recipients. Separate multiple recipients using a semicolon (;). The default value is null.</param>
<param name="filesToAttach">(Optional) A collection of file names that specifies the files to attach to the email message, or null if there are no files to attach. The default value is null.</param>
<param name="isBodyHtml">(Optional) true to specify that the email message body is in HTML format; false to indicate that the body is in plain-text format. The default value is true.</param>
<param name="additionalHeaders">(Optional) A collection of headers to add to the normal SMTP headers included in this email message, or null to send no additional headers. The default value is null.</param>
<param name="bcc">(Optional) The email addresses of additional recipients to send a "blind" copy of the message to, or null if there are no additional recipients. Separate multiple recipients using a semicolon (;). The default value is null.</param>
<param name="contentEncoding">(Optional) The encoding to use for the body of the message. Possible values are property values for the <see cref="T:System.Text.Encoding" /> class, such as <see cref="P:System.Text.Encoding.UTF8" />. The default value is null.</param>
<param name="headerEncoding">(Optional) The encoding to use for the header of the message. Possible values are property values for the <see cref="T:System.Text.Encoding" /> class, such as <see cref="P:System.Text.Encoding.UTF8" />. The default value is null.</param>
<param name="priority">(Optional) A value ("Normal", "Low", "High") that specifies the priority of the message. The default is "Normal".</param>
<param name="replyTo">(Optional) The email address that will be used when the recipient replies to the message. The default value is null, which indicates that the reply address is the value of the From property. </param>
</member>
<member name="P:System.Web.Helpers.WebMail.SmtpPort">
<summary>Gets or sets the port that is used for SMTP transactions.</summary>
<returns>The port that is used for SMTP transactions.</returns>
</member>
<member name="P:System.Web.Helpers.WebMail.SmtpServer">
<summary>Gets or sets the name of the SMTP server that is used to transmit the email message.</summary>
<returns>The SMTP server.</returns>
</member>
<member name="P:System.Web.Helpers.WebMail.SmtpUseDefaultCredentials">
<summary>Gets or sets a value that indicates whether the default credentials are sent with the requests.</summary>
<returns>true if credentials are sent with the email message; otherwise, false.</returns>
</member>
<member name="P:System.Web.Helpers.WebMail.UserName">
<summary>Gets or sets the name of email account that is used to send email.</summary>
<returns>The name of the user account.</returns>
</member>
</members>
</doc>
``` | /content/code_sandbox/packages/Microsoft.AspNet.WebPages.2.0.20710.0/lib/net40/System.Web.Helpers.xml | xml | 2016-05-19T00:34:01 | 2024-07-23T18:45:11 | gitwms | hechenqingyuan/gitwms | 1,000 | 16,303 |
```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 {render} from '@testing-library/react';
import {ConversationProtocol} from '@wireapp/api-client/lib/conversation/NewConversation';
import {Ciphersuite} from '@wireapp/core';
import {ConversationProtocolDetails} from './ConversationProtocolDetails';
describe('ConversationProtocolDetails', () => {
it('renders the correct infos for the conversation with mls protocol', () => {
const props = {
cipherSuite: Ciphersuite.MLS_128_DHKEMP256_AES128GCM_SHA256_P256,
protocol: ConversationProtocol.MLS,
};
const {queryByText} = render(<ConversationProtocolDetails {...props} />);
expect(queryByText('MLS')).not.toBeNull();
expect(queryByText('MLS_128_DHKEMP256_AES128GCM_SHA256_P256')).not.toBeNull();
});
it('renders the correct infos for the conversation with proteus protocol', () => {
const props = {
protocol: ConversationProtocol.PROTEUS,
};
const {queryByText} = render(<ConversationProtocolDetails {...props} />);
expect(queryByText('PROTEUS')).not.toBeNull();
});
});
``` | /content/code_sandbox/src/script/components/panel/ConversationProtocolDetails/ConversationProtocolDetails.test.tsx | xml | 2016-07-21T15:34:05 | 2024-08-16T11:40:13 | wire-webapp | wireapp/wire-webapp | 1,125 | 327 |
```xml
import {
IUser as IUserC,
IUserConversation as IUserConversationC,
IUserDetails as IUserDetailsC,
IUserDoc as IUserDocC,
IUserLinks as IUserLinksC
} from '@erxes/ui/src/auth/types';
import { IDepartment } from '@erxes/ui/src/team/types';
export type IUser = IUserC & {
isSubscribed?: boolean;
department?: IDepartment;
} & {
isShowNotification?: boolean;
} & {
customFieldsData?: {
[key: string]: any;
};
};
export type IUserDetails = IUserDetailsC;
export type IUserLinks = IUserLinksC;
export type IUserConversation = IUserConversationC;
export type IUserDoc = IUserDocC;
export interface IOwner {
email: string;
password: string;
firstName: string;
lastName?: string;
purpose: string;
subscribeEmail?: boolean;
}
export type ForgotPasswordMutationVariables = {
email: string;
callback: (e: Error) => void;
};
export type ForgotPasswordMutationResponse = {
forgotPasswordMutation: (params: {
variables: ForgotPasswordMutationVariables;
}) => Promise<any>;
};
export type ResetPasswordMutationVariables = {
newPassword: string;
token: string;
};
export type ResetPasswordMutationResponse = {
resetPasswordMutation: (params: {
variables: ResetPasswordMutationVariables;
}) => Promise<any>;
};
export type LoginMutationVariables = {
email: string;
password: string;
};
export type LoginMutationResponse = {
loginMutation: (params: {
variables: LoginMutationVariables;
}) => Promise<any>;
};
export type CurrentUserQueryResponse = {
currentUser: IUser;
loading: boolean;
};
export type CreateOwnerMutationResponse = {
createOwnerMutation: (params: { variables: IOwner }) => Promise<any>;
};
``` | /content/code_sandbox/packages/core-ui/src/modules/auth/types.ts | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 392 |
```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>16B2657</string>
<key>CFBundleExecutable</key>
<string>VoodooPS2Keyboard</string>
<key>CFBundleGetInfoString</key>
<key>CFBundleIdentifier</key>
<string>org.rehabman.voodoo.driver.PS2Keyboard</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>Voodoo PS/2 Keyboard</string>
<key>CFBundlePackageType</key>
<string>KEXT</string>
<key>CFBundleShortVersionString</key>
<string>1.8.25</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>MacOSX</string>
</array>
<key>CFBundleVersion</key>
<string>1.8.25</string>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
<string>8B62</string>
<key>DTPlatformVersion</key>
<string>GM</string>
<key>DTSDKBuild</key>
<string>12D75</string>
<key>DTSDKName</key>
<string>macosx10.8</string>
<key>DTXcode</key>
<string>0810</string>
<key>DTXcodeBuild</key>
<string>8B62</string>
<key>IOKitPersonalities</key>
<dict>
<key>ApplePS2Keyboard</key>
<dict>
<key>CFBundleIdentifier</key>
<string>org.rehabman.voodoo.driver.PS2Keyboard</string>
<key>IOClass</key>
<string>ApplePS2Keyboard</string>
<key>IOProviderClass</key>
<string>ApplePS2KeyboardDevice</string>
<key>Platform Profile</key>
<dict>
<key>DELL</key>
<dict>
<key>Dell-Keys</key>
<dict>
<key>Breakless PS2</key>
<array>
<string>e005</string>
<string>e006</string>
</array>
<key>Function Keys Special</key>
<array>
<string>;The following 12 items map Fn+fkeys to fkeys</string>
<string>e020=3b</string>
<string>e02e=3c</string>
<string>e030=3d</string>
<string>e022=3e</string>
<string>;Fn+f5 macro</string>
<string>;Fn+f6 macro</string>
<string>;Fn+f7 macro</string>
<string>;Fn+f8 macro</string>
<string>;Fn+f9 macro</string>
<string>;Fn+f10 no code</string>
<string>e005=57</string>
<string>e006=58</string>
<string>;The following 12 items map fkeys to Fn+fkeys</string>
<string>3b=e020</string>
<string>3c=e02e</string>
<string>3d=e030</string>
<string>3e=e022</string>
<string>;Fn+f5 macro</string>
<string>;Fn+f6 macro</string>
<string>;Fn+f7 macro</string>
<string>;Fn+f8 macro</string>
<string>;Fn+f9 macro</string>
<string>;Fn+f10 no code</string>
<string>57=e005</string>
<string>58=e006</string>
</array>
<key>Function Keys Standard</key>
<array>
<string>;The following 12 items map Fn+fkeys to Fn+fkeys</string>
<string>e020=e020</string>
<string>e02e=e02e</string>
<string>e030=e030</string>
<string>e022=e022</string>
<string>;Fn+f5 macro</string>
<string>;Fn+f6 macro</string>
<string>;Fn+f7 macro</string>
<string>;Fn+f8 macro</string>
<string>;Fn+f9 macro</string>
<string>;Fn+f10 no code</string>
<string>e005=e005</string>
<string>e006=e006</string>
<string>;The following 12 items map fkeys to fkeys</string>
<string>3b=3b</string>
<string>3c=3c</string>
<string>3d=3d</string>
<string>3e=3e</string>
<string>3f=3f</string>
<string>40=40</string>
<string>41=41</string>
<string>42=42</string>
<string>43=43</string>
<string>44=44</string>
<string>57=57</string>
<string>58=58</string>
</array>
</dict>
<key>HSW-LPT</key>
<string>Dell-Keys</string>
<key>SNB-CPT</key>
<dict>
<key>ActionSwipeDown</key>
<string>63 d, 63 u</string>
<key>ActionSwipeUp</key>
<string>61 d, 61 u</string>
<key>Breakless PS2</key>
<array>
<string>e01e;Touchpad Fn+f3 is breakless</string>
<string>e06e;REVIEW: temporary for case that macro inversion does not work...</string>
</array>
<key>Custom ADB Map</key>
<array>
<string>e009=83;Dell Support to Launchpad</string>
<string>e0f1=71;Call brightens up w RKA1 for special mode (was =90)</string>
<string>e0f2=6b;Call brightens down w RKA2 for special mode (was =91)</string>
<string>e06e=70;Map vidmirror key for special mode default is adb90</string>
</array>
<key>Custom PS2 Map</key>
<array>
<string>e01e=e037;Map tp disable to Fn+f3</string>
<string>e037=e01e;Prevent PrntScr from triggering tp disable</string>
</array>
<key>Function Keys Special</key>
<array>
<string>;The following 12 items map Fn+fkeys to fkeys</string>
<string>e06e=3b</string>
<string>e008=3c</string>
<string>e01e=3d</string>
<string>e005=3e</string>
<string>e006=3f</string>
<string>e00c=40</string>
<string>;Fn+f7 no dedicated macro</string>
<string>e010=42</string>
<string>e022=43</string>
<string>e019=44</string>
<string>e02e=57</string>
<string>e030=58</string>
<string>;The following 12 items map fkeys to Fn+fkeys</string>
<string>3b=e06e;Map vidmirror key to f1</string>
<string>3c=e0f0;Map radio toggle action from EC query to f2</string>
<string>3d=e037;Map touchpad toggle button to f3</string>
<string>3e=e0f2;Map acpi RKA2 to f4 brightness down</string>
<string>3f=e0f1;Map acpi RKA1 to f5 brightness up</string>
<string>40=e0f3;Map acpi RKA3 to f6 keyboard backlight</string>
<string>;Fn+f7 no macro</string>
<string>42=e010</string>
<string>43=e022</string>
<string>44=e019</string>
<string>57=e02e</string>
<string>58=e030</string>
</array>
<key>Function Keys Standard</key>
<array>
<string>;The following 12 items map Fn+fkeys to Fn+fkeys</string>
<string>e06e=e06e;Fn+f1 macro translated</string>
<string>e008=e008;Fn+f2 regular scancode and EC query call q8c</string>
<string>e01e=e037;Fn+f3 regular scancode and EC controls LED</string>
<string>e005=e005;Fn+f4 no ps2scancode and EC query call q81</string>
<string>e006=e006;Fn+f5 no ps2scancode and EC query call q80</string>
<string>e00c=e00c;Fn+f6 no ps2scancode and EC query call q8a</string>
<string>;Fn+f7 no macro just regular f key</string>
<string>e010=e010; Fn+f8 regular scancode</string>
<string>e022=e022; Fn+f9 regular scancode</string>
<string>e019=e019;Fn+f10 regular scancode</string>
<string>e02e=e02e;Fn+f11 regular scancode</string>
<string>e030=e030;Fn+f12 regular scancode</string>
<string>;Fn+f13 is mute dedicated button that always produces e020 regardless of Fn</string>
<string>;The following 12 items map fkeys to fkeys</string>
<string>3b=3b</string>
<string>3c=3c</string>
<string>3d=3d</string>
<string>3e=3e</string>
<string>3f=3f</string>
<string>40=40</string>
<string>41=41</string>
<string>42=42</string>
<string>43=43</string>
<string>44=44</string>
<string>57=57</string>
<string>58=58</string>
</array>
<key>Macro Inversion</key>
<array>
<string>;This section maps ps2 codes (packet format) received quickly (macros) into fake ps2 codes (packet format)</string>
<string>;Fn+F1</string>
<data>
//8CbgAAAAACWwEZ
</data>
<data>
//8C7gAAAAAC2wGZ
</data>
<data>
//8C7gAAAAABmQLb
</data>
</array>
<key>MaximumMacroTime</key>
<integer>35000000</integer>
<key>Note-Author</key>
<string>TimeWalker aka TimeWalker75a</string>
<key>Note-Comment</key>
<string>Keyboard Profile for DELL SandyBridge SecureCore Tiano based laptops (Vostro 3450 & 3750, Inspiron N4110, XPS L502x & L702x & L511z)</string>
</dict>
<key>WN09</key>
<dict>
<key>Breakless PS2</key>
<array>
<string>e01b</string>
<string>e008</string>
<string>e01e</string>
<string>e005</string>
<string>e06e</string>
<string>e006</string>
</array>
<key>Custom ADB Map</key>
<array>
<string>e01b=70</string>
<string>e06e=83</string>
</array>
<key>Custom PS2 Map</key>
<array>
<string>56=2b</string>
<string>29=56</string>
<string>2b=29</string>
<string>e01e=e037</string>
<string>e037=e01e</string>
</array>
</dict>
<key>WN09a</key>
<dict>
<key>Breakless PS2</key>
<array>
<string>e01b</string>
<string>e008</string>
<string>e01e</string>
<string>e005</string>
<string>e06e</string>
<string>e006</string>
</array>
<key>Custom ADB Map</key>
<array>
<string>e01b=70</string>
<string>e06e=83</string>
</array>
<key>Custom PS2 Map</key>
<array>
<string>e01e=e037</string>
<string>e037=e01e</string>
</array>
</dict>
</dict>
<key>Default</key>
<dict>
<key>ActionSwipeDown</key>
<string>3b d, 37 d, 7d d, 7d u, 37 u, 3b u</string>
<key>ActionSwipeLeft</key>
<string>3b d, 37 d, 7b d, 7b u, 37 u, 3b u</string>
<key>ActionSwipeRight</key>
<string>3b d, 37 d, 7c d, 7c u, 37 u, 3b u</string>
<key>ActionSwipeUp</key>
<string>3b d, 37 d, 7e d, 7e u, 37 u, 3b u</string>
<key>Breakless PS2</key>
<array>
<string>;Items must be strings in the form of breaklessscan (in hex)</string>
</array>
<key>Custom ADB Map</key>
<array>
<string>;Items must be strings in the form of scanfrom=adbto (in hex)</string>
</array>
<key>Custom PS2 Map</key>
<array>
<string>;Items must be strings in the form of scanfrom=scanto (in hex)</string>
<string>e027=0;disable discrete fnkeys toggle</string>
<string>e028=0;disable discrete trackpad toggle</string>
</array>
<key>HIDF12EjectDelay</key>
<integer>250</integer>
<key>LogScanCodes</key>
<integer>0</integer>
<key>Make Application key into Apple Fn key</key>
<false/>
<key>Make Application key into right windows</key>
<true/>
<key>Make right modifier keys into Hangul and Hanja</key>
<false/>
<key>SleepPressTime</key>
<integer>0</integer>
<key>Swap capslock and left control</key>
<false/>
<key>Swap command and option</key>
<true/>
<key>Use ISO layout keyboard</key>
<false/>
<key>alt_handler_id</key>
<integer>3</integer>
</dict>
<key>HPQOEM</key>
<dict>
<key>1411</key>
<string>ProBook-102;ProBook 4520s</string>
<key>1619</key>
<string>ProBook-87;ProBook 6560b</string>
<key>161C</key>
<string>ProBook-87;ProBook 8460p</string>
<key>164F</key>
<string>ProBook-87;ProBook 5330m</string>
<key>167C</key>
<string>ProBook-102;ProBook 4530s</string>
<key>167E</key>
<string>ProBook-102;ProBook 4330s</string>
<key>1680</key>
<string>ProBook-102;ProBook 4230s</string>
<key>179B</key>
<string>ProBook-87;ProBook 6470b</string>
<key>179C</key>
<string>ProBook-87;ProBook 6470b</string>
<key>17A9</key>
<string>ProBook-87;ProBook 8570b</string>
<key>17F0</key>
<string>ProBook-102;ProBook 4340s</string>
<key>17F3</key>
<string>ProBook-102;ProBook 4440s</string>
<key>17F6</key>
<string>ProBook-102;ProBook 4540s</string>
<key>1942</key>
<string>ProBook-87;ProBook 450s G1</string>
<key>1949</key>
<string>ProBook-87;ProBook 450s G1</string>
<key>1962</key>
<string>Haswell-Envy;HP Envy 15-j063cl</string>
<key>1963</key>
<string>Haswell-Envy;HP Envy 15-j063cl</string>
<key>1965</key>
<string>Haswell-Envy;HP Envy 17t-j100</string>
<key>1966</key>
<string>Haswell-Envy;HP Envy 17t-j000</string>
<key>198F</key>
<string>ProBook-87;ProBook 450s G0</string>
<key>Haswell-Envy</key>
<dict>
<key>Custom ADB Map</key>
<array>
<string>e019=42;next</string>
<string>e010=4d;previous</string>
</array>
<key>Custom PS2 Map</key>
<array>
<string>e045=e037</string>
<string>e0ab=0;bogus Fn+F2/F3</string>
</array>
</dict>
<key>ProBook-102</key>
<dict>
<key>Function Keys Special</key>
<array>
<string>;The following 12 items map Fn+fkeys to fkeys</string>
<string>e05f=3b</string>
<string>e012=3c</string>
<string>e017=3d</string>
<string>e06e=3e</string>
<string>e00a=3f</string>
<string>e009=40</string>
<string>e020=41</string>
<string>e02e=42</string>
<string>e030=43</string>
<string>e010=44</string>
<string>e022=57</string>
<string>e019=58</string>
<string>;The following 12 items map fkeys to Fn+fkeys</string>
<string>3b=e05f</string>
<string>3c=e012</string>
<string>3d=e017</string>
<string>3e=e06e</string>
<string>3f=e00a</string>
<string>40=e009</string>
<string>41=e020</string>
<string>42=e02e</string>
<string>43=e030</string>
<string>44=e010</string>
<string>57=e022</string>
<string>58=e019</string>
</array>
<key>Function Keys Standard</key>
<array>
<string>;The following 12 items map Fn+fkeys to Fn+fkeys</string>
<string>e05f=e05f</string>
<string>e012=e012</string>
<string>e017=e017</string>
<string>e06e=e06e</string>
<string>e00a=e00a</string>
<string>e009=e009</string>
<string>e020=e020</string>
<string>e02e=e02e</string>
<string>e030=e030</string>
<string>e010=e010</string>
<string>e022=e022</string>
<string>e019=e019</string>
<string>;The following 12 items map fkeys to fkeys</string>
<string>3b=3b</string>
<string>3c=3c</string>
<string>3d=3d</string>
<string>3e=3e</string>
<string>3f=3f</string>
<string>40=40</string>
<string>41=41</string>
<string>42=42</string>
<string>43=43</string>
<string>44=44</string>
<string>57=57</string>
<string>58=58</string>
</array>
<key>SleepPressTime</key>
<integer>3000</integer>
</dict>
<key>ProBook-87</key>
<dict>
<key>Custom ADB Map</key>
<array>
<string>46=4d;scroll => Previous-track</string>
<string>e045=34;pause => Play-Pause</string>
<string>e052=42;insert => Next-track</string>
<string>e046=92;break => Eject</string>
</array>
<key>Function Keys Special</key>
<array>
<string>;The following 8 items map Fn+fkeys to fkeys</string>
<string>e05f=3d</string>
<string>e06e=3e</string>
<string>e02e=40</string>
<string>e030=41</string>
<string>e009=42</string>
<string>e012=43</string>
<string>e017=44</string>
<string>e033=57</string>
<string>;The following 8 items map fkeys to Fn+fkeys</string>
<string>3d=e05f</string>
<string>3e=e06e</string>
<string>40=e02e</string>
<string>41=e030</string>
<string>42=e037</string>
<string>43=e012</string>
<string>44=e017</string>
</array>
<key>Function Keys Standard</key>
<array>
<string>;The following 8 items map Fn+fkeys to Fn+fkeys</string>
<string>e05f=e05f</string>
<string>e06e=e06e</string>
<string>e02e=e02e</string>
<string>e030=e030</string>
<string>e009=e009</string>
<string>e012=e012</string>
<string>e017=e017</string>
<string>e033=e033</string>
<string>;The following 8 items map fkeys to fkeys</string>
<string>3d=3d</string>
<string>3e=3e</string>
<string>40=40</string>
<string>41=41</string>
<string>42=42</string>
<string>43=43</string>
<string>44=44</string>
</array>
<key>SleepPressTime</key>
<integer>3000</integer>
</dict>
</dict>
<key>Intel</key>
<dict>
<key>CALPELLA</key>
<string>SamsungKeys</string>
<key>SamsungKeys</key>
<dict>
<key>Breakless PS2</key>
<array>
<string>e003</string>
<string>e002</string>
<string>e004</string>
<string>e020</string>
<string>;e031</string>
<string>e033</string>
<string>e006</string>
<string>e077</string>
<string>e079</string>
<string>e008</string>
<string>e009</string>
</array>
<key>Custom ADB Map</key>
<array>
<string>e002=70</string>
<string>e006=80</string>
<string>e008=71 (was =90)</string>
<string>e009=6b (was =91)</string>
</array>
<key>Function Keys Special</key>
<array>
<string>;The following 12 items map Fn+fkeys to fkeys</string>
<string>;fn+f1 no code</string>
<string>e003=3c</string>
<string>;fn+f3 weird code</string>
<string>e002=3e</string>
<string>e004=3f</string>
<string>e020=40</string>
<string>e031=41</string>
<string>e033=42</string>
<string>e006=43</string>
<string>;fn+f10 weird code</string>
<string>;fn+f11 no code</string>
<string>;fn+f12 scrolllock</string>
<string>;The following 12 items map fkeys to Fn+fkeys</string>
<string>;fn+f1 no code</string>
<string>3c=e003</string>
<string>;fn+f3 weird code</string>
<string>3e=e002</string>
<string>3f=e004</string>
<string>40=e020</string>
<string>41=e031</string>
<string>42=e033</string>
<string>43=e006</string>
<string>;fn+f10 weird code</string>
<string>;fn+f11 no code</string>
<string>;fn+f12 scrolllock</string>
</array>
<key>Function Keys Standard</key>
<array>
<string>;The following 12 items map Fn+fkeys to Fn+fkeys</string>
<string>;fn+f1 no code</string>
<string>e003=e003</string>
<string>;fn+f3 weird code</string>
<string>e002=e002</string>
<string>e004=e004</string>
<string>e020=e020</string>
<string>e031=e031</string>
<string>e033=e033</string>
<string>e006=e006</string>
<string>;fn+f10 weird code</string>
<string>;fn+f11 no code</string>
<string>;fn+f12 scrolllock</string>
<string>;The following 12 items map fkeys to fkeys</string>
<string>3b=3b</string>
<string>3c=3c</string>
<string>3d=3d</string>
<string>3e=3e</string>
<string>3f=3f</string>
<string>40=40</string>
<string>41=41</string>
<string>42=42</string>
<string>43=43</string>
<string>44=44</string>
<string>57=57</string>
<string>58=58</string>
</array>
</dict>
</dict>
<key>SECCSD</key>
<dict>
<key>LH43STAR</key>
<string>SamsungKeys</string>
<key>SamsungKeys</key>
<dict>
<key>Breakless PS2</key>
<array>
<string>e020</string>
<string>e02e</string>
<string>e030</string>
</array>
</dict>
</dict>
</dict>
</dict>
</dict>
<key>OSBundleLibraries</key>
<dict>
<key>com.apple.iokit.IOHIDSystem</key>
<string>1.1</string>
<key>com.apple.kpi.bsd</key>
<string>8.0.0</string>
<key>com.apple.kpi.iokit</key>
<string>8.0.0</string>
<key>com.apple.kpi.libkern</key>
<string>8.0.0</string>
<key>com.apple.kpi.mach</key>
<string>8.0.0</string>
<key>com.apple.kpi.unsupported</key>
<string>8.0.0</string>
<key>org.rehabman.voodoo.driver.PS2Controller</key>
<string>1.8.25</string>
</dict>
<key>OSBundleRequired</key>
<string>Console</string>
<key>Source Code</key>
<string>path_to_url
</dict>
</plist>
``` | /content/code_sandbox/Clover-Configs/Dell/Dell 7577/CLOVER/kexts/Other/VoodooPS2Controller.kext/Contents/PlugIns/VoodooPS2Keyboard.kext/Contents/Info.plist | xml | 2016-11-05T04:22:54 | 2024-08-12T19:25:53 | Hackintosh-Installer-University | huangyz0918/Hackintosh-Installer-University | 3,937 | 6,854 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<definitions id="definition"
xmlns="path_to_url"
xmlns:xsi="path_to_url"
xmlns:flowable="path_to_url"
targetNamespace="Examples">
<process id="myProcess">
<startEvent id="theStart" />
<sequenceFlow id="flow1" sourceRef="theStart" targetRef="miTasks" />
<userTask id="miTasks" name="My Task" flowable:taskIdVariableName="taskId" flowable:priority="${loopCounter}">
<multiInstanceLoopCharacteristics isSequential="false">
<extensionElements>
<flowable:variableAggregation target="reviews" createOverviewVariable="true">
<variable sourceExpression="${task:get(taskId).assignee}" target="userId" />
<variable source="approved" />
<variable source="description" />
</flowable:variableAggregation>
</extensionElements>
<loopCardinality>${nrOfLoops}</loopCardinality>
</multiInstanceLoopCharacteristics>
</userTask>
<sequenceFlow id="flow4" sourceRef="miTasks" targetRef="afterMiTasks" />
<userTask id="afterMiTasks" />
<sequenceFlow id="flow5" sourceRef="afterMiTasks" targetRef="theEnd" />
<endEvent id="theEnd" />
</process>
</definitions>
``` | /content/code_sandbox/modules/flowable-engine/src/test/resources/org/flowable/engine/test/bpmn/multiinstance/MultiInstanceVariableAggregationTest.testParallelMultiInstanceUserTask.bpmn20.xml | xml | 2016-10-13T07:21:43 | 2024-08-16T15:23:14 | flowable-engine | flowable/flowable-engine | 7,715 | 312 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="12120" systemVersion="16E195" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" colorMatched="NO">
<dependencies>
<deployment identifier="iOS"/>
<development version="7000" identifier="xcode"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12088"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="FTRCollectionViewController">
<connections>
<outlet property="collectionView" destination="peq-Aq-0NN" id="a70-lG-gES"/>
<outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
</connections>
</placeholder>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="i5M-Pr-FkT">
<rect key="frame" x="0.0" y="0.0" width="320" height="480"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<pickerView contentMode="scaleToFill" misplaced="YES" translatesAutoresizingMaskIntoConstraints="NO" id="H9m-aZ-YD6">
<rect key="frame" x="0.0" y="32" width="414" height="62"/>
<accessibility key="accessibilityConfiguration">
<bool key="isElement" value="YES"/>
</accessibility>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="string" keyPath="accessibilityIdentifier" value="layoutPicker"/>
</userDefinedRuntimeAttributes>
<connections>
<outlet property="dataSource" destination="-1" id="2iQ-tX-itT"/>
<outlet property="delegate" destination="-1" id="RZI-PS-JAy"/>
</connections>
</pickerView>
<collectionView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" misplaced="YES" minimumZoomScale="0.0" maximumZoomScale="0.0" dataMode="none" translatesAutoresizingMaskIntoConstraints="NO" id="peq-Aq-0NN">
<rect key="frame" x="12" y="126" width="390" height="602"/>
<collectionViewFlowLayout key="collectionViewLayout" minimumLineSpacing="10" minimumInteritemSpacing="10" id="y5h-eh-czb">
<size key="itemSize" width="50" height="50"/>
<size key="headerReferenceSize" width="0.0" height="0.0"/>
<size key="footerReferenceSize" width="0.0" height="0.0"/>
<inset key="sectionInset" minX="0.0" minY="0.0" maxX="0.0" maxY="0.0"/>
</collectionViewFlowLayout>
<cells/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="string" keyPath="accessibilityIdentifier" value="Alphabets"/>
</userDefinedRuntimeAttributes>
</collectionView>
</subviews>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="peq-Aq-0NN" secondAttribute="trailing" constant="12" id="0qG-8n-iPS"/>
<constraint firstItem="peq-Aq-0NN" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" constant="12" id="E4V-hR-ee5"/>
<constraint firstItem="H9m-aZ-YD6" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="F2Y-ah-3NI"/>
<constraint firstItem="peq-Aq-0NN" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="top" constant="126" id="KDq-yW-nbO"/>
<constraint firstAttribute="trailing" secondItem="H9m-aZ-YD6" secondAttribute="trailing" id="h9A-XK-sgL"/>
<constraint firstAttribute="bottom" secondItem="peq-Aq-0NN" secondAttribute="bottom" constant="8" id="hUc-U6-3GT"/>
<constraint firstItem="peq-Aq-0NN" firstAttribute="top" secondItem="H9m-aZ-YD6" secondAttribute="bottom" constant="32" id="o16-Vs-TJ6"/>
<constraint firstItem="H9m-aZ-YD6" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="top" constant="32" id="r8d-Gw-r23"/>
</constraints>
</view>
</objects>
<simulatedMetricsContainer key="defaultSimulatedMetrics">
<simulatedStatusBarMetrics key="statusBar"/>
<simulatedOrientationMetrics key="orientation"/>
<simulatedScreenMetrics key="destination"/>
</simulatedMetricsContainer>
</document>
``` | /content/code_sandbox/Tests/FunctionalTests/TestRig/Sources/FTRCollectionViewController.xib | xml | 2016-02-04T17:55:29 | 2024-08-08T03:33:02 | EarlGrey | google/EarlGrey | 5,612 | 1,231 |
```xml
import { checkPermission } from "@erxes/api-utils/src/permissions";
import { ITopic } from "../../models/definitions/knowledgebase";
import { IArticleCreate, ICategoryCreate } from "../../models/KnowledgeBase";
import { putCreateLog, putDeleteLog, putUpdateLog } from "../../logUtils";
import { MODULE_NAMES } from "../../constants";
import { IContext } from "../../connectionResolver";
import { sendCoreMessage } from "../../messageBroker";
import { stripHtml } from "@erxes/api-utils/src/core";
const knowledgeBaseMutations = {
/**
* Creates a topic document
*/
async knowledgeBaseTopicsAdd(
_root,
{ doc }: { doc: ITopic },
{ user, docModifier, models, subdomain }: IContext
) {
const topic = await models.KnowledgeBaseTopics.createDoc(
docModifier(doc),
user._id
);
await putCreateLog(
models,
subdomain,
{
type: MODULE_NAMES.KB_TOPIC,
newData: {
...doc,
createdBy: user._id,
createdDate: topic.createdDate
},
object: topic
},
user
);
return topic;
},
/**
* Updates a topic document
*/
async knowledgeBaseTopicsEdit(
_root,
{ _id, doc }: { _id: string; doc: ITopic },
{ user, models, subdomain }: IContext
) {
const topic = await models.KnowledgeBaseTopics.getTopic(_id);
const updated = await models.KnowledgeBaseTopics.updateDoc(
_id,
doc,
user._id
);
await putUpdateLog(
models,
subdomain,
{
type: MODULE_NAMES.KB_TOPIC,
object: topic,
newData: {
...doc,
modifiedBy: user._id,
modifiedDate: updated.modifiedDate
},
updatedDocument: updated
},
user
);
return updated;
},
/**
* Remove topic document
*/
async knowledgeBaseTopicsRemove(
_root,
{ _id }: { _id: string },
{ user, models, subdomain }: IContext
) {
const topic = await models.KnowledgeBaseTopics.getTopic(_id);
const removed = await models.KnowledgeBaseTopics.removeDoc(_id);
await putDeleteLog(
models,
subdomain,
{ type: MODULE_NAMES.KB_TOPIC, object: topic },
user
);
return removed;
},
/**
* Create category document
*/
async knowledgeBaseCategoriesAdd(
_root,
{ doc }: { doc: ICategoryCreate },
{ user, models, subdomain }: IContext
) {
const kbCategory = await models.KnowledgeBaseCategories.createDoc(
doc,
user._id
);
await putCreateLog(
models,
subdomain,
{
type: MODULE_NAMES.KB_CATEGORY,
newData: {
...doc,
createdBy: user._id,
createdDate: kbCategory.createdDate
},
object: kbCategory
},
user
);
return kbCategory;
},
/**
* Update category document
*/
async knowledgeBaseCategoriesEdit(
_root,
{ _id, doc }: { _id: string; doc: ICategoryCreate },
{ user, models, subdomain }: IContext
) {
const kbCategory = await models.KnowledgeBaseCategories.getCategory(_id);
const updated = await models.KnowledgeBaseCategories.updateDoc(
_id,
doc,
user._id
);
await putUpdateLog(
models,
subdomain,
{
type: MODULE_NAMES.KB_CATEGORY,
object: kbCategory,
newData: {
...doc,
modifiedBy: user._id,
modifiedDate: updated.modifiedDate
},
updatedDocument: updated
},
user
);
return updated;
},
/**
* Remove category document
*/
async knowledgeBaseCategoriesRemove(
_root,
{ _id }: { _id: string },
{ user, models, subdomain }: IContext
) {
const kbCategory = await models.KnowledgeBaseCategories.getCategory(_id);
await models.KnowledgeBaseCategories.updateMany(
{ parentCategoryId: { $in: [kbCategory._id] } },
{ $unset: { parentCategoryId: 1 } }
);
const removed = await models.KnowledgeBaseCategories.removeDoc(_id);
await putDeleteLog(
models,
subdomain,
{ type: MODULE_NAMES.KB_CATEGORY, object: kbCategory },
user
);
return removed;
},
/**
* Create article document
*/
async knowledgeBaseArticlesAdd(
_root,
{ doc }: { doc: IArticleCreate },
{ user, models, subdomain }: IContext
) {
const kbArticle = await models.KnowledgeBaseArticles.createDoc(
doc,
user._id
);
await putCreateLog(
models,
subdomain,
{
type: MODULE_NAMES.KB_ARTICLE,
newData: {
...doc,
createdBy: user._id,
createdDate: kbArticle.createdDate
},
object: kbArticle
},
user
);
await sendCoreMessage({
subdomain,
action: 'registerOnboardHistory',
data: {
type: 'knowledgeBaseArticleCreate',
user
}
});
const topic = await models.KnowledgeBaseTopics.findOne({
_id: kbArticle.topicId
});
if (topic && topic.notificationSegmentId) {
const userIds = await sendCoreMessage({
subdomain,
action: "fetchSegment",
data: {
segmentId: topic.notificationSegmentId
},
isRPC: true
});
sendCoreMessage({
subdomain,
action: "sendMobileNotification",
data: {
title: doc.title,
body: stripHtml(doc.content),
receivers: userIds.filter((userId) => userId !== user._id),
data: {
type: "knowledge",
id: kbArticle._id
}
}
});
}
return kbArticle;
},
/**
* Update article document
*/
async knowledgeBaseArticlesEdit(
_root,
{ _id, doc }: { _id: string; doc: IArticleCreate },
{ user, models, subdomain }: IContext
) {
const kbArticle = await models.KnowledgeBaseArticles.getArticle(_id);
const updated = await models.KnowledgeBaseArticles.updateDoc(
_id,
doc,
user._id
);
await putUpdateLog(
models,
subdomain,
{
type: MODULE_NAMES.KB_ARTICLE,
object: kbArticle,
newData: {
...doc,
modifiedBy: user._id,
modifiedDate: updated.modifiedDate
},
updatedDocument: updated
},
user
);
return updated;
},
/**
* Remove article document
*/
async knowledgeBaseArticlesRemove(
_root,
{ _id }: { _id: string },
{ user, models, subdomain }: IContext
) {
const kbArticle = await models.KnowledgeBaseArticles.getArticle(_id);
const removed = await models.KnowledgeBaseArticles.removeDoc(_id);
await putDeleteLog(
models,
subdomain,
{ type: MODULE_NAMES.KB_ARTICLE, object: kbArticle },
user
);
return removed;
}
};
checkPermission(
knowledgeBaseMutations,
"knowledgeBaseTopicsAdd",
"manageKnowledgeBase"
);
checkPermission(
knowledgeBaseMutations,
"knowledgeBaseTopicsEdit",
"manageKnowledgeBase"
);
checkPermission(
knowledgeBaseMutations,
"knowledgeBaseTopicsRemove",
"manageKnowledgeBase"
);
checkPermission(
knowledgeBaseMutations,
"knowledgeBaseCategoriesAdd",
"manageKnowledgeBase"
);
checkPermission(
knowledgeBaseMutations,
"knowledgeBaseCategoriesEdit",
"manageKnowledgeBase"
);
checkPermission(
knowledgeBaseMutations,
"knowledgeBaseCategoriesRemove",
"manageKnowledgeBase"
);
checkPermission(
knowledgeBaseMutations,
"knowledgeBaseArticlesAdd",
"manageKnowledgeBase"
);
checkPermission(
knowledgeBaseMutations,
"knowledgeBaseArticlesEdit",
"manageKnowledgeBase"
);
checkPermission(
knowledgeBaseMutations,
"knowledgeBaseArticlesRemove",
"manageKnowledgeBase"
);
export default knowledgeBaseMutations;
``` | /content/code_sandbox/packages/plugin-knowledgebase-api/src/graphql/resolvers/knowledgeBaseMutations.ts | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 1,861 |
```xml
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping
PUBLIC "-//Hibernate/Hibernate Mapping DTD//EN"
"path_to_url">
<hibernate-mapping>
<class name="com.journaldev.hibernate.data.Employee" table="employee">
<id name="employeeId" column="EMP_ID" type="long">
<generator class="native" />
</id>
<property name="employeeName" column="EMP_NAME" type="string"/>
<property name="employeeHireDate" column="EMP_HIRE_DATE" type="date"/>
<property name="employeeSalary" column="EMP_SALARY" type="double"/>
</class>
</hibernate-mapping>
``` | /content/code_sandbox/PrimeFaces/Primefaces-Hibernate-Spring-Integration-Sample/src/main/resources/domain-classes.hbm.xml | xml | 2016-05-02T05:43:21 | 2024-08-16T06:51:39 | journaldev | WebJournal/journaldev | 1,314 | 158 |
```xml
import * as React from 'react';
import { useState } from 'react';
import { QueryClient, useIsMutating } from '@tanstack/react-query';
import { CoreAdminContext } from '../core';
import undoableEventEmitter from './undoableEventEmitter';
import { useUpdate } from './useUpdate';
import { useGetOne } from './useGetOne';
export default { title: 'ra-core/dataProvider/useUpdate/undoable' };
export const SuccessCase = ({ timeout = 1000 }) => {
const posts = [{ id: 1, title: 'Hello', author: 'John Doe' }];
const dataProvider = {
getOne: (resource, params) => {
return Promise.resolve({
data: posts.find(p => p.id === params.id),
});
},
update: (resource, params) => {
return new Promise(resolve => {
setTimeout(() => {
const post = posts.find(p => p.id === params.id);
if (post) {
post.title = params.data.title;
}
resolve({ data: post });
}, timeout);
});
},
} as any;
return (
<CoreAdminContext
queryClient={new QueryClient()}
dataProvider={dataProvider}
>
<SuccessCore />
</CoreAdminContext>
);
};
const SuccessCore = () => {
const isMutating = useIsMutating();
const [notification, setNotification] = useState<boolean>(false);
const [success, setSuccess] = useState<string>();
const { data, refetch } = useGetOne('posts', { id: 1 });
const [update, { isPending }] = useUpdate();
const handleClick = () => {
update(
'posts',
{
id: 1,
data: { title: 'Hello World' },
},
{
mutationMode: 'undoable',
onSuccess: () => setSuccess('success'),
}
);
setNotification(true);
};
return (
<>
<dl>
<dt>title</dt>
<dd>{data?.title}</dd>
<dt>author</dt>
<dd>{data?.author}</dd>
</dl>
<div>
{notification ? (
<>
<button
onClick={() => {
undoableEventEmitter.emit('end', {
isUndo: false,
});
setNotification(false);
}}
>
Confirm
</button>
<button
onClick={() => {
undoableEventEmitter.emit('end', {
isUndo: true,
});
setNotification(false);
}}
>
Cancel
</button>
</>
) : (
<button onClick={handleClick} disabled={isPending}>
Update title
</button>
)}
<button onClick={() => refetch()}>Refetch</button>
</div>
{success && <div>{success}</div>}
{isMutating !== 0 && <div>mutating</div>}
</>
);
};
export const ErrorCase = ({ timeout = 1000 }) => {
const posts = [{ id: 1, title: 'Hello', author: 'John Doe' }];
const dataProvider = {
getOne: (resource, params) => {
return Promise.resolve({
data: posts.find(p => p.id === params.id),
});
},
update: () => {
return new Promise((resolve, reject) => {
setTimeout(() => {
reject(new Error('something went wrong'));
}, timeout);
});
},
} as any;
return (
<CoreAdminContext
queryClient={new QueryClient()}
dataProvider={dataProvider}
>
<ErrorCore />
</CoreAdminContext>
);
};
const ErrorCore = () => {
const isMutating = useIsMutating();
const [notification, setNotification] = useState<boolean>(false);
const [success, setSuccess] = useState<string>();
const [error, setError] = useState<any>();
const { data, refetch } = useGetOne('posts', { id: 1 });
const [update, { isPending }] = useUpdate();
const handleClick = () => {
update(
'posts',
{
id: 1,
data: { title: 'Hello World' },
},
{
mutationMode: 'undoable',
onSuccess: () => setSuccess('success'),
onError: e => {
setError(e);
setSuccess('');
},
}
);
setNotification(true);
};
return (
<>
<dl>
<dt>title</dt>
<dd>{data?.title}</dd>
<dt>author</dt>
<dd>{data?.author}</dd>
</dl>
<div>
{notification ? (
<>
<button
onClick={() => {
undoableEventEmitter.emit('end', {
isUndo: false,
});
setNotification(false);
}}
>
Confirm
</button>
<button
onClick={() => {
undoableEventEmitter.emit('end', {
isUndo: true,
});
setNotification(false);
}}
>
Cancel
</button>
</>
) : (
<button onClick={handleClick} disabled={isPending}>
Update title
</button>
)}
<button onClick={() => refetch()}>Refetch</button>
</div>
{success && <div>{success}</div>}
{error && <div>{error.message}</div>}
{isMutating !== 0 && <div>mutating</div>}
</>
);
};
export const WithMiddlewaresSuccess = ({ timeout = 1000 }) => {
const posts = [{ id: 1, title: 'Hello', author: 'John Doe' }];
const dataProvider = {
getOne: (resource, params) => {
return Promise.resolve({
data: posts.find(p => p.id === params.id),
});
},
update: (resource, params) => {
return new Promise(resolve => {
setTimeout(() => {
const post = posts.find(p => p.id === params.id);
if (post) {
post.title = params.data.title;
}
resolve({ data: post });
}, timeout);
});
},
} as any;
return (
<CoreAdminContext
queryClient={new QueryClient()}
dataProvider={dataProvider}
>
<WithMiddlewaresCore />
</CoreAdminContext>
);
};
const WithMiddlewaresCore = () => {
const isMutating = useIsMutating();
const [notification, setNotification] = useState<boolean>(false);
const [success, setSuccess] = useState<string>();
const { data, refetch } = useGetOne('posts', { id: 1 });
const [update, { isPending }] = useUpdate(
'posts',
{
id: 1,
data: { title: 'Hello World' },
},
{
mutationMode: 'undoable',
// @ts-ignore
getMutateWithMiddlewares: mutate => async (resource, params) => {
return mutate(resource, {
...params,
data: { title: `${params.data.title} from middleware` },
});
},
}
);
const handleClick = () => {
update(
'posts',
{
id: 1,
data: { title: 'Hello World' },
},
{
onSuccess: () => setSuccess('success'),
}
);
setNotification(true);
};
return (
<>
<dl>
<dt>title</dt>
<dd>{data?.title}</dd>
<dt>author</dt>
<dd>{data?.author}</dd>
</dl>
<div>
{notification ? (
<>
<button
onClick={() => {
undoableEventEmitter.emit('end', {
isUndo: false,
});
setNotification(false);
}}
>
Confirm
</button>
<button
onClick={() => {
undoableEventEmitter.emit('end', {
isUndo: true,
});
setNotification(false);
}}
>
Cancel
</button>
</>
) : (
<button onClick={handleClick} disabled={isPending}>
Update title
</button>
)}
<button onClick={() => refetch()}>Refetch</button>
</div>
{success && <div>{success}</div>}
{isMutating !== 0 && <div>mutating</div>}
</>
);
};
export const WithMiddlewaresError = ({ timeout = 1000 }) => {
const posts = [{ id: 1, title: 'Hello', author: 'John Doe' }];
const dataProvider = {
getOne: (resource, params) => {
return Promise.resolve({
data: posts.find(p => p.id === params.id),
});
},
update: () => {
return new Promise((resolve, reject) => {
setTimeout(() => {
reject(new Error('something went wrong'));
}, timeout);
});
},
} as any;
return (
<CoreAdminContext
queryClient={new QueryClient()}
dataProvider={dataProvider}
>
<WithMiddlewaresErrorCore />
</CoreAdminContext>
);
};
const WithMiddlewaresErrorCore = () => {
const isMutating = useIsMutating();
const [notification, setNotification] = useState<boolean>(false);
const [success, setSuccess] = useState<string>();
const [error, setError] = useState<any>();
const { data, refetch } = useGetOne('posts', { id: 1 });
const [update, { isPending }] = useUpdate(
'posts',
{
id: 1,
data: { title: 'Hello World' },
},
{
mutationMode: 'undoable',
// @ts-ignore
getMutateWithMiddlewares: mutate => async (resource, params) => {
return mutate(resource, {
...params,
data: { title: `${params.data.title} from middleware` },
});
},
}
);
const handleClick = () => {
update(
'posts',
{
id: 1,
data: { title: 'Hello World' },
},
{
onSuccess: () => setSuccess('success'),
onError: e => {
setError(e);
setSuccess('');
},
}
);
setNotification(true);
};
return (
<>
<dl>
<dt>title</dt>
<dd>{data?.title}</dd>
<dt>author</dt>
<dd>{data?.author}</dd>
</dl>
<div>
{notification ? (
<>
<button
onClick={() => {
undoableEventEmitter.emit('end', {
isUndo: false,
});
setNotification(false);
}}
>
Confirm
</button>
<button
onClick={() => {
undoableEventEmitter.emit('end', {
isUndo: true,
});
setNotification(false);
}}
>
Cancel
</button>
</>
) : (
<button onClick={handleClick} disabled={isPending}>
Update title
</button>
)}
<button onClick={() => refetch()}>Refetch</button>
</div>
{success && <div>{success}</div>}
{error && <div>{error.message}</div>}
{isMutating !== 0 && <div>mutating</div>}
</>
);
};
``` | /content/code_sandbox/packages/ra-core/src/dataProvider/useUpdate.undoable.stories.tsx | xml | 2016-07-13T07:58:54 | 2024-08-16T18:32:27 | react-admin | marmelab/react-admin | 24,624 | 2,559 |
```xml
import {Injectable, Opts, UseOpts} from "@tsed/di";
@Injectable()
class MyConfigurableService {
source: string;
constructor(@Opts options: any = {}) {
console.log("Hello ", options.source); // log: Hello Service1 then Hello Service2
this.source = options.source;
}
}
@Injectable()
class MyService1 {
constructor(@UseOpts({source: "Service1"}) service: MyConfigurableService) {
console.log(service.source); // log: Service1
}
}
@Injectable()
class MyService2 {
constructor(@UseOpts({source: "Service2"}) service: MyConfigurableService) {
console.log(service.source); // log: Service2
}
}
``` | /content/code_sandbox/docs/docs/snippets/providers/configurable-provider.ts | xml | 2016-02-21T18:38:47 | 2024-08-14T21:19:48 | tsed | tsedio/tsed | 2,817 | 156 |
```xml
import { Localized } from "@fluent/react/compat";
import React, { FunctionComponent, useCallback, useState } from "react";
import { graphql } from "react-relay";
import { useMutation, withFragmentContainer } from "coral-framework/lib/relay";
import { GQLFEATURE_FLAG, GQLSTORY_MODE } from "coral-framework/schema";
import { CheckCircleIcon, SvgIcon } from "coral-ui/components/icons";
import { HorizontalRule } from "coral-ui/components/v2";
import { CallOut } from "coral-ui/components/v3";
import { QAConfigContainer_settings } from "coral-stream/__generated__/QAConfigContainer_settings.graphql";
import { QAConfigContainer_story } from "coral-stream/__generated__/QAConfigContainer_story.graphql";
import DisableQA from "./DisableQA";
import EnableQA from "./EnableQA";
import UpdateStoryModeMutation from "./UpdateStoryModeMutation";
import styles from "./QAConfigContainer.css";
interface Props {
story: QAConfigContainer_story;
settings: QAConfigContainer_settings;
}
const QAConfigContainer: FunctionComponent<Props> = ({ story, settings }) => {
const [waiting, setWaiting] = useState(false);
const updateStoryMode = useMutation(UpdateStoryModeMutation);
const [showSuccess, setShowSuccess] = useState(false);
const handleOnClick = useCallback(async () => {
if (!waiting) {
setWaiting(true);
if (story.settings.mode === GQLSTORY_MODE.COMMENTS) {
await updateStoryMode({ storyID: story.id, mode: GQLSTORY_MODE.QA });
} else {
await updateStoryMode({
storyID: story.id,
mode: GQLSTORY_MODE.COMMENTS,
});
}
setWaiting(false);
setShowSuccess(true);
}
}, [waiting, setWaiting, story, updateStoryMode, setShowSuccess]);
const closeSuccess = useCallback(() => {
setShowSuccess(false);
}, [setShowSuccess]);
const isQA = story.settings.mode === GQLSTORY_MODE.QA;
// Check if we're allowed to show Q&A based on feature flags
if (!settings.featureFlags.includes(GQLFEATURE_FLAG.ENABLE_QA)) {
return null;
}
return isQA ? (
<section aria-labelledby="configure-disableQA-title">
<HorizontalRule />
<DisableQA
storyID={story.id}
onClick={handleOnClick}
disableButton={waiting}
/>
<div
className={showSuccess ? styles.calloutVisible : styles.calloutHidden}
>
{showSuccess && (
<CallOut
color="success"
icon={<SvgIcon Icon={CheckCircleIcon} />}
titleWeight="semiBold"
title={
<Localized id="configure-disableQA-streamIsNowQA">
<span>This stream is now in Q&A format</span>
</Localized>
}
onClose={closeSuccess}
visible={showSuccess}
aria-live="polite"
/>
)}
</div>
</section>
) : (
<section aria-labelledby="configure-enableQA-title">
<HorizontalRule />
<EnableQA onClick={handleOnClick} disableButton={waiting} />
<div
className={showSuccess ? styles.calloutVisible : styles.calloutHidden}
>
{showSuccess && (
<CallOut
color="success"
icon={<SvgIcon Icon={CheckCircleIcon} />}
titleWeight="semiBold"
title={
<Localized id="configure-enableQA-streamIsNowComments">
<span>This stream is now in comments format</span>
</Localized>
}
onClose={closeSuccess}
visible={showSuccess}
aria-live="polite"
/>
)}
</div>
</section>
);
};
const enhanced = withFragmentContainer<Props>({
story: graphql`
fragment QAConfigContainer_story on Story {
id
settings {
mode
}
}
`,
settings: graphql`
fragment QAConfigContainer_settings on Settings {
featureFlags
}
`,
})(QAConfigContainer);
export default enhanced;
``` | /content/code_sandbox/client/src/core/client/stream/tabs/Configure/Q&A/QAConfigContainer.tsx | xml | 2016-10-31T16:14:05 | 2024-08-06T16:15:57 | talk | coralproject/talk | 1,881 | 877 |
```xml
export * from 'rxjs-compat/operators/bufferCount';
``` | /content/code_sandbox/deps/node-10.15.3/tools/node_modules/eslint/node_modules/rxjs/operators/bufferCount.d.ts | xml | 2016-09-05T10:18:44 | 2024-08-11T13:21:40 | LiquidCore | LiquidPlayer/LiquidCore | 1,010 | 13 |
```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.
//
import * as path from 'path';
import { bot, SharedConstants } from '@bfemulator/app-shared';
import * as BotActions from '@bfemulator/app-shared/built/state/actions/botActions';
import {
BotConfigWithPathImpl,
CommandRegistry,
CommandServiceImpl,
CommandServiceInstance,
} from '@bfemulator/sdk-shared';
import { BotConfiguration } from 'botframework-config';
import { ServiceTypes } from 'botframework-config/lib/schema';
import { combineReducers, createStore } from 'redux';
import { RootState, store } from '../state/store';
import { BotHelpers } from '../botHelpers';
import { Emulator } from '../emulator';
import { botProjectFileWatcher, chatWatcher, transcriptsWatcher } from '../watchers';
import { TelemetryService } from '../telemetry';
import { CredentialManager } from '../credentialManager';
import { BotCommands } from './botCommands';
const mockBotConfig = BotConfiguration;
let mockStore;
(store as any).getStore = function() {
return mockStore || (mockStore = createStore(combineReducers({ bot })));
};
const mockBot = BotConfigWithPathImpl.fromJSON({
path: path.normalize('some/path.bot'),
name: 'AuthBot',
description: '',
padlock: '',
services: [
{
appId: '4f8fde3f-48d3-4d8a-a954-393efe39809e',
id: 'cded37c0-83f2-11e8-ac6d-b7172cd24b28',
type: 'endpoint',
appPassword: 'REDACTED',
endpoint: 'path_to_url
name: 'authsample',
},
],
} as any);
jest.mock('../botHelpers', () => ({
BotHelpers: {
saveBot: async () => void 0,
toSavableBot: () => mockBotConfig.fromJSON(mockBot),
patchBotsJson: async () => true,
pathExistsInRecentBots: () => true,
getBotInfoByPath: () => ({ secret: 'secret' }),
loadBotWithRetry: () => mockBot,
getActiveBot: () => mockBot,
removeBotFromList: async () => true,
},
}));
jest.mock('electron', () => ({
ipcMain: new Proxy(
{},
{
get(): any {
return () => ({});
},
has() {
return true;
},
}
),
ipcRenderer: new Proxy(
{},
{
get(): any {
return () => ({});
},
has() {
return true;
},
}
),
}));
jest.mock('../utils/ensureStoragePath', () => ({
ensureStoragePath: () => '',
}));
const mockEmulator = {
server: {
state: {
endpoints: {
clear: jest.fn(),
set: jest.fn(),
},
},
},
};
jest.mock('../emulator', () => ({
Emulator: {
getInstance: () => mockEmulator,
},
}));
jest.mock('../main', () => ({
mainWindow: {
commandService: {
call: async () => true,
remoteCall: async () => true,
},
},
emulatorApplication: {
mainBrowserWindow: {
webContents: {
send: () => null,
},
},
},
}));
const mockOn = { on: () => mockOn, close: () => void 0 };
jest.mock('chokidar', () => ({
watch: () => ({
on: () => mockOn,
}),
}));
const { Bot } = SharedConstants.Commands;
describe('The botCommands', () => {
let mockTrackEvent;
const trackEventBackup = TelemetryService.trackEvent;
let registry: CommandRegistry;
let commandService: CommandServiceImpl;
beforeAll(() => {
new BotCommands();
const decorator = CommandServiceInstance();
const descriptor = decorator({ descriptor: {} }, 'none') as any;
commandService = descriptor.descriptor.get();
commandService.remoteCall = () => Promise.resolve(true) as any;
registry = commandService.registry;
});
beforeEach(() => {
mockTrackEvent = jest.fn(() => Promise.resolve());
TelemetryService.trackEvent = mockTrackEvent;
});
afterAll(() => {
TelemetryService.trackEvent = trackEventBackup;
});
it('should create/save a new bot', async () => {
const botToSave = BotConfigWithPathImpl.fromJSON(mockBot as any);
const patchBotInfoSpy = jest.spyOn(BotHelpers, 'patchBotsJson');
const saveBotSpy = jest.spyOn(BotHelpers, 'saveBot');
const setPasswordSpy = jest.spyOn(CredentialManager, 'setPassword').mockResolvedValueOnce(null);
const mockBotInfo = {
path: path.normalize(botToSave.path),
displayName: 'AuthBot',
chatsPath: path.normalize('some/dialogs'),
transcriptsPath: path.normalize('some/transcripts'),
};
const command = registry.getCommand(Bot.Create);
const result = await command(botToSave, 'secret');
expect(patchBotInfoSpy).toHaveBeenCalledWith(botToSave.path, mockBotInfo);
expect(saveBotSpy).toHaveBeenCalledWith(botToSave, 'secret');
expect(result).toEqual(botToSave);
expect(mockTrackEvent).toHaveBeenCalledWith('bot_create', {
path: mockBotInfo.path,
hasSecret: true,
});
expect(setPasswordSpy).toHaveBeenCalledWith(mockBotInfo.path, 'secret');
});
it('should open a bot and set the default transcript and chat path if none exists', async () => {
const mockBotInfo = {
secret: 'secret',
transcriptsPath: '',
chatsPath: '',
};
const patchBotsJsonSpy = jest.spyOn(BotHelpers, 'patchBotsJson');
const pathExistsInRecentBotsSpy = jest.spyOn(BotHelpers, 'pathExistsInRecentBots').mockReturnValue(true);
const getBotInfoByPathSpy = jest.spyOn(BotHelpers, 'getBotInfoByPath').mockReturnValue(mockBotInfo);
const loadBotWithRetrySpy = jest.spyOn(BotHelpers, 'loadBotWithRetry').mockResolvedValue(mockBot);
const command = registry.getCommand(Bot.Open);
const botPath = path.normalize('bot/path');
const result = await command(botPath, 'secret');
expect(pathExistsInRecentBotsSpy).toHaveBeenCalledWith(botPath);
expect(getBotInfoByPathSpy).toHaveBeenCalledWith(botPath);
expect(loadBotWithRetrySpy).toHaveBeenCalledWith(botPath, 'secret');
expect(patchBotsJsonSpy).toHaveBeenCalledWith(botPath, {
secret: 'secret',
transcriptsPath: path.normalize('bot/transcripts'),
chatsPath: path.normalize('bot/dialogs'),
});
expect(result).toEqual(mockBot);
expect(mockBotInfo.transcriptsPath).toBe(path.normalize('bot/transcripts'));
expect(mockBotInfo.chatsPath).toBe(path.normalize('bot/dialogs'));
});
it('should set the active bot', async () => {
const botProjectFileWatcherSpy = jest.spyOn(botProjectFileWatcher, 'watch');
const commandServiceSpy = jest.spyOn(commandService, 'call');
const command = registry.getCommand(Bot.SetActive);
const result = await command(mockBot);
expect(botProjectFileWatcherSpy).toHaveBeenCalledWith(mockBot.path);
expect(commandServiceSpy).toHaveBeenCalledWith(Bot.RestartEndpointService);
const state: RootState = store.getState();
expect(state.bot.activeBot).toEqual(mockBot);
expect(state.bot.currentBotDirectory).toBe('some');
expect(result).toEqual('some');
});
it('should restart the endpoint service', async () => {
const emulator = Emulator.getInstance();
store.dispatch(BotActions.setActive(mockBot));
const clearSpy = jest.spyOn(emulator.server.state.endpoints, 'clear');
const setSpy = jest.spyOn(emulator.server.state.endpoints, 'set');
const command = registry.getCommand(Bot.RestartEndpointService);
const result = await command();
expect(clearSpy).toHaveBeenCalled();
expect(setSpy).toHaveBeenCalled();
expect(result).toBeUndefined();
});
it('should add or update the service as expected', async () => {
const serviceToSave = mockBot.services[0];
serviceToSave.name = 'A new Name';
serviceToSave.id = '';
const remoteCallSpy = jest.spyOn(commandService, 'remoteCall');
const command = registry.getCommand(Bot.AddOrUpdateService);
await command(serviceToSave.type, serviceToSave);
const savedBot = mockBotConfig.fromJSON(store.getState().bot.activeBot);
expect(savedBot.services[0]).toEqual(serviceToSave);
expect(serviceToSave.id).not.toEqual('');
expect(remoteCallSpy).toHaveBeenCalledWith(SharedConstants.Commands.Bot.SetActive, savedBot, savedBot.getPath());
});
it('should throw when updating a service fails', async () => {
const serviceToUpdate = mockBot.services[0];
jest.spyOn(store, 'dispatch').mockImplementationOnce(() => {
throw new Error('');
});
const handler = registry.getCommand(Bot.AddOrUpdateService);
let threw = false;
try {
await handler(serviceToUpdate.type, serviceToUpdate);
} catch (e) {
threw = true;
}
jest.restoreAllMocks();
expect(threw).toBeTruthy();
});
it('should throw when saving a new service and the service types do not match', async () => {
const serviceToSave = JSON.parse(JSON.stringify(mockBot.services[0]));
serviceToSave.id = null;
serviceToSave.type = ServiceTypes.AppInsights;
const handler = registry.getCommand(Bot.AddOrUpdateService);
let threw = false;
try {
await handler(ServiceTypes.Luis, serviceToSave);
} catch (e) {
threw = true;
expect(e.message).toEqual('serviceType does not match');
}
expect(threw).toBeTruthy();
});
it('should remove a service as expected', async () => {
const serviceToRemove = mockBot.services[0];
const remoteCallSpy = jest.spyOn(commandService, 'remoteCall');
const handler = registry.getCommand(Bot.RemoveService);
await handler(serviceToRemove.type, serviceToRemove.id);
const savedBot = mockBotConfig.fromJSON(store.getState().bot.activeBot);
expect(savedBot.services.length).toBe(0);
expect(remoteCallSpy).toHaveBeenCalledWith(SharedConstants.Commands.Bot.SetActive, savedBot, savedBot.getPath());
});
it('should throw when removing a service fails', async () => {
const serviceToRemove = mockBot.services[0];
jest.spyOn(store, 'dispatch').mockImplementationOnce(() => {
throw new Error('');
});
const handler = registry.getCommand(Bot.RemoveService);
let threw = false;
try {
await handler(serviceToRemove.type, serviceToRemove.id);
} catch (e) {
threw = true;
}
jest.restoreAllMocks();
expect(threw).toBeTruthy();
});
it('should patch the bots list and watch for chat and transcript changes', async () => {
const mockBotInfo = {
path: path.normalize('this/is/my.json'),
displayName: 'AuthBot',
secret: 'secret',
};
const transcriptWatchSpy = jest.spyOn(transcriptsWatcher, 'watch');
const chatWatcherSpy = jest.spyOn(chatWatcher, 'watch');
const handler = registry.getCommand(SharedConstants.Commands.Bot.PatchBotList);
await handler(mockBotInfo.path, mockBotInfo);
expect(transcriptWatchSpy).toHaveBeenCalledWith(path.normalize('this/is/transcripts'));
expect(chatWatcherSpy).toHaveBeenCalledWith(path.normalize('this/is/dialogs'));
});
it('should remove a bot from the list', async () => {
const callSpy = jest.spyOn(commandService, 'call').mockResolvedValue(true);
const handler = registry.getCommand(SharedConstants.Commands.Bot.RemoveFromBotList);
const removeBotFromListSpy = jest.spyOn(BotHelpers, 'removeBotFromList').mockResolvedValue(true);
await handler('some/bot/path.json');
expect(callSpy).toHaveBeenCalledWith('shell:showExplorer-message-box', true, {
buttons: ['Cancel', 'OK'],
cancelId: 0,
defaultId: 1,
message: 'Remove Bot some/bot/path.json from bots list. Are you sure?',
type: 'question',
});
expect(removeBotFromListSpy).toHaveBeenCalledWith('some/bot/path.json');
});
it('should close the bot', async () => {
const handler = registry.getCommand(SharedConstants.Commands.Bot.Close);
const dispatchSpy = jest.spyOn(store, 'dispatch');
await handler();
expect(dispatchSpy).toHaveBeenCalledWith(BotActions.closeBot());
});
});
``` | /content/code_sandbox/packages/app/main/src/commands/botCommands.spec.ts | xml | 2016-11-11T23:15:09 | 2024-08-16T12:45:29 | BotFramework-Emulator | microsoft/BotFramework-Emulator | 1,803 | 2,987 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>FolderBinder</class>
<widget class="QWidget" name="FolderBinder">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>392</width>
<height>99</height>
</rect>
</property>
<property name="focusPolicy">
<enum>Qt::StrongFocus</enum>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<property name="spacing">
<number>5</number>
</property>
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QLabel" name="lLocalFolder">
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="text">
<string>Local folder:</string>
</property>
<property name="alignment">
<set>Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft</set>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="hMegaFolder">
<property name="spacing">
<number>10</number>
</property>
<item>
<widget class="QLineEdit" name="eLocalFolder">
<property name="enabled">
<bool>true</bool>
</property>
<property name="minimumSize">
<size>
<width>300</width>
<height>23</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>23</height>
</size>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="accessibleName">
<string>Local folder:</string>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="bLocalFolder">
<property name="text">
<string>Select</string>
</property>
<property name="autoDefault">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QLabel" name="lMegaFolder">
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="text">
<string>MEGA folder:</string>
</property>
<property name="alignment">
<set>Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft</set>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="hLocalFolder">
<property name="spacing">
<number>10</number>
</property>
<item>
<widget class="QLineEdit" name="eMegaFolder">
<property name="enabled">
<bool>true</bool>
</property>
<property name="minimumSize">
<size>
<width>300</width>
<height>23</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>23</height>
</size>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="accessibleName">
<string>MEGA folder:</string>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="bMegaFolder">
<property name="enabled">
<bool>true</bool>
</property>
<property name="text">
<string>Select</string>
</property>
<property name="autoDefault">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<tabstops>
<tabstop>eLocalFolder</tabstop>
<tabstop>bLocalFolder</tabstop>
<tabstop>eMegaFolder</tabstop>
<tabstop>bMegaFolder</tabstop>
</tabstops>
<resources/>
<connections/>
</ui>
``` | /content/code_sandbox/src/MEGASync/syncs/gui/Twoways/linux/FolderBinder.ui | xml | 2016-02-10T18:28:05 | 2024-08-16T19:36:44 | MEGAsync | meganz/MEGAsync | 1,593 | 1,098 |
```xml
import { exists } from 'async-file'
import { Subject } from 'await-notify'
import { ChildProcess, spawn } from 'child_process'
import * as net from 'net'
import * as path from 'path'
import { uuid } from 'uuidv4'
import * as vscode from 'vscode'
import {
CancellationToken,
createMessageConnection,
MessageConnection,
NotificationType,
RequestType,
StreamMessageReader,
StreamMessageWriter
} from 'vscode-jsonrpc/node'
import { getAbsEnvPath } from '../jlpkgenv'
import { JuliaExecutable } from '../juliaexepath'
import { getCrashReportingPipename, handleNewCrashReportFromException } from '../telemetry'
import { generatePipeName, inferJuliaNumThreads } from '../utils'
import { JuliaNotebookFeature } from './notebookFeature'
import { DebugConfigTreeProvider } from '../debugger/debugConfig'
const notifyTypeDisplay = new NotificationType<{
items: { mimetype: string; data: string }[]
}>('notebook/display')
const notifyTypeStreamoutput = new NotificationType<{
name: string
data: string
}>('streamoutput')
const requestTypeRunCell = new RequestType<
{ filename: string; line: number; column: number; code: string },
{ success: boolean; error: { message: string; name: string; stack: string } },
void
>('notebook/runcell')
// function getDisplayPathName(pathValue: string): string {
// return pathValue.startsWith(homedir()) ? `~${path.relative(homedir(), pathValue)}` : pathValue
// }
export class JuliaKernel {
private _localDisposables: vscode.Disposable[] = []
private _scheduledExecutionRequests: vscode.NotebookCellExecution[] = []
private _currentExecutionRequest: vscode.NotebookCellExecution = null
private _processExecutionRequests = new Subject()
private _kernelProcess: ChildProcess
public _msgConnection: MessageConnection
private _current_request_id: number = 0
private _onCellRunFinished = new vscode.EventEmitter<void>()
public onCellRunFinished = this._onCellRunFinished.event
private _onConnected = new vscode.EventEmitter<void>()
public onConnected = this._onConnected.event
private _onStopped = new vscode.EventEmitter<void>()
public onStopped = this._onStopped.event
private _tokenSource = new vscode.CancellationTokenSource()
private debuggerPipename: string | null
public activeDebugSession: vscode.DebugSession | null
public stopDebugSessionAfterExecution: boolean
constructor(
private extensionPath: string,
public controller: vscode.NotebookController,
public notebook: vscode.NotebookDocument,
public juliaExecutable: JuliaExecutable,
private outputChannel: vscode.OutputChannel,
private notebookFeature: JuliaNotebookFeature,
private compiledProvider: DebugConfigTreeProvider
) {
this.run(this._tokenSource.token)
}
public dispose() {
this.stop()
this._localDisposables.forEach((d) => d.dispose())
}
public mapCellToPath(uri: string) {
const cellUri = vscode.Uri.parse(uri, true)
// find cell in document by matching its URI
const cell = this.notebook.getCells().find(c => c.document.uri.toString() === uri)
const cellPath = path.join(path.dirname(cellUri.fsPath), `jl_notebook_cell_df34fa98e69747e1a8f8a730347b8e2f_${cellUri.fragment}.jl`)
this.notebookFeature.pathToCell.set(cellPath, cell)
return cellPath
}
public async queueCell(cell: vscode.NotebookCell): Promise<void> {
// First clear output
const clearOutputExecution =
this.controller.createNotebookCellExecution(cell)
clearOutputExecution.start()
await clearOutputExecution.clearOutput()
clearOutputExecution.end(undefined)
// Now create execution object that actually will run the code
const execution = this.controller.createNotebookCellExecution(cell)
execution.token.onCancellationRequested((e) => {
execution.end(undefined)
this.interrupt()
})
this._scheduledExecutionRequests.push(execution)
this._processExecutionRequests.notify()
}
private async messageLoop(token: CancellationToken) {
while (true) {
if (token.isCancellationRequested) {
return
}
while (this._scheduledExecutionRequests.length > 0) {
this._currentExecutionRequest =
this._scheduledExecutionRequests.shift()
if (this._currentExecutionRequest.token.isCancellationRequested) {
console.log('this is cancelled')
} else {
const executionOrder = ++this._current_request_id
this._currentExecutionRequest.executionOrder = executionOrder
const cellPath = this.mapCellToPath(this._currentExecutionRequest.cell.document.uri.toString())
const runStartTime = Date.now()
this._currentExecutionRequest.start(runStartTime)
const result = await this._msgConnection.sendRequest(
requestTypeRunCell,
{
filename: cellPath,
line: 0,
column: 0,
code: this._currentExecutionRequest.cell.document.getText(),
}
)
if(this.stopDebugSessionAfterExecution && this.activeDebugSession) {
vscode.debug.stopDebugging(this.activeDebugSession)
}
if (!result.success) {
this._currentExecutionRequest.appendOutput(
new vscode.NotebookCellOutput([
vscode.NotebookCellOutputItem.error(result.error),
])
)
}
const runEndTime = Date.now()
this._currentExecutionRequest.end(result.success, runEndTime)
}
this._currentExecutionRequest = null
this._onCellRunFinished.fire()
if (token.isCancellationRequested) {
return
}
}
await this._processExecutionRequests.wait()
}
}
public async toggleDebugging() {
if(this.activeDebugSession) {
vscode.debug.stopDebugging(this.activeDebugSession)
}
else {
this.stopDebugSessionAfterExecution = false
await vscode.debug.startDebugging(undefined, {
type: 'julia',
request: 'attach',
name: 'Julia Notebook',
pipename: this.debuggerPipename,
stopOnEntry: false,
compiledModulesOrFunctions: this.compiledProvider.getCompiledItems(),
compiledMode: this.compiledProvider.compiledMode
})
}
}
private async containsJuliaEnv(folder: string) {
return (
((await exists(path.join(folder, 'Project.toml'))) &&
(await exists(path.join(folder, 'Manifest.toml')))) ||
((await exists(path.join(folder, 'JuliaProject.toml'))) &&
(await exists(path.join(folder, 'JuliaManifest.toml'))))
)
}
private async getAbsEnvPathForNotebook() {
if (this.notebook.isUntitled) {
// We don't know the location of the notebook, so just use the default env
return await getAbsEnvPath()
} else {
// First, figure out whether the notebook is in the workspace
if (
this.notebook.uri.scheme === 'file' &&
vscode.workspace.getWorkspaceFolder(this.notebook.uri) !== undefined
) {
let currentFolder = path.dirname(vscode.Uri.parse(this.notebook.uri.toString()).fsPath)
// We run this loop until we are looking at a folder that is no longer part of the workspace
while (
vscode.workspace.getWorkspaceFolder(
vscode.Uri.file(currentFolder)
) !== undefined
) {
if (await this.containsJuliaEnv(currentFolder)) {
return currentFolder
}
currentFolder = path.normalize(path.join(currentFolder, '..'))
}
// We did not find anything in the workspace, so return default
return await getAbsEnvPath()
} else {
// Notebook is not inside the workspace, so just use the default env
return await getAbsEnvPath()
}
}
}
private async getCwdPathForNotebook() {
if (this.notebook.isUntitled) {
if (vscode.workspace.workspaceFolders && vscode.workspace.workspaceFolders.length > 0) {
return vscode.workspace.workspaceFolders[0].uri.fsPath
} else {
return await this.getAbsEnvPathForNotebook()
}
}
if (this.notebook.uri.scheme === 'file') {
return path.dirname(this.notebook.uri.fsPath)
} else {
return await getAbsEnvPath()
}
}
private async run(token: CancellationToken) {
try {
const connectedPromise = new Subject()
const serverListeningPromise = new Subject()
const pn = generatePipeName(uuid(), 'vscjl-nbk')
const server = net.createServer((socket) => {
this._msgConnection = createMessageConnection(
new StreamMessageReader(socket),
new StreamMessageWriter(socket)
)
this._msgConnection.onNotification(notifyTypeDisplay, ({ items }) => {
const execution = this._currentExecutionRequest
if (execution) {
execution.appendOutput(
new vscode.NotebookCellOutput(
items.map((item) => {
if (
item.mimetype === 'image/png' ||
item.mimetype === 'image/jpeg'
) {
return new vscode.NotebookCellOutputItem(
Buffer.from(item.data, 'base64'),
item.mimetype
)
} else if (item.mimetype.endsWith('+json')) {
return vscode.NotebookCellOutputItem.json(
item.data,
item.mimetype
)
} else {
return vscode.NotebookCellOutputItem.text(
item.data,
item.mimetype
)
}
})
)
)
}
})
const outputsPerExecution = new WeakMap<vscode.NotebookCellExecution,{output: vscode.NotebookCellOutput | undefined, name: 'stdout' |'stderr'}>()
this._msgConnection.onNotification(
notifyTypeStreamoutput,
({ name, data }) => {
const execution = this._currentExecutionRequest
if (!execution) {
return
}
if (name === 'stdout' || name === 'stderr') {
// Ensure \r is in a seprate line.
data.split(/(\r)/).forEach((line) => {
const previousOutput = outputsPerExecution.get(this._currentExecutionRequest)
if (previousOutput?.name === name) {
execution.appendOutputItems([vscode.NotebookCellOutputItem[name](line)], previousOutput.output)
} else {
const output = new vscode.NotebookCellOutput([
vscode.NotebookCellOutputItem[name](line),
])
execution.appendOutput([output])
outputsPerExecution.set(this._currentExecutionRequest, {output, name})
}
})
} else {
throw new Error('Unknown stream type.')
}
}
)
this._msgConnection.listen()
this._onConnected.fire(null)
connectedPromise.notify()
})
server.listen(pn, () => {
serverListeningPromise.notify()
})
this.outputChannel.appendLine(`Pre 'await serverListeningPromise.wait()'`)
await serverListeningPromise.wait()
this.outputChannel.appendLine(`Post 'await serverListeningPromise.wait()'`)
const pkgenvpath = await this.getAbsEnvPathForNotebook()
this.outputChannel.appendLine(`Post 'const pkgenvpath = await this.getAbsEnvPathForNotebook()'`)
const cwdPath = await this.getCwdPathForNotebook()
this.outputChannel.appendLine(`Post 'const cwdPath = await this.getCwdPathForNotebook()'`)
const nthreads = inferJuliaNumThreads()
const args = [
'--color=yes',
`--project=${pkgenvpath}`,
'--history-file=no',
]
const env = {
...process.env
}
if (nthreads === 'auto') {
args.push('--threads=auto')
} else {
env['JULIA_NUM_THREADS'] = nthreads
}
this.outputChannel.appendLine(`Now starting the kernel process from the extension with '${this.juliaExecutable.file}', '${args}'.`)
this.debuggerPipename = generatePipeName(uuid(), 'vsc-jl-repldbg')
this.notebookFeature.debugPipenameToKernel.set(this.debuggerPipename, this)
this._kernelProcess = spawn(
this.juliaExecutable.file,
[
...this.juliaExecutable.args,
...args,
path.join(this.extensionPath, 'scripts', 'notebook', 'notebook.jl'),
pn,
this.debuggerPipename,
getCrashReportingPipename(),
],
{
env,
cwd: cwdPath
}
)
this.outputChannel.appendLine('Successfully started the kernel process from the extension.')
const outputChannel = this.outputChannel
this._kernelProcess.stdout.on('data', function (data) {
outputChannel.append(String(data))
})
this._kernelProcess.stderr.on('data', function (data) {
outputChannel.append(String(data))
})
const tokenSource = this._tokenSource
const processExecutionRequests = this._processExecutionRequests
this._kernelProcess.on('close', async (code) => {
tokenSource.cancel()
processExecutionRequests.notify()
this._onCellRunFinished.fire()
this._onStopped.fire(undefined)
outputChannel.appendLine(`Kernel closed with ${code}.`)
this._kernelProcess = undefined
this.dispose()
})
this.outputChannel.appendLine(`Pre 'await connectedPromise.wait()'`)
await connectedPromise.wait()
this.outputChannel.appendLine(`Post 'await connectedPromise.wait()'`)
await this.messageLoop(token)
this._onStopped.fire(undefined)
this.dispose()
}
catch (err) {
handleNewCrashReportFromException(err, 'Extension')
throw (err)
}
}
public async stop() {
if (this._kernelProcess) {
this._kernelProcess.kill()
this._kernelProcess = undefined
}
}
public async restart() {
this.notebookFeature.restart(this)
}
public async interrupt() {
this._kernelProcess?.kill('SIGINT')
}
}
``` | /content/code_sandbox/src/notebook/notebookKernel.ts | xml | 2016-06-21T19:13:54 | 2024-08-14T06:10:47 | julia-vscode | julia-vscode/julia-vscode | 1,277 | 3,060 |
```xml
import { createAction } from 'redux-actions';
import apiClient from '../api/Api';
import { redirectToCurrentProtocol } from '../helpers/helpers';
import { addErrorToast, addSuccessToast } from './toasts';
export const getTlsStatusRequest = createAction('GET_TLS_STATUS_REQUEST');
export const getTlsStatusFailure = createAction('GET_TLS_STATUS_FAILURE');
export const getTlsStatusSuccess = createAction('GET_TLS_STATUS_SUCCESS');
export const getTlsStatus = () => async (dispatch: any) => {
dispatch(getTlsStatusRequest());
try {
const status = await apiClient.getTlsStatus();
status.certificate_chain = atob(status.certificate_chain);
status.private_key = atob(status.private_key);
dispatch(getTlsStatusSuccess(status));
} catch (error) {
dispatch(addErrorToast({ error }));
dispatch(getTlsStatusFailure());
}
};
export const setTlsConfigRequest = createAction('SET_TLS_CONFIG_REQUEST');
export const setTlsConfigFailure = createAction('SET_TLS_CONFIG_FAILURE');
export const setTlsConfigSuccess = createAction('SET_TLS_CONFIG_SUCCESS');
export const dnsStatusSuccess = createAction('DNS_STATUS_SUCCESS');
export const setTlsConfig = (config: any) => async (dispatch: any, getState: any) => {
dispatch(setTlsConfigRequest());
try {
const { httpPort } = getState().dashboard;
const values = { ...config };
values.certificate_chain = btoa(values.certificate_chain);
values.private_key = btoa(values.private_key);
values.port_https = values.port_https || 0;
values.port_dns_over_tls = values.port_dns_over_tls || 0;
values.port_dns_over_quic = values.port_dns_over_quic || 0;
const response = await apiClient.setTlsConfig(values);
response.certificate_chain = atob(response.certificate_chain);
response.private_key = atob(response.private_key);
if (values.enabled && values.force_https && window.location.protocol === 'http:') {
window.location.reload();
return;
}
redirectToCurrentProtocol(response, httpPort);
const dnsStatus = await apiClient.getGlobalStatus();
if (dnsStatus) {
if (dnsStatus.protection_disabled_duration === 0) {
dnsStatus.protection_disabled_duration = null;
}
dispatch(dnsStatusSuccess(dnsStatus));
}
dispatch(setTlsConfigSuccess(response));
dispatch(addSuccessToast('encryption_config_saved'));
} catch (error) {
dispatch(addErrorToast({ error }));
dispatch(setTlsConfigFailure());
}
};
export const validateTlsConfigRequest = createAction('VALIDATE_TLS_CONFIG_REQUEST');
export const validateTlsConfigFailure = createAction('VALIDATE_TLS_CONFIG_FAILURE');
export const validateTlsConfigSuccess = createAction('VALIDATE_TLS_CONFIG_SUCCESS');
export const validateTlsConfig = (config: any) => async (dispatch: any) => {
dispatch(validateTlsConfigRequest());
try {
const values = { ...config };
values.certificate_chain = btoa(values.certificate_chain);
values.private_key = btoa(values.private_key);
values.port_https = values.port_https || 0;
values.port_dns_over_tls = values.port_dns_over_tls || 0;
values.port_dns_over_quic = values.port_dns_over_quic || 0;
const response = await apiClient.validateTlsConfig(values);
response.certificate_chain = atob(response.certificate_chain);
response.private_key = atob(response.private_key);
dispatch(validateTlsConfigSuccess(response));
} catch (error) {
dispatch(addErrorToast({ error }));
dispatch(validateTlsConfigFailure());
}
};
``` | /content/code_sandbox/client/src/actions/encryption.ts | xml | 2016-07-06T10:31:47 | 2024-08-16T18:17:06 | AdGuardHome | AdguardTeam/AdGuardHome | 24,082 | 777 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="path_to_url"
android:id="@+id/month_calendar_holder"
android:layout_width="match_parent"
android:layout_height="match_parent">
<include layout="@layout/top_navigation" />
<com.simplemobiletools.calendar.pro.views.MonthViewWrapper
android:id="@+id/month_view_wrapper"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/top_left_arrow" />
</RelativeLayout>
``` | /content/code_sandbox/app/src/main/res/layout/fragment_month.xml | xml | 2016-01-26T21:02:54 | 2024-08-15T00:35:32 | Simple-Calendar | SimpleMobileTools/Simple-Calendar | 3,512 | 120 |
```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 {Asset} from './Asset';
import {AssetType} from '../../assets/AssetType';
export class Button extends Asset {
constructor(id?: string, text: string = '') {
super(id);
this.type = AssetType.BUTTON;
this.text = text;
}
}
``` | /content/code_sandbox/src/script/entity/message/Button.ts | xml | 2016-07-21T15:34:05 | 2024-08-16T11:40:13 | wire-webapp | wireapp/wire-webapp | 1,125 | 147 |
```xml
<local:ProfileTabPage x:Class="Telegram.Views.Profile.ProfileFilesTabPage"
xmlns="path_to_url"
xmlns:d="path_to_url"
xmlns:x="path_to_url"
xmlns:mc="path_to_url"
xmlns:common="using:Telegram.Common"
xmlns:controls="using:Telegram.Controls"
xmlns:cells="using:Telegram.Controls.Cells"
xmlns:messages="using:Telegram.Controls.Messages"
xmlns:local="using:Telegram.Views.Profile"
mc:Ignorable="d">
<Grid>
<controls:TableListView x:Name="ScrollingHost"
ItemsSource="{x:Bind ViewModel.Files, Mode=OneWay}"
SelectionMode="None"
ChoosingItemContainer="OnChoosingItemContainer"
ContainerContentChanging="OnContainerContentChanging">
<common:SelectedItemsBinder.Attached>
<common:SelectedItemsBinder SelectionMode="Auto"
SelectedItems="{x:Bind ViewModel.SelectedItems}" />
</common:SelectedItemsBinder.Attached>
<ListView.Template>
<ControlTemplate TargetType="ListView">
<Border BorderBrush="{TemplateBinding BorderBrush}"
Background="{TemplateBinding Background}"
BorderThickness="{TemplateBinding BorderThickness}"
CornerRadius="{TemplateBinding CornerRadius}">
<ItemsPresenter Header="{TemplateBinding Header}"
HeaderTemplate="{TemplateBinding HeaderTemplate}"
HeaderTransitions="{TemplateBinding HeaderTransitions}"
Footer="{TemplateBinding Footer}"
FooterTemplate="{TemplateBinding FooterTemplate}"
FooterTransitions="{TemplateBinding FooterTransitions}"
Padding="{TemplateBinding Padding}" />
</Border>
</ControlTemplate>
</ListView.Template>
<ListView.Header>
<StackPanel>
<Border Height="{x:Bind ViewModel.HeaderHeight, Mode=OneWay}" />
<Grid MaxWidth="1000"
Margin="24,0">
<TextBox x:Name="Search"
Text="{x:Bind ViewModel.Files.Query, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
PlaceholderText="{CustomResource Search}"
BorderBrush="{ThemeResource ControlStrokeColorDefaultBrush}"
Margin="0,4,0,2"
Padding="34,5,6,6"
InputScope="Search" />
<controls:GlyphButton Glyph=""
FontSize="16"
Width="36"
Height="32"
IsTabStop="False"
AutomationProperties.AccessibilityView="Raw"
HorizontalAlignment="Left"
VerticalAlignment="Center" />
</Grid>
</StackPanel>
</ListView.Header>
<ListView.Footer>
<Border Height="60" />
</ListView.Footer>
<ListView.ItemTemplate>
<DataTemplate>
<cells:SharedFileCell />
</DataTemplate>
</ListView.ItemTemplate>
</controls:TableListView>
</Grid>
</local:ProfileTabPage>
``` | /content/code_sandbox/Telegram/Views/Profile/ProfileFilesTabPage.xaml | xml | 2016-05-23T09:03:33 | 2024-08-16T16:17:48 | Unigram | UnigramDev/Unigram | 3,744 | 600 |
```xml
import { ActionButtons } from "@erxes/ui-settings/src/styles";
import BoardForm from "./BoardForm";
import { BoardItem } from "@erxes/ui-sales/src/settings/boards/styles";
import Button from "@erxes/ui/src/components/Button";
import { IBoard } from "@erxes/ui-sales/src/boards/types";
import { IButtonMutateProps } from "@erxes/ui/src/types";
import Icon from "@erxes/ui/src/components/Icon";
import { Link } from "react-router-dom";
import ModalTrigger from "@erxes/ui/src/components/ModalTrigger";
import React from "react";
import Tip from "@erxes/ui/src/components/Tip";
type Props = {
type: string;
board: IBoard;
remove: (boardId: string) => void;
renderButton: (props: IButtonMutateProps) => JSX.Element;
isActive: boolean;
};
class BoardRow extends React.Component<Props, {}> {
private size;
remove = () => {
const { board } = this.props;
this.props.remove(board._id);
};
renderEditAction() {
const { board, renderButton, type } = this.props;
const editTrigger = (
<Button btnStyle="link">
<Icon icon="edit" />
</Button>
);
const content = props => (
<BoardForm
{...props}
board={board}
renderButton={renderButton}
type={type}
/>
);
return (
<ModalTrigger
size={this.size}
title="Edit"
trigger={editTrigger}
tipText="Edit"
content={content}
/>
);
}
render() {
const { board, isActive } = this.props;
return (
<BoardItem key={board._id} $isActive={isActive} $withOverflow={true}>
<Link to={`?boardId=${board._id}`}>{board.name}</Link>
<ActionButtons>
{this.renderEditAction()}
<Tip text="Delete" placement="bottom">
<Button btnStyle="link" onClick={this.remove} icon="cancel-1" />
</Tip>
</ActionButtons>
</BoardItem>
);
}
}
export default BoardRow;
``` | /content/code_sandbox/packages/plugin-sales-ui/src/settings/boards/components/BoardRow.tsx | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 479 |
```xml
import CssComposer from '../../../src/css_composer';
import Editor from '../../../src/editor/model/Editor';
import utils from './../../test_utils.js';
describe('Css Composer', () => {
describe('Main', () => {
let obj: CssComposer;
let em: Editor;
let config: any;
let storagMock = utils.storageMock();
let editorModel = {
getCss() {
return 'testCss';
},
getCacheLoad() {
return storagMock.load();
},
};
const setSmConfig = () => {
config.stm = storagMock;
config.stm.getConfig = () => ({
storeCss: 1,
storeStyles: 1,
});
};
const setEm = () => {
config.em = editorModel;
};
const getCSS = (obj: CssComposer) =>
obj
.getAll()
.map((r) => r.toCSS())
.join('');
beforeEach(() => {
em = new Editor({});
config = { em };
obj = new CssComposer(em);
});
afterEach(() => {
em.destroy();
});
test('Object exists', () => {
expect(CssComposer).toBeTruthy();
});
test('storageKey returns array', () => {
expect(obj.storageKey).toEqual('styles');
});
test('Store data', () => {
setSmConfig();
setEm();
expect(JSON.parse(JSON.stringify(obj.store()))).toEqual({ styles: [] });
});
test('Rules are empty', () => {
expect(obj.getAll().length).toEqual(0);
});
test('Create new rule with correct selectors', () => {
var sel = new obj.Selectors();
var s1 = sel.add({ name: 'test1' });
var rule = obj.add(sel.models);
expect(rule.getSelectors().at(0)).toEqual(s1);
});
test('Create new rule correctly', () => {
var sel = new obj.Selectors();
var s1 = sel.add({ name: 'test1' });
var rule = obj.add(sel.models, 'state1', 'width1');
expect(rule.get('state')).toEqual('state1');
expect(rule.get('mediaText')).toEqual('width1');
});
test('Add rule to collection', () => {
var sel = new obj.Selectors([{ name: 'test1' }]);
var rule = obj.add(sel.models);
expect(obj.getAll().length).toEqual(1);
expect(obj.getAll().at(0).getSelectors().at(0).get('name')).toEqual('test1');
});
test('Returns correct rule with the same selector', () => {
var sel = new obj.Selectors([{ name: 'test1' }]);
var rule1 = obj.add(sel.models);
var rule2 = obj.get(sel.models);
expect(rule1).toEqual(rule2);
});
test('Returns correct rule with the same selectors', () => {
var sel1 = new obj.Selectors([{ name: 'test1' }]);
var rule1 = obj.add(sel1.models);
var sel2 = new obj.Selectors([{ name: 'test21' }, { name: 'test22' }]);
var rule2 = obj.add(sel2.models);
var rule3 = obj.get(sel2.models);
expect(rule3).toEqual(rule2);
});
test('Do not create multiple rules with the same name selectors', () => {
var sel1 = new obj.Selectors([{ name: 'test21' }, { name: 'test22' }]);
var rule1 = obj.add(sel1.models);
var sel2 = new obj.Selectors([{ name: 'test22' }, { name: 'test21' }]);
var rule2 = obj.add(sel2.models);
expect(rule2).toEqual(rule1);
});
test("Don't duplicate rules", () => {
var sel = new obj.Selectors([]);
var s1 = sel.add({ name: 'test1' });
var s2 = sel.add({ name: 'test2' });
var s3 = sel.add({ name: 'test3' });
var rule1 = obj.add([s1, s3]);
var rule2 = obj.add([s3, s1]);
expect(rule2).toEqual(rule1);
});
test('Returns correct rule with the same mixed selectors', () => {
var sel = new obj.Selectors([]);
var s1 = sel.add({ name: 'test1' });
var s2 = sel.add({ name: 'test2' });
var s3 = sel.add({ name: 'test3' });
var rule1 = obj.add([s1, s3]);
var rule2 = obj.get([s3, s1]);
expect(rule2).toEqual(rule1);
});
test('Returns correct rule with the same selectors and state', () => {
var sel = new obj.Selectors([]);
var s1 = sel.add({ name: 'test1' });
var s2 = sel.add({ name: 'test2' });
var s3 = sel.add({ name: 'test3' });
var rule1 = obj.add([s1, s3], 'hover');
var rule2 = obj.get([s3, s1], 'hover');
expect(rule2).toEqual(rule1);
});
test('Returns correct rule with the same selectors, state and width', () => {
var sel = new obj.Selectors([]);
var s1 = sel.add({ name: 'test1' });
var rule1 = obj.add([s1], 'hover', '1');
var rule2 = obj.get([s1], 'hover', '1');
expect(rule2).toEqual(rule1);
});
test('Renders correctly', () => {
expect(obj.render()).toBeTruthy();
});
test('Create a rule with id selector by using setIdRule()', () => {
const name = 'test';
obj.setIdRule(name, { color: 'red' });
expect(obj.getAll().length).toEqual(1);
const rule = obj.getIdRule(name)!;
expect(rule.selectorsToString()).toEqual(`#${name}`);
expect(rule.styleToString()).toEqual('color:red;');
expect(rule.styleToString({ important: 1 })).toEqual('color:red !important;');
expect(rule.styleToString({ important: ['color'] })).toEqual('color:red !important;');
});
test('Create a rule with id selector and state by using setIdRule()', () => {
const name = 'test';
const state = 'hover';
obj.setIdRule(name, { color: 'red' }, { state });
expect(obj.getAll().length).toEqual(1);
const rule = obj.getIdRule(name, { state })!;
expect(rule.selectorsToString()).toEqual(`#${name}:${state}`);
});
test('Create a rule with class selector by using setClassRule()', () => {
const name = 'test';
obj.setClassRule(name, { color: 'red' });
expect(obj.getAll().length).toEqual(1);
const rule = obj.getClassRule(name)!;
expect(rule.selectorsToString()).toEqual(`.${name}`);
expect(rule.styleToString()).toEqual('color:red;');
});
test('Create a rule with class selector and state by using setClassRule()', () => {
const name = 'test';
const state = 'hover';
obj.setClassRule(name, { color: 'red' }, { state });
expect(obj.getAll().length).toEqual(1);
const rule = obj.getClassRule(name, { state })!;
expect(rule.selectorsToString()).toEqual(`.${name}:${state}`);
});
test('Get the right rule, containg similar selector names', () => {
const all = obj.getAll();
const name = 'rule-test';
const selClass = `.${name}`;
const selId = `#${name}`;
const decl = '{colore:red;}';
all.add(`${selClass}${decl} ${selId}${decl}`);
expect(all.length).toBe(2);
const ruleClass = all.at(0);
const ruleId = all.at(1);
// Pre-check
expect(ruleClass.selectorsToString()).toBe(selClass);
expect(ruleId.selectorsToString()).toBe(selId);
expect(ruleClass.toCSS()).toBe(`${selClass}${decl}`);
expect(ruleId.toCSS()).toBe(`${selId}${decl}`);
// Check the get with the right rule
expect(obj.get(ruleClass.getSelectors())).toBe(ruleClass);
expect(obj.get(ruleId.getSelectors())).toBe(ruleId);
});
describe('setRule/getRule', () => {
test('Create a simple class-based rule', () => {
const selector = '.test';
obj.setRule(selector, { color: 'red' });
expect(obj.getAll().length).toEqual(1);
const rule = obj.getRule(selector)!;
expect(rule.selectorsToString()).toEqual(selector);
expect(rule.styleToString()).toEqual('color:red;');
});
test('Avoid creating multiple rules with the same selector', () => {
const selector = '.test';
obj.setRule(selector, { color: 'red', background: 'red' });
obj.setRule(selector, { color: 'blue' });
expect(obj.getAll().length).toEqual(1);
const rule = obj.getRule(selector)!;
expect(rule.selectorsToString()).toEqual(selector);
expect(rule.styleToString()).toEqual('color:blue;');
});
test('Update rule with addStyles option', () => {
const selector = '.test';
obj.setRule(selector, { color: 'red', background: 'red' });
obj.setRule(selector, { color: 'blue' }, { addStyles: true });
const rule = obj.getRule(selector)!;
expect(rule.styleToString()).toEqual('color:blue;background:red;');
});
test('Create a class-based rule', () => {
const selector = '.test.test2';
obj.setRule(selector, { color: 'red' });
expect(obj.getAll().length).toEqual(1);
const rule = obj.getRule(selector)!;
expect(rule.selectorsToString()).toEqual(selector);
expect(rule.styleToString()).toEqual('color:red;');
});
test('Create a class-based rule with a state', () => {
const selector = '.test.test2:hover';
obj.setRule(selector, { color: 'red' });
expect(obj.getAll().length).toEqual(1);
const rule = obj.getRule(selector)!;
expect(rule.selectorsToString()).toEqual(selector);
expect(rule.styleToString()).toEqual('color:red;');
});
test('Create a rule with class-based and mixed selectors', () => {
const selector = '.test.test2:hover, #test .selector';
obj.setRule(selector, { color: 'red' });
expect(obj.getAll().length).toEqual(1);
const rule = obj.getRule(selector)!;
expect(rule.selectorsToString()).toEqual(selector);
expect(rule.styleToString()).toEqual('color:red;');
});
test('Create a rule with only mixed selectors', () => {
const selector = '#test1 .class1, .class2 > #id2';
obj.setRule(selector, { color: 'red' });
expect(obj.getAll().length).toEqual(1);
const rule = obj.getRule(selector)!;
expect(rule.getSelectors().length).toEqual(0);
expect(rule.selectorsToString()).toEqual(selector);
expect(rule.styleToString()).toEqual('color:red;');
});
test('Create a rule with atRule', () => {
const toTest = [
{
selector: '.class1:hover',
style: { color: 'blue' },
opts: {
atRuleType: 'media',
atRuleParams: 'screen and (min-width: 480px)',
},
},
{
selector: '.class1:hover',
style: { color: 'red' },
opts: {
atRuleType: 'media',
atRuleParams: 'screen and (min-width: 480px)',
},
},
];
toTest.forEach((test) => {
const { selector, style, opts } = test;
obj.setRule(selector, style, opts);
expect(obj.getAll().length).toEqual(1);
const rule = obj.getRule(selector, opts)!;
expect(rule.getAtRule()).toEqual(`@${opts.atRuleType} ${opts.atRuleParams}`);
expect(rule.selectorsToString()).toEqual(selector);
expect(rule.getStyle()).toEqual(style);
});
});
test('Create different rules', () => {
const toTest = [
{ selector: '.class1:hover', style: { color: '#111' } },
{ selector: '.class1.class2', style: { color: '#222' } },
{ selector: '.class1, .class2 .class3', style: { color: 'red' } },
{ selector: '.class1, .class2 .class4', style: { color: 'green' } },
{ selector: '.class4, .class1 .class2', style: { color: 'blue' } },
{
selector: '.class4, .class1 .class2',
style: { color: 'blue' },
opt: { atRuleType: 'media', atRuleParams: '(min-width: 480px)' },
},
];
toTest.forEach((test) => {
const { selector, style, opt } = test;
obj.setRule(selector, style, opt);
const rule = obj.getRule(selector, opt)!;
const atRule = `${opt?.atRuleType || ''} ${opt?.atRuleParams || ''}`.trim();
expect(rule.getAtRule()).toEqual(atRule ? `@${atRule}` : '');
expect(rule.selectorsToString()).toEqual(selector);
expect(rule.getStyle()).toEqual(style);
});
expect(obj.getAll().length).toEqual(toTest.length);
});
});
describe('getRules', () => {
test('Get rule by class selectors', () => {
obj.addCollection(`
.aaa.bbb {
display:flex;
padding: 10px 0;
background:green;
}
`);
const [result] = obj.getRules('.aaa.bbb');
expect(result.selectorsToString()).toBe('.aaa.bbb');
// TODO The order of classes should not matter
// const [result2] = obj.getRules('.bbb.aaa');
// expect(result2.selectorsToString()).toBe('.aaa.bbb');
});
});
describe('Collections', () => {
test('Add a single rule as CSS string', () => {
const cssRule = '.test-rule{color:red;}';
obj.addCollection(cssRule);
expect(obj.getAll().length).toEqual(1);
expect(getCSS(obj)).toEqual(cssRule);
});
test('Add multiple rules as CSS string', () => {
const cssRules = [
'.test-rule{color:red;}',
'.test-rule:hover{color:blue;}',
'@media (max-width: 992px){.test-rule{color:darkred;}}',
'@media (max-width: 992px){.test-rule:hover{color:darkblue;}}',
];
const cssString = cssRules.join('');
obj.addCollection(cssString);
expect(obj.getAll().length).toEqual(cssRules.length);
expect(getCSS(obj)).toEqual(cssString);
});
test('Able to return the rule inserted as string', () => {
const cssRule = `
.test-rule1 {color:red;}
.test-rule2:hover {
color: blue;
}
@media (max-width: 992px) {
.test-rule3 {
color: darkred;
}
.test-rule4:hover {
color: darkblue;
}
}
`;
const result = obj.addCollection(cssRule);
const [rule1, rule2, rule3, rule4] = result;
expect(result.length).toEqual(4);
expect(obj.getAll().length).toEqual(4);
expect(obj.get('.test-rule1')).toBe(rule1);
expect(obj.get('.test-rule1', 'hover')).toBe(null);
expect(obj.get('.test-rule2', 'hover')).toBe(rule2);
expect(rule3.get('mediaText')).toBe('(max-width: 992px)');
expect(obj.get('.test-rule3', undefined, '(max-width: 992px)')).toBe(rule3);
expect(obj.get('.test-rule4', 'hover', '(max-width: 992px)')).toBe(rule4);
});
test('Add rules with @font-face', () => {
const cssRules = ['@font-face{font-family:"Font1";}', '@font-face{font-family:"Font2";}'];
const cssRule = cssRules.join('');
const result = obj.addCollection(cssRule);
expect(result.length).toEqual(2);
expect(obj.getAll().length).toEqual(2);
result.forEach((rule) => {
expect(rule.getSelectors().length).toBe(0);
expect(rule.get('selectorsAdd')).toBeFalsy();
expect(rule.get('mediaText')).toBeFalsy();
expect(rule.get('atRuleType')).toBe('font-face');
expect(rule.get('singleAtRule')).toBe(true);
});
expect(getCSS(obj)).toEqual(cssRule.trim());
});
test('Add rules with @keyframes at rule', () => {
const cssRule = `
@keyframes keyname {
from { width: 0% }
40%, 50% { width: 50% }
to { width: 100% }
}
`;
const result = obj.addCollection(cssRule);
const [rule1, rule2, rule3] = result;
console.log({ result: JSON.parse(JSON.stringify(rule1)) });
expect(result.length).toEqual(3);
expect(obj.getAll().length).toEqual(3);
result.forEach((rule) => {
expect(rule.get('mediaText')).toBe('keyname');
expect(rule.get('atRuleType')).toBe('keyframes');
});
expect(rule1.getSelectorsString()).toBe('from');
expect(rule1.getStyle()).toEqual({ width: '0%' });
expect(rule2.getSelectorsString()).toBe('40%, 50%');
expect(rule2.getStyle()).toEqual({ width: '50%' });
expect(rule3.getSelectorsString()).toBe('to');
expect(rule3.getStyle()).toEqual({ width: '100%' });
});
});
});
});
``` | /content/code_sandbox/test/specs/css_composer/index.ts | xml | 2016-01-22T00:23:19 | 2024-08-16T11:20:59 | grapesjs | GrapesJS/grapesjs | 21,687 | 3,967 |
```xml
import { Customizations, getWindow } from '@fluentui/utilities';
import { loadTheme as legacyLoadTheme } from '@microsoft/load-themed-styles';
import { createTheme } from '@fluentui/theme';
import type { ITheme, IPartialTheme, IFontStyles } from '../interfaces/index';
import type { IRawStyle } from '@fluentui/merge-styles';
export { createTheme } from '@fluentui/theme';
let _theme: ITheme = createTheme({});
let _onThemeChangeCallbacks: Array<(theme: ITheme) => void> = [];
export const ThemeSettingName = 'theme';
export function initializeThemeInCustomizations(): void {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const win: any = getWindow();
if (win?.FabricConfig?.legacyTheme) {
// does everything the `else` clause does and more, such as invoke legacy theming
loadTheme(win.FabricConfig.legacyTheme);
} else if (!Customizations.getSettings([ThemeSettingName]).theme) {
if (win?.FabricConfig?.theme) {
_theme = createTheme(win.FabricConfig.theme);
}
// Set the default theme.
Customizations.applySettings({ [ThemeSettingName]: _theme });
}
}
initializeThemeInCustomizations();
/**
* Gets the theme object
* @param depComments - Whether to include deprecated tags as comments for deprecated slots.
*/
export function getTheme(depComments: boolean = false): ITheme {
if (depComments === true) {
_theme = createTheme({}, depComments);
}
return _theme;
}
/**
* Registers a callback that gets called whenever the theme changes.
* This should only be used when the component cannot automatically get theme changes through its state.
* This will not register duplicate callbacks.
*/
export function registerOnThemeChangeCallback(callback: (theme: ITheme) => void): void {
if (_onThemeChangeCallbacks.indexOf(callback) === -1) {
_onThemeChangeCallbacks.push(callback);
}
}
/**
* See registerOnThemeChangeCallback().
* Removes previously registered callbacks.
*/
export function removeOnThemeChangeCallback(callback: (theme: ITheme) => void): void {
const i = _onThemeChangeCallbacks.indexOf(callback);
if (i === -1) {
return;
}
_onThemeChangeCallbacks.splice(i, 1);
}
/**
* Applies the theme, while filling in missing slots.
* @param theme - Partial theme object.
* @param depComments - Whether to include deprecated tags as comments for deprecated slots.
*/
export function loadTheme(theme: IPartialTheme, depComments: boolean = false): ITheme {
_theme = createTheme(theme, depComments);
// Invoke the legacy method of theming the page as well.
legacyLoadTheme({ ..._theme.palette, ..._theme.semanticColors, ..._theme.effects, ..._loadFonts(_theme) });
Customizations.applySettings({ [ThemeSettingName]: _theme });
_onThemeChangeCallbacks.forEach((callback: (theme: ITheme) => void) => {
try {
callback(_theme);
} catch (e) {
// don't let a bad callback break everything else
}
});
return _theme;
}
/**
* Loads font variables into a JSON object.
* @param theme - The theme object
*/
function _loadFonts(theme: ITheme): { [name: string]: string } {
const lines: { [key: string]: string } = {};
for (const fontName of Object.keys(theme.fonts)) {
const font: IRawStyle = theme.fonts[fontName as keyof IFontStyles];
for (const propName of Object.keys(font)) {
const name: string = fontName + propName.charAt(0).toUpperCase() + propName.slice(1);
let value = font[propName as keyof IRawStyle] as string;
if (propName === 'fontSize' && typeof value === 'number') {
// if it's a number, convert it to px by default like our theming system does
value = value + 'px';
}
lines[name] = value;
}
}
return lines;
}
``` | /content/code_sandbox/packages/style-utilities/src/styles/theme.ts | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 890 |
```xml
import React, {PureComponent} from 'react'
import _ from 'lodash'
import memoize from 'memoize-one'
import SearchBar from 'src/hosts/components/SearchBar'
import HostRow from 'src/hosts/components/HostRow'
import InfiniteScroll from 'src/shared/components/InfiniteScroll'
import PageSpinner from 'src/shared/components/PageSpinner'
import {HOSTS_TABLE_SIZING} from 'src/hosts/constants/tableSizing'
import {ErrorHandling} from 'src/shared/decorators/errors'
import {Source, RemoteDataState, Host} from 'src/types'
enum SortDirection {
ASC = 'asc',
DESC = 'desc',
}
export interface Props {
hosts: Host[]
hostsPageStatus: RemoteDataState
source: Source
}
interface State {
searchTerm: string
sortDirection: SortDirection
sortKey: string
}
class HostsTable extends PureComponent<Props, State> {
public getSortedHosts = memoize(
(
hosts,
searchTerm: string,
sortKey: string,
sortDirection: SortDirection
) => {
return this.sort(this.filter(hosts, searchTerm), sortKey, sortDirection)
}
)
constructor(props: Props) {
super(props)
this.state = {
searchTerm: '',
sortDirection: SortDirection.ASC,
sortKey: null,
}
}
public filter(allHosts: Host[], searchTerm: string): Host[] {
const filterText = searchTerm.toLowerCase()
return allHosts.filter(h => {
const apps = h.apps ? h.apps.join(', ') : ''
let tagResult = false
if (h.tags) {
tagResult = Object.keys(h.tags).reduce((acc, key) => {
return acc || h.tags[key].toLowerCase().includes(filterText)
}, false)
} else {
tagResult = false
}
return (
h.name.toLowerCase().includes(filterText) ||
apps.toLowerCase().includes(filterText) ||
tagResult
)
})
}
public sort(hosts: Host[], key: string, direction: SortDirection): Host[] {
switch (direction) {
case SortDirection.ASC:
return _.sortBy<Host>(hosts, e => e[key])
case SortDirection.DESC:
return _.sortBy<Host>(hosts, e => e[key]).reverse()
default:
return hosts
}
}
public updateSearchTerm = (searchTerm: string): void => {
this.setState({searchTerm})
}
public updateSort = (key: string) => (): void => {
const {sortKey, sortDirection} = this.state
if (sortKey === key) {
const reverseDirection =
sortDirection === SortDirection.ASC
? SortDirection.DESC
: SortDirection.ASC
this.setState({sortDirection: reverseDirection})
} else {
this.setState({sortKey: key, sortDirection: SortDirection.ASC})
}
}
public sortableClasses = (key: string): string => {
const {sortKey, sortDirection} = this.state
if (sortKey === key) {
if (sortDirection === SortDirection.ASC) {
return 'hosts-table--th sortable-header sorting-ascending'
}
return 'hosts-table--th sortable-header sorting-descending'
}
return 'hosts-table--th sortable-header'
}
public render() {
return (
<div className="panel">
<div className="panel-heading">
<h2 className="panel-title">{this.HostsTitle}</h2>
<SearchBar
placeholder="Filter by Host..."
onSearch={this.updateSearchTerm}
/>
</div>
<div className="panel-body">{this.TableContents}</div>
</div>
)
}
private get TableContents(): JSX.Element {
const {hosts, hostsPageStatus} = this.props
const {sortKey, sortDirection, searchTerm} = this.state
const sortedHosts = this.getSortedHosts(
hosts,
searchTerm,
sortKey,
sortDirection
)
if (hostsPageStatus === RemoteDataState.Loading) {
return this.LoadingState
}
if (hostsPageStatus === RemoteDataState.Error) {
return this.ErrorState
}
if (hosts.length === 0) {
return this.NoHostsState
}
if (sortedHosts.length === 0) {
return this.NoSortedHostsState
}
return this.TableWithHosts
}
private get TableWithHosts(): JSX.Element {
const {source, hosts} = this.props
const {sortKey, sortDirection, searchTerm} = this.state
const sortedHosts = this.getSortedHosts(
hosts,
searchTerm,
sortKey,
sortDirection
)
return (
<div className="hosts-table">
{this.HostsTableHeader}
<InfiniteScroll
items={sortedHosts.map(h => (
<HostRow key={h.name} host={h} sourceID={source.id} />
))}
itemHeight={26}
className="hosts-table--tbody"
/>
</div>
)
}
private get LoadingState(): JSX.Element {
return <PageSpinner />
}
private get ErrorState(): JSX.Element {
return (
<div className="generic-empty-state">
<h4 style={{margin: '90px 0'}}>There was a problem loading hosts</h4>
</div>
)
}
private get NoHostsState(): JSX.Element {
return (
<div className="generic-empty-state">
<h4 style={{margin: '90px 0'}}>No Hosts found</h4>
</div>
)
}
private get NoSortedHostsState(): JSX.Element {
return (
<div className="generic-empty-state">
<h4 style={{margin: '90px 0'}}>
There are no hosts that match the search criteria
</h4>
</div>
)
}
private get HostsTitle(): string {
const {hostsPageStatus, hosts} = this.props
const {sortKey, sortDirection, searchTerm} = this.state
const sortedHosts = this.getSortedHosts(
hosts,
searchTerm,
sortKey,
sortDirection
)
const hostsCount = sortedHosts.length
if (hostsPageStatus === RemoteDataState.Loading) {
return 'Loading Hosts...'
}
if (hostsCount === 1) {
return `1 Host`
}
return `${hostsCount} Hosts`
}
private get HostsTableHeader(): JSX.Element {
const {NameWidth, StatusWidth, CPUWidth, LoadWidth} = HOSTS_TABLE_SIZING
return (
<div className="hosts-table--thead">
<div className="hosts-table--tr">
<div
onClick={this.updateSort('name')}
className={this.sortableClasses('name')}
style={{width: NameWidth}}
>
Host
<span className="icon caret-up" />
</div>
<div
onClick={this.updateSort('deltaUptime')}
className={this.sortableClasses('deltaUptime')}
style={{width: StatusWidth}}
>
Status
<span className="icon caret-up" />
</div>
<div
onClick={this.updateSort('cpu')}
className={this.sortableClasses('cpu')}
style={{width: CPUWidth}}
>
CPU
<span className="icon caret-up" />
</div>
<div
onClick={this.updateSort('load')}
className={this.sortableClasses('load')}
style={{width: LoadWidth}}
>
Load
<span className="icon caret-up" />
</div>
<div className="hosts-table--th">Apps</div>
</div>
</div>
)
}
}
export default ErrorHandling(HostsTable)
``` | /content/code_sandbox/ui/src/hosts/components/HostsTable.tsx | xml | 2016-08-24T23:28:56 | 2024-08-13T19:50:03 | chronograf | influxdata/chronograf | 1,494 | 1,733 |
```xml
import type { GraphQLError, DocumentNode } from 'graphql';
import type {
GraphQLRequestContextDidResolveOperation,
GraphQLRequestContext,
GraphQLRequestContextWillSendResponse,
BaseContext,
} from '../../externalTypes/index.js';
import type { Logger } from '@apollo/utils.logger';
import type { Trace } from '@apollo/usage-reporting-protobuf';
import type { Fetcher } from '@apollo/utils.fetcher';
export interface ApolloServerPluginUsageReportingOptions<
TContext extends BaseContext,
> {
//#region Configure exactly which data should be sent to Apollo.
/**
* Apollo Server's usage reports describe each individual request in one of
* two ways: as a "trace" (a detailed description of the specific request,
* including a query plan and resolver tree with timings and errors, as well
* as optional details like variable values and HTTP headers), or as part of
* aggregated "stats" (where invocations of the same operation from the same
* client program are aggregated together rather than described individually).
* Apollo Server uses an heuristic to decide which operations to describe as
* traces and which to aggregate as stats.
*
* By setting the `sendTraces` option to `false`, Apollo Server will describe
* *all* operations as stats; individual requests will never be broken out
* into separate traces. If you set `sendTraces: false`, then Apollo Studio's
* Traces view won't show any traces (other Studio functionality will be
* unaffected).
*
* Note that the values of `sendVariableValues`, `sendHeaders`, and
* `sendUnexecutableOperationDocuments` are irrelevant if you set
* `sendTraces: false`, because those options control data that is contained
* only in traces (not in stats).
*
* Setting `sendTraces: false` does *NOT* imply `fieldLevelInstrumentation:
* 0`. Apollo Server can still take advantage of field-level instrumentation
* (either directly for monolith servers, or via federated tracing for
* Gateways) in order to accurately report field execution usage in "stats".
* This option only controls whether data is sent to Apollo's servers as
* traces, not whether traces are internally used to learn about usage.
*/
sendTraces?: boolean;
/**
* By default, Apollo Server does not send the values of any GraphQL variables
* to Apollo's servers, because variable values often contain the private data
* of your app's users. If you'd like variable values to be included in
* traces, set this option. This option can take several forms:
* - { none: true }: don't send any variable values (DEFAULT)
* - { all: true}: send all variable values
* - { transform: ... }: a custom function for modifying variable values. The
* function receives `variables` and `operationString` and should return a
* record of `variables` with the same keys as the `variables` it receives
* (added variables will be ignored and removed variables will be reported
* with an empty value). For security reasons, if an error occurs within
* this function, all variable values will be replaced with
* `[PREDICATE_FUNCTION_ERROR]`.
* - { exceptNames: ... }: a case-sensitive list of names of variables whose
* values should not be sent to Apollo servers
* - { onlyNames: ... }: A case-sensitive list of names of variables whose
* values will be sent to Apollo servers
*
* Defaults to not sending any variable values if both this parameter and the
* deprecated `privateVariables` are not set. The report will indicate each
* private variable key whose value was redacted by { none: true } or {
* exceptNames: [...] }.
*
* The value of this option is not relevant if you set `sendTraces: false`,
* because variable values only appear in traces.
*/
sendVariableValues?: VariableValueOptions;
/**
* By default, Apollo Server does not send the HTTP request headers and values
* to Apollo's servers, as these headers may contain your users' private data.
* If you'd like this information included in traces, set this option. This
* option can take several forms:
*
* - { none: true } to drop all HTTP request headers (DEFAULT)
* - { all: true } to send the values of all HTTP request headers
* - { exceptNames: Array<String> } A case-insensitive list of names of HTTP
* headers whose values should not be sent to Apollo servers
* - { onlyNames: Array<String> }: A case-insensitive list of names of HTTP
* headers whose values will be sent to Apollo servers
*
* Unlike with sendVariableValues, names of dropped headers are not reported.
* The headers 'authorization', 'cookie', and 'set-cookie' are never reported.
*
* The value of this option is not relevant if you set `sendTraces: false`,
* because request headers only appear in traces.
*/
sendHeaders?: SendValuesBaseOptions;
/**
* By default, if a trace contains errors, the errors are reported to Apollo
* servers with the message `<masked>`. The errors are associated with
* specific paths in the operation, but do not include the original error
* message or any extensions such as the error `code`, as those details may
* contain your users' private data. The extension `maskedBy:
* 'ApolloServerPluginUsageReporting'` is added.
*
* If you'd like details about the error included in traces, set this option.
* This option can take several forms:
*
* - { masked: true }: mask error messages and omit extensions (DEFAULT)
* - { unmodified: true }: send all error messages and extensions to Apollo
* servers
* - { transform: ... }: a custom function for transforming errors. This
* function receives a `GraphQLError` and may return a `GraphQLError`
* (either a new error, or its potentially-modified argument) or `null`.
* This error is used in the report to Apollo servers; if `null`, the error
* is not included in traces or error statistics.
*
* If you set `sendTraces: false`, then the only relevant aspect of this
* option is whether you return `null` from a `transform` function or not
* (which affects aggregated error statistics).
*/
sendErrors?: SendErrorsOptions;
/**
* This option allows you to choose if Apollo Server should calculate detailed
* per-field statistics for a particular request. It is only called for
* executable operations: operations which parse and validate properly and
* which do not have an unknown operation name. It is not called if an
* `includeRequest` hook is provided and returns false.
*
* You can either pass an async function or a number. The function receives a
* `GraphQLRequestContext`. (The effect of passing a number is described
* later.) Your function can return a boolean or a number; returning false is
* equivalent to returning 0 and returning true is equivalent to returning 1.
*
* Returning false (or 0) means that Apollo Server will only pay attention to
* overall properties of the operation, like what GraphQL operation is
* executing and how long the entire operation takes to execute, and not
* anything about field-by-field execution.
*
* If you return false (or 0), this operation *will* still contribute to most
* features of Studio, such as schema checks, the Operations page, and the
* "referencing operations" statistic on the Fields page, etc.
*
* If you return false (or 0), this operation will *not* contribute to the
* "field executions" statistic on the Fields page or to the execution timing
* hints optionally displayed in Studio Explorer or in vscode-graphql.
* Additionally, this operation will not produce a trace that can be viewed on
* the Traces section of the Operations page.
*
* Returning false (or 0) for some or all operations can improve your server's
* performance, as the overhead of calculating complete traces is not always
* negligible. This is especially the case if this server is an Apollo
* Gateway, as captured traces are transmitted from the subgraph to the
* Gateway in-band inside the actual GraphQL response.
*
* Returning a positive number means that Apollo Server will track each field
* execution and send Apollo Studio statistics on how many times each field
* was executed and what the per-field performance was. Apollo Server sends
* both a precise observed execution count and an estimated execution count.
* The former is calculated by counting each field execution as 1, and the
* latter is calculated by counting each field execution as the number
* returned from this hook, which can be thought of as a weight.
*
* Passing a number `x` (which should be between 0 and 1 inclusive) for
* `fieldLevelInstrumentation` is equivalent to passing the function `async ()
* => Math.random() < x ? 1/x : 0`. For example, if you pass 0.01, then 99%
* of the time this function will return 0, and 1% of the time this function
* will return 100. So 99% of the time Apollo Server will not track field
* executions, and 1% of the time Apollo Server will track field executions
* and send them to Apollo Studio both as an exact observed count and as an
* "estimated" count which is 100 times higher. Generally, the weights you
* return should be roughly the reciprocal of the probability that the
* function returns non-zero; however, you're welcome to craft a more
* sophisticated function, such as one that uses a higher probability for
* rarer operations and a lower probability for more common operations.
*
* (Note that returning true here does *not* mean that the data derived from
* field-level instrumentation must be transmitted to Apollo Studio's servers
* in the form of a trace; it may still be aggregated locally to statistics.
* Similarly, setting `sendTraces: false` does not affect
* `fieldLevelInstrumentation`. But either way this operation will contribute
* to the "field executions" statistic and timing hints.)
*
* The default `fieldLevelInstrumentation` is a function that always returns
* true.
*/
fieldLevelInstrumentation?:
| number
| ((
request: GraphQLRequestContextDidResolveOperation<TContext>,
) => Promise<number | boolean>);
/**
* This option allows you to choose if a particular request should be
* represented in the usage reporting sent to Apollo servers. By default, all
* requests are included. If this async predicate function is specified, its
* return value will determine whether a given request is included.
*
* Note that returning false here means that the operation will be completely
* ignored by all Apollo Studio features. If you merely want to improve
* performance by skipping the field-level execution trace, set the
* `fieldLevelInstrumentation` option instead of this one.
*
* The predicate function receives the request context. If validation and
* parsing of the request succeeds, the function will receive the request
* context in the
* [`GraphQLRequestContextDidResolveOperation`](path_to_url#didresolveoperation)
* phase, which permits tracing based on dynamic properties, e.g., HTTP
* headers or the `operationName` (when available). Otherwise it will receive
* the request context in the
* [`GraphQLRequestContextWillSendResponse`](path_to_url#willsendresponse)
* phase:
*
* (If you don't want any usage reporting at all, don't use this option:
* instead, either avoid specifying an Apollo API key, or use
* ApolloServerPluginUsageReportingDisabled to prevent this plugin from being
* created by default.)
*
* **Example:**
*
* ```js
* includeRequest(requestContext) {
* // Always include `query HomeQuery { ... }`.
* if (requestContext.operationName === "HomeQuery") return true;
*
* // Omit if the "report-to-apollo" header is set to "false".
* if (requestContext.request.http?.headers?.get("report-to-apollo") === "false") {
* return false;
* }
*
* // Otherwise include.
* return true;
* },
* ```
*
*/
includeRequest?: (
request:
| GraphQLRequestContextDidResolveOperation<TContext>
| GraphQLRequestContextWillSendResponse<TContext>,
) => Promise<boolean>;
/**
* By default, this plugin associates client information such as name
* and version with user requests based on HTTP headers starting with
* `apollographql-client-`. If you have another way of communicating
* client information to your server, tell the plugin how it works
* with this option.
*/
generateClientInfo?: GenerateClientInfo<TContext>;
/**
* If you are using the `overrideReportedSchema` option to the schema
* reporting plugin (`ApolloServerPluginSchemaReporting`), you should
* pass the same value here as well, so that the schema ID associated
* with requests in this plugin's usage reports matches the schema
* ID that the other plugin reports.
*/
overrideReportedSchema?: string;
/**
* Whether to include the entire document in the trace if the operation
* was a GraphQL parse or validation error (i.e. failed the GraphQL parse or
* validation phases). This will be included as a separate field on the trace
* and the operation name and signature will always be reported with a constant
* identifier. Whether the operation was a parse failure or a validation
* failure will be embedded within the stats report key itself.
*
* The value of this option is not relevant if you set `sendTraces: false`,
* because unexecutable operation documents only appear in traces.
*/
sendUnexecutableOperationDocuments?: boolean;
/**
* This plugin sends information about operations to Apollo's servers in two
* forms: as detailed operation traces of single operations and as summarized
* statistics of many operations. Each individual operation is described in
* exactly one of those ways. This hook lets you select which operations are
* sent as traces and which are sent as statistics. The default is a heuristic
* that tries to send one trace for each rough duration bucket for each
* operation each minute, plus more if the operations have errors. (Note that
* Apollo's servers perform their own sampling on received traces; not all
* traces sent to Apollo's servers can be later retrieved via the trace UI.)
*
* If you just want to send all operations as stats, set `sendTraces: false`
* instead of using this experimental hook.
*
* This option is highly experimental and may change or be removed in future
* versions.
*/
experimental_sendOperationAsTrace?: (
trace: Trace,
statsReportKey: string,
) => boolean;
//#endregion
//#region Configure the mechanics of communicating with Apollo's servers.
/**
* Sends a usage report after every request. This options is useful for
* stateless environments like Amazon Lambda where processes handle only a
* small number of requests before terminating. It defaults to true when the
* ApolloServer was started in the background with
* `your_sha256_hashests`
* (generally used with serverless frameworks), or false otherwise. (Note that
* "immediately" does not mean synchronously with completing the response, but
* "very soon", such as after a setImmediate call.)
*/
sendReportsImmediately?: boolean;
/**
* Specifies which Fetch API implementation to use when sending usage reports.
*/
fetcher?: Fetcher;
/**
* How often to send reports to Apollo. We'll also send reports when the
* report gets big; see maxUncompressedReportSize.
*/
reportIntervalMs?: number;
/**
* We send a report when the report size will become bigger than this size in
* bytes (default: 4MB). (This is a rough limit --- we ignore the size of the
* report header and some other top level bytes. We just add up the lengths of
* the serialized traces and signatures.)
*/
maxUncompressedReportSize?: number;
/**
* Reporting is retried with exponential backoff up to this many times
* (including the original request). Defaults to 5.
*/
maxAttempts?: number;
/**
* Minimum back-off for retries. Defaults to 100ms.
*/
minimumRetryDelayMs?: number;
/**
* Timeout for each individual attempt to send a report to Apollo. (This is
* for each HTTP POST, not for all potential retries.) Defaults to 30 seconds
* (30000ms).
*/
requestTimeoutMs?: number;
/**
* A logger interface to be used for output and errors. When not provided
* it will default to the server's own `logger` implementation and use
* `console` when that is not available.
*/
logger?: Logger;
/**
* By default, if an error occurs when sending trace reports to Apollo
* servers, its message will be sent to the `error` method on the logger
* specified with the `logger` option to this plugin or to ApolloServer (or to
* `console.error` by default). Specify this function to process errors in a
* different way. (The difference between using this option and using a logger
* is that this option receives the actual Error object whereas `logger.error`
* only receives its message.)
*/
reportErrorFunction?: (err: Error) => void;
//#endregion
//#region Internal and non-recommended options
/**
* The URL base that we send reports to (not including the path). This option
* only needs to be set for testing and Apollo-internal uses.
*/
endpointUrl?: string;
/**
* If set, prints all reports as JSON when they are sent. (Note that for
* technical reasons, traces embedded in a report are printed separately when
* they are added to a report.) Reports are sent through `logger.info`.
*/
debugPrintReports?: boolean;
/**
* Specify the function for creating a signature for a query. See signature.ts
* for details. This option is not recommended, as Apollo's servers make assumptions
* about how the signature relates to the operation you executed.
*/
calculateSignature?: (ast: DocumentNode, operationName: string) => string;
/**
* This option is for internal use by `@apollo/server` only.
*
* By default we want to enable this plugin for non-subgraph schemas only, but
* we need to come up with our list of plugins before we have necessarily
* loaded the schema. So (unless the user installs this plugin or
* ApolloServerPluginUsageReportingDisabled themselves), `@apollo/server`
* always installs this plugin (if API key and graph ref are provided) and
* uses this option to disable usage reporting if the schema is a subgraph.
*/
__onlyIfSchemaIsNotSubgraph?: boolean;
//#endregion
}
export type SendValuesBaseOptions =
| { onlyNames: Array<string> }
| { exceptNames: Array<string> }
| { all: true }
| { none: true };
type VariableValueTransformOptions = {
variables: Record<string, any>;
operationString?: string;
};
export type VariableValueOptions =
| {
transform: (
options: VariableValueTransformOptions,
) => Record<string, any>;
}
| SendValuesBaseOptions;
export type SendErrorsOptions =
| { unmodified: true }
| { masked: true }
| { transform: (err: GraphQLError) => GraphQLError | null };
export interface ClientInfo {
clientName?: string;
clientVersion?: string;
}
export type GenerateClientInfo<TContext extends BaseContext> = (
requestContext: GraphQLRequestContext<TContext>,
) => ClientInfo;
``` | /content/code_sandbox/packages/server/src/plugin/usageReporting/options.ts | xml | 2016-04-21T09:26:01 | 2024-08-16T19:32:15 | apollo-server | apollographql/apollo-server | 13,742 | 4,514 |
```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>Author</key>
<string>Badruzeus</string>
<key>Description</key>
<string>An elegant clean looks theme with colorful icons and bright solid background, supports up to 1080p display resolution. Version: 1.3</string>
<key>Theme</key>
<dict>
<key>Background</key>
<dict>
<key>Dark</key>
<false/>
<key>Path</key>
<string>background.png</string>
<key>Type</key>
<string>Tile</string>
</dict>
<key>Badges</key>
<dict>
<key>Inline</key>
<false/>
<key>Scale</key>
<integer>5</integer>
<key>Show</key>
<true/>
<key>Swap</key>
<true/>
</dict>
<key>Banner</key>
<string>logo.png</string>
<key>BootCampStyle</key>
<false/>
<key>Components</key>
<dict>
<key>Banner</key>
<true/>
<key>Functions</key>
<true/>
<key>Help</key>
<true/>
<key>Label</key>
<true/>
<key>MenuTitle</key>
<true/>
<key>MenuTitleImage</key>
<true/>
<key>Revision</key>
<true/>
</dict>
<key>Font</key>
<dict>
<key>CharWidth</key>
<integer>9</integer>
<key>Path</key>
<string>Font_Inconsolata_16pt_Mint.png</string>
<key>Proportional</key>
<false/>
<key>Type</key>
<string>Load</string>
</dict>
<key>Selection</key>
<dict>
<key>Big</key>
<string>selection_big.png</string>
<key>ChangeNonSelectedGrey</key>
<false/>
<key>Color</key>
<string>0xABE4DAFF</string>
<key>OnTop</key>
<false/>
<key>Small</key>
<string>selection_small.png</string>
</dict>
</dict>
<key>Version</key>
<string>1.3</string>
<key>Year</key>
<string>2017</string>
</dict>
</plist>
``` | /content/code_sandbox/Clover-Configs/Lenovo/IdeaPad 300s/CLOVER/themes/Beauty/theme.plist | xml | 2016-11-05T04:22:54 | 2024-08-12T19:25:53 | Hackintosh-Installer-University | huangyz0918/Hackintosh-Installer-University | 3,937 | 670 |
```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>CFBundleName</key>
<string>TestApp</string>
<key>CFBundleIdentifier</key>
<string>%APP_CFBUNDLEIDENTIFER%</string>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1.33</string>
<key>MinimumOSVersion</key>
<string>4.0</string>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
</array>
<key>WKCompanionAppBundleIdentifier</key>
<string>%CONTAINER_CFBUNDLEIDENTIFIER%</string>
<key>WKWatchKitApp</key>
<true/>
<key>XSAppIconAssets</key>
<string>Resources/Images.xcassets/AppIcons.appiconset</string>
</dict>
</plist>
``` | /content/code_sandbox/tests/templates/WatchApp/Info.plist | xml | 2016-04-20T18:24:26 | 2024-08-16T13:29:19 | xamarin-macios | xamarin/xamarin-macios | 2,436 | 283 |
```xml
import { NextFunction, Request, Response } from 'express';
import { getSubdomain } from '@erxes/api-utils/src/core';
import { generateModels } from './connectionResolver';
export default async function posUserMiddleware(
req: Request & { posConfig?: any },
_res: Response,
next: NextFunction
) {
let token;
try {
token = req.cookies['pos-config-token'];
} catch (e) {}
if (token) {
try {
const subdomain = getSubdomain(req);
const models = await generateModels(subdomain);
req.posConfig = (await models.Configs.findOne({ token }).lean()) || {};
return next();
} catch (e) {
console.log(e.message);
return next();
}
}
return next();
}
``` | /content/code_sandbox/packages/plugin-posclient-api/src/configMiddleware.ts | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 173 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>[%level{4}] %logger{15} - %message%n%xException{10}
</pattern>
</encoder>
</appender>
<appender name="ASYNCSTDOUT" class="ch.qos.logback.classic.AsyncAppender">
<appender-ref ref="STDOUT"/>
</appender>
<logger name="org.thp.thehive.DatabaseBuilder" level="WARN"/>
<root level="ERROR">
<appender-ref ref="ASYNCSTDOUT"/>
</root>
</configuration>
``` | /content/code_sandbox/test/resources/logback-test.xml | xml | 2016-11-03T16:58:39 | 2024-08-15T20:40:05 | TheHive | TheHive-Project/TheHive | 3,319 | 157 |
```xml
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="path_to_url"
xmlns:x="path_to_url"
Title="Events"
x:Class="Xamarin.Forms.Controls.GalleryPages.DragAndDropGalleries.DragAndDropEvents">
<ContentPage.Content>
<StackLayout>
<StackLayout Orientation="Horizontal">
<Label HeightRequest="200" WidthRequest="200"
Text="Drag me Over the Purple Box, off the purple box, drop me on the purple box, and then verify all the correct events fired">
<Label.GestureRecognizers>
<DragGestureRecognizer DragStarting="DragStarting" DropCompleted="DropCompleted"></DragGestureRecognizer>
</Label.GestureRecognizers>
</Label>
<BoxView HeightRequest="200" HorizontalOptions="FillAndExpand" Background="Purple">
<BoxView.GestureRecognizers>
<DropGestureRecognizer DragLeave="DragLeave" DragOver="DragOver" Drop="Drop"></DropGestureRecognizer>
</BoxView.GestureRecognizers>
</BoxView>
</StackLayout>
<Label x:Name="events">
<Label.GestureRecognizers>
<DropGestureRecognizer></DropGestureRecognizer>
</Label.GestureRecognizers>
</Label>
</StackLayout>
</ContentPage.Content>
</ContentPage>
``` | /content/code_sandbox/Xamarin.Forms.Controls/GalleryPages/DragAndDropGalleries/DragAndDropEvents.xaml | xml | 2016-03-18T15:52:03 | 2024-08-16T16:25:43 | Xamarin.Forms | xamarin/Xamarin.Forms | 5,637 | 287 |
```xml
/*
* @license Apache-2.0
*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
// TypeScript Version: 4.1
/// <reference types="node"/>
import { Buffer } from 'buffer';
// EXPORTS //
/**
* Buffer constructor.
*
* @example
* var ctor = require( '@stdlib/buffer/ctor' );
*
* var b = new ctor( [ 1, 2, 3, 4 ] );
* // returns <Buffer>
*/
export = Buffer;
``` | /content/code_sandbox/lib/node_modules/@stdlib/buffer/ctor/docs/types/index.d.ts | xml | 2016-03-24T04:19:52 | 2024-08-16T09:03:19 | stdlib | stdlib-js/stdlib | 4,266 | 135 |
```xml
<vector xmlns:android="path_to_url" android:height="34.0dp" android:tint="?attr/colorControlNormal" android:viewportHeight="512" android:viewportWidth="448" android:width="29.75dp">
<path android:fillColor="@android:color/white" android:pathData="M400 0c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48zm0 448c-8.8 0-16 7.2-16 16s-7.2 16-16 16h-96c-8.8 0-16 7.2-16 16s7.2 16 16 16h96c26.5 0 48-21.5 48-48 0-8.8-7.2-16-16-16zm-282.2 8.6c-6.2 6.2-16.4 6.3-22.6 0l-67.9-67.9c-6.2-6.2-16.4-6.2-22.6 0s-6.2 16.4 0 22.6l67.9 67.9c9.4 9.4 21.7 14 34 14s24.6-4.7 33.9-14c6.2-6.2 6.2-16.4 0-22.6s-16.4-6.3-22.7 0zm56.1-179.8l-93.7 93.7c-12.5 12.5-12.5 32.8 0 45.2 6.2 6.2 14.4 9.4 22.6 9.4s16.4-3.1 22.6-9.4l91.9-91.9-30.2-30.2c-5-5-9.4-10.7-13.2-16.8zM128 160h105.5l-20.1 17.2c-13.5 11.5-21.6 28.4-22.3 46.1-0.7 17.8 6.1 35.2 18.7 47.7l78.2 78.2V432c0 17.7 14.3 32 32 32s32-14.3 32-32v-89.4c0-12.6-5.1-25-14.1-33.9l-61-61c0.5-0.4 1.2-0.6 1.7-1.1l82.3-82.3c11.5-11.5 14.9-28.6 8.7-43.6-6.2-15-20.7-24.7-37-24.7H128c-17.7 0-32 14.3-32 32s14.3 32 32 32z"/>
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/ic_preset_fas_skating.xml | xml | 2016-07-02T10:44:04 | 2024-08-16T18:55:54 | StreetComplete | streetcomplete/StreetComplete | 3,781 | 731 |
```xml
import {
FormsModule,
ReactiveFormsModule,
FormBuilder,
Validators,
FormGroup,
} from "@angular/forms";
import { NgSelectModule } from "@ng-select/ng-select";
import { action } from "@storybook/addon-actions";
import { Meta, StoryObj, moduleMetadata } from "@storybook/angular";
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
import { BadgeModule } from "../badge";
import { ButtonModule } from "../button";
import { InputModule } from "../input/input.module";
import { MultiSelectComponent } from "../multi-select/multi-select.component";
import { SharedModule } from "../shared";
import { I18nMockService } from "../utils/i18n-mock.service";
import { FormFieldModule } from "./form-field.module";
export default {
title: "Component Library/Form/Multi Select",
excludeStories: /.*Data$/,
component: MultiSelectComponent,
decorators: [
moduleMetadata({
imports: [
ButtonModule,
FormsModule,
NgSelectModule,
FormFieldModule,
InputModule,
ReactiveFormsModule,
BadgeModule,
SharedModule,
],
providers: [
{
provide: I18nService,
useFactory: () => {
return new I18nMockService({
multiSelectPlaceholder: "-- Type to Filter --",
multiSelectLoading: "Retrieving options...",
multiSelectNotFound: "No items found",
multiSelectClearAll: "Clear all",
required: "required",
inputRequired: "Input is required.",
});
},
},
],
}),
],
parameters: {
design: {
type: "figma",
url: "path_to_url",
},
},
} as Meta;
export const actionsData = {
onItemsConfirmed: action("onItemsConfirmed"),
};
const fb = new FormBuilder();
const formObjFactory = () =>
fb.group({
select: [[], [Validators.required]],
});
function submit(formObj: FormGroup) {
formObj.markAllAsTouched();
}
type Story = StoryObj<MultiSelectComponent & { name: string; hint: string }>;
export const Loading: Story = {
render: (args) => ({
props: {
formObj: formObjFactory(),
submit: submit,
...args,
onItemsConfirmed: actionsData.onItemsConfirmed,
},
template: `
<form [formGroup]="formObj" (ngSubmit)="submit(formObj)">
<bit-form-field>
<bit-label>{{ name }}</bit-label>
<bit-multi-select
class="tw-w-full"
formControlName="select"
[baseItems]="baseItems"
[removeSelectedItems]="removeSelectedItems"
[loading]="loading"
[disabled]="disabled"
(onItemsConfirmed)="onItemsConfirmed($event)">
</bit-multi-select>
<bit-hint>{{ hint }}</bit-hint>
</bit-form-field>
<button type="submit" bitButton buttonType="primary">Submit</button>
</form>
`,
}),
args: {
baseItems: [] as any,
name: "Loading",
hint: "This is what a loading multi-select looks like",
loading: true,
},
};
export const Disabled: Story = {
...Loading,
args: {
name: "Disabled",
disabled: true,
hint: "This is what a disabled multi-select looks like",
},
};
export const Groups: Story = {
...Loading,
args: {
name: "Select groups",
hint: "Groups will be assigned to the associated member",
baseItems: [
{ id: "1", listName: "Group 1", labelName: "Group 1", icon: "bwi-family" },
{ id: "2", listName: "Group 2", labelName: "Group 2", icon: "bwi-family" },
{ id: "3", listName: "Group 3", labelName: "Group 3", icon: "bwi-family" },
{ id: "4", listName: "Group 4", labelName: "Group 4", icon: "bwi-family" },
{ id: "5", listName: "Group 5", labelName: "Group 5", icon: "bwi-family" },
{ id: "6", listName: "Group 6", labelName: "Group 6", icon: "bwi-family" },
{ id: "7", listName: "Group 7", labelName: "Group 7", icon: "bwi-family" },
],
},
};
export const Members: Story = {
...Loading,
args: {
name: "Select members",
hint: "Members will be assigned to the associated group/collection",
baseItems: [
{ id: "1", listName: "Joe Smith (jsmith@mail.me)", labelName: "Joe Smith", icon: "bwi-user" },
{
id: "2",
listName: "Tania Stone (tstone@mail.me)",
labelName: "Tania Stone",
icon: "bwi-user",
},
{
id: "3",
listName: "Matt Matters (mmatters@mail.me)",
labelName: "Matt Matters",
icon: "bwi-user",
},
{
id: "4",
listName: "Bob Robertson (brobertson@mail.me)",
labelName: "Bob Robertson",
icon: "bwi-user",
},
{
id: "5",
listName: "Ashley Fletcher (aflectcher@mail.me)",
labelName: "Ashley Fletcher",
icon: "bwi-user",
},
{
id: "6",
listName: "Rita Olson (rolson@mail.me)",
labelName: "Rita Olson",
icon: "bwi-user",
},
{
id: "7",
listName: "Final listName (fname@mail.me)",
labelName: "(fname@mail.me)",
icon: "bwi-user",
},
],
},
};
export const Collections: Story = {
...Loading,
args: {
name: "Select collections",
hint: "Collections will be assigned to the associated member",
baseItems: [
{ id: "1", listName: "Collection 1", labelName: "Collection 1", icon: "bwi-collection" },
{ id: "2", listName: "Collection 2", labelName: "Collection 2", icon: "bwi-collection" },
{ id: "3", listName: "Collection 3", labelName: "Collection 3", icon: "bwi-collection" },
{
id: "3.5",
listName: "Child Collection 1 for Parent 1",
labelName: "Child Collection 1 for Parent 1",
icon: "bwi-collection",
parentGrouping: "Parent 1",
},
{
id: "3.55",
listName: "Child Collection 2 for Parent 1",
labelName: "Child Collection 2 for Parent 1",
icon: "bwi-collection",
parentGrouping: "Parent 1",
},
{
id: "3.59",
listName: "Child Collection 3 for Parent 1",
labelName: "Child Collection 3 for Parent 1",
icon: "bwi-collection",
parentGrouping: "Parent 1",
},
{
id: "3.75",
listName: "Child Collection 1 for Parent 2",
labelName: "Child Collection 1 for Parent 2",
icon: "bwi-collection",
parentGrouping: "Parent 2",
},
{ id: "4", listName: "Collection 4", labelName: "Collection 4", icon: "bwi-collection" },
{ id: "5", listName: "Collection 5", labelName: "Collection 5", icon: "bwi-collection" },
{ id: "6", listName: "Collection 6", labelName: "Collection 6", icon: "bwi-collection" },
{ id: "7", listName: "Collection 7", labelName: "Collection 7", icon: "bwi-collection" },
],
},
};
export const MembersAndGroups: Story = {
...Loading,
args: {
name: "Select groups and members",
hint: "Members/Groups will be assigned to the associated collection",
baseItems: [
{ id: "1", listName: "Group 1", labelName: "Group 1", icon: "bwi-family" },
{ id: "2", listName: "Group 2", labelName: "Group 2", icon: "bwi-family" },
{ id: "3", listName: "Group 3", labelName: "Group 3", icon: "bwi-family" },
{ id: "4", listName: "Group 4", labelName: "Group 4", icon: "bwi-family" },
{ id: "5", listName: "Group 5", labelName: "Group 5", icon: "bwi-family" },
{ id: "6", listName: "Joe Smith (jsmith@mail.me)", labelName: "Joe Smith", icon: "bwi-user" },
{
id: "7",
listName: "Tania Stone (tstone@mail.me)",
labelName: "(tstone@mail.me)",
icon: "bwi-user",
},
],
},
};
export const RemoveSelected: Story = {
...Loading,
args: {
name: "Select groups",
hint: "Groups will be removed from the list once the dropdown is closed",
baseItems: [
{ id: "1", listName: "Group 1", labelName: "Group 1", icon: "bwi-family" },
{ id: "2", listName: "Group 2", labelName: "Group 2", icon: "bwi-family" },
{ id: "3", listName: "Group 3", labelName: "Group 3", icon: "bwi-family" },
{ id: "4", listName: "Group 4", labelName: "Group 4", icon: "bwi-family" },
{ id: "5", listName: "Group 5", labelName: "Group 5", icon: "bwi-family" },
{ id: "6", listName: "Group 6", labelName: "Group 6", icon: "bwi-family" },
{ id: "7", listName: "Group 7", labelName: "Group 7", icon: "bwi-family" },
],
removeSelectedItems: true,
},
};
export const Standalone: Story = {
render: (args) => ({
props: {
...args,
onItemsConfirmed: actionsData.onItemsConfirmed,
},
template: `
<bit-multi-select
class="tw-w-full"
[baseItems]="baseItems"
[removeSelectedItems]="removeSelectedItems"
[loading]="loading"
[disabled]="disabled"
(onItemsConfirmed)="onItemsConfirmed($event)">
</bit-multi-select>
`,
}),
args: {
baseItems: [
{ id: "1", listName: "Group 1", labelName: "Group 1", icon: "bwi-family" },
{ id: "2", listName: "Group 2", labelName: "Group 2", icon: "bwi-family" },
{ id: "3", listName: "Group 3", labelName: "Group 3", icon: "bwi-family" },
{ id: "4", listName: "Group 4", labelName: "Group 4", icon: "bwi-family" },
{ id: "5", listName: "Group 5", labelName: "Group 5", icon: "bwi-family" },
{ id: "6", listName: "Group 6", labelName: "Group 6", icon: "bwi-family" },
{ id: "7", listName: "Group 7", labelName: "Group 7", icon: "bwi-family" },
],
removeSelectedItems: true,
},
};
``` | /content/code_sandbox/libs/components/src/form-field/multi-select.stories.ts | xml | 2016-03-09T23:14:01 | 2024-08-16T15:07:51 | clients | bitwarden/clients | 8,877 | 2,716 |
```xml
/*
* This software is released under MIT license.
* The full license information can be found in LICENSE in the root directory of this project.
*/
import { renderIcon } from '../icon.renderer.js';
import { IconShapeTuple } from '../interfaces/icon.interfaces.js';
const icon = {
outline:
'<path d="M15,32H11a1,1,0,0,1-1-1V27a1,1,0,0,1,1-1h4a1,1,0,0,1,1,1v4A1,1,0,0,1,15,32Zm-3-2h2V28H12Z"/><path d="M15,16H11a1,1,0,0,0-1,1v1.2H5.8V12H7a1,1,0,0,0,1-1V7A1,1,0,0,0,7,6H3A1,1,0,0,0,2,7v4a1,1,0,0,0,1,1H4.2V29.8h6.36a.8.8,0,0,0,0-1.6H5.8V19.8H10V21a1,1,0,0,0,1,1h4a1,1,0,0,0,1-1V17A1,1,0,0,0,15,16ZM4,8H6v2H4ZM14,20H12V18h2Z"/><path d="M34,9a1,1,0,0,0-1-1H10v2H33A1,1,0,0,0,34,9Z"/><path d="M33,18H18v2H33a1,1,0,0,0,0-2Z"/><path d="M33,28H18v2H33a1,1,0,0,0,0-2Z"/>',
solid:
'<rect x="10" y="26" width="6" height="6" rx="1" ry="1"/><path d="M15,16H11a1,1,0,0,0-1,1v1.2H5.8V12H7a1,1,0,0,0,1-1V7A1,1,0,0,0,7,6H3A1,1,0,0,0,2,7v4a1,1,0,0,0,1,1H4.2V29.8H11a.8.8,0,1,0,0-1.6H5.8V19.8H10V21a1,1,0,0,0,1,1h4a1,1,0,0,0,1-1V17A1,1,0,0,0,15,16Z"/><path d="M33,8H10v2H33a1,1,0,0,0,0-2Z"/><path d="M33,18H18v2H33a1,1,0,0,0,0-2Z"/><path d="M33,28H18v2H33a1,1,0,0,0,0-2Z"/>',
};
export const treeViewIconName = 'tree-view';
export const treeViewIcon: IconShapeTuple = [treeViewIconName, renderIcon(icon)];
``` | /content/code_sandbox/packages/core/src/icon/shapes/tree-view.ts | xml | 2016-09-29T17:24:17 | 2024-08-11T17:06:15 | clarity | vmware-archive/clarity | 6,431 | 792 |
```xml
import { ShapeComponent as SC } from '../../runtime';
import { BaseCircle, Circle } from './circle';
export type HollowCircleOptions = Record<string, any>;
/**
*
*/
export const HollowCircle: SC<HollowCircleOptions> = (options, context) => {
return BaseCircle({ colorAttribute: 'stroke', ...options }, context);
};
HollowCircle.props = {
defaultMarker: 'hollowPoint',
...Circle.props,
};
``` | /content/code_sandbox/src/shape/point/hollowCircle.ts | xml | 2016-05-26T09:21:04 | 2024-08-15T16:11:17 | G2 | antvis/G2 | 12,060 | 95 |
```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.
//
import { Editor, SharedConstants } from '@bfemulator/app-shared';
import * as EditorActions from '@bfemulator/app-shared/built/state/actions/editorActions';
import { store } from '../store';
export function hasNonGlobalTabs(tabGroups?: { [editorKey: string]: Editor }): number {
tabGroups = tabGroups || store.getState().editor.editors;
let count = 0;
for (const key in tabGroups) {
if (tabGroups[key]) {
count += Object.keys(tabGroups[key].documents)
.map(documentId => tabGroups[key].documents[documentId])
.filter(document => !document.isGlobal).length;
}
}
return count;
}
/**
* Returns name of editor group, or undefined if doc is not open
*/
export function getTabGroupForDocument(documentId: string, tabGroups?: { [editorKey: string]: Editor }): string {
tabGroups = tabGroups || store.getState().editor.editors;
for (const key in tabGroups) {
if (tabGroups[key] && tabGroups[key].documents) {
if (tabGroups[key].documents[documentId]) {
return key;
}
}
}
return undefined;
}
export function showWelcomePage(): void {
store.dispatch(
EditorActions.open({
contentType: SharedConstants.ContentTypes.CONTENT_TYPE_WELCOME_PAGE,
documentId: SharedConstants.DocumentIds.DOCUMENT_ID_WELCOME_PAGE,
isGlobal: true,
})
);
}
export function showMarkdownPage(markdown: string, label: string, onLine: boolean): void {
store.dispatch(
EditorActions.open({
contentType: SharedConstants.ContentTypes.CONTENT_TYPE_MARKDOWN,
documentId: SharedConstants.DocumentIds.DOCUMENT_ID_MARKDOWN_PAGE,
isGlobal: true,
meta: { markdown, label, onLine },
})
);
}
``` | /content/code_sandbox/packages/app/client/src/state/helpers/editorHelpers.ts | xml | 2016-11-11T23:15:09 | 2024-08-16T12:45:29 | BotFramework-Emulator | microsoft/BotFramework-Emulator | 1,803 | 647 |
```xml
export * from "./DirectoryServiceDescriptor";
export { MockDirectoryService } from './MockDirectoryService';
``` | /content/code_sandbox/samples/react-rhythm-of-business-calendar/src/common/services/directory/index.ts | xml | 2016-08-30T17:21:43 | 2024-08-16T18:41:32 | sp-dev-fx-webparts | pnp/sp-dev-fx-webparts | 2,027 | 21 |
```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 {BaseError, BASE_ERROR_TYPE} from './BaseError';
export enum CLIENT_ERROR_TYPE {
CLIENT_NOT_SET = 'CLIENT_NOT_SET',
DATABASE_FAILURE = 'DATABASE_FAILURE',
NO_CLIENT_ID = 'NO_CLIENT_ID',
NO_USER_ID = 'NO_USER_ID',
NO_VALID_CLIENT = 'NO_VALID_CLIENT',
REQUEST_FAILURE = 'REQUEST_FAILURE',
REQUEST_FORBIDDEN = 'REQUEST_FORBIDDEN',
TOO_MANY_CLIENTS = 'TOO_MANY_CLIENTS',
}
export class ClientError extends BaseError {
constructor(type: CLIENT_ERROR_TYPE | BASE_ERROR_TYPE, message: string) {
super(type, message);
}
static get MESSAGE(): Record<CLIENT_ERROR_TYPE, string> {
return {
CLIENT_NOT_SET: 'Local client is not yet set',
DATABASE_FAILURE: 'Client related database transaction failed',
NO_CLIENT_ID: 'Client ID is not defined',
NO_USER_ID: 'User ID is not defined',
NO_VALID_CLIENT: 'No valid local client found',
REQUEST_FAILURE: 'Client related backend request failed',
REQUEST_FORBIDDEN: 'Client related backend request forbidden',
TOO_MANY_CLIENTS: 'User has reached the maximum of allowed clients',
};
}
static get TYPE(): Record<CLIENT_ERROR_TYPE, CLIENT_ERROR_TYPE> {
return {
CLIENT_NOT_SET: CLIENT_ERROR_TYPE.CLIENT_NOT_SET,
DATABASE_FAILURE: CLIENT_ERROR_TYPE.DATABASE_FAILURE,
NO_CLIENT_ID: CLIENT_ERROR_TYPE.NO_CLIENT_ID,
NO_USER_ID: CLIENT_ERROR_TYPE.NO_USER_ID,
NO_VALID_CLIENT: CLIENT_ERROR_TYPE.NO_VALID_CLIENT,
REQUEST_FAILURE: CLIENT_ERROR_TYPE.REQUEST_FAILURE,
REQUEST_FORBIDDEN: CLIENT_ERROR_TYPE.REQUEST_FORBIDDEN,
TOO_MANY_CLIENTS: CLIENT_ERROR_TYPE.TOO_MANY_CLIENTS,
};
}
}
``` | /content/code_sandbox/src/script/error/ClientError.ts | xml | 2016-07-21T15:34:05 | 2024-08-16T11:40:13 | wire-webapp | wireapp/wire-webapp | 1,125 | 466 |
```xml
import * as React from 'react';
import { List } from '@mui/material';
import { RecordContextProvider, useListContext } from 'react-admin';
import { ReviewItem } from './ReviewItem';
import { Review } from './../types';
const ReviewListMobile = () => {
const { data, error, isPending, total } = useListContext<Review>();
if (isPending || error || Number(total) === 0) {
return null;
}
return (
<List sx={{ width: 'calc(100vw - 33px)' }}>
{data.map(review => (
<RecordContextProvider value={review} key={review.id}>
<ReviewItem />
</RecordContextProvider>
))}
</List>
);
};
export default ReviewListMobile;
``` | /content/code_sandbox/examples/demo/src/reviews/ReviewListMobile.tsx | xml | 2016-07-13T07:58:54 | 2024-08-16T18:32:27 | react-admin | marmelab/react-admin | 24,624 | 168 |
```xml
export * from "./lib/ui-ngx-bootstrap";
``` | /content/code_sandbox/projects/ng-dynamic-forms/ui-ngx-bootstrap/src/public-api.ts | xml | 2016-06-01T20:26:33 | 2024-08-05T16:40:39 | ng-dynamic-forms | udos86/ng-dynamic-forms | 1,315 | 11 |
```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.
*/
/** Helper function for formatting ratios as CSS percentage values. */
export function formatPercentage(ratio: number) {
return `${(ratio * 100).toFixed(2)}%`;
}
/**
* Mutates the values array by filling all the values between start and end index (inclusive) with the fill value.
*/
export function fillValues<T>(values: T[], startIndex: number, endIndex: number, fillValue: T) {
const inc = startIndex < endIndex ? 1 : -1;
for (let index = startIndex; index !== endIndex + inc; index += inc) {
values[index] = fillValue;
}
}
/**
* Returns the minimum element of an array as determined by comparing the results of calling the arg function on each
* element of the array. The function will only be called once per element.
*/
export function argMin<T>(values: T[], argFn: (value: T) => any): T | undefined {
if (values.length === 0) {
return undefined;
}
let minValue = values[0];
let minArg = argFn(minValue);
for (let index = 1; index < values.length; index++) {
const value = values[index];
const arg = argFn(value);
if (arg < minArg) {
minValue = value;
minArg = arg;
}
}
return minValue;
}
``` | /content/code_sandbox/packages/core/src/components/slider/sliderUtils.ts | xml | 2016-10-25T21:17:50 | 2024-08-16T15:14:48 | blueprint | palantir/blueprint | 20,593 | 332 |
```xml
export interface LiveAddToPostResponse {
pk: string;
user: LiveAddToPostUser;
broadcasts: LiveAddToPostBroadcast[];
last_seen_broadcast_ts: number;
can_reply: boolean;
can_reshare: boolean;
status: string;
}
export interface LiveAddToPostBroadcast {
id: string;
broadcast_status: string;
broadcast_owner: LiveAddToPostBroadcastOwner;
published_time: number;
hide_from_feed_unit: boolean;
media_id: string;
broadcast_message: string;
organic_tracking_token: string;
}
export interface LiveAddToPostUser {
pk: number;
username: string;
full_name: string;
is_private: boolean;
profile_pic_url: string;
is_verified: boolean;
}
export interface LiveAddToPostBroadcastOwner {
pk: number;
username: string;
full_name: string;
is_private: boolean;
profile_pic_url: string;
friendship_status: LiveAddToPostFriendshipstatus;
is_verified: boolean;
}
export interface LiveAddToPostFriendshipstatus {
following: boolean;
followed_by: boolean;
blocking: boolean;
muting: boolean;
is_private: boolean;
incoming_request: boolean;
outgoing_request: boolean;
is_bestie: boolean;
is_restricted: boolean;
}
``` | /content/code_sandbox/src/responses/live.add-to-post.response.ts | xml | 2016-06-09T12:14:48 | 2024-08-16T10:07:22 | instagram-private-api | dilame/instagram-private-api | 5,877 | 290 |
```xml
import type { TransformedToken } from './DesignToken.ts';
import type { FormatFn } from './Format.ts';
import type { LocalOptions, Config } from './Config.ts';
import type { Filter } from './Filter.ts';
// Generally, overriding these would break most formats and are meant
// for the FormattedVariables/createPropertyFormatter helpers,
export interface FormattingOptions extends FormattingOverrides {
prefix?: string;
suffix?: string;
lineSeparator?: string;
separator?: string;
}
// These you can usually override on the formats level without breaking it
// to customize the output
// Be careful with indentation if the output syntax is indentation-sensitive (e.g. python, yaml)
export interface FormattingOverrides {
commentStyle?: 'short' | 'long' | 'none';
commentPosition?: 'above' | 'inline';
indentation?: string;
header?: string;
footer?: string;
fileHeaderTimestamp?: boolean;
}
export type FileHeader = (
defaultMessage: string[],
options?: Config,
) => Promise<string[]> | string[];
export interface File {
destination?: string;
format?: string | FormatFn;
filter?: string | Partial<TransformedToken> | Filter['filter'];
options?: LocalOptions;
}
``` | /content/code_sandbox/types/File.ts | xml | 2016-11-29T20:53:51 | 2024-08-16T14:22:09 | style-dictionary | amzn/style-dictionary | 3,815 | 259 |
```xml
import * as React from 'react';
import cx from 'classnames';
import { createSvgIcon } from '../utils/createSvgIcon';
import { iconClassNames } from '../utils/iconClassNames';
export const FilesUploadIcon = createSvgIcon({
svg: ({ classes }) => (
<svg role="presentation" focusable="false" viewBox="2 2 16 16" className={classes.svg}>
<path
className={cx(iconClassNames.outline, classes.outlinePart)}
d="M15 3.00122C15.2761 3.00122 15.5 2.77736 15.5 2.50122C15.5 2.25576 15.3231 2.05161 15.0899 2.00928L15 2.00122H4C3.72386 2.00122 3.5 2.22508 3.5 2.50122C3.5 2.74668 3.67688 2.95083 3.91012 2.99317L4 3.00122H15ZM9.50014 17.999C9.7456 17.999 9.9497 17.822 9.99197 17.5887L10 17.4989L9.996 5.70501L13.6414 9.35334C13.8148 9.52707 14.0842 9.5466 14.2792 9.41179L14.3485 9.354C14.5222 9.18059 14.5418 8.91118 14.407 8.71619L14.3492 8.64689L9.85745 4.14689C9.78495 4.07426 9.69568 4.02858 9.60207 4.00986L9.49608 4.00012C9.33511 4.00012 9.19192 4.07624 9.10051 4.19444L4.64386 8.64631C4.44846 8.84143 4.44823 9.15802 4.64336 9.35342C4.8168 9.52711 5.08621 9.54658 5.28117 9.41173L5.35046 9.35392L8.996 5.71301L9 17.4992C9.00008 17.7753 9.224 17.999 9.50014 17.999Z"
/>
<g className={cx(iconClassNames.filled, classes.filledPart)}>
<path d="M4.5 2C4.08579 2 3.75 2.33579 3.75 2.75C3.75 3.16421 4.08579 3.5 4.5 3.5H15C15.4142 3.5 15.75 3.16421 15.75 2.75C15.75 2.33579 15.4142 2 15 2H4.5Z" />
<path d="M10.4963 17.3493C10.4466 17.7154 10.1328 17.9976 9.75311 17.9976C9.3389 17.9976 9.00311 17.6618 9.00311 17.2476L9.00249 7.05856L6.02995 10.026L5.94578 10.0986C5.65202 10.3162 5.23537 10.2917 4.96929 10.0253C4.67661 9.73215 4.67695 9.25728 4.97005 8.96459L9.25962 4.67989C9.33377 4.61512 9.42089 4.56485 9.5169 4.53385L9.59777 4.51072C9.64749 4.50019 9.69837 4.4947 9.74849 4.4947L9.80855 4.49661L9.87781 4.50451L9.99828 4.53462L10.0895 4.57254L10.1259 4.59371L10.2169 4.6523L10.2875 4.71481L14.5303 8.96546L14.6029 9.04964C14.8205 9.34345 14.7959 9.7601 14.5294 10.0261L14.4452 10.0987C14.1514 10.3162 13.7347 10.2917 13.4687 10.0251L10.5025 7.05456L10.5031 17.2476L10.4963 17.3493Z" />
</g>
</svg>
),
displayName: 'FilesUploadIcon',
});
``` | /content/code_sandbox/packages/fluentui/react-icons-northstar/src/components/FilesUploadIcon.tsx | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 1,185 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="21507" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="Lsa-QA-3zn">
<device id="retina4_7" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21505"/>
<capability name="System colors in document resources" minToolsVersion="11.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="aL5-4D-Ur8">
<objects>
<viewController id="Lsa-QA-3zn" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="0g6-xG-Wkj">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="center" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="launch-icon.png" translatesAutoresizingMaskIntoConstraints="NO" id="cqW-9w-FC0">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<color key="backgroundColor" red="0.035294117647058823" green="0.062745098039215685" blue="0.10980392156862745" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</imageView>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstAttribute="bottom" secondItem="cqW-9w-FC0" secondAttribute="bottom" id="2Ue-hX-Tna"/>
<constraint firstAttribute="trailing" secondItem="cqW-9w-FC0" secondAttribute="trailing" id="Sfz-tk-PSg"/>
<constraint firstItem="cqW-9w-FC0" firstAttribute="leading" secondItem="0g6-xG-Wkj" secondAttribute="leading" id="UQo-dC-xeN"/>
<constraint firstItem="cqW-9w-FC0" firstAttribute="top" secondItem="0g6-xG-Wkj" secondAttribute="top" id="YrE-J2-QHf"/>
<constraint firstItem="cqW-9w-FC0" firstAttribute="centerX" secondItem="0g6-xG-Wkj" secondAttribute="centerX" id="ZQS-4G-GAL"/>
<constraint firstItem="cqW-9w-FC0" firstAttribute="centerY" secondItem="0g6-xG-Wkj" secondAttribute="centerY" id="noT-Rj-8Uy"/>
</constraints>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="hOp-FG-FML" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="-46" y="-243"/>
</scene>
</scenes>
<resources>
<image name="launch-icon.png" width="84" height="88"/>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
</resources>
</document>
``` | /content/code_sandbox/ios/launch-image-universal.storyboard | xml | 2016-02-22T21:48:48 | 2024-08-16T19:01:49 | status-mobile | status-im/status-mobile | 3,877 | 882 |
```xml
import { ErrorMessage } from '../../Error/ErrorMessage'
import { ApiCallError } from '../../Error/ApiCallError'
import { HttpResponse } from '@standardnotes/responses'
import { AuthenticatorApiServiceInterface } from './AuthenticatorApiServiceInterface'
import { AuthenticatorApiOperations } from './AuthenticatorApiOperations'
import {
ListAuthenticatorsResponseBody,
DeleteAuthenticatorResponseBody,
GenerateAuthenticatorRegistrationOptionsResponseBody,
VerifyAuthenticatorRegistrationResponseBody,
GenerateAuthenticatorAuthenticationOptionsResponseBody,
} from '../../Response'
import { AuthenticatorServerInterface } from '../../Server/Authenticator/AuthenticatorServerInterface'
export class AuthenticatorApiService implements AuthenticatorApiServiceInterface {
private operationsInProgress: Map<AuthenticatorApiOperations, boolean>
constructor(private authenticatorServer: AuthenticatorServerInterface) {
this.operationsInProgress = new Map()
}
async list(): Promise<HttpResponse<ListAuthenticatorsResponseBody>> {
if (this.operationsInProgress.get(AuthenticatorApiOperations.List)) {
throw new ApiCallError(ErrorMessage.GenericInProgress)
}
this.operationsInProgress.set(AuthenticatorApiOperations.List, true)
try {
const response = await this.authenticatorServer.list({})
return response
} catch (error) {
throw new ApiCallError(ErrorMessage.GenericFail)
} finally {
this.operationsInProgress.set(AuthenticatorApiOperations.List, false)
}
}
async delete(authenticatorId: string): Promise<HttpResponse<DeleteAuthenticatorResponseBody>> {
if (this.operationsInProgress.get(AuthenticatorApiOperations.Delete)) {
throw new ApiCallError(ErrorMessage.GenericInProgress)
}
this.operationsInProgress.set(AuthenticatorApiOperations.Delete, true)
try {
const response = await this.authenticatorServer.delete({
authenticatorId,
})
return response
} catch (error) {
throw new ApiCallError(ErrorMessage.GenericFail)
} finally {
this.operationsInProgress.set(AuthenticatorApiOperations.Delete, false)
}
}
async generateRegistrationOptions(): Promise<HttpResponse<GenerateAuthenticatorRegistrationOptionsResponseBody>> {
if (this.operationsInProgress.get(AuthenticatorApiOperations.GenerateRegistrationOptions)) {
throw new ApiCallError(ErrorMessage.GenericInProgress)
}
this.operationsInProgress.set(AuthenticatorApiOperations.GenerateRegistrationOptions, true)
try {
const response = await this.authenticatorServer.generateRegistrationOptions()
return response
} catch (error) {
throw new ApiCallError(ErrorMessage.GenericFail)
} finally {
this.operationsInProgress.set(AuthenticatorApiOperations.GenerateRegistrationOptions, false)
}
}
async verifyRegistrationResponse(
userUuid: string,
name: string,
attestationResponse: Record<string, unknown>,
): Promise<HttpResponse<VerifyAuthenticatorRegistrationResponseBody>> {
if (this.operationsInProgress.get(AuthenticatorApiOperations.VerifyRegistrationResponse)) {
throw new ApiCallError(ErrorMessage.GenericInProgress)
}
this.operationsInProgress.set(AuthenticatorApiOperations.VerifyRegistrationResponse, true)
try {
const response = await this.authenticatorServer.verifyRegistrationResponse({
userUuid,
name,
attestationResponse,
})
return response
} catch (error) {
throw new ApiCallError(ErrorMessage.GenericFail)
} finally {
this.operationsInProgress.set(AuthenticatorApiOperations.VerifyRegistrationResponse, false)
}
}
async generateAuthenticationOptions(
username: string,
): Promise<HttpResponse<GenerateAuthenticatorAuthenticationOptionsResponseBody>> {
if (this.operationsInProgress.get(AuthenticatorApiOperations.GenerateAuthenticationOptions)) {
throw new ApiCallError(ErrorMessage.GenericInProgress)
}
this.operationsInProgress.set(AuthenticatorApiOperations.GenerateAuthenticationOptions, true)
try {
const response = await this.authenticatorServer.generateAuthenticationOptions({
username,
})
return response
} catch (error) {
throw new ApiCallError(ErrorMessage.GenericFail)
} finally {
this.operationsInProgress.set(AuthenticatorApiOperations.GenerateAuthenticationOptions, false)
}
}
}
``` | /content/code_sandbox/packages/api/src/Domain/Client/Authenticator/AuthenticatorApiService.ts | xml | 2016-12-05T23:31:33 | 2024-08-16T06:51:19 | app | standardnotes/app | 5,180 | 819 |
```xml
import type { Dependencies } from "@Core/Dependencies";
import type { DependencyRegistry } from "@Core/DependencyRegistry";
import type { ExtensionBootstrapResult } from "../ExtensionBootstrapResult";
import type { ExtensionModule } from "../ExtensionModule";
import { CurrencyConversion } from "./CurrencyConversion";
export class CurrencyConversionModule implements ExtensionModule {
public bootstrap(dependencyRegistry: DependencyRegistry<Dependencies>): ExtensionBootstrapResult {
return {
extension: new CurrencyConversion(
dependencyRegistry.get("SettingsManager"),
dependencyRegistry.get("Net"),
dependencyRegistry.get("AssetPathResolver"),
),
};
}
}
``` | /content/code_sandbox/src/main/Extensions/CurrencyConversion/CurrencyConversionModule.ts | xml | 2016-10-11T04:59:52 | 2024-08-16T11:53:31 | ueli | oliverschwendener/ueli | 3,543 | 125 |
```xml
<GhostDoc>
<IgnoreFilePatterns>
<IgnoreFilePattern>*.min.js</IgnoreFilePattern>
<IgnoreFilePattern>jquery*.js</IgnoreFilePattern>
</IgnoreFilePatterns>
<SpellChecker>
<IncludeExtensions>
</IncludeExtensions>
<IgnoreExtensions>
</IgnoreExtensions>
<IgnoreFiles>
</IgnoreFiles>
</SpellChecker>
<HelpConfigurations selected="HelpFile">
<HelpConfiguration name="HelpFile">
<OutputPath>.\Help</OutputPath>
<CleanupOutputPath>true</CleanupOutputPath>
<HelpFileName>Compare-NET-Objects</HelpFileName>
<HelpFileNamingMethod>MemberName</HelpFileNamingMethod>
<ImageFolderPath />
<Theme />
<HtmlFormats>
<HtmlHelp>true</HtmlHelp>
<MSHelpViewer>false</MSHelpViewer>
<MSHelp2>false</MSHelp2>
<Website>false</Website>
</HtmlFormats>
<IncludeScopes>
<Public>true</Public>
<Internal>false</Internal>
<Protected>false</Protected>
<Private>false</Private>
<Inherited>true</Inherited>
<InheritedFromReferences>true</InheritedFromReferences>
<EnableTags>false</EnableTags>
<TagList />
<AutoGeneratedDocs />
<DocsThatRequireEditing />
</IncludeScopes>
<SyntaxLanguages>
<CSharp>true</CSharp>
<VisualBasic>true</VisualBasic>
<CPlusPlus>true</CPlusPlus>
</SyntaxLanguages>
<ResolveCrefLinks>true</ResolveCrefLinks>
<HeaderText />
<FooterText />
<SelectedProjects />
</HelpConfiguration>
</HelpConfigurations>
<GeneralProperties>
</GeneralProperties>
</GhostDoc>
``` | /content/code_sandbox/Compare-NET-Objects.sln.GhostDoc.xml | xml | 2016-01-23T18:21:02 | 2024-08-11T07:07:24 | Compare-Net-Objects | GregFinzer/Compare-Net-Objects | 1,052 | 386 |
```xml
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
<response>
<result code="1000">
<msg>Command completed successfully</msg>
</result>
<resData>
<host:infData
xmlns:host="urn:ietf:params:xml:ns:host-1.0">
<host:name>ns4.fakesite.example</host:name>
<host:roid>NS1_EXAMPLE1-REP</host:roid>
<host:status s="ok"/>
<host:addr ip="v4">192.0.2.30</host:addr>
<host:addr ip="v4">192.0.2.3</host:addr>
<host:addr ip="v6">1080::8:800:200c:417b</host:addr>
<host:clID>NewRegistrar</host:clID>
<host:crID>NewRegistrar</host:crID>
<host:crDate>2000-06-09T00:01:00Z</host:crDate>
</host:infData>
</resData>
<trID>
<clTRID>ABC-12345</clTRID>
<svTRID>server-trid</svTRID>
</trID>
</response>
</epp>
``` | /content/code_sandbox/core/src/test/resources/google/registry/flows/host_info_response_fakesite2.xml | xml | 2016-02-29T20:16:48 | 2024-08-15T19:49:29 | nomulus | google/nomulus | 1,685 | 303 |
```xml
<Project Sdk="Microsoft.NET.Sdk">
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="$(NewtonsoftJsonPackageVersion)" />
<PackageReference Include="Newtonsoft.Json" Version ="9.0.2-beta2"/>
</ItemGroup>
</Project>
``` | /content/code_sandbox/test/TestAssets/TestProjects/TargetManifests/NewtonsoftMultipleVersions.xml | xml | 2016-07-22T21:26:02 | 2024-08-16T17:23:58 | sdk | dotnet/sdk | 2,627 | 61 |
```xml
import { GraphQLTaggedNode } from "react-relay";
import { ReaderFragment, SingularReaderSelector } from "relay-runtime";
import { LOCAL_ID, LOCAL_TYPE } from "./";
import { resolveModule } from "./helpers";
/**
* Turn a fragment on `Local` to a `SingularReaderSelector`.
*/
export default function getLocalFragmentSelector(
fragmentSpec: GraphQLTaggedNode
) {
const fragment = resolveModule(fragmentSpec as ReaderFragment);
if (fragment.kind !== "Fragment") {
throw new Error("Expected fragment");
}
if (fragment.type !== LOCAL_TYPE) {
throw new Error(`Type must be "Local" in "Fragment ${fragment.name}"`);
}
// TODO: (cvle) This is part is still hacky.
// Waiting for a solution to path_to_url
const selector: SingularReaderSelector = {
kind: undefined as any,
owner: undefined as any,
dataID: LOCAL_ID,
node: {
type: fragment.type,
kind: fragment.kind,
name: fragment.name,
metadata: fragment.metadata,
selections: fragment.selections,
argumentDefinitions: [],
},
variables: {},
};
return selector;
}
``` | /content/code_sandbox/client/src/core/client/framework/lib/relay/getLocalFragmentSelector.ts | xml | 2016-10-31T16:14:05 | 2024-08-06T16:15:57 | talk | coralproject/talk | 1,881 | 258 |
```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>
<parent>
<groupId>io.camunda</groupId>
<artifactId>tasklist-parent</artifactId>
<version>8.6.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>tasklist-webapp</artifactId>
<name>Tasklist Webapp</name>
<dependencies>
<dependency>
<groupId>io.camunda</groupId>
<artifactId>tasklist-common</artifactId>
</dependency>
<dependency>
<groupId>io.camunda</groupId>
<artifactId>tasklist-importer</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>io.camunda</groupId>
<artifactId>tasklist-archiver</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>io.camunda</groupId>
<artifactId>tasklist-webjar</artifactId>
</dependency>
<dependency>
<groupId>io.camunda</groupId>
<artifactId>tasklist-els-schema</artifactId>
</dependency>
<!-- ZEEBE -->
<dependency>
<groupId>io.camunda</groupId>
<artifactId>zeebe-client-java</artifactId>
</dependency>
<!-- SPRING BOOT -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-logging</artifactId>
</exclusion>
<exclusion>
<groupId>org.elasticsearch.client</groupId>
<artifactId>transport</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-log4j2</artifactId>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j2-impl</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.session</groupId>
<artifactId>spring-session-data-redis</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
<!-- ELASTICSEARCH -->
<dependency>
<groupId>org.elasticsearch.client</groupId>
<artifactId>elasticsearch-rest-high-level-client</artifactId>
</dependency>
<!-- path_to_url -->
<dependency>
<groupId>org.glassfish</groupId>
<artifactId>jakarta.json</artifactId>
</dependency>
<dependency>
<groupId>io.camunda</groupId>
<artifactId>identity-spring-boot-starter</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-logging</artifactId>
</exclusion>
<exclusion>
<groupId>org.elasticsearch.client</groupId>
<artifactId>transport</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>io.camunda</groupId>
<artifactId>identity-spring-boot-autoconfigure</artifactId>
</dependency>
<!-- Micrometer Prometheus -->
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-registry-prometheus-simpleclient</artifactId>
</dependency>
<!-- OAuth0 -->
<dependency>
<groupId>io.camunda</groupId>
<artifactId>tasklist-mvc-auth-commons</artifactId>
</dependency>
<!-- OAuth2 token authorization -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-oauth2-resource-server</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-oauth2-resource-server</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-oauth2-jose</artifactId>
</dependency>
<!-- OpenAPI -->
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
</dependency>
<!-- GraphQL -->
<dependency>
<groupId>com.graphql-java-kickstart</groupId>
<artifactId>graphql-spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>com.graphql-java-kickstart</groupId>
<artifactId>graphql-spring-boot-autoconfigure</artifactId>
</dependency>
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>sts</artifactId>
</dependency>
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-sts</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>
<dependency>
<groupId>jakarta.json</groupId>
<artifactId>jakarta.json-api</artifactId>
</dependency>
<dependency>
<groupId>org.thymeleaf</groupId>
<artifactId>thymeleaf</artifactId>
</dependency>
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-websocket</artifactId>
</dependency>
<dependency>
<groupId>com.graphql-java</groupId>
<artifactId>graphql-java</artifactId>
</dependency>
<dependency>
<groupId>io.github.graphql-java</groupId>
<artifactId>graphql-java-annotations</artifactId>
</dependency>
<dependency>
<groupId>org.opensearch.client</groupId>
<artifactId>opensearch-java</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jdk8</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.session</groupId>
<artifactId>spring-session-core</artifactId>
</dependency>
<dependency>
<groupId>org.elasticsearch</groupId>
<artifactId>elasticsearch-x-content</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
</dependency>
<dependency>
<groupId>com.graphql-java</groupId>
<artifactId>java-dataloader</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-web</artifactId>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents.core5</groupId>
<artifactId>httpcore5</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.graphql-java-kickstart</groupId>
<artifactId>graphql-java-servlet</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
</dependency>
<dependency>
<groupId>io.swagger.core.v3</groupId>
<artifactId>swagger-annotations-jakarta</artifactId>
</dependency>
<dependency>
<groupId>com.auth0</groupId>
<artifactId>java-jwt</artifactId>
</dependency>
<dependency>
<groupId>com.graphql-java-kickstart</groupId>
<artifactId>graphql-java-kickstart</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-crypto</artifactId>
</dependency>
<dependency>
<groupId>com.auth0</groupId>
<artifactId>auth0</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>
<dependency>
<groupId>org.elasticsearch.client</groupId>
<artifactId>elasticsearch-rest-client</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-api</artifactId>
</dependency>
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
</dependency>
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-starter-common</artifactId>
</dependency>
<dependency>
<groupId>net.jodah</groupId>
<artifactId>failsafe</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot</artifactId>
</dependency>
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-core</artifactId>
<exclusions>
<exclusion>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-annotations-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-junit-jupiter</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.elasticsearch</groupId>
<artifactId>elasticsearch</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
</dependency>
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>jakarta.annotation</groupId>
<artifactId>jakarta.annotation-api</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-core</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-actuator-autoconfigure</artifactId>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jsr310</artifactId>
</dependency>
<dependency>
<groupId>io.swagger.core.v3</groupId>
<artifactId>swagger-models-jakarta</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-autoconfigure</artifactId>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-params</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-collections4</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aop</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-config</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-oauth2-core</artifactId>
</dependency>
<dependency>
<groupId>io.camunda</groupId>
<artifactId>identity-sdk</artifactId>
</dependency>
<dependency>
<groupId>org.apache.lucene</groupId>
<artifactId>lucene-core</artifactId>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<scope>test</scope>
</dependency>
<!-- TEST -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jetbrains</groupId>
<artifactId>annotations</artifactId>
<scope>compile</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<configuration>
<usedDependencies>
<dependency>io.camunda:tasklist-importer</dependency>
<dependency>io.camunda:tasklist-archiver</dependency>
<dependency>io.camunda:tasklist-webjar</dependency>
<dependency>io.camunda:identity-spring-boot-starter</dependency>
<dependency>org.springframework.boot:spring-boot-starter-web</dependency>
<dependency>org.springframework.boot:spring-boot-starter-validation</dependency>
<dependency>org.springframework.boot:spring-boot-starter-log4j2</dependency>
<dependency>org.springframework.boot:spring-boot-starter-security</dependency>
<dependency>org.springframework.boot:spring-boot-starter-oauth2-resource-server</dependency>
<dependency>org.springframework.boot:spring-boot-starter-thymeleaf</dependency>
<dependency>org.springframework.boot:spring-boot-starter-actuator</dependency>
<dependency>org.springdoc:springdoc-openapi-starter-webmvc-ui</dependency>
<dependency>org.springframework.session:spring-session-data-redis</dependency>
<dependency>com.graphql-java-kickstart:graphql-spring-boot-starter</dependency>
<dependency>org.thymeleaf:thymeleaf</dependency>
<dependency>jakarta.json:jakarta.json-api</dependency>
<dependency>io.micrometer:micrometer-registry-prometheus-simpleclient</dependency>
<!-- Thesse dependencies are indirectly used by the awssdk auth plugin. It requires these
classes on the classpath in order to resolve the AWS credentials -->
<dependency>software.amazon.awssdk:sts</dependency>
<dependency>com.amazonaws:aws-java-sdk-sts</dependency>
</usedDependencies>
<ignoredUnusedDeclaredDependencies>
<dep>jakarta.servlet:jakarta.servlet-api</dep>
<dep>jakarta.annotation:jakarta.annotation-api</dep>
<dep>com.nimbusds:nimbus-jose-jwt</dep>
<dep>org.springframework:spring-aspects</dep>
</ignoredUnusedDeclaredDependencies>
<ignoredNonTestScopedDependencies>
<dependency>com.fasterxml.jackson.datatype:jackson-datatype-jdk8</dependency>
<dependency>com.fasterxml.jackson.datatype:jackson-datatype-jsr310</dependency>
</ignoredNonTestScopedDependencies>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemPropertyVariables>
<spring.profiles.active>test</spring.profiles.active>
</systemPropertyVariables>
</configuration>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<configuration>
<excludes>
<exclude>io/camunda/tasklist/webapp/es/enums/*</exclude>
<exclude>io/camunda/tasklist/webapp/config/*</exclude>
<exclude>io/camunda/tasklist/Application.class</exclude>
<exclude>io/camunda/tasklist/webapp/ForwardErrorController.class</exclude>
<exclude>io/camunda/tasklist/webapp/StartupBean.class</exclude>
<exclude>io/camunda/tasklist/webapp/IndexController.class</exclude>
<exclude>io/camunda/tasklist/WebappModuleConfiguration.class</exclude>
<exclude>io/camunda/tasklist/webapp/graphql/*</exclude>
<exclude>io/camunda/tasklist/webapp/graphql/mutation/*</exclude>
<exclude>io/camunda/tasklist/webapp/graphql/query/*</exclude>
<exclude>io/camunda/tasklist/webapp/graphql/entity/*</exclude>
<exclude>io/camunda/tasklist/webapp/management/dto/*</exclude>
<exclude>io/camunda/tasklist/webapp/es/dao/*</exclude>
<exclude>io/camunda/tasklist/webapp/es/dao/response/*</exclude>
</excludes>
</configuration>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<goals>
<goal>report</goal>
</goals>
<phase>prepare-package</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
``` | /content/code_sandbox/tasklist/webapp/pom.xml | xml | 2016-03-20T03:38:04 | 2024-08-16T19:59:58 | camunda | camunda/camunda | 3,172 | 4,300 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="bulbasaur">Bisasam</string>
<string name="ivysaur">Bisaknosp</string>
<string name="venusaur">Bisaflor</string>
<string name="charmander">Glumanda</string>
<string name="charmeleon">Glutexo</string>
<string name="charizard">Glurak</string>
<string name="squirtle">Schiggy</string>
<string name="wartortle">Schillok</string>
<string name="blastoise">Turtok</string>
<string name="caterpie">Raupy</string>
<string name="metapod">Safcon</string>
<string name="butterfree">Smettbo</string>
<string name="weedle">Hornliu</string>
<string name="kakuna">Kokuna</string>
<string name="beedrill">Bibor</string>
<string name="pidgey">Taubsi</string>
<string name="pidgeotto">Tauboga</string>
<string name="pidgeot">Tauboss</string>
<string name="rattata">Rattfratz</string>
<string name="raticate">Rattikarl</string>
<string name="spearow">Habitak</string>
<string name="fearow">Ibitak</string>
<string name="ekans">Rettan</string>
<string name="arbok">Arbok</string>
<string name="pikachu">Pikachu</string>
<string name="raichu">Raichu</string>
<string name="sandshrew">Sandan</string>
<string name="sandslash">Sandamer</string>
<string name="nidoran_female">Nidoran♀</string>
<string name="nidorina">Nidorina</string>
<string name="nidoqueen">Nidoqueen</string>
<string name="nidoran_male">Nidoran♂</string>
<string name="nidorino">Nidorino</string>
<string name="nidoking">Nidoking</string>
<string name="clefairy">Piepi</string>
<string name="clefable">Pixi</string>
<string name="vulpix">Vulpix</string>
<string name="ninetales">Vulnona</string>
<string name="jigglypuff">Pummeluff</string>
<string name="wigglytuff">Knuddeluff</string>
<string name="zubat">Zubat</string>
<string name="golbat">Golbat</string>
<string name="oddish">Myrapla</string>
<string name="gloom">Duflor</string>
<string name="vileplume">Giflor</string>
<string name="paras">Paras</string>
<string name="parasect">Parasek</string>
<string name="venonat">Bluzuk</string>
<string name="venomoth">Omot</string>
<string name="diglett">Digda</string>
<string name="dugtrio">Digdri</string>
<string name="meowth">Mauzi</string>
<string name="persian">Snobilikat</string>
<string name="psyduck">Enton</string>
<string name="golduck">Entoron</string>
<string name="mankey">Menki</string>
<string name="primeape">Rasaff</string>
<string name="growlithe">Fukano</string>
<string name="arcanine">Arkani</string>
<string name="poliwag">Quapsel</string>
<string name="poliwhirl">Quaputzi</string>
<string name="poliwrath">Quappo</string>
<string name="abra">Abra</string>
<string name="kadabra">Kadabra</string>
<string name="alakazam">Simsala</string>
<string name="machop">Machollo</string>
<string name="machoke">Maschock</string>
<string name="machamp">Machomei</string>
<string name="bellsprout">Knofensa</string>
<string name="weepinbell">Ultrigaria</string>
<string name="victreebel">Sarzenia</string>
<string name="tentacool">Tentacha</string>
<string name="tentacruel">Tentoxa</string>
<string name="geodude">Kleinstein</string>
<string name="graveler">Georok</string>
<string name="golem">Geowaz</string>
<string name="ponyta">Ponita</string>
<string name="rapidash">Gallopa</string>
<string name="slowpoke">Flegmon</string>
<string name="slowbro">Lahmus</string>
<string name="magnemite">Magnetilo</string>
<string name="magneton">Magneton</string>
<string name="farfetchd">Porenta</string>
<string name="doduo">Dodu</string>
<string name="dodrio">Dodri</string>
<string name="seel">Jurob</string>
<string name="dewgong">Jugong</string>
<string name="grimer">Sleima</string>
<string name="muk">Sleimok</string>
<string name="shellder">Muschas</string>
<string name="cloyster">Austos</string>
<string name="gastly">Nebulak</string>
<string name="haunter">Alpollo</string>
<string name="gengar">Gengar</string>
<string name="onix">Onix</string>
<string name="drowzee">Traumato</string>
<string name="hypno">Hypno</string>
<string name="krabby">Krabby</string>
<string name="kingler">Kingler</string>
<string name="voltorb">Voltobal</string>
<string name="electrode">Lektrobal</string>
<string name="exeggcute">Owei</string>
<string name="exeggutor">Kokowei</string>
<string name="cubone">Tragosso</string>
<string name="marowak">Knogga</string>
<string name="hitmonlee">Kicklee</string>
<string name="hitmonchan">Nockchan</string>
<string name="lickitung">Schlurp</string>
<string name="koffing">Smogon</string>
<string name="weezing">Smogmog</string>
<string name="rhyhorn">Rihorn</string>
<string name="rhydon">Rizeros</string>
<string name="chansey">Chaneira</string>
<string name="tangela">Tangela</string>
<string name="kangaskhan">Kangama</string>
<string name="horsea">Seeper</string>
<string name="seadra">Seemon</string>
<string name="goldeen">Goldini</string>
<string name="seaking">Golking</string>
<string name="staryu">Sterndu</string>
<string name="starmie">Starmie</string>
<string name="mr_mime">Pantimos</string>
<string name="scyther">Sichlor</string>
<string name="jynx">Rossana</string>
<string name="electabuzz">Elektek</string>
<string name="magmar">Magmar</string>
<string name="pinsir">Pinsir</string>
<string name="tauros">Tauros</string>
<string name="magikarp">Karpador</string>
<string name="gyarados">Garados</string>
<string name="lapras">Lapras</string>
<string name="ditto">Ditto</string>
<string name="eevee">Evoli</string>
<string name="vaporeon">Aquana</string>
<string name="jolteon">Blitza</string>
<string name="flareon">Flamara</string>
<string name="porygon">Porygon</string>
<string name="omanyte">Amonitas</string>
<string name="omastar">Amoroso</string>
<string name="kabuto">Kabuto</string>
<string name="kabutops">Kabutops</string>
<string name="aerodactyl">Aerodactyl</string>
<string name="snorlax">Relaxo</string>
<string name="articuno">Arktos</string>
<string name="zapdos">Zapdos</string>
<string name="moltres">Lavados</string>
<string name="dratini">Dratini</string>
<string name="dragonair">Dragonir</string>
<string name="dragonite">Dragoran</string>
<string name="mewtwo">Mewtu</string>
<string name="mew">Mew</string>
<string name="chikorita">Endivie</string>
<string name="bayleef">Lorblatt</string>
<string name="meganium">Meganie</string>
<string name="cyndaquil">Feurigel</string>
<string name="quilava">Igelavar</string>
<string name="typhlosion">Tornupto</string>
<string name="totodile">Karnimani</string>
<string name="croconaw">Tyracroc</string>
<string name="feraligatr">Impergator</string>
<string name="sentret">Wiesor</string>
<string name="furret">Wiesenior</string>
<string name="hoothoot">Hoothoot</string>
<string name="noctowl">Noctuh</string>
<string name="ledyba">Ledyba</string>
<string name="ledian">Ledian</string>
<string name="spinarak">Webarak</string>
<string name="ariados">Ariados</string>
<string name="crobat">Iksbat</string>
<string name="chinchou">Lampi</string>
<string name="lanturn">Lanturn</string>
<string name="pichu">Pichu</string>
<string name="cleffa">Pii</string>
<string name="igglybuff">Fluffeluff</string>
<string name="togepi">Togepi</string>
<string name="togetic">Togetic</string>
<string name="natu">Natu</string>
<string name="xatu">Xatu</string>
<string name="mareep">Voltilamm</string>
<string name="flaaffy">Waaty</string>
<string name="ampharos">Ampharos</string>
<string name="bellossom">Blubella</string>
<string name="marill">Marill</string>
<string name="azumarill">Azumarill</string>
<string name="sudowoodo">Mogelbaum</string>
<string name="politoed">Quaxo</string>
<string name="hoppip">Hoppspross</string>
<string name="skiploom">Hubelupf</string>
<string name="jumpluff">Papungha</string>
<string name="aipom">Griffel</string>
<string name="sunkern">Sonnkern</string>
<string name="sunflora">Sonnflora</string>
<string name="yanma">Yanma</string>
<string name="wooper">Felino</string>
<string name="quagsire">Morlord</string>
<string name="espeon">Psiana</string>
<string name="umbreon">Nachtara</string>
<string name="murkrow">Kramurx</string>
<string name="slowking">Laschoking</string>
<string name="misdreavus">Traunfugil</string>
<string name="unown">Icognito</string>
<string name="wobbuffet">Woingenau</string>
<string name="girafarig">Girafarig</string>
<string name="pineco">Tannza</string>
<string name="forretress">Forstellka</string>
<string name="dunsparce">Dummisel</string>
<string name="gligar">Skorgla</string>
<string name="steelix">Stahlos</string>
<string name="snubbull">Snubbull</string>
<string name="granbull">Granbull</string>
<string name="qwilfish">Baldorfish</string>
<string name="scizor">Scherox</string>
<string name="shuckle">Pottrott</string>
<string name="heracross">Skaraborn</string>
<string name="sneasel">Sniebel</string>
<string name="teddiursa">Teddiursa</string>
<string name="ursaring">Ursaring</string>
<string name="slugma">Schneckmag</string>
<string name="magcargo">Magcargo</string>
<string name="swinub">Quiekel</string>
<string name="piloswine">Keifel</string>
<string name="corsola">Corasonn</string>
<string name="remoraid">Remoraid</string>
<string name="octillery">Octillery</string>
<string name="delibird">Botogel</string>
<string name="mantine">Mantax</string>
<string name="skarmory">Panzaeron</string>
<string name="houndour">Hunduster</string>
<string name="houndoom">Hundemon</string>
<string name="kingdra">Seedraking</string>
<string name="phanpy">Phanpy</string>
<string name="donphan">Donphan</string>
<string name="porygon2">Porygon2</string>
<string name="stantler">Damhirplex</string>
<string name="smeargle">Farbeagle</string>
<string name="tyrogue">Rabauz</string>
<string name="hitmontop">Kapoera</string>
<string name="smoochum">Kussilla</string>
<string name="elekid">Elekid</string>
<string name="magby">Magby</string>
<string name="miltank">Miltank</string>
<string name="blissey">Heiteira</string>
<string name="raikou">Raikou</string>
<string name="entei">Entei</string>
<string name="suicune">Suicune</string>
<string name="larvitar">Larvitar</string>
<string name="pupitar">Pupitar</string>
<string name="tyranitar">Despotar</string>
<string name="lugia">Lugia</string>
<string name="hooh">Ho-Oh</string>
<string name="celebi">Celebi</string>
<string name="treecko">Geckarbor</string>
<string name="grovyle">Reptain</string>
<string name="sceptile">Gewaldro</string>
<string name="torchic">Flemmli</string>
<string name="combusken">Jungglut</string>
<string name="blaziken">Lohgock</string>
<string name="mudkip">Hydropi</string>
<string name="marshtomp">Moorabbel</string>
<string name="swampert">Sumpex</string>
<string name="poochyena">Fiffyen</string>
<string name="mightyena">Magnayen</string>
<string name="zigzagoon">Zigzachs</string>
<string name="linoone">Geradaks</string>
<string name="wurmple">Waumpel</string>
<string name="silcoon">Schaloko</string>
<string name="beautifly">Papinella</string>
<string name="cascoon">Panekon</string>
<string name="dustox">Pudox</string>
<string name="lotad">Loturzel</string>
<string name="lombre">Lombrero</string>
<string name="ludicolo">Kappalores</string>
<string name="seedot">Samurzel</string>
<string name="nuzleaf">Blanas</string>
<string name="shiftry">Tengulist</string>
<string name="taillow">Schwalbini</string>
<string name="swellow">Schwalboss</string>
<string name="wingull">Wingull</string>
<string name="pelipper">Pelipper</string>
<string name="ralts">Trasla</string>
<string name="kirlia">Kirlia</string>
<string name="gardevoir">Guardevoir</string>
<string name="surskit">Gehweiher</string>
<string name="masquerain">Maskeregen</string>
<string name="shroomish">Knilz</string>
<string name="breloom">Kapilz</string>
<string name="slakoth">Bummelz</string>
<string name="vigoroth">Muntier</string>
<string name="slaking">Letarking</string>
<string name="nincada">Nincada</string>
<string name="ninjask">Ninjask</string>
<string name="shedinja">Ninjatom</string>
<string name="whismur">Flurmel</string>
<string name="loudred">Krakeelo</string>
<string name="exploud">Krawumms</string>
<string name="makuhita">Makuhita</string>
<string name="hariyama">Hariyama</string>
<string name="azurill">Azurill</string>
<string name="nosepass">Nasgnet</string>
<string name="skitty">Eneco</string>
<string name="delcatty">Enekoro</string>
<string name="sableye">Zobiris</string>
<string name="mawile">Flunkifer</string>
<string name="aron">Stollunior</string>
<string name="lairon">Stollrak</string>
<string name="aggron">Stolloss</string>
<string name="meditite">Meditie</string>
<string name="medicham">Meditalis</string>
<string name="electrike">Frizelbliz</string>
<string name="manectric">Voltenso</string>
<string name="plusle">Plusle</string>
<string name="minun">Minun</string>
<string name="volbeat">Volbeat</string>
<string name="illumise">Illumise</string>
<string name="roselia">Roselia</string>
<string name="gulpin">Schluppuck</string>
<string name="swalot">Schlukwech</string>
<string name="carvanha">Kanivanha</string>
<string name="sharpedo">Tohaido</string>
<string name="wailmer">Wailmer</string>
<string name="wailord">Wailord</string>
<string name="numel">Camaub</string>
<string name="camerupt">Camerupt</string>
<string name="torkoal">Qurtel</string>
<string name="spoink">Spoink</string>
<string name="grumpig">Groink</string>
<string name="spinda">Pandir</string>
<string name="trapinch">Knacklion</string>
<string name="vibrava">Vibrava</string>
<string name="flygon">Libelldra</string>
<string name="cacnea">Tuska</string>
<string name="cacturne">Noktuska</string>
<string name="swablu">Wablu</string>
<string name="altaria">Altaria</string>
<string name="zangoose">Sengo</string>
<string name="seviper">Vipitis</string>
<string name="lunatone">Lunastein</string>
<string name="solrock">Sonnfel</string>
<string name="barboach">Schmerbe</string>
<string name="whiscash">Welsar</string>
<string name="corphish">Krebscorps</string>
<string name="crawdaunt">Krebutack</string>
<string name="baltoy">Puppance</string>
<string name="claydol">Lepumentas</string>
<string name="lileep">Liliep</string>
<string name="cradily">Wielie</string>
<string name="anorith">Anorith</string>
<string name="armaldo">Armaldo</string>
<string name="feebas">Barschwa</string>
<string name="milotic">Milotic</string>
<string name="castform">Formeo</string>
<string name="kecleon">Kecleon</string>
<string name="shuppet">Shuppet</string>
<string name="banette">Banette</string>
<string name="duskull">Zwirrlicht</string>
<string name="dusclops">Zwirrklop</string>
<string name="tropius">Tropius</string>
<string name="chimecho">Palimpalim</string>
<string name="absol">Absol</string>
<string name="wynaut">Isso</string>
<string name="snorunt">Schneppke</string>
<string name="glalie">Firnontor</string>
<string name="spheal">Seemops</string>
<string name="sealeo">Seejong</string>
<string name="walrein">Walraisa</string>
<string name="clamperl">Perlu</string>
<string name="huntail">Aalabyss</string>
<string name="gorebyss">Saganabyss</string>
<string name="relicanth">Relicanth</string>
<string name="luvdisc">Liebiskus</string>
<string name="bagon">Kindwurm</string>
<string name="shelgon">Draschel</string>
<string name="salamence">Brutalanda</string>
<string name="beldum">Tanhel</string>
<string name="metang">Metang</string>
<string name="metagross">Metagross</string>
<string name="regirock">Regirock</string>
<string name="regice">Regice</string>
<string name="registeel">Registeel</string>
<string name="latias">Latias</string>
<string name="latios">Latios</string>
<string name="kyogre">Kyogre</string>
<string name="groudon">Groudon</string>
<string name="rayquaza">Rayquaza</string>
<string name="jirachi">Jirachi</string>
<string name="deoxys">Deoxys</string>
<string name="turtwig">Chelast</string>
<string name="grotle">Chelcarain</string>
<string name="torterra">Chelterrar</string>
<string name="chimchar">Panflam</string>
<string name="monferno">Panpyro</string>
<string name="infernape">Panferno</string>
<string name="piplup">Plinfa</string>
<string name="prinplup">Pliprin</string>
<string name="empoleon">Impoleon</string>
<string name="starly">Staralili</string>
<string name="staravia">Staravia</string>
<string name="staraptor">Staraptor</string>
<string name="bidoof">Bidiza</string>
<string name="bibarel">Bidifas</string>
<string name="kricketot">Zirpurze</string>
<string name="kricketune">Zirpeise</string>
<string name="shinx">Sheinux</string>
<string name="luxio">Luxio</string>
<string name="luxray">Luxtra</string>
<string name="budew">Knospi</string>
<string name="roserade">Roserade</string>
<string name="cranidos">Koknodon</string>
<string name="rampardos">Rameidon</string>
<string name="shieldon">Schilterus</string>
<string name="bastiodon">Bollterus</string>
<string name="burmy">Burmy</string>
<string name="wormadam">Burmadame</string>
<string name="mothim">Moterpel</string>
<string name="combee">Wadribie</string>
<string name="vespiquen">Honweisel</string>
<string name="pachirisu">Pachirisu</string>
<string name="buizel">Bamelin</string>
<string name="floatzel">Bojelin</string>
<string name="cherubi">Kikugi</string>
<string name="cherrim">Kinoso</string>
<string name="shellos">Schalellos</string>
<string name="gastrodon">Gastrodon</string>
<string name="ambipom">Ambidiffel</string>
<string name="drifloon">Driftlon</string>
<string name="drifblim">Drifzepeli</string>
<string name="buneary">Haspiror</string>
<string name="lopunny">Schlapor</string>
<string name="mismagius">Traunmagil</string>
<string name="honchkrow">Kramshef</string>
<string name="glameow">Charmian</string>
<string name="purugly">Shnurgarst</string>
<string name="chingling">Klingplim</string>
<string name="stunky">Skunkapuh</string>
<string name="skuntank">Skuntank</string>
<string name="bronzor">Bronzel</string>
<string name="bronzong">Bronzong</string>
<string name="bonsly">Mobai</string>
<string name="mime_jr">Pantimimi</string>
<string name="happiny">Wonneira</string>
<string name="chatot">Plaudagei</string>
<string name="spiritomb">Kryppuk</string>
<string name="gible">Kaumalat</string>
<string name="gabite">Knarksel</string>
<string name="garchomp">Knakrack</string>
<string name="munchlax">Mampfaxo</string>
<string name="riolu">Riolu</string>
<string name="lucario">Lucario</string>
<string name="hippopotas">Hippopotas</string>
<string name="hippowdon">Hippoterus</string>
<string name="skorupi">Pionskora</string>
<string name="drapion">Piondragi</string>
<string name="croagunk">Glibunkel</string>
<string name="toxicroak">Toxiquak</string>
<string name="carnivine">Venuflibis</string>
<string name="finneon">Finneon</string>
<string name="lumineon">Lumineon</string>
<string name="mantyke">Mantirps</string>
<string name="snover">Shnebedeck</string>
<string name="abomasnow">Rexblisar</string>
<string name="weavile">Snibunna</string>
<string name="magnezone">Magnezone</string>
<string name="lickilicky">Schlurplek</string>
<string name="rhyperior">Rihornior</string>
<string name="tangrowth">Tangoloss</string>
<string name="electivire">Elevoltek</string>
<string name="magmortar">Magbrant</string>
<string name="togekiss">Togekiss</string>
<string name="yanmega">Yanmega</string>
<string name="leafeon">Folipurba</string>
<string name="glaceon">Glaziola</string>
<string name="gliscor">Skorgro</string>
<string name="mamoswine">Mamutel</string>
<string name="porygonz">Porygon-Z</string>
<string name="gallade">Galagladi</string>
<string name="probopass">Voluminas</string>
<string name="dusknoir">Zwirrfinst</string>
<string name="froslass">Frosdedje</string>
<string name="rotom">Rotom</string>
<string name="uxie">Selfe</string>
<string name="mesprit">Vesprit</string>
<string name="azelf">Tobutz</string>
<string name="dialga">Dialga</string>
<string name="palkia">Palkia</string>
<string name="heatran">Heatran</string>
<string name="regigigas">Regigigas</string>
<string name="giratina">Giratina</string>
<string name="cresselia">Cresselia</string>
<string name="phione">Phione</string>
<string name="manaphy">Manaphy</string>
<string name="darkrai">Darkrai</string>
<string name="shaymin">Shaymin</string>
<string name="arceus">Arceus</string>
<string name="victini">Victini</string>
<string name="snivy">Serpifeu</string>
<string name="servine">Efoserp</string>
<string name="serperior">Serpiroyal</string>
<string name="tepig">Floink</string>
<string name="pignite">Ferkokel</string>
<string name="emboar">Flambirex</string>
<string name="oshawott">Ottaro</string>
<string name="dewott">Zwottronin</string>
<string name="samurott">Admurai</string>
<string name="patrat">Nagelotz</string>
<string name="watchog">Kukmarda</string>
<string name="lillipup">Yorkleff</string>
<string name="herdier">Terribark</string>
<string name="stoutland">Bissbark</string>
<string name="purrloin">Felilou</string>
<string name="liepard">Kleoparda</string>
<string name="pansage">Vegimak</string>
<string name="simisage">Vegichita</string>
<string name="pansear">Grillmak</string>
<string name="simisear">Grillchita</string>
<string name="panpour">Sodamak</string>
<string name="simipour">Sodachita</string>
<string name="munna">Somniam</string>
<string name="musharna">Somnivora</string>
<string name="pidove">Dusselgurr</string>
<string name="tranquill">Navitaub</string>
<string name="unfezant">Fasasnob</string>
<string name="blitzle">Elezeba</string>
<string name="zebstrika">Zebritz</string>
<string name="roggenrola">Kiesling</string>
<string name="boldore">Sedimantur</string>
<string name="gigalith">Brockoloss</string>
<string name="woobat">Fleknoil</string>
<string name="swoobat">Fletiamo</string>
<string name="drilbur">Rotomurf</string>
<string name="excadrill">Stalobor</string>
<string name="audino">Ohrdoch</string>
<string name="timburr">Praktibalk</string>
<string name="gurdurr">Strepoli</string>
<string name="conkeldurr">Meistagrif</string>
<string name="tympole">Schallquap</string>
<string name="palpitoad">Mebrana</string>
<string name="seismitoad">Branawarz</string>
<string name="throh">Jiutesto</string>
<string name="sawk">Karadonis</string>
<string name="sewaddle">Strawickl</string>
<string name="swadloon">Folikon</string>
<string name="leavanny">Matrifol</string>
<string name="venipede">Toxiped</string>
<string name="whirlipede">Rollum</string>
<string name="scolipede">Cerapendra</string>
<string name="cottonee">Waumboll</string>
<string name="whimsicott">Elfun</string>
<string name="petilil">Lilminip</string>
<string name="lilligant">Dressella</string>
<string name="basculin">Barschuft</string>
<string name="sandile">Ganovil</string>
<string name="krokorok">Rokkaiman</string>
<string name="krookodile">Rabigator</string>
<string name="darumaka">Flampion</string>
<string name="darmanitan">Flampivian</string>
<string name="maractus">Maracamba</string>
<string name="dwebble">Lithomith</string>
<string name="crustle">Castellith</string>
<string name="scraggy">Zurrokex</string>
<string name="scrafty">Irokex</string>
<string name="sigilyph">Symvolara</string>
<string name="yamask">Makabaja</string>
<string name="cofagrigus">Echnatoll</string>
<string name="tirtouga">Galapaflos</string>
<string name="carracosta">Karippas</string>
<string name="archen">Flapteryx</string>
<string name="archeops">Aeropteryx</string>
<string name="trubbish">Unrattox</string>
<string name="garbodor">Deponitox</string>
<string name="zorua">Zorua</string>
<string name="zoroark">Zoroark</string>
<string name="minccino">Picochilla</string>
<string name="cinccino">Chillabell</string>
<string name="gothita">Mollimorba</string>
<string name="gothorita">Hypnomorba</string>
<string name="gothitelle">Morbitesse</string>
<string name="solosis">Monozyto</string>
<string name="duosion">Mitodos</string>
<string name="reuniclus">Zytomega</string>
<string name="ducklett">Piccolente</string>
<string name="swanna">Swaroness</string>
<string name="vanillite">Gelatini</string>
<string name="vanillish">Gelatroppo</string>
<string name="vanilluxe">Gelatwino</string>
<string name="deerling">Sesokitz</string>
<string name="sawsbuck">Kronjuwild</string>
<string name="emolga">Emolga</string>
<string name="karrablast">Laukaps</string>
<string name="escavalier">Cavalanzas</string>
<string name="foongus">Tarnpignon</string>
<string name="amoonguss">Hutsassa</string>
<string name="frillish">Quabbel</string>
<string name="jellicent">Apoquallyp</string>
<string name="alomomola">Mamolida</string>
<string name="joltik">Wattzapf</string>
<string name="galvantula">Voltula</string>
<string name="ferroseed">Kastadur</string>
<string name="ferrothorn">Tentantel</string>
<string name="klink">Klikk</string>
<string name="klang">Kliklak</string>
<string name="klinklang">Klikdiklak</string>
<string name="tynamo">Zapplardin</string>
<string name="eelektrik">Zapplalek</string>
<string name="eelektross">Zapplarang</string>
<string name="elgyem">Pygraulon</string>
<string name="beheeyem">Megalon</string>
<string name="litwick">Lichtel</string>
<string name="lampent">Laternecto</string>
<string name="chandelure">Skelabra</string>
<string name="axew">Milza</string>
<string name="fraxure">Sharfax</string>
<string name="haxorus">Maxax</string>
<string name="cubchoo">Petznief</string>
<string name="beartic">Siberio</string>
<string name="cryogonal">Frigometri</string>
<string name="shelmet">Schnuthelm</string>
<string name="accelgor">Hydragil</string>
<string name="stunfisk">Flunschlik</string>
<string name="mienfoo">Lin-Fu</string>
<string name="mienshao">Wie-Shu</string>
<string name="druddigon">Shardrago</string>
<string name="golett">Golbit</string>
<string name="golurk">Golgantes</string>
<string name="pawniard">Gladiantri</string>
<string name="bisharp">Caesurio</string>
<string name="bouffalant">Bisofank</string>
<string name="rufflet">Geronimatz</string>
<string name="braviary">Washakwil</string>
<string name="vullaby">Skallyk</string>
<string name="mandibuzz">Grypheldis</string>
<string name="heatmor">Furnifra</string>
<string name="durant">Fermicula</string>
<string name="deino">Kapuno</string>
<string name="zweilous">Duodino</string>
<string name="hydreigon">Trikephalo</string>
<string name="larvesta">Ignivor</string>
<string name="volcarona">Ramoth</string>
<string name="cobalion">Kobalium</string>
<string name="terrakion">Terrakium</string>
<string name="virizion">Viridium</string>
<string name="tornadus">Boreos</string>
<string name="thundurus">Voltolos</string>
<string name="reshiram">Reshiram</string>
<string name="zekrom">Zekrom</string>
<string name="landorus">Demeteros</string>
<string name="kyurem">Kyurem</string>
<string name="keldeo">Keldeo</string>
<string name="meloetta">Meloetta</string>
<string name="genesect">Genesect</string>
<string name="chespin">Igamaro</string>
<string name="quilladin">Igastarnish</string>
<string name="chesnaught">Brigaron</string>
<string name="fennekin">Fynx</string>
<string name="braixen">Rutena</string>
<string name="delphox">Fennexis</string>
<string name="froakie">Froxy</string>
<string name="frogadier">Amphizel</string>
<string name="greninja">Quajutsu</string>
<string name="bunnelby">Scoppel</string>
<string name="diggersby">Grebbit</string>
<string name="fletchling">Dartiri</string>
<string name="fletchinder">Dartignis</string>
<string name="talonflame">Fiaro</string>
<string name="scatterbug">Purmel</string>
<string name="spewpa">Puponcho</string>
<string name="vivillon">Vivillon</string>
<string name="litleo">Leufeo</string>
<string name="pyroar">Pyroleo</string>
<string name="flabb">Flabb</string>
<string name="floette">Floette</string>
<string name="florges">Florges</string>
<string name="skiddo">Mhikel</string>
<string name="gogoat">Chevrumm</string>
<string name="pancham">Pam-Pam</string>
<string name="pangoro">Pandagro</string>
<string name="furfrou">Coiffwaff</string>
<string name="espurr">Psiau</string>
<string name="meowstic">Psiaugon</string>
<string name="honedge">Gramokles</string>
<string name="doublade">Duokles</string>
<string name="aegislash">Durengard</string>
<string name="spritzee">Parfi</string>
<string name="aromatisse">Parfinesse</string>
<string name="swirlix">Flauschling</string>
<string name="slurpuff">Sabbaione</string>
<string name="inkay">Iscalar</string>
<string name="malamar">Calamanero</string>
<string name="binacle">Bithora</string>
<string name="barbaracle">Thanathora</string>
<string name="skrelp">Algitt</string>
<string name="dragalge">Tandrak</string>
<string name="clauncher">Scampisto</string>
<string name="clawitzer">Wummer</string>
<string name="helioptile">Eguana</string>
<string name="heliolisk">Elezard</string>
<string name="tyrunt">Balgoras</string>
<string name="tyrantrum">Monargoras</string>
<string name="amaura">Amarino</string>
<string name="aurorus">Amagarga</string>
<string name="sylveon">Feelinara</string>
<string name="hawlucha">Resladero</string>
<string name="dedenne">Dedenne</string>
<string name="carbink">Rocara</string>
<string name="goomy">Viscora</string>
<string name="sliggoo">Viscargot</string>
<string name="goodra">Viscogon</string>
<string name="klefki">Clavion</string>
<string name="phantump">Paragoni</string>
<string name="trevenant">Trombork</string>
<string name="pumpkaboo">Irrbis</string>
<string name="gourgeist">Pumpdjinn</string>
<string name="bergmite">Arktip</string>
<string name="avalugg">Arktilas</string>
<string name="noibat">eF-eM</string>
<string name="noivern">UHaFnir</string>
<string name="xerneas">Xerneas</string>
<string name="yveltal">Yveltal</string>
<string name="zygarde">Zygarde</string>
<string name="diancie">Diancie</string>
<string name="hoopa">Hoopa</string>
<string name="volcanion">Volcanion</string>
</resources>
``` | /content/code_sandbox/app/src/main/res/values-de/pokemon.xml | xml | 2016-07-20T05:17:39 | 2024-07-10T06:57:20 | Pokemap | omkarmoghe/Pokemap | 1,009 | 10,846 |
```xml
// See LICENSE in the project root for license information.
import type * as ts from 'typescript';
import type { AstDeclaration } from './AstDeclaration';
import { InternalError } from '@rushstack/node-core-library';
import { AstEntity } from './AstEntity';
/**
* Constructor options for AstSymbol
*/
export interface IAstSymbolOptions {
readonly followedSymbol: ts.Symbol;
readonly localName: string;
readonly isExternal: boolean;
readonly nominalAnalysis: boolean;
readonly parentAstSymbol: AstSymbol | undefined;
readonly rootAstSymbol: AstSymbol | undefined;
}
/**
* The AstDeclaration and AstSymbol classes are API Extractor's equivalent of the compiler's
* ts.Declaration and ts.Symbol objects. They are created by the `AstSymbolTable` class.
*
* @remarks
* The AstSymbol represents the ts.Symbol information for an AstDeclaration. For example,
* if a method has 3 overloads, each overloaded signature will have its own AstDeclaration,
* but they will all share a common AstSymbol.
*
* For nested definitions, the AstSymbol has a unique parent (i.e. AstSymbol.rootAstSymbol),
* but the parent/children for each AstDeclaration may be different. Consider this example:
*
* ```ts
* export namespace N {
* export function f(): void { }
* }
*
* export interface N {
* g(): void;
* }
* ```
*
* Note how the parent/child relationships are different for the symbol tree versus
* the declaration tree, and the declaration tree has two roots:
*
* ```
* AstSymbol tree: AstDeclaration tree:
* - N - N (namespace)
* - f - f
* - g - N (interface)
* - g
* ```
*/
export class AstSymbol extends AstEntity {
/** {@inheritdoc} */
public readonly localName: string; // abstract
/**
* If true, then the `followedSymbol` (i.e. original declaration) of this symbol
* is not part of the working package. The working package may still export this symbol,
* but if so it should be emitted as an alias such as `export { X } from "package1";`.
*/
public readonly isExternal: boolean;
/**
* The compiler symbol where this type was defined, after following any aliases.
*
* @remarks
* This is a normal form that can be reached from any symbol alias by calling
* `TypeScriptHelpers.followAliases()`. It can be compared to determine whether two
* symbols refer to the same underlying type.
*/
public readonly followedSymbol: ts.Symbol;
/**
* If true, then this AstSymbol represents a foreign object whose structure will be
* ignored. The AstDeclaration objects will not have any parent or children, and its references
* will not be analyzed.
*
* Nominal symbols are tracked e.g. when they are reexported by the working package.
*/
public readonly nominalAnalysis: boolean;
/**
* Returns the symbol of the parent of this AstSymbol, or undefined if there is no parent.
* @remarks
* If a symbol has multiple declarations, we assume (as an axiom) that their parent
* declarations will belong to the same symbol. This means that the "parent" of a
* symbol is a well-defined concept. However, the "children" of a symbol are not very
* meaningful, because different declarations may have different nested members,
* so we usually need to traverse declarations to find children.
*/
public readonly parentAstSymbol: AstSymbol | undefined;
/**
* Returns the symbol of the root of the AstDeclaration hierarchy.
* @remarks
* NOTE: If this AstSymbol is the root, then rootAstSymbol will point to itself.
*/
public readonly rootAstSymbol: AstSymbol;
/**
* Additional information that is calculated later by the `Collector`. The actual type is `SymbolMetadata`,
* but we declare it as `unknown` because consumers must obtain this object by calling
* `Collector.fetchSymbolMetadata()`.
*/
public symbolMetadata: unknown;
private readonly _astDeclarations: AstDeclaration[];
// This flag is unused if this is not the root symbol.
// Being "analyzed" is a property of the root symbol.
private _analyzed: boolean = false;
public constructor(options: IAstSymbolOptions) {
super();
this.followedSymbol = options.followedSymbol;
this.localName = options.localName;
this.isExternal = options.isExternal;
this.nominalAnalysis = options.nominalAnalysis;
this.parentAstSymbol = options.parentAstSymbol;
this.rootAstSymbol = options.rootAstSymbol || this;
this._astDeclarations = [];
}
/**
* The one or more declarations for this symbol.
* @remarks
* For example, if this symbol is a method, then the declarations might be
* various method overloads. If this symbol is a namespace, then the declarations
* might be separate namespace blocks with the same name that get combined via
* declaration merging.
*/
public get astDeclarations(): ReadonlyArray<AstDeclaration> {
return this._astDeclarations;
}
/**
* Returns true if the AstSymbolTable.analyze() was called for this object.
* See that function for details.
* @remarks
* AstSymbolTable.analyze() is always performed on the root AstSymbol. This function
* returns true if-and-only-if the root symbol was analyzed.
*/
public get analyzed(): boolean {
return this.rootAstSymbol._analyzed;
}
/**
* This is an internal callback used when the AstSymbolTable attaches a new
* AstDeclaration to this object.
* @internal
*/
public _notifyDeclarationAttach(astDeclaration: AstDeclaration): void {
if (this.analyzed) {
throw new InternalError('_notifyDeclarationAttach() called after analysis is already complete');
}
this._astDeclarations.push(astDeclaration);
}
/**
* This is an internal callback used when the AstSymbolTable.analyze()
* has processed this object.
* @internal
*/
public _notifyAnalyzed(): void {
if (this.parentAstSymbol) {
throw new InternalError('_notifyAnalyzed() called for an AstSymbol which is not the root');
}
this._analyzed = true;
}
/**
* Helper that calls AstDeclaration.forEachDeclarationRecursive() for each AstDeclaration.
*/
public forEachDeclarationRecursive(action: (astDeclaration: AstDeclaration) => void): void {
for (const astDeclaration of this.astDeclarations) {
astDeclaration.forEachDeclarationRecursive(action);
}
}
}
``` | /content/code_sandbox/apps/api-extractor/src/analyzer/AstSymbol.ts | xml | 2016-09-30T00:28:20 | 2024-08-16T18:54:35 | rushstack | microsoft/rushstack | 5,790 | 1,457 |
```xml
<controls:ContentPopup x:Class="Telegram.Views.Popups.CollectiblePopup"
xmlns="path_to_url"
xmlns:x="path_to_url"
xmlns:local="using:Telegram.Views.Popups"
xmlns:controls="using:Telegram.Controls"
xmlns:d="path_to_url"
xmlns:mc="path_to_url"
mc:Ignorable="d"
Opened="OnOpened"
Padding="24,24,24,0">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<StackPanel>
<Border Background="{ThemeResource AccentButtonBackground}"
CornerRadius="48"
Width="96"
Height="96">
<controls:AnimatedImage x:Name="Icon"
AutoPlay="False"
IsCachingEnabled="False"
LoopCount="1"
HorizontalAlignment="Center"
VerticalAlignment="Center"
FrameSize="72,72"
DecodeFrameType="Logical"
Width="72"
Height="72" />
</Border>
<TextBlock x:Name="Title"
FontSize="20"
FontFamily="XamlAutoFontFamily"
FontWeight="SemiBold"
TextWrapping="Wrap"
TextAlignment="Center"
VerticalAlignment="Top"
Margin="0,8,0,4" />
<controls:ChatPill x:Name="Pill"
HorizontalAlignment="Center"
Margin="0,0,0,8" />
<TextBlock x:Name="Subtitle"
TextAlignment="Center"
TextTrimming="CharacterEllipsis"
Style="{StaticResource BodyTextBlockStyle}"
FontFamily="{StaticResource EmojiThemeFontFamilyWithSymbols}"
Grid.Column="1"
Grid.Row="2" />
<Grid x:Name="ChangePanel"
VerticalAlignment="Bottom"
HorizontalAlignment="Stretch"
Margin="0,24,0,8"
Grid.Row="1">
<controls:BadgeButton x:Name="LearnCommand"
Click="Learn_Click"
Style="{StaticResource AccentButtonStyle}"
HorizontalAlignment="Stretch"
HorizontalContentAlignment="Center"
Typography.NumeralAlignment="Tabular"
FontWeight="SemiBold"
Padding="16,3,16,5"
BorderThickness="0,0,0,1"
CornerRadius="4"
Margin="0"
Height="32" />
</Grid>
<Button x:Name="CopyCommand"
Click="Copy_Click"
Style="{StaticResource AccentTextButtonStyle}"
HorizontalAlignment="Center"
Margin="0,0,0,12" />
</StackPanel>
<controls:GlyphButton Click="{x:Bind Close}"
HorizontalAlignment="Right"
VerticalAlignment="Top"
Margin="0,-24,-24,0"
Glyph=""
CornerRadius="20" />
</Grid>
</controls:ContentPopup>
``` | /content/code_sandbox/Telegram/Views/Popups/CollectiblePopup.xaml | xml | 2016-05-23T09:03:33 | 2024-08-16T16:17:48 | Unigram | UnigramDev/Unigram | 3,744 | 644 |
```xml
import {JSDOM} from 'jsdom';
import {forceCast} from './type-util.js';
export function createTestWindow(): Window {
return forceCast(new JSDOM('').window);
}
``` | /content/code_sandbox/packages/core/src/misc/dom-test-util.ts | xml | 2016-05-10T15:45:13 | 2024-08-16T19:57:27 | tweakpane | cocopon/tweakpane | 3,480 | 42 |
```xml
// DO NOT MODIFY, this file is autogenerated by tools/build.ts
export * from 'firebase/vertexai-preview';
import { zoneWrap } from '@angular/fire';
import {
getGenerativeModel as _getGenerativeModel,
getVertexAI as _getVertexAI
} from 'firebase/vertexai-preview';
export const getGenerativeModel = zoneWrap(_getGenerativeModel, true);
export const getVertexAI = zoneWrap(_getVertexAI, true);
``` | /content/code_sandbox/src/vertexai-preview/firebase.ts | xml | 2016-01-11T20:47:23 | 2024-08-14T12:09:31 | angularfire | angular/angularfire | 7,648 | 100 |
```xml
declare const _default: any;
export default _default;
//# sourceMappingURL=ExpoDevice.d.ts.map
``` | /content/code_sandbox/packages/expo-device/build/ExpoDevice.d.ts | xml | 2016-08-15T17:14:25 | 2024-08-16T19:54:44 | expo | expo/expo | 32,004 | 22 |
```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>
<parent>
<groupId>io.github.openjoe</groupId>
<artifactId>smart-sso</artifactId>
<version>1.7.3</version>
</parent>
<artifactId>smart-sso-demo</artifactId>
<packaging>jar</packaging>
<name>${project.artifactId}</name>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-freemarker</artifactId>
</dependency>
<!-- -->
<dependency>
<groupId>io.github.openjoe</groupId>
<artifactId>smart-sso-starter-client</artifactId>
</dependency>
</dependencies>
</project>
``` | /content/code_sandbox/smart-sso-demo/pom.xml | xml | 2016-07-11T09:06:38 | 2024-08-15T09:57:16 | smart-sso | a466350665/smart-sso | 2,103 | 231 |
```xml
<!--
Description: rss channel generator - cdata escaped markup
-->
<rss version="2.0">
<channel>
<generator><![CDATA[<p>Feed Generator</p>]]></generator>
</channel>
</rss>
``` | /content/code_sandbox/testdata/parser/rss/rss_channel_generator_cdata_escaped_markup.xml | xml | 2016-01-23T02:44:34 | 2024-08-16T15:16:03 | gofeed | mmcdole/gofeed | 2,547 | 54 |
```xml
import { createRoot } from 'react-dom/client';
import * as React from 'react';
import { App } from './components/App';
import './index.css';
import '../scss/main.scss';
const root = createRoot(document.getElementById('root')!);
root.render(
<React.StrictMode>
<App />
</React.StrictMode>
);
``` | /content/code_sandbox/example/index.tsx | xml | 2016-06-20T06:32:23 | 2024-08-07T16:41:03 | react-contexify | fkhadra/react-contexify | 1,138 | 72 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
path_to_url
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-->
<resources>
<!-- Default screen margins, per the Android Design guidelines. -->
<dimen name="forecast_detail_horizontal_padding">32dp</dimen>
<dimen name="forecast_detail_vertical_padding">16dp</dimen>
<!-- Icon Sizes -->
<dimen name="today_icon">96dp</dimen>
<dimen name="list_icon">40dp</dimen>
<!-- Text Sizes - We are using DP here rather than SP because these are already large
font sizes, and going larger will cause lots of view problems. This is only for
the large forecast numbers in the forecast list -->
<dimen name="forecast_text_size">28dp</dimen>
<dimen name="forecast_temperature_space">4dp</dimen>
<!-- We will eventually use this to allow us to add additional padding for different screen
sizes-->
<dimen name="today_forecast_list_item_vertical_padding">16dp</dimen>
<dimen name="list_item_icon_margin_right">24dp</dimen>
<dimen name="list_item_icon_margin_end">@dimen/list_item_icon_margin_right</dimen>
<dimen name="list_item_padding_horizontal">16dp</dimen>
<dimen name="loading_indicator_size">42dp</dimen>
<dimen name="list_item_high_temperature_margin">12dp</dimen>
<dimen name="list_item_padding_vertical">12dp</dimen>
<dimen name="list_item_low_temperature_text_view_size">48dp</dimen>
<dimen name="list_item_date_left_margin">16dp</dimen>
<dimen name="list_item_date_start_margin">@dimen/list_item_date_left_margin</dimen>
</resources>
``` | /content/code_sandbox/S12.03-Exercise-TouchSelectors/app/src/main/res/values/dimens.xml | xml | 2016-11-02T04:42:26 | 2024-08-12T19:38:06 | ud851-Sunshine | udacity/ud851-Sunshine | 1,999 | 431 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="path_to_url"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<com.google.android.material.appbar.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"></androidx.appcompat.widget.Toolbar>
</com.google.android.material.appbar.AppBarLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:id="@+id/eq_anchor"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginLeft="@dimen/d16_size"
android:layout_marginTop="@dimen/d10_size"
android:layout_marginBottom="@dimen/d10_size"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/d6_size"
android:text="@string/use_eq"
android:textColor="?attr/text_color_secondary"
android:textSize="@dimen/s14_size" />
</LinearLayout>
<androidx.appcompat.widget.SwitchCompat
android:id="@+id/eq_switch"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_gravity="right|center_vertical"
android:layout_marginRight="@dimen/d16_size"
android:background="@color/transparent"
android:textOff=""
android:textOn="" />
<View
android:layout_width="match_parent"
android:layout_height="@dimen/d1_size"
android:layout_below="@id/eq_anchor"
android:background="?attr/divider_color" />
</RelativeLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:gravity="center_vertical"
android:orientation="horizontal">
<TextView
android:layout_width="80dp"
android:layout_height="wrap_content"
android:gravity="center"
android:text="@string/bass_boost"
android:textColor="?attr/text_color_primary" />
<androidx.appcompat.widget.AppCompatSeekBar
android:id="@+id/bass_seekbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:max="1000" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:gravity="center_vertical"
android:orientation="horizontal"
android:visibility="gone">
<TextView
android:layout_width="80dp"
android:layout_height="wrap_content"
android:gravity="center"
android:text="@string/virtualizer"
android:textColor="?attr/text_color_primary" />
<androidx.appcompat.widget.AppCompatSeekBar
android:id="@+id/virtualizer_seekbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:max="1000" />
</LinearLayout>
<androidx.core.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="5">
<LinearLayout
android:id="@+id/eq_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/d20_size"
android:layout_marginBottom="@dimen/d20_size"
android:gravity="center_horizontal"
android:orientation="vertical" />
</androidx.core.widget.NestedScrollView>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:gravity="center">
<Button
android:id="@+id/eq_reset"
android:layout_width="@dimen/d200_size"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:onClick="onReset"
android:text="@string/reset"
android:textColor="@color/white"
android:textSize="@dimen/s16_size" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
``` | /content/code_sandbox/app/src/main/res/layout/activity_eq.xml | xml | 2016-01-14T13:38:47 | 2024-08-16T13:03:46 | APlayer | rRemix/APlayer | 1,308 | 1,043 |
```xml
/*
* @license Apache-2.0
*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
// TypeScript Version: 4.1
/// <reference types="@stdlib/types"/>
import { Collection } from '@stdlib/types/array';
/**
* Checks whether an element in a collection passes a test.
*
* @returns boolean indicating whether an element in a collection passes a test
*/
type Nullary<U> = ( this: U ) => boolean;
/**
* Checks whether an element in a collection passes a test.
*
* @param value - collection value
* @returns boolean indicating whether an element in a collection passes a test
*/
type Unary<T, U> = ( this: U, value: T ) => boolean;
/**
* Checks whether an element in a collection passes a test.
*
* @param value - collection value
* @param index - collection index
* @returns boolean indicating whether an element in a collection passes a test
*/
type Binary<T, U> = ( this: U, value: T, index: number ) => boolean;
/**
* Checks whether an element in a collection passes a test.
*
* @param value - collection value
* @param index - collection index
* @param collection - input collection
* @returns boolean indicating whether an element in a collection passes a test
*/
type Ternary<T, U> = ( this: U, value: T, index: number, collection: Collection<T> ) => boolean;
/**
* Checks whether an element in a collection passes a test.
*
* @param value - collection value
* @param index - collection index
* @param collection - input collection
* @returns boolean indicating whether an element in a collection passes a test
*/
type Predicate<T, U> = Nullary<U> | Unary<T, U> | Binary<T, U> | Ternary<T, U>;
/**
* Tests whether all elements in a collection fail a test implemented by a predicate function.
*
* ## Notes
*
* - The predicate function is provided three arguments:
*
* - `value`: collection value
* - `index`: collection index
* - `collection`: the input collection
*
* - The function immediately returns upon encountering a truthy return value.
* - If provided an empty collection, the function returns `true`.
*
* @param collection - input collection
* @param predicate - test function
* @param thisArg - execution context
* @returns boolean indicating whether all elements fail a test
*
* @example
* function isPositive( v ) {
* return ( v > 0 );
* }
*
* var arr = [ -1, -2, -3, -4 ];
*
* var bool = noneBy( arr, isPositive );
* // returns true
*/
declare function noneBy<T = unknown, U = unknown>( collection: Collection<T>, predicate: Predicate<T, U>, thisArg?: ThisParameterType<Predicate<T, U>> ): boolean;
// EXPORTS //
export = noneBy;
``` | /content/code_sandbox/lib/node_modules/@stdlib/utils/none-by/docs/types/index.d.ts | xml | 2016-03-24T04:19:52 | 2024-08-16T09:03:19 | stdlib | stdlib-js/stdlib | 4,266 | 662 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<entities>
<entity name="cluster-tbl" table="CLUSTER_TBL" alias="ct">
<member name="id" field="id" value-type="long" length="20" nullable="false" key="true" auto-increment="true" />
<member name="cluster-name" field="cluster_name" value-type="String" length="128" nullable="false" />
<member name="cluster-type" field="cluster_type" value-type="String" length="32" nullable="false" />
<member name="activedc-id" field="activedc_id" value-type="long" length="20" nullable="false" />
<member name="cluster-description" field="cluster_description" value-type="String" length="1024" nullable="false" />
<member name="cluster-last-modified-time" field="cluster_last_modified_time" value-type="String" length="40" nullable="false" />
<member name="status" field="status" value-type="String" length="24" nullable="false" />
<member name="migration-event-id" field="migration_event_id" value-type="long" length="20" nullable="false" />
<member name="data-change-last-time" field="DataChange_LastTime" value-type="Date" nullable="false" />
<member name="deleted" field="deleted" value-type="boolean" nullable="false" />
<member name="is-xpipe-interested" field="is_xpipe_interested" value-type="boolean" nullable="false" />
<member name="cluster-org-id" field="cluster_org_id" value-type="long" length="20" nullable="false" />
<member name="cluster-admin-emails" field="cluster_admin_emails" value-type="String" length="1024" />
<member name="cluster-designated-route-ids" field="cluster_designated_route_ids" value-type="String" length="1024" nullable="false" />
<member name="create-time" field="create_time" value-type="Date" />
<member name="tag" field="tag" value-type="String" length="32" nullable="false" />
<var name="key-id" value-type="long" key-member="id" />
<primary-key name="PRIMARY" members="id" />
<index name="cluster_name" unique="true" members="cluster_name ASC" />
<index name="DataChange_LastTime" members="DataChange_LastTime ASC" />
<index name="is_xpipe_interested" members="is_xpipe_interested ASC" />
<index name="Deleted" members="deleted ASC" />
<index name="Deleted_ClusterType" members="deleted ASC, cluster_type ASC" />
<readsets>
<readset name="FULL" all="true" />
</readsets>
<updatesets>
<updateset name="FULL" all="true" />
</updatesets>
<query-defs>
<query name="find-by-PK" type="SELECT">
<param name="key-id" />
<statement><![CDATA[SELECT <FIELDS/>
FROM <TABLE/>
WHERE <FIELD name='id'/> = ${key-id}]]></statement>
</query>
<query name="insert" type="INSERT">
<statement><![CDATA[INSERT INTO <TABLE/>(<FIELDS/>)
VALUES(<VALUES/>)]]></statement>
</query>
<query name="update-by-PK" type="UPDATE">
<param name="key-id" />
<statement><![CDATA[UPDATE <TABLE/>
SET <FIELDS/>
WHERE <FIELD name='id'/> = ${key-id}]]></statement>
</query>
<query name="delete-by-PK" type="DELETE">
<param name="key-id" />
<statement><![CDATA[DELETE FROM <TABLE/>
WHERE <FIELD name='id'/> = ${key-id}]]></statement>
</query>
</query-defs>
</entity>
<entity name="dc-cluster-shard-tbl" table="DC_CLUSTER_SHARD_TBL" alias="dcst">
<member name="dc-cluster-shard-id" field="dc_cluster_shard_id" value-type="long" length="20" nullable="false" key="true" auto-increment="true" />
<member name="dc-cluster-id" field="dc_cluster_id" value-type="long" length="19" nullable="false" />
<member name="shard-id" field="shard_id" value-type="long" length="20" nullable="false" />
<member name="setinel-id" field="setinel_id" value-type="long" length="20" nullable="false" />
<member name="dc-cluster-shard-phase" field="dc_cluster_shard_phase" value-type="int" length="10" nullable="false" />
<member name="data-change-last-time" field="DataChange_LastTime" value-type="Date" nullable="false" />
<member name="deleted" field="deleted" value-type="boolean" nullable="false" />
<var name="key-dc-cluster-shard-id" value-type="long" key-member="dc-cluster-shard-id" />
<primary-key name="PRIMARY" members="dc_cluster_shard_id" />
<index name="DataChange_LastTime" members="DataChange_LastTime ASC" />
<index name="DcClusterId" members="dc_cluster_id ASC" />
<index name="ShardId" members="shard_id ASC" />
<index name="ShardId_Deleted" members="shard_id ASC, deleted ASC" />
<index name="Deleted" members="deleted ASC" />
<index name="DcClusterId_Deleted" members="dc_cluster_id ASC, deleted ASC" />
<readsets>
<readset name="FULL" all="true" />
</readsets>
<updatesets>
<updateset name="FULL" all="true" />
</updatesets>
<query-defs>
<query name="find-by-PK" type="SELECT">
<param name="key-dc-cluster-shard-id" />
<statement><![CDATA[SELECT <FIELDS/>
FROM <TABLE/>
WHERE <FIELD name='dc-cluster-shard-id'/> = ${key-dc-cluster-shard-id}]]></statement>
</query>
<query name="insert" type="INSERT">
<statement><![CDATA[INSERT INTO <TABLE/>(<FIELDS/>)
VALUES(<VALUES/>)]]></statement>
</query>
<query name="update-by-PK" type="UPDATE">
<param name="key-dc-cluster-shard-id" />
<statement><![CDATA[UPDATE <TABLE/>
SET <FIELDS/>
WHERE <FIELD name='dc-cluster-shard-id'/> = ${key-dc-cluster-shard-id}]]></statement>
</query>
<query name="delete-by-PK" type="DELETE">
<param name="key-dc-cluster-shard-id" />
<statement><![CDATA[DELETE FROM <TABLE/>
WHERE <FIELD name='dc-cluster-shard-id'/> = ${key-dc-cluster-shard-id}]]></statement>
</query>
</query-defs>
</entity>
<entity name="dc-cluster-tbl" table="DC_CLUSTER_TBL" alias="dct">
<member name="dc-cluster-id" field="dc_cluster_id" value-type="long" length="20" nullable="false" key="true" auto-increment="true" />
<member name="dc-id" field="dc_id" value-type="long" length="20" nullable="false" />
<member name="cluster-id" field="cluster_id" value-type="long" length="20" nullable="false" />
<member name="az-group-cluster-id" field="az_group_cluster_id" value-type="long" length="20" nullable="false" />
<member name="metaserver-id" field="metaserver_id" value-type="long" length="20" nullable="false" />
<member name="dc-cluster-phase" field="dc_cluster_phase" value-type="int" length="10" nullable="false" />
<member name="active-redis-check-rules" field="active_redis_check_rules" value-type="String" length="128" />
<member name="group-name" field="group_name" value-type="String" length="20" />
<member name="group-type" field="group_type" value-type="String" length="32" />
<member name="data-change-last-time" field="DataChange_LastTime" value-type="Date" nullable="false" />
<member name="deleted" field="deleted" value-type="boolean" nullable="false" />
<var name="key-dc-cluster-id" value-type="long" key-member="dc-cluster-id" />
<primary-key name="PRIMARY" members="dc_cluster_id" />
<index name="DataChange_LastTime" members="DataChange_LastTime ASC" />
<index name="DcId" members="dc_id ASC" />
<index name="ClusterId" members="cluster_id ASC" />
<index name="DcIdPrimary" members="dc_id ASC, dc_cluster_id ASC, deleted ASC" />
<index name="ClusterId_Deleted" members="cluster_id ASC, deleted ASC" />
<index name="DcId_Deleted" members="dc_id ASC, deleted ASC" />
<readsets>
<readset name="FULL" all="true" />
</readsets>
<updatesets>
<updateset name="FULL" all="true" />
</updatesets>
<query-defs>
<query name="find-by-PK" type="SELECT">
<param name="key-dc-cluster-id" />
<statement><![CDATA[SELECT <FIELDS/>
FROM <TABLE/>
WHERE <FIELD name='dc-cluster-id'/> = ${key-dc-cluster-id}]]></statement>
</query>
<query name="insert" type="INSERT">
<statement><![CDATA[INSERT INTO <TABLE/>(<FIELDS/>)
VALUES(<VALUES/>)]]></statement>
</query>
<query name="update-by-PK" type="UPDATE">
<param name="key-dc-cluster-id" />
<statement><![CDATA[UPDATE <TABLE/>
SET <FIELDS/>
WHERE <FIELD name='dc-cluster-id'/> = ${key-dc-cluster-id}]]></statement>
</query>
<query name="delete-by-PK" type="DELETE">
<param name="key-dc-cluster-id" />
<statement><![CDATA[DELETE FROM <TABLE/>
WHERE <FIELD name='dc-cluster-id'/> = ${key-dc-cluster-id}]]></statement>
</query>
</query-defs>
</entity>
<entity name="dc-tbl" table="DC_TBL" alias="dt">
<member name="id" field="id" value-type="long" length="20" nullable="false" key="true" auto-increment="true" />
<member name="zone-id" field="zone_id" value-type="long" length="20" nullable="false" />
<member name="dc-name" field="dc_name" value-type="String" length="128" nullable="false" />
<member name="dc-active" field="dc_active" value-type="boolean" nullable="false" />
<member name="dc-description" field="dc_description" value-type="String" length="1024" nullable="false" />
<member name="dc-last-modified-time" field="dc_last_modified_time" value-type="String" length="40" nullable="false" />
<member name="data-change-last-time" field="DataChange_LastTime" value-type="Date" nullable="false" />
<member name="deleted" field="deleted" value-type="boolean" nullable="false" />
<var name="key-id" value-type="long" key-member="id" />
<primary-key name="PRIMARY" members="id" />
<index name="dc_name" unique="true" members="dc_name ASC" />
<index name="DataChange_LastTime" members="DataChange_LastTime ASC" />
<readsets>
<readset name="FULL" all="true" />
</readsets>
<updatesets>
<updateset name="FULL" all="true" />
</updatesets>
<query-defs>
<query name="find-by-PK" type="SELECT">
<param name="key-id" />
<statement><![CDATA[SELECT <FIELDS/>
FROM <TABLE/>
WHERE <FIELD name='id'/> = ${key-id}]]></statement>
</query>
<query name="insert" type="INSERT">
<statement><![CDATA[INSERT INTO <TABLE/>(<FIELDS/>)
VALUES(<VALUES/>)]]></statement>
</query>
<query name="update-by-PK" type="UPDATE">
<param name="key-id" />
<statement><![CDATA[UPDATE <TABLE/>
SET <FIELDS/>
WHERE <FIELD name='id'/> = ${key-id}]]></statement>
</query>
<query name="delete-by-PK" type="DELETE">
<param name="key-id" />
<statement><![CDATA[DELETE FROM <TABLE/>
WHERE <FIELD name='id'/> = ${key-id}]]></statement>
</query>
</query-defs>
</entity>
<entity name="keepercontainer-tbl" table="KEEPERCONTAINER_TBL" alias="kt">
<member name="keepercontainer-id" field="keepercontainer_id" value-type="long" length="20" nullable="false" key="true" auto-increment="true" />
<member name="keepercontainer-dc" field="keepercontainer_dc" value-type="long" length="20" nullable="false" />
<member name="az-id" field="az_id" value-type="long" length="20" nullable="false" />
<member name="keepercontainer-ip" field="keepercontainer_ip" value-type="String" length="40" nullable="false" />
<member name="keepercontainer-port" field="keepercontainer_port" value-type="int" length="10" nullable="false" />
<member name="keepercontainer-active" field="keepercontainer_active" value-type="boolean" nullable="false" />
<member name="data-change-last-time" field="DataChange_LastTime" value-type="Date" nullable="false" />
<member name="deleted" field="deleted" value-type="boolean" nullable="false" />
<member name="keepercontainer-org-id" field="keepercontainer_org_id" value-type="long" length="20" nullable="false" />
<member name="keepercontainer_disk_type" field="keepercontainer_disk_type" value-type="String" length="40" nullable="false" />
<var name="key-keepercontainer-id" value-type="long" key-member="keepercontainer-id" />
<primary-key name="PRIMARY" members="keepercontainer_id" />
<index name="DataChange_LastTime" members="DataChange_LastTime ASC" />
<index name="keepercontainer_dc" members="keepercontainer_dc ASC" />
<readsets>
<readset name="FULL" all="true" />
</readsets>
<updatesets>
<updateset name="FULL" all="true" />
</updatesets>
<query-defs>
<query name="find-by-PK" type="SELECT">
<param name="key-keepercontainer-id" />
<statement><![CDATA[SELECT <FIELDS/>
FROM <TABLE/>
WHERE <FIELD name='keepercontainer-id'/> = ${key-keepercontainer-id}]]></statement>
</query>
<query name="insert" type="INSERT">
<statement><![CDATA[INSERT INTO <TABLE/>(<FIELDS/>)
VALUES(<VALUES/>)]]></statement>
</query>
<query name="update-by-PK" type="UPDATE">
<param name="key-keepercontainer-id" />
<statement><![CDATA[UPDATE <TABLE/>
SET <FIELDS/>
WHERE <FIELD name='keepercontainer-id'/> = ${key-keepercontainer-id}]]></statement>
</query>
<query name="delete-by-PK" type="DELETE">
<param name="key-keepercontainer-id" />
<statement><![CDATA[DELETE FROM <TABLE/>
WHERE <FIELD name='keepercontainer-id'/> = ${key-keepercontainer-id}]]></statement>
</query>
</query-defs>
</entity>
<entity name="metaserver-tbl" table="METASERVER_TBL" alias="mt">
<member name="id" field="id" value-type="long" length="20" nullable="false" key="true" auto-increment="true" />
<member name="metaserver-name" field="metaserver_name" value-type="String" length="128" nullable="false" />
<member name="dc-id" field="dc_id" value-type="long" length="20" nullable="false" />
<member name="metaserver-ip" field="metaserver_ip" value-type="String" length="40" nullable="false" />
<member name="metaserver-port" field="metaserver_port" value-type="int" length="10" nullable="false" />
<member name="metaserver-active" field="metaserver_active" value-type="boolean" nullable="false" />
<member name="metaserver-role" field="metaserver_role" value-type="String" length="12" nullable="false" />
<member name="data-change-last-time" field="DataChange_LastTime" value-type="Date" nullable="false" />
<member name="deleted" field="deleted" value-type="boolean" nullable="false" />
<var name="key-id" value-type="long" key-member="id" />
<primary-key name="PRIMARY" members="id" />
<index name="metaserver_name" unique="true" members="metaserver_name ASC" />
<index name="DataChange_LastTime" members="DataChange_LastTime ASC" />
<index name="dc_id" members="dc_id ASC" />
<readsets>
<readset name="FULL" all="true" />
</readsets>
<updatesets>
<updateset name="FULL" all="true" />
</updatesets>
<query-defs>
<query name="find-by-PK" type="SELECT">
<param name="key-id" />
<statement><![CDATA[SELECT <FIELDS/>
FROM <TABLE/>
WHERE <FIELD name='id'/> = ${key-id}]]></statement>
</query>
<query name="insert" type="INSERT">
<statement><![CDATA[INSERT INTO <TABLE/>(<FIELDS/>)
VALUES(<VALUES/>)]]></statement>
</query>
<query name="update-by-PK" type="UPDATE">
<param name="key-id" />
<statement><![CDATA[UPDATE <TABLE/>
SET <FIELDS/>
WHERE <FIELD name='id'/> = ${key-id}]]></statement>
</query>
<query name="delete-by-PK" type="DELETE">
<param name="key-id" />
<statement><![CDATA[DELETE FROM <TABLE/>
WHERE <FIELD name='id'/> = ${key-id}]]></statement>
</query>
</query-defs>
</entity>
<entity name="redis-tbl" table="REDIS_TBL" alias="rt">
<member name="id" field="id" value-type="long" length="20" nullable="false" key="true" auto-increment="true" />
<member name="run-id" field="run_id" value-type="String" length="128" nullable="false" />
<member name="dc-cluster-shard-id" field="dc_cluster_shard_id" value-type="long" length="19" nullable="false" />
<member name="redis-ip" field="redis_ip" value-type="String" length="40" nullable="false" />
<member name="redis-port" field="redis_port" value-type="int" length="10" nullable="false" />
<member name="redis-role" field="redis_role" value-type="String" length="12" nullable="false" />
<member name="keeper-active" field="keeper_active" value-type="boolean" nullable="false" />
<member name="master" field="master" value-type="boolean" />
<member name="redis-master" field="redis_master" value-type="long" length="20" />
<member name="keepercontainer-id" field="keepercontainer_id" value-type="long" length="20" />
<member name="data-change-last-time" field="DataChange_LastTime" value-type="Date" nullable="false" />
<member name="deleted" field="deleted" value-type="boolean" nullable="false" />
<member name="deleted-at" field="deleted_at" value-type="int" length="10" nullable="false" />
<var name="key-id" value-type="long" key-member="id" />
<primary-key name="PRIMARY" members="id" />
<index name="ip_port_deleted_at" unique="true" members="redis_ip ASC, redis_port ASC, deleted_at ASC" />
<index name="DataChange_LastTime" members="DataChange_LastTime ASC" />
<index name="DcClusterShardId" members="dc_cluster_shard_id ASC" />
<index name="keeper_active" members="keeper_active ASC" />
<index name="DcClusterShardId_Deleted" members="dc_cluster_shard_id ASC, deleted ASC" />
<readsets>
<readset name="FULL" all="true" />
</readsets>
<updatesets>
<updateset name="FULL" all="true" />
</updatesets>
<query-defs>
<query name="find-by-PK" type="SELECT">
<param name="key-id" />
<statement><![CDATA[SELECT <FIELDS/>
FROM <TABLE/>
WHERE <FIELD name='id'/> = ${key-id}]]></statement>
</query>
<query name="insert" type="INSERT">
<statement><![CDATA[INSERT INTO <TABLE/>(<FIELDS/>)
VALUES(<VALUES/>)]]></statement>
</query>
<query name="update-by-PK" type="UPDATE">
<param name="key-id" />
<statement><![CDATA[UPDATE <TABLE/>
SET <FIELDS/>
WHERE <FIELD name='id'/> = ${key-id}]]></statement>
</query>
<query name="delete-by-PK" type="DELETE">
<param name="key-id" />
<statement><![CDATA[DELETE FROM <TABLE/>
WHERE <FIELD name='id'/> = ${key-id}]]></statement>
</query>
</query-defs>
</entity>
<entity name="setinel-tbl" table="SETINEL_TBL" alias="st">
<member name="setinel-id" field="setinel_id" value-type="long" length="20" nullable="false" key="true" auto-increment="true" />
<member name="dc-id" field="dc_id" value-type="long" length="20" nullable="false" />
<member name="setinel-address" field="setinel_address" value-type="String" length="128" nullable="false" />
<member name="setinel-description" field="setinel_description" value-type="String" length="1024" nullable="false" />
<member name="data-change-last-time" field="DataChange_LastTime" value-type="Date" nullable="false" />
<member name="deleted" field="deleted" value-type="boolean" nullable="false" />
<var name="key-setinel-id" value-type="long" key-member="setinel-id" />
<primary-key name="PRIMARY" members="setinel_id" />
<index name="DataChange_LastTime" members="DataChange_LastTime ASC" />
<index name="dc_id" members="dc_id ASC" />
<readsets>
<readset name="FULL" all="true" />
</readsets>
<updatesets>
<updateset name="FULL" all="true" />
</updatesets>
<query-defs>
<query name="find-by-PK" type="SELECT">
<param name="key-setinel-id" />
<statement><![CDATA[SELECT <FIELDS/>
FROM <TABLE/>
WHERE <FIELD name='setinel-id'/> = ${key-setinel-id}]]></statement>
</query>
<query name="insert" type="INSERT">
<statement><![CDATA[INSERT INTO <TABLE/>(<FIELDS/>)
VALUES(<VALUES/>)]]></statement>
</query>
<query name="update-by-PK" type="UPDATE">
<param name="key-setinel-id" />
<statement><![CDATA[UPDATE <TABLE/>
SET <FIELDS/>
WHERE <FIELD name='setinel-id'/> = ${key-setinel-id}]]></statement>
</query>
<query name="delete-by-PK" type="DELETE">
<param name="key-setinel-id" />
<statement><![CDATA[DELETE FROM <TABLE/>
WHERE <FIELD name='setinel-id'/> = ${key-setinel-id}]]></statement>
</query>
</query-defs>
</entity>
<entity name="shard-tbl" table="SHARD_TBL" alias="st2">
<member name="id" field="id" value-type="long" length="20" nullable="false" key="true" auto-increment="true" />
<member name="shard-name" field="shard_name" value-type="String" length="128" nullable="false" />
<member name="cluster-id" field="cluster_id" value-type="long" length="20" nullable="false" />
<member name="setinel-monitor-name" field="setinel_monitor_name" value-type="String" length="128" nullable="false" />
<member name="data-change-last-time" field="DataChange_LastTime" value-type="Date" nullable="false" />
<member name="deleted" field="deleted" value-type="boolean" nullable="false" />
<var name="key-id" value-type="long" key-member="id" />
<primary-key name="PRIMARY" members="id" />
<index name="DataChangeLastTime" members="DataChange_LastTime ASC" />
<index name="ClusterId" members="cluster_id ASC" />
<index name="Deleted" members="deleted ASC" />
<readsets>
<readset name="FULL" all="true" />
</readsets>
<updatesets>
<updateset name="FULL" all="true" />
</updatesets>
<query-defs>
<query name="find-by-PK" type="SELECT">
<param name="key-id" />
<statement><![CDATA[SELECT <FIELDS/>
FROM <TABLE/>
WHERE <FIELD name='id'/> = ${key-id}]]></statement>
</query>
<query name="insert" type="INSERT">
<statement><![CDATA[INSERT INTO <TABLE/>(<FIELDS/>)
VALUES(<VALUES/>)]]></statement>
</query>
<query name="update-by-PK" type="UPDATE">
<param name="key-id" />
<statement><![CDATA[UPDATE <TABLE/>
SET <FIELDS/>
WHERE <FIELD name='id'/> = ${key-id}]]></statement>
</query>
<query name="delete-by-PK" type="DELETE">
<param name="key-id" />
<statement><![CDATA[DELETE FROM <TABLE/>
WHERE <FIELD name='id'/> = ${key-id}]]></statement>
</query>
</query-defs>
</entity>
<entity name="zone-tbl" table="ZONE_TBL" alias="zt">
<member name="id" field="id" value-type="long" length="20" nullable="false" key="true" auto-increment="true" />
<member name="zone-name" field="zone_name" value-type="String" length="128" nullable="false" />
<member name="data-change-last-time" field="DataChange_LastTime" value-type="Date" nullable="false" />
<member name="deleted" field="deleted" value-type="boolean" nullable="false" />
<var name="key-id" value-type="long" key-member="id" />
<primary-key name="PRIMARY" members="id" />
<index name="zone_name" unique="true" members="zone_name ASC" />
<index name="DataChange_LastTime" members="DataChange_LastTime ASC" />
<readsets>
<readset name="FULL" all="true" />
</readsets>
<updatesets>
<updateset name="FULL" all="true" />
</updatesets>
<query-defs>
<query name="find-by-PK" type="SELECT">
<param name="key-id" />
<statement><![CDATA[SELECT <FIELDS/>
FROM <TABLE/>
WHERE <FIELD name='id'/> = ${key-id}]]></statement>
</query>
<query name="insert" type="INSERT">
<statement><![CDATA[INSERT INTO <TABLE/>(<FIELDS/>)
VALUES(<VALUES/>)]]></statement>
</query>
<query name="update-by-PK" type="UPDATE">
<param name="key-id" />
<statement><![CDATA[UPDATE <TABLE/>
SET <FIELDS/>
WHERE <FIELD name='id'/> = ${key-id}]]></statement>
</query>
<query name="delete-by-PK" type="DELETE">
<param name="key-id" />
<statement><![CDATA[DELETE FROM <TABLE/>
WHERE <FIELD name='id'/> = ${key-id}]]></statement>
</query>
</query-defs>
</entity>
<entity name="applier-tbl" table="applier_tbl" alias="at">
<member name="id" field="id" value-type="long" length="20" nullable="false" key="true" auto-increment="true" />
<member name="shard-id" field="shard_id" value-type="long" length="20" nullable="false" />
<member name="repl-direction-id" field="repl_direction_id" value-type="long" length="20" nullable="false" />
<member name="container-id" field="container_id" value-type="long" length="20" nullable="false" />
<member name="ip" field="ip" value-type="String" length="40" nullable="false" />
<member name="port" field="port" value-type="int" length="10" nullable="false" />
<member name="active" field="active" value-type="boolean" nullable="false" />
<member name="data-change-last-time" field="DataChange_LastTime" value-type="Date" nullable="false" />
<member name="deleted" field="deleted" value-type="boolean" nullable="false" />
<member name="deleted-at" field="deleted_at" value-type="int" length="10" nullable="false" />
<var name="key-id" value-type="long" key-member="id" />
<primary-key name="PRIMARY" members="id" />
<index name="ip_port_deleted_at" unique="true" members="ip ASC, port ASC, deleted_at ASC" />
<index name="DataChange_LastTime" members="DataChange_LastTime ASC" />
<index name="shard_id" members="shard_id ASC" />
<index name="active" members="active ASC" />
<index name="shard_id_deleted" members="shard_id ASC, deleted ASC" />
<readsets>
<readset name="FULL" all="true" />
</readsets>
<updatesets>
<updateset name="FULL" all="true" />
</updatesets>
<query-defs>
<query name="find-by-PK" type="SELECT">
<param name="key-id" />
<statement><![CDATA[SELECT <FIELDS/>
FROM <TABLE/>
WHERE <FIELD name='id'/> = ${key-id}]]></statement>
</query>
<query name="insert" type="INSERT">
<statement><![CDATA[INSERT INTO <TABLE/>(<FIELDS/>)
VALUES(<VALUES/>)]]></statement>
</query>
<query name="update-by-PK" type="UPDATE">
<param name="key-id" />
<statement><![CDATA[UPDATE <TABLE/>
SET <FIELDS/>
WHERE <FIELD name='id'/> = ${key-id}]]></statement>
</query>
<query name="delete-by-PK" type="DELETE">
<param name="key-id" />
<statement><![CDATA[DELETE FROM <TABLE/>
WHERE <FIELD name='id'/> = ${key-id}]]></statement>
</query>
</query-defs>
</entity>
<entity name="appliercontainer-tbl" table="appliercontainer_tbl" alias="at2">
<member name="appliercontainer-id" field="appliercontainer_id" value-type="long" length="20" nullable="false" key="true" auto-increment="true" />
<member name="appliercontainer-dc" field="appliercontainer_dc" value-type="long" length="20" nullable="false" />
<member name="appliercontainer-az" field="appliercontainer_az" value-type="long" length="20" nullable="false" />
<member name="appliercontainer-org" field="appliercontainer_org" value-type="long" length="20" nullable="false" />
<member name="appliercontainer-ip" field="appliercontainer_ip" value-type="String" length="40" nullable="false" />
<member name="appliercontainer-port" field="appliercontainer_port" value-type="int" length="10" nullable="false" />
<member name="appliercontainer-active" field="appliercontainer_active" value-type="boolean" nullable="false" />
<member name="data-change-last-time" field="DataChange_LastTime" value-type="Date" nullable="false" />
<member name="deleted" field="deleted" value-type="boolean" nullable="false" />
<var name="key-appliercontainer-id" value-type="long" key-member="appliercontainer-id" />
<primary-key name="PRIMARY" members="appliercontainer_id" />
<index name="DataChange_LastTime" members="DataChange_LastTime ASC" />
<index name="appliercontainer_dc" members="appliercontainer_dc ASC" />
<readsets>
<readset name="FULL" all="true" />
</readsets>
<updatesets>
<updateset name="FULL" all="true" />
</updatesets>
<query-defs>
<query name="find-by-PK" type="SELECT">
<param name="key-appliercontainer-id" />
<statement><![CDATA[SELECT <FIELDS/>
FROM <TABLE/>
WHERE <FIELD name='appliercontainer-id'/> = ${key-appliercontainer-id}]]></statement>
</query>
<query name="insert" type="INSERT">
<statement><![CDATA[INSERT INTO <TABLE/>(<FIELDS/>)
VALUES(<VALUES/>)]]></statement>
</query>
<query name="update-by-PK" type="UPDATE">
<param name="key-appliercontainer-id" />
<statement><![CDATA[UPDATE <TABLE/>
SET <FIELDS/>
WHERE <FIELD name='appliercontainer-id'/> = ${key-appliercontainer-id}]]></statement>
</query>
<query name="delete-by-PK" type="DELETE">
<param name="key-appliercontainer-id" />
<statement><![CDATA[DELETE FROM <TABLE/>
WHERE <FIELD name='appliercontainer-id'/> = ${key-appliercontainer-id}]]></statement>
</query>
</query-defs>
</entity>
<entity name="az-tbl" table="az_tbl" alias="at3">
<member name="id" field="id" value-type="long" length="20" nullable="false" key="true" auto-increment="true" />
<member name="dc-id" field="dc_id" value-type="long" length="20" nullable="false" />
<member name="active" field="active" value-type="boolean" nullable="false" />
<member name="az-name" field="az_name" value-type="String" length="128" nullable="false" />
<member name="description" field="description" value-type="String" length="1024" nullable="false" />
<member name="data-change-last-time" field="DataChange_LastTime" value-type="Date" nullable="false" />
<member name="deleted" field="deleted" value-type="boolean" nullable="false" />
<var name="key-id" value-type="long" key-member="id" />
<primary-key name="PRIMARY" members="id" />
<index name="idx_az_name" unique="true" members="az_name ASC" />
<index name="DataChange_LastTime" members="DataChange_LastTime ASC" />
<readsets>
<readset name="FULL" all="true" />
</readsets>
<updatesets>
<updateset name="FULL" all="true" />
</updatesets>
<query-defs>
<query name="find-by-PK" type="SELECT">
<param name="key-id" />
<statement><![CDATA[SELECT <FIELDS/>
FROM <TABLE/>
WHERE <FIELD name='id'/> = ${key-id}]]></statement>
</query>
<query name="insert" type="INSERT">
<statement><![CDATA[INSERT INTO <TABLE/>(<FIELDS/>)
VALUES(<VALUES/>)]]></statement>
</query>
<query name="update-by-PK" type="UPDATE">
<param name="key-id" />
<statement><![CDATA[UPDATE <TABLE/>
SET <FIELDS/>
WHERE <FIELD name='id'/> = ${key-id}]]></statement>
</query>
<query name="delete-by-PK" type="DELETE">
<param name="key-id" />
<statement><![CDATA[DELETE FROM <TABLE/>
WHERE <FIELD name='id'/> = ${key-id}]]></statement>
</query>
</query-defs>
</entity>
<entity name="config-tbl" table="config_tbl" alias="ct2">
<member name="id" field="id" value-type="long" length="20" nullable="false" key="true" auto-increment="true" />
<member name="key" field="key" value-type="String" length="128" nullable="false" />
<member name="sub-key" field="sub_key" value-type="String" length="128" nullable="false" />
<member name="value" field="value" value-type="String" length="1024" />
<member name="until" field="until" value-type="Date" nullable="false" />
<member name="latest-update-user" field="latest_update_user" value-type="String" length="512" />
<member name="latest-update-ip" field="latest_update_ip" value-type="String" length="128" />
<member name="desc" field="desc" value-type="String" length="1024" nullable="false" />
<member name="data-change-last-time" field="DataChange_LastTime" value-type="Date" nullable="false" />
<member name="deleted" field="deleted" value-type="int" length="3" nullable="false" />
<var name="key-id" value-type="long" key-member="id" />
<primary-key name="PRIMARY" members="id" />
<index name="key_sub_key" unique="true" members="key ASC, sub_key ASC" />
<index name="DataChange_LastTime" members="DataChange_LastTime ASC" />
<readsets>
<readset name="FULL" all="true" />
</readsets>
<updatesets>
<updateset name="FULL" all="true" />
</updatesets>
<query-defs>
<query name="find-by-PK" type="SELECT">
<param name="key-id" />
<statement><![CDATA[SELECT <FIELDS/>
FROM <TABLE/>
WHERE <FIELD name='id'/> = ${key-id}]]></statement>
</query>
<query name="insert" type="INSERT">
<statement><![CDATA[INSERT INTO <TABLE/>(<FIELDS/>)
VALUES(<VALUES/>)]]></statement>
</query>
<query name="update-by-PK" type="UPDATE">
<param name="key-id" />
<statement><![CDATA[UPDATE <TABLE/>
SET <FIELDS/>
WHERE <FIELD name='id'/> = ${key-id}]]></statement>
</query>
<query name="delete-by-PK" type="DELETE">
<param name="key-id" />
<statement><![CDATA[DELETE FROM <TABLE/>
WHERE <FIELD name='id'/> = ${key-id}]]></statement>
</query>
</query-defs>
</entity>
<entity name="event-tbl" table="event_tbl" alias="et">
<member name="id" field="id" value-type="long" length="20" nullable="false" key="true" auto-increment="true" />
<member name="event-type" field="event_type" value-type="String" length="20" nullable="false" />
<member name="event-operator" field="event_operator" value-type="String" length="128" nullable="false" />
<member name="event-operation" field="event_operation" value-type="String" length="120" nullable="false" />
<member name="event-detail" field="event_detail" value-type="String" length="512" nullable="false" />
<member name="event-property" field="event_property" value-type="String" length="512" nullable="false" />
<member name="data-change-last-time" field="DataChange_LastTime" value-type="Date" nullable="false" />
<member name="deleted" field="deleted" value-type="int" length="3" nullable="false" />
<var name="key-id" value-type="long" key-member="id" />
<primary-key name="PRIMARY" members="id" />
<index name="DataChange_LastTime" members="DataChange_LastTime ASC" />
<index name="event_type" members="event_type ASC" />
<readsets>
<readset name="FULL" all="true" />
</readsets>
<updatesets>
<updateset name="FULL" all="true" />
</updatesets>
<query-defs>
<query name="find-by-PK" type="SELECT">
<param name="key-id" />
<statement><![CDATA[SELECT <FIELDS/>
FROM <TABLE/>
WHERE <FIELD name='id'/> = ${key-id}]]></statement>
</query>
<query name="insert" type="INSERT">
<statement><![CDATA[INSERT INTO <TABLE/>(<FIELDS/>)
VALUES(<VALUES/>)]]></statement>
</query>
<query name="update-by-PK" type="UPDATE">
<param name="key-id" />
<statement><![CDATA[UPDATE <TABLE/>
SET <FIELDS/>
WHERE <FIELD name='id'/> = ${key-id}]]></statement>
</query>
<query name="delete-by-PK" type="DELETE">
<param name="key-id" />
<statement><![CDATA[DELETE FROM <TABLE/>
WHERE <FIELD name='id'/> = ${key-id}]]></statement>
</query>
</query-defs>
</entity>
<entity name="migration-cluster-tbl" table="migration_cluster_tbl" alias="mct">
<member name="id" field="id" value-type="long" length="20" nullable="false" key="true" auto-increment="true" />
<member name="migration-event-id" field="migration_event_id" value-type="long" length="20" nullable="false" />
<member name="cluster-id" field="cluster_id" value-type="long" length="20" nullable="false" />
<member name="source-dc-id" field="source_dc_id" value-type="long" length="20" nullable="false" />
<member name="destination-dc-id" field="destination_dc_id" value-type="long" length="20" nullable="false" />
<member name="start-time" field="start_time" value-type="Date" nullable="false" />
<member name="end-time" field="end_time" value-type="Date" />
<member name="status" field="status" value-type="String" length="16" nullable="false" />
<member name="publish-info" field="publish_info" value-type="String" length="10240" nullable="false" />
<member name="data-change-last-time" field="DataChange_LastTime" value-type="Date" nullable="false" />
<member name="deleted" field="deleted" value-type="boolean" nullable="false" />
<var name="key-id" value-type="long" key-member="id" />
<primary-key name="PRIMARY" members="id" />
<index name="DataChange_LastTime" members="DataChange_LastTime ASC" />
<index name="ClusterId_MigrationEventId" members="cluster_id ASC, migration_event_id ASC" />
<index name="MigrationEventId" members="migration_event_id ASC" />
<readsets>
<readset name="FULL" all="true" />
</readsets>
<updatesets>
<updateset name="FULL" all="true" />
</updatesets>
<query-defs>
<query name="find-by-PK" type="SELECT">
<param name="key-id" />
<statement><![CDATA[SELECT <FIELDS/>
FROM <TABLE/>
WHERE <FIELD name='id'/> = ${key-id}]]></statement>
</query>
<query name="insert" type="INSERT">
<statement><![CDATA[INSERT INTO <TABLE/>(<FIELDS/>)
VALUES(<VALUES/>)]]></statement>
</query>
<query name="update-by-PK" type="UPDATE">
<param name="key-id" />
<statement><![CDATA[UPDATE <TABLE/>
SET <FIELDS/>
WHERE <FIELD name='id'/> = ${key-id}]]></statement>
</query>
<query name="delete-by-PK" type="DELETE">
<param name="key-id" />
<statement><![CDATA[DELETE FROM <TABLE/>
WHERE <FIELD name='id'/> = ${key-id}]]></statement>
</query>
</query-defs>
</entity>
<entity name="migration-event-tbl" table="migration_event_tbl" alias="met">
<member name="id" field="id" value-type="long" length="20" nullable="false" key="true" auto-increment="true" />
<member name="start-time" field="start_time" value-type="Date" nullable="false" />
<member name="break" field="break" value-type="boolean" nullable="false" />
<member name="operator" field="operator" value-type="String" length="128" nullable="false" />
<member name="event-tag" field="event_tag" value-type="String" length="150" nullable="false" />
<member name="data-change-last-time" field="DataChange_LastTime" value-type="Date" nullable="false" />
<member name="deleted" field="deleted" value-type="boolean" nullable="false" />
<var name="key-id" value-type="long" key-member="id" />
<primary-key name="PRIMARY" members="id" />
<index name="DataChange_LastTime" members="DataChange_LastTime ASC" />
<readsets>
<readset name="FULL" all="true" />
</readsets>
<updatesets>
<updateset name="FULL" all="true" />
</updatesets>
<query-defs>
<query name="find-by-PK" type="SELECT">
<param name="key-id" />
<statement><![CDATA[SELECT <FIELDS/>
FROM <TABLE/>
WHERE <FIELD name='id'/> = ${key-id}]]></statement>
</query>
<query name="insert" type="INSERT">
<statement><![CDATA[INSERT INTO <TABLE/>(<FIELDS/>)
VALUES(<VALUES/>)]]></statement>
</query>
<query name="update-by-PK" type="UPDATE">
<param name="key-id" />
<statement><![CDATA[UPDATE <TABLE/>
SET <FIELDS/>
WHERE <FIELD name='id'/> = ${key-id}]]></statement>
</query>
<query name="delete-by-PK" type="DELETE">
<param name="key-id" />
<statement><![CDATA[DELETE FROM <TABLE/>
WHERE <FIELD name='id'/> = ${key-id}]]></statement>
</query>
</query-defs>
</entity>
<entity name="migration-shard-tbl" table="migration_shard_tbl" alias="mst">
<member name="id" field="id" value-type="long" length="20" nullable="false" key="true" auto-increment="true" />
<member name="migration-cluster-id" field="migration_cluster_id" value-type="long" length="20" nullable="false" />
<member name="shard-id" field="shard_id" value-type="long" length="20" nullable="false" />
<member name="log" field="log" value-type="String" length="20480" nullable="false" />
<member name="data-change-last-time" field="DataChange_LastTime" value-type="Date" nullable="false" />
<member name="deleted" field="deleted" value-type="int" length="3" nullable="false" />
<var name="key-id" value-type="long" key-member="id" />
<primary-key name="PRIMARY" members="id" />
<index name="DataChange_LastTime" members="DataChange_LastTime ASC" />
<index name="MigrationClusterId" members="migration_cluster_id ASC" />
<readsets>
<readset name="FULL" all="true" />
</readsets>
<updatesets>
<updateset name="FULL" all="true" />
</updatesets>
<query-defs>
<query name="find-by-PK" type="SELECT">
<param name="key-id" />
<statement><![CDATA[SELECT <FIELDS/>
FROM <TABLE/>
WHERE <FIELD name='id'/> = ${key-id}]]></statement>
</query>
<query name="insert" type="INSERT">
<statement><![CDATA[INSERT INTO <TABLE/>(<FIELDS/>)
VALUES(<VALUES/>)]]></statement>
</query>
<query name="update-by-PK" type="UPDATE">
<param name="key-id" />
<statement><![CDATA[UPDATE <TABLE/>
SET <FIELDS/>
WHERE <FIELD name='id'/> = ${key-id}]]></statement>
</query>
<query name="delete-by-PK" type="DELETE">
<param name="key-id" />
<statement><![CDATA[DELETE FROM <TABLE/>
WHERE <FIELD name='id'/> = ${key-id}]]></statement>
</query>
</query-defs>
</entity>
<entity name="organization-tbl" table="organization_tbl" alias="ot">
<member name="id" field="id" value-type="long" length="20" nullable="false" key="true" auto-increment="true" />
<member name="org-id" field="org_id" value-type="long" length="20" nullable="false" />
<member name="org-name" field="org_name" value-type="String" length="250" nullable="false" />
<member name="data-change-last-time" field="DataChange_LastTime" value-type="Date" nullable="false" />
<member name="deleted" field="deleted" value-type="int" length="3" nullable="false" />
<var name="key-id" value-type="long" key-member="id" />
<primary-key name="PRIMARY" members="id" />
<index name="org_id" unique="true" members="org_id ASC" />
<index name="org_name" unique="true" members="org_name ASC" />
<index name="DataChange_LastTime" members="DataChange_LastTime ASC" />
<readsets>
<readset name="FULL" all="true" />
</readsets>
<updatesets>
<updateset name="FULL" all="true" />
</updatesets>
<query-defs>
<query name="find-by-PK" type="SELECT">
<param name="key-id" />
<statement><![CDATA[SELECT <FIELDS/>
FROM <TABLE/>
WHERE <FIELD name='id'/> = ${key-id}]]></statement>
</query>
<query name="insert" type="INSERT">
<statement><![CDATA[INSERT INTO <TABLE/>(<FIELDS/>)
VALUES(<VALUES/>)]]></statement>
</query>
<query name="update-by-PK" type="UPDATE">
<param name="key-id" />
<statement><![CDATA[UPDATE <TABLE/>
SET <FIELDS/>
WHERE <FIELD name='id'/> = ${key-id}]]></statement>
</query>
<query name="delete-by-PK" type="DELETE">
<param name="key-id" />
<statement><![CDATA[DELETE FROM <TABLE/>
WHERE <FIELD name='id'/> = ${key-id}]]></statement>
</query>
</query-defs>
</entity>
<entity name="proxy-tbl" table="proxy_tbl" alias="pt">
<member name="id" field="id" value-type="long" length="20" nullable="false" key="true" auto-increment="true" />
<member name="dc-id" field="dc_id" value-type="long" length="20" nullable="false" />
<member name="uri" field="uri" value-type="String" length="256" nullable="false" />
<member name="active" field="active" value-type="boolean" nullable="false" />
<member name="monitor-active" field="monitor_active" value-type="boolean" nullable="false" />
<member name="data-change-last-time" field="DataChange_LastTime" value-type="Date" nullable="false" />
<member name="deleted" field="deleted" value-type="int" length="3" nullable="false" />
<var name="key-id" value-type="long" key-member="id" />
<primary-key name="PRIMARY" members="id" />
<index name="DataChange_LastTime" members="DataChange_LastTime ASC" />
<readsets>
<readset name="FULL" all="true" />
</readsets>
<updatesets>
<updateset name="FULL" all="true" />
</updatesets>
<query-defs>
<query name="find-by-PK" type="SELECT">
<param name="key-id" />
<statement><![CDATA[SELECT <FIELDS/>
FROM <TABLE/>
WHERE <FIELD name='id'/> = ${key-id}]]></statement>
</query>
<query name="insert" type="INSERT">
<statement><![CDATA[INSERT INTO <TABLE/>(<FIELDS/>)
VALUES(<VALUES/>)]]></statement>
</query>
<query name="update-by-PK" type="UPDATE">
<param name="key-id" />
<statement><![CDATA[UPDATE <TABLE/>
SET <FIELDS/>
WHERE <FIELD name='id'/> = ${key-id}]]></statement>
</query>
<query name="delete-by-PK" type="DELETE">
<param name="key-id" />
<statement><![CDATA[DELETE FROM <TABLE/>
WHERE <FIELD name='id'/> = ${key-id}]]></statement>
</query>
</query-defs>
</entity>
<entity name="redis-check-rule-tbl" table="redis_check_rule_tbl" alias="rcrt">
<member name="id" field="id" value-type="long" length="20" nullable="false" key="true" auto-increment="true" />
<member name="check-type" field="check_type" value-type="String" length="128" nullable="false" />
<member name="param" field="param" value-type="String" length="256" nullable="false" />
<member name="description" field="description" value-type="String" length="1024" nullable="false" />
<member name="data-change-last-time" field="DataChange_LastTime" value-type="Date" nullable="false" />
<member name="deleted" field="deleted" value-type="boolean" nullable="false" />
<var name="key-id" value-type="long" key-member="id" />
<primary-key name="PRIMARY" members="id" />
<index name="DataChange_LastTime" members="DataChange_LastTime ASC" />
<readsets>
<readset name="FULL" all="true" />
</readsets>
<updatesets>
<updateset name="FULL" all="true" />
</updatesets>
<query-defs>
<query name="find-by-PK" type="SELECT">
<param name="key-id" />
<statement><![CDATA[SELECT <FIELDS/>
FROM <TABLE/>
WHERE <FIELD name='id'/> = ${key-id}]]></statement>
</query>
<query name="insert" type="INSERT">
<statement><![CDATA[INSERT INTO <TABLE/>(<FIELDS/>)
VALUES(<VALUES/>)]]></statement>
</query>
<query name="update-by-PK" type="UPDATE">
<param name="key-id" />
<statement><![CDATA[UPDATE <TABLE/>
SET <FIELDS/>
WHERE <FIELD name='id'/> = ${key-id}]]></statement>
</query>
<query name="delete-by-PK" type="DELETE">
<param name="key-id" />
<statement><![CDATA[DELETE FROM <TABLE/>
WHERE <FIELD name='id'/> = ${key-id}]]></statement>
</query>
</query-defs>
</entity>
<entity name="repl-direction-tbl" table="repl_direction_tbl" alias="rdt">
<member name="id" field="id" value-type="long" length="20" nullable="false" key="true" auto-increment="true" />
<member name="cluster-id" field="cluster_id" value-type="long" length="20" nullable="false" />
<member name="src-dc-id" field="src_dc_id" value-type="long" length="20" nullable="false" />
<member name="from-dc-id" field="from_dc_id" value-type="long" length="20" nullable="false" />
<member name="to-dc-id" field="to_dc_id" value-type="long" length="20" nullable="false" />
<member name="target-cluster-name" field="target_cluster_name" value-type="String" length="128" />
<member name="data-change-last-time" field="DataChange_LastTime" value-type="Date" nullable="false" />
<member name="deleted" field="deleted" value-type="boolean" nullable="false" />
<var name="key-id" value-type="long" key-member="id" />
<primary-key name="PRIMARY" members="id" />
<index name="cluster_id" members="cluster_id ASC" />
<index name="DataChange_LastTime" members="DataChange_LastTime ASC" />
<readsets>
<readset name="FULL" all="true" />
</readsets>
<updatesets>
<updateset name="FULL" all="true" />
</updatesets>
<query-defs>
<query name="find-by-PK" type="SELECT">
<param name="key-id" />
<statement><![CDATA[SELECT <FIELDS/>
FROM <TABLE/>
WHERE <FIELD name='id'/> = ${key-id}]]></statement>
</query>
<query name="insert" type="INSERT">
<statement><![CDATA[INSERT INTO <TABLE/>(<FIELDS/>)
VALUES(<VALUES/>)]]></statement>
</query>
<query name="update-by-PK" type="UPDATE">
<param name="key-id" />
<statement><![CDATA[UPDATE <TABLE/>
SET <FIELDS/>
WHERE <FIELD name='id'/> = ${key-id}]]></statement>
</query>
<query name="delete-by-PK" type="DELETE">
<param name="key-id" />
<statement><![CDATA[DELETE FROM <TABLE/>
WHERE <FIELD name='id'/> = ${key-id}]]></statement>
</query>
</query-defs>
</entity>
<entity name="route-tbl" table="route_tbl" alias="rt2">
<member name="id" field="id" value-type="long" length="20" nullable="false" key="true" auto-increment="true" />
<member name="route-org-id" field="route_org_id" value-type="long" length="20" nullable="false" />
<member name="cluster-type" field="cluster_type" value-type="String" length="32" nullable="false" />
<member name="src-dc-id" field="src_dc_id" value-type="long" length="20" nullable="false" />
<member name="dst-dc-id" field="dst_dc_id" value-type="long" length="20" nullable="false" />
<member name="src-proxy-ids" field="src_proxy_ids" value-type="String" length="128" nullable="false" />
<member name="dst-proxy-ids" field="dst_proxy_ids" value-type="String" length="128" nullable="false" />
<member name="optional-proxy-ids" field="optional_proxy_ids" value-type="String" length="128" nullable="false" />
<member name="is-public" field="is_public" value-type="boolean" nullable="false" />
<member name="active" field="active" value-type="boolean" nullable="false" />
<member name="tag" field="tag" value-type="String" length="128" nullable="false" />
<member name="description" field="description" value-type="String" length="1024" nullable="false" />
<member name="data-change-last-time" field="DataChange_LastTime" value-type="Date" nullable="false" />
<member name="deleted" field="deleted" value-type="int" length="3" nullable="false" />
<var name="key-id" value-type="long" key-member="id" />
<primary-key name="PRIMARY" members="id" />
<index name="DataChange_LastTime" members="DataChange_LastTime ASC" />
<readsets>
<readset name="FULL" all="true" />
</readsets>
<updatesets>
<updateset name="FULL" all="true" />
</updatesets>
<query-defs>
<query name="find-by-PK" type="SELECT">
<param name="key-id" />
<statement><![CDATA[SELECT <FIELDS/>
FROM <TABLE/>
WHERE <FIELD name='id'/> = ${key-id}]]></statement>
</query>
<query name="insert" type="INSERT">
<statement><![CDATA[INSERT INTO <TABLE/>(<FIELDS/>)
VALUES(<VALUES/>)]]></statement>
</query>
<query name="update-by-PK" type="UPDATE">
<param name="key-id" />
<statement><![CDATA[UPDATE <TABLE/>
SET <FIELDS/>
WHERE <FIELD name='id'/> = ${key-id}]]></statement>
</query>
<query name="delete-by-PK" type="DELETE">
<param name="key-id" />
<statement><![CDATA[DELETE FROM <TABLE/>
WHERE <FIELD name='id'/> = ${key-id}]]></statement>
</query>
</query-defs>
</entity>
<entity name="sentinel-group-tbl" table="sentinel_group_tbl" alias="sgt">
<member name="sentinel-group-id" field="sentinel_group_id" value-type="long" length="19" nullable="false" key="true" auto-increment="true" />
<member name="cluster-type" field="cluster_type" value-type="String" length="40" nullable="false" />
<member name="deleted" field="deleted" value-type="int" length="4" nullable="false" />
<member name="active" field="active" value-type="int" length="4" nullable="false" />
<member name="datachange-lasttime" field="datachange_lasttime" value-type="Date" nullable="false" />
<member name="sentinel-description" field="sentinel_description" value-type="String" length="100" nullable="false" />
<member name="tag" field="tag" value-type="String" length="32" nullable="false" />
<var name="key-sentinel-group-id" value-type="long" key-member="sentinel-group-id" />
<primary-key name="PRIMARY" members="sentinel_group_id" />
<index name="ix_DataChange_LastTime" members="datachange_lasttime ASC" />
<readsets>
<readset name="FULL" all="true" />
</readsets>
<updatesets>
<updateset name="FULL" all="true" />
</updatesets>
<query-defs>
<query name="find-by-PK" type="SELECT">
<param name="key-sentinel-group-id" />
<statement><![CDATA[SELECT <FIELDS/>
FROM <TABLE/>
WHERE <FIELD name='sentinel-group-id'/> = ${key-sentinel-group-id}]]></statement>
</query>
<query name="insert" type="INSERT">
<statement><![CDATA[INSERT INTO <TABLE/>(<FIELDS/>)
VALUES(<VALUES/>)]]></statement>
</query>
<query name="update-by-PK" type="UPDATE">
<param name="key-sentinel-group-id" />
<statement><![CDATA[UPDATE <TABLE/>
SET <FIELDS/>
WHERE <FIELD name='sentinel-group-id'/> = ${key-sentinel-group-id}]]></statement>
</query>
<query name="delete-by-PK" type="DELETE">
<param name="key-sentinel-group-id" />
<statement><![CDATA[DELETE FROM <TABLE/>
WHERE <FIELD name='sentinel-group-id'/> = ${key-sentinel-group-id}]]></statement>
</query>
</query-defs>
</entity>
<entity name="sentinel-tbl" table="sentinel_tbl" alias="st3">
<member name="sentinel-id" field="sentinel_id" value-type="long" length="19" nullable="false" key="true" auto-increment="true" />
<member name="dc-id" field="dc_id" value-type="long" length="19" nullable="false" />
<member name="sentinel-group-id" field="sentinel_group_id" value-type="long" length="19" nullable="false" />
<member name="sentinel-ip" field="sentinel_ip" value-type="String" length="40" nullable="false" />
<member name="sentinel-port" field="sentinel_port" value-type="int" length="10" nullable="false" />
<member name="deleted" field="deleted" value-type="int" length="3" nullable="false" />
<member name="datachange-lasttime" field="datachange_lasttime" value-type="Date" nullable="false" />
<var name="key-sentinel-id" value-type="long" key-member="sentinel-id" />
<primary-key name="PRIMARY" members="sentinel_id" />
<index name="unniqueKey" unique="true" members="sentinel_ip ASC, sentinel_port ASC, deleted ASC" />
<index name="ix_DataChange_LastTime" members="datachange_lasttime ASC" />
<readsets>
<readset name="FULL" all="true" />
</readsets>
<updatesets>
<updateset name="FULL" all="true" />
</updatesets>
<query-defs>
<query name="find-by-PK" type="SELECT">
<param name="key-sentinel-id" />
<statement><![CDATA[SELECT <FIELDS/>
FROM <TABLE/>
WHERE <FIELD name='sentinel-id'/> = ${key-sentinel-id}]]></statement>
</query>
<query name="insert" type="INSERT">
<statement><![CDATA[INSERT INTO <TABLE/>(<FIELDS/>)
VALUES(<VALUES/>)]]></statement>
</query>
<query name="update-by-PK" type="UPDATE">
<param name="key-sentinel-id" />
<statement><![CDATA[UPDATE <TABLE/>
SET <FIELDS/>
WHERE <FIELD name='sentinel-id'/> = ${key-sentinel-id}]]></statement>
</query>
<query name="delete-by-PK" type="DELETE">
<param name="key-sentinel-id" />
<statement><![CDATA[DELETE FROM <TABLE/>
WHERE <FIELD name='sentinel-id'/> = ${key-sentinel-id}]]></statement>
</query>
</query-defs>
</entity>
</entities>
``` | /content/code_sandbox/redis/redis-console/src/main/resources/META-INF/dal/jdbc/meta-codegen.xml | xml | 2016-03-29T12:22:36 | 2024-08-12T11:25:42 | x-pipe | ctripcorp/x-pipe | 1,977 | 15,527 |
```xml
export interface NativeConfig {
[name: string]: string | undefined
}
export const Config: NativeConfig
export default Config
``` | /content/code_sandbox/index.d.ts | xml | 2016-02-23T00:19:11 | 2024-08-13T06:33:50 | react-native-config | lugg/react-native-config | 4,789 | 28 |
```xml
import {expect} from "chai";
import Helper from "../../server/helper";
describe("Client passwords", function () {
this.slow(1500);
const inputPassword = "my$Super@Cool Password";
it("hashed password should match", function () {
// Generated with third party tool to test implementation
const comparedPassword = Helper.password.compare(
inputPassword,
"$2a$11$zrPPcfZ091WNfs6QrRHtQeUitlgrJcecfZhxOFiQs0FWw7TN3Q1oS"
);
return comparedPassword.then((result) => {
expect(result).to.be.true;
});
});
it("wrong hashed password should not match", function () {
// Compare against a fake hash
const comparedPassword = Helper.password.compare(
inputPassword,
"$2a$11$zrPPcfZ091WRONGPASSWORDitlgrJcecfZhxOFiQs0FWw7TN3Q1oS"
);
return comparedPassword.then((result) => {
expect(result).to.be.false;
});
});
it("freshly hashed password should match", function () {
const hashedPassword = Helper.password.hash(inputPassword);
const comparedPassword = Helper.password.compare(inputPassword, hashedPassword);
return comparedPassword.then((result) => {
expect(result).to.be.true;
});
});
it("shout passwords should be marked as old", function () {
expect(
Helper.password.requiresUpdate(
"$2a$08$K4l.hteJcCP9D1G5PANzYuBGvdqhUSUDOLQLU.xeRxTbvtp01KINm"
)
).to.be.true;
expect(
Helper.password.requiresUpdate(
"$2a$11$zrPPcfZ091WNfs6QrRHtQeUitlgrJcecfZhxOFiQs0FWw7TN3Q1oS"
)
).to.be.false;
});
});
``` | /content/code_sandbox/test/tests/passwords.ts | xml | 2016-02-09T03:16:03 | 2024-08-16T10:52:38 | thelounge | thelounge/thelounge | 5,518 | 456 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>QtGui::LauncherOptionPage</class>
<widget class="QWidget" name="QtGui::LauncherOptionPage">
<property name="windowTitle">
<string>Syncthing launcher</string>
</property>
<property name="windowIcon">
<iconset theme="system-run" resource="../resources/syncthingwidgetsicons.qrc">
<normaloff>:/icons/hicolor/scalable/apps/system-run.svg</normaloff>:/icons/hicolor/scalable/apps/system-run.svg</iconset>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QCheckBox" name="enabledCheckBox">
<property name="font">
<font>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Launch Syncthing when starting the tray icon</string>
</property>
</widget>
</item>
<item>
<widget class="QWidget" name="launcherFormWidget" native="true">
<layout class="QFormLayout" name="formLayout">
<property name="leftMargin">
<number>30</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item row="0" column="0">
<widget class="QLabel" name="syncthingPathLabel">
<property name="text">
<string>Syncthing executable</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QtUtilities::PathSelection" name="syncthingPathSelection" native="true"/>
</item>
<item row="2" column="0">
<widget class="QLabel" name="argumentsLabel">
<property name="text">
<string>Arguments</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QtUtilities::ClearLineEdit" name="argumentsLineEdit"/>
</item>
<item row="1" column="1">
<widget class="QCheckBox" name="useBuiltInVersionCheckBox">
<property name="text">
<string>Use built-in Syncthing library</string>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="configDirLabel">
<property name="toolTip">
<string>Set directory for configuration and keys</string>
</property>
<property name="text">
<string>Config directory</string>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QtUtilities::PathSelection" name="configDirPathSelection" native="true"/>
</item>
<item row="7" column="0">
<widget class="QLabel" name="logLevelLabel">
<property name="text">
<string>Log level</string>
</property>
</widget>
</item>
<item row="7" column="1">
<widget class="QComboBox" name="logLevelComboBox">
<item>
<property name="text">
<string>Debug</string>
</property>
</item>
<item>
<property name="text">
<string>Verbose</string>
</property>
</item>
<item>
<property name="text">
<string>Info</string>
</property>
</item>
<item>
<property name="text">
<string>Warning</string>
</property>
</item>
<item>
<property name="text">
<string>Fatal</string>
</property>
</item>
</widget>
</item>
<item row="4" column="0">
<widget class="QLabel" name="dataDirLabel">
<property name="toolTip">
<string>Set database directory (falls back to config directory if empty)</string>
</property>
<property name="text">
<string>Data directory</string>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="QtUtilities::PathSelection" name="dataDirPathSelection" native="true"/>
</item>
<item row="5" column="0">
<widget class="QLabel" name="optionsLabel">
<property name="text">
<string>Options</string>
</property>
</widget>
</item>
<item row="5" column="1">
<widget class="QCheckBox" name="expandEnvCheckBox">
<property name="text">
<string>Replace ${var} or $var in directories with values from environment</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QCheckBox" name="showButtonCheckBox">
<property name="text">
<string>Show start/stop button on tray for local instance</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="considerForReconnectCheckBox">
<property name="text">
<string>Consider process status for notifications and reconnect attempts concerning local instance
Don't reconnect when the process is not running
Try to reconnect when starting the process
Suppress notification about disconnect when Syncthing has been stopped manually</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="stopOnMeteredCheckBox">
<property name="text">
<string>Stop automatically when network connection is metered</string>
</property>
</widget>
</item>
<item>
<widget class="Line" name="line">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QLabel" name="logLabel">
<property name="font">
<font>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Syncthing log (interleaved stdout/stderr)</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="launchNowPushButton">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Apply and launch now</string>
</property>
<property name="icon">
<iconset theme="view-refresh" resource="../resources/syncthingwidgetsicons.qrc">
<normaloff>:/icons/hicolor/scalable/actions/view-refresh.svg</normaloff>:/icons/hicolor/scalable/actions/view-refresh.svg</iconset>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="stopPushButton">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Stop launched instance</string>
</property>
<property name="icon">
<iconset theme="process-stop" resource="../resources/syncthingwidgetsicons.qrc">
<normaloff>:/icons/hicolor/scalable/actions/process-stop.svg</normaloff>:/icons/hicolor/scalable/actions/process-stop.svg</iconset>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QtUtilities::ClearPlainTextEdit" name="logTextEdit">
<property name="undoRedoEnabled">
<bool>false</bool>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
<property name="placeholderText">
<string>No log messages available yet</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="ensureCursorVisibleCheckBox">
<property name="text">
<string>Ensure latest log is visible</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>QtUtilities::ClearLineEdit</class>
<extends>QLineEdit</extends>
<header location="global">qtutilities/widgets/clearlineedit.h</header>
</customwidget>
<customwidget>
<class>QtUtilities::PathSelection</class>
<extends>QWidget</extends>
<header location="global">qtutilities/widgets/pathselection.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>QtUtilities::ClearPlainTextEdit</class>
<extends>QPlainTextEdit</extends>
<header location="global">qtutilities/widgets/clearplaintextedit.h</header>
</customwidget>
</customwidgets>
<tabstops>
<tabstop>enabledCheckBox</tabstop>
<tabstop>useBuiltInVersionCheckBox</tabstop>
<tabstop>argumentsLineEdit</tabstop>
<tabstop>logLevelComboBox</tabstop>
<tabstop>showButtonCheckBox</tabstop>
<tabstop>considerForReconnectCheckBox</tabstop>
<tabstop>launchNowPushButton</tabstop>
<tabstop>stopPushButton</tabstop>
<tabstop>logTextEdit</tabstop>
<tabstop>ensureCursorVisibleCheckBox</tabstop>
</tabstops>
<resources>
<include location="../resources/syncthingwidgetsicons.qrc"/>
</resources>
<connections>
<connection>
<sender>useBuiltInVersionCheckBox</sender>
<signal>toggled(bool)</signal>
<receiver>syncthingPathSelection</receiver>
<slot>setDisabled(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>320</x>
<y>58</y>
</hint>
<hint type="destinationlabel">
<x>320</x>
<y>36</y>
</hint>
</hints>
</connection>
<connection>
<sender>useBuiltInVersionCheckBox</sender>
<signal>toggled(bool)</signal>
<receiver>argumentsLineEdit</receiver>
<slot>setHidden(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>319</x>
<y>68</y>
</hint>
<hint type="destinationlabel">
<x>394</x>
<y>101</y>
</hint>
</hints>
</connection>
<connection>
<sender>useBuiltInVersionCheckBox</sender>
<signal>toggled(bool)</signal>
<receiver>configDirPathSelection</receiver>
<slot>setVisible(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>319</x>
<y>68</y>
</hint>
<hint type="destinationlabel">
<x>171</x>
<y>132</y>
</hint>
</hints>
</connection>
<connection>
<sender>useBuiltInVersionCheckBox</sender>
<signal>toggled(bool)</signal>
<receiver>configDirLabel</receiver>
<slot>setVisible(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>319</x>
<y>68</y>
</hint>
<hint type="destinationlabel">
<x>116</x>
<y>132</y>
</hint>
</hints>
</connection>
<connection>
<sender>useBuiltInVersionCheckBox</sender>
<signal>toggled(bool)</signal>
<receiver>argumentsLabel</receiver>
<slot>setHidden(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>319</x>
<y>68</y>
</hint>
<hint type="destinationlabel">
<x>131</x>
<y>101</y>
</hint>
</hints>
</connection>
<connection>
<sender>useBuiltInVersionCheckBox</sender>
<signal>toggled(bool)</signal>
<receiver>logLevelLabel</receiver>
<slot>setVisible(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>227</x>
<y>61</y>
</hint>
<hint type="destinationlabel">
<x>116</x>
<y>143</y>
</hint>
</hints>
</connection>
<connection>
<sender>useBuiltInVersionCheckBox</sender>
<signal>toggled(bool)</signal>
<receiver>logLevelComboBox</receiver>
<slot>setVisible(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>227</x>
<y>61</y>
</hint>
<hint type="destinationlabel">
<x>180</x>
<y>145</y>
</hint>
</hints>
</connection>
<connection>
<sender>useBuiltInVersionCheckBox</sender>
<signal>toggled(bool)</signal>
<receiver>dataDirLabel</receiver>
<slot>setVisible(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>273</x>
<y>68</y>
</hint>
<hint type="destinationlabel">
<x>122</x>
<y>156</y>
</hint>
</hints>
</connection>
<connection>
<sender>useBuiltInVersionCheckBox</sender>
<signal>toggled(bool)</signal>
<receiver>dataDirPathSelection</receiver>
<slot>setVisible(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>273</x>
<y>68</y>
</hint>
<hint type="destinationlabel">
<x>171</x>
<y>156</y>
</hint>
</hints>
</connection>
<connection>
<sender>useBuiltInVersionCheckBox</sender>
<signal>toggled(bool)</signal>
<receiver>optionsLabel</receiver>
<slot>setVisible(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>240</x>
<y>62</y>
</hint>
<hint type="destinationlabel">
<x>125</x>
<y>165</y>
</hint>
</hints>
</connection>
<connection>
<sender>useBuiltInVersionCheckBox</sender>
<signal>toggled(bool)</signal>
<receiver>expandEnvCheckBox</receiver>
<slot>setVisible(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>240</x>
<y>62</y>
</hint>
<hint type="destinationlabel">
<x>336</x>
<y>165</y>
</hint>
</hints>
</connection>
</connections>
</ui>
``` | /content/code_sandbox/syncthingwidgets/settings/launcheroptionpage.ui | xml | 2016-08-24T22:46:19 | 2024-08-16T13:39:56 | syncthingtray | Martchus/syncthingtray | 1,558 | 3,644 |
```xml
import { PeekZManager } from "../ZeldaWindWaker/d_dlst_peekZ.js";
import { GfxDevice } from "../gfx/platform/GfxPlatform.js";
import { GfxRenderInstExecutionOrder, GfxRenderInstList, gfxRenderInstCompareNone, gfxRenderInstCompareSortKey } from "../gfx/render/GfxRenderInstManager.js";
export type dDlst_list_Set = [GfxRenderInstList, GfxRenderInstList];
export class dDlst_list_c {
public current: dDlst_list_Set;
public sky: dDlst_list_Set = [
new GfxRenderInstList(gfxRenderInstCompareNone, GfxRenderInstExecutionOrder.Backwards),
new GfxRenderInstList(gfxRenderInstCompareNone, GfxRenderInstExecutionOrder.Backwards),
];
public indirect: dDlst_list_Set = [
new GfxRenderInstList(gfxRenderInstCompareNone, GfxRenderInstExecutionOrder.Backwards),
new GfxRenderInstList(gfxRenderInstCompareNone, GfxRenderInstExecutionOrder.Backwards),
];
public bg: dDlst_list_Set = [
new GfxRenderInstList(gfxRenderInstCompareSortKey, GfxRenderInstExecutionOrder.Forwards),
new GfxRenderInstList(gfxRenderInstCompareSortKey, GfxRenderInstExecutionOrder.Forwards),
];
public wetherEffect = new GfxRenderInstList(gfxRenderInstCompareNone, GfxRenderInstExecutionOrder.Backwards);
public wetherEffectSet: dDlst_list_Set = [
this.wetherEffect, this.wetherEffect,
]
public effect: GfxRenderInstList[] = [
new GfxRenderInstList(gfxRenderInstCompareSortKey, GfxRenderInstExecutionOrder.Backwards),
new GfxRenderInstList(gfxRenderInstCompareSortKey, GfxRenderInstExecutionOrder.Backwards),
];
public ui: dDlst_list_Set = [
new GfxRenderInstList(gfxRenderInstCompareNone, GfxRenderInstExecutionOrder.Backwards),
new GfxRenderInstList(gfxRenderInstCompareNone, GfxRenderInstExecutionOrder.Backwards),
];
public alphaModel = new GfxRenderInstList(gfxRenderInstCompareNone, GfxRenderInstExecutionOrder.Forwards);
public peekZ = new PeekZManager();
constructor() {
this.current = [this.bg[0], this.bg[1]];
}
public destroy(device: GfxDevice): void {
this.peekZ.destroy(device);
}
}
``` | /content/code_sandbox/src/ZeldaTwilightPrincess/d_drawlist.ts | xml | 2016-10-06T21:43:45 | 2024-08-16T17:03:52 | noclip.website | magcius/noclip.website | 3,206 | 550 |
```xml
import styled from 'styled-components';
export const Container = (styled.div as any).withConfig({ componentId: 'tree-container' })`
display: flex;
flex-direction: column;
width: 100%;
`;
``` | /content/code_sandbox/src/components/tree/src/tree/tree.style.ts | xml | 2016-09-20T11:57:51 | 2024-07-23T03:40:11 | gaea-editor | ascoders/gaea-editor | 1,339 | 48 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- . -->
<string-array name="weather_sources">
<item>caiyunapp.com ( )</item>
<item>accuweather.com</item>
<item>OpenWeather</item>
<item>Mto France</item>
</string-array>
<!-- . -->
<string-array name="location_services">
<item> </item>
<item> IP ( )</item>
<item>AMap </item>
<item> API</item>
</string-array>
<!-- . -->
<string-array name="dark_modes">
<item></item>
<item>Follow system</item>
<item> </item>
<item> </item>
</string-array>
<!-- UI . -->
<string-array name="ui_styles">
<item> </item>
<item> </item>
</string-array>
<!-- . -->
<string-array name="automatic_refresh_rates">
<item>30</item>
<item>1</item>
<item>1 30</item>
<item>2</item>
<item>2 30</item>
<item>3</item>
<item>3 30</item>
<item>4</item>
<item>4 30</item>
<item>5</item>
<item>5 30</item>
<item>6</item>
</string-array>
<!-- . -->
<string-array name="week_icon_modes">
<item></item>
<item>@string/daytime</item>
<item>@string/nighttime</item>
</string-array>
<!-- . -->
<string-array name="notification_styles">
<item></item>
<item>Cities</item>
<item>@string/daily_overview</item><!-- do not translate. -->
<item>@string/hourly_overview</item><!-- do not translate. -->
</string-array>
<!-- . -->
<string-array name="notification_text_colors">
<item></item>
<item></item>
<item></item>
</string-array>
<!-- . -->
<string-array name="widget_styles">
<item></item>
<item></item>
<item></item>
<item></item>
<item></item>
<item></item>
<item></item>
<item></item>
<item> ( )</item>
<item>Temperature</item>
</string-array>
<!-- . -->
<string-array name="subtitle_data">
<item> </item>
<item>AQI ( .)</item>
<item></item>
<item> </item>
<item></item>
<item></item>
</string-array>
<!-- . -->
<string-array name="clock_font">
<item> </item>
<item> </item>
<item> </item>
<item></item>
</string-array>
<!-- . -->
<string-array name="widget_card_styles">
<item></item>
<item> </item>
<item></item>
<item></item>
</string-array>
<!-- . -->
<string-array name="widget_text_colors">
<item></item>
<item></item>
<item></item>
</string-array>
<!-- . -->
<string-array name="live_wallpaper_weather_kinds">
<item></item>
<item></item>
<item> </item>
<item></item>
<item></item>
<item></item>
<item></item>
<item></item>
<item></item>
<item></item>
<item></item>
<item></item>
<item></item>
</string-array>
<!-- . -->
<string-array name="live_wallpaper_day_night_types">
<item></item>
<item> </item>
<item> </item>
</string-array>
<!-- . -->
<string-array name="speed_units">
<item>km/h</item>
<item>m/s</item>
<item>kn</item>
<item>mi/h</item>
<item>ft/s</item>
</string-array>
<!-- . -->
<string-array name="precipitation_units">
<item>mm</item>
<item>cm</item>
<item>inch</item>
<item>L/m</item>
</string-array>
<!-- . -->
<string-array name="distance_units">
<item>km</item>
<item>m</item>
<item>mi</item>
<item>nmi</item>
<item>ft</item>
</string-array>
<!-- . -->
<string-array name="pressure_units">
<item>mb</item>
<item>kPa</item>
<item>hPa</item>
<item>atm</item>
<item>mmHg</item>
<item>inHg</item>
<item>kgf/cm</item>
</string-array>
<!-- . -->
<string-array name="air_quality_units">
<item>g/m</item>
</string-array>
<!-- air quality co unit. -->
<string-array name="air_quality_co_units">
<item>mg/m</item>
</string-array>
<!-- . -->
<string-array name="duration_units">
<item>h</item> <!-- hour -->
</string-array>
<!-- . -->
<string-array name="pollen_units">
<item>/m</item>
</string-array>
</resources>
``` | /content/code_sandbox/app/src/main/res/values-ko/arrays.xml | xml | 2016-02-21T04:39:19 | 2024-08-16T13:35:51 | GeometricWeather | WangDaYeeeeee/GeometricWeather | 2,420 | 1,297 |
```xml
import React from 'react';
import { render } from '../../test/test-react-testing-library';
import TextField from './TextField';
describe('<TextField /> component', () => {
const props = {
name: 'test',
value: 'test',
};
test('should load the component in default state', () => {
const { container } = render(<TextField name={props.name} value={props.value} />);
expect(container.firstChild).toMatchSnapshot();
});
});
``` | /content/code_sandbox/packages/ui-components/src/components/TextField/TextField.test.tsx | xml | 2016-04-15T16:21:12 | 2024-08-16T09:38:01 | verdaccio | verdaccio/verdaccio | 16,189 | 97 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="FlexmarkExt.ModuleBuildProperties">
<option name="extensionName" value="Superscript" />
<option name="extensionPackage" value="com.vladsch.flexmark.superscript" />
<option name="blockParser" value="false" />
<option name="blockPreProcessor" value="false" />
<option name="linkRefProcessor" value="false" />
<option name="paragraphPreProcessor" value="false" />
<option name="nodePostProcessor" value="false" />
<option name="documentPostProcessor" value="false" />
<option name="customBlockNode" value="false" />
<option name="customNodeRepository" value="false" />
<option name="customProperties" value="false" />
</component>
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/test/resources" type="java-test-resource" />
<excludeFolder url="file://$MODULE_DIR$/target" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module" module-name="flexmark" />
<orderEntry type="module" module-name="flexmark-util-ast" />
<orderEntry type="module" module-name="flexmark-util-builder" />
<orderEntry type="module" module-name="flexmark-util-data" />
<orderEntry type="module" module-name="flexmark-util-dependency" />
<orderEntry type="module" module-name="flexmark-util-html" />
<orderEntry type="module" module-name="flexmark-util-misc" />
<orderEntry type="module" module-name="flexmark-util-sequence" />
<orderEntry type="module" module-name="flexmark-util-visitor" />
<orderEntry type="module" module-name="flexmark-test-util" scope="TEST" />
<orderEntry type="module" module-name="flexmark-core-test" scope="TEST" />
<orderEntry type="library" scope="TEST" name="Maven: junit:junit:4.13" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: org.hamcrest:hamcrest-core:1.3" level="project" />
<orderEntry type="module" module-name="flexmark-core-test" scope="TEST" />
<orderEntry type="library" name="org.jetbrains:annotations" level="project" />
</component>
</module>
``` | /content/code_sandbox/flexmark-ext-superscript/flexmark-ext-superscript.iml | xml | 2016-01-23T15:29:29 | 2024-08-15T04:04:18 | flexmark-java | vsch/flexmark-java | 2,239 | 661 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="path_to_url"
xmlns:xsi="path_to_url"
xsi:schemaLocation="path_to_url path_to_url">
<bean id="processEngineConfiguration"
class="org.flowable.engine.impl.cfg.StandaloneProcessEngineConfiguration">
<property name="jdbcUrl" value="${jdbc.url:jdbc:h2:mem:flowable;DB_CLOSE_DELAY=1000}" />
<property name="jdbcDriver" value="${jdbc.driver:org.h2.Driver}" />
<property name="jdbcUsername" value="${jdbc.username:sa}" />
<property name="jdbcPassword" value="${jdbc.password:}" />
<!-- Database configurations -->
<property name="databaseSchemaUpdate" value="drop-create" />
<property name="flowable5CompatibilityEnabled" value="true" />
<!-- job executor configurations -->
<property name="asyncExecutor" ref="asyncExecutor" />
<property name="asyncExecutorActivate" value="false" />
<property name="defaultFailedJobWaitTime" value="1" />
<property name="asyncFailedJobWaitTime" value="1" />
<!-- mail server configurations -->
<property name="mailServerPort" value="5025" />
<property name="mailServers">
<map>
<entry key="myEmailTenant">
<bean class="org.flowable.common.engine.impl.cfg.mail.MailServerInfo">
<property name="mailServerHost" value="localhost" />
<property name="mailServerPort" value="5025" />
<property name="mailServerUseSSL" value="false" />
<property name="mailServerUseTLS" value="false" />
<property name="mailServerDefaultFrom" value="activiti@myTenant.com" />
<property name="mailServerUsername" value="activiti@myTenant.com" />
<property name="mailServerPassword" value="password" />
</bean>
</entry>
</map>
</property>
<property name="history" value="full" />
<property name="enableProcessDefinitionInfoCache" value="true" />
<property name="databaseWildcardEscapeCharacter" value="|" />
</bean>
<bean id="asyncExecutor" class="org.flowable.job.service.impl.asyncexecutor.DefaultAsyncJobExecutor">
<property name="defaultAsyncJobAcquireWaitTimeInMillis" value="1000" />
<property name="defaultTimerJobAcquireWaitTimeInMillis" value="1000" />
</bean>
</beans>
``` | /content/code_sandbox/modules/flowable5-test/src/test/resources/org/activiti/standalone/escapeclause/flowable.cfg.xml | xml | 2016-10-13T07:21:43 | 2024-08-16T15:23:14 | flowable-engine | flowable/flowable-engine | 7,715 | 558 |
```xml
import '@storybook/addon-ondevice-actions/register';
import '@storybook/addon-ondevice-knobs/register';
``` | /content/code_sandbox/example/storybook/rn-addons.ts | xml | 2016-04-15T11:37:23 | 2024-08-14T16:16:44 | NativeBase | GeekyAnts/NativeBase | 20,132 | 23 |
```xml
<manifest xmlns:android="path_to_url"
package="com.kymjs.okhttp3">
<application android:allowBackup="true"
android:supportsRtl="true"
>
</application>
</manifest>
``` | /content/code_sandbox/okhttp3/src/main/AndroidManifest.xml | xml | 2016-01-04T03:38:41 | 2024-07-13T12:27:30 | RxVolley | kymjs/RxVolley | 1,157 | 51 |
```xml
/*
* @license Apache-2.0
*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
// TypeScript Version: 4.1
/**
* Interface defining function options.
*/
interface Options {
/**
* Executable file/command (default: 'node').
*/
cmd?: string;
/**
* Number of scripts to execute concurrently.
*/
concurrency?: number;
/**
* Number of workers.
*/
workers?: number;
/**
* Boolean indicating whether to preserve the order of script output (default: false).
*/
ordered?: boolean;
/**
* Process user identity.
*/
uid?: number;
/**
* Process group identity.
*/
gid?: number;
/**
* Max child process `stdio` buffer size (default: 200*1024*1024).
*/
maxBuffer?: number;
}
/**
* Callback invoked after executing all scripts.
*/
type Nullary = () => void;
/**
* Callback invoked after executing all scripts.
*
* @param err - error argument
*/
type Unary = ( err: Error ) => void;
/**
* Callback invoked after executing all scripts.
*
* @param err - error argument
*/
type Callback = Nullary | Unary;
/**
* Executes scripts in parallel.
*
* @param files - script file paths
* @param clbk - callback to invoke after executing all scripts
* @throws must provide valid options
*
* @example
* var files = [ './a.js', './b.js ' ];
*
* var opts = {
* 'workers': 3,
* 'concurrency': 3
* };
*
* function done( error ) {
* if ( error ) {
* throw error;
* }
* }
*
* parallel( files, opts, done );
*/
declare function parallel( files: Array<string>, clbk: Callback ): void;
/**
* Executes scripts in parallel.
*
* @param files - script file paths
* @param options - function options
* @param options.cmd - executable file/command (default: 'node')
* @param options.concurrency - number of scripts to execute concurrently
* @param options.workers - number of workers
* @param options.ordered - boolean indicating whether to preserve the order of script output
* @param options.uid - process user identity
* @param options.gid - process group identity
* @param options.maxBuffer - max child process `stdio` buffer size (default: 200*1024*1024)
* @param clbk - callback to invoke after executing all scripts
* @throws must provide valid options
*
* @example
* var files = [ './a.js', './b.js ' ];
*
* var opts = {
* 'workers': 3,
* 'concurrency': 3
* };
*
* function done( error ) {
* if ( error ) {
* throw error;
* }
* }
*
* parallel( files, opts, done );
*/
declare function parallel( files: Array<string>, options: Options, clbk: Callback ): void;
// EXPORTS //
export = parallel;
``` | /content/code_sandbox/lib/node_modules/@stdlib/utils/parallel/docs/types/index.d.ts | xml | 2016-03-24T04:19:52 | 2024-08-16T09:03:19 | stdlib | stdlib-js/stdlib | 4,266 | 682 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "path_to_url">
<mapper namespace="com.jsh.erp.datasource.mappers.SequenceMapperEx">
<update id="updateBuildOnlyNumber">
update jsh_sequence set current_val = current_val + 1 where seq_name = 'depot_number_seq'
</update>
<select id="getBuildOnlyNumber" resultType="java.lang.Long">
select current_val from jsh_sequence where seq_name = 'depot_number_seq'
</select>
</mapper>
``` | /content/code_sandbox/jshERP-boot/src/main/resources/mapper_xml/SequenceMapperEx.xml | xml | 2016-09-20T04:51:39 | 2024-08-16T16:42:52 | jshERP | jishenghua/jshERP | 3,107 | 134 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.