<commit_before>language: node_js
node_js:
  - "0.6"
  - "0.8"
  - "0.10"
env:
  global:
    - BIN="node" BUILD=false EXPORTS="commonjs" OPTION="" OUTPUT_PATH=false TARGET_PATH=false TEST=false
  matrix:
    - BUILD="compat"
    - BUILD="legacy"
    - BUILD="mobile"
    - BUILD="modern"
    - BUILD="modern" EXPORTS="npm" OUTPUT_PATH="./npm/node_modules" TARGET_PATH="../../../npm/index.js"
matrix:
  include:
    - node_js: "0.10"
      env: BIN="narwhal" BUILD="compat"
    - node_js: "0.10"
      env: BIN="narwhal" BUILD="legacy"
    - node_js: "0.10"
      env: BIN="rhino"   BUILD="compat" OPTION="-require"
    - node_js: "0.10"
      env: BIN="rhino"   BUILD="legacy" OPTION="-require"
    - node_js: "0.10"
      env: BIN="ringo"   BUILD="compat"
    - node_js: "0.10"
      env: BIN="ringo"   BUILD="legacy"
    - node_js: "0.6"
      env: TEST="node ./test/test.js --time-limit 48m"
    - node_js: "0.10"
      env: TEST="node ./test/test.js --time-limit 48m"
git:
  depth: 10
branches:
  only:
    - master
before_install:
  - "git clone --depth=10 --branch=master git://github.com/lodash/lodash.git ./node_modules/lodash"
  - "[ $OUTPUT_PATH == false ] && OUTPUT_PATH=\"./$EXPORTS/$BUILD\" || true"
  - "[ $TARGET_PATH == false ] && TARGET_PATH=\"../../../$EXPORTS/$BUILD/index.js\" || true"
  - "[ $BIN == 'narwhal' ] && wget https://github.com/280north/narwhal/archive/v0.3.2.zip && sudo unzip v0.3.2 -d /opt/ && rm v0.3.2.zip || true"
  - "[ $BIN == 'narwhal' ] && sudo ln -s /opt/narwhal-0.3.2/bin/narwhal /usr/local/bin/narwhal && sudo chmod +x /usr/local/bin/narwhal || true"
  - "[ $BIN == 'rhino' ] && sudo mkdir /opt/rhino-1.7R5 && sudo wget -O /opt/rhino-1.7R5/js.jar https://oss.sonatype.org/content/repositories/snapshots/org/mozilla/rhino/1.7R5-SNAPSHOT/rhino-1.7R5-20120629.144839-4.jar || true"
  - "[ $BIN == 'rhino' ] && echo -e '#!/bin/sh\\njava -jar /opt/rhino-1.7R5/js.jar $@' | sudo tee /usr/local/bin/rhino && sudo chmod +x /usr/local/bin/rhino || true"
  - "[ $BIN == 'ringo' ] && wget http://ringojs.org/downloads/ringojs-0.9.zip && sudo unzip ringojs-0.9 -d /opt && rm ringojs-0.9.zip || true"
  - "[ $BIN == 'ringo' ] && sudo ln -s /opt/ringojs-0.9/bin/ringo /usr/local/bin/ringo && sudo chmod +x /usr/local/bin/ringo || true"
script:
  - "[ $BUILD != false ] && node ./bin/lodash modularize $BUILD exports=$EXPORTS -o $OUTPUT_PATH || true"
  - "[ $EXPORTS == 'npm' ] && cd ./npm && cp ../test/npm/index.js ./index.js && cd ../ || true"
  - "[ \"$TEST\" != false ] && true || $BIN $OPTION ./node_modules/lodash/test/test.js $TARGET_PATH"
  - "[ \"$TEST\" == false ] && true || $TEST"<commit_msg>Avoid swallowing errors in the test setup in .travis.yml.<commit_after>language: node_js
node_js:
  - "0.6"
  - "0.8"
  - "0.10"
