<commit_before>class Bvr
{

    static public function main()
    {
        var app = new Bvr();
    }

    public function new()
    {

        Sys.println( "Beaver - building dams since 2015!\r\n" );

        var args:Array<String> = Sys.args();

        // Todo create an argument processor here. For now focus on first impl.
        if ( args.length >= 1 ) {

            switch ( args[ 0 ] ) {

                case "build":
                    var builder:String;

                    builder = this.createBuilderFor( Sys.getCwd() );
                    this.build( builder );

                case "watch":
                    Sys.println( "To be implemented" );

                case "deploy":
                    Sys.println( "To be implemented" );

                default:
                    this.printHelpMessage();

            }

        } else {

            this.printHelpMessage();

        }

        Sys.exit( 0 );

    }

    private function printHelpMessage() {

        Sys.println( "Usage:" );
        Sys.println( "bvr build\t\t- build the current folder" );
        Sys.println( "bvr watch\t\t- watch and build the current folder" );
        Sys.println( "bvr deploy\t\t- build and if no errors detected, deploy it" );
        Sys.println( "\r\nIf no .beaver.dam is found in the project folder default settings are used." );

    }

    private function createBuilderFor( myBuildPath:String ):String {

        var guid:String = this.getGuid( myBuildPath );

        Sys.println( "Building project in folder '" + myBuildPath + "'" );

        return guid;

    }

    private function build( myBuilderId:String ) {

        Sys.println( "done." );

    }

    private function getGuid( mySeed:String ):String {

       return haxe.crypto.Md5.encode( mySeed );

    }

}<commit_msg>Add fs commands for permission test on supported platforms.<commit_after>import builder.Project;

class Bvr
{

    static public function main()
    {
        var app = new Bvr();
    }

    public function new()
    {

        Sys.println( "Beaver - building dams since 2015!\r\n" );

        var args:Array<String> = Sys.args();

        // Todo create an argument processor here. For now focus on first impl.
        if ( args.length >= 1 ) {

            switch ( args[ 0 ] ) {

                case "init":
                    Sys.println( "To be implemented" );

                case "clean":
                    var builder:Project;

                    builder = new Project( args.length >= 2 ? args[ 1 ] : Sys.getCwd() );
                    builder.clean();

                case "build":
                    var builder:Project;

                    builder = new Project( args.length >= 2 ? args[ 1 ] : Sys.getCwd() );
                    builder.build();

                case "watch":
                    Sys.println( "To be implemented" );

                case "deploy":
                    Sys.println( "To be implemented" );

                default:
                    this.printHelpMessage();

            }

        } else {

            this.printHelpMessage();

        }

        Sys.exit( 0 );

    }

    private function printHelpMessage() {

        Sys.println( "Usage:" );
        Sys.println( "bvr init <folder>\t\t- write a default .beaver.dam configuration file" );
        Sys.println( "bvr build <folder>\t\t- build the current or given folder" );
        Sys.println( "bvr watch <folder>\t\t- watch and build the current or given folder" );
        //Sys.println( "bvr deploy <folder>\t\t- build and if no errors detected, deploy it" );
        Sys.println( "\r\nIf no .beaver.dam is found in the project folder default settings are used." );

    }

}
{'fraction_non_alphanumeric': 0.11225317825263727, 'fraction_numerical': 0.005139302136867731, 'mean_word_length': 1.546831955922865, 'pattern_counts': {'":': 8, '<': 9, '<?xml version=': 0, '>': 13, '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': '2579516', 'n_tokens_mistral': 1087, 'n_tokens_neox': 958, 'n_words': 307}