<commit_before>package platforms;

import haxe.io.Path;
import haxe.Template;
import sys.io.File;
import sys.FileSystem;

class IOSView extends IOSPlatform
{
   var component:String;

   public function new(inProject:NMEProject)
   {
      super(inProject);
      component = inProject.app.file;
   }

   override public function getPlatformDir() : String { return "ios-view"; }
   override public function getOutputDir() { return targetDir + "/" + project.app.file; }

   override public function updateBuildDir():Void 
   {
      super.updateBuildDir();
      copyTemplate("ios-view/FrameworkInterface.mm", haxeDir+"/cpp/FrameworkInterface.mm");
      copyTemplate("ios-view/HEADER.h",  haxeDir+"/cpp/FrameworkHeader.h" );
   }

   override public function copyBinary():Void
   {
   }

   override public function run(arguments:Array<String>):Void { }

   override public function updateLibs() { }

   override public function updateAssets() { }
  
   override public function updateOutputDir():Void 
   {
      PathHelper.mkdir(getOutputDir());
   }

   override function postBuild()
   {
     var sdk = getOutputDir();<commit_msg>create cpp dir<commit_after>package platforms;

import haxe.io.Path;
import haxe.Template;
import sys.io.File;
import sys.FileSystem;

class IOSView extends IOSPlatform
{
   var component:String;

   public function new(inProject:NMEProject)
   {
      super(inProject);
      component = inProject.app.file;
   }

   override public function getPlatformDir() : String { return "ios-view"; }
   override public function getOutputDir() { return targetDir + "/" + project.app.file; }

   override public function updateBuildDir():Void 
   {
      super.updateBuildDir();
      PathHelper.mkdir(haxeDir+"/cpp");
      copyTemplate("ios-view/FrameworkInterface.mm", haxeDir+"/cpp/FrameworkInterface.mm");
      copyTemplate("ios-view/HEADER.h",  haxeDir+"/cpp/FrameworkHeader.h" );
   }

   override public function copyBinary():Void
   {
   }

   override public function run(arguments:Array<String>):Void { }

   override public function updateLibs() { }

   override public function updateAssets() { }
  
   override public function updateOutputDir():Void 
   {
      PathHelper.mkdir(getOutputDir());
   }

   override function postBuild()
   {
     var sdk = getOutputDir();
{'fraction_non_alphanumeric': 0.11433521004763968, 'fraction_numerical': 0.0, 'mean_word_length': 3.6761133603238867, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4104611', 'n_tokens_mistral': 694, 'n_tokens_neox': 672, 'n_words': 146}