<commit_before>/**
 * Copyright (c) 2013-present, Facebook, Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * @flow
 * @format
 */

'use strict';

/**
 * Basic types used throughout Relay.
 */

/**
 * Represents any resource that must be explicitly disposed of. The most common
 * use-case is as a return value for subscriptions, where calling `dispose()`
 * would cancel the subscription.
 */
export type Disposable = {
  dispose(): void,
};

export type DataID = string;

// Variables
export type Variables = {[name: string]: $FlowFixMe};

export type RerunParam = {
  param: string,
  import?: ?string,
  target?: ?string,
  max_runs: number,
};

/**
 * Settings for how a query response may be cached.
 *
 * - `force`: causes a query to be issued unconditionally, irrespective of the
 *   state of any configured response cache.
 * - `poll`: causes a query to live update by polling at the specified interval
 *   in milliseconds. (This value will be passed to setTimeout.)
 * - `rerunParamExperimental`: causes the query to be run with the experimental
 *   batch API on Network interfaces and GraphQL servers that support it.
 * - `metadata`: user-supplied metadata.
 */
export type CacheConfig = {
  force?: ?boolean,
  poll?: ?number,
  rerunParamExperimental?: ?RerunParam,
  metadata?: {[key: string]: mixed},
};<commit_msg>Have a good error when using @live(config_id) with normal RelayFBEnvironment<commit_after>/**
 * Copyright (c) 2013-present, Facebook, Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * @flow
 * @format
 */

'use strict';

/**
 * Basic types used throughout Relay.
 */

/**
 * Represents any resource that must be explicitly disposed of. The most common
 * use-case is as a return value for subscriptions, where calling `dispose()`
 * would cancel the subscription.
 */
export type Disposable = {
  dispose(): void,
};

export type DataID = string;

// Variables
export type Variables = {[name: string]: $FlowFixMe};

export type RerunParam = {
  param: string,
  import?: ?string,
  target?: ?string,
  max_runs: number,
};

/**
 * Settings for how a query response may be cached.
 *
 * - `force`: causes a query to be issued unconditionally, irrespective of the
 *   state of any configured response cache.
 * - `poll`: causes a query to live update by polling at the specified interval
 *   in milliseconds. (This value will be passed to setTimeout.)
 * - `liveConfigId`: causes a query to live update by calling GraphQLLiveQuery,
 *   it represents a configuration of gateway when doing live query
 * - `rerunParamExperimental`: causes the query to be run with the experimental
 *   batch API on Network interfaces and GraphQL servers that support it.
 * - `metadata`: user-supplied metadata.
 */
export type CacheConfig = {
  force?: ?boolean,
  poll?: ?number,
  liveConfigId?: ?string,
  rerunParamExperimental?: ?RerunParam,
  metadata?: {[key: string]: mixed},
};
{'fraction_non_alphanumeric': 0.10307941653160453, 'fraction_numerical': 0.002593192868719611, 'mean_word_length': 3.7919254658385095, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4662439', 'n_tokens_mistral': 893, 'n_tokens_neox': 850, 'n_words': 383}