<commit_before>

import haxed.Tasks;
import haxed.ClientTools;

import bdog.Os;

class HSTasks extends TaskRunner {

  public static function
  main() {
    var tasks = new HSTasks();
    tasks.run();
  }

  public function
  copyWWW() {
    var
      vd = ClientTools.versionDir("haxed-server"),
      src = vd +"www",
      dst = Os.cwd();

    try {
    Os.copyTree(src,dst);
    var cfg = Os.fileIn(vd+"server.json.template");
    Os.fileOut(dst+"/server.json",cfg,{dataDir:dst+"repo/"});
    Os.cp(vd+"start","start");
    Os.copyTree(vd+"nginx",dst);
    Os.mkdir("./logs");
    Os.mkdir("./repo");
    } catch(ex:Dynamic) {
      return ex.toString + "tried "+src+" to "+dst;
    }
    return "copied "+src+" to "+dst;
  }

}<commit_msg>do the chmod for the user<commit_after>

import haxed.Tasks;
import haxed.ClientTools;

import bdog.Os;

class HSTasks extends TaskRunner {

  public static function
  main() {
    var tasks = new HSTasks();
    tasks.run();
  }

  public function
  copyWWW() {
    var
      vd = ClientTools.versionDir("haxed-server"),
      src = vd +"www",
      dst = Os.cwd();

    try {
    Os.copyTree(src,dst);
    var cfg = Os.fileIn(vd+"server.json.template");
    Os.fileOut(dst+"/server.json",cfg,{dataDir:dst+"repo/"});
    Os.cp(vd+"start","start");
    Os.command("chmod +x start");
    Os.copyTree(vd+"nginx",dst);
    Os.mkdir("./logs");
    Os.mkdir("./repo");
    } catch(ex:Dynamic) {
      return ex.toString + "tried "+src+" to "+dst;
    }
    return "copied "+src+" to "+dst;
  }

}
{'fraction_non_alphanumeric': 0.1831812255541069, 'fraction_numerical': 0.0, 'mean_word_length': 2.8762626262626263, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2814139', 'n_tokens_mistral': 581, 'n_tokens_neox': 561, 'n_words': 114}