<commit_before>"""Helpers for referring to React Native open source code.

This lets us build React Native:
 - At Facebook by running buck from the root of the fb repo
 - Outside of Facebook by running buck in the root of the git repo
"""
# @lint-ignore-every SKYLINT

IS_OSS_BUILD = True

GLOG_DEP = "//ReactAndroid/build/third-party-ndk/glog:glog"

INSPECTOR_FLAGS = []
DEBUG_PREPROCESSOR_FLAGS = []

APPLE_JSC_INTERNAL_DEPS = []
APPLE_JSC_DEPS = []

ANDROID_JSC_INTERNAL_DEPS = [
    '//native/third-party/jsc:jsc',
    '//native/third-party/jsc:jsc_legacy_profiler',
]
ANDROID_JSC_DEPS = ANDROID_JSC_INTERNAL_DEPS
ANDROID = "Android"

YOGA_TARGET = '//ReactAndroid/src/main/java/com/facebook:yoga'
FBGLOGINIT_TARGET = '//ReactAndroid/src/main/jni/first-party/fbgloginit:fbgloginit'
FBJNI_TARGET = '//ReactAndroid/src/main/jni/first-party/fb:jni'
JNI_TARGET = '//ReactAndroid/src/main/jni/first-party/jni-hack:jni-hack'
KEYSTORE_TARGET = '//keystores:debug'

with allow_unsafe_import():
    import os


# Building is not supported in OSS right now
def rn_xplat_cxx_library(name, **kwargs):
    _ignore = kwargs
    native.cxx_library(
        name=name,
        visibility=kwargs.get("visibility", [])
    )


# Example: react_native_target('java/com/facebook/react/common:common')
def react_native_target(path):
    return '//ReactAndroid/src/main/' + path
<commit_msg>Fix OSS Android test failure<commit_after>"""Helpers for referring to React Native open source code.

This lets us build React Native:
 - At Facebook by running buck from the root of the fb repo
 - Outside of Facebook by running buck in the root of the git repo
"""
# @lint-ignore-every SKYLINT

IS_OSS_BUILD = True

GLOG_DEP = "//ReactAndroid/build/third-party-ndk/glog:glog"

INSPECTOR_FLAGS = []
DEBUG_PREPROCESSOR_FLAGS = []

APPLE_JSC_INTERNAL_DEPS = []
APPLE_JSC_DEPS = []

ANDROID_JSC_INTERNAL_DEPS = [
    '//native/third-party/jsc:jsc',
    '//native/third-party/jsc:jsc_legacy_profiler',
]
ANDROID_JSC_DEPS = ANDROID_JSC_INTERNAL_DEPS
ANDROID = "Android"

YOGA_TARGET = '//ReactAndroid/src/main/java/com/facebook:yoga'
FBGLOGINIT_TARGET = '//ReactAndroid/src/main/jni/first-party/fbgloginit:fbgloginit'
FBJNI_TARGET = '//ReactAndroid/src/main/jni/first-party/fb:jni'
JNI_TARGET = '//ReactAndroid/src/main/jni/first-party/jni-hack:jni-hack'
KEYSTORE_TARGET = '//keystores:debug'

with allow_unsafe_import():
    import os


# Building is not supported in OSS right now
def rn_xplat_cxx_library(name, **kwargs):
    new_kwargs = {
        k: v
        for k, v in kwargs.items()
        if k.startswith("exported_")
    }

    native.cxx_library(
        name=name,
        visibility=kwargs.get("visibility", []),
        **new_kwargs
    )


# Example: react_native_target('java/com/facebook/react/common:common')
def react_native_target(path):
    return '//ReactAndroid/src/main/' + path

{'fraction_non_alphanumeric': 0.12217194570135746, 'fraction_numerical': 0.0, 'mean_word_length': 4.178378378378379, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3472113', 'n_tokens_mistral': 1070, 'n_tokens_neox': 1070, 'n_words': 201}