<commit_before>default['sbt']['version'] = "0.13.12"

workerJavaOpts = "-Dfile.encoding=UTF-8 -server -XX:+AggressiveOpts -XX:+UseParNewGC -Xmx2G -Xss1M -XX:MaxPermSize=512M -XX:ReservedCodeCacheSize=128M -Dpartest.threads=4"

if (node.name =~ /.*-worker-.*/) != nil
  case node["platform_family"]
  when "windows"
    jenkinsHome = 'y:\jenkins'
    
    override['sbt']['launcher_path'] = 'C:\sbt\sbt-launch.jar'
    override['wix']['home']          = 'C:\Program Files (x86)\WiX Toolset v3.10'
    override['cygwin']['home']       = 'C:\tools\cygwin'
    override['java']['java_home']    = 'C:\Program Files\Java\jdk1.8.0_121'
    jvmBin                           = '/cygdrive/c/Program Files/Java/jdk1.8.0_121/bin'
    gitBin                           = '/cygdrive/c/Program Files/Git/Cmd'
    jenkinsTmp                       = 'y:/jenkins/tmp'
  
    # deal with weirdness in java using registry keys to find the homedir (c:\users\jenkins), instead of the cygin home (/home/jenkins or y:\jenkins)
    jvmDirOptions = "-Duser.home=#{jenkinsHome.gsub(/\\/,'/')} -Djava.io.tmpdir=#{jenkinsTmp}" # jenkins doesn't quote properly

    # If node name contains "-publish", configure it with necessary secrets/package to roll & publish a release
    publisher = (node.name =~ /.*-publish.*/) != nil # TODO: use tag?

    default['ebs']['volumes']['Y']['size']      = 50
    default['ebs']['volumes']['Y']['dev']       = "sdj"
    default['ebs']['volumes']['Y']['disk']      = 'PCIROOT(0)#PCI(1F00)#PCI(1F00)#SCSI(P00T09L00)' # J is the 9th letter in base-0 --> T09(https://technet.microsoft.com/en-us/library/ee851589%28v=ws.10%29.aspx)

    default['ebs']['volumes']['Y']['fstype']    = "ntfs"
    default['ebs']['volumes']['Y']['user']      = "jenkins"
    default['ebs']['volumes']['Y']['mountopts'] = ''

    default["jenkinsHomes"][jenkinsHome]["executors"]   = 2
    default["jenkinsHomes"][jenkinsHome]["workerName"]  = node.name
    default["jenkinsHomes"][jenkinsHome]["jenkinsUser"] = 'jenkins'
    default["jenkinsHomes"][jenkinsHome]["jvm_options"] = jvmDirOptions
    default["jenkinsHomes"][jenkinsHome]["java_path"]   = "#{jvmBin}/java"
    default["jenkinsHomes"][jenkinsHome]["labels"]      = ["windows", publisher ? "publish": "public"]
    default["jenkinsHomes"][jenkinsHome]["publish"]     = publisher

    default["jenkinsHomes"][jenkinsHome]["usage_mode"]  = 'exclusive' # windows is a speciality node, don't run jobs here unless they asked for a `windows` node

    default["jenkinsHomes"][jenkinsHome]["in_demand_delay"] = 1  # if builds are in queue for even one minute, launch this worker
    default["jenkinsHomes"][jenkinsHome]["idle_delay"]      = 15 # take worker off-line after 15 min of idling (we're charged by the hour, so no rush)

 
    default["jenkinsHomes"][jenkinsHome]["env"]['JAVA_HOME']          = node['java']['java_home'] # we get the jre if we don't do this
    default["jenkinsHomes"][jenkinsHome]["env"]['JAVA_OPTS']          = "#{workerJavaOpts} #{jvmDirOptions}"
    default["jenkinsHomes"][jenkinsHome]["env"]['ANT_OPTS']           = "#{workerJavaOpts} #{jvmDirOptions}"
    default["jenkinsHomes"][jenkinsHome]["env"]['MAVEN_OPTS']         = "#{workerJavaOpts} #{jvmDirOptions}"
    default["jenkinsHomes"][jenkinsHome]["env"]['prRepoUrl']          = node['repos']['private']['pr-snap']
    default["jenkinsHomes"][jenkinsHome]["env"]['releaseTempRepoUrl'] = node['repos']['private']['release-temp']
    default["jenkinsHomes"][jenkinsHome]["env"]['PATH']               = "/bin:/usr/bin:#{jvmBin}:#{gitBin}"<commit_msg>quotes<commit_after>default['sbt']['version'] = "0.13.12"

