<commit_before>{
  "id": "{{service.name}}",
  "cpus": 1.0,
  "mem": 1024,
  "instances": 1,
  "user": "{{service.user}}",
  "cmd": "export LD_LIBRARY_PATH=$MESOS_SANDBOX/libmesos-bundle/lib:$LD_LIBRARY_PATH; export MESOS_NATIVE_JAVA_LIBRARY=$(ls $MESOS_SANDBOX/libmesos-bundle/lib/libmesos-*.so); export JAVA_HOME=$(ls -d $MESOS_SANDBOX/jre*/); export JAVA_HOME=${JAVA_HOME%/}; export PATH=$(ls -d $JAVA_HOME/bin):$PATH &&  export JAVA_OPTS=\"-Xms256M -Xmx512M -XX:-HeapDumpOnOutOfMemoryError\" &&  ./hello-world-scheduler/bin/helloworld ./hello-world-scheduler/{{service.spec_file}}",
  "labels": {
    "DCOS_COMMONS_API_VERSION": "v1",
    "DCOS_COMMONS_UNINSTALL": "true",
    "DCOS_PACKAGE_FRAMEWORK_NAME": "{{service.name}}",
    "MARATHON_SINGLE_INSTANCE_APP": "true",
    "DCOS_SERVICE_NAME": "{{service.name}}",
    "DCOS_SERVICE_PORT_INDEX": "0",
    "DCOS_SERVICE_SCHEME": "http"
  },
  {{#service.service_account_secret}}
  "secrets": {
    "serviceCredential": {
      "source": "{{service.service_account_secret}}"
    }
  },
  {{/service.service_account_secret}}
  "env": {
    "PACKAGE_NAME": "{{package-name}}",
    "PACKAGE_VERSION": "{{package-version}}",
    "PACKAGE_BUILD_TIME_EPOCH_MS": "{{package-build-time-epoch-ms}}",
    "PACKAGE_BUILD_TIME_STR": "{{package-build-time-str}}",
    "FRAMEWORK_NAME": "{{service.name}}",
    "FRAMEWORK_LOG_LEVEL": "{{service.log_level}}",
    "SERVICE_PRINCIPAL": "{{service.service_account}}",
    "SERVICE_USER": "{{service.user}}",
    "HELLO_COUNT": "{{hello.count}}",
    "HELLO_CPUS": "{{hello.cpus}}",
    "HELLO_GPUS": "{{hello.gpus}}",
    "HELLO_MEM": "{{hello.mem}}",
    "HELLO_DISK": "{{hello.disk}}",
    "HELLO_PLACEMENT": "{{hello.placement}}",
    {{#hello.kill_grace_period}}
    "HELLO_KILL_GRACE_PERIOD": "{{hello.kill_grace_period}}",
    {{/hello.kill_grace_period}}
    "WORLD_COUNT": "{{world.count}}",
    "WORLD_CPUS": "{{world.cpus}}",
    "WORLD_MEM": "{{world.mem}}",
    "WORLD_DISK": "{{world.disk}}",
    "WORLD_PLACEMENT": "{{world.placement}}",
    {{#world.kill_grace_period}}
    "WORLD_KILL_GRACE_PERIOD": "{{world.kill_grace_period}}",
    {{/world.kill_grace_period}}
    "SLEEP_DURATION": "{{service.sleep}}",
    "JAVA_URI": "{{resource.assets.uris.jre-tar-gz}}",
    "EXECUTOR_URI": "{{resource.assets.uris.executor-zip}}",
    "KEYSTORE_APP_URI": "{{resource.assets.uris.keystore-app-zip}}",
    "BOOTSTRAP_URI": "{{resource.assets.uris.bootstrap-zip}}",
    "LIBMESOS_URI": "{{resource.assets.uris.libmesos-bundle-tar-gz}}",
    {{#service.service_account_secret}}
    "DCOS_SERVICE_ACCOUNT_CREDENTIAL": { "secret": "serviceCredential" },
    "MESOS_MODULES": "{\"libraries\": [{\"file\": \"libdcos_security.so\", \"modules\": [{\"name\": \"com_mesosphere_dcos_ClassicRPCAuthenticatee\"}]}]}",
    "MESOS_AUTHENTICATEE": "com_mesosphere_dcos_ClassicRPCAuthenticatee",
    {{/service.service_account_secret}}
    {{#hello.secret1}}
    "HELLO_SECRET1" : "{{hello.secret1}}",
    {{/hello.secret1}}
    {{#hello.secret2}}
    "HELLO_SECRET2" : "{{hello.secret2}}",
    {{/hello.secret2}}
    {{#world.secret1}}
    "WORLD_SECRET1" : "{{world.secret1}}",
    {{/world.secret1}}
    {{#world.secret2}}
    "WORLD_SECRET2" : "{{world.secret2}}",
    {{/world.secret2}}
    {{#world.secret3}}
    "WORLD_SECRET3" : "{{world.secret3}}",
    {{/world.secret3}}

    {{#tls.discovery_task_prefix}}
    "DISCOVERY_TASK_PREFIX": "{{tls.discovery_task_prefix}}",
    {{/tls.discovery_task_prefix}}

    "MESOS_API_VERSION": "{{service.mesos_api_version}}",
    "KEYSTORE_APP_VERSION": "{{tls.keystore_app_version}}",
    "NGINX_CONTAINER_VERSION": "{{tls.nginx_container_version}}",
    "TEST_BOOLEAN": "{{service.test_boolean}}"
  },
  "uris": [
    "{{resource.assets.uris.jre-tar-gz}}",
    "{{resource.assets.uris.scheduler-zip}}",
    "{{resource.assets.uris.libmesos-bundle-tar-gz}}"
  ],
  "upgradeStrategy":{
    "minimumHealthCapacity": 0,
    "maximumOverCapacity": 0
  },
  "healthChecks": [
    {
      "protocol": "HTTP",
      "path": "/v1/plans/deploy",
      "gracePeriodSeconds": 900,
      "intervalSeconds": 30,
      "portIndex": 0,
      "timeoutSeconds": 30,
      "maxConsecutiveFailures": 0
    },
    {
      "protocol": "HTTP",
      "path": "/v1/plans/recovery",
      "gracePeriodSeconds": 900,
      "intervalSeconds": 30,
      "portIndex": 0,
      "timeoutSeconds": 30,
      "maxConsecutiveFailures": 0
    }
  ],
  "portDefinitions": [
    {
      "port": 0,
      "protocol": "tcp",
      "name": "api",
      "labels": { "VIP_0": "/api.{{service.name}}:80" }
    }
  ]
}
<commit_msg>Reduce HW scheduler CPU to match others. (#1682)<commit_after>{
  "id": "{{service.name}}",
  "cpus": 0.5,
  "mem": 1024,
  "instances": 1,
  "user": "{{service.user}}",
  "cmd": "export LD_LIBRARY_PATH=$MESOS_SANDBOX/libmesos-bundle/lib:$LD_LIBRARY_PATH; export MESOS_NATIVE_JAVA_LIBRARY=$(ls $MESOS_SANDBOX/libmesos-bundle/lib/libmesos-*.so); export JAVA_HOME=$(ls -d $MESOS_SANDBOX/jre*/); export JAVA_HOME=${JAVA_HOME%/}; export PATH=$(ls -d $JAVA_HOME/bin):$PATH &&  export JAVA_OPTS=\"-Xms256M -Xmx512M -XX:-HeapDumpOnOutOfMemoryError\" &&  ./hello-world-scheduler/bin/helloworld ./hello-world-scheduler/{{service.spec_file}}",
  "labels": {
    "DCOS_COMMONS_API_VERSION": "v1",
    "DCOS_COMMONS_UNINSTALL": "true",
    "DCOS_PACKAGE_FRAMEWORK_NAME": "{{service.name}}",
    "MARATHON_SINGLE_INSTANCE_APP": "true",
    "DCOS_SERVICE_NAME": "{{service.name}}",
    "DCOS_SERVICE_PORT_INDEX": "0",
    "DCOS_SERVICE_SCHEME": "http"
  },
  {{#service.service_account_secret}}
  "secrets": {
    "serviceCredential": {
      "source": "{{service.service_account_secret}}"
    }
  },
  {{/service.service_account_secret}}
  "env": {
    "PACKAGE_NAME": "{{package-name}}",
    "PACKAGE_VERSION": "{{package-version}}",
    "PACKAGE_BUILD_TIME_EPOCH_MS": "{{package-build-time-epoch-ms}}",
    "PACKAGE_BUILD_TIME_STR": "{{package-build-time-str}}",
    "FRAMEWORK_NAME": "{{service.name}}",
    "FRAMEWORK_LOG_LEVEL": "{{service.log_level}}",
    "SERVICE_PRINCIPAL": "{{service.service_account}}",
    "SERVICE_USER": "{{service.user}}",
    "HELLO_COUNT": "{{hello.count}}",
    "HELLO_CPUS": "{{hello.cpus}}",
    "HELLO_GPUS": "{{hello.gpus}}",
    "HELLO_MEM": "{{hello.mem}}",
    "HELLO_DISK": "{{hello.disk}}",
    "HELLO_PLACEMENT": "{{hello.placement}}",
    {{#hello.kill_grace_period}}
    "HELLO_KILL_GRACE_PERIOD": "{{hello.kill_grace_period}}",
    {{/hello.kill_grace_period}}
    "WORLD_COUNT": "{{world.count}}",
    "WORLD_CPUS": "{{world.cpus}}",
    "WORLD_MEM": "{{world.mem}}",
    "WORLD_DISK": "{{world.disk}}",
    "WORLD_PLACEMENT": "{{world.placement}}",
    {{#world.kill_grace_period}}
    "WORLD_KILL_GRACE_PERIOD": "{{world.kill_grace_period}}",
    {{/world.kill_grace_period}}
    "SLEEP_DURATION": "{{service.sleep}}",
    "JAVA_URI": "{{resource.assets.uris.jre-tar-gz}}",
    "EXECUTOR_URI": "{{resource.assets.uris.executor-zip}}",
    "KEYSTORE_APP_URI": "{{resource.assets.uris.keystore-app-zip}}",
    "BOOTSTRAP_URI": "{{resource.assets.uris.bootstrap-zip}}",
    "LIBMESOS_URI": "{{resource.assets.uris.libmesos-bundle-tar-gz}}",
    {{#service.service_account_secret}}
    "DCOS_SERVICE_ACCOUNT_CREDENTIAL": { "secret": "serviceCredential" },
    "MESOS_MODULES": "{\"libraries\": [{\"file\": \"libdcos_security.so\", \"modules\": [{\"name\": \"com_mesosphere_dcos_ClassicRPCAuthenticatee\"}]}]}",
    "MESOS_AUTHENTICATEE": "com_mesosphere_dcos_ClassicRPCAuthenticatee",
    {{/service.service_account_secret}}
    {{#hello.secret1}}
    "HELLO_SECRET1" : "{{hello.secret1}}",
    {{/hello.secret1}}
    {{#hello.secret2}}
    "HELLO_SECRET2" : "{{hello.secret2}}",
    {{/hello.secret2}}
    {{#world.secret1}}
    "WORLD_SECRET1" : "{{world.secret1}}",
    {{/world.secret1}}
    {{#world.secret2}}
    "WORLD_SECRET2" : "{{world.secret2}}",
    {{/world.secret2}}
    {{#world.secret3}}
    "WORLD_SECRET3" : "{{world.secret3}}",
    {{/world.secret3}}

    {{#tls.discovery_task_prefix}}
    "DISCOVERY_TASK_PREFIX": "{{tls.discovery_task_prefix}}",
    {{/tls.discovery_task_prefix}}

    "MESOS_API_VERSION": "{{service.mesos_api_version}}",
    "KEYSTORE_APP_VERSION": "{{tls.keystore_app_version}}",
    "NGINX_CONTAINER_VERSION": "{{tls.nginx_container_version}}",
    "TEST_BOOLEAN": "{{service.test_boolean}}"
  },
  "uris": [
    "{{resource.assets.uris.jre-tar-gz}}",
    "{{resource.assets.uris.scheduler-zip}}",
    "{{resource.assets.uris.libmesos-bundle-tar-gz}}"
  ],
  "upgradeStrategy":{
    "minimumHealthCapacity": 0,
    "maximumOverCapacity": 0
  },
  "healthChecks": [
    {
      "protocol": "HTTP",
      "path": "/v1/plans/deploy",
      "gracePeriodSeconds": 900,
      "intervalSeconds": 30,
      "portIndex": 0,
      "timeoutSeconds": 30,
      "maxConsecutiveFailures": 0
    },
    {
      "protocol": "HTTP",
      "path": "/v1/plans/recovery",
      "gracePeriodSeconds": 900,
      "intervalSeconds": 30,
      "portIndex": 0,
      "timeoutSeconds": 30,
      "maxConsecutiveFailures": 0
    }
  ],
  "portDefinitions": [
    {
      "port": 0,
      "protocol": "tcp",
      "name": "api",
      "labels": { "VIP_0": "/api.{{service.name}}:80" }
    }
  ]
}

{'fraction_non_alphanumeric': 0.21518850599546288, 'fraction_numerical': 0.013611321162363616, 'mean_word_length': 4.227555053642011, 'pattern_counts': {'":': 166, '<': 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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6099327', 'n_tokens_mistral': 3828, 'n_tokens_neox': 3676, 'n_words': 421}