<commit_before>/**
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * 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';

module.exports = {
  getViewManagerConfig: (viewManagerName: string) => {
    throw new Error(
      'Attempting to get config for view manager ' + viewManagerName,
    );
  },
  getConstants: () => ({}),
  getConstantsForViewManager: (viewManagerName: string) => {},
  getDefaultEventTypes: () => [],
  playTouchSound: () => {},
  lazilyLoadView: (name: string) => {},
  createView: (
    reactTag: ?number,
    viewName: string,
    rootTag: number,
    props: Object,
  ) => {},
  updateView: (reactTag: number, viewName: string, props: Object) => {},
  focus: (reactTag: ?number) => {},
  blur: (reactTag: ?number) => {},
  findSubviewIn: (
    reactTag: ?number,
    point: Array<number>,
    callback: (
      nativeViewTag: number,
      left: number,
      top: number,
      width: number,
      height: number,
    ) => void,
  ) => {},
  dispatchViewManagerCommand: (
    reactTag: ?number,<commit_msg>Don't throw when accessing view config<commit_after>/**
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * 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';

module.exports = {
  getViewManagerConfig: (viewManagerName: string) => {
    console.warn(
      'Attempting to get config for view manager: ' + viewManagerName,
    );
    return null;
  },
  getConstants: () => ({}),
  getConstantsForViewManager: (viewManagerName: string) => {},
  getDefaultEventTypes: () => [],
  playTouchSound: () => {},
  lazilyLoadView: (name: string) => {},
  createView: (
    reactTag: ?number,
    viewName: string,
    rootTag: number,
    props: Object,
  ) => {},
  updateView: (reactTag: number, viewName: string, props: Object) => {},
  focus: (reactTag: ?number) => {},
  blur: (reactTag: ?number) => {},
  findSubviewIn: (
    reactTag: ?number,
    point: Array<number>,
    callback: (
      nativeViewTag: number,
      left: number,
      top: number,
      width: number,
      height: number,
    ) => void,
  ) => {},
  dispatchViewManagerCommand: (
    reactTag: ?number,
{'fraction_non_alphanumeric': 0.15063829787234043, 'fraction_numerical': 0.0, 'mean_word_length': 3.251356238698011, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 29, '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': '6873628', 'n_tokens_mistral': 731, 'n_tokens_neox': 726, 'n_words': 204}