<commit_before>{
  "name": "cozy-drive",
  "version": "1.10.1",
  "main": "src/main.jsx",
  "scripts": {
    "build:drive": "npm run build:drive:browser",
    "build:drive:browser":
      "npm run internal:build -- --env.app=drive --env.target=browser --env.production",
    "build:drive:mobile":
      "npm run internal:build -- --env.app=drive --env.target=mobile --env.production",
    "build:photos": "npm run build:photos:browser",
    "build:photos:browser":
      "npm run internal:build -- --env.app=photos --env.target=browser --env.production",
    "clean:drive:browser": "rm -rf build/drive/*",
    "clean:photos:browser": "rm -rf build/photos/*",
    "clean:mobile": "rm -rf targets/*/mobile/www/*",
    "deploy:drive":
      "cozy-app-publish --token $REGISTRY_TOKEN --build-dir 'build/drive/' --prepublish downcloud --postpublish rundeck,mattermost",
    "deploy:photos":
      "cozy-app-publish --token $REGISTRY_TOKEN --build-dir 'build/photos/' --prepublish downcloud --postpublish rundeck,mattermost",
    "internal:build": "webpack --config webpack.config.js --bail",
    "internal:watch": "webpack --config webpack.config.js --watch --progress",
    "tx": "tx pull --all || true",
    "preinternal:build": "npm-run-all lint tx",
    "prebuild:drive:browser": "npm run clean:drive:browser",
    "prebuild:photos:browser": "npm run clean:photos:browser",
    "prebuild:drive:mobile": "npm run clean:mobile",
    "prewatch:drive:browser": "npm run clean:drive:browser",
    "prewatch:photos:browser": "npm run clean:photos:browser",
    "prewatch:drive:mobile": "npm run clean:mobile",
    "lint": "npm-run-all --parallel 'lint:*'",
    "lint:styles": "stylint src/drive/styles --config ./.stylintrc",
    "lint:js":
      "eslint --ignore-pattern node_modules \"{src,test}/**/*.{js,jsx}\"",
    "precommit": "lint-staged",
    "test": "node_modules/.bin/jest --coverage --config=jest.config.json",
    "watch:drive": "npm run watch:drive:browser",
    "watch:drive:browser":
      "npm run internal:watch -- --env.app=drive --env.target=browser",
    "watch:drive:mobile":
      "npm run internal:watch -- --env.app=drive --env.target=mobile",
    "watch:drive:standalone":
      "webpack-dev-server --config webpack.config.js --env.app=drive --env.target=mobile --port 8084 --inline --hot",
    "watch:photos": "npm run watch:photos:browser",
    "watch:photos:browser":
      "npm run internal:watch -- --env.app=photos --env.target=browser",
    "genicon:drive:mobile":
      "(cd targets/drive/mobile && rm -Rf ./res/icons ./res/screens && splashicon-generator --imagespath='./res/model' && cp res/model/splash.png res/screens/ios/Default@2x~universal~anyany.png)",
    "prepare:drive:mobile":
      "(cd targets/drive/mobile && rm -rf platforms && rm -rf plugins && cordova prepare)",
    "run:drive:android":
      "(cd targets/drive/mobile && cordova run android --device)",
    "run:drive:android:emulator":
      "(cd targets/drive/mobile && cordova run android --emulator)",
    "build:drive:android":
      "npm run build:drive:mobile && (cd targets/drive/mobile && cordova build android --release)",
    "build:drive:android:debug":
      "npm run build:drive:mobile && (cd targets/drive/mobile && cordova build android --debug)",
    "sign:drive:android":
      "(cd targets/drive/mobile && apksigner sign --ks keys/android/cozy-drive-release-key.jks --out build/android/cozy-drive.apk platforms/android/build/outputs/apk/release/android-release-unsigned.apk)",
    "buildsigned:drive:android":
      "npm run build:drive:android && npm run sign:drive:android",
    "publish:drive:android": "(cd targets/drive/mobile && fastlane supply)",
    "publishbeta:drive:android":
      "(cd targets/drive/mobile && fastlane android pushbeta)",
    "run:drive:ios": "(cd targets/drive/mobile && cordova run ios --device)",
    "run:drive:ios:emulator":
      "(cd targets/drive/mobile && cordova run ios --emulator)",
    "publish:drive:ios":
      "npm run build:drive:mobile && (cd targets/drive/mobile && fastlane ios pushtest)",
    "sentry:drive:mobile":
      "sentry-cli releases -o sentry -p cozy-drive-v3 files $npm_package_version upload-sourcemaps ./targets/drive/mobile/www",
    "version:drive:manifest":
      "replace '\\d+\\.\\d+\\.\\d+' $npm_package_version ./targets/drive/manifest.webapp",
    "version:drive:config":
      "replace 'version=\"\\d+\\.\\d+\\.\\d+\"' 'version=\"'$npm_package_version'\"' ./targets/drive/mobile/config.xml",
    "version:drive:iosbuild":
      "replace 'CFBundleVersion=\"\\d+\\.\\d+\\.\\d+.\\d+\"' 'CFBundleVersion=\"'$npm_package_version'.0\"' ./targets/drive/mobile/config.xml",
    "version:drive:useragent":
      "replace 'value=\"(.+)\\d+\\.\\d+\\.\\d+\"' 'value=\"$1'$npm_package_version'\"' ./targets/drive/mobile/config.xml",
    "version:drive": "npm-run-all --parallel 'version:drive:*'",
    "version:photos":
      "replace '\\d+\\.\\d+\\.\\d+' $npm_package_version ./targets/photos/manifest.webapp"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/cozy/cozy-drive.git"<commit_msg>chore: Add command to autoupdate build number<commit_after>{
  "name": "cozy-drive",
  "version": "1.10.1",
  "main": "src/main.jsx",
  "scripts": {
    "build:drive": "npm run build:drive:browser",
    "build:drive:browser":
      "npm run internal:build -- --env.app=drive --env.target=browser --env.production",
    "build:drive:mobile":
      "npm run internal:build -- --env.app=drive --env.target=mobile --env.production",
    "build:photos": "npm run build:photos:browser",
    "build:photos:browser":
      "npm run internal:build -- --env.app=photos --env.target=browser --env.production",
    "clean:drive:browser": "rm -rf build/drive/*",
    "clean:photos:browser": "rm -rf build/photos/*",
    "clean:mobile": "rm -rf targets/*/mobile/www/*",
    "deploy:drive":
      "cozy-app-publish --token $REGISTRY_TOKEN --build-dir 'build/drive/' --prepublish downcloud --postpublish rundeck,mattermost",
    "deploy:photos":
      "cozy-app-publish --token $REGISTRY_TOKEN --build-dir 'build/photos/' --prepublish downcloud --postpublish rundeck,mattermost",
    "internal:build": "webpack --config webpack.config.js --bail",
    "internal:watch": "webpack --config webpack.config.js --watch --progress",
    "tx": "tx pull --all || true",
    "preinternal:build": "npm-run-all lint tx",
    "prebuild:drive:browser": "npm run clean:drive:browser",
    "prebuild:photos:browser": "npm run clean:photos:browser",
    "prebuild:drive:mobile": "npm run clean:mobile",
    "prewatch:drive:browser": "npm run clean:drive:browser",
    "prewatch:photos:browser": "npm run clean:photos:browser",
    "prewatch:drive:mobile": "npm run clean:mobile",
    "lint": "npm-run-all --parallel 'lint:*'",
    "lint:styles": "stylint src/drive/styles --config ./.stylintrc",
    "lint:js":
      "eslint --ignore-pattern node_modules \"{src,test}/**/*.{js,jsx}\"",
    "precommit": "lint-staged",
    "test": "node_modules/.bin/jest --coverage --config=jest.config.json",
    "watch:drive": "npm run watch:drive:browser",
    "watch:drive:browser":
      "npm run internal:watch -- --env.app=drive --env.target=browser",
    "watch:drive:mobile":
      "npm run internal:watch -- --env.app=drive --env.target=mobile",
    "watch:drive:standalone":
      "webpack-dev-server --config webpack.config.js --env.app=drive --env.target=mobile --port 8084 --inline --hot",
    "watch:photos": "npm run watch:photos:browser",
    "watch:photos:browser":
      "npm run internal:watch -- --env.app=photos --env.target=browser",
    "genicon:drive:mobile":
      "(cd targets/drive/mobile && rm -Rf ./res/icons ./res/screens && splashicon-generator --imagespath='./res/model' && cp res/model/splash.png res/screens/ios/Default@2x~universal~anyany.png)",
    "prepare:drive:mobile":
      "(cd targets/drive/mobile && rm -rf platforms && rm -rf plugins && cordova prepare)",
    "run:drive:android":
      "(cd targets/drive/mobile && cordova run android --device)",
    "run:drive:android:emulator":
      "(cd targets/drive/mobile && cordova run android --emulator)",
    "build:drive:android":
      "npm run build:drive:mobile && (cd targets/drive/mobile && cordova build android --release)",
    "build:drive:android:debug":
      "npm run build:drive:mobile && (cd targets/drive/mobile && cordova build android --debug)",
    "sign:drive:android":
      "(cd targets/drive/mobile && apksigner sign --ks keys/android/cozy-drive-release-key.jks --out build/android/cozy-drive.apk platforms/android/build/outputs/apk/release/android-release-unsigned.apk)",
    "buildsigned:drive:android":
      "npm run build:drive:android && npm run sign:drive:android",
    "publish:drive:android": "(cd targets/drive/mobile && fastlane supply)",
    "publishbeta:drive:android":
      "(cd targets/drive/mobile && fastlane android pushbeta)",
    "run:drive:ios": "(cd targets/drive/mobile && cordova run ios --device)",
    "run:drive:ios:emulator":
      "(cd targets/drive/mobile && cordova run ios --emulator)",
    "publish:drive:ios":
      "npm run build:drive:mobile && (cd targets/drive/mobile && fastlane ios pushtest)",
    "sentry:drive:mobile":
      "sentry-cli releases -o sentry -p cozy-drive-v3 files $npm_package_version upload-sourcemaps ./targets/drive/mobile/www",
    "version:drive:manifest":
      "replace '\\d+\\.\\d+\\.\\d+' $npm_package_version ./targets/drive/manifest.webapp",
    "version:drive:config":
      "replace 'version=\"\\d+\\.\\d+\\.\\d+\"' 'version=\"'$npm_package_version'\"' ./targets/drive/mobile/config.xml",
    "version:drive:iosbuild":
      "replace 'CFBundleVersion=\"\\d+\\.\\d+\\.\\d+.\\d+\"' 'CFBundleVersion=\"'$npm_package_version'.0\"' ./targets/drive/mobile/config.xml",
    "version:drive:androidbuild": "replace 'android-versionCode=\"\\d+\"' 'android-versionCode=\"'${npm_package_version//\\./}'0\"' ./targets/drive/mobile/config.xml",
    "version:drive:useragent":
      "replace 'value=\"(.+)\\d+\\.\\d+\\.\\d+\"' 'value=\"$1'$npm_package_version'\"' ./targets/drive/mobile/config.xml",
    "version:drive": "npm-run-all --parallel 'version:drive:*'",
    "version:photos":
      "replace '\\d+\\.\\d+\\.\\d+' $npm_package_version ./targets/photos/manifest.webapp"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/cozy/cozy-drive.git"
{'fraction_non_alphanumeric': 0.2014436958614052, 'fraction_numerical': 0.002406159769008662, 'mean_word_length': 3.6100266193433894, 'pattern_counts': {'":': 117, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 4, 'xml': 7}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5233769', 'n_tokens_mistral': 3541, 'n_tokens_neox': 3371, 'n_words': 654}