env:
  global:
    - BIN="node" BUILD=false EXPORTS="commonjs" OPTION="" OUTPUT_PATH=false TARGET_PATH=false TEST=false
  matrix:
    - BUILD="compat"
    - BUILD="legacy"
    - BUILD="mobile"
    - BUILD="modern"
    - BUILD="modern" EXPORTS="npm" OUTPUT_PATH="./npm/node_modules" TARGET_PATH="../../../npm/index.js"
matrix:
  include:
    - node_js: "0.10"
      env: BIN="narwhal" BUILD="compat"
    - node_js: "0.10"
      env: BIN="narwhal" BUILD="legacy"
    - node_js: "0.10"
      env: BIN="rhino"   BUILD="compat" OPTION="-require"
    - node_js: "0.10"
      env: BIN="rhino"   BUILD="legacy" OPTION="-require"
    - node_js: "0.10"
      env: BIN="ringo"   BUILD="compat"
    - node_js: "0.10"
      env: BIN="ringo"   BUILD="legacy"
    - node_js: "0.6"
      env: TEST="node ./test/test.js --time-limit 48m"
    - node_js: "0.10"
      env: TEST="node ./test/test.js --time-limit 48m"
git:
  depth: 10
branches:
  only:
    - master
before_install:
  - "git clone --depth=10 --branch=master git://github.com/lodash/lodash.git ./node_modules/lodash"
  - "[ $OUTPUT_PATH != false ] || OUTPUT_PATH=\"./$EXPORTS/$BUILD\""
  - "[ $TARGET_PATH != false ] || TARGET_PATH=\"../../../$EXPORTS/$BUILD/index.js\""
  - "[ $BIN != 'narwhal' ] || (wget https://github.com/280north/narwhal/archive/v0.3.2.zip && sudo unzip v0.3.2 -d /opt/ && rm v0.3.2.zip)"
  - "[ $BIN != 'narwhal' ] || (sudo ln -s /opt/narwhal-0.3.2/bin/narwhal /usr/local/bin/narwhal && sudo chmod +x /usr/local/bin/narwhal)"
  - "[ $BIN != 'rhino' ] || (sudo mkdir /opt/rhino-1.7R5 && sudo wget -O /opt/rhino-1.7R5/js.jar https://oss.sonatype.org/content/repositories/snapshots/org/mozilla/rhino/1.7R5-SNAPSHOT/rhino-1.7R5-20120629.144839-4.jar)"
  - "[ $BIN != 'rhino' ] || (echo -e '#!/bin/sh\\njava -jar /opt/rhino-1.7R5/js.jar $@' | sudo tee /usr/local/bin/rhino && sudo chmod +x /usr/local/bin/rhino)"
  - "[ $BIN != 'ringo' ] || (wget http://ringojs.org/downloads/ringojs-0.9.zip && sudo unzip ringojs-0.9 -d /opt && rm ringojs-0.9.zip)"
  - "[ $BIN != 'ringo' ] || (sudo ln -s /opt/ringojs-0.9/bin/ringo /usr/local/bin/ringo && sudo chmod +x /usr/local/bin/ringo)"
script:
  - "[ $BUILD == false ] || node ./bin/lodash modularize $BUILD exports=$EXPORTS -o $OUTPUT_PATH"
  - "[ $EXPORTS != 'npm' ] || (cd ./npm && cp ../test/npm/index.js ./index.js && cd ../)"
  - "[ \"$TEST\" != false ] || $BIN $OPTION ./node_modules/lodash/test/test.js $TARGET_PATH"
  - "[ \"$TEST\" == false ] || $TEST"
{'fraction_non_alphanumeric': 0.22504780114722753, 'fraction_numerical': 0.03479923518164436, 'mean_word_length': 2.736428571428571, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '556915', 'n_tokens_mistral': 2303, 'n_tokens_neox': 2181, 'n_words': 391}