text
stringlengths
24
1.04M
metadata
stringlengths
233
497
### File: jest.config.js /** * 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. */ 'use strict'; module.exports = { 'transform': { '^.+\\.(bmp|gif|jpg|jpeg|mp4|png|psd|svg|webp)...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "vincentJinxin/react-native", "path": "jest.config.js", "license": "mit", "size": 1174}
### File: jest/MockNativeMethods.js /** * 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. * * @format */ 'use strict'; const MockNativeMethods = { measure: jest.fn(), measureInWind...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "vincentJinxin/react-native", "path": "jest/MockNativeMethods.js", "license": "mit", "size": 435}
### File: jest/assetFileTransformer.js /** * 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. * * @format */ 'use strict'; /* eslint-env node */ const path = require('path'); const cre...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "vincentJinxin/react-native", "path": "jest/assetFileTransformer.js", "license": "mit", "size": 859}
### File: jest/mockComponent.js /** * 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. * * @format */ 'use strict'; module.exports = (moduleName, instanceMethods) => { const RealCompo...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "vincentJinxin/react-native", "path": "jest/mockComponent.js", "license": "mit", "size": 1793}
### File: jest/preprocessor.js /** * 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. * * @format * @flow */ /* eslint-env node */ 'use strict'; const babelRegisterOnly = require('met...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "vincentJinxin/react-native", "path": "jest/preprocessor.js", "license": "mit", "size": 4224}
### File: jest/renderer.js /** * 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. * * @format * @emails oncall+react_native * @flow */ 'use strict'; const React = require('react'); co...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "vincentJinxin/react-native", "path": "jest/renderer.js", "license": "mit", "size": 834}
### File: jest/setup.js /** * 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. * * @format */ 'use strict'; const MockNativeMethods = jest.requireActual('./MockNativeMethods'); const mo...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "vincentJinxin/react-native", "path": "jest/setup.js", "license": "mit", "size": 10057}
### File: keystores/BUCK load("//tools/build_defs:fb_native_wrapper.bzl", "fb_native") fb_native.keystore( name = "debug", properties = "debug.keystore.properties", store = "debug.keystore", visibility = [ "PUBLIC", ], )
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Starlark", "repo_name": "vincentJinxin/react-native", "path": "keystores/BUCK", "license": "mit", "size": 225}
### File: local-cli/cli.js /** * 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. * * @format */ 'use strict'; var cli = require('@react-native-community/cli'); if (require.main === mo...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "vincentJinxin/react-native", "path": "local-cli/cli.js", "license": "mit", "size": 339}
### File: metro.config.js /** * 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'; const getPolyfills = require('./rn-get-polyfills'); /** * This c...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "vincentJinxin/react-native", "path": "metro.config.js", "license": "mit", "size": 522}
### File: react-native.config.js /** * 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. * * @format */ 'use strict'; const ios = require('@react-native-community/cli-platform-ios'); con...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "vincentJinxin/react-native", "path": "react-native.config.js", "license": "mit", "size": 987}
### File: rn-get-polyfills.js /** * 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. * * @format */ 'use strict'; module.exports = () => [ require.resolve('./Libraries/polyfills/conso...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "vincentJinxin/react-native", "path": "rn-get-polyfills.js", "license": "mit", "size": 419}
### File: runXcodeTests.sh #!/bin/bash # 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. # This script should be run from the react-native root THIS_DIR=$(cd -P "$(dirname "$(readlink "${BASH...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "vincentJinxin/react-native", "path": "runXcodeTests.sh", "license": "mit", "size": 704}
### File: scripts/android-e2e-test.js /** * 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. * * @format */ // Used in run-ci-e2e-test.js and executed in Circle CI. // // E2e test that v...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "vincentJinxin/react-native", "path": "scripts/android-e2e-test.js", "license": "mit", "size": 4865}
### File: scripts/android-setup.sh #!/bin/bash # 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. # inspired by https://github.com/Originate/guide/blob/master/android/guide/Continuous%20Integra...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "vincentJinxin/react-native", "path": "scripts/android-setup.sh", "license": "mit", "size": 3332}
### File: scripts/autolink-ios.rb # 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. def use_react_native! (options={}) # The prefix to the react-native prefix = options[:path] ||= "../nod...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Ruby", "repo_name": "vincentJinxin/react-native", "path": "scripts/autolink-ios.rb", "license": "mit", "size": 2750}
### File: scripts/bump-oss-version.js #!/usr/bin/env node /** * 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. * * @format */ 'use strict'; /** * This script bumps a new version for ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "vincentJinxin/react-native", "path": "scripts/bump-oss-version.js", "license": "mit", "size": 4529}
### File: scripts/circleci/analyze_code.sh #!/bin/bash # 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. GITHUB_OWNER=${CIRCLE_PROJECT_USERNAME:-facebook} GITHUB_REPO=${CIRCLE_PROJECT_REPONAME...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "vincentJinxin/react-native", "path": "scripts/circleci/analyze_code.sh", "license": "mit", "size": 703}
### File: scripts/circleci/analyze_scripts.sh #!/bin/bash # 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. GITHUB_OWNER=${CIRCLE_PROJECT_USERNAME:-facebook} GITHUB_REPO=${CIRCLE_PROJECT_REPON...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "vincentJinxin/react-native", "path": "scripts/circleci/analyze_scripts.sh", "license": "mit", "size": 1324}
### File: scripts/circleci/apt-get-android-deps.sh #!/bin/bash # 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. set -e echo "Downloading package lists..." sudo apt-get update -y if ! [[ -d ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "vincentJinxin/react-native", "path": "scripts/circleci/apt-get-android-deps.sh", "license": "mit", "size": 1004}
### File: scripts/circleci/buck_fetch.sh #!/bin/bash # 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. set -ex buck fetch ReactAndroid/src/test/java/com/facebook/react/modules buck fetch Reac...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "vincentJinxin/react-native", "path": "scripts/circleci/buck_fetch.sh", "license": "mit", "size": 465}
### File: scripts/circleci/check_license.sh #!/bin/bash # 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. set -e # Make sure we don't introduce accidental references to PATENTS. EXPECTED='scr...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "vincentJinxin/react-native", "path": "scripts/circleci/check_license.sh", "license": "mit", "size": 489}
### File: scripts/circleci/exec_swallow_error.sh #!/bin/bash # 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. # execute command "$@" # check status STATUS=$? if [ $STATUS == 0 ]; then echo...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "vincentJinxin/react-native", "path": "scripts/circleci/exec_swallow_error.sh", "license": "mit", "size": 381}
### File: scripts/circleci/gradle_download_deps.sh #!/bin/bash # 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. set -e ./gradlew :ReactAndroid:downloadBoost :ReactAndroid:downloadDoubleConve...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "vincentJinxin/react-native", "path": "scripts/circleci/gradle_download_deps.sh", "license": "mit", "size": 330}
### File: scripts/circleci/validate_yarn_lockfile.sh #!/bin/bash # 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. # Abort the mission if any command fails set -e # Allow the script to be inv...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "vincentJinxin/react-native", "path": "scripts/circleci/validate_yarn_lockfile.sh", "license": "mit", "size": 1116}
### File: scripts/compose-source-maps.js #!/usr/bin/env node /** * 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. * * @format */ 'use strict'; const {composeSourceMaps} = require('met...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "vincentJinxin/react-native", "path": "scripts/compose-source-maps.js", "license": "mit", "size": 1748}
### File: scripts/generate-api-docs.js #!/usr/bin/env node /** * 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. * * @format */ 'use strict'; const SignedSource = require('signedsource...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "vincentJinxin/react-native", "path": "scripts/generate-api-docs.js", "license": "mit", "size": 2303}
### File: scripts/generate-rncore.sh #!/bin/bash # 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. # This script collects the "core" component schemas used by fabric # then uses react-native-c...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "vincentJinxin/react-native", "path": "scripts/generate-rncore.sh", "license": "mit", "size": 716}
### File: scripts/ios-configure-glog.sh #!/bin/bash # 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. set -e PLATFORM_NAME="${PLATFORM_NAME:-iphoneos}" CURRENT_ARCH="${CURRENT_ARCH}" if [ -z...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "vincentJinxin/react-native", "path": "scripts/ios-configure-glog.sh", "license": "mit", "size": 1881}
### File: scripts/ios-install-third-party.sh #!/bin/bash # 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. if [ -n "$RN_CACHE_DIR" ] && [ -d "$RN_CACHE_DIR" ]; then cachedir="$RN_CACHE_DIR" ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "vincentJinxin/react-native", "path": "scripts/ios-install-third-party.sh", "license": "mit", "size": 2491}
### File: scripts/launchPackager.bat :: 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. @echo off title Metro call .packager.bat cd ../../../ node "%~dp0..\cli.js" start pause exit
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Batchfile", "repo_name": "vincentJinxin/react-native", "path": "scripts/launchPackager.bat", "license": "mit", "size": 275}
### File: scripts/launchPackager.command #!/bin/bash # 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. # Set terminal title echo -en "\\033]0;Metro\\a" clear THIS_DIR=$(cd -P "$(dirname "$(re...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "vincentJinxin/react-native", "path": "scripts/launchPackager.command", "license": "mit", "size": 504}
### File: scripts/node-binary.sh #!/bin/bash # 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. [ -z "$NODE_BINARY" ] && export NODE_BINARY="node" nodejs_not_found() { echo "error: Can't fin...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "vincentJinxin/react-native", "path": "scripts/node-binary.sh", "license": "mit", "size": 723}
### File: scripts/objc-test.sh #!/bin/bash # 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. # Script used to run iOS tests. # If no arguments are passed to the script, it will only compile # ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "vincentJinxin/react-native", "path": "scripts/objc-test.sh", "license": "mit", "size": 3828}
### File: scripts/packager.sh #!/bin/bash # 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. # scripts directory THIS_DIR=$(cd -P "$(dirname "$(readlink "${BASH_SOURCE[0]}" || echo "${BASH_SOUR...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "vincentJinxin/react-native", "path": "scripts/packager.sh", "license": "mit", "size": 866}
### File: scripts/process-podspecs.sh #!/bin/bash # 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. set -ex SCRIPTS=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) ROOT=$(dirname $SCRIPTS) # S...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "vincentJinxin/react-native", "path": "scripts/process-podspecs.sh", "license": "mit", "size": 2350}
### File: scripts/publish-npm.js /** * 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. * * @format */ 'use strict'; /** * This script publishes a new version of react-native to NPM. ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "vincentJinxin/react-native", "path": "scripts/publish-npm.js", "license": "mit", "size": 4846}
### File: scripts/react-native-xcode.sh #!/bin/bash # 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. # Bundle React Native app's code and image assets. # This script is supposed to be invoked...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "vincentJinxin/react-native", "path": "scripts/react-native-xcode.sh", "license": "mit", "size": 3843}
### File: scripts/run-android-ci-instrumentation-tests.js /** * 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. * * @format */ 'use strict'; /** * This script runs instrumentation tes...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "vincentJinxin/react-native", "path": "scripts/run-android-ci-instrumentation-tests.js", "license": "mit", "size": 2057}
### File: scripts/run-android-emulator.sh #!/bin/bash # 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. # Runs an Android emulator locally. # If there already is a running emulator, this just ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "vincentJinxin/react-native", "path": "scripts/run-android-emulator.sh", "license": "mit", "size": 944}
### File: scripts/run-android-local-integration-tests.sh #!/bin/bash # 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. # Runs all Android integration tests locally. # See http://facebook.githu...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "vincentJinxin/react-native", "path": "scripts/run-android-local-integration-tests.sh", "license": "mit", "size": 1211}
### File: scripts/run-android-local-unit-tests.sh #!/bin/bash # 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. # Runs all Android unit tests locally. # See http://facebook.github.io/react-nat...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "vincentJinxin/react-native", "path": "scripts/run-android-local-unit-tests.sh", "license": "mit", "size": 532}
### File: scripts/run-ci-e2e-tests.js /** * 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. * * @format */ 'use strict'; /** * This script tests that React Native end to end installat...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "vincentJinxin/react-native", "path": "scripts/run-ci-e2e-tests.js", "license": "mit", "size": 9457}
### File: scripts/run-ci-javascript-tests.js /** * 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. * * @format */ 'use strict'; /** * This script runs JavaScript tests. * Available a...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "vincentJinxin/react-native", "path": "scripts/run-ci-javascript-tests.js", "license": "mit", "size": 1817}
### File: scripts/run-instrumentation-tests-via-adb-shell.sh #!/bin/bash # 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. # Python script to run instrumentation tests, copied from https://git...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "vincentJinxin/react-native", "path": "scripts/run-instrumentation-tests-via-adb-shell.sh", "license": "mit", "size": 1810}
### File: scripts/set-rn-template-version.js /** * 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. * * @format */ 'use strict'; const fs = require('fs'); const path = require('path'); ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "vincentJinxin/react-native", "path": "scripts/set-rn-template-version.js", "license": "mit", "size": 679}
### File: scripts/sync-css-layout.sh #!/usr/bin/env bash # 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. function usage { echo "usage: sync-css-layout.sh <pathToGithubRepo> <pathToFbSourc...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "vincentJinxin/react-native", "path": "scripts/sync-css-layout.sh", "license": "mit", "size": 2914}
### File: scripts/test-manual-e2e.sh #!/bin/bash # 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. JAVA_VERSION="1.7" RED="\033[0;31m" GREEN="\033[0;32m" BLUE="\033[0;35m" ENDCOLOR="\033[0m" ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "vincentJinxin/react-native", "path": "scripts/test-manual-e2e.sh", "license": "mit", "size": 3681}
### File: scripts/try-n-times.js /** * 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. * * @format */ 'use strict'; /** * Try executing a function n times recursively. * Return 0 the...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "vincentJinxin/react-native", "path": "scripts/try-n-times.js", "license": "mit", "size": 1020}
### File: scripts/validate-android-device-env.sh #!/bin/bash # 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. # This script validates that the Android environment is set up to run # tests on ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "vincentJinxin/react-native", "path": "scripts/validate-android-device-env.sh", "license": "mit", "size": 1417}
### File: scripts/validate-android-sdk.sh #!/bin/bash # 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. # This script validates that the Android SDK is installed correctly. # This means settin...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "vincentJinxin/react-native", "path": "scripts/validate-android-sdk.sh", "license": "mit", "size": 2732}
### File: scripts/validate-android-test-env.sh #!/bin/bash # 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. # This script validates that Android is set up correctly for the # testing environm...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "vincentJinxin/react-native", "path": "scripts/validate-android-test-env.sh", "license": "mit", "size": 4942}
### File: scripts/validate-ios-test-env.sh #!/bin/bash # 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. # This script validates that iOS is set up correctly for the # testing environment. # #...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "vincentJinxin/react-native", "path": "scripts/validate-ios-test-env.sh", "license": "mit", "size": 2061}
### File: template.config.js /** * 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. */ module.exports = { placeholderName: 'HelloWorld', templateDir: './template', };
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "vincentJinxin/react-native", "path": "template.config.js", "license": "mit", "size": 274}
### File: template/App.js /** * Sample React Native App * https://github.com/facebook/react-native * * @format * @flow strict-local */ import React from 'react'; import { SafeAreaView, StyleSheet, ScrollView, View, Text, StatusBar, } from 'react-native'; import { Header, LearnMoreLinks, Colors...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "vincentJinxin/react-native", "path": "template/App.js", "license": "mit", "size": 2794}
### File: template/__tests__/App-test.js /** * @format */ import 'react-native'; import React from 'react'; import App from '../App'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { renderer.create(<App />); });
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "vincentJinxin/react-native", "path": "template/__tests__/App-test.js", "license": "mit", "size": 266}
### File: template/_eslintrc.js module.exports = { root: true, extends: '@react-native-community', };
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "vincentJinxin/react-native", "path": "template/_eslintrc.js", "license": "mit", "size": 74}
### File: template/_prettierrc.js module.exports = { bracketSpacing: false, jsxBracketSameLine: true, singleQuote: true, trailingComma: 'all', };
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "vincentJinxin/react-native", "path": "template/_prettierrc.js", "license": "mit", "size": 120}
### File: template/android/app/build_defs.bzl """Helper definitions to glob .aar and .jar targets""" def create_aar_targets(aarfiles): for aarfile in aarfiles: name = "aars__" + aarfile[aarfile.rindex("/") + 1:aarfile.rindex(".aar")] lib_deps.append(":" + name) android_prebuilt_aar( ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Starlark", "repo_name": "vincentJinxin/react-native", "path": "template/android/app/build_defs.bzl", "license": "mit", "size": 602}
### File: template/android/app/src/main/java/com/helloworld/MainActivity.java package com.helloworld; import com.facebook.react.ReactActivity; public class MainActivity extends ReactActivity { /** * Returns the name of the main component registered from JavaScript. This is used to schedule * rendering of the...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Java", "repo_name": "vincentJinxin/react-native", "path": "template/android/app/src/main/java/com/helloworld/MainActivity.java", "license": "mit", "size": 347}
### File: template/android/app/src/main/java/com/helloworld/MainApplication.java package com.helloworld; import android.app.Application; import android.content.Context; import com.facebook.react.PackageList; import com.facebook.react.ReactApplication; import com.facebook.react.ReactInstanceManager; import com.facebook...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Java", "repo_name": "vincentJinxin/react-native", "path": "template/android/app/src/main/java/com/helloworld/MainApplication.java", "license": "mit", "size": 2526}
### File: template/babel.config.js module.exports = { presets: ['module:metro-react-native-babel-preset'], };
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "vincentJinxin/react-native", "path": "template/babel.config.js", "license": "mit", "size": 77}
### File: template/index.js /** * @format */ import {AppRegistry} from 'react-native'; import App from './App'; import {name as appName} from './app.json'; AppRegistry.registerComponent(appName, () => App);
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "vincentJinxin/react-native", "path": "template/index.js", "license": "mit", "size": 183}
### File: template/ios/HelloWorld/AppDelegate.h /** * 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. */ #import <React/RCTBridgeDelegate.h> #import <UIKit/UIKit.h> @interface AppDelegat...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Objective-C", "repo_name": "vincentJinxin/react-native", "path": "template/ios/HelloWorld/AppDelegate.h", "license": "mit", "size": 386}
### File: template/ios/HelloWorld/AppDelegate.m /** * 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. */ #import "AppDelegate.h" #import <React/RCTBridge.h> #import <React/RCTBundleURLPr...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Objective-C", "repo_name": "vincentJinxin/react-native", "path": "template/ios/HelloWorld/AppDelegate.m", "license": "mit", "size": 2435}
### File: template/ios/HelloWorld/main.m /** * 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. */ #import <UIKit/UIKit.h> #import "AppDelegate.h" int main(int argc, char * argv[]) { @...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Objective-C", "repo_name": "vincentJinxin/react-native", "path": "template/ios/HelloWorld/main.m", "license": "mit", "size": 390}
### File: template/ios/HelloWorldTests/HelloWorldTests.m /** * 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. */ #import <UIKit/UIKit.h> #import <XCTest/XCTest.h> #import <React/RCTLog....
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Objective-C", "repo_name": "vincentJinxin/react-native", "path": "template/ios/HelloWorldTests/HelloWorldTests.m", "license": "mit", "size": 1979}
### File: template/ios/Podfile platform :ios, '9.0' require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' # Add Flipper Pods def flipper_pods() flipperkit_version = '0.30.0' pod 'FlipperKit', '~>' + flipperkit_version, :configuration => 'Debug' pod 'FlipperKit/FlipperKitLayou...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Ruby", "repo_name": "vincentJinxin/react-native", "path": "template/ios/Podfile", "license": "mit", "size": 4419}
### File: template/ios/Swift.swift /** * 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. */ // Flipper requires Swift, feel free to delete this file if you do not plan to use Flipper. import ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Swift", "repo_name": "vincentJinxin/react-native", "path": "template/ios/Swift.swift", "license": "mit", "size": 296}
### File: template/metro.config.js /** * Metro configuration for React Native * https://github.com/facebook/react-native * * @format */ module.exports = { transformer: { getTransformOptions: async () => ({ transform: { experimentalImportSupport: false, inlineRequires: false, }, ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "vincentJinxin/react-native", "path": "template/metro.config.js", "license": "mit", "size": 300}
### File: third-party-podspecs/DoubleConversion.podspec # 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. Pod::Spec.new do |spec| spec.name = 'DoubleConversion' spec.version = '1.1.6' sp...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Ruby", "repo_name": "vincentJinxin/react-native", "path": "third-party-podspecs/DoubleConversion.podspec", "license": "mit", "size": 950}
### File: third-party-podspecs/Folly.podspec # 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. Pod::Spec.new do |spec| spec.name = 'Folly' spec.version = '2018.10.22.00' spec.license = {...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Ruby", "repo_name": "vincentJinxin/react-native", "path": "third-party-podspecs/Folly.podspec", "license": "mit", "size": 3391}
### File: third-party-podspecs/glog.podspec # 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. Pod::Spec.new do |spec| spec.name = 'glog' spec.version = '0.3.5' spec.license = { :type => ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Ruby", "repo_name": "vincentJinxin/react-native", "path": "third-party-podspecs/glog.podspec", "license": "mit", "size": 1536}
### File: tools/build_defs/fb_native_wrapper.bzl # 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. fb_native = struct( android_aar = native.android_aar, android_app_modularity = native...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Starlark", "repo_name": "vincentJinxin/react-native", "path": "tools/build_defs/fb_native_wrapper.bzl", "license": "mit", "size": 4692}
### File: tools/build_defs/oss/rn_defs.bzl # 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. """Helpers for referring to React Native open source code. This lets us build React Native: - At ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Starlark", "repo_name": "vincentJinxin/react-native", "path": "tools/build_defs/oss/rn_defs.bzl", "license": "mit", "size": 10399}
### File: src/main/java/com/github/pagehelper/Page.java /* The MIT License (MIT) Copyright (c) 2014 abel533@gmail.com 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, inc...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Java", "repo_name": "vincent_lu/Mybatis_PageHelper", "path": "src/main/java/com/github/pagehelper/Page.java", "license": "mit", "size": 4933}
### File: src/main/java/com/github/pagehelper/PageHelper.java /* The MIT License (MIT) Copyright (c) 2014 abel533@gmail.com 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 restrictio...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Java", "repo_name": "vincent_lu/Mybatis_PageHelper", "path": "src/main/java/com/github/pagehelper/PageHelper.java", "license": "mit", "size": 7747}
### File: src/main/java/com/github/pagehelper/PageInfo.java package com.github.pagehelper; import java.util.List; /** * 对Page<E>结果进行包装 * <p/> * 新增分页的多项属性,主要参考:http://bbs.csdn.net/topics/360010907 * * @author liuzh/abel533/isea533 * @version 3.3.0 * @since 3.2.2 * 项目地址 : http://git.oschina.net/free/Mybatis_Pag...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Java", "repo_name": "vincent_lu/Mybatis_PageHelper", "path": "src/main/java/com/github/pagehelper/PageInfo.java", "license": "mit", "size": 7354}
### File: src/main/java/com/github/pagehelper/SqlParser.java package com.github.pagehelper; import net.sf.jsqlparser.JSQLParserException; import net.sf.jsqlparser.expression.Alias; import net.sf.jsqlparser.parser.CCJSqlParserUtil; import net.sf.jsqlparser.schema.Column; import net.sf.jsqlparser.statement.Statement; im...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Java", "repo_name": "vincent_lu/Mybatis_PageHelper", "path": "src/main/java/com/github/pagehelper/SqlParser.java", "license": "mit", "size": 7150}
### File: src/main/java/com/github/pagehelper/SqlUtil.java /* * The MIT License (MIT) * * Copyright (c) 2014 abel533@gmail.com * * 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...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Java", "repo_name": "vincent_lu/Mybatis_PageHelper", "path": "src/main/java/com/github/pagehelper/SqlUtil.java", "license": "mit", "size": 20429}
### File: src/test/java/Ognl.java /** * @author liuzh */ public class Ognl { public static boolean isNotNull(Object obj) { return obj != null; } }
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Java", "repo_name": "vincent_lu/Mybatis_PageHelper", "path": "src/test/java/Ognl.java", "license": "mit", "size": 131}
### File: src/test/java/com/github/pagehelper/mapper/CountryMapper.java package com.github.pagehelper.mapper; import com.github.pagehelper.model.Country; import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Select; import org.apache.ibatis.session.RowBounds; import java.util.List; import j...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Java", "repo_name": "vincent_lu/Mybatis_PageHelper", "path": "src/test/java/com/github/pagehelper/mapper/CountryMapper.java", "license": "mit", "size": 1798}
### File: src/test/java/com/github/pagehelper/model/Country.java package com.github.pagehelper.model; /** * Description: Country * Author: liuzh * Update: liuzh(2014-06-06 13:38) */ public class Country { private int id; private String countryname; private String countrycode; public int getId() { ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Java", "repo_name": "vincent_lu/Mybatis_PageHelper", "path": "src/test/java/com/github/pagehelper/model/Country.java", "license": "mit", "size": 687}
### File: src/test/java/com/github/pagehelper/util/MybatisHelper.java package com.github.pagehelper.util; import org.apache.ibatis.io.Resources; import org.apache.ibatis.jdbc.ScriptRunner; import org.apache.ibatis.session.SqlSession; import org.apache.ibatis.session.SqlSessionFactory; import org.apache.ibatis.session....
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Java", "repo_name": "vincent_lu/Mybatis_PageHelper", "path": "src/test/java/com/github/pagehelper/util/MybatisHelper.java", "license": "mit", "size": 1833}
### File: src/test/java/com/github/pagehelper/util/MybatisPageSizeZeroHelper.java package com.github.pagehelper.util; import org.apache.ibatis.io.Resources; import org.apache.ibatis.jdbc.ScriptRunner; import org.apache.ibatis.session.SqlSession; import org.apache.ibatis.session.SqlSessionFactory; import org.apache.iba...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Java", "repo_name": "vincent_lu/Mybatis_PageHelper", "path": "src/test/java/com/github/pagehelper/util/MybatisPageSizeZeroHelper.java", "license": "mit", "size": 1850}
### File: src/test/java/com/github/pagehelper/util/MybatisReasonableHelper.java /* * The MIT License (MIT) * * Copyright (c) 2014 abel533@gmail.com * * 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...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Java", "repo_name": "vincent_lu/Mybatis_PageHelper", "path": "src/test/java/com/github/pagehelper/util/MybatisReasonableHelper.java", "license": "mit", "size": 2997}
### File: src/test/java/com/github/pagehelper/util/MybatisRowBoundsHelper.java package com.github.pagehelper.util; import org.apache.ibatis.io.Resources; import org.apache.ibatis.jdbc.ScriptRunner; import org.apache.ibatis.session.SqlSession; import org.apache.ibatis.session.SqlSessionFactory; import org.apache.ibatis...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Java", "repo_name": "vincent_lu/Mybatis_PageHelper", "path": "src/test/java/com/github/pagehelper/util/MybatisRowBoundsHelper.java", "license": "mit", "size": 1844}
### File: student/admin.cpp #include "admin.h" #include "ui_admin.h" #include<QSqlQueryModel> #pragma execution_character_set("utf-8")//设置中文= = admin::admin(QWidget *parent) : QMainWindow(parent), ui(new Ui::admin) { ui->setupUi(this); init(); connect(ui->lineEdit_findname,SIGNAL(textChanged(QStri...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_mei/student", "path": "student/admin.cpp", "license": "bsd", "size": 3533}
### File: student/admin.h #ifndef ADMIN_H #define ADMIN_H #include"admin_change.h" #include <QMainWindow> #include"dele.h" namespace Ui { class admin; } class admin : public QMainWindow { Q_OBJECT public: explicit admin(QWidget *parent = 0); ~admin(); void init(); private slots: void on_pushButto...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_mei/student", "path": "student/admin.h", "license": "bsd", "size": 584}
### File: student/admin_change.cpp #include "admin_change.h" #include "ui_admin_change.h" #include<QSqlQueryModel> #include<QMessageBox> #include"admin.h" #pragma execution_character_set("utf-8")//设置中文= = admin_change::admin_change(QWidget *parent) : QMainWindow(parent), ui(new Ui::admin_change) { ui->setu...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_mei/student", "path": "student/admin_change.cpp", "license": "bsd", "size": 2472}
### File: student/admin_change.h #ifndef ADMIN_CHANGE_H #define ADMIN_CHANGE_H #include <QMainWindow> namespace Ui { class admin_change; } class admin_change : public QMainWindow { Q_OBJECT public: explicit admin_change(QWidget *parent = 0); ~admin_change(); private slots: void on_pushButton_exit_...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_mei/student", "path": "student/admin_change.h", "license": "bsd", "size": 406}
### File: student/dele.cpp #include "dele.h" #include "ui_dele.h" #include<QMessageBox> #include<QSqlQueryModel> #pragma execution_character_set("utf-8")//设置中文= = dele::dele(QWidget *parent) : QMainWindow(parent), ui(new Ui::dele) { ui->setupUi(this); } dele::~dele() { delete ui; } void dele::on_push...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_mei/student", "path": "student/dele.cpp", "license": "bsd", "size": 949}
### File: student/dele.h #ifndef DELE_H #define DELE_H #include <QMainWindow> namespace Ui { class dele; } class dele : public QMainWindow { Q_OBJECT public: explicit dele(QWidget *parent = 0); ~dele(); private slots: void on_pushButton_exit_clicked(); void on_pushButton_dele_clicked(); priv...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_mei/student", "path": "student/dele.h", "license": "bsd", "size": 341}
### File: student/main.cpp #include "mainwindow.h" #include <QApplication> #include<QDebug> #include<QSqlDatabase> bool opendatabase(); int main(int argc, char *argv[]) { opendatabase(); QApplication a(argc, argv); MainWindow w; w.show(); return a.exec(); } bool opendatabase() { QSqlDatabase m...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_mei/student", "path": "student/main.cpp", "license": "bsd", "size": 632}
### File: student/mainwindow.cpp #include "mainwindow.h" #include "ui_mainwindow.h" #include<QSqlQueryModel> #include<QDebug> #include<QMessageBox> #pragma execution_character_set("utf-8")//设置中文= = MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_mei/student", "path": "student/mainwindow.cpp", "license": "bsd", "size": 3125}
### File: student/mainwindow.h #ifndef MAINWINDOW_H #define MAINWINDOW_H #include"student.h" #include <QMainWindow> #include"admin.h" #include<student.h> namespace Ui { class MainWindow; } class MainWindow : public QMainWindow { Q_OBJECT public: explicit MainWindow(QWidget *parent = 0); ~MainWindow(); ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_mei/student", "path": "student/mainwindow.h", "license": "bsd", "size": 546}
### File: student/student.cpp #include "student.h" #include "ui_student.h" #include<QDebug> #include<QSqlQueryModel> #pragma execution_character_set("utf-8")//设置中文= = student::student(QWidget *parent) : QMainWindow(parent), ui(new Ui::student) { ui->setupUi(this); } student::~student() { delete ui; }...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_mei/student", "path": "student/student.cpp", "license": "bsd", "size": 706}
### File: student/student.h #ifndef STUDENT_H #define STUDENT_H #include <QMainWindow> namespace Ui { class student; } class student : public QMainWindow { Q_OBJECT public: explicit student(QWidget *parent = 0); ~student(); void init(); QString stuName; private slots: void on_pushButton_cli...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_mei/student", "path": "student/student.h", "license": "bsd", "size": 358}
### File: student/student.pro #------------------------------------------------- # # Project created by QtCreator 2018-11-28T09:56:56 # #------------------------------------------------- QT += core gui QT += core gui sql greaterThan(QT_MAJOR_VERSION, 4): QT += widgets TARGET = student TEMPLATE = app # Th...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "QMake", "repo_name": "vincent_mei/student", "path": "student/student.pro", "license": "bsd", "size": 1247}
### File: FC000.go package main import "tesou.io/platform/foot-parent/foot-api/common/base" func main() { base.Log.Info("日志1") base.Log.Info("日志2") base.Log.Error("错误的日志") base.Log.Info("日志3") }
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Go", "repo_name": "vincentmi/foot", "path": "FC000.go", "license": "mit", "size": 205}