<commit_before>var gulp = require('gulp'),
    fs = require('fs'),
    wrapper = require('./wrapper'),
    assemblyInfo = require('gulp-dotnet-assembly-info'),
    msbuild = require('gulp-msbuild'),
    nunit = require('gulp-nunit-runner'),
    nuget = require('gulp-nuget');

gulp.task('ci', ['test']);

gulp.task('deploy', ['nuget']);

gulp.task('wrapper', function(cb) {
    wrapper('../spec.json', 
        './Wrapper/Reachmail/Reachmail.Template.cs',
        './Wrapper/Reachmail/Reachmail.cs');
    cb();
});

gulp.task('assemblyInfo', ['wrapper'], function() {
    return gulp
        .src('**/AssemblyInfo.cs')
        .pipe(assemblyInfo({
            company: 'Reachmail Inc.',
            product: 'Reachmail API Wrapper',
            title: 'Reachmail API Wrapper',
            description: 'Wrapper for the Reachmail API.',
            copyright: 'Copyright (c) ' + new Date().getFullYear() + ' Reachmail Inc.',
            version: process.env.BUILD_NUMBER,
            fileVersion: process.env.BUILD_NUMBER
        }))
        .pipe(gulp.dest('.'));
});

gulp.task('build', ['assemblyInfo'], function() {
    return gulp
        .src('**/*.sln')
        .pipe(msbuild({
            toolsVersion: 4.0,
            targets: ['Clean', 'Build'],
            stdout: true,
            errorOnFail: true
        }));
});

gulp.task('test', ['build'], function () {
    return gulp
        .src(['**/bin/**/*Tests.dll'], { read: false })
        .pipe(nunit({
            executable: 'nunit-console.exe', // <-- This can go with the next version
            teamcity: true
        }));
});

gulp.task('nuget', ['test'], function () {
    gulp.src(['Wrapper/Reachmail/bin/Release/Reachmail.*'])
        .pipe(nuget.pack({ 
            nuspec: 'Reachmail.nuspec', 
            nuget: 'nuget.exe', 
            version: process.env.BUILD_NUMBER }))
        .pipe(nuget.push({ 
            feed: 'https://www.nuget.org/', 
            nuget: 'nuget.exe', 
            apiKey: process.env.NUGET_API_KEY }));
});<commit_msg>.NET wrapper build WIP.<commit_after>var gulp = require('gulp'),
    fs = require('fs'),
    wrapper = require('./wrapper'),
    assemblyInfo = require('gulp-dotnet-assembly-info'),
    msbuild = require('gulp-msbuild'),
    nunit = require('gulp-nunit-runner'),
    nuget = require('gulp-nuget');

gulp.task('ci', ['test']);

gulp.task('deploy', ['nuget']);

gulp.task('wrapper', function(cb) {
    wrapper('../spec.json', 
        './Wrapper/Reachmail/Reachmail.Template.cs',
        './Wrapper/Reachmail/Reachmail.cs');
    cb();
});

gulp.task('assemblyInfo', ['wrapper'], function() {
    return gulp
        .src('**/AssemblyInfo.cs')
        .pipe(assemblyInfo({
            company: 'Reachmail Inc.',
            product: 'Reachmail API Wrapper',
            title: 'Reachmail API Wrapper',
            description: 'Wrapper for the Reachmail API.',
            copyright: 'Copyright (c) ' + new Date().getFullYear() + ' Reachmail Inc.',
            version: process.env.BUILD_NUMBER,
            fileVersion: process.env.BUILD_NUMBER
        }))
        .pipe(gulp.dest('.'));
});

gulp.task('build', ['assemblyInfo'], function() {
    return gulp
        .src('**/*.sln')
        .pipe(msbuild({
            toolsVersion: 4.0,
            targets: ['Clean', 'Build'],
            stdout: true,
            errorOnFail: true
        }));
});

gulp.task('test', ['build'], function () {
    return gulp
        .src(['**/bin/**/*Tests.dll'], { read: false })
        .pipe(nunit({
            executable: 'nunit-console.exe', // <-- This can go with the next version
            teamcity: true
        }));
});

gulp.task('nuget', ['test'], function () {
    gulp.src(['./Wrapper/Reachmail/bin/Release/Reachmail.*'])
        .pipe(nuget.pack({ 
            nuspec: 'Reachmail.nuspec', 
            nuget: 'nuget.exe', 
            version: process.env.BUILD_NUMBER }))
        .pipe(nuget.push({ 
            feed: 'https://www.nuget.org/', 
            nuget: 'nuget.exe', 
            apiKey: process.env.NUGET_API_KEY }));
});
{'fraction_non_alphanumeric': 0.18857705563761692, 'fraction_numerical': 0.0009847365829640572, 'mean_word_length': 2.1891679748822606, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '762888', 'n_tokens_mistral': 1294, 'n_tokens_neox': 1275, 'n_words': 233}