<commit_before>/**
 * WordPress dependencies
 */
import { __ } from '@wordpress/i18n';

/**
 * Internal dependencies
 */
import Arimo from '../images/font-names/arimo.svg';
import Lato from '../images/font-names/lato.svg';
import Lora from '../images/font-names/lora.svg';
import Merriweather from '../images/font-names/merriweather.svg';
import Montserrat from '../images/font-names/montserrat.svg';
import NotoSans from '../images/font-names/noto-sans.svg';
import OpenSans from '../images/font-names/open-sans.svg';
import OpenSansCondensed from '../images/font-names/open-sans-condensed.svg';
import Oswald from '../images/font-names/oswald.svg';
import PlayfairDisplay from '../images/font-names/playfair-display.svg';
import PtSans from '../images/font-names/pt-sans.svg';
import PtSansNarrow from '../images/font-names/pt-sans-narrow.svg';
import PtSerif from '../images/font-names/pt-serif.svg';
import Raleway from '../images/font-names/raleway.svg';
import Roboto from '../images/font-names/roboto.svg';
import RobotoCondensed from '../images/font-names/roboto-condensed.svg';
import RobotoSlab from '../images/font-names/roboto-slab.svg';
import Slabo27 from '../images/font-names/slabo-27.svg';
import SourceSansPro from '../images/font-names/source-sans-pro.svg';
import Ubuntu from '../images/font-names/ubuntu.svg';

export const STORY_PAGE_INNER_WIDTH = 328;
export const STORY_PAGE_INNER_HEIGHT = 553;

export const ALLOWED_TOP_LEVEL_BLOCKS = [
	'amp/amp-story-page',
	'core/block', // Reusable blocks.
	'core/template', // Reusable blocks.
];

export const ALLOWED_MOVABLE_BLOCKS = [
	'core/code',
	'core/embed',
	'core/image',
	'core/list',
	'core/preformatted',
	'core/pullquote',
	'core/quote',
	'core/table',
	'core/verse',
	'core/video',
	'amp/amp-story-text',
	'amp/amp-story-post-author',
	'amp/amp-story-post-date',
	'amp/amp-story-post-title',
	'core/block', // Reusable blocks.
	'core/template', // Reusable blocks.
];

export const BLOCKS_WITH_TEXT_SETTINGS = [
	'amp/amp-story-text',
	'amp/amp-story-post-author',
	'amp/amp-story-post-date',
	'amp/amp-story-post-title',
];

export const ALLOWED_CHILD_BLOCKS = [
	...ALLOWED_MOVABLE_BLOCKS,
	'amp/amp-story-cta',
];

export const ALLOWED_BLOCKS = [
	...ALLOWED_TOP_LEVEL_BLOCKS,
	...ALLOWED_CHILD_BLOCKS,
];

export const IMAGE_BACKGROUND_TYPE = 'image';
export const VIDEO_BACKGROUND_TYPE = 'video';
export const ALLOWED_MEDIA_TYPES = [ 'image', 'video' ];
export const POSTER_ALLOWED_MEDIA_TYPES = [ 'image' ];
export const MEDIA_INNER_BLOCKS = [ 'core/video', 'core/audio' ];

export const ANIMATION_DURATION_DEFAULTS = {
	drop: 1600,
	'fade-in': 500,
	'fly-in-bottom': 500,
	'fly-in-left': 500,
	'fly-in-right': 500,
	'fly-in-top': 500,
	pulse: 500,
	'rotate-in-left': 700,
	'rotate-in-right': 700,
	'twirl-in': 1000,
	'whoosh-in-left': 500,
	'whoosh-in-right': 500,
	'pan-left': 1000,
	'pan-right': 1000,
	'pan-down': 1000,
	'pan-up': 1000,
	'zoom-in': 1000,
	'zoom-out': 1000,
};