workerJavaOpts = "-Dfile.encoding=UTF-8 -server -XX:+AggressiveOpts -XX:+UseParNewGC -Xmx2G -Xss1M -XX:MaxPermSize=512M -XX:ReservedCodeCacheSize=128M -Dpartest.threads=4"

if (node.name =~ /.*-worker-.*/) != nil
  case node["platform_family"]
  when "windows"
    jenkinsHome = 'y:\jenkins'
    
    override['sbt']['launcher_path'] = 'C:\sbt\sbt-launch.jar'
    override['wix']['home']          = 'C:\Program Files (x86)\WiX Toolset v3.10'
    override['cygwin']['home']       = 'C:\tools\cygwin'
    override['java']['java_home']    = 'C:\Program Files\Java\jdk1.8.0_121'
    jvmBin                           = '/cygdrive/c/Program Files/Java/jdk1.8.0_121/bin'
    gitBin                           = '/cygdrive/c/Program Files/Git/Cmd'
    jenkinsTmp                       = 'y:/jenkins/tmp'
  
    # deal with weirdness in java using registry keys to find the homedir (c:\users\jenkins), instead of the cygin home (/home/jenkins or y:\jenkins)
    jvmDirOptions = "-Duser.home=#{jenkinsHome.gsub(/\\/,'/')} -Djava.io.tmpdir=#{jenkinsTmp}" # jenkins doesn't quote properly

    # If node name contains "-publish", configure it with necessary secrets/package to roll & publish a release
    publisher = (node.name =~ /.*-publish.*/) != nil # TODO: use tag?

    default['ebs']['volumes']['Y']['size']      = 50
    default['ebs']['volumes']['Y']['dev']       = "sdj"
    default['ebs']['volumes']['Y']['disk']      = 'PCIROOT(0)#PCI(1F00)#PCI(1F00)#SCSI(P00T09L00)' # J is the 9th letter in base-0 --> T09(https://technet.microsoft.com/en-us/library/ee851589%28v=ws.10%29.aspx)

    default['ebs']['volumes']['Y']['fstype']    = "ntfs"
    default['ebs']['volumes']['Y']['user']      = "jenkins"
    default['ebs']['volumes']['Y']['mountopts'] = ''

    default["jenkinsHomes"][jenkinsHome]["executors"]   = 2
    default["jenkinsHomes"][jenkinsHome]["workerName"]  = node.name
    default["jenkinsHomes"][jenkinsHome]["jenkinsUser"] = 'jenkins'
    default["jenkinsHomes"][jenkinsHome]["jvm_options"] = jvmDirOptions
    default["jenkinsHomes"][jenkinsHome]["java_path"]   = '"c:/Program Files/Java/jdk1.8.0_121/bin/java"' # note the double quoting
    default["jenkinsHomes"][jenkinsHome]["labels"]      = ["windows", publisher ? "publish": "public"]
    default["jenkinsHomes"][jenkinsHome]["publish"]     = publisher

    default["jenkinsHomes"][jenkinsHome]["usage_mode"]  = 'exclusive' # windows is a speciality node, don't run jobs here unless they asked for a `windows` node

    default["jenkinsHomes"][jenkinsHome]["in_demand_delay"] = 1  # if builds are in queue for even one minute, launch this worker
    default["jenkinsHomes"][jenkinsHome]["idle_delay"]      = 15 # take worker off-line after 15 min of idling (we're charged by the hour, so no rush)

 
    default["jenkinsHomes"][jenkinsHome]["env"]['JAVA_HOME']          = node['java']['java_home'] # we get the jre if we don't do this
    default["jenkinsHomes"][jenkinsHome]["env"]['JAVA_OPTS']          = "#{workerJavaOpts} #{jvmDirOptions}"
    default["jenkinsHomes"][jenkinsHome]["env"]['ANT_OPTS']           = "#{workerJavaOpts} #{jvmDirOptions}"
    default["jenkinsHomes"][jenkinsHome]["env"]['MAVEN_OPTS']         = "#{workerJavaOpts} #{jvmDirOptions}"
    default["jenkinsHomes"][jenkinsHome]["env"]['prRepoUrl']          = node['repos']['private']['pr-snap']
    default["jenkinsHomes"][jenkinsHome]["env"]['releaseTempRepoUrl'] = node['repos']['private']['release-temp']
    default["jenkinsHomes"][jenkinsHome]["env"]['PATH']               = "/bin:/usr/bin:#{jvmBin}:#{gitBin}"
{'fraction_non_alphanumeric': 0.19323873121869783, 'fraction_numerical': 0.02003338898163606, 'mean_word_length': 4.009756097560976, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '7278830', 'n_tokens_mistral': 2588, 'n_tokens_neox': 2472, 'n_words': 414}