export const BLOCK_TAG_MAPPING = {
	'core/button': 'div.wp-block-button',
	'core/code': 'pre',
	'core/embed': 'figure',
	'core/image': '.wp-block-image',
	'amp/amp-story-text': 'p,h1,h2',
	'amp/amp-story-post-author': 'p,h1,h2',
	'amp/amp-story-post-date': 'p,h1,h2',
	'amp/amp-story-post-title': 'p,h1,h2',
	'core/preformatted': 'pre',
	'core/pullquote': 'blockquote',
	'core/quote': 'blockquote',
	'core/table': 'table',<commit_msg>Adjust selectors.<commit_after>/**
 * WordPress dependencies
 */
import { __ } from '@wordpress/i18n';

/**
 * Internal dependencies
 */
import Arimo from '../images/font-names/arimo.svg';
import Lato from '../images/font-names/lato.svg';
import Lora from '../images/font-names/lora.svg';
import Merriweather from '../images/font-names/merriweather.svg';
import Montserrat from '../images/font-names/montserrat.svg';
import NotoSans from '../images/font-names/noto-sans.svg';
import OpenSans from '../images/font-names/open-sans.svg';
import OpenSansCondensed from '../images/font-names/open-sans-condensed.svg';
import Oswald from '../images/font-names/oswald.svg';
import PlayfairDisplay from '../images/font-names/playfair-display.svg';
import PtSans from '../images/font-names/pt-sans.svg';
import PtSansNarrow from '../images/font-names/pt-sans-narrow.svg';
import PtSerif from '../images/font-names/pt-serif.svg';
import Raleway from '../images/font-names/raleway.svg';
import Roboto from '../images/font-names/roboto.svg';
import RobotoCondensed from '../images/font-names/roboto-condensed.svg';
import RobotoSlab from '../images/font-names/roboto-slab.svg';
import Slabo27 from '../images/font-names/slabo-27.svg';
import SourceSansPro from '../images/font-names/source-sans-pro.svg';
import Ubuntu from '../images/font-names/ubuntu.svg';

export const STORY_PAGE_INNER_WIDTH = 328;
export const STORY_PAGE_INNER_HEIGHT = 553;

export const ALLOWED_TOP_LEVEL_BLOCKS = [
	'amp/amp-story-page',
	'core/block', // Reusable blocks.
	'core/template', // Reusable blocks.
];

export const ALLOWED_MOVABLE_BLOCKS = [
	'core/code',
	'core/embed',
	'core/image',
	'core/list',
	'core/preformatted',
	'core/pullquote',
	'core/quote',
	'core/table',
	'core/verse',
	'core/video',
	'amp/amp-story-text',
	'amp/amp-story-post-author',
	'amp/amp-story-post-date',
	'amp/amp-story-post-title',
	'core/block', // Reusable blocks.
	'core/template', // Reusable blocks.
];

export const BLOCKS_WITH_TEXT_SETTINGS = [
	'amp/amp-story-text',
	'amp/amp-story-post-author',
	'amp/amp-story-post-date',
	'amp/amp-story-post-title',
];

export const ALLOWED_CHILD_BLOCKS = [
	...ALLOWED_MOVABLE_BLOCKS,
	'amp/amp-story-cta',
];

export const ALLOWED_BLOCKS = [
	...ALLOWED_TOP_LEVEL_BLOCKS,
	...ALLOWED_CHILD_BLOCKS,
];

export const IMAGE_BACKGROUND_TYPE = 'image';
export const VIDEO_BACKGROUND_TYPE = 'video';
export const ALLOWED_MEDIA_TYPES = [ 'image', 'video' ];
export const POSTER_ALLOWED_MEDIA_TYPES = [ 'image' ];
export const MEDIA_INNER_BLOCKS = [ 'core/video', 'core/audio' ];

export const ANIMATION_DURATION_DEFAULTS = {
	drop: 1600,
	'fade-in': 500,
	'fly-in-bottom': 500,
	'fly-in-left': 500,
	'fly-in-right': 500,
	'fly-in-top': 500,
	pulse: 500,
	'rotate-in-left': 700,
	'rotate-in-right': 700,
	'twirl-in': 1000,
	'whoosh-in-left': 500,
	'whoosh-in-right': 500,
	'pan-left': 1000,
	'pan-right': 1000,
	'pan-down': 1000,
	'pan-up': 1000,
	'zoom-in': 1000,
	'zoom-out': 1000,
};

export const BLOCK_TAG_MAPPING = {
	'core/button': 'div.wp-block-button',
	'core/code': 'pre',
	'core/embed': 'figure',
	'core/image': '.wp-block-image',
	'amp/amp-story-text': 'p,h1,h2',
	'amp/amp-story-post-author': 'div',
	'amp/amp-story-post-date': 'div',
	'amp/amp-story-post-title': 'h1',
	'core/preformatted': 'pre',
	'core/pullquote': 'blockquote',
	'core/quote': 'blockquote',
	'core/table': 'table',
{'fraction_non_alphanumeric': 0.18975415869277198, 'fraction_numerical': 0.0234064478139261, 'mean_word_length': 4.345397324940992, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '735025', 'n_tokens_mistral': 2814, 'n_tokens_neox': 2621, 'n_words': 